@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) 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/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichathistory/aichathistory.js +1 -1
  63. package/src/aichathistory/aichathistorycontroller.js +1 -1
  64. package/src/aichathistory/aichathistoryui.js +1 -1
  65. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  66. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  68. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  71. package/src/aicore/aiconnector.js +1 -1
  72. package/src/aicore/aiediting.js +1 -1
  73. package/src/aicore/model/aicapabilities.js +1 -1
  74. package/src/aicore/model/aiinteraction.js +1 -1
  75. package/src/aicore/model/aimodels.js +1 -1
  76. package/src/aicore/model/aireply.js +1 -1
  77. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  78. package/src/aicore/pipeline/airesponseparser.js +2 -2
  79. package/src/aicore/ui/aidisclaimerview.js +1 -1
  80. package/src/aicore/ui/aiskeleton.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  87. package/src/aicore/utils/createresizebutton.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aieditorintegration/aieditorintegration.js +1 -1
  95. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  97. package/src/aiquickactions/aiquickactions.js +1 -1
  98. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  99. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  100. package/src/aiquickactions/aiquickactionsui.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.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/aireviewchecklist.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  112. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  122. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  124. package/src/aitabs/aitabs.js +1 -1
  125. package/src/aitabs/tabs/aitabsview.js +1 -1
  126. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  127. 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.2.0-alpha.7",
3
+ "version": "47.2.0",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.7",
33
- "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.7",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.7",
35
- "@ckeditor/ckeditor5-core": "47.2.0-alpha.7",
36
- "@ckeditor/ckeditor5-engine": "47.2.0-alpha.7",
37
- "@ckeditor/ckeditor5-icons": "47.2.0-alpha.7",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.7",
39
- "@ckeditor/ckeditor5-table": "47.2.0-alpha.7",
40
- "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.7",
41
- "@ckeditor/ckeditor5-ui": "47.2.0-alpha.7",
42
- "@ckeditor/ckeditor5-utils": "47.2.0-alpha.7",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.7",
44
- "ckeditor5": "47.2.0-alpha.7",
45
- "ckeditor5-collaboration": "47.2.0-alpha.7",
32
+ "@ckeditor/ckeditor5-clipboard": "47.2.0",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.2.0",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.2.0",
35
+ "@ckeditor/ckeditor5-core": "47.2.0",
36
+ "@ckeditor/ckeditor5-engine": "47.2.0",
37
+ "@ckeditor/ckeditor5-icons": "47.2.0",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.2.0",
39
+ "@ckeditor/ckeditor5-table": "47.2.0",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.2.0",
41
+ "@ckeditor/ckeditor5-ui": "47.2.0",
42
+ "@ckeditor/ckeditor5-utils": "47.2.0",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0",
44
+ "ckeditor5": "47.2.0",
45
+ "ckeditor5-collaboration": "47.2.0",
46
46
  "es-toolkit": "1.39.5",
47
47
  "eventsource-parser": "3.0.2",
48
48
  "htmlparser2": "10.0.0",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24120c=_0x161f;(function(_0x2a5778,_0x17de6f){const _0x37c84f=_0x161f,_0x11c22e=_0x2a5778();while(!![]){try{const _0x897319=parseInt(_0x37c84f(0x235))/0x1+-parseInt(_0x37c84f(0x297))/0x2*(-parseInt(_0x37c84f(0x236))/0x3)+parseInt(_0x37c84f(0x1f6))/0x4*(-parseInt(_0x37c84f(0x222))/0x5)+parseInt(_0x37c84f(0x294))/0x6+-parseInt(_0x37c84f(0x239))/0x7+parseInt(_0x37c84f(0x27a))/0x8+parseInt(_0x37c84f(0x1c7))/0x9*(parseInt(_0x37c84f(0x1e9))/0xa);if(_0x897319===_0x17de6f)break;else _0x11c22e['push'](_0x11c22e['shift']());}catch(_0x329510){_0x11c22e['push'](_0x11c22e['shift']());}}}(_0x1c42,0xef228));import{Plugin as _0x2bb32f}from'ckeditor5/src/core.js';import{AIConnector as _0x1c8da2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x4ae0cf}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5bed4f,ButtonView as _0x17aeb2,ViewCollection as _0x38762f,View as _0x2e259a}from'ckeditor5/src/ui.js';import{AIEditing as _0x1b5ccb}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x18b550}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x5e4f6d,first as _0x58d6ed}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x49abb9,IconRefresh as _0x122e1a,IconNextArrow as _0x14869d,IconPreviousArrow as _0x392c5e,IconShowChangesOff as _0x127d09}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x4290e6}from'../aiballoon/aiballoon.js';function _0x161f(_0x3a98d6,_0x515810){const _0x1c425d=_0x1c42();return _0x161f=function(_0x161f2a,_0x1cfb34){_0x161f2a=_0x161f2a-0x1b8;let _0x12290a=_0x1c425d[_0x161f2a];return _0x12290a;},_0x161f(_0x3a98d6,_0x515810);}import{PromiseQueue as _0x26f8a1}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x38a231}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x3457b3}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x30b8c0}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x56d7c4,getOperationsFromReply as _0x3cc486}from'../aicore/utils/getoperationsfromreply.js';function _0x1c42(){const _0x12bb37=['static','editor','actionName','end','element','_interaction','state','hasError','reinsert','hideError','textContent','processor','open','_clearInteractionHistory','_updateNavigationUI','_filterOperationsOutsideRange','stop','changeGroups','_isNavigationNextButtonInView','AIConnector','setTemplate','signal','applySuggestion','toolbar','ck-ai-interaction-counter','AI_ACTIONS_PREVIOUS_INTERACTION','getLimitElement','getSelectionAsFragment','getCommonAncestor','_refreshInteraction','isPremiumPlugin','add','_customViews','_aiConnector','$graveyard','random','aiBalloon','version','1729288RWeVQO','operationsA','_clearErrorState','_applyOperationsAsSuggestions','_clearLoadingState','error','message','data','createPositionAfter','span','set','has','isOfficialPlugin','isCollapsed','pending','parent','replyCreated','interactionFinished','slice','includes','getAncestors','_executeAction','listenTo','modelToViewWithIds','AIActions','_navigationNextButton','3535950MbYIgz','path','_clone','58IcISTg','_navigateToPrevious','_setErrorState','model','addOperation','history','AI_ACTIONS_TRY_AGAIN','getRanges','showChangesButton','_applyChanges','AI_ACTIONS_NEXT_INTERACTION','_currentInteractionIndex','addNavigationItem','clearLoading','stickiness','first','_clearSuggestionContent','mainView','clearErrorState','enqueue','plugins','Error\x20updating\x20content\x20in\x20replyContentUpdated:','1854AGHITk','isBusy','rename','AIBalloon','execute','get','_navigationPreviousButton','sourcePosition','stopInteraction','_getExecuteDataInTable','Error\x20updating\x20content\x20in\x20replyCreated:','abort','Error\x20refreshing\x20interaction:','howMany','ck-ai-custom-action-button','TrackChangesEditing','createPositionAt','upsertCustomAIActionRating','focus','bind','root','nextSibling','_wrapWithCommonAncestors','merge','setErrorState','showLoader','icon','_setupCustomViews','_interactions','ai-request-aborted','1/1','_interactionParams','AI_ACTIONS_GENERIC_ERROR','_navigateToNext','23710wUDIka','type','createPositionBefore','bodyView','createRange','rootName','clone','config','change','areChangesVisible','isDocumentOperation','ai.availableReplyActions','position','2676oQYLxz','_balloonShowDiff','catch','isEnabled','setLoading','getFirstRange','split','documentContextContent','_isAbortError','dialogClosed','TrackChanges','start','queueEmptyPromise','map','ck-ai-navigation-button\x20ck-ai-previous-button','hideLoader','miniToolbarView','remove','isLoading','schema','documentFragment','push','length','hasPendingParts','Attribute','move','range','getRoot','_navigationCounter','updateContent','_setLoadingState','baseVersion','requires','replies','_execute','getDocumentContext','ck-ai-navigation-button\x20ck-ai-next-button','replyContentUpdated','_isNavigationCounterInView','showError','streaming','getChildAtOffset','TableSelection','setSelection','13730DlZopQ','pluginName','_stopInteraction','actionCallId','filter','document','_children','getChild','_createInteraction','toggleSuggestionDisplayMode','getOperations','insert','_disableCustomViews','accepted','toData','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','setChangeGroupState','upsertAIActionRating','1686271ArMzPi','95838UEyGeA','stopListening','removeNavigationItem','7630329kBoGWg','getSelectedContent','Error\x20updating\x20content\x20during\x20navigation:','rejected','forEach','selectionRemoved','getSelectedTableCells','_appendChild','insertSuggestion','locale','ai-no-track-changes','applyOperation','_isNavigationPreviousButtonInView','startsWith','indexOf','close','_anchorOperation','getSelectedBlocks','_promiseQueue','_displayInteractionAtIndex','batch','executeAction','replyChangeGroupStateUpdated','nodeAfter','balloonView','selection','_getExecuteDataRegular'];_0x1c42=function(){return _0x12bb37;};return _0x1c42();}import{ModelDocumentFragment as _0x2c8bff,ModelRange as _0x8113e3,ModelPosition as _0x17ca07,_DetachOperation as _0x5ebb63,transformOperationSets as _0x5e2252}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x3365fc}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x2bb32f{static get[_0x24120c(0x216)](){return[_0x1c8da2,_0x5bed4f,_0x1b5ccb,_0x4290e6,_0x30b8c0];}static get[_0x24120c(0x223)](){const _0x2e0be6=_0x24120c;return _0x2e0be6(0x292);}static get[_0x24120c(0x286)](){return!0x0;}static get[_0x24120c(0x272)](){return!0x0;}[_0x24120c(0x275)];[_0x24120c(0x1e3)]=[];[_0x24120c(0x1bc)]=0x0;[_0x24120c(0x1e6)];[_0x24120c(0x1f7)]=!0x1;[_0x24120c(0x274)]=new _0x38762f();[_0x24120c(0x1cd)];[_0x24120c(0x212)];[_0x24120c(0x21c)]=!0x1;[_0x24120c(0x293)];[_0x24120c(0x245)]=!0x1;[_0x24120c(0x266)]=!0x1;[_0x24120c(0x24b)];get[_0x24120c(0x259)](){const _0x7219dc=_0x24120c;return this[_0x7219dc(0x1e3)][this[_0x7219dc(0x1e3)][_0x7219dc(0x20c)]-0x1];}constructor(_0x417b3d){const _0xcb8bee=_0x24120c;super(_0x417b3d),this[_0xcb8bee(0x275)]=this[_0xcb8bee(0x255)][_0xcb8bee(0x1c5)][_0xcb8bee(0x1cc)](_0xcb8bee(0x267)),this[_0xcb8bee(0x284)](_0xcb8bee(0x1c8),!0x1),this[_0xcb8bee(0x24b)]=new _0x26f8a1(),this[_0xcb8bee(0x1e2)]();}[_0x24120c(0x1cf)](){const _0x42bee2=_0x24120c;this[_0x42bee2(0x224)]();}async[_0x24120c(0x24e)](_0x3e8b82,_0x3c1dae,_0x19a292){const _0x383e17=_0x24120c;if(this[_0x383e17(0x255)][_0x383e17(0x1c5)][_0x383e17(0x285)](_0x383e17(0x220))){if(this[_0x383e17(0x255)][_0x383e17(0x1c5)][_0x383e17(0x1cc)](_0x383e17(0x220))[_0x383e17(0x23f)]()){const {modelFragment:_0x2584a4,anchorData:_0x19b41c}=this[_0x383e17(0x1d0)]();return this[_0x383e17(0x28f)](_0x3e8b82,_0x2584a4,_0x19b41c,_0x3c1dae,_0x19a292);}}const {modelFragment:_0x279aa5,anchorData:_0x5515da}=this[_0x383e17(0x253)]();return this[_0x383e17(0x28f)](_0x3e8b82,_0x279aa5,_0x5515da,_0x3c1dae,_0x19a292);}[_0x24120c(0x253)](){const _0x2287c5=_0x24120c,_0x53a36c=this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x227)][_0x2287c5(0x252)];if(_0x53a36c[_0x2287c5(0x287)]){const _0x23bfea=_0x58d6ed(_0x53a36c[_0x2287c5(0x24a)]())||this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x209)][_0x2287c5(0x26e)](_0x53a36c);this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x1f1)](_0x146f85=>{const _0x156dbc=_0x2287c5;_0x146f85[_0x156dbc(0x221)](_0x23bfea,'in');});}const _0x3c80d1=_0x53a36c[_0x2287c5(0x1fb)](),_0x46d652=this[_0x2287c5(0x1dd)](this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x23a)](_0x53a36c),_0x3c80d1[_0x2287c5(0x201)],_0x3c80d1[_0x2287c5(0x257)]),_0x512767=_0x53a36c[_0x2287c5(0x1fb)]()[_0x2287c5(0x201)],_0x87df4c=new Map();let _0x13981f=_0x46d652;for(let _0x3959d8=0x0;_0x3959d8<_0x512767[_0x2287c5(0x295)][_0x2287c5(0x20c)];_0x3959d8++)_0x87df4c[_0x2287c5(0x284)](_0x13981f,_0x512767[_0x2287c5(0x295)][_0x3959d8]),_0x13981f=_0x13981f[_0x2287c5(0x229)](0x0);return{'modelFragment':_0x46d652,'anchorData':_0x87df4c};}[_0x24120c(0x1d0)](){const _0x47555d=_0x24120c,_0x187382=this[_0x47555d(0x255)][_0x47555d(0x29a)][_0x47555d(0x227)][_0x47555d(0x252)],_0x18b35d=this[_0x47555d(0x255)][_0x47555d(0x1c5)][_0x47555d(0x1cc)](_0x47555d(0x220))[_0x47555d(0x26f)](),_0x5f04ee=_0x187382[_0x47555d(0x1fb)]()[_0x47555d(0x201)][_0x47555d(0x289)][_0x47555d(0x289)],_0x183c8d=this[_0x47555d(0x1dd)](_0x18b35d,this[_0x47555d(0x255)][_0x47555d(0x29a)][_0x47555d(0x1eb)](_0x5f04ee),this[_0x47555d(0x255)][_0x47555d(0x29a)][_0x47555d(0x282)](_0x5f04ee)),_0x204094=_0x187382[_0x47555d(0x1fb)]()[_0x47555d(0x201)],_0x185277=new Map();let _0x1f13fe=_0x183c8d;for(let _0x483853=0x0;_0x483853<_0x204094[_0x47555d(0x295)][_0x47555d(0x20c)];_0x483853++)if(_0x185277[_0x47555d(0x284)](_0x1f13fe,_0x204094[_0x47555d(0x295)][_0x483853]),_0x483853<_0x204094[_0x47555d(0x295)][_0x47555d(0x20c)]-0x1)_0x1f13fe=_0x1f13fe[_0x47555d(0x229)](0x0);else{let _0x361515=_0x1f13fe[_0x47555d(0x1dc)];for(;_0x361515;)_0x185277[_0x47555d(0x284)](_0x361515,_0x204094[_0x47555d(0x295)][_0x483853]),_0x361515=_0x361515[_0x47555d(0x1dc)];}return{'modelFragment':_0x183c8d,'anchorData':_0x185277};}[_0x24120c(0x28f)](_0x1b72f9,_0x539f6c,_0x23bdbd,_0x365591,_0x365f6c){const _0x288ad6=_0x24120c,_0x35228e=this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x1cc)](_0x1b5ccb),_0x17b9b6=this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x1cc)](_0x4290e6),_0x4e09e5=this[_0x288ad6(0x255)][_0x288ad6(0x29a)][_0x288ad6(0x227)][_0x288ad6(0x252)],_0xe3c8c2=_0x35228e[_0x288ad6(0x291)](_0x539f6c),_0x210370=this[_0x288ad6(0x255)][_0x288ad6(0x281)][_0x288ad6(0x25f)][_0x288ad6(0x230)](_0xe3c8c2),_0x175f60=this[_0x288ad6(0x255)][_0x288ad6(0x29a)][_0x288ad6(0x227)][_0x288ad6(0x279)],_0x5a0bdf=[..._0x4e09e5[_0x288ad6(0x1b8)]()];let _0x1277ad=this[_0x288ad6(0x255)][_0x288ad6(0x1f0)][_0x288ad6(0x1cc)](_0x288ad6(0x1f4))||[..._0x3365fc];this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x285)](_0x288ad6(0x200))||(_0x1277ad=_0x1277ad[_0x288ad6(0x226)](_0x47ee03=>_0x288ad6(0x241)!=_0x47ee03));const _0x1bf795=new _0x4ae0cf(this[_0x288ad6(0x255)][_0x288ad6(0x242)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x288ad6(0x1e1),'customView':this[_0x288ad6(0x274)]},'showUnchangedParts':!0x0,'availableActions':_0x1277ad});return _0x17b9b6[_0x288ad6(0x260)]({'index':0x3e8*Math[_0x288ad6(0x277)]()%0x3e8,'title':_0x365591,'icon':_0x365f6c||_0x49abb9,'mainView':_0x1bf795,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x285)](_0x288ad6(0x200)),'ranges':_0x5a0bdf}),this[_0x288ad6(0x214)](_0x1bf795,_0x17b9b6),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x26a),()=>{const _0x14d0cd=_0x288ad6;this[_0x14d0cd(0x1ba)](_0x539f6c,_0x23bdbd,!0x1);}),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x241),()=>{const _0x3f49a3=_0x288ad6;this[_0x3f49a3(0x1ba)](_0x539f6c,_0x23bdbd,!0x0);}),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x23e),()=>{const _0x903a43=_0x288ad6;this[_0x903a43(0x224)](),this[_0x903a43(0x22e)]();}),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x1ff),()=>{const _0x2a6a63=_0x288ad6;if(this[_0x2a6a63(0x259)]&&this[_0x2a6a63(0x259)][_0x2a6a63(0x217)][_0x2a6a63(0x20c)]>0x0){const _0x129cf6=this[_0x2a6a63(0x259)][_0x2a6a63(0x217)][this[_0x2a6a63(0x259)][_0x2a6a63(0x217)][_0x2a6a63(0x20c)]-0x1],_0xe9deb5=_0x129cf6[_0x2a6a63(0x265)][0x0];_0xe9deb5&&_0x2a6a63(0x288)===_0xe9deb5[_0x2a6a63(0x25a)]&&_0x129cf6[_0x2a6a63(0x233)](0x0,_0x2a6a63(0x23c));}this[_0x2a6a63(0x224)](),this[_0x2a6a63(0x261)](),this[_0x2a6a63(0x237)](_0x17b9b6);}),this[_0x288ad6(0x22a)](_0x210370,_0x175f60,_0x1bf795,_0x17b9b6,_0x1b72f9);}[_0x24120c(0x1dd)](_0x42d5ee,_0x539c4,_0x278d7b){const _0x555922=_0x24120c,_0x288076=this[_0x555922(0x255)][_0x555922(0x29a)][_0x555922(0x1ed)](_0x539c4,_0x278d7b)[_0x555922(0x270)](),_0xf7bb40=_0x288076['is'](_0x555922(0x20a))?[]:_0x288076[_0x555922(0x28e)]({'includeSelf':!0x0})[_0x555922(0x28c)](0x1);if(_0xf7bb40[_0x555922(0x20c)]){const _0x2320ab=_0xf7bb40[_0x555922(0x203)](_0x302d8a=>_0x302d8a[_0x555922(0x296)](!0x1));for(let _0x1aad0f=0x1;_0x1aad0f<_0x2320ab[_0x555922(0x20c)];_0x1aad0f++)_0x2320ab[_0x1aad0f-0x1][_0x555922(0x240)](_0x2320ab[_0x1aad0f]);return _0x2320ab[_0x2320ab[_0x555922(0x20c)]-0x1][_0x555922(0x240)](_0x42d5ee),new _0x2c8bff(_0x2320ab[0x0]);}return _0x42d5ee;}async[_0x24120c(0x22a)](_0x112ef6,_0x4756b6,_0x69806c,_0x593abf,_0x57d82e){const _0x13d3a7=_0x24120c,_0x4e3047=this[_0x13d3a7(0x255)];this[_0x13d3a7(0x1e6)]={'action':_0x57d82e,'content':_0x112ef6,'version':_0x4756b6,'mainView':_0x69806c,'aiBalloon':_0x593abf};const _0x4d79bb=new _0x18b550({'connector':this[_0x13d3a7(0x275)],'editor':_0x4e3047,'content':_0x112ef6,'version':_0x4756b6,..._0x57d82e});this[_0x13d3a7(0x1e3)][_0x13d3a7(0x20b)](_0x4d79bb),_0x69806c[_0x13d3a7(0x25d)]();const _0x5e3163=(_0x47fdaf,_0x1cbb56,_0x7db5ea=!0x1,_0x7f43be=_0x13d3a7(0x21e))=>this[_0x13d3a7(0x24b)][_0x13d3a7(0x1c4)](async _0x193b55=>{const _0xa94aad=_0x13d3a7;try{const _0x1adb96=_0x3457b3({'editor':_0x4e3047,'changeGroups':_0x47fdaf[_0xa94aad(0x265)],'documentContextContent':_0x47fdaf[_0xa94aad(0x1fd)],'showDiff':_0x7db5ea,'trimUnchanged':!0x1});await _0x1cbb56[_0xa94aad(0x213)]({'parts':_0x1adb96,'renderingStrategy':_0x7f43be,'abortSignal':_0x193b55});}catch(_0x3062f9){if(this[_0xa94aad(0x1fe)](_0x3062f9))return;throw _0x3062f9;}});this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x28a),(_0x431bd3,_0xfe1d66)=>{const _0x38b754=_0x13d3a7;_0x69806c[_0x38b754(0x205)](),_0x5e3163(_0xfe1d66,_0x69806c)[_0x38b754(0x1f8)](_0x2f9fec=>{const _0x540067=_0x38b754;this[_0x540067(0x1fe)](_0x2f9fec)||(console[_0x540067(0x27f)](_0x540067(0x1d1),_0x2f9fec),this[_0x540067(0x299)](_0x4d79bb,_0x69806c));});}),this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x21b),(_0x35bc62,_0x4caa14)=>{const _0xccd214=_0x13d3a7;_0x5e3163(_0x4caa14,_0x69806c)[_0xccd214(0x1f8)](_0x1dd454=>{const _0x4a7440=_0xccd214;this[_0x4a7440(0x1fe)](_0x1dd454)||(console[_0x4a7440(0x27f)](_0x4a7440(0x1c6),_0x1dd454),this[_0x4a7440(0x299)](_0x4d79bb,_0x69806c));});}),this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x28b),async()=>{const _0x55f589=_0x13d3a7;try{await this[_0x55f589(0x27e)](_0x69806c,_0x593abf),this[_0x55f589(0x262)]();}catch(_0x3db9ed){this[_0x55f589(0x1fe)](_0x3db9ed)||(console[_0x55f589(0x27f)](_0x55f589(0x231),_0x3db9ed),this[_0x55f589(0x299)](_0x4d79bb,_0x69806c));}}),this[_0x13d3a7(0x290)](_0x69806c,_0x13d3a7(0x22b),(_0x2acbfc,{showDiff:_0x59a0f6})=>{const _0x5ee1fe=_0x13d3a7;this[_0x5ee1fe(0x1f7)]=_0x59a0f6;const _0x1d40cf=this[_0x5ee1fe(0x259)][_0x5ee1fe(0x217)][this[_0x5ee1fe(0x259)][_0x5ee1fe(0x217)][_0x5ee1fe(0x20c)]-0x1];_0x1d40cf&&_0x5e3163(_0x1d40cf,_0x69806c,_0x59a0f6,_0x5ee1fe(0x254))[_0x5ee1fe(0x1f8)](_0x156e8f=>{const _0x30e64e=_0x5ee1fe;this[_0x30e64e(0x1fe)](_0x156e8f)||(console[_0x30e64e(0x27f)](_0x30e64e(0x232),_0x156e8f),this[_0x30e64e(0x299)](_0x4d79bb,_0x69806c));});}),this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x24f),(_0x20b462,{reply:_0x50fe1f})=>{const _0x2f18c2=_0x13d3a7,_0xa2d473={'positiveCount':_0x50fe1f[_0x2f18c2(0x265)][_0x2f18c2(0x226)](_0x27b6be=>_0x2f18c2(0x22f)===_0x27b6be[_0x2f18c2(0x25a)])[_0x2f18c2(0x20c)],'totalCount':_0x50fe1f[_0x2f18c2(0x265)][_0x2f18c2(0x20c)]},_0x705b29=this[_0x2f18c2(0x259)][_0x2f18c2(0x225)],_0xd3686d=this[_0x2f18c2(0x259)][_0x2f18c2(0x256)];_0xd3686d?this[_0x2f18c2(0x275)][_0x2f18c2(0x234)](_0xd3686d,_0x705b29,_0xa2d473):this[_0x2f18c2(0x275)][_0x2f18c2(0x1d8)](_0x705b29,_0xa2d473);}),this[_0x13d3a7(0x214)](_0x69806c,_0x593abf);try{const _0x550bdd=await this[_0x13d3a7(0x259)][_0x13d3a7(0x201)]();return this[_0x13d3a7(0x262)](),_0x550bdd;}catch(_0x3c6bd9){if(this[_0x13d3a7(0x1fe)](_0x3c6bd9))return;_0x69806c[_0x13d3a7(0x205)](),this[_0x13d3a7(0x299)](_0x4d79bb,_0x69806c);}}[_0x24120c(0x1ba)](_0x55783d,_0x340491,_0x40030a){const _0x526a34=_0x24120c,_0xba20fa=this[_0x526a34(0x255)];if(_0x40030a&&!_0xba20fa[_0x526a34(0x1c5)][_0x526a34(0x285)](_0x526a34(0x200)))throw new _0x5e4f6d(_0x526a34(0x243),null);const _0x1208fe=this[_0x526a34(0x255)][_0x526a34(0x1c5)][_0x526a34(0x1cc)](_0x30b8c0),_0x2e63dc=this[_0x526a34(0x259)],_0xb09d26=this[_0x526a34(0x259)][_0x526a34(0x217)][this[_0x526a34(0x259)][_0x526a34(0x217)][_0x526a34(0x20c)]-0x1],_0x1c4587=_0xb09d26[_0x526a34(0x265)];_0xb09d26[_0x526a34(0x233)](0x0,_0x526a34(0x22f));let _0x5dce2e=_0x3cc486({'editor':_0xba20fa,'reply':_0xb09d26,'interaction':_0x2e63dc,'groups':_0x1c4587,'transform':!0x1,'documentCompare':_0x1208fe,'documentCompareOptions':{'anchor':_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x1d7)](_0x55783d,0x0),'markDeletions':_0x40030a}});_0x5dce2e=this[_0x526a34(0x263)](_0x5dce2e,_0x340491);for(const _0x22346e of _0x5dce2e)this[_0x526a34(0x249)](_0x340491,_0x22346e,_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x227)][_0x526a34(0x211)]());const _0x238f9d=_0x2e63dc[_0x526a34(0x219)]()[_0x526a34(0x279)],_0x453920=_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x227)][_0x526a34(0x29c)][_0x526a34(0x22c)](_0x238f9d),_0x20bf0f={'document':_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x227)],'useRelations':!0x1,'padWithNoOps':!0x1},_0xa24858=_0x5e2252(_0x5dce2e,_0x453920,_0x20bf0f)[_0x526a34(0x27b)];_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x1f1)](_0x3a54f8=>{const _0xb8615=_0x526a34;if(_0x3a54f8[_0xb8615(0x221)](_0xba20fa[_0xb8615(0x29a)][_0xb8615(0x227)][_0xb8615(0x252)][_0xb8615(0x1d9)]),_0x40030a)_0xba20fa[_0xb8615(0x1c5)][_0xb8615(0x1cc)](_0xb8615(0x1d6))[_0xb8615(0x27d)](_0xa24858);else{for(const _0x4130d7 of _0xa24858)_0x4130d7[_0xb8615(0x215)]=_0xba20fa[_0xb8615(0x29a)][_0xb8615(0x227)][_0xb8615(0x279)],_0x56d7c4(_0xba20fa,_0x4130d7),_0x3a54f8[_0xb8615(0x24d)][_0xb8615(0x29b)](_0x4130d7),_0xba20fa[_0xb8615(0x29a)][_0xb8615(0x244)](_0x4130d7);}}),this[_0x526a34(0x255)][_0x526a34(0x1c5)][_0x526a34(0x1cc)](_0x526a34(0x1ca))[_0x526a34(0x248)]();}[_0x24120c(0x263)](_0x1f72b0,_0x28640e){const _0x522e2f=_0x24120c;return _0x1f72b0[_0x522e2f(0x226)](_0x409bab=>{const _0x51f3e9=_0x522e2f;if(_0x51f3e9(0x1c9)==_0x409bab[_0x51f3e9(0x1ea)]){const _0x157ca7=_0x409bab[_0x51f3e9(0x1f5)][_0x51f3e9(0x250)];return!_0x28640e[_0x51f3e9(0x285)](_0x157ca7);}if(_0x409bab[_0x51f3e9(0x1ea)][_0x51f3e9(0x247)](_0x51f3e9(0x20e))>-0x1){const _0x3800c7=_0x409bab[_0x51f3e9(0x210)][_0x51f3e9(0x201)][_0x51f3e9(0x250)];return!_0x28640e[_0x51f3e9(0x285)](_0x3800c7);}return!0x0;});}[_0x24120c(0x249)](_0x57f879,_0x12737f,_0xa014e9){const _0x52a9ab=_0x24120c,_0xe0d1ca=_0x12737f[_0x52a9ab(0x1ef)]();for(const _0x2e0c15 in _0x12737f){const _0x345bbd=_0x12737f[_0x2e0c15];_0x345bbd instanceof _0x8113e3?_0x12737f[_0x2e0c15]=new _0x8113e3(_0x1d0316(_0x345bbd[_0x52a9ab(0x201)]),_0x1d0316(_0x345bbd[_0x52a9ab(0x257)])):_0x345bbd instanceof _0x17ca07&&(_0x12737f[_0x2e0c15]=_0x1d0316(_0x345bbd));}if([_0x52a9ab(0x22d),_0x52a9ab(0x20f),_0x52a9ab(0x207),_0x52a9ab(0x25c),_0x52a9ab(0x1fc),_0x52a9ab(0x1de)][_0x52a9ab(0x28d)](_0xe0d1ca[_0x52a9ab(0x1ea)])){if(_0xe0d1ca[_0x52a9ab(0x1f3)]=!0x1,_0xe0d1ca[_0x52a9ab(0x215)]=null,_0x52a9ab(0x207)==_0xe0d1ca[_0x52a9ab(0x1ea)]){const _0xe02f00=_0xe0d1ca[_0x52a9ab(0x1ce)],_0x4461e7=_0xe0d1ca[_0x52a9ab(0x1d4)];new _0x5ebb63(_0xe02f00,_0x4461e7)[_0x52a9ab(0x218)]();}else _0xe0d1ca[_0x52a9ab(0x218)]();}function _0x1d0316(_0x5e6194){const _0x1253cd=_0x52a9ab;if(_0x1253cd(0x276)==_0x5e6194[_0x1253cd(0x1db)][_0x1253cd(0x1ee)])return _0x5e6194;const _0x35145f=[];let _0x1facdb=_0x5e6194[_0x1253cd(0x1db)];for(let _0x266566=0x0;_0x266566<_0x5e6194[_0x1253cd(0x295)][_0x1253cd(0x20c)];_0x266566++){const _0x5d7048=_0x57f879[_0x1253cd(0x1cc)](_0x1facdb)||0x0;_0x35145f[_0x266566]=_0x5e6194[_0x1253cd(0x295)][_0x266566]+_0x5d7048,_0x1facdb=_0x1facdb[_0x1253cd(0x21f)](_0x5e6194[_0x1253cd(0x295)][_0x266566]);}return new _0x17ca07(_0xa014e9,_0x35145f,_0x5e6194[_0x1253cd(0x1bf)]);}}[_0x24120c(0x271)](){const _0xc983b3=_0x24120c;if(!this[_0xc983b3(0x1e6)])return;this[_0xc983b3(0x1e3)][_0xc983b3(0x20c)]>0x0&&this[_0xc983b3(0x224)](),this[_0xc983b3(0x1bc)]=0x0,this[_0xc983b3(0x1f7)]=!0x1;const {action:_0x1d4d5d,content:_0x5f073a,version:_0x12dba9,mainView:_0x4e6671,aiBalloon:_0x29b1ba}=this[_0xc983b3(0x1e6)];_0x4e6671[_0xc983b3(0x1f2)]=!0x1,_0x4e6671[_0xc983b3(0x25d)](),this[_0xc983b3(0x27c)](_0x4e6671,_0x29b1ba);const _0x37fe67=_0x4e6671;_0x37fe67[_0xc983b3(0x206)]&&_0x37fe67[_0xc983b3(0x206)][_0xc983b3(0x1b9)]&&_0x37fe67[_0xc983b3(0x206)][_0xc983b3(0x1b9)][_0xc983b3(0x284)]({'isOn':!0x1,'icon':_0x127d09}),this[_0xc983b3(0x1c1)](_0x4e6671),_0x4e6671[_0xc983b3(0x1e0)](),this[_0xc983b3(0x262)](),this[_0xc983b3(0x22a)](_0x5f073a,_0x12dba9,_0x4e6671,_0x29b1ba,_0x1d4d5d)[_0xc983b3(0x1f8)](_0x44f2c9=>{const _0x171556=_0xc983b3;this[_0x171556(0x1fe)](_0x44f2c9)||console[_0x171556(0x27f)](_0x171556(0x1d3),_0x44f2c9);});}[_0x24120c(0x1c1)](_0x2f7337){const _0x3c4050=_0x24120c,_0x5b933b=_0x2f7337[_0x3c4050(0x1ec)][_0x3c4050(0x228)];for(;_0x5b933b[_0x3c4050(0x20c)]>0x0;)_0x5b933b[_0x3c4050(0x207)](_0x5b933b[_0x3c4050(0x1c0)]);_0x2f7337[_0x3c4050(0x1ec)][_0x3c4050(0x20d)]=!0x1;}[_0x24120c(0x1fe)](_0x5125a9){const _0x4e0721=_0x24120c;return!!_0x5125a9[_0x4e0721(0x280)]&&_0x5125a9[_0x4e0721(0x280)][_0x4e0721(0x246)](_0x4e0721(0x1e4));}[_0x24120c(0x261)](){const _0xf45a83=_0x24120c;this[_0xf45a83(0x1e3)]=[],this[_0xf45a83(0x1e6)]=void 0x0,this[_0xf45a83(0x1bc)]=0x0,this[_0xf45a83(0x262)]();}[_0x24120c(0x224)](){const _0x542170=_0x24120c;this[_0x542170(0x259)]&&this[_0x542170(0x259)][_0x542170(0x264)](),this[_0x542170(0x24b)][_0x542170(0x1d2)](),this[_0x542170(0x1c8)]=!0x1;}[_0x24120c(0x1e2)](){const _0x12d05=_0x24120c,_0x1d1618=new _0x17aeb2(this[_0x12d05(0x255)][_0x12d05(0x242)]),_0x48e3f1=new _0x17aeb2(this[_0x12d05(0x255)][_0x12d05(0x242)]),_0x4c9532=new _0x2e259a(this[_0x12d05(0x255)][_0x12d05(0x242)]),_0x4bf376=new _0x17aeb2(this[_0x12d05(0x255)][_0x12d05(0x242)]);_0x1d1618[_0x12d05(0x284)]({'icon':_0x122e1a,'label':_0x38a231(this[_0x12d05(0x255)][_0x12d05(0x242)],_0x12d05(0x29d)),'tooltip':!0x0,'class':_0x12d05(0x1d5)}),_0x48e3f1[_0x12d05(0x284)]({'icon':_0x392c5e,'tooltip':_0x38a231(this[_0x12d05(0x255)][_0x12d05(0x242)],_0x12d05(0x26d)),'class':_0x12d05(0x204)}),_0x4c9532[_0x12d05(0x268)]({'tag':_0x12d05(0x283),'attributes':{'class':[_0x12d05(0x26c)]},'children':[_0x12d05(0x1e5)]}),_0x4bf376[_0x12d05(0x284)]({'icon':_0x14869d,'tooltip':_0x38a231(this[_0x12d05(0x255)][_0x12d05(0x242)],_0x12d05(0x1bb)),'class':_0x12d05(0x21a)}),_0x1d1618[_0x12d05(0x1da)](_0x12d05(0x1f9))['to'](this,_0x12d05(0x1c8),_0x3137a0=>!_0x3137a0),_0x1d1618['on'](_0x12d05(0x1cb),()=>{const _0x4b4fdb=_0x12d05;this[_0x4b4fdb(0x271)]();}),_0x48e3f1[_0x12d05(0x1da)](_0x12d05(0x1f9))['to'](this,_0x12d05(0x1c8),_0x559a60=>!_0x559a60),_0x48e3f1['on'](_0x12d05(0x1cb),()=>{const _0x4e2ac2=_0x12d05;this[_0x4e2ac2(0x298)]();}),_0x4bf376[_0x12d05(0x1da)](_0x12d05(0x1f9))['to'](this,_0x12d05(0x1c8),_0x402aba=>!_0x402aba),_0x4bf376['on'](_0x12d05(0x1cb),()=>{const _0x217fb2=_0x12d05;this[_0x217fb2(0x1e8)]();}),this[_0x12d05(0x1cd)]=_0x48e3f1,this[_0x12d05(0x212)]=_0x4c9532,this[_0x12d05(0x293)]=_0x4bf376,this[_0x12d05(0x274)][_0x12d05(0x273)](_0x1d1618);}[_0x24120c(0x298)](){const _0x230c08=_0x24120c,_0x2f1c68=this[_0x230c08(0x1e3)][_0x230c08(0x20c)];this[_0x230c08(0x1bc)]<_0x2f1c68-0x1&&this[_0x230c08(0x24c)](this[_0x230c08(0x1bc)]+0x1);}[_0x24120c(0x1e8)](){const _0xfd757b=_0x24120c;this[_0xfd757b(0x1bc)]>0x0&&this[_0xfd757b(0x24c)](this[_0xfd757b(0x1bc)]-0x1);}async[_0x24120c(0x24c)](_0x13f3d2){const _0x4cb386=_0x24120c;if(!this[_0x4cb386(0x1e6)])return;this[_0x4cb386(0x1bc)]=_0x13f3d2;const {mainView:_0x4485ca}=this[_0x4cb386(0x1e6)],_0x47d52c=this[_0x4cb386(0x1e3)][this[_0x4cb386(0x1e3)][_0x4cb386(0x20c)]-0x1-this[_0x4cb386(0x1bc)]];if(!_0x47d52c)return;if(_0x47d52c[_0x4cb386(0x25b)])return this[_0x4cb386(0x299)](_0x47d52c,_0x4485ca),void this[_0x4cb386(0x262)]();if(!_0x47d52c[_0x4cb386(0x217)][_0x4cb386(0x20c)])return;_0x4485ca[_0x4cb386(0x25d)](),this[_0x4cb386(0x1e6)]&&this[_0x4cb386(0x27c)](_0x4485ca,this[_0x4cb386(0x1e6)][_0x4cb386(0x278)]);const _0x4e5325=_0x47d52c[_0x4cb386(0x217)][_0x47d52c[_0x4cb386(0x217)][_0x4cb386(0x20c)]-0x1];if(_0x4e5325){const _0x2e7300=this[_0x4cb386(0x255)];this[_0x4cb386(0x1c1)](_0x4485ca);try{const _0x41b37e=_0x3457b3({'editor':_0x2e7300,'changeGroups':_0x4e5325[_0x4cb386(0x265)],'documentContextContent':_0x4e5325[_0x4cb386(0x1fd)],'showDiff':this[_0x4cb386(0x1f7)],'trimUnchanged':!0x1});this[_0x4cb386(0x1c1)](_0x4485ca),await new Promise(_0x58a90c=>setTimeout(_0x58a90c,0x32)),await _0x4485ca[_0x4cb386(0x213)]({'parts':_0x41b37e,'renderingStrategy':_0x4cb386(0x254),'abortSignal':new AbortController()[_0x4cb386(0x269)]});}catch(_0x14c825){this[_0x4cb386(0x1fe)](_0x14c825)||console[_0x4cb386(0x27f)](_0x4cb386(0x23b),_0x14c825);}}this[_0x4cb386(0x262)]();}[_0x24120c(0x262)](){const _0x2192d5=_0x24120c;if(!this[_0x2192d5(0x1cd)]||!this[_0x2192d5(0x212)]||!this[_0x2192d5(0x293)])return;const _0x4589d4=this[_0x2192d5(0x1e3)][_0x2192d5(0x20c)],_0x393fb9=_0x4589d4>0x1,_0x5c5f47=this[_0x2192d5(0x1e6)]?.[_0x2192d5(0x1c2)];if(_0x393fb9){this[_0x2192d5(0x245)]||this[_0x2192d5(0x21c)]||this[_0x2192d5(0x266)]||(this[_0x2192d5(0x274)][_0x2192d5(0x273)](this[_0x2192d5(0x1cd)]),_0x5c5f47?.[_0x2192d5(0x1bd)](this[_0x2192d5(0x1cd)]),this[_0x2192d5(0x245)]=!0x0,this[_0x2192d5(0x274)][_0x2192d5(0x273)](this[_0x2192d5(0x212)]),_0x5c5f47?.[_0x2192d5(0x1bd)](this[_0x2192d5(0x212)]),this[_0x2192d5(0x21c)]=!0x0,this[_0x2192d5(0x274)][_0x2192d5(0x273)](this[_0x2192d5(0x293)]),_0x5c5f47?.[_0x2192d5(0x1bd)](this[_0x2192d5(0x293)]),this[_0x2192d5(0x266)]=!0x0);const _0x5ef3c4=_0x4589d4-this[_0x2192d5(0x1bc)];this[_0x2192d5(0x212)][_0x2192d5(0x258)]&&(this[_0x2192d5(0x212)][_0x2192d5(0x258)][_0x2192d5(0x25e)]=_0x5ef3c4+'/'+_0x4589d4),this[_0x2192d5(0x1cd)][_0x2192d5(0x1f9)]=this[_0x2192d5(0x1bc)]<_0x4589d4-0x1,this[_0x2192d5(0x293)][_0x2192d5(0x1f9)]=this[_0x2192d5(0x1bc)]>0x0;}else(this[_0x2192d5(0x245)]||this[_0x2192d5(0x21c)]||this[_0x2192d5(0x266)])&&(this[_0x2192d5(0x274)][_0x2192d5(0x207)](this[_0x2192d5(0x1cd)]),_0x5c5f47?.[_0x2192d5(0x238)](this[_0x2192d5(0x1cd)]),this[_0x2192d5(0x245)]=!0x1,this[_0x2192d5(0x274)][_0x2192d5(0x207)](this[_0x2192d5(0x212)]),_0x5c5f47?.[_0x2192d5(0x238)](this[_0x2192d5(0x212)]),this[_0x2192d5(0x21c)]=!0x1,this[_0x2192d5(0x274)][_0x2192d5(0x207)](this[_0x2192d5(0x293)]),_0x5c5f47?.[_0x2192d5(0x238)](this[_0x2192d5(0x293)]),this[_0x2192d5(0x266)]=!0x1);}[_0x24120c(0x214)](_0x859906,_0x2465d3){const _0x26f9c8=_0x24120c;_0x859906[_0x26f9c8(0x1fa)](),_0x2465d3[_0x26f9c8(0x251)][_0x26f9c8(0x1fa)](),this[_0x26f9c8(0x1c8)]=!0x0;}async[_0x24120c(0x299)](_0x6c19d7,_0x279df4){const _0x22f1af=_0x24120c,_0x189e7a=_0x38a231(this[_0x22f1af(0x255)][_0x22f1af(0x242)],_0x22f1af(0x1e7));_0x279df4[_0x22f1af(0x21d)](_0x189e7a),_0x6c19d7[_0x22f1af(0x25b)]=!0x0,await this[_0x22f1af(0x24b)][_0x22f1af(0x202)],_0x279df4[_0x22f1af(0x1df)](),this[_0x22f1af(0x1e6)]?.[_0x22f1af(0x278)][_0x22f1af(0x251)][_0x22f1af(0x26b)]&&(this[_0x22f1af(0x1e6)][_0x22f1af(0x278)][_0x22f1af(0x251)][_0x22f1af(0x26b)][_0x22f1af(0x208)]=!0x0);}[_0x24120c(0x27c)](_0x471109,_0x1dee03){const _0x3d33ec=_0x24120c;_0x471109[_0x3d33ec(0x1c3)](),_0x1dee03[_0x3d33ec(0x251)][_0x3d33ec(0x26b)]&&(_0x1dee03[_0x3d33ec(0x251)][_0x3d33ec(0x26b)][_0x3d33ec(0x208)]=!0x1);}async[_0x24120c(0x27e)](_0x1489df,_0x3ea12d){const _0x19da53=_0x24120c;await this[_0x19da53(0x24b)][_0x19da53(0x202)],this[_0x19da53(0x1c8)]=!0x1,_0x1489df[_0x19da53(0x1be)](),_0x3ea12d[_0x19da53(0x251)][_0x19da53(0x1be)]();}[_0x24120c(0x22e)](){const _0x4cb45f=_0x24120c;this[_0x4cb45f(0x274)][_0x4cb45f(0x23d)](_0x5c13ab=>{const _0x94f73b=_0x4cb45f;_0x94f73b(0x1f9)in _0x5c13ab&&(_0x5c13ab[_0x94f73b(0x1f9)]=!0x1);});}}
23
+ const _0x57595f=_0x5769;(function(_0xf2ef22,_0x4b2512){const _0x37b943=_0x5769,_0x424cc4=_0xf2ef22();while(!![]){try{const _0x9fb9bd=parseInt(_0x37b943(0x1e8))/0x1+-parseInt(_0x37b943(0x25c))/0x2*(parseInt(_0x37b943(0x26c))/0x3)+parseInt(_0x37b943(0x209))/0x4+parseInt(_0x37b943(0x26b))/0x5*(-parseInt(_0x37b943(0x211))/0x6)+parseInt(_0x37b943(0x296))/0x7+-parseInt(_0x37b943(0x1d5))/0x8+-parseInt(_0x37b943(0x286))/0x9*(-parseInt(_0x37b943(0x23a))/0xa);if(_0x9fb9bd===_0x4b2512)break;else _0x424cc4['push'](_0x424cc4['shift']());}catch(_0x13348e){_0x424cc4['push'](_0x424cc4['shift']());}}}(_0x5b68,0x49471));import{Plugin as _0x152f1e}from'ckeditor5/src/core.js';import{AIConnector as _0x4a9eac}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x27d0be}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x10972b,ButtonView as _0xd83547,ViewCollection as _0x4bc455,View as _0x1885bf}from'ckeditor5/src/ui.js';import{AIEditing as _0x15338c}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x20fc31}from'./model/aiactionsinteraction.js';import{CKEditorError as _0xd2c106,first as _0x21db73}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3ddaf8,IconRefresh as _0x5991ef,IconNextArrow as _0x6d55ff,IconPreviousArrow as _0x2d06a4,IconShowChangesOff as _0x5848ae}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x4f74df}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3b0a23}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x57e83e}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0xfbc94f}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x5b68(){const _0x547a79=['get','_interactions','toggleSuggestionDisplayMode','createRange','interactionFinished','_anchorOperation','insert','baseVersion','signal','AI_ACTIONS_GENERIC_ERROR','nodeAfter','AI_ACTIONS_PREVIOUS_INTERACTION','setErrorState','first','stop','_isAbortError','_setupCustomViews','_getExecuteDataInTable','305055ZPODsO','documentFragment','replyContentUpdated','_isNavigationNextButtonInView','Error\x20updating\x20content\x20in\x20replyCreated:','locale','selection','set','_isNavigationPreviousButtonInView','TrackChangesEditing','_navigateToNext','_applyOperationsAsSuggestions','upsertAIActionRating','_updateNavigationUI','getSelectedContent','updateContent','stopInteraction','sourcePosition','actionName','message','showChangesButton','has','plugins','_clearLoadingState','bind','static','_currentInteractionIndex','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','createPositionAfter','queueEmptyPromise','dialogClosed','mainView','_children','329428nSQoAK','_isNavigationCounterInView','_wrapWithCommonAncestors','applyOperation','_navigationPreviousButton','_applyChanges','setChangeGroupState','_interaction','2669826GVRMmb','executeAction','AI_ACTIONS_TRY_AGAIN','Error\x20updating\x20content\x20in\x20replyContentUpdated:','TrackChanges','_aiConnector','model','hasError','ai.availableReplyActions','getSelectionAsFragment','howMany','bodyView','includes','modelToViewWithIds','error','areChangesVisible','getChildAtOffset','isPremiumPlugin','operationsA','AIConnector','setLoading','_clone','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','AI_ACTIONS_NEXT_INTERACTION','rootName','push','_promiseQueue','length','hideError','_customViews','clearErrorState','toolbar','close','$graveyard','split','showError','getLimitElement','_setErrorState','reinsert','start','ck-ai-interaction-counter','10pwdUfS','isDocumentOperation','hasPendingParts','_createInteraction','batch','getDocumentContext','AIBalloon','isOfficialPlugin','element','removeNavigationItem','focus','replyChangeGroupStateUpdated','Error\x20updating\x20content\x20during\x20navigation:','replies','addOperation','ai-request-aborted','parent','startsWith','config','pluginName','map','_appendChild','slice','TableSelection','type','path','_clearInteractionHistory','setTemplate','_clearErrorState','hideLoader','ck-ai-navigation-button\x20ck-ai-previous-button','getAncestors','listenTo','AIActions','11510qQqKrc','getOperations','getRoot','_getExecuteDataRegular','_navigateToPrevious','getFirstRange','ck-ai-custom-action-button','1/1','aiBalloon','execute','Error\x20refreshing\x20interaction:','_executeAction','miniToolbarView','_execute','root','5JYYvtY','222skTPaZ','history','range','position','_navigationNextButton','Attribute','change','isCollapsed','enqueue','getCommonAncestor','getSelectedTableCells','nextSibling','createPositionAt','editor','clearLoading','indexOf','toData','_setLoadingState','ai-no-track-changes','_navigationCounter','isLoading','data','open','balloonView','_balloonShowDiff','addNavigationItem','3714561kngJXM','state','pending','streaming','_refreshInteraction','ck-ai-navigation-button\x20ck-ai-next-button','requires','documentContextContent','changeGroups','isEnabled','merge','showLoader','clone','catch','textContent','_interactionParams','2807336Kpisrs','processor','actionCallId','icon','_stopInteraction','setSelection','accepted','abort','span','forEach','random','document','_filterOperationsOutsideRange','schema','getSelectedBlocks','createPositionBefore','upsertCustomAIActionRating','selectionRemoved','applySuggestion','remove','isBusy','replyCreated','_displayInteractionAtIndex','insertSuggestion','rejected','rename','getChild','filter','move','add','_disableCustomViews','version','stickiness','stopListening','getRanges','_clearSuggestionContent','end','241624iWVNxr'];_0x5b68=function(){return _0x547a79;};return _0x5b68();}import{DocumentCompare as _0x3d1240}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5cff35,getOperationsFromReply as _0x184b44}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0xa18673,ModelRange as _0xf0f489,ModelPosition as _0x1dbcac,_DetachOperation as _0x438b53,transformOperationSets as _0x21153f}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4c4aa0}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x5769(_0x24071e,_0x59b7bd){const _0x5b6826=_0x5b68();return _0x5769=function(_0x576927,_0x5b33ee){_0x576927=_0x576927-0x1d5;let _0x2b4cdb=_0x5b6826[_0x576927];return _0x2b4cdb;},_0x5769(_0x24071e,_0x59b7bd);}export class AIActions extends _0x152f1e{static get[_0x57595f(0x28c)](){return[_0x4a9eac,_0x10972b,_0x15338c,_0x4f74df,_0x3d1240];}static get[_0x57595f(0x24d)](){const _0x237358=_0x57595f;return _0x237358(0x25b);}static get[_0x57595f(0x241)](){return!0x0;}static get[_0x57595f(0x222)](){return!0x0;}[_0x57595f(0x216)];[_0x57595f(0x1d7)]=[];[_0x57595f(0x202)]=0x0;[_0x57595f(0x295)];[_0x57595f(0x284)]=!0x1;[_0x57595f(0x22e)]=new _0x4bc455();[_0x57595f(0x20d)];[_0x57595f(0x27f)];[_0x57595f(0x20a)]=!0x1;[_0x57595f(0x270)];[_0x57595f(0x1f0)]=!0x1;[_0x57595f(0x1eb)]=!0x1;[_0x57595f(0x22b)];get[_0x57595f(0x210)](){const _0x5befaf=_0x57595f;return this[_0x5befaf(0x1d7)][this[_0x5befaf(0x1d7)][_0x5befaf(0x22c)]-0x1];}constructor(_0x3eab4f){const _0x11b5c3=_0x57595f;super(_0x3eab4f),this[_0x11b5c3(0x216)]=this[_0x11b5c3(0x279)][_0x11b5c3(0x1fe)][_0x11b5c3(0x1d6)](_0x11b5c3(0x224)),this[_0x11b5c3(0x1ef)](_0x11b5c3(0x2aa),!0x1),this[_0x11b5c3(0x22b)]=new _0x3b0a23(),this[_0x11b5c3(0x1e6)]();}[_0x57595f(0x1f8)](){const _0x4ea86f=_0x57595f;this[_0x4ea86f(0x29a)]();}async[_0x57595f(0x212)](_0x120848,_0x13b12b,_0x59e305){const _0x14afd1=_0x57595f;if(this[_0x14afd1(0x279)][_0x14afd1(0x1fe)][_0x14afd1(0x1fd)](_0x14afd1(0x251))){if(this[_0x14afd1(0x279)][_0x14afd1(0x1fe)][_0x14afd1(0x1d6)](_0x14afd1(0x251))[_0x14afd1(0x276)]()){const {modelFragment:_0x41867f,anchorData:_0x545d32}=this[_0x14afd1(0x1e7)]();return this[_0x14afd1(0x267)](_0x120848,_0x41867f,_0x545d32,_0x13b12b,_0x59e305);}}const {modelFragment:_0x563372,anchorData:_0x56f4b7}=this[_0x14afd1(0x25f)]();return this[_0x14afd1(0x267)](_0x120848,_0x563372,_0x56f4b7,_0x13b12b,_0x59e305);}[_0x57595f(0x25f)](){const _0x3b660f=_0x57595f,_0x7cdc0d=this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x2a1)][_0x3b660f(0x1ee)];if(_0x7cdc0d[_0x3b660f(0x273)]){const _0x25914b=_0x21db73(_0x7cdc0d[_0x3b660f(0x2a4)]())||this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x2a3)][_0x3b660f(0x235)](_0x7cdc0d);this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x272)](_0x5e7dcd=>{const _0x56313e=_0x3b660f;_0x5e7dcd[_0x56313e(0x29b)](_0x25914b,'in');});}const _0x404f80=_0x7cdc0d[_0x3b660f(0x261)](),_0x315657=this[_0x3b660f(0x20b)](this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x1f6)](_0x7cdc0d),_0x404f80[_0x3b660f(0x238)],_0x404f80[_0x3b660f(0x2ba)]),_0x59a33d=_0x7cdc0d[_0x3b660f(0x261)]()[_0x3b660f(0x238)],_0x203ae1=new Map();let _0x30a22c=_0x315657;for(let _0x1f78a5=0x0;_0x1f78a5<_0x59a33d[_0x3b660f(0x253)][_0x3b660f(0x22c)];_0x1f78a5++)_0x203ae1[_0x3b660f(0x1ef)](_0x30a22c,_0x59a33d[_0x3b660f(0x253)][_0x1f78a5]),_0x30a22c=_0x30a22c[_0x3b660f(0x2b0)](0x0);return{'modelFragment':_0x315657,'anchorData':_0x203ae1};}[_0x57595f(0x1e7)](){const _0x474e10=_0x57595f,_0xb87029=this[_0x474e10(0x279)][_0x474e10(0x217)][_0x474e10(0x2a1)][_0x474e10(0x1ee)],_0x44278e=this[_0x474e10(0x279)][_0x474e10(0x1fe)][_0x474e10(0x1d6)](_0x474e10(0x251))[_0x474e10(0x21a)](),_0x20125d=_0xb87029[_0x474e10(0x261)]()[_0x474e10(0x238)][_0x474e10(0x24a)][_0x474e10(0x24a)],_0x48a3fc=this[_0x474e10(0x20b)](_0x44278e,this[_0x474e10(0x279)][_0x474e10(0x217)][_0x474e10(0x2a5)](_0x20125d),this[_0x474e10(0x279)][_0x474e10(0x217)][_0x474e10(0x204)](_0x20125d)),_0x213d40=_0xb87029[_0x474e10(0x261)]()[_0x474e10(0x238)],_0x740323=new Map();let _0x4f4eec=_0x48a3fc;for(let _0x4efe33=0x0;_0x4efe33<_0x213d40[_0x474e10(0x253)][_0x474e10(0x22c)];_0x4efe33++)if(_0x740323[_0x474e10(0x1ef)](_0x4f4eec,_0x213d40[_0x474e10(0x253)][_0x4efe33]),_0x4efe33<_0x213d40[_0x474e10(0x253)][_0x474e10(0x22c)]-0x1)_0x4f4eec=_0x4f4eec[_0x474e10(0x2b0)](0x0);else{let _0x3bcd9e=_0x4f4eec[_0x474e10(0x277)];for(;_0x3bcd9e;)_0x740323[_0x474e10(0x1ef)](_0x3bcd9e,_0x213d40[_0x474e10(0x253)][_0x4efe33]),_0x3bcd9e=_0x3bcd9e[_0x474e10(0x277)];}return{'modelFragment':_0x48a3fc,'anchorData':_0x740323};}[_0x57595f(0x267)](_0x1a8f57,_0x48241e,_0xb2eca8,_0x502f7c,_0xb4a811){const _0x5ab294=_0x57595f,_0x22c4c0=this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1d6)](_0x15338c),_0xc6cb4c=this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1d6)](_0x4f74df),_0x3ae311=this[_0x5ab294(0x279)][_0x5ab294(0x217)][_0x5ab294(0x2a1)][_0x5ab294(0x1ee)],_0x5e7229=_0x22c4c0[_0x5ab294(0x21e)](_0x48241e),_0x574fc4=this[_0x5ab294(0x279)][_0x5ab294(0x281)][_0x5ab294(0x297)][_0x5ab294(0x27c)](_0x5e7229),_0x4e4ccb=this[_0x5ab294(0x279)][_0x5ab294(0x217)][_0x5ab294(0x2a1)][_0x5ab294(0x2b5)],_0x102b9c=[..._0x3ae311[_0x5ab294(0x2b8)]()];let _0x1a2fff=this[_0x5ab294(0x279)][_0x5ab294(0x24c)][_0x5ab294(0x1d6)](_0x5ab294(0x219))||[..._0x4c4aa0];this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1fd)](_0x5ab294(0x215))||(_0x1a2fff=_0x1a2fff[_0x5ab294(0x2b1)](_0x37f752=>_0x5ab294(0x2ad)!=_0x37f752));const _0x1dadff=new _0x27d0be(this[_0x5ab294(0x279)][_0x5ab294(0x1ed)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x5ab294(0x299),'customView':this[_0x5ab294(0x22e)]},'showUnchangedParts':!0x0,'availableActions':_0x1a2fff});return _0xc6cb4c[_0x5ab294(0x282)]({'index':0x3e8*Math[_0x5ab294(0x2a0)]()%0x3e8,'title':_0x502f7c,'icon':_0xb4a811||_0x3ddaf8,'mainView':_0x1dadff,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1fd)](_0x5ab294(0x215)),'ranges':_0x102b9c}),this[_0x5ab294(0x27d)](_0x1dadff,_0xc6cb4c),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x2a8),()=>{const _0x64959e=_0x5ab294;this[_0x64959e(0x20e)](_0x48241e,_0xb2eca8,!0x1);}),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x2ad),()=>{const _0x482252=_0x5ab294;this[_0x482252(0x20e)](_0x48241e,_0xb2eca8,!0x0);}),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x2a7),()=>{const _0x1c60c8=_0x5ab294;this[_0x1c60c8(0x29a)](),this[_0x1c60c8(0x2b4)]();}),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x206),()=>{const _0x372054=_0x5ab294;if(this[_0x372054(0x210)]&&this[_0x372054(0x210)][_0x372054(0x247)][_0x372054(0x22c)]>0x0){const _0x1148aa=this[_0x372054(0x210)][_0x372054(0x247)][this[_0x372054(0x210)][_0x372054(0x247)][_0x372054(0x22c)]-0x1],_0x394b6b=_0x1148aa[_0x372054(0x28e)][0x0];_0x394b6b&&_0x372054(0x288)===_0x394b6b[_0x372054(0x287)]&&_0x1148aa[_0x372054(0x20f)](0x0,_0x372054(0x2ae));}this[_0x372054(0x29a)](),this[_0x372054(0x254)](),this[_0x372054(0x2b7)](_0xc6cb4c);}),this[_0x5ab294(0x23d)](_0x574fc4,_0x4e4ccb,_0x1dadff,_0xc6cb4c,_0x1a8f57);}[_0x57595f(0x20b)](_0x43192c,_0x177637,_0x271976){const _0x4bb163=_0x57595f,_0x2a449a=this[_0x4bb163(0x279)][_0x4bb163(0x217)][_0x4bb163(0x1d9)](_0x177637,_0x271976)[_0x4bb163(0x275)](),_0x19e6f8=_0x2a449a['is'](_0x4bb163(0x1e9))?[]:_0x2a449a[_0x4bb163(0x259)]({'includeSelf':!0x0})[_0x4bb163(0x250)](0x1);if(_0x19e6f8[_0x4bb163(0x22c)]){const _0x1c6b18=_0x19e6f8[_0x4bb163(0x24e)](_0x25ba0b=>_0x25ba0b[_0x4bb163(0x226)](!0x1));for(let _0x3099f8=0x1;_0x3099f8<_0x1c6b18[_0x4bb163(0x22c)];_0x3099f8++)_0x1c6b18[_0x3099f8-0x1][_0x4bb163(0x24f)](_0x1c6b18[_0x3099f8]);return _0x1c6b18[_0x1c6b18[_0x4bb163(0x22c)]-0x1][_0x4bb163(0x24f)](_0x43192c),new _0xa18673(_0x1c6b18[0x0]);}return _0x43192c;}async[_0x57595f(0x23d)](_0x50a477,_0x566807,_0x35403e,_0x10b529,_0x532a7a){const _0x241a78=_0x57595f,_0xcb323a=this[_0x241a78(0x279)];this[_0x241a78(0x295)]={'action':_0x532a7a,'content':_0x50a477,'version':_0x566807,'mainView':_0x35403e,'aiBalloon':_0x10b529};const _0x5d56d0=new _0x20fc31({'connector':this[_0x241a78(0x216)],'editor':_0xcb323a,'content':_0x50a477,'version':_0x566807,..._0x532a7a});this[_0x241a78(0x1d7)][_0x241a78(0x22a)](_0x5d56d0),_0x35403e[_0x241a78(0x22d)]();const _0x2e41dd=(_0x3819b2,_0x3ec36f,_0x1fc6c9=!0x1,_0x305f0f=_0x241a78(0x289))=>this[_0x241a78(0x22b)][_0x241a78(0x274)](async _0x348bff=>{const _0x12459a=_0x241a78;try{const _0x2f8984=_0xfbc94f({'editor':_0xcb323a,'changeGroups':_0x3819b2[_0x12459a(0x28e)],'documentContextContent':_0x3819b2[_0x12459a(0x28d)],'showDiff':_0x1fc6c9,'trimUnchanged':!0x1});await _0x3ec36f[_0x12459a(0x1f7)]({'parts':_0x2f8984,'renderingStrategy':_0x305f0f,'abortSignal':_0x348bff});}catch(_0x385594){if(this[_0x12459a(0x1e5)](_0x385594))return;throw _0x385594;}});this[_0x241a78(0x210)]['on'](_0x241a78(0x2ab),(_0x1d0169,_0x3eb4f1)=>{const _0x3d2240=_0x241a78;_0x35403e[_0x3d2240(0x257)](),_0x2e41dd(_0x3eb4f1,_0x35403e)[_0x3d2240(0x293)](_0x571d55=>{const _0x155f6a=_0x3d2240;this[_0x155f6a(0x1e5)](_0x571d55)||(console[_0x155f6a(0x21f)](_0x155f6a(0x1ec),_0x571d55),this[_0x155f6a(0x236)](_0x5d56d0,_0x35403e));});}),this[_0x241a78(0x210)]['on'](_0x241a78(0x1ea),(_0x561d5b,_0x1e9071)=>{const _0x5731ef=_0x241a78;_0x2e41dd(_0x1e9071,_0x35403e)[_0x5731ef(0x293)](_0x224a55=>{const _0xbb1f59=_0x5731ef;this[_0xbb1f59(0x1e5)](_0x224a55)||(console[_0xbb1f59(0x21f)](_0xbb1f59(0x214),_0x224a55),this[_0xbb1f59(0x236)](_0x5d56d0,_0x35403e));});}),this[_0x241a78(0x210)]['on'](_0x241a78(0x1da),async()=>{const _0x3db328=_0x241a78;try{await this[_0x3db328(0x1ff)](_0x35403e,_0x10b529),this[_0x3db328(0x1f5)]();}catch(_0x1cb152){this[_0x3db328(0x1e5)](_0x1cb152)||(console[_0x3db328(0x21f)](_0x3db328(0x203),_0x1cb152),this[_0x3db328(0x236)](_0x5d56d0,_0x35403e));}}),this[_0x241a78(0x25a)](_0x35403e,_0x241a78(0x1d8),(_0x25ea9e,{showDiff:_0x36e723})=>{const _0x51a389=_0x241a78;this[_0x51a389(0x284)]=_0x36e723;const _0xf52cbe=this[_0x51a389(0x210)][_0x51a389(0x247)][this[_0x51a389(0x210)][_0x51a389(0x247)][_0x51a389(0x22c)]-0x1];_0xf52cbe&&_0x2e41dd(_0xf52cbe,_0x35403e,_0x36e723,_0x51a389(0x201))[_0x51a389(0x293)](_0x22e200=>{const _0x1cd559=_0x51a389;this[_0x1cd559(0x1e5)](_0x22e200)||(console[_0x1cd559(0x21f)](_0x1cd559(0x227),_0x22e200),this[_0x1cd559(0x236)](_0x5d56d0,_0x35403e));});}),this[_0x241a78(0x210)]['on'](_0x241a78(0x245),(_0x4e6290,{reply:_0x456810})=>{const _0x1e3860=_0x241a78,_0x19334f={'positiveCount':_0x456810[_0x1e3860(0x28e)][_0x1e3860(0x2b1)](_0x2f0b9f=>_0x1e3860(0x29c)===_0x2f0b9f[_0x1e3860(0x287)])[_0x1e3860(0x22c)],'totalCount':_0x456810[_0x1e3860(0x28e)][_0x1e3860(0x22c)]},_0x25d072=this[_0x1e3860(0x210)][_0x1e3860(0x298)],_0x90376c=this[_0x1e3860(0x210)][_0x1e3860(0x1fa)];_0x90376c?this[_0x1e3860(0x216)][_0x1e3860(0x1f4)](_0x90376c,_0x25d072,_0x19334f):this[_0x1e3860(0x216)][_0x1e3860(0x2a6)](_0x25d072,_0x19334f);}),this[_0x241a78(0x27d)](_0x35403e,_0x10b529);try{const _0x195d6f=await this[_0x241a78(0x210)][_0x241a78(0x238)]();return this[_0x241a78(0x1f5)](),_0x195d6f;}catch(_0x1f1e17){if(this[_0x241a78(0x1e5)](_0x1f1e17))return;_0x35403e[_0x241a78(0x257)](),this[_0x241a78(0x236)](_0x5d56d0,_0x35403e);}}[_0x57595f(0x20e)](_0x81d88b,_0x5708c3,_0x15b00f){const _0x4383e9=_0x57595f,_0x48d05c=this[_0x4383e9(0x279)];if(_0x15b00f&&!_0x48d05c[_0x4383e9(0x1fe)][_0x4383e9(0x1fd)](_0x4383e9(0x215)))throw new _0xd2c106(_0x4383e9(0x27e),null);const _0x23a2ac=this[_0x4383e9(0x279)][_0x4383e9(0x1fe)][_0x4383e9(0x1d6)](_0x3d1240),_0x4bba39=this[_0x4383e9(0x210)],_0x13573b=this[_0x4383e9(0x210)][_0x4383e9(0x247)][this[_0x4383e9(0x210)][_0x4383e9(0x247)][_0x4383e9(0x22c)]-0x1],_0x351805=_0x13573b[_0x4383e9(0x28e)];_0x13573b[_0x4383e9(0x20f)](0x0,_0x4383e9(0x29c));let _0x5a061b=_0x184b44({'editor':_0x48d05c,'reply':_0x13573b,'interaction':_0x4bba39,'groups':_0x351805,'transform':!0x1,'documentCompare':_0x23a2ac,'documentCompareOptions':{'anchor':_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x278)](_0x81d88b,0x0),'markDeletions':_0x15b00f}});_0x5a061b=this[_0x4383e9(0x2a2)](_0x5a061b,_0x5708c3);for(const _0x133d55 of _0x5a061b)this[_0x4383e9(0x1db)](_0x5708c3,_0x133d55,_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x2a1)][_0x4383e9(0x25e)]());const _0x5494d8=_0x4bba39[_0x4383e9(0x23f)]()[_0x4383e9(0x2b5)],_0x3b1540=_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x2a1)][_0x4383e9(0x26d)][_0x4383e9(0x25d)](_0x5494d8),_0x263d72={'document':_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x2a1)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2b837c=_0x21153f(_0x5a061b,_0x3b1540,_0x263d72)[_0x4383e9(0x223)];_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x272)](_0x10b387=>{const _0x3446a3=_0x4383e9;if(_0x10b387[_0x3446a3(0x29b)](_0x48d05c[_0x3446a3(0x217)][_0x3446a3(0x2a1)][_0x3446a3(0x1ee)][_0x3446a3(0x244)]),_0x15b00f)_0x48d05c[_0x3446a3(0x1fe)][_0x3446a3(0x1d6)](_0x3446a3(0x1f1))[_0x3446a3(0x1f3)](_0x2b837c);else{for(const _0x57d93a of _0x2b837c)_0x57d93a[_0x3446a3(0x1dd)]=_0x48d05c[_0x3446a3(0x217)][_0x3446a3(0x2a1)][_0x3446a3(0x2b5)],_0x5cff35(_0x48d05c,_0x57d93a),_0x10b387[_0x3446a3(0x23e)][_0x3446a3(0x248)](_0x57d93a),_0x48d05c[_0x3446a3(0x217)][_0x3446a3(0x20c)](_0x57d93a);}}),this[_0x4383e9(0x279)][_0x4383e9(0x1fe)][_0x4383e9(0x1d6)](_0x4383e9(0x240))[_0x4383e9(0x231)]();}[_0x57595f(0x2a2)](_0x18be05,_0x3a09e){const _0x3c8ae8=_0x57595f;return _0x18be05[_0x3c8ae8(0x2b1)](_0x78f20a=>{const _0x1ce061=_0x3c8ae8;if(_0x1ce061(0x2af)==_0x78f20a[_0x1ce061(0x252)]){const _0x2cb987=_0x78f20a[_0x1ce061(0x26f)][_0x1ce061(0x1e0)];return!_0x3a09e[_0x1ce061(0x1fd)](_0x2cb987);}if(_0x78f20a[_0x1ce061(0x252)][_0x1ce061(0x27b)](_0x1ce061(0x271))>-0x1){const _0x212307=_0x78f20a[_0x1ce061(0x26e)][_0x1ce061(0x238)][_0x1ce061(0x1e0)];return!_0x3a09e[_0x1ce061(0x1fd)](_0x212307);}return!0x0;});}[_0x57595f(0x1db)](_0x3a71f7,_0x4fbfdd,_0x753c94){const _0x4a8bd9=_0x57595f,_0x250569=_0x4fbfdd[_0x4a8bd9(0x292)]();for(const _0x35dc21 in _0x4fbfdd){const _0x1a0438=_0x4fbfdd[_0x35dc21];_0x1a0438 instanceof _0xf0f489?_0x4fbfdd[_0x35dc21]=new _0xf0f489(_0x112722(_0x1a0438[_0x4a8bd9(0x238)]),_0x112722(_0x1a0438[_0x4a8bd9(0x2ba)])):_0x1a0438 instanceof _0x1dbcac&&(_0x4fbfdd[_0x35dc21]=_0x112722(_0x1a0438));}if([_0x4a8bd9(0x1dc),_0x4a8bd9(0x2b2),_0x4a8bd9(0x2a9),_0x4a8bd9(0x237),_0x4a8bd9(0x233),_0x4a8bd9(0x290)][_0x4a8bd9(0x21d)](_0x250569[_0x4a8bd9(0x252)])){if(_0x250569[_0x4a8bd9(0x23b)]=!0x1,_0x250569[_0x4a8bd9(0x1dd)]=null,_0x4a8bd9(0x2a9)==_0x250569[_0x4a8bd9(0x252)]){const _0x54f5e3=_0x250569[_0x4a8bd9(0x1f9)],_0x4232c5=_0x250569[_0x4a8bd9(0x21b)];new _0x438b53(_0x54f5e3,_0x4232c5)[_0x4a8bd9(0x269)]();}else _0x250569[_0x4a8bd9(0x269)]();}function _0x112722(_0x26376c){const _0x1c861f=_0x4a8bd9;if(_0x1c861f(0x232)==_0x26376c[_0x1c861f(0x26a)][_0x1c861f(0x229)])return _0x26376c;const _0x165427=[];let _0x576f4b=_0x26376c[_0x1c861f(0x26a)];for(let _0x231d9e=0x0;_0x231d9e<_0x26376c[_0x1c861f(0x253)][_0x1c861f(0x22c)];_0x231d9e++){const _0x5cf29e=_0x3a71f7[_0x1c861f(0x1d6)](_0x576f4b)||0x0;_0x165427[_0x231d9e]=_0x26376c[_0x1c861f(0x253)][_0x231d9e]+_0x5cf29e,_0x576f4b=_0x576f4b[_0x1c861f(0x221)](_0x26376c[_0x1c861f(0x253)][_0x231d9e]);}return new _0x1dbcac(_0x753c94,_0x165427,_0x26376c[_0x1c861f(0x2b6)]);}}[_0x57595f(0x28a)](){const _0x19e154=_0x57595f;if(!this[_0x19e154(0x295)])return;this[_0x19e154(0x1d7)][_0x19e154(0x22c)]>0x0&&this[_0x19e154(0x29a)](),this[_0x19e154(0x202)]=0x0,this[_0x19e154(0x284)]=!0x1;const {action:_0xef2dfe,content:_0x2c935e,version:_0x2bacab,mainView:_0x50ea9c,aiBalloon:_0x19eb7c}=this[_0x19e154(0x295)];_0x50ea9c[_0x19e154(0x220)]=!0x1,_0x50ea9c[_0x19e154(0x22d)](),this[_0x19e154(0x256)](_0x50ea9c,_0x19eb7c);const _0x23aef8=_0x50ea9c;_0x23aef8[_0x19e154(0x268)]&&_0x23aef8[_0x19e154(0x268)][_0x19e154(0x1fc)]&&_0x23aef8[_0x19e154(0x268)][_0x19e154(0x1fc)][_0x19e154(0x1ef)]({'isOn':!0x1,'icon':_0x5848ae}),this[_0x19e154(0x2b9)](_0x50ea9c),_0x50ea9c[_0x19e154(0x291)](),this[_0x19e154(0x1f5)](),this[_0x19e154(0x23d)](_0x2c935e,_0x2bacab,_0x50ea9c,_0x19eb7c,_0xef2dfe)[_0x19e154(0x293)](_0xf7d925=>{const _0x23bed1=_0x19e154;this[_0x23bed1(0x1e5)](_0xf7d925)||console[_0x23bed1(0x21f)](_0x23bed1(0x266),_0xf7d925);});}[_0x57595f(0x2b9)](_0x4b3de9){const _0x4529a3=_0x57595f,_0x16c52f=_0x4b3de9[_0x4529a3(0x21c)][_0x4529a3(0x208)];for(;_0x16c52f[_0x4529a3(0x22c)]>0x0;)_0x16c52f[_0x4529a3(0x2a9)](_0x16c52f[_0x4529a3(0x1e3)]);_0x4b3de9[_0x4529a3(0x21c)][_0x4529a3(0x23c)]=!0x1;}[_0x57595f(0x1e5)](_0x57479c){const _0x18f951=_0x57595f;return!!_0x57479c[_0x18f951(0x1fb)]&&_0x57479c[_0x18f951(0x1fb)][_0x18f951(0x24b)](_0x18f951(0x249));}[_0x57595f(0x254)](){const _0x449371=_0x57595f;this[_0x449371(0x1d7)]=[],this[_0x449371(0x295)]=void 0x0,this[_0x449371(0x202)]=0x0,this[_0x449371(0x1f5)]();}[_0x57595f(0x29a)](){const _0x462dd7=_0x57595f;this[_0x462dd7(0x210)]&&this[_0x462dd7(0x210)][_0x462dd7(0x1e4)](),this[_0x462dd7(0x22b)][_0x462dd7(0x29d)](),this[_0x462dd7(0x2aa)]=!0x1;}[_0x57595f(0x1e6)](){const _0x1ec21e=_0x57595f,_0x3884d0=new _0xd83547(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]),_0x1092de=new _0xd83547(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]),_0x106db0=new _0x1885bf(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]),_0x2a8614=new _0xd83547(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]);_0x3884d0[_0x1ec21e(0x1ef)]({'icon':_0x5991ef,'label':_0x57e83e(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)],_0x1ec21e(0x213)),'tooltip':!0x0,'class':_0x1ec21e(0x262)}),_0x1092de[_0x1ec21e(0x1ef)]({'icon':_0x2d06a4,'tooltip':_0x57e83e(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)],_0x1ec21e(0x1e1)),'class':_0x1ec21e(0x258)}),_0x106db0[_0x1ec21e(0x255)]({'tag':_0x1ec21e(0x29e),'attributes':{'class':[_0x1ec21e(0x239)]},'children':[_0x1ec21e(0x263)]}),_0x2a8614[_0x1ec21e(0x1ef)]({'icon':_0x6d55ff,'tooltip':_0x57e83e(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)],_0x1ec21e(0x228)),'class':_0x1ec21e(0x28b)}),_0x3884d0[_0x1ec21e(0x200)](_0x1ec21e(0x28f))['to'](this,_0x1ec21e(0x2aa),_0x40b1ac=>!_0x40b1ac),_0x3884d0['on'](_0x1ec21e(0x265),()=>{const _0x34aaf1=_0x1ec21e;this[_0x34aaf1(0x28a)]();}),_0x1092de[_0x1ec21e(0x200)](_0x1ec21e(0x28f))['to'](this,_0x1ec21e(0x2aa),_0x57fc15=>!_0x57fc15),_0x1092de['on'](_0x1ec21e(0x265),()=>{const _0x2a3686=_0x1ec21e;this[_0x2a3686(0x260)]();}),_0x2a8614[_0x1ec21e(0x200)](_0x1ec21e(0x28f))['to'](this,_0x1ec21e(0x2aa),_0x582f7c=>!_0x582f7c),_0x2a8614['on'](_0x1ec21e(0x265),()=>{const _0x412098=_0x1ec21e;this[_0x412098(0x1f2)]();}),this[_0x1ec21e(0x20d)]=_0x1092de,this[_0x1ec21e(0x27f)]=_0x106db0,this[_0x1ec21e(0x270)]=_0x2a8614,this[_0x1ec21e(0x22e)][_0x1ec21e(0x2b3)](_0x3884d0);}[_0x57595f(0x260)](){const _0x27d121=_0x57595f,_0x1e8ea7=this[_0x27d121(0x1d7)][_0x27d121(0x22c)];this[_0x27d121(0x202)]<_0x1e8ea7-0x1&&this[_0x27d121(0x2ac)](this[_0x27d121(0x202)]+0x1);}[_0x57595f(0x1f2)](){const _0x4bf844=_0x57595f;this[_0x4bf844(0x202)]>0x0&&this[_0x4bf844(0x2ac)](this[_0x4bf844(0x202)]-0x1);}async[_0x57595f(0x2ac)](_0x4bd89e){const _0x4547ac=_0x57595f;if(!this[_0x4547ac(0x295)])return;this[_0x4547ac(0x202)]=_0x4bd89e;const {mainView:_0xc4018f}=this[_0x4547ac(0x295)],_0x480631=this[_0x4547ac(0x1d7)][this[_0x4547ac(0x1d7)][_0x4547ac(0x22c)]-0x1-this[_0x4547ac(0x202)]];if(!_0x480631)return;if(_0x480631[_0x4547ac(0x218)])return this[_0x4547ac(0x236)](_0x480631,_0xc4018f),void this[_0x4547ac(0x1f5)]();if(!_0x480631[_0x4547ac(0x247)][_0x4547ac(0x22c)])return;_0xc4018f[_0x4547ac(0x22d)](),this[_0x4547ac(0x295)]&&this[_0x4547ac(0x256)](_0xc4018f,this[_0x4547ac(0x295)][_0x4547ac(0x264)]);const _0x548d8a=_0x480631[_0x4547ac(0x247)][_0x480631[_0x4547ac(0x247)][_0x4547ac(0x22c)]-0x1];if(_0x548d8a){const _0x40f6f6=this[_0x4547ac(0x279)];this[_0x4547ac(0x2b9)](_0xc4018f);try{const _0xd5de6=_0xfbc94f({'editor':_0x40f6f6,'changeGroups':_0x548d8a[_0x4547ac(0x28e)],'documentContextContent':_0x548d8a[_0x4547ac(0x28d)],'showDiff':this[_0x4547ac(0x284)],'trimUnchanged':!0x1});this[_0x4547ac(0x2b9)](_0xc4018f),await new Promise(_0x20c0de=>setTimeout(_0x20c0de,0x32)),await _0xc4018f[_0x4547ac(0x1f7)]({'parts':_0xd5de6,'renderingStrategy':_0x4547ac(0x201),'abortSignal':new AbortController()[_0x4547ac(0x1de)]});}catch(_0x42d012){this[_0x4547ac(0x1e5)](_0x42d012)||console[_0x4547ac(0x21f)](_0x4547ac(0x246),_0x42d012);}}this[_0x4547ac(0x1f5)]();}[_0x57595f(0x1f5)](){const _0x5d7df3=_0x57595f;if(!this[_0x5d7df3(0x20d)]||!this[_0x5d7df3(0x27f)]||!this[_0x5d7df3(0x270)])return;const _0x37cdac=this[_0x5d7df3(0x1d7)][_0x5d7df3(0x22c)],_0x15ebd2=_0x37cdac>0x1,_0x306b9d=this[_0x5d7df3(0x295)]?.[_0x5d7df3(0x207)];if(_0x15ebd2){this[_0x5d7df3(0x1f0)]||this[_0x5d7df3(0x20a)]||this[_0x5d7df3(0x1eb)]||(this[_0x5d7df3(0x22e)][_0x5d7df3(0x2b3)](this[_0x5d7df3(0x20d)]),_0x306b9d?.[_0x5d7df3(0x285)](this[_0x5d7df3(0x20d)]),this[_0x5d7df3(0x1f0)]=!0x0,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2b3)](this[_0x5d7df3(0x27f)]),_0x306b9d?.[_0x5d7df3(0x285)](this[_0x5d7df3(0x27f)]),this[_0x5d7df3(0x20a)]=!0x0,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2b3)](this[_0x5d7df3(0x270)]),_0x306b9d?.[_0x5d7df3(0x285)](this[_0x5d7df3(0x270)]),this[_0x5d7df3(0x1eb)]=!0x0);const _0x1fac61=_0x37cdac-this[_0x5d7df3(0x202)];this[_0x5d7df3(0x27f)][_0x5d7df3(0x242)]&&(this[_0x5d7df3(0x27f)][_0x5d7df3(0x242)][_0x5d7df3(0x294)]=_0x1fac61+'/'+_0x37cdac),this[_0x5d7df3(0x20d)][_0x5d7df3(0x28f)]=this[_0x5d7df3(0x202)]<_0x37cdac-0x1,this[_0x5d7df3(0x270)][_0x5d7df3(0x28f)]=this[_0x5d7df3(0x202)]>0x0;}else(this[_0x5d7df3(0x1f0)]||this[_0x5d7df3(0x20a)]||this[_0x5d7df3(0x1eb)])&&(this[_0x5d7df3(0x22e)][_0x5d7df3(0x2a9)](this[_0x5d7df3(0x20d)]),_0x306b9d?.[_0x5d7df3(0x243)](this[_0x5d7df3(0x20d)]),this[_0x5d7df3(0x1f0)]=!0x1,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2a9)](this[_0x5d7df3(0x27f)]),_0x306b9d?.[_0x5d7df3(0x243)](this[_0x5d7df3(0x27f)]),this[_0x5d7df3(0x20a)]=!0x1,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2a9)](this[_0x5d7df3(0x270)]),_0x306b9d?.[_0x5d7df3(0x243)](this[_0x5d7df3(0x270)]),this[_0x5d7df3(0x1eb)]=!0x1);}[_0x57595f(0x27d)](_0x343167,_0x4158f7){const _0x39021d=_0x57595f;_0x343167[_0x39021d(0x225)](),_0x4158f7[_0x39021d(0x283)][_0x39021d(0x225)](),this[_0x39021d(0x2aa)]=!0x0;}async[_0x57595f(0x236)](_0x5816c5,_0x43a019){const _0x41a094=_0x57595f,_0x243f4b=_0x57e83e(this[_0x41a094(0x279)][_0x41a094(0x1ed)],_0x41a094(0x1df));_0x43a019[_0x41a094(0x234)](_0x243f4b),_0x5816c5[_0x41a094(0x218)]=!0x0,await this[_0x41a094(0x22b)][_0x41a094(0x205)],_0x43a019[_0x41a094(0x1e2)](),this[_0x41a094(0x295)]?.[_0x41a094(0x264)][_0x41a094(0x283)][_0x41a094(0x230)]&&(this[_0x41a094(0x295)][_0x41a094(0x264)][_0x41a094(0x283)][_0x41a094(0x230)][_0x41a094(0x280)]=!0x0);}[_0x57595f(0x256)](_0x43f9e0,_0x328004){const _0x33919a=_0x57595f;_0x43f9e0[_0x33919a(0x22f)](),_0x328004[_0x33919a(0x283)][_0x33919a(0x230)]&&(_0x328004[_0x33919a(0x283)][_0x33919a(0x230)][_0x33919a(0x280)]=!0x1);}async[_0x57595f(0x1ff)](_0x3d16a5,_0x351c77){const _0x354e5d=_0x57595f;await this[_0x354e5d(0x22b)][_0x354e5d(0x205)],this[_0x354e5d(0x2aa)]=!0x1,_0x3d16a5[_0x354e5d(0x27a)](),_0x351c77[_0x354e5d(0x283)][_0x354e5d(0x27a)]();}[_0x57595f(0x2b4)](){const _0x41fb41=_0x57595f;this[_0x41fb41(0x22e)][_0x41fb41(0x29f)](_0x5de686=>{const _0x2cbfe9=_0x41fb41;_0x2cbfe9(0x28f)in _0x5de686&&(_0x5de686[_0x2cbfe9(0x28f)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb09485=_0xb19e;(function(_0x13d8f0,_0x3a2650){const _0x4f05f0=_0xb19e,_0x1f2c42=_0x13d8f0();while(!![]){try{const _0x4bc071=-parseInt(_0x4f05f0(0xb4))/0x1+parseInt(_0x4f05f0(0xc6))/0x2+parseInt(_0x4f05f0(0xb8))/0x3+parseInt(_0x4f05f0(0xc9))/0x4*(-parseInt(_0x4f05f0(0xc1))/0x5)+-parseInt(_0x4f05f0(0xbc))/0x6+-parseInt(_0x4f05f0(0xd1))/0x7+-parseInt(_0x4f05f0(0xbb))/0x8*(-parseInt(_0x4f05f0(0xc8))/0x9);if(_0x4bc071===_0x3a2650)break;else _0x1f2c42['push'](_0x1f2c42['shift']());}catch(_0x3b2e6f){_0x1f2c42['push'](_0x1f2c42['shift']());}}}(_0x3488,0x9d9dd));function _0x3488(){const _0x5f1e6b=['replies','push','1916804gfaGbC','fire','13494753aSIOSW','51628oXjqKV','userMessage','actionName','content','replyCreated','TEXT','sendRequest','editor','2320066zMbrRJ','current-document','model','1091907zSXnIO','getDocumentContext','version','args','3374160GHsdCw','executeCustomAction','hasError','8uZwWWC','2034360jDFwoP','connector','delegate','createReply','Current\x20document','455ksdeON','executeAction','html'];_0x3488=function(){return _0x5f1e6b;};return _0x3488();}import{AIInteraction as _0x909d7c,AI_MODEL_EVENT_NAMES as _0x22fc58}from'../../aicore/model/aiinteraction.js';function _0xb19e(_0x5d09c4,_0x3a12e6){const _0x348832=_0x3488();return _0xb19e=function(_0xb19ea9,_0x47709c){_0xb19ea9=_0xb19ea9-0xb4;let _0x1052e6=_0x348832[_0xb19ea9];return _0x1052e6;},_0xb19e(_0x5d09c4,_0x3a12e6);}import{AIContextItemType as _0x1b5d19}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x15917f}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x909d7c{[_0xb09485(0xcc)];[_0xb09485(0xb6)];[_0xb09485(0xcb)];[_0xb09485(0xb7)];[_0xb09485(0xca)];[_0xb09485(0xd3)];[_0xb09485(0xba)]=!0x1;constructor(_0x3047bc){const _0x19a628=_0xb09485;super(_0x3047bc),this[_0x19a628(0xcc)]=_0x3047bc[_0x19a628(0xcc)],this[_0x19a628(0xb6)]=_0x3047bc[_0x19a628(0xb6)],this[_0x19a628(0xcb)]=_0x3047bc[_0x19a628(0xcb)],this[_0x19a628(0xb7)]=_0x3047bc[_0x19a628(0xb7)],this[_0x19a628(0xca)]=_0x3047bc[_0x19a628(0xca)],this[_0x19a628(0xd3)]=_0x3047bc[_0x19a628(0xd3)];}async[_0xb09485(0xcf)](){const _0x415353=_0xb09485;return this[_0x415353(0xcb)]?this[_0x415353(0xbd)][_0x415353(0xc2)]({'content':this[_0x415353(0xcc)],'actionName':this[_0x415353(0xcb)],'args':this[_0x415353(0xb7)]}):this[_0x415353(0xbd)][_0x415353(0xb9)]({'content':this[_0x415353(0xcc)],'message':this[_0x415353(0xca)],'model':this[_0x415353(0xd3)],'outputFormat':_0x415353(0xc3)});}[_0xb09485(0xb5)](){const _0x12b108=_0xb09485;return{'type':_0x1b5d19[_0x12b108(0xce)],'content':this[_0x12b108(0xcc)],'version':this[_0x12b108(0xb6)],'label':_0x12b108(0xc0),'uiId':_0x12b108(0xd2)};}[_0xb09485(0xbf)](_0x56c247){const _0xf8ce2e=_0xb09485,_0x54885a=new _0x15917f({'editor':this[_0xf8ce2e(0xd0)],'documentContextContent':this[_0xf8ce2e(0xcc)],..._0x56c247});return this[_0xf8ce2e(0xc4)][_0xf8ce2e(0xc5)](_0x54885a),_0x54885a[_0xf8ce2e(0xbe)](..._0x22fc58)['to'](this),this[_0xf8ce2e(0xc7)](_0xf8ce2e(0xcd),_0x54885a),_0x54885a;}}
23
+ const _0x4d9b0c=_0x583c;(function(_0x226207,_0x5989af){const _0x2dc676=_0x583c,_0x33c551=_0x226207();while(!![]){try{const _0x1b0620=parseInt(_0x2dc676(0xd2))/0x1+parseInt(_0x2dc676(0xc6))/0x2*(parseInt(_0x2dc676(0xb7))/0x3)+-parseInt(_0x2dc676(0xc4))/0x4*(parseInt(_0x2dc676(0xbf))/0x5)+parseInt(_0x2dc676(0xc5))/0x6+-parseInt(_0x2dc676(0xcb))/0x7*(-parseInt(_0x2dc676(0xbb))/0x8)+-parseInt(_0x2dc676(0xcc))/0x9+parseInt(_0x2dc676(0xc8))/0xa*(-parseInt(_0x2dc676(0xd0))/0xb);if(_0x1b0620===_0x5989af)break;else _0x33c551['push'](_0x33c551['shift']());}catch(_0x633a2d){_0x33c551['push'](_0x33c551['shift']());}}}(_0x805c,0x8f889));import{AIInteraction as _0x2b7921,AI_MODEL_EVENT_NAMES as _0x5d2e3a}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0xdf37d4}from'../../aicore/model/aicontext.js';function _0x805c(){const _0x5e90bc=['connector','798489hdsucK','editor','TEXT','model','version','args','replyCreated','543pneiTu','hasError','executeCustomAction','getDocumentContext','8gSGPpt','executeAction','userMessage','createReply','130050JAMueo','current-document','push','content','replies','120WZMbBn','5636502NepMzX','4406jPIvro','actionName','1060AzZsUt','Current\x20document','sendRequest','352233kjscJF','3847581kdtCOZ','delegate','html','fire','40601kiCfDx'];_0x805c=function(){return _0x5e90bc;};return _0x805c();}import{AIActionsReply as _0x260477}from'./aiactionsreply.js';function _0x583c(_0xa76622,_0x2cc9e7){const _0x805c19=_0x805c();return _0x583c=function(_0x583c75,_0x457513){_0x583c75=_0x583c75-0xb3;let _0x5db850=_0x805c19[_0x583c75];return _0x5db850;},_0x583c(_0xa76622,_0x2cc9e7);}export class AIActionsInteraction extends _0x2b7921{[_0x4d9b0c(0xc2)];[_0x4d9b0c(0xb4)];[_0x4d9b0c(0xc7)];[_0x4d9b0c(0xb5)];[_0x4d9b0c(0xbd)];[_0x4d9b0c(0xb3)];[_0x4d9b0c(0xb8)]=!0x1;constructor(_0x4e7ae5){const _0x119e96=_0x4d9b0c;super(_0x4e7ae5),this[_0x119e96(0xc2)]=_0x4e7ae5[_0x119e96(0xc2)],this[_0x119e96(0xb4)]=_0x4e7ae5[_0x119e96(0xb4)],this[_0x119e96(0xc7)]=_0x4e7ae5[_0x119e96(0xc7)],this[_0x119e96(0xb5)]=_0x4e7ae5[_0x119e96(0xb5)],this[_0x119e96(0xbd)]=_0x4e7ae5[_0x119e96(0xbd)],this[_0x119e96(0xb3)]=_0x4e7ae5[_0x119e96(0xb3)];}async[_0x4d9b0c(0xca)](){const _0x59fc31=_0x4d9b0c;return this[_0x59fc31(0xc7)]?this[_0x59fc31(0xd1)][_0x59fc31(0xbc)]({'content':this[_0x59fc31(0xc2)],'actionName':this[_0x59fc31(0xc7)],'args':this[_0x59fc31(0xb5)]}):this[_0x59fc31(0xd1)][_0x59fc31(0xb9)]({'content':this[_0x59fc31(0xc2)],'message':this[_0x59fc31(0xbd)],'model':this[_0x59fc31(0xb3)],'outputFormat':_0x59fc31(0xce)});}[_0x4d9b0c(0xba)](){const _0x290c83=_0x4d9b0c;return{'type':_0xdf37d4[_0x290c83(0xd4)],'content':this[_0x290c83(0xc2)],'version':this[_0x290c83(0xb4)],'label':_0x290c83(0xc9),'uiId':_0x290c83(0xc0)};}[_0x4d9b0c(0xbe)](_0xf4dea9){const _0x22336d=_0x4d9b0c,_0x1a8e75=new _0x260477({'editor':this[_0x22336d(0xd3)],'documentContextContent':this[_0x22336d(0xc2)],..._0xf4dea9});return this[_0x22336d(0xc3)][_0x22336d(0xc1)](_0x1a8e75),_0x1a8e75[_0x22336d(0xcd)](..._0x5d2e3a)['to'](this),this[_0x22336d(0xcf)](_0x22336d(0xb6),_0x1a8e75),_0x1a8e75;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ae376=_0x59b6;function _0x58d7(){const _0x2634db=['parsedContent','childNodes','node','modified','45mHSecH','pop','length','567862BJOrgs','_getDifferentChangeGroups','documentContextContent','parsedMergedContent','7gUNNMU','cloneNode','449570PJXZCL','1431rDfNnn','added','7224456FxgyRT','new','isDone','68036GUqGFK','51570EcEqmD','492929DzCUUo','children','data-id','changeGroups','map','value','4815848FYArWl','18RXXGto','1440AOKdyP','removed','updateChangeGroups','pending'];_0x58d7=function(){return _0x2634db;};return _0x58d7();}function _0x59b6(_0x201895,_0x322f00){const _0x58d708=_0x58d7();return _0x59b6=function(_0x59b641,_0x1ff6f1){_0x59b641=_0x59b641-0xc1;let _0x31ae27=_0x58d708[_0x59b641];return _0x31ae27;},_0x59b6(_0x201895,_0x322f00);}(function(_0x52182f,_0x2133dd){const _0x27ee83=_0x59b6,_0x1e83a4=_0x52182f();while(!![]){try{const _0x27d021=parseInt(_0x27ee83(0xd1))/0x1+-parseInt(_0x27ee83(0xc3))/0x2*(parseInt(_0x27ee83(0xd8))/0x3)+-parseInt(_0x27ee83(0xcf))/0x4*(parseInt(_0x27ee83(0xe1))/0x5)+-parseInt(_0x27ee83(0xcc))/0x6+parseInt(_0x27ee83(0xc7))/0x7*(-parseInt(_0x27ee83(0xd7))/0x8)+-parseInt(_0x27ee83(0xca))/0x9*(parseInt(_0x27ee83(0xd0))/0xa)+parseInt(_0x27ee83(0xc9))/0xb*(parseInt(_0x27ee83(0xd9))/0xc);if(_0x27d021===_0x2133dd)break;else _0x1e83a4['push'](_0x1e83a4['shift']());}catch(_0x27af2f){_0x1e83a4['push'](_0x1e83a4['shift']());}}}(_0x58d7,0xdf4d2));import{AIReply as _0x410451}from'../../aicore/model/aireply.js';import{getAttribute as _0x4a8f7a}from'../../aicore/utils/htmlparser.js';import{uid as _0x1eb1a0}from'ckeditor5/src/utils.js';import{diffArrays as _0x16eed7}from'diff';export class AIActionsReply extends _0x410451{[_0x5ae376(0xdb)](){const _0x45eab0=_0x5ae376;if(this[_0x45eab0(0xc6)]=this[_0x45eab0(0xdd)][_0x45eab0(0xc8)](!0x0),0x0==this[_0x45eab0(0xc6)][_0x45eab0(0xde)][_0x45eab0(0xc2)])return void(this[_0x45eab0(0xd4)]=[]);const _0x5805bd=this[_0x45eab0(0xc5)][_0x45eab0(0xd2)][_0x45eab0(0xd5)](_0x774fde=>({'node':_0x774fde,'id':_0x4a8f7a(_0x774fde,_0x45eab0(0xd3))})),_0x3fbef1=this[_0x45eab0(0xc6)][_0x45eab0(0xd2)][_0x45eab0(0xd5)](_0x4e1ace=>({'node':_0x4e1ace,'id':_0x4a8f7a(_0x4e1ace,_0x45eab0(0xd3))||_0x1eb1a0()})),_0x5b12d0=_0x16eed7(_0x5805bd,_0x3fbef1,{'comparator':(_0x186a21,_0x230ba0)=>_0x186a21['id']==_0x230ba0['id'],'oneChangePerToken':!0x0});if(!this[_0x45eab0(0xce)]){for(;_0x5b12d0[_0x45eab0(0xc2)]&&_0x5b12d0[_0x5b12d0[_0x45eab0(0xc2)]-0x1][_0x45eab0(0xda)];)_0x5b12d0[_0x45eab0(0xc1)]();}const _0x3419fa=_0x5b12d0[_0x45eab0(0xd5)](_0xd2919=>{const _0x1b34c6=_0x45eab0,_0x2a04a2=_0xd2919[_0x1b34c6(0xcb)]?_0x1b34c6(0xcd):_0xd2919[_0x1b34c6(0xda)]?_0x1b34c6(0xda):_0x1b34c6(0xe0);return{'node':_0xd2919[_0x1b34c6(0xd6)][0x0][_0x1b34c6(0xdf)],'type':_0x2a04a2,'id':_0xd2919[_0x1b34c6(0xd6)][0x0]['id']};});this[_0x45eab0(0xd4)]=[{'changes':_0x3419fa,'state':_0x45eab0(0xdc),'index':0x0}];}[_0x5ae376(0xc4)](_0x12cd99,_0x432a3d){return _0x432a3d;}}
23
+ const _0x48e380=_0x1df2;(function(_0x1f6a8c,_0x31d9e9){const _0x34e614=_0x1df2,_0x5847fa=_0x1f6a8c();while(!![]){try{const _0x164d53=parseInt(_0x34e614(0x16d))/0x1*(-parseInt(_0x34e614(0x165))/0x2)+-parseInt(_0x34e614(0x162))/0x3*(parseInt(_0x34e614(0x16a))/0x4)+parseInt(_0x34e614(0x167))/0x5*(parseInt(_0x34e614(0x174))/0x6)+-parseInt(_0x34e614(0x15e))/0x7+parseInt(_0x34e614(0x161))/0x8+-parseInt(_0x34e614(0x175))/0x9+parseInt(_0x34e614(0x163))/0xa;if(_0x164d53===_0x31d9e9)break;else _0x5847fa['push'](_0x5847fa['shift']());}catch(_0x437c83){_0x5847fa['push'](_0x5847fa['shift']());}}}(_0x5428,0x2f34e));import{AIReply as _0x4f3606}from'../../aicore/model/aireply.js';import{getAttribute as _0x420a11}from'../../aicore/utils/htmlparser.js';function _0x5428(){const _0x449b3b=['1944351nouiQs','added','updateChangeGroups','map','removed','modified','isDone','cloneNode','595840oBYCNx','pop','children','1726640kOiwbB','3RKBaQR','7089570JVjlUp','value','2ZKKglf','documentContextContent','365WKguuO','length','node','1431508jixTQx','_getDifferentChangeGroups','parsedContent','332200uctTIt','parsedMergedContent','changeGroups','new','data-id','pending','childNodes','21354dIsQIO'];_0x5428=function(){return _0x449b3b;};return _0x5428();}import{uid as _0x335993}from'ckeditor5/src/utils.js';function _0x1df2(_0x1ee925,_0x1b2648){const _0x542840=_0x5428();return _0x1df2=function(_0x1df207,_0x324168){_0x1df207=_0x1df207-0x15b;let _0x4ee16f=_0x542840[_0x1df207];return _0x4ee16f;},_0x1df2(_0x1ee925,_0x1b2648);}import{diffArrays as _0x468027}from'diff';export class AIActionsReply extends _0x4f3606{[_0x48e380(0x177)](){const _0x32ff7f=_0x48e380;if(this[_0x32ff7f(0x16e)]=this[_0x32ff7f(0x16c)][_0x32ff7f(0x15d)](!0x0),0x0==this[_0x32ff7f(0x16e)][_0x32ff7f(0x173)][_0x32ff7f(0x168)])return void(this[_0x32ff7f(0x16f)]=[]);const _0x21a3ba=this[_0x32ff7f(0x166)][_0x32ff7f(0x160)][_0x32ff7f(0x178)](_0x2252f8=>({'node':_0x2252f8,'id':_0x420a11(_0x2252f8,_0x32ff7f(0x171))})),_0x5e4463=this[_0x32ff7f(0x16e)][_0x32ff7f(0x160)][_0x32ff7f(0x178)](_0x48bb0c=>({'node':_0x48bb0c,'id':_0x420a11(_0x48bb0c,_0x32ff7f(0x171))||_0x335993()})),_0x388203=_0x468027(_0x21a3ba,_0x5e4463,{'comparator':(_0x3a15fa,_0x21ceeb)=>_0x3a15fa['id']==_0x21ceeb['id'],'oneChangePerToken':!0x0});if(!this[_0x32ff7f(0x15c)]){for(;_0x388203[_0x32ff7f(0x168)]&&_0x388203[_0x388203[_0x32ff7f(0x168)]-0x1][_0x32ff7f(0x179)];)_0x388203[_0x32ff7f(0x15f)]();}const _0xbb2402=_0x388203[_0x32ff7f(0x178)](_0x27824e=>{const _0x4a0ea5=_0x32ff7f,_0x3e594f=_0x27824e[_0x4a0ea5(0x176)]?_0x4a0ea5(0x170):_0x27824e[_0x4a0ea5(0x179)]?_0x4a0ea5(0x179):_0x4a0ea5(0x15b);return{'node':_0x27824e[_0x4a0ea5(0x164)][0x0][_0x4a0ea5(0x169)],'type':_0x3e594f,'id':_0x27824e[_0x4a0ea5(0x164)][0x0]['id']};});this[_0x32ff7f(0x16f)]=[{'changes':_0xbb2402,'state':_0x32ff7f(0x172),'index':0x0}];}[_0x48e380(0x16b)](_0x16af98,_0xee0cf1){return _0xee0cf1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1236ab=_0x3b8c;(function(_0xa73ae9,_0x32c3bd){var _0x20085e=_0x3b8c,_0x280982=_0xa73ae9();while(!![]){try{var _0x2d2ae7=-parseInt(_0x20085e(0xd6))/0x1*(-parseInt(_0x20085e(0xe2))/0x2)+-parseInt(_0x20085e(0xd4))/0x3+-parseInt(_0x20085e(0xd1))/0x4*(parseInt(_0x20085e(0xd2))/0x5)+-parseInt(_0x20085e(0xdc))/0x6*(-parseInt(_0x20085e(0xda))/0x7)+-parseInt(_0x20085e(0xe0))/0x8*(parseInt(_0x20085e(0xdf))/0x9)+parseInt(_0x20085e(0xd9))/0xa+-parseInt(_0x20085e(0xd3))/0xb*(-parseInt(_0x20085e(0xdb))/0xc);if(_0x2d2ae7===_0x32c3bd)break;else _0x280982['push'](_0x280982['shift']());}catch(_0x29c225){_0x280982['push'](_0x280982['shift']());}}}(_0x39fd,0x4a5a8));import{Plugin as _0xad0d34}from'ckeditor5/src/core.js';import{CKEditorError as _0x23fc74}from'ckeditor5/src/utils.js';export class AIAdapter extends _0xad0d34{static get[_0x1236ab(0xd5)](){var _0x44aaba=_0x1236ab;return _0x44aaba(0xe4);}static get[_0x1236ab(0xe3)](){return!0x0;}static get[_0x1236ab(0xd0)](){return!0x0;}[_0x1236ab(0xe1)](){var _0xd56e30=_0x1236ab;if(!this[_0xd56e30(0xd8)])throw new _0x23fc74(_0xd56e30(0xde),null);}}function _0x3b8c(_0x4ece7b,_0x266d3d){var _0x39fdee=_0x39fd();return _0x3b8c=function(_0x3b8c39,_0x58b2bd){_0x3b8c39=_0x3b8c39-0xd0;var _0x4a3a13=_0x39fdee[_0x3b8c39];return _0x4a3a13;},_0x3b8c(_0x4ece7b,_0x266d3d);}function _0x39fd(){var _0x51b073=['8mIYKYg','afterInit','51298FbNTug','isOfficialPlugin','AIAdapter','isPremiumPlugin','44yimrlP','5765GYDBUt','27687iFZopb','1245903LDduqt','pluginName','5CpotFl','name','textAdapter','4418630nbpSdi','512939BrkCSr','1308vmdOWG','6TtzqHG','AIRequestError','aiadapter-text-adapter-not-set','1666818DpiTRY'];_0x39fd=function(){return _0x51b073;};return _0x39fd();}export class AIRequestError extends Error{constructor(_0x132119){var _0x5f118b=_0x1236ab;super(_0x132119),this[_0x5f118b(0xd7)]=_0x5f118b(0xdd);}}
23
+ var _0x1101c7=_0x3d9c;(function(_0x37f223,_0x495a2c){var _0x353126=_0x3d9c,_0x50aa28=_0x37f223();while(!![]){try{var _0x4aeced=-parseInt(_0x353126(0x1a9))/0x1*(parseInt(_0x353126(0x1b6))/0x2)+parseInt(_0x353126(0x1b3))/0x3+-parseInt(_0x353126(0x1a8))/0x4+-parseInt(_0x353126(0x1b2))/0x5*(-parseInt(_0x353126(0x1ac))/0x6)+-parseInt(_0x353126(0x1b1))/0x7+parseInt(_0x353126(0x1b0))/0x8+parseInt(_0x353126(0x1b8))/0x9;if(_0x4aeced===_0x495a2c)break;else _0x50aa28['push'](_0x50aa28['shift']());}catch(_0x25b682){_0x50aa28['push'](_0x50aa28['shift']());}}}(_0x3bce,0x5e35c));import{Plugin as _0x49e12e}from'ckeditor5/src/core.js';import{CKEditorError as _0x1161f2}from'ckeditor5/src/utils.js';function _0x3d9c(_0x48d470,_0xeda609){var _0x3bcec4=_0x3bce();return _0x3d9c=function(_0x3d9ca5,_0x1ba85f){_0x3d9ca5=_0x3d9ca5-0x1a7;var _0xa36d6a=_0x3bcec4[_0x3d9ca5];return _0xa36d6a;},_0x3d9c(_0x48d470,_0xeda609);}export class AIAdapter extends _0x49e12e{static get[_0x1101c7(0x1b4)](){var _0x55e0f0=_0x1101c7;return _0x55e0f0(0x1af);}static get[_0x1101c7(0x1b7)](){return!0x0;}static get[_0x1101c7(0x1b5)](){return!0x0;}[_0x1101c7(0x1ab)](){var _0x409184=_0x1101c7;if(!this[_0x409184(0x1ad)])throw new _0x1161f2(_0x409184(0x1aa),null);}}export class AIRequestError extends Error{constructor(_0x2e331c){var _0x5b7485=_0x1101c7;super(_0x2e331c),this[_0x5b7485(0x1ae)]=_0x5b7485(0x1a7);}}function _0x3bce(){var _0x5e6292=['aiadapter-text-adapter-not-set','afterInit','6sHnxdi','textAdapter','name','AIAdapter','2961536rMTUyg','1898624CvIqQj','94210QpSLOW','788253xACDvi','pluginName','isPremiumPlugin','4AYmJaX','isOfficialPlugin','3677679EbaymK','AIRequestError','1008296DYGqTD','75613emFjkR'];_0x3bce=function(){return _0x5e6292;};return _0x3bce();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b737f=_0x348e;(function(_0x129da1,_0xa86cb0){const _0x113868=_0x348e,_0x2ffc4c=_0x129da1();while(!![]){try{const _0x36c111=parseInt(_0x113868(0xa4))/0x1*(-parseInt(_0x113868(0xab))/0x2)+-parseInt(_0x113868(0x9b))/0x3*(parseInt(_0x113868(0x88))/0x4)+parseInt(_0x113868(0x8d))/0x5+parseInt(_0x113868(0x89))/0x6*(-parseInt(_0x113868(0x8f))/0x7)+parseInt(_0x113868(0xac))/0x8+-parseInt(_0x113868(0xa7))/0x9+-parseInt(_0x113868(0xad))/0xa*(-parseInt(_0x113868(0x91))/0xb);if(_0x36c111===_0xa86cb0)break;else _0x2ffc4c['push'](_0x2ffc4c['shift']());}catch(_0x162200){_0x2ffc4c['push'](_0x2ffc4c['shift']());}}}(_0x5e2e,0x1e006));import{Plugin as _0x595ad0}from'ckeditor5/src/core.js';function _0x5e2e(){const _0x2b93a5=['abort','editor','12qACgJX','signal','init','textAdapter','name','AI_ERROR_GET_HEADERS','get','requires','assign','110991uKRSAp','aitextadapter-send-request-failed','reject','344727KTKrRG','resolve','sendRequest','aborted','4TkJezg','172816ZPvxBy','80sKizpf','192688kpMUsN','24uUSdTo','application/json','_prepareRequestHeaders','plugins','798745JcaUfg','AI_ERROR_GET_PARAMETERS','266511RARKRM','locale','751850DDIIxL','_prepareRequestParameters','makeRequest','AbortError','catch','object','abortController','error'];_0x5e2e=function(){return _0x2b93a5;};return _0x5e2e();}function _0x348e(_0x145586,_0x15b487){const _0x5e2e92=_0x5e2e();return _0x348e=function(_0x348ef4,_0x3bd44a){_0x348ef4=_0x348ef4-0x88;let _0x465469=_0x5e2e92[_0x348ef4];return _0x465469;},_0x348e(_0x145586,_0x15b487);}import{CKEditorError as _0x3f44e8}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4422c3,AIRequestError as _0x5add3f}from'./aiadapter.js';import{getTranslation as _0xfff298}from'../utils/common-translations.js';export class AITextAdapter extends _0x595ad0{[_0x1b737f(0x97)];static get[_0x1b737f(0xa2)](){return[_0x4422c3];}constructor(_0x5bbe34){const _0x542358=_0x1b737f;super(_0x5bbe34),this[_0x542358(0x97)]=new AbortController();}[_0x1b737f(0x9d)](){const _0x3997fa=_0x1b737f;this[_0x3997fa(0x9a)][_0x3997fa(0x8c)][_0x3997fa(0xa1)](_0x4422c3)[_0x3997fa(0x9e)]=this;}[_0x1b737f(0x99)](){const _0x1229ea=_0x1b737f;this[_0x1229ea(0x97)][_0x1229ea(0x9c)][_0x1229ea(0xaa)]||(this[_0x1229ea(0x97)][_0x1229ea(0x99)](),this[_0x1229ea(0x97)]=new AbortController());}async[_0x1b737f(0x93)](_0x2ca92f){const _0x16fdda=_0x1b737f;return this[_0x16fdda(0xa9)](_0x2ca92f)[_0x16fdda(0x95)](_0x459d56=>{const _0xc11cb5=_0x16fdda;if(_0x459d56 instanceof _0x5add3f)return Promise[_0xc11cb5(0xa6)](_0x459d56);if(_0xc11cb5(0x94)==_0x459d56[_0xc11cb5(0x9f)])return Promise[_0xc11cb5(0xa8)]();throw console[_0xc11cb5(0x98)](_0x459d56),new _0x3f44e8(_0xc11cb5(0xa5),null);});}async[_0x1b737f(0x8b)](_0x25b36f,_0xdd56c8){const _0x5db5a1=_0x1b737f,_0x53ff4c=this[_0x5db5a1(0x9a)][_0x5db5a1(0x90)],_0x5c5ec7={'Content-Type':_0x5db5a1(0x8a)};if(_0x5db5a1(0x96)==typeof _0x25b36f)Object[_0x5db5a1(0xa3)](_0x5c5ec7,_0x25b36f);else{if(_0x25b36f)try{const _0x3e6661=await _0x25b36f(_0xdd56c8);Object[_0x5db5a1(0xa3)](_0x5c5ec7,_0x3e6661);}catch{return Promise[_0x5db5a1(0xa6)](new _0x5add3f(_0xfff298(_0x53ff4c,_0x5db5a1(0xa0))));}}return _0x5c5ec7;}async[_0x1b737f(0x92)](_0x5f14b6,_0x564433){const _0x22c6ab=_0x1b737f,_0x3abbd3=this[_0x22c6ab(0x9a)][_0x22c6ab(0x90)];if(_0x22c6ab(0x96)==typeof _0x5f14b6)return _0x5f14b6;try{return await _0x5f14b6(_0x564433);}catch{return Promise[_0x22c6ab(0xa6)](new _0x5add3f(_0xfff298(_0x3abbd3,_0x22c6ab(0x8e))));}}}
23
+ const _0x2e5b04=_0x5493;function _0x5493(_0x2c7a19,_0x3aef1d){const _0x3e40c=_0x3e40();return _0x5493=function(_0x5493b3,_0x297d44){_0x5493b3=_0x5493b3-0x1cd;let _0x3e1342=_0x3e40c[_0x5493b3];return _0x3e1342;},_0x5493(_0x2c7a19,_0x3aef1d);}(function(_0x2b4706,_0x33861d){const _0x31c94b=_0x5493,_0x146929=_0x2b4706();while(!![]){try{const _0x51d540=-parseInt(_0x31c94b(0x1e9))/0x1*(parseInt(_0x31c94b(0x1de))/0x2)+-parseInt(_0x31c94b(0x1cf))/0x3+-parseInt(_0x31c94b(0x1e2))/0x4+parseInt(_0x31c94b(0x1ed))/0x5*(parseInt(_0x31c94b(0x1ef))/0x6)+-parseInt(_0x31c94b(0x1ee))/0x7+parseInt(_0x31c94b(0x1db))/0x8+-parseInt(_0x31c94b(0x1e0))/0x9*(-parseInt(_0x31c94b(0x1dc))/0xa);if(_0x51d540===_0x33861d)break;else _0x146929['push'](_0x146929['shift']());}catch(_0x321039){_0x146929['push'](_0x146929['shift']());}}}(_0x3e40,0x9ceac));import{Plugin as _0x2419b1}from'ckeditor5/src/core.js';import{CKEditorError as _0x5a6a45}from'ckeditor5/src/utils.js';import{AIAdapter as _0x39fe41,AIRequestError as _0x5cd9a9}from'./aiadapter.js';import{getTranslation as _0x2f2378}from'../utils/common-translations.js';export class AITextAdapter extends _0x2419b1{[_0x2e5b04(0x1e1)];static get[_0x2e5b04(0x1ea)](){return[_0x39fe41];}constructor(_0x5226bc){const _0xcf01fe=_0x2e5b04;super(_0x5226bc),this[_0xcf01fe(0x1e1)]=new AbortController();}[_0x2e5b04(0x1e6)](){const _0x22d5d5=_0x2e5b04;this[_0x22d5d5(0x1ce)][_0x22d5d5(0x1e8)][_0x22d5d5(0x1d1)](_0x39fe41)[_0x22d5d5(0x1dd)]=this;}[_0x2e5b04(0x1f0)](){const _0x5e88d8=_0x2e5b04;this[_0x5e88d8(0x1e1)][_0x5e88d8(0x1d2)][_0x5e88d8(0x1e4)]||(this[_0x5e88d8(0x1e1)][_0x5e88d8(0x1f0)](),this[_0x5e88d8(0x1e1)]=new AbortController());}async[_0x2e5b04(0x1d8)](_0x3219b3){const _0x56101c=_0x2e5b04;return this[_0x56101c(0x1d9)](_0x3219b3)[_0x56101c(0x1d3)](_0x1f643f=>{const _0x2e00d4=_0x56101c;if(_0x1f643f instanceof _0x5cd9a9)return Promise[_0x2e00d4(0x1e3)](_0x1f643f);if(_0x2e00d4(0x1da)==_0x1f643f[_0x2e00d4(0x1d0)])return Promise[_0x2e00d4(0x1eb)]();throw console[_0x2e00d4(0x1ec)](_0x1f643f),new _0x5a6a45(_0x2e00d4(0x1e7),null);});}async[_0x2e5b04(0x1d4)](_0x121834,_0x2c0efd){const _0x4dac16=_0x2e5b04,_0x263849=this[_0x4dac16(0x1ce)][_0x4dac16(0x1d7)],_0x560b82={'Content-Type':_0x4dac16(0x1d6)};if(_0x4dac16(0x1df)==typeof _0x121834)Object[_0x4dac16(0x1cd)](_0x560b82,_0x121834);else{if(_0x121834)try{const _0x521425=await _0x121834(_0x2c0efd);Object[_0x4dac16(0x1cd)](_0x560b82,_0x521425);}catch{return Promise[_0x4dac16(0x1e3)](new _0x5cd9a9(_0x2f2378(_0x263849,_0x4dac16(0x1e5))));}}return _0x560b82;}async[_0x2e5b04(0x1d5)](_0x309fe5,_0x1989ca){const _0x21fe04=_0x2e5b04,_0x4d93d7=this[_0x21fe04(0x1ce)][_0x21fe04(0x1d7)];if(_0x21fe04(0x1df)==typeof _0x309fe5)return _0x309fe5;try{return await _0x309fe5(_0x1989ca);}catch{return Promise[_0x21fe04(0x1e3)](new _0x5cd9a9(_0x2f2378(_0x4d93d7,_0x21fe04(0x1f1))));}}}function _0x3e40(){const _0x4cb834=['_prepareRequestHeaders','_prepareRequestParameters','application/json','locale','makeRequest','sendRequest','AbortError','1678736PTEKul','830XzPUNh','textAdapter','108qoUbwN','object','324369RgJmTY','abortController','3927876xGkvBz','reject','aborted','AI_ERROR_GET_HEADERS','init','aitextadapter-send-request-failed','plugins','790LFdEQt','requires','resolve','error','185860NtVCwK','6110244iWkYKt','12vPrBee','abort','AI_ERROR_GET_PARAMETERS','assign','editor','2206008dTeJxP','name','get','signal','catch'];_0x3e40=function(){return _0x4cb834;};return _0x3e40();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dcc87=_0x4ab4;(function(_0x42d33d,_0x121884){const _0x40bc74=_0x4ab4,_0x5226bf=_0x42d33d();while(!![]){try{const _0x1dae99=-parseInt(_0x40bc74(0x17a))/0x1+-parseInt(_0x40bc74(0x182))/0x2+-parseInt(_0x40bc74(0x17c))/0x3+parseInt(_0x40bc74(0x1aa))/0x4+parseInt(_0x40bc74(0x198))/0x5+parseInt(_0x40bc74(0x1a6))/0x6+-parseInt(_0x40bc74(0x184))/0x7*(-parseInt(_0x40bc74(0x179))/0x8);if(_0x1dae99===_0x121884)break;else _0x5226bf['push'](_0x5226bf['shift']());}catch(_0x5a4691){_0x5226bf['push'](_0x5226bf['shift']());}}}(_0x1d04,0x99cc3));import{AITextAdapter as _0x867a3d}from'./aitextadapter.js';import{AIRequestError as _0x221f48}from'./aiadapter.js';import{BedrockRuntimeClient as _0x233700,InvokeModelCommand as _0x2fa9cf,InvokeModelWithResponseStreamCommand as _0x4ce6ad}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5adfbf}from'../utils/common-translations.js';function _0x4ab4(_0x5a7b65,_0x3ca5a5){const _0x1d04cd=_0x1d04();return _0x4ab4=function(_0x4ab450,_0xe99228){_0x4ab450=_0x4ab450-0x16e;let _0x4e959f=_0x1d04cd[_0x4ab450];return _0x4e959f;},_0x4ab4(_0x5a7b65,_0x3ca5a5);}function _0x1d04(){const _0x5b9708=['ai.assistant.adapter.aws.requestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','body','_processAWSRequest','2357288ReLDFS','completions','1585045rdiRKw','getReader','resolve','_apiUrl','ai21.j2','_readStaticResponse','length','_processProxyRequest','config','data','pluginName','locale','Instruction:\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.','Human:\x0a','<<SYS>>\x0a','stringify','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.','text','_bedrockClientConfig','5468625EUNdGH','ai.assistant.adapter.aws.bedrockClientConfig','_readAsyncIterableResponse','sendRequest','POST','utf-8','bedrock-2023-05-31','_prepareRequestHeaders','generations','define','\x0a<</SYS>>\x0a[INST]\x0a','\x0a\x0aAssistant:','abortController','read','2890728ASqlnX','_readStreamableResponse','generation','anthropic.claude-v2','4980528xxzWvE','_prepareRequestParameters','_getGeneratedText','anthropic.claude','getModelFamily','split','meta.llama','parse','ai.assistant.adapter.aws.requestHeaders','_requestParameters','ai.assistant.adapter.aws.apiUrl','\x0a[/INST]','completion','join','signal','map','filter','chunk','get','bytes','preparePrompt','decode','AWSTextAdapter','json','_requestHeaders','send','application/json','test','editor','40XGLKLw','1008196VRbnVz','AI_ERROR_UNSUPPORTED_MODEL','3408075GKkXsB','cohere.command'];_0x1d04=function(){return _0x5b9708;};return _0x1d04();}export class AWSTextAdapter extends _0x867a3d{[_0x1dcc87(0x187)];[_0x1dcc87(0x174)];[_0x1dcc87(0x197)];[_0x1dcc87(0x1b3)];static get[_0x1dcc87(0x18e)](){const _0x4cb536=_0x1dcc87;return _0x4cb536(0x172);}constructor(_0x10ba59){const _0x31b60c=_0x1dcc87;super(_0x10ba59),_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x17e))||_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x1a1)](_0x31b60c(0x17e),{'model':_0x31b60c(0x1a9),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x31b60c(0x19e),'stream':!0x0}),this[_0x31b60c(0x187)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x1b4)),this[_0x31b60c(0x197)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x199)),this[_0x31b60c(0x174)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x1b2)),this[_0x31b60c(0x1b3)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x17e));}async[_0x1dcc87(0x19b)]({query:_0x10d2d,context:_0x419095,onData:_0x5ee2b0,actionId:_0x33fba9}){const _0x2b485f=_0x1dcc87,{model:_0x3c36bb,stream:_0x2c249a,..._0xe26b22}=await this[_0x2b485f(0x1ab)](this[_0x2b485f(0x1b3)],_0x33fba9),_0x229b13={'prompt':await this[_0x2b485f(0x170)](_0x10d2d,_0x419095,_0x3c36bb,_0x33fba9),..._0xe26b22};this[_0x2b485f(0x187)]?await this[_0x2b485f(0x18b)](_0x229b13,_0x3c36bb,_0x2c249a,_0x5ee2b0,_0x33fba9):await this[_0x2b485f(0x181)](_0x229b13,_0x3c36bb,_0x2c249a,_0x5ee2b0);}async[_0x1dcc87(0x170)](_0x46fa60,_0x52b92e,_0x3d8e7c,_0x45e64f){const _0x3e2128=_0x1dcc87;let _0x4e6bf5,_0x54cc38;return _0x52b92e?(_0x4e6bf5=_0x3e2128(0x195),_0x54cc38=_0x3e2128(0x190)+_0x46fa60+_0x3e2128(0x17f)+_0x52b92e):(_0x4e6bf5=_0x3e2128(0x191),_0x54cc38=_0x46fa60),_0x3e2128(0x1b0)==this[_0x3e2128(0x1ae)](_0x3d8e7c)?_0x3e2128(0x193)+_0x4e6bf5+_0x3e2128(0x1a2)+_0x54cc38+_0x3e2128(0x1b5):_0x3e2128(0x192)+_0x4e6bf5+'\x0a'+_0x54cc38+_0x3e2128(0x1a3);}[_0x1dcc87(0x1ae)](_0x243a97){const _0x3d9098=_0x1dcc87;if(/^anthropic\.claude/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x1ad);if(/^ai21\.j2/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x188);if(/^cohere\.command/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x17d);if(/^meta\.llama/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x1b0);throw new _0x221f48(_0x5adfbf(this[_0x3d9098(0x178)][_0x3d9098(0x18f)],_0x3d9098(0x17b),_0x243a97));}async[_0x1dcc87(0x18b)](_0x3cab3d,_0x59b7b1,_0x339b0f,_0x247f93,_0x2953d5){const _0x33d41d=_0x1dcc87,_0x3e3f7a={'method':_0x33d41d(0x19c),'headers':await this[_0x33d41d(0x19f)](this[_0x33d41d(0x174)],_0x2953d5),'body':JSON[_0x33d41d(0x194)]({..._0x3cab3d,'model':_0x59b7b1,'stream':_0x339b0f}),'signal':this[_0x33d41d(0x1a4)][_0x33d41d(0x1b8)]},_0x52edbc=await fetch(this[_0x33d41d(0x187)],_0x3e3f7a);_0x339b0f?await this[_0x33d41d(0x1a7)](_0x52edbc,_0x59b7b1,_0x247f93):await this[_0x33d41d(0x189)](_0x52edbc,_0x59b7b1,_0x247f93);}async[_0x1dcc87(0x181)](_0x38dd8a,_0x3ee54f,_0x346ddf,_0x43123f){const _0x1b88f3=_0x1dcc87,_0x24d4d7=new _0x233700(this[_0x1b88f3(0x197)]),_0x42fd11={'body':JSON[_0x1b88f3(0x194)](_0x38dd8a),'contentType':_0x1b88f3(0x176),'accept':_0x1b88f3(0x176),'modelId':_0x3ee54f};let _0x461bb5;if(_0x346ddf){const _0x4f890c=new _0x4ce6ad(_0x42fd11);_0x461bb5=await _0x24d4d7[_0x1b88f3(0x175)](_0x4f890c,{'abortSignal':this[_0x1b88f3(0x1a4)][_0x1b88f3(0x1b8)]}),await this[_0x1b88f3(0x19a)](_0x461bb5,_0x3ee54f,_0x43123f);}else{const _0x13d593=new _0x2fa9cf(_0x42fd11);_0x461bb5=await _0x24d4d7[_0x1b88f3(0x175)](_0x13d593,{'abortSignal':this[_0x1b88f3(0x1a4)][_0x1b88f3(0x1b8)]}),await this[_0x1b88f3(0x189)](_0x461bb5,_0x3ee54f,_0x43123f);}}async[_0x1dcc87(0x19a)](_0x2eec20,_0x1fd8f5,_0x35bf32){const _0x2040a6=_0x1dcc87,_0x14ee70=_0x2eec20[_0x2040a6(0x180)],_0x1ca523=new TextDecoder(_0x2040a6(0x19d));let _0x51adad='';for await(const _0x505416 of _0x14ee70)if(_0x505416[_0x2040a6(0x1bb)]){const _0x88d5f8=_0x1ca523[_0x2040a6(0x171)](_0x505416[_0x2040a6(0x1bb)][_0x2040a6(0x16f)]),_0x57988a=JSON[_0x2040a6(0x1b1)](_0x88d5f8);_0x51adad+=this[_0x2040a6(0x1ac)](_0x57988a,_0x1fd8f5),_0x35bf32(_0x51adad);}return Promise[_0x2040a6(0x186)]();}async[_0x1dcc87(0x1a7)](_0x4c7a9b,_0x4ebb41,_0xb9119){const _0x5be5ab=_0x1dcc87,_0x1ce917=_0x4c7a9b[_0x5be5ab(0x180)],_0x380e94=new TextDecoder(_0x5be5ab(0x19d)),_0x4c419d=_0x1ce917[_0x5be5ab(0x185)]();let _0xcb1d34='',_0x46dff8='',_0x8f1bfb=!0x1;for(;!_0x8f1bfb;){const {done:_0x20b23a,value:_0x10c220}=await _0x4c419d[_0x5be5ab(0x1a5)]();if(_0x8f1bfb=_0x20b23a,_0x8f1bfb)break;const _0x4aa7e4=(_0xcb1d34+_0x380e94[_0x5be5ab(0x171)](_0x10c220))[_0x5be5ab(0x1af)]('\x0a')[_0x5be5ab(0x1b9)](_0x31bbe9=>{const _0x18b987=_0x5be5ab;try{return _0xcb1d34='',JSON[_0x18b987(0x1b1)](_0x31bbe9);}catch{return _0xcb1d34=_0x31bbe9,null;}})[_0x5be5ab(0x1ba)](_0x4cf258=>null!==_0x4cf258);_0x4aa7e4[_0x5be5ab(0x18a)]&&(_0x46dff8+=_0x4aa7e4[_0x5be5ab(0x1b9)](_0x5084b2=>this[_0x5be5ab(0x1ac)](_0x5084b2,_0x4ebb41))[_0x5be5ab(0x1b7)](''),_0xb9119(_0x46dff8));}return Promise[_0x5be5ab(0x186)]();}async[_0x1dcc87(0x189)](_0x399d28,_0x44b009,_0x27e976){const _0x42e264=_0x1dcc87;let _0x132f49;return _0x132f49=_0x399d28 instanceof Response?await _0x399d28[_0x42e264(0x173)]():JSON[_0x42e264(0x1b1)](new TextDecoder(_0x42e264(0x19d))[_0x42e264(0x171)](_0x399d28[_0x42e264(0x180)])),(_0x27e976(this[_0x42e264(0x1ac)](_0x132f49,_0x44b009)),Promise[_0x42e264(0x186)]());}[_0x1dcc87(0x1ac)](_0x1ac886,_0x3260c7){const _0x396f38=_0x1dcc87;switch(this[_0x396f38(0x1ae)](_0x3260c7)){case _0x396f38(0x1ad):return _0x1ac886[_0x396f38(0x1b6)];case _0x396f38(0x188):return _0x1ac886[_0x396f38(0x183)][0x0][_0x396f38(0x18d)][_0x396f38(0x196)];case _0x396f38(0x17d):return _0x1ac886[_0x396f38(0x1a0)][0x0][_0x396f38(0x196)];case _0x396f38(0x1b0):return _0x1ac886[_0x396f38(0x1a8)];}}}
23
+ const _0x3e4b39=_0x1bbf;(function(_0x190bcb,_0x59f704){const _0x31a69b=_0x1bbf,_0x103ba5=_0x190bcb();while(!![]){try{const _0x15c988=parseInt(_0x31a69b(0x12b))/0x1*(parseInt(_0x31a69b(0x141))/0x2)+-parseInt(_0x31a69b(0x150))/0x3*(-parseInt(_0x31a69b(0x142))/0x4)+parseInt(_0x31a69b(0x146))/0x5*(parseInt(_0x31a69b(0x12a))/0x6)+parseInt(_0x31a69b(0x118))/0x7+-parseInt(_0x31a69b(0x11f))/0x8*(parseInt(_0x31a69b(0x131))/0x9)+-parseInt(_0x31a69b(0x15b))/0xa*(-parseInt(_0x31a69b(0x139))/0xb)+parseInt(_0x31a69b(0x121))/0xc*(-parseInt(_0x31a69b(0x11c))/0xd);if(_0x15c988===_0x59f704)break;else _0x103ba5['push'](_0x103ba5['shift']());}catch(_0x4fcaee){_0x103ba5['push'](_0x103ba5['shift']());}}}(_0x4e46,0x5dacd));function _0x1bbf(_0xd0e23e,_0xabe847){const _0x4e463a=_0x4e46();return _0x1bbf=function(_0x1bbfe5,_0x3790cc){_0x1bbfe5=_0x1bbfe5-0x110;let _0x53129d=_0x4e463a[_0x1bbfe5];return _0x53129d;},_0x1bbf(_0xd0e23e,_0xabe847);}import{AITextAdapter as _0x477cdd}from'./aitextadapter.js';import{AIRequestError as _0x235714}from'./aiadapter.js';import{BedrockRuntimeClient as _0x2c6386,InvokeModelCommand as _0x29deba,InvokeModelWithResponseStreamCommand as _0x422691}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x573989}from'../utils/common-translations.js';function _0x4e46(){const _0x186e12=['_prepareRequestHeaders','locale','data','bedrock-2023-05-31','resolve','generations','completion','sendRequest','1515BfOTtk','signal','_readStreamableResponse','generation','cohere.command','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','bytes','ai21.j2','map','AWSTextAdapter','application/json','3140390IKJaHJ','abortController','getModelFamily','Human:\x0a','<<SYS>>\x0a','_getGeneratedText','parse','chunk','getReader','_readStaticResponse','split','get','\x0a<</SYS>>\x0a[INST]\x0a','json','Instruction:\x0a','stringify','2207506zQbkfB','ai.assistant.adapter.aws.requestParameters','decode','text','104JNOdWr','AI_ERROR_UNSUPPORTED_MODEL','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.','5627992clPMxy','ai.assistant.adapter.aws.requestHeaders','1355136OZtTjJ','\x0a\x0aAssistant:','_requestHeaders','meta.llama','anthropic.claude-v2','join','_bedrockClientConfig','editor','ai.assistant.adapter.aws.bedrockClientConfig','2598vZYzAN','45133YarsYP','_requestParameters','_processProxyRequest','read','length','utf-8','9ohRoIV','config','test','anthropic.claude','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.','filter','send','pluginName','11SdYKCZ','POST','_processAWSRequest','_prepareRequestParameters','_apiUrl','body','ai.assistant.adapter.aws.apiUrl','_readAsyncIterableResponse','22CuOnye','2144SMKTdw','preparePrompt','\x0a[/INST]','completions','6860jUubAh','define'];_0x4e46=function(){return _0x186e12;};return _0x4e46();}export class AWSTextAdapter extends _0x477cdd{[_0x3e4b39(0x13d)];[_0x3e4b39(0x123)];[_0x3e4b39(0x127)];[_0x3e4b39(0x12c)];static get[_0x3e4b39(0x138)](){const _0x4e2d0d=_0x3e4b39;return _0x4e2d0d(0x159);}constructor(_0x1da59c){const _0x48cdd0=_0x3e4b39;super(_0x1da59c),_0x1da59c[_0x48cdd0(0x132)][_0x48cdd0(0x113)](_0x48cdd0(0x119))||_0x1da59c[_0x48cdd0(0x132)][_0x48cdd0(0x147)](_0x48cdd0(0x119),{'model':_0x48cdd0(0x125),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x48cdd0(0x14b),'stream':!0x0}),this[_0x48cdd0(0x13d)]=_0x1da59c[_0x48cdd0(0x132)][_0x48cdd0(0x113)](_0x48cdd0(0x13f)),this[_0x48cdd0(0x127)]=_0x1da59c[_0x48cdd0(0x132)][_0x48cdd0(0x113)](_0x48cdd0(0x129)),this[_0x48cdd0(0x123)]=_0x1da59c[_0x48cdd0(0x132)][_0x48cdd0(0x113)](_0x48cdd0(0x120)),this[_0x48cdd0(0x12c)]=_0x1da59c[_0x48cdd0(0x132)][_0x48cdd0(0x113)](_0x48cdd0(0x119));}async[_0x3e4b39(0x14f)]({query:_0x59c4f0,context:_0x3ce01d,onData:_0x17975f,actionId:_0x448327}){const _0x1a8dae=_0x3e4b39,{model:_0x1ca4b6,stream:_0x1c0332,..._0x3a89c1}=await this[_0x1a8dae(0x13c)](this[_0x1a8dae(0x12c)],_0x448327),_0x421561={'prompt':await this[_0x1a8dae(0x143)](_0x59c4f0,_0x3ce01d,_0x1ca4b6,_0x448327),..._0x3a89c1};this[_0x1a8dae(0x13d)]?await this[_0x1a8dae(0x12d)](_0x421561,_0x1ca4b6,_0x1c0332,_0x17975f,_0x448327):await this[_0x1a8dae(0x13b)](_0x421561,_0x1ca4b6,_0x1c0332,_0x17975f);}async[_0x3e4b39(0x143)](_0x5a262a,_0x4bab6d,_0x486790,_0x1384dd){const _0x122a98=_0x3e4b39;let _0x47e668,_0x5e33d3;return _0x4bab6d?(_0x47e668=_0x122a98(0x11e),_0x5e33d3=_0x122a98(0x116)+_0x5a262a+_0x122a98(0x155)+_0x4bab6d):(_0x47e668=_0x122a98(0x135),_0x5e33d3=_0x5a262a),_0x122a98(0x124)==this[_0x122a98(0x15d)](_0x486790)?_0x122a98(0x15f)+_0x47e668+_0x122a98(0x114)+_0x5e33d3+_0x122a98(0x144):_0x122a98(0x15e)+_0x47e668+'\x0a'+_0x5e33d3+_0x122a98(0x122);}[_0x3e4b39(0x15d)](_0x318ca5){const _0x2758e0=_0x3e4b39;if(/^anthropic\.claude/[_0x2758e0(0x133)](_0x318ca5))return _0x2758e0(0x134);if(/^ai21\.j2/[_0x2758e0(0x133)](_0x318ca5))return _0x2758e0(0x157);if(/^cohere\.command/[_0x2758e0(0x133)](_0x318ca5))return _0x2758e0(0x154);if(/^meta\.llama/[_0x2758e0(0x133)](_0x318ca5))return _0x2758e0(0x124);throw new _0x235714(_0x573989(this[_0x2758e0(0x128)][_0x2758e0(0x149)],_0x2758e0(0x11d),_0x318ca5));}async[_0x3e4b39(0x12d)](_0x13e5f3,_0x184b03,_0x3312f4,_0x3579f3,_0x353055){const _0xa5242d=_0x3e4b39,_0x5067eb={'method':_0xa5242d(0x13a),'headers':await this[_0xa5242d(0x148)](this[_0xa5242d(0x123)],_0x353055),'body':JSON[_0xa5242d(0x117)]({..._0x13e5f3,'model':_0x184b03,'stream':_0x3312f4}),'signal':this[_0xa5242d(0x15c)][_0xa5242d(0x151)]},_0x57699e=await fetch(this[_0xa5242d(0x13d)],_0x5067eb);_0x3312f4?await this[_0xa5242d(0x152)](_0x57699e,_0x184b03,_0x3579f3):await this[_0xa5242d(0x111)](_0x57699e,_0x184b03,_0x3579f3);}async[_0x3e4b39(0x13b)](_0x11446e,_0x1d02b3,_0x515bd7,_0x3e8db8){const _0x703fac=_0x3e4b39,_0x5859c6=new _0x2c6386(this[_0x703fac(0x127)]),_0x12761c={'body':JSON[_0x703fac(0x117)](_0x11446e),'contentType':_0x703fac(0x15a),'accept':_0x703fac(0x15a),'modelId':_0x1d02b3};let _0x5c9df7;if(_0x515bd7){const _0x5a0809=new _0x422691(_0x12761c);_0x5c9df7=await _0x5859c6[_0x703fac(0x137)](_0x5a0809,{'abortSignal':this[_0x703fac(0x15c)][_0x703fac(0x151)]}),await this[_0x703fac(0x140)](_0x5c9df7,_0x1d02b3,_0x3e8db8);}else{const _0x3a4059=new _0x29deba(_0x12761c);_0x5c9df7=await _0x5859c6[_0x703fac(0x137)](_0x3a4059,{'abortSignal':this[_0x703fac(0x15c)][_0x703fac(0x151)]}),await this[_0x703fac(0x111)](_0x5c9df7,_0x1d02b3,_0x3e8db8);}}async[_0x3e4b39(0x140)](_0x149c1e,_0x253170,_0x151f33){const _0x5b9969=_0x3e4b39,_0x4519c7=_0x149c1e[_0x5b9969(0x13e)],_0xd1543b=new TextDecoder(_0x5b9969(0x130));let _0x4df4b5='';for await(const _0x382c17 of _0x4519c7)if(_0x382c17[_0x5b9969(0x162)]){const _0x53d6fb=_0xd1543b[_0x5b9969(0x11a)](_0x382c17[_0x5b9969(0x162)][_0x5b9969(0x156)]),_0x54b71a=JSON[_0x5b9969(0x161)](_0x53d6fb);_0x4df4b5+=this[_0x5b9969(0x160)](_0x54b71a,_0x253170),_0x151f33(_0x4df4b5);}return Promise[_0x5b9969(0x14c)]();}async[_0x3e4b39(0x152)](_0x379cb3,_0x349e0a,_0xc8016c){const _0x4ab21f=_0x3e4b39,_0x2f8398=_0x379cb3[_0x4ab21f(0x13e)],_0x3c0cd6=new TextDecoder(_0x4ab21f(0x130)),_0x7b1866=_0x2f8398[_0x4ab21f(0x110)]();let _0x56ac8b='',_0xd78b6a='',_0x599a0d=!0x1;for(;!_0x599a0d;){const {done:_0x892223,value:_0x201688}=await _0x7b1866[_0x4ab21f(0x12e)]();if(_0x599a0d=_0x892223,_0x599a0d)break;const _0x51b141=(_0x56ac8b+_0x3c0cd6[_0x4ab21f(0x11a)](_0x201688))[_0x4ab21f(0x112)]('\x0a')[_0x4ab21f(0x158)](_0x34548d=>{const _0x254aa2=_0x4ab21f;try{return _0x56ac8b='',JSON[_0x254aa2(0x161)](_0x34548d);}catch{return _0x56ac8b=_0x34548d,null;}})[_0x4ab21f(0x136)](_0x132db5=>null!==_0x132db5);_0x51b141[_0x4ab21f(0x12f)]&&(_0xd78b6a+=_0x51b141[_0x4ab21f(0x158)](_0x3d1a7b=>this[_0x4ab21f(0x160)](_0x3d1a7b,_0x349e0a))[_0x4ab21f(0x126)](''),_0xc8016c(_0xd78b6a));}return Promise[_0x4ab21f(0x14c)]();}async[_0x3e4b39(0x111)](_0xd78a88,_0x7719f0,_0x3ee6ef){const _0x351710=_0x3e4b39;let _0x2ed5eb;return _0x2ed5eb=_0xd78a88 instanceof Response?await _0xd78a88[_0x351710(0x115)]():JSON[_0x351710(0x161)](new TextDecoder(_0x351710(0x130))[_0x351710(0x11a)](_0xd78a88[_0x351710(0x13e)])),(_0x3ee6ef(this[_0x351710(0x160)](_0x2ed5eb,_0x7719f0)),Promise[_0x351710(0x14c)]());}[_0x3e4b39(0x160)](_0x20a4b4,_0x5b8ca7){const _0x391367=_0x3e4b39;switch(this[_0x391367(0x15d)](_0x5b8ca7)){case _0x391367(0x134):return _0x20a4b4[_0x391367(0x14e)];case _0x391367(0x157):return _0x20a4b4[_0x391367(0x145)][0x0][_0x391367(0x14a)][_0x391367(0x11b)];case _0x391367(0x154):return _0x20a4b4[_0x391367(0x14d)][0x0][_0x391367(0x11b)];case _0x391367(0x124):return _0x20a4b4[_0x391367(0x153)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7f6156=_0x57f8;(function(_0x4ef726,_0x5b6818){const _0x234913=_0x57f8,_0x20aad3=_0x4ef726();while(!![]){try{const _0x588ef5=parseInt(_0x234913(0xb8))/0x1*(parseInt(_0x234913(0xd9))/0x2)+-parseInt(_0x234913(0xb1))/0x3*(parseInt(_0x234913(0xa2))/0x4)+-parseInt(_0x234913(0x9c))/0x5*(-parseInt(_0x234913(0x9b))/0x6)+parseInt(_0x234913(0x9d))/0x7*(-parseInt(_0x234913(0xbf))/0x8)+parseInt(_0x234913(0xd3))/0x9*(-parseInt(_0x234913(0xbd))/0xa)+-parseInt(_0x234913(0xd7))/0xb*(parseInt(_0x234913(0xa7))/0xc)+parseInt(_0x234913(0xc7))/0xd;if(_0x588ef5===_0x5b6818)break;else _0x20aad3['push'](_0x20aad3['shift']());}catch(_0x1fafe3){_0x20aad3['push'](_0x20aad3['shift']());}}}(_0x5771,0x19401));import{AITextAdapter as _0x1961b8}from'./aitextadapter.js';import{AIRequestError as _0x3630e}from'./aiadapter.js';function _0x57f8(_0x35c972,_0x4436ea){const _0x577179=_0x5771();return _0x57f8=function(_0x57f86e,_0x28e300){_0x57f86e=_0x57f86e-0x99;let _0xc02ee4=_0x577179[_0x57f86e];return _0xc02ee4;},_0x57f8(_0x35c972,_0x4436ea);}import{getTranslation as _0x160e3b}from'../utils/common-translations.js';function _0x5771(){const _0x5ab4b7=['ai.assistant.adapter.openAI.requestHeaders','gpt-4o','_prepareRequestHeaders','pluginName','_cleanUpData','478722trimPM','5iLsQnO','7gIjnOf','AI_ERROR_MODERATION','POST','content','_prepareRequestParameters','115936qZxAqD','locale','prepareMessages','context_length_exceeded','_readStaticResponse','36ynbIhg','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.','join','_isBufferIncomplete','filter','ai.assistant.adapter.openAI.apiUrl','Moderation','get','reject','system','6vdNlTe','text','sendRequest','includes','parse','config','user','6227IaqhMV','_requestParameters','data:\x20','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','body','30rfnpca','choices','742232YJnCDr','signal','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.','message','_apiUrl','decode','read','ai.assistant.adapter.openAI.requestParameters','4440306BsLcYY','getReader','delta','define','_requestHeaders','abortController','Instruction:\x0a','_readStreamableResponse','length','stringify','split','editor','565443GUVYev','json','resolve','replace','447029LQkbwt','https://api.openai.com/v1/chat/completions','46noEfJp','stream','[DONE]','OpenAITextAdapter','AI_ERROR_CONTEXT_LENGTH','map'];_0x5771=function(){return _0x5ab4b7;};return _0x5771();}export class OpenAITextAdapter extends _0x1961b8{[_0x7f6156(0xc3)];[_0x7f6156(0xcb)];[_0x7f6156(0xb9)];static get[_0x7f6156(0x99)](){const _0x548007=_0x7f6156;return _0x548007(0xdc);}constructor(_0xb379be){const _0x15e08d=_0x7f6156;super(_0xb379be),_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xca)](_0x15e08d(0xac),_0x15e08d(0xd8)),_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xc6))||_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xca)](_0x15e08d(0xc6),{'model':_0x15e08d(0xe0),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x15e08d(0xc3)]=_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xac)),this[_0x15e08d(0xcb)]=_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xdf))||{},this[_0x15e08d(0xb9)]=_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xc6));}async[_0x7f6156(0xb3)]({query:_0x5c72cc,context:_0x3e55d6,onData:_0x551ab1,actionId:_0x300cd8}){const _0x36d8ba=_0x7f6156,_0x1af34d=this[_0x36d8ba(0xd2)][_0x36d8ba(0xa3)],_0x3b4dbf=await this[_0x36d8ba(0xa4)](_0x5c72cc,_0x3e55d6,_0x300cd8),_0x47d24b=await this[_0x36d8ba(0xe1)](this[_0x36d8ba(0xcb)],_0x300cd8),_0x5fedc7=await this[_0x36d8ba(0xa1)](this[_0x36d8ba(0xb9)],_0x300cd8),_0x5281c9={'messages':_0x3b4dbf,..._0x5fedc7},_0x582f49={'method':_0x36d8ba(0x9f),'headers':_0x47d24b,'body':JSON[_0x36d8ba(0xd0)](_0x5281c9),'signal':this[_0x36d8ba(0xcc)][_0x36d8ba(0xc0)]},_0x501818=await fetch(this[_0x36d8ba(0xc3)],_0x582f49);if(_0x501818['ok'])return _0x5fedc7[_0x36d8ba(0xda)]?await this[_0x36d8ba(0xce)](_0x501818,_0x551ab1):await this[_0x36d8ba(0xa6)](_0x501818,_0x551ab1),Promise[_0x36d8ba(0xd5)]();{const _0x563e73=await _0x501818[_0x36d8ba(0xb2)]();return _0x563e73[_0x36d8ba(0xb4)](_0x36d8ba(0xa5))?Promise[_0x36d8ba(0xaf)](new _0x3630e(_0x160e3b(_0x1af34d,_0x36d8ba(0xdd)))):_0x563e73[_0x36d8ba(0xb4)](_0x36d8ba(0xad))?Promise[_0x36d8ba(0xaf)](new _0x3630e(_0x160e3b(_0x1af34d,_0x36d8ba(0x9e)))):Promise[_0x36d8ba(0xaf)](new Error(_0x563e73));}}async[_0x7f6156(0xa4)](_0x5355df,_0x4351ae,_0xfe488b){const _0x55d334=_0x7f6156;let _0x3962e2,_0x1ea538;return _0x4351ae?(_0x3962e2=_0x55d334(0xc1),_0x1ea538=_0x55d334(0xcd)+_0x5355df+_0x55d334(0xbb)+_0x4351ae):(_0x3962e2=_0x55d334(0xa8),_0x1ea538=_0x5355df),[{'role':_0x55d334(0xb0),'content':_0x3962e2},{'role':_0x55d334(0xb7),'content':_0x1ea538}];}async[_0x7f6156(0xce)](_0x1c2aae,_0x1a3c50){const _0x4f03c0=_0x7f6156,_0x40b4ca=_0x1c2aae[_0x4f03c0(0xbc)][_0x4f03c0(0xc8)](),_0x4fd954=new TextDecoder();let _0x4e7fd0='',_0x2012f2='',_0x4b800b='',_0x25f642=!0x1;for(;!_0x25f642;){const {done:_0x4bd3f6,value:_0x17bccd}=await _0x40b4ca[_0x4f03c0(0xc5)](),_0x398289=_0x4e7fd0+_0x4fd954[_0x4f03c0(0xc4)](_0x17bccd);let _0x48609a='';_0x25f642=_0x4bd3f6;try{_0x48609a=this[_0x4f03c0(0x9a)](_0x398289),_0x4e7fd0='';}catch{_0x4e7fd0=_0x398289;continue;}_0x2012f2+=_0x48609a,!_0x25f642&&this[_0x4f03c0(0xaa)](_0x2012f2)||_0x2012f2&&(_0x4b800b+=_0x2012f2,_0x2012f2='',_0x1a3c50(_0x4b800b));}return Promise[_0x4f03c0(0xd5)]();}async[_0x7f6156(0xa6)](_0x2dec35,_0x57661e){const _0xc8fa83=_0x7f6156;return _0x57661e((await _0x2dec35[_0xc8fa83(0xd4)]())[_0xc8fa83(0xbe)][0x0][_0xc8fa83(0xc2)][_0xc8fa83(0xa0)]),Promise[_0xc8fa83(0xd5)]();}[_0x7f6156(0xaa)](_0x475002){const _0x25ba75=_0x7f6156,_0x2f8b6d=_0x475002[_0x25ba75(0xd1)]('<')[_0x25ba75(0xcf)]!==_0x475002[_0x25ba75(0xd1)]('>')[_0x25ba75(0xcf)],_0x53d159=_0x475002[_0x25ba75(0xcf)]<0x1e;return _0x2f8b6d&&_0x53d159;}[_0x7f6156(0x9a)](_0x503711){const _0x1115df=_0x7f6156;return _0x503711[_0x1115df(0xd1)](/\n(?![^{]*\})/g)[_0x1115df(0xde)](_0x4c99e6=>_0x4c99e6[_0x1115df(0xd6)](_0x1115df(0xba),''))[_0x1115df(0xab)](_0x35a5b3=>_0x35a5b3&&_0x35a5b3[_0x1115df(0xcf)]>0x0&&_0x1115df(0xdb)!==_0x35a5b3)[_0x1115df(0xde)](_0x2d66db=>{const _0x4bb499=_0x1115df,{choices:_0x5bd3ac}=JSON[_0x4bb499(0xb5)](_0x2d66db);if(_0x5bd3ac[0x0]?.[_0x4bb499(0xc9)]?.[_0x4bb499(0xa0)])return _0x5bd3ac[0x0][_0x4bb499(0xc9)][_0x4bb499(0xa0)];})[_0x1115df(0xab)](_0x257f9c=>_0x257f9c)[_0x1115df(0xa9)]('');}}
23
+ function _0x21f6(_0x38d05d,_0x5ecac3){const _0xf01d20=_0xf01d();return _0x21f6=function(_0x21f68e,_0x36dd82){_0x21f68e=_0x21f68e-0x7d;let _0x35e601=_0xf01d20[_0x21f68e];return _0x35e601;},_0x21f6(_0x38d05d,_0x5ecac3);}const _0x232981=_0x21f6;(function(_0x357922,_0x47d5aa){const _0x55c537=_0x21f6,_0x2c5933=_0x357922();while(!![]){try{const _0x56de57=-parseInt(_0x55c537(0xbc))/0x1*(parseInt(_0x55c537(0xb5))/0x2)+parseInt(_0x55c537(0x9b))/0x3+-parseInt(_0x55c537(0x9d))/0x4*(parseInt(_0x55c537(0x9e))/0x5)+-parseInt(_0x55c537(0xad))/0x6*(parseInt(_0x55c537(0x83))/0x7)+parseInt(_0x55c537(0xa3))/0x8+-parseInt(_0x55c537(0xa1))/0x9*(parseInt(_0x55c537(0xa2))/0xa)+parseInt(_0x55c537(0xba))/0xb;if(_0x56de57===_0x47d5aa)break;else _0x2c5933['push'](_0x2c5933['shift']());}catch(_0x33589c){_0x2c5933['push'](_0x2c5933['shift']());}}}(_0xf01d,0xec164));import{AITextAdapter as _0x5ed9e9}from'./aitextadapter.js';function _0xf01d(){const _0x4d1aeb=['_requestParameters','2576068lCJPIq','5sWaWPz','_prepareRequestHeaders','message','684ddBgAW','205420pTJOVY','8627464EHqXlb','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.','prepareMessages','body','_apiUrl','gpt-4o','_readStaticResponse','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.','https://api.openai.com/v1/chat/completions','ai.assistant.adapter.openAI.requestHeaders','156dlxCpq','includes','split','[DONE]','OpenAITextAdapter','_isBufferIncomplete','config','decode','84sbYNmm','get','_prepareRequestParameters','read','AI_ERROR_CONTEXT_LENGTH','37417248YazyeZ','abortController','45613VsPMZM','parse','system','pluginName','ai.assistant.adapter.openAI.requestParameters','ai.assistant.adapter.openAI.apiUrl','delta','text','_readStreamableResponse','stringify','choices','editor','signal','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','242340CrqWhA','replace','length','map','user','data:\x20','_requestHeaders','POST','sendRequest','resolve','_cleanUpData','AI_ERROR_MODERATION','reject','define','Moderation','locale','stream','content','Instruction:\x0a','join','context_length_exceeded','json','getReader','filter','4524258CwfAbw'];_0xf01d=function(){return _0x4d1aeb;};return _0xf01d();}import{AIRequestError as _0x12d4d5}from'./aiadapter.js';import{getTranslation as _0x373cad}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x5ed9e9{[_0x232981(0xa7)];[_0x232981(0x89)];[_0x232981(0x9c)];static get[_0x232981(0xbf)](){const _0x1143ed=_0x232981;return _0x1143ed(0xb1);}constructor(_0x36e7f0){const _0x2b0bd7=_0x232981;super(_0x36e7f0),_0x36e7f0[_0x2b0bd7(0xb3)][_0x2b0bd7(0x90)](_0x2b0bd7(0xc1),_0x2b0bd7(0xab)),_0x36e7f0[_0x2b0bd7(0xb3)][_0x2b0bd7(0xb6)](_0x2b0bd7(0xc0))||_0x36e7f0[_0x2b0bd7(0xb3)][_0x2b0bd7(0x90)](_0x2b0bd7(0xc0),{'model':_0x2b0bd7(0xa8),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x2b0bd7(0xa7)]=_0x36e7f0[_0x2b0bd7(0xb3)][_0x2b0bd7(0xb6)](_0x2b0bd7(0xc1)),this[_0x2b0bd7(0x89)]=_0x36e7f0[_0x2b0bd7(0xb3)][_0x2b0bd7(0xb6)](_0x2b0bd7(0xac))||{},this[_0x2b0bd7(0x9c)]=_0x36e7f0[_0x2b0bd7(0xb3)][_0x2b0bd7(0xb6)](_0x2b0bd7(0xc0));}async[_0x232981(0x8b)]({query:_0x5b11de,context:_0x355c56,onData:_0x2ec267,actionId:_0x50ba2a}){const _0x58e229=_0x232981,_0x57cf64=this[_0x58e229(0x80)][_0x58e229(0x92)],_0xbc8d66=await this[_0x58e229(0xa5)](_0x5b11de,_0x355c56,_0x50ba2a),_0x545bf0=await this[_0x58e229(0x9f)](this[_0x58e229(0x89)],_0x50ba2a),_0x51b2ae=await this[_0x58e229(0xb7)](this[_0x58e229(0x9c)],_0x50ba2a),_0x52a910={'messages':_0xbc8d66,..._0x51b2ae},_0x2abc92={'method':_0x58e229(0x8a),'headers':_0x545bf0,'body':JSON[_0x58e229(0x7e)](_0x52a910),'signal':this[_0x58e229(0xbb)][_0x58e229(0x81)]},_0x29c213=await fetch(this[_0x58e229(0xa7)],_0x2abc92);if(_0x29c213['ok'])return _0x51b2ae[_0x58e229(0x93)]?await this[_0x58e229(0x7d)](_0x29c213,_0x2ec267):await this[_0x58e229(0xa9)](_0x29c213,_0x2ec267),Promise[_0x58e229(0x8c)]();{const _0x5e4d2c=await _0x29c213[_0x58e229(0xc3)]();return _0x5e4d2c[_0x58e229(0xae)](_0x58e229(0x97))?Promise[_0x58e229(0x8f)](new _0x12d4d5(_0x373cad(_0x57cf64,_0x58e229(0xb9)))):_0x5e4d2c[_0x58e229(0xae)](_0x58e229(0x91))?Promise[_0x58e229(0x8f)](new _0x12d4d5(_0x373cad(_0x57cf64,_0x58e229(0x8e)))):Promise[_0x58e229(0x8f)](new Error(_0x5e4d2c));}}async[_0x232981(0xa5)](_0x1f04db,_0x4984eb,_0x12a8f6){const _0x3b1379=_0x232981;let _0x586969,_0xea359e;return _0x4984eb?(_0x586969=_0x3b1379(0xaa),_0xea359e=_0x3b1379(0x95)+_0x1f04db+_0x3b1379(0x82)+_0x4984eb):(_0x586969=_0x3b1379(0xa4),_0xea359e=_0x1f04db),[{'role':_0x3b1379(0xbe),'content':_0x586969},{'role':_0x3b1379(0x87),'content':_0xea359e}];}async[_0x232981(0x7d)](_0x412542,_0x3a9625){const _0xfbe202=_0x232981,_0x47e45f=_0x412542[_0xfbe202(0xa6)][_0xfbe202(0x99)](),_0x21f6c6=new TextDecoder();let _0x1cc6ad='',_0xf74835='',_0x2697a6='',_0x5a76cb=!0x1;for(;!_0x5a76cb;){const {done:_0x494d43,value:_0x58cb08}=await _0x47e45f[_0xfbe202(0xb8)](),_0x5ec3c2=_0x1cc6ad+_0x21f6c6[_0xfbe202(0xb4)](_0x58cb08);let _0x3ca4d4='';_0x5a76cb=_0x494d43;try{_0x3ca4d4=this[_0xfbe202(0x8d)](_0x5ec3c2),_0x1cc6ad='';}catch{_0x1cc6ad=_0x5ec3c2;continue;}_0xf74835+=_0x3ca4d4,!_0x5a76cb&&this[_0xfbe202(0xb2)](_0xf74835)||_0xf74835&&(_0x2697a6+=_0xf74835,_0xf74835='',_0x3a9625(_0x2697a6));}return Promise[_0xfbe202(0x8c)]();}async[_0x232981(0xa9)](_0x2a64d8,_0x502232){const _0x4e45d6=_0x232981;return _0x502232((await _0x2a64d8[_0x4e45d6(0x98)]())[_0x4e45d6(0x7f)][0x0][_0x4e45d6(0xa0)][_0x4e45d6(0x94)]),Promise[_0x4e45d6(0x8c)]();}[_0x232981(0xb2)](_0x26f8c9){const _0x5d980f=_0x232981,_0x14b278=_0x26f8c9[_0x5d980f(0xaf)]('<')[_0x5d980f(0x85)]!==_0x26f8c9[_0x5d980f(0xaf)]('>')[_0x5d980f(0x85)],_0x5f4d7a=_0x26f8c9[_0x5d980f(0x85)]<0x1e;return _0x14b278&&_0x5f4d7a;}[_0x232981(0x8d)](_0x35f4d2){const _0x4d88e7=_0x232981;return _0x35f4d2[_0x4d88e7(0xaf)](/\n(?![^{]*\})/g)[_0x4d88e7(0x86)](_0x2dab0a=>_0x2dab0a[_0x4d88e7(0x84)](_0x4d88e7(0x88),''))[_0x4d88e7(0x9a)](_0x21f1b8=>_0x21f1b8&&_0x21f1b8[_0x4d88e7(0x85)]>0x0&&_0x4d88e7(0xb0)!==_0x21f1b8)[_0x4d88e7(0x86)](_0x4840ab=>{const _0x24b4a5=_0x4d88e7,{choices:_0x50e247}=JSON[_0x24b4a5(0xbd)](_0x4840ab);if(_0x50e247[0x0]?.[_0x24b4a5(0xc2)]?.[_0x24b4a5(0x94)])return _0x50e247[0x0][_0x24b4a5(0xc2)][_0x24b4a5(0x94)];})[_0x4d88e7(0x9a)](_0x104fb0=>_0x104fb0)[_0x4d88e7(0x96)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24c353=_0x283e;function _0x4769(){const _0x50f229=['journalism','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translateFrench','groupId','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Edit\x20or\x20review','Translate\x20the\x20content\x20to\x20English\x20language.','836478RvzxxF','ai.assistant.extraCommandGroups','ai.assistant.removeCommands','professional','Journalism','Simplified\x20Chinese','Change\x20style','English','Summarize','French','friendly','config','translateGerman','8764940sRrKFE','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','forEach','Spanish','Professional','10883511WecKUi','Make\x20longer','confident','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Hindi','filter','generate','isPremiumPlugin','1338158IrEMyd','translateChinese','locale','define','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','improveWriting','translateSpanish','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Direct','translateEnglish','find','set','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Business','get','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','editOrReview','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','changeStyle','ai.assistant.commands','German','Continue','554475UMfZpC','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','simplifyLanguage','continue','Poetic','makeLonger','summarize','56yKCTwV','push','isOfficialPlugin','1295440audsMQ','includes','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','casual','Arabic','Translate','translateArabic','poetic','Simplify\x20language','Translate\x20the\x20content\x20to\x20French\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','direct','ai.assistant.preserveComments','requires','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','commands','Make\x20shorter','translatePortuguese','translateHindi','Confident','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Change\x20tone','Friendly','translate','Portuguese','makeShorter','changeTone','pluginName','Translate\x20the\x20content\x20to\x20German\x20language.','2UooTev','business','concat','3483792frFPIW','16DWIyxL','legal','AIAssistant','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Legal','Casual'];_0x4769=function(){return _0x50f229;};return _0x4769();}(function(_0x4ae9cc,_0x249641){const _0x3b11dd=_0x283e,_0x395d02=_0x4ae9cc();while(!![]){try{const _0x54a12f=-parseInt(_0x3b11dd(0xb0))/0x1*(parseInt(_0x3b11dd(0xdb))/0x2)+-parseInt(_0x3b11dd(0xb3))/0x3+-parseInt(_0x3b11dd(0xb4))/0x4*(-parseInt(_0x3b11dd(0xf6))/0x5)+-parseInt(_0x3b11dd(0xc1))/0x6*(-parseInt(_0x3b11dd(0x8f))/0x7)+-parseInt(_0x3b11dd(0x92))/0x8+parseInt(_0x3b11dd(0xd3))/0x9+parseInt(_0x3b11dd(0xce))/0xa;if(_0x54a12f===_0x249641)break;else _0x395d02['push'](_0x395d02['shift']());}catch(_0x20a3bf){_0x395d02['push'](_0x395d02['shift']());}}}(_0x4769,0xf0109));import{Plugin as _0x1881ee}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x4b808b}from'./aiassistantui.js';import{AIAssistantEditing as _0x22e764}from'./aiassistantediting.js';import{getTranslation as _0x8981a1}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x735703}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x1881ee{static get[_0x24c353(0x9f)](){return[_0x4b808b,_0x22e764];}static get[_0x24c353(0xae)](){const _0x49811d=_0x24c353;return _0x49811d(0xb6);}static get[_0x24c353(0x91)](){return!0x0;}static get[_0x24c353(0xda)](){return!0x0;}constructor(_0x5b90ce){const _0x2f4b47=_0x24c353;super(_0x5b90ce);const _0x1b5a27=_0x5b90ce[_0x2f4b47(0xcc)],_0x2c125c=_0x5b90ce[_0x2f4b47(0xdd)];_0x1b5a27[_0x2f4b47(0xde)](_0x2f4b47(0x9e),!0x0),_0x1b5a27[_0x2f4b47(0xde)](_0x2f4b47(0xf3),getDefaultAICommands(_0x2c125c)),_0x1b5a27[_0x2f4b47(0xde)](_0x2f4b47(0xc2),[]),_0x1b5a27[_0x2f4b47(0xde)](_0x2f4b47(0xc3),[]);let _0x49b96e=_0x735703(_0x1b5a27[_0x2f4b47(0xeb)](_0x2f4b47(0xf3)),_0x2c125c);const _0x41c24f=_0x1b5a27[_0x2f4b47(0xeb)](_0x2f4b47(0xc2)),_0xa4bb7=_0x1b5a27[_0x2f4b47(0xeb)](_0x2f4b47(0xc3));_0x41c24f[_0x2f4b47(0xd0)](_0x3ae3b=>{const _0x3f92af=_0x2f4b47,_0x1dbbf1=_0x49b96e[_0x3f92af(0xe7)](_0x162c3e=>_0x162c3e[_0x3f92af(0xbd)]===_0x3ae3b[_0x3f92af(0xbd)]);_0x1dbbf1?_0x1dbbf1[_0x3f92af(0xa1)]=_0x1dbbf1[_0x3f92af(0xa1)][_0x3f92af(0xb2)](_0x3ae3b[_0x3f92af(0xa1)]):_0x49b96e[_0x3f92af(0x90)](_0x3ae3b);}),_0x49b96e=_0x49b96e[_0x2f4b47(0xd8)](_0x593a65=>!_0xa4bb7[_0x2f4b47(0x93)](_0x593a65[_0x2f4b47(0xbd)])),_0x49b96e[_0x2f4b47(0xd0)](_0x5a4794=>{const _0x4c4c1d=_0x2f4b47;_0x5a4794[_0x4c4c1d(0xa1)]=_0x5a4794[_0x4c4c1d(0xa1)][_0x4c4c1d(0xd8)](_0x3916ea=>!_0xa4bb7[_0x4c4c1d(0x93)](_0x3916ea['id']));}),_0x1b5a27[_0x2f4b47(0xe8)](_0x2f4b47(0xf3),_0x49b96e);}}function _0x283e(_0x274879,_0x5ba0c8){const _0x476987=_0x4769();return _0x283e=function(_0x283e7e,_0x234809){_0x283e7e=_0x283e7e-0x89;let _0x5388d9=_0x476987[_0x283e7e];return _0x5388d9;},_0x283e(_0x274879,_0x5ba0c8);}export function getDefaultAICommands(_0x3edf83){const _0x4c04f1=_0x24c353;return[{'groupId':_0x4c04f1(0xf0),'groupLabel':_0x8981a1(_0x3edf83,_0x4c04f1(0xbf)),'commands':[{'id':_0x4c04f1(0xe2),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xdf)),'prompt':_0x4c04f1(0xb7)},{'id':_0x4c04f1(0xac),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xa2)),'prompt':_0x4c04f1(0x9c)},{'id':_0x4c04f1(0x8d),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xd4)),'prompt':_0x4c04f1(0x89)},{'id':_0x4c04f1(0x8a),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0x9a)),'prompt':_0x4c04f1(0xe9)}]},{'groupId':_0x4c04f1(0xd9),'groupLabel':_0x8981a1(_0x3edf83,_0x4c04f1(0xed)),'commands':[{'id':_0x4c04f1(0x8e),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xc9)),'prompt':_0x4c04f1(0xbb)},{'id':_0x4c04f1(0x8b),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xf5)),'prompt':_0x4c04f1(0xe1)}]},{'groupId':_0x4c04f1(0xad),'groupLabel':_0x8981a1(_0x3edf83,_0x4c04f1(0xa8)),'commands':[{'id':_0x4c04f1(0xc4),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xd2)),'prompt':_0x4c04f1(0xe4)},{'id':_0x4c04f1(0x95),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xb9)),'prompt':_0x4c04f1(0xf1)},{'id':_0x4c04f1(0x9d),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xe5)),'prompt':_0x4c04f1(0x94)},{'id':_0x4c04f1(0xd5),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xa5)),'prompt':_0x4c04f1(0xcf)},{'id':_0x4c04f1(0xcb),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xa9)),'prompt':_0x4c04f1(0xec)}]},{'groupId':_0x4c04f1(0xf2),'groupLabel':_0x8981a1(_0x3edf83,_0x4c04f1(0xc7)),'commands':[{'id':_0x4c04f1(0xb1),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xea)),'prompt':_0x4c04f1(0xf7)},{'id':_0x4c04f1(0xb5),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xb8)),'prompt':_0x4c04f1(0xe0)},{'id':_0x4c04f1(0xba),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xc5)),'prompt':_0x4c04f1(0xef)},{'id':_0x4c04f1(0x99),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0x8c)),'prompt':_0x4c04f1(0xd6)}]},{'groupId':_0x4c04f1(0xaa),'groupLabel':_0x8981a1(_0x3edf83,_0x4c04f1(0x97)),'commands':[{'id':_0x4c04f1(0xe6),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xc8)),'prompt':_0x4c04f1(0xc0)},{'id':_0x4c04f1(0xe3),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xd1)),'prompt':_0x4c04f1(0xa7)},{'id':_0x4c04f1(0xa3),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xab)),'prompt':_0x4c04f1(0xee)},{'id':_0x4c04f1(0xcd),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xf4)),'prompt':_0x4c04f1(0xaf)},{'id':_0x4c04f1(0xbc),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xca)),'prompt':_0x4c04f1(0x9b)},{'id':_0x4c04f1(0xdc),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xc6)),'prompt':_0x4c04f1(0xa0)},{'id':_0x4c04f1(0xa4),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0xd7)),'prompt':_0x4c04f1(0xa6)},{'id':_0x4c04f1(0x98),'label':_0x8981a1(_0x3edf83,_0x4c04f1(0x96)),'prompt':_0x4c04f1(0xbe)}]}];}
23
+ const _0x14a6e0=_0x38eb;(function(_0x2fec54,_0x240026){const _0x1d84ea=_0x38eb,_0x3cc735=_0x2fec54();while(!![]){try{const _0x364a7b=parseInt(_0x1d84ea(0x239))/0x1*(parseInt(_0x1d84ea(0x21d))/0x2)+-parseInt(_0x1d84ea(0x1ea))/0x3+parseInt(_0x1d84ea(0x23f))/0x4+-parseInt(_0x1d84ea(0x1f7))/0x5+-parseInt(_0x1d84ea(0x206))/0x6+-parseInt(_0x1d84ea(0x237))/0x7*(parseInt(_0x1d84ea(0x1f1))/0x8)+parseInt(_0x1d84ea(0x22a))/0x9;if(_0x364a7b===_0x240026)break;else _0x3cc735['push'](_0x3cc735['shift']());}catch(_0x498d86){_0x3cc735['push'](_0x3cc735['shift']());}}}(_0x178d,0xd3c0d));function _0x38eb(_0x31e682,_0x1d6321){const _0x178db6=_0x178d();return _0x38eb=function(_0x38eb60,_0x5f356f){_0x38eb60=_0x38eb60-0x1d9;let _0x29a678=_0x178db6[_0x38eb60];return _0x29a678;},_0x38eb(_0x31e682,_0x1d6321);}function _0x178d(){const _0x19c93f=['professional','translate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','includes','ai.assistant.removeCommands','Friendly','isPremiumPlugin','Generate\x20from\x20selection','editOrReview','French','translateHindi','Continue','164rbgqSH','friendly','Change\x20tone','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','forEach','improveWriting','Improve\x20writing','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','direct','translatePortuguese','changeTone','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Arabic','25496127pupUbF','confident','Professional','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','AIAssistant','translateArabic','makeShorter','casual','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','filter','Portuguese','push','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','3138282WDCBpT','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','4981mSSCnf','Direct','Simplify\x20language','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Poetic','commands','3042628zYnsEb','isOfficialPlugin','translateGerman','makeLonger','define','translateFrench','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Edit\x20or\x20review','Translate','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translateEnglish','journalism','config','summarize','set','requires','Make\x20shorter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','poetic','Translate\x20the\x20content\x20to\x20English\x20language.','business','Simplified\x20Chinese','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateSpanish','Make\x20longer','4576416FtGieH','generate','Change\x20style','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','changeStyle','continue','Translate\x20the\x20content\x20to\x20French\x20language.','8ailFFy','Confident','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateChinese','Casual','Translate\x20the\x20content\x20to\x20German\x20language.','4835265EhFRBd','Hindi','Journalism','ai.assistant.preserveComments','ai.assistant.extraCommandGroups','legal','find','groupId','get','pluginName','locale','Spanish','Business','simplifyLanguage','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','1162860ZUMArl','English','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Legal','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai.assistant.commands','German','concat','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Summarize'];_0x178d=function(){return _0x19c93f;};return _0x178d();}import{Plugin as _0x256d10}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3feef0}from'./aiassistantui.js';import{AIAssistantEditing as _0xfb2d0e}from'./aiassistantediting.js';import{getTranslation as _0x569956}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3c301b}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x256d10{static get[_0x14a6e0(0x1e0)](){return[_0x3feef0,_0xfb2d0e];}static get[_0x14a6e0(0x200)](){const _0x358d6d=_0x14a6e0;return _0x358d6d(0x22e);}static get[_0x14a6e0(0x240)](){return!0x0;}static get[_0x14a6e0(0x217)](){return!0x0;}constructor(_0x1518e8){const _0x53c737=_0x14a6e0;super(_0x1518e8);const _0x338c84=_0x1518e8[_0x53c737(0x1dd)],_0x4b413f=_0x1518e8[_0x53c737(0x201)];_0x338c84[_0x53c737(0x243)](_0x53c737(0x1fa),!0x0),_0x338c84[_0x53c737(0x243)](_0x53c737(0x20b),getDefaultAICommands(_0x4b413f)),_0x338c84[_0x53c737(0x243)](_0x53c737(0x1fb),[]),_0x338c84[_0x53c737(0x243)](_0x53c737(0x215),[]);let _0x38deb7=_0x3c301b(_0x338c84[_0x53c737(0x1ff)](_0x53c737(0x20b)),_0x4b413f);const _0x4449e8=_0x338c84[_0x53c737(0x1ff)](_0x53c737(0x1fb)),_0xb66aac=_0x338c84[_0x53c737(0x1ff)](_0x53c737(0x215));_0x4449e8[_0x53c737(0x221)](_0x624de0=>{const _0x4f40cf=_0x53c737,_0x52b546=_0x38deb7[_0x4f40cf(0x1fd)](_0xcc7ba0=>_0xcc7ba0[_0x4f40cf(0x1fe)]===_0x624de0[_0x4f40cf(0x1fe)]);_0x52b546?_0x52b546[_0x4f40cf(0x23e)]=_0x52b546[_0x4f40cf(0x23e)][_0x4f40cf(0x20d)](_0x624de0[_0x4f40cf(0x23e)]):_0x38deb7[_0x4f40cf(0x235)](_0x624de0);}),_0x38deb7=_0x38deb7[_0x53c737(0x233)](_0xde439f=>!_0xb66aac[_0x53c737(0x214)](_0xde439f[_0x53c737(0x1fe)])),_0x38deb7[_0x53c737(0x221)](_0x1b236b=>{const _0x7dd724=_0x53c737;_0x1b236b[_0x7dd724(0x23e)]=_0x1b236b[_0x7dd724(0x23e)][_0x7dd724(0x233)](_0x133bea=>!_0xb66aac[_0x7dd724(0x214)](_0x133bea['id']));}),_0x338c84[_0x53c737(0x1df)](_0x53c737(0x20b),_0x38deb7);}}export function getDefaultAICommands(_0x2bcbaa){const _0x24c93a=_0x14a6e0;return[{'groupId':_0x24c93a(0x219),'groupLabel':_0x569956(_0x2bcbaa,_0x24c93a(0x246)),'commands':[{'id':_0x24c93a(0x222),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x223)),'prompt':_0x24c93a(0x208)},{'id':_0x24c93a(0x230),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x1e1)),'prompt':_0x24c93a(0x228)},{'id':_0x24c93a(0x242),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x1e9)),'prompt':_0x24c93a(0x20f)},{'id':_0x24c93a(0x204),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x23b)),'prompt':_0x24c93a(0x232)}]},{'groupId':_0x24c93a(0x1eb),'groupLabel':_0x569956(_0x2bcbaa,_0x24c93a(0x218)),'commands':[{'id':_0x24c93a(0x1de),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x210)),'prompt':_0x24c93a(0x1da)},{'id':_0x24c93a(0x1ef),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x21c)),'prompt':_0x24c93a(0x236)}]},{'groupId':_0x24c93a(0x227),'groupLabel':_0x569956(_0x2bcbaa,_0x24c93a(0x21f)),'commands':[{'id':_0x24c93a(0x211),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x22c)),'prompt':_0x24c93a(0x224)},{'id':_0x24c93a(0x231),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x1f5)),'prompt':_0x24c93a(0x22d)},{'id':_0x24c93a(0x225),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x23a)),'prompt':_0x24c93a(0x1ed)},{'id':_0x24c93a(0x22b),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x1f2)),'prompt':_0x24c93a(0x1e7)},{'id':_0x24c93a(0x21e),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x216)),'prompt':_0x24c93a(0x238)}]},{'groupId':_0x24c93a(0x1ee),'groupLabel':_0x569956(_0x2bcbaa,_0x24c93a(0x1ec)),'commands':[{'id':_0x24c93a(0x1e5),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x203)),'prompt':_0x24c93a(0x23c)},{'id':_0x24c93a(0x1fc),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x209)),'prompt':_0x24c93a(0x20a)},{'id':_0x24c93a(0x1dc),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x1f9)),'prompt':_0x24c93a(0x220)},{'id':_0x24c93a(0x1e3),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x23d)),'prompt':_0x24c93a(0x20e)}]},{'groupId':_0x24c93a(0x212),'groupLabel':_0x569956(_0x2bcbaa,_0x24c93a(0x1d9)),'commands':[{'id':_0x24c93a(0x1db),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x207)),'prompt':_0x24c93a(0x1e4)},{'id':_0x24c93a(0x1e8),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x202)),'prompt':_0x24c93a(0x1f3)},{'id':_0x24c93a(0x226),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x234)),'prompt':_0x24c93a(0x1e2)},{'id':_0x24c93a(0x241),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x20c)),'prompt':_0x24c93a(0x1f6)},{'id':_0x24c93a(0x244),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x21a)),'prompt':_0x24c93a(0x1f0)},{'id':_0x24c93a(0x1f4),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x1e6)),'prompt':_0x24c93a(0x205)},{'id':_0x24c93a(0x21b),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x1f8)),'prompt':_0x24c93a(0x213)},{'id':_0x24c93a(0x22f),'label':_0x569956(_0x2bcbaa,_0x24c93a(0x229)),'prompt':_0x24c93a(0x245)}]}];}