@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.1

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 (120) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  56. package/src/aichat/utils/promisequeue.js +1 -1
  57. package/src/aichathistory/aichathistory.js +1 -1
  58. package/src/aichathistory/aichathistorycontroller.js +1 -1
  59. package/src/aichathistory/aichathistoryui.js +1 -1
  60. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  61. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  62. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  63. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  64. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  65. package/src/aicore/aiconnector.js +1 -1
  66. package/src/aicore/aiediting.js +1 -1
  67. package/src/aicore/model/aicapabilities.js +1 -1
  68. package/src/aicore/model/aiinteraction.js +1 -1
  69. package/src/aicore/model/aimodels.js +1 -1
  70. package/src/aicore/model/aireply.js +1 -1
  71. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  72. package/src/aicore/pipeline/airesponseparser.js +2 -2
  73. package/src/aicore/ui/aidisclaimerview.js +1 -1
  74. package/src/aicore/ui/aiskeleton.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  77. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  80. package/src/aicore/utils/createresizebutton.js +1 -1
  81. package/src/aicore/utils/documentrange.js +1 -1
  82. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  83. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  84. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  85. package/src/aicore/utils/htmlparser.js +1 -1
  86. package/src/aicore/utils/htmlstreamer.js +1 -1
  87. package/src/aieditorintegration/aieditorintegration.js +1 -1
  88. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  89. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  90. package/src/aiquickactions/aiquickactions.js +1 -1
  91. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  92. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  93. package/src/aiquickactions/aiquickactionsui.js +1 -1
  94. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  95. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  96. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  97. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  98. package/src/aireviewmode/aireviewmode.js +1 -1
  99. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  100. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  101. package/src/aireviewmode/aireviewmodeui.js +1 -1
  102. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  103. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  104. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  105. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  106. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  107. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  110. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  115. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  116. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  117. package/src/aitabs/aitabs.js +1 -1
  118. package/src/aitabs/tabs/aitabsview.js +1 -1
  119. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  120. package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.4.0-alpha.0",
3
+ "version": "47.4.0-alpha.1",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.0",
33
- "@ckeditor/ckeditor5-cloud-services": "47.4.0-alpha.0",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.4.0-alpha.0",
35
- "@ckeditor/ckeditor5-core": "47.4.0-alpha.0",
36
- "@ckeditor/ckeditor5-engine": "47.4.0-alpha.0",
37
- "@ckeditor/ckeditor5-icons": "47.4.0-alpha.0",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.4.0-alpha.0",
39
- "@ckeditor/ckeditor5-table": "47.4.0-alpha.0",
40
- "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.0",
41
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.0",
42
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.0",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.4.0-alpha.0",
44
- "ckeditor5": "47.4.0-alpha.0",
45
- "ckeditor5-collaboration": "47.4.0-alpha.0",
32
+ "@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.1",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.4.0-alpha.1",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.4.0-alpha.1",
35
+ "@ckeditor/ckeditor5-core": "47.4.0-alpha.1",
36
+ "@ckeditor/ckeditor5-engine": "47.4.0-alpha.1",
37
+ "@ckeditor/ckeditor5-icons": "47.4.0-alpha.1",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.4.0-alpha.1",
39
+ "@ckeditor/ckeditor5-table": "47.4.0-alpha.1",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.1",
41
+ "@ckeditor/ckeditor5-ui": "47.4.0-alpha.1",
42
+ "@ckeditor/ckeditor5-utils": "47.4.0-alpha.1",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.4.0-alpha.1",
44
+ "ckeditor5": "47.4.0-alpha.1",
45
+ "ckeditor5-collaboration": "47.4.0-alpha.1",
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 _0x15699c=_0x3545;function _0x439d(){const _0x55faa5=['$graveyard','1783953hnJuKY','rejected','_getExecuteDataRegular','_isNavigationNextButtonInView','_children','dialogClosed','stopAutoScroll','span','listenTo','createPositionBefore','hasPendingParts','type','batch','getSelectionAsFragment','clearErrorState','getRanges','slice','selection','actionCallId','getDocumentContext','getSelectedTableCells','stopListening','1/1','setChangeGroupState','changeGroups','getSelectedBlocks','_isAbortError','setLoading','7776076qIrrec','catch','state','showLoader','execute','replyCreated','bodyView','updateContent','first','nextSibling','setErrorState','close','static','getSelectedContent','clone','icon','_clone','_currentInteractionIndex','AI_ACTIONS_TRY_AGAIN','remove','parent','toggleSuggestionDisplayMode','change','applyOperation','getChild','Attribute','requires','insertSuggestion','_displayInteractionAtIndex','_isNavigationPreviousButtonInView','ck-ai-interaction-counter','_navigationCounter','removeNavigationItem','_setupCustomViews','processor','_balloonShowDiff','AIBalloon','_interactions','ck-ai-custom-action-button','7FXSYJM','nodeAfter','_stopInteraction','addNavigationItem','toolbar','start','config','editor','AIConnector','rootName','indexOf','92XYqPwQ','_clearInteractionHistory','getChildAtOffset','mainView','range','stickiness','addOperation','streaming','random','error','signal','createRange','startsWith','detachFromDom','schema','upsertCustomAIActionRating','18954552Rlqblv','interactionFinished','filter','documentFragment','miniToolbarView','push','map','_refreshInteraction','getAncestors','sourcePosition','isOfficialPlugin','getCommonAncestor','path','attachToDom','reinsert','_navigateToNext','AI_ACTIONS_NEXT_INTERACTION','setSelection','version','replyChangeGroupStateUpdated','Error\x20updating\x20content\x20during\x20navigation:','has','setTemplate','_wrapWithCommonAncestors','createPositionAfter','length','AIActions','isCollapsed','pending','AI_ACTIONS_PREVIOUS_INTERACTION','createPositionAt','howMany','ai-no-track-changes','element','areChangesVisible','plugins','344190rcczbR','root','rename','_aiConnector','ai-request-aborted','stopInteraction','stop','toData','locale','TrackChanges','balloonView','merge','_setLoadingState','hideLoader','_navigationNextButton','_interactionParams','includes','documentContextContent','Error\x20updating\x20content\x20in\x20replyContentUpdated:','model','modelToViewWithIds','actionName','document','set','applySuggestion','_clearLoadingState','bind','1248141qRaCxV','hasError','_applyOperationsAsSuggestions','message','replyContentUpdated','split','move','_disableCustomViews','isEnabled','_clearErrorState','clearLoading','getRoot','pluginName','executeAction','data','focus','replies','abort','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','AI_ACTIONS_GENERIC_ERROR','isDocumentOperation','showError','end','forEach','TrackChangesEditing','ai.availableReplyActions','16LUcsVv','get','getLimitElement','_updateNavigationUI','10lZEdFH','hideError','Error\x20updating\x20content\x20in\x20replyCreated:','baseVersion','queueEmptyPromise','enqueue','_executeAction','showChangesButton','_setErrorState','history','getFirstRange','ck-ai-navigation-button\x20ck-ai-previous-button','_bodyCollection','selectionRemoved','add','_appendChild','_navigationPreviousButton','_promiseQueue','_anchorOperation','_applyChanges','accepted','6199476ZIfLxP','isLoading','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_interaction','aiBalloon','TableSelection','upsertAIActionRating','_createInteraction','isPremiumPlugin','isBusy','_getExecuteDataInTable','operationsA','_execute','2aWyotB','destroy','243712dOKdKe','_isNavigationCounterInView','ck-ai-navigation-button\x20ck-ai-next-button','startAutoScroll','getOperations','position','open','insert','_customViews','Error\x20refreshing\x20interaction:','_filterOperationsOutsideRange','_navigateToPrevious','_clearSuggestionContent','textContent'];_0x439d=function(){return _0x55faa5;};return _0x439d();}(function(_0x14354b,_0x53ea67){const _0xed63a6=_0x3545,_0xef80ca=_0x14354b();while(!![]){try{const _0x220cd8=-parseInt(_0xed63a6(0x15a))/0x1+parseInt(_0xed63a6(0x158))/0x2*(parseInt(_0xed63a6(0x118))/0x3)+parseInt(_0xed63a6(0xc9))/0x4*(parseInt(_0xed63a6(0xfd))/0x5)+parseInt(_0xed63a6(0x14b))/0x6*(parseInt(_0xed63a6(0xbe))/0x7)+parseInt(_0xed63a6(0x132))/0x8*(parseInt(_0xed63a6(0x7b))/0x9)+parseInt(_0xed63a6(0x136))/0xa*(-parseInt(_0xed63a6(0x97))/0xb)+-parseInt(_0xed63a6(0xd9))/0xc;if(_0x220cd8===_0x53ea67)break;else _0xef80ca['push'](_0xef80ca['shift']());}catch(_0x4999cb){_0xef80ca['push'](_0xef80ca['shift']());}}}(_0x439d,0xdb70b));import{Plugin as _0x1faf9e}from'ckeditor5/src/core.js';import{AIConnector as _0x588ba4}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x2012c1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x29e859,ButtonView as _0x59578d,ViewCollection as _0x182af7,View as _0x521294,BodyCollection as _0x46d756}from'ckeditor5/src/ui.js';import{AIEditing as _0x117ebb}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x24b997}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x4d887a,first as _0x33166d}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x497d99,IconRefresh as _0x373bb4,IconNextArrow as _0x4a4848,IconPreviousArrow as _0x4ee518,IconShowChangesOff as _0x176190}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1eb6ca}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x65afea}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5467a6}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x1a3a0a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x435b1a}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x29862d,getOperationsFromReply as _0x26bc6f}from'../aicore/utils/getoperationsfromreply.js';function _0x3545(_0x4ca6af,_0x1a3a08){const _0x439d89=_0x439d();return _0x3545=function(_0x354556,_0x5b27e7){_0x354556=_0x354556-0x6f;let _0x1370ed=_0x439d89[_0x354556];return _0x1370ed;},_0x3545(_0x4ca6af,_0x1a3a08);}import{ModelDocumentFragment as _0xfff49a,ModelRange as _0x2c2dcc,ModelPosition as _0x5f0b22,_DetachOperation as _0x5e5347,transformOperationSets as _0x166bbc}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4cd77e}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x1faf9e{static get[_0x15699c(0xb1)](){return[_0x588ba4,_0x29e859,_0x117ebb,_0x1eb6ca,_0x435b1a];}static get[_0x15699c(0x124)](){const _0x2bc24b=_0x15699c;return _0x2bc24b(0xf3);}static get[_0x15699c(0xe3)](){return!0x0;}static get[_0x15699c(0x153)](){return!0x0;}[_0x15699c(0x100)];[_0x15699c(0xbc)]=[];[_0x15699c(0xa8)]=0x0;[_0x15699c(0x10c)];[_0x15699c(0xba)]=!0x1;[_0x15699c(0x74)]=new _0x182af7();[_0x15699c(0x146)];[_0x15699c(0xb6)];[_0x15699c(0x15b)]=!0x1;[_0x15699c(0x10b)];[_0x15699c(0xb4)]=!0x1;[_0x15699c(0x7e)]=!0x1;[_0x15699c(0x147)];[_0x15699c(0x142)];get[_0x15699c(0x14e)](){const _0xcfb603=_0x15699c;return this[_0xcfb603(0xbc)][this[_0xcfb603(0xbc)][_0xcfb603(0xf2)]-0x1];}constructor(_0x544f26){const _0x4c6e57=_0x15699c;super(_0x544f26),this[_0x4c6e57(0x142)]=new _0x46d756(this[_0x4c6e57(0xc5)][_0x4c6e57(0x105)]),this[_0x4c6e57(0x142)][_0x4c6e57(0xe6)](),this[_0x4c6e57(0x100)]=this[_0x4c6e57(0xc5)][_0x4c6e57(0xfc)][_0x4c6e57(0x133)](_0x4c6e57(0xc6)),this[_0x4c6e57(0x114)](_0x4c6e57(0x154),!0x1),this[_0x4c6e57(0x147)]=new _0x65afea(),this[_0x4c6e57(0xb8)]();}[_0x15699c(0x102)](){const _0x38a9e6=_0x15699c;this[_0x38a9e6(0xc0)]();}async[_0x15699c(0x125)](_0x1ec962,_0x1723eb,_0x4fb295){const _0xac7e5b=_0x15699c;if(this[_0xac7e5b(0xc5)][_0xac7e5b(0xfc)][_0xac7e5b(0xee)](_0xac7e5b(0x150))){if(this[_0xac7e5b(0xc5)][_0xac7e5b(0xfc)][_0xac7e5b(0x133)](_0xac7e5b(0x150))[_0xac7e5b(0x8f)]()){const {modelFragment:_0x59511b,anchorData:_0x423373}=this[_0xac7e5b(0x155)]();return this[_0xac7e5b(0x13c)](_0x1ec962,_0x59511b,_0x423373,_0x1723eb,_0x4fb295);}}const {modelFragment:_0x2560c2,anchorData:_0x4d233e}=this[_0xac7e5b(0x7d)]();return this[_0xac7e5b(0x13c)](_0x1ec962,_0x2560c2,_0x4d233e,_0x1723eb,_0x4fb295);}[_0x15699c(0x159)](){const _0x23029b=_0x15699c;this[_0x23029b(0x142)][_0x23029b(0xd6)](),super[_0x23029b(0x159)]();}[_0x15699c(0x7d)](){const _0x1e1815=_0x15699c,_0xc7ca2b=this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0x113)][_0x1e1815(0x8c)];if(_0xc7ca2b[_0x1e1815(0xf4)]){const _0x491c85=_0x33166d(_0xc7ca2b[_0x1e1815(0x94)]())||this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xd7)][_0x1e1815(0x134)](_0xc7ca2b);this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xad)](_0x5771e9=>{const _0x18a099=_0x1e1815;_0x5771e9[_0x18a099(0xea)](_0x491c85,'in');});}const _0xadff03=_0xc7ca2b[_0x1e1815(0x140)](),_0x1db9aa=this[_0x1e1815(0xf0)](this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xa4)](_0xc7ca2b),_0xadff03[_0x1e1815(0xc3)],_0xadff03[_0x1e1815(0x12e)]),_0x55a2e0=_0xc7ca2b[_0x1e1815(0x140)]()[_0x1e1815(0xc3)],_0x55d189=new Map();let _0x2ba8a0=_0x1db9aa;for(let _0x405f60=0x0;_0x405f60<_0x55a2e0[_0x1e1815(0xe5)][_0x1e1815(0xf2)];_0x405f60++)_0x55d189[_0x1e1815(0x114)](_0x2ba8a0,_0x55a2e0[_0x1e1815(0xe5)][_0x405f60]),_0x2ba8a0=_0x2ba8a0[_0x1e1815(0xaf)](0x0);return{'modelFragment':_0x1db9aa,'anchorData':_0x55d189};}[_0x15699c(0x155)](){const _0x32a091=_0x15699c,_0x5ebd48=this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0x113)][_0x32a091(0x8c)],_0x4885c0=this[_0x32a091(0xc5)][_0x32a091(0xfc)][_0x32a091(0x133)](_0x32a091(0x150))[_0x32a091(0x88)](),_0x184d1e=_0x5ebd48[_0x32a091(0x140)]()[_0x32a091(0xc3)][_0x32a091(0xab)][_0x32a091(0xab)],_0x5a513b=this[_0x32a091(0xf0)](_0x4885c0,this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0x84)](_0x184d1e),this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0xf1)](_0x184d1e)),_0x30c7de=_0x5ebd48[_0x32a091(0x140)]()[_0x32a091(0xc3)],_0x107ba9=new Map();let _0x4e3ef6=_0x5a513b;for(let _0x1ad85c=0x0;_0x1ad85c<_0x30c7de[_0x32a091(0xe5)][_0x32a091(0xf2)];_0x1ad85c++)if(_0x107ba9[_0x32a091(0x114)](_0x4e3ef6,_0x30c7de[_0x32a091(0xe5)][_0x1ad85c]),_0x1ad85c<_0x30c7de[_0x32a091(0xe5)][_0x32a091(0xf2)]-0x1)_0x4e3ef6=_0x4e3ef6[_0x32a091(0xaf)](0x0);else{let _0x45723e=_0x4e3ef6[_0x32a091(0xa0)];for(;_0x45723e;)_0x107ba9[_0x32a091(0x114)](_0x45723e,_0x30c7de[_0x32a091(0xe5)][_0x1ad85c]),_0x45723e=_0x45723e[_0x32a091(0xa0)];}return{'modelFragment':_0x5a513b,'anchorData':_0x107ba9};}[_0x15699c(0x13c)](_0xdf3361,_0x30b406,_0x1909cd,_0x43b9fa,_0x1c89b8){const _0x3c7dd2=_0x15699c,_0x5576a8=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0x133)](_0x117ebb),_0x13a952=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0x133)](_0x1eb6ca),_0x1480e8=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x110)][_0x3c7dd2(0x113)][_0x3c7dd2(0x8c)],_0x1d6048=_0x5576a8[_0x3c7dd2(0x111)](_0x30b406),_0x7290d0=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x126)][_0x3c7dd2(0xb9)][_0x3c7dd2(0x104)](_0x1d6048),_0x5d3177=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x110)][_0x3c7dd2(0x113)][_0x3c7dd2(0xeb)],_0x33d0fc=[..._0x1480e8[_0x3c7dd2(0x8a)]()];let _0x3fd234=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xc4)][_0x3c7dd2(0x133)](_0x3c7dd2(0x131))||[..._0x4cd77e];this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0xee)](_0x3c7dd2(0x106))||(_0x3fd234=_0x3fd234[_0x3c7dd2(0xdb)](_0x31ddb2=>_0x3c7dd2(0xb2)!=_0x31ddb2));const _0x29d55c=new _0x2012c1(this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x105)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x3c7dd2(0xa6),'customView':this[_0x3c7dd2(0x74)]},'showUnchangedParts':!0x0,'availableActions':_0x3fd234},this[_0x3c7dd2(0x142)]);return _0x13a952[_0x3c7dd2(0x72)]({'index':0x3e8*Math[_0x3c7dd2(0xd1)]()%0x3e8,'title':_0x43b9fa,'icon':_0x1c89b8||_0x497d99,'mainView':_0x29d55c,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0xee)](_0x3c7dd2(0x106)),'ranges':_0x33d0fc}),this[_0x3c7dd2(0x109)](_0x29d55c,_0x13a952),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x115),()=>{const _0x2c8a03=_0x3c7dd2;this[_0x2c8a03(0x149)](_0x30b406,_0x1909cd,!0x1);}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0xb2),()=>{const _0x1ae6b7=_0x3c7dd2;this[_0x1ae6b7(0x149)](_0x30b406,_0x1909cd,!0x0);}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x143),()=>{const _0x506747=_0x3c7dd2;this[_0x506747(0xc0)](),this[_0x506747(0x11f)]();}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x80),()=>{const _0xcd6aa2=_0x3c7dd2;if(this[_0xcd6aa2(0x14e)]&&this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][_0xcd6aa2(0xf2)]>0x0){const _0x3eeb0f=this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][_0xcd6aa2(0xf2)]-0x1],_0xc202e2=_0x3eeb0f[_0xcd6aa2(0x93)][0x0];_0xc202e2&&_0xcd6aa2(0xf5)===_0xc202e2[_0xcd6aa2(0x99)]&&_0x3eeb0f[_0xcd6aa2(0x92)](0x0,_0xcd6aa2(0x7c));}this[_0xcd6aa2(0xc0)](),this[_0xcd6aa2(0xca)](),this[_0xcd6aa2(0x90)](_0x13a952);}),this[_0x3c7dd2(0x152)](_0x7290d0,_0x5d3177,_0x29d55c,_0x13a952,_0xdf3361);}[_0x15699c(0xf0)](_0x25f737,_0x4b5e1b,_0xf6a2a3){const _0x113458=_0x15699c,_0x55ffb9=this[_0x113458(0xc5)][_0x113458(0x110)][_0x113458(0xd4)](_0x4b5e1b,_0xf6a2a3)[_0x113458(0xe4)](),_0x512889=_0x55ffb9['is'](_0x113458(0xdc))?[]:_0x55ffb9[_0x113458(0xe1)]({'includeSelf':!0x0})[_0x113458(0x8b)](0x1);if(_0x512889[_0x113458(0xf2)]){const _0x1e52a3=_0x512889[_0x113458(0xdf)](_0x4a7a83=>_0x4a7a83[_0x113458(0xa7)](!0x1));for(let _0x59d511=0x1;_0x59d511<_0x1e52a3[_0x113458(0xf2)];_0x59d511++)_0x1e52a3[_0x59d511-0x1][_0x113458(0x145)](_0x1e52a3[_0x59d511]);return _0x1e52a3[_0x1e52a3[_0x113458(0xf2)]-0x1][_0x113458(0x145)](_0x25f737),new _0xfff49a(_0x1e52a3[0x0]);}return _0x25f737;}async[_0x15699c(0x152)](_0x184c3e,_0x37226e,_0x3a4495,_0x13990b,_0x4a5cb6){const _0x14d08a=_0x15699c,_0xa7350f=this[_0x14d08a(0xc5)];this[_0x14d08a(0x10c)]={'action':_0x4a5cb6,'content':_0x184c3e,'version':_0x37226e,'mainView':_0x3a4495,'aiBalloon':_0x13990b};const _0x127853=new _0x24b997({'connector':this[_0x14d08a(0x100)],'editor':_0xa7350f,'content':_0x184c3e,'version':_0x37226e,..._0x4a5cb6});this[_0x14d08a(0xbc)][_0x14d08a(0xde)](_0x127853),_0x3a4495[_0x14d08a(0x137)]();const _0x1b7488=(_0x6a20f,_0x265e00,_0x30c0e1=!0x1,_0x219740=_0x14d08a(0xd0))=>this[_0x14d08a(0x147)][_0x14d08a(0x13b)](async _0x4733cd=>{const _0x56a7fa=_0x14d08a;try{const _0x33fbb2=_0x1a3a0a({'editor':_0xa7350f,'changeGroups':_0x6a20f[_0x56a7fa(0x93)],'documentContextContent':_0x6a20f[_0x56a7fa(0x10e)],'showDiff':_0x30c0e1,'trimUnchanged':!0x1});await _0x265e00[_0x56a7fa(0x9e)]({'parts':_0x33fbb2,'renderingStrategy':_0x219740,'abortSignal':_0x4733cd});}catch(_0x47f914){if(this[_0x56a7fa(0x95)](_0x47f914))return;throw _0x47f914;}});this[_0x14d08a(0x14e)]['on'](_0x14d08a(0x9c),(_0x23e842,_0x3279d0)=>{const _0x31a5b0=_0x14d08a;_0x3a4495[_0x31a5b0(0x10a)](),_0x13990b[_0x31a5b0(0x6f)](),_0x1b7488(_0x3279d0,_0x3a4495)[_0x31a5b0(0x98)](_0x5eeae8=>{const _0x2e360b=_0x31a5b0;this[_0x2e360b(0x95)](_0x5eeae8)||(console[_0x2e360b(0xd2)](_0x2e360b(0x138),_0x5eeae8),this[_0x2e360b(0x13e)](_0x127853,_0x3a4495));});}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0x11c),(_0x5beea3,_0x251136)=>{const _0x2f00c6=_0x14d08a;_0x1b7488(_0x251136,_0x3a4495)[_0x2f00c6(0x98)](_0x3c940e=>{const _0x528e99=_0x2f00c6;this[_0x528e99(0x95)](_0x3c940e)||(console[_0x528e99(0xd2)](_0x528e99(0x10f),_0x3c940e),this[_0x528e99(0x13e)](_0x127853,_0x3a4495));});}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0xda),async()=>{const _0x1a0eaf=_0x14d08a;try{await this[_0x1a0eaf(0x116)](_0x3a4495,_0x13990b),this[_0x1a0eaf(0x135)](),await this[_0x1a0eaf(0x147)][_0x1a0eaf(0x13a)];}catch(_0x1e5bd9){this[_0x1a0eaf(0x95)](_0x1e5bd9)||(console[_0x1a0eaf(0xd2)](_0x1a0eaf(0x12a),_0x1e5bd9),this[_0x1a0eaf(0x13e)](_0x127853,_0x3a4495));}finally{_0x13990b[_0x1a0eaf(0x81)]();}}),this[_0x14d08a(0x83)](_0x3a4495,_0x14d08a(0xac),async(_0x6ed8f1,{showDiff:_0x20e440})=>{const _0x472b8b=_0x14d08a;try{this[_0x472b8b(0xba)]=_0x20e440;const _0x9a7266=this[_0x472b8b(0x14e)][_0x472b8b(0x128)][this[_0x472b8b(0x14e)][_0x472b8b(0x128)][_0x472b8b(0xf2)]-0x1];_0x9a7266&&await _0x1b7488(_0x9a7266,_0x3a4495,_0x20e440,_0x472b8b(0xa3));}catch(_0x4e669c){this[_0x472b8b(0x95)](_0x4e669c)||(console[_0x472b8b(0xd2)](_0x472b8b(0x14d),_0x4e669c),this[_0x472b8b(0x13e)](_0x127853,_0x3a4495));}}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0xec),(_0xedfec1,{reply:_0x366569})=>{const _0x11cb93=_0x14d08a,_0x45de41={'positiveCount':_0x366569[_0x11cb93(0x93)][_0x11cb93(0xdb)](_0x449f02=>_0x11cb93(0x14a)===_0x449f02[_0x11cb93(0x99)])[_0x11cb93(0xf2)],'totalCount':_0x366569[_0x11cb93(0x93)][_0x11cb93(0xf2)]},_0x574168=this[_0x11cb93(0x14e)][_0x11cb93(0x8d)],_0x355eae=this[_0x11cb93(0x14e)][_0x11cb93(0x112)];_0x355eae?this[_0x11cb93(0x100)][_0x11cb93(0x151)](_0x355eae,_0x574168,_0x45de41):this[_0x11cb93(0x100)][_0x11cb93(0xd8)](_0x574168,_0x45de41);}),this[_0x14d08a(0x109)](_0x3a4495,_0x13990b);try{const _0x5bf241=await this[_0x14d08a(0x14e)][_0x14d08a(0xc3)]();return this[_0x14d08a(0x135)](),_0x5bf241;}catch(_0x1ddd2b){if(this[_0x14d08a(0x95)](_0x1ddd2b))return;_0x3a4495[_0x14d08a(0x10a)](),this[_0x14d08a(0x13e)](_0x127853,_0x3a4495);}}[_0x15699c(0x149)](_0x186082,_0x2871e7,_0xcb42f6){const _0x586651=_0x15699c,_0x11a01e=this[_0x586651(0xc5)];if(_0xcb42f6&&!_0x11a01e[_0x586651(0xfc)][_0x586651(0xee)](_0x586651(0x106)))throw new _0x4d887a(_0x586651(0xf9),null);const _0x25b038=this[_0x586651(0xc5)][_0x586651(0xfc)][_0x586651(0x133)](_0x435b1a),_0x4dd592=this[_0x586651(0x14e)],_0xa0cff4=this[_0x586651(0x14e)][_0x586651(0x128)][this[_0x586651(0x14e)][_0x586651(0x128)][_0x586651(0xf2)]-0x1],_0x2b29cd=_0xa0cff4[_0x586651(0x93)];_0xa0cff4[_0x586651(0x92)](0x0,_0x586651(0x14a));let _0x967939=_0x26bc6f({'editor':_0x11a01e,'reply':_0xa0cff4,'interaction':_0x4dd592,'groups':_0x2b29cd,'transform':!0x1,'documentCompare':_0x25b038,'documentCompareOptions':{'anchor':_0x11a01e[_0x586651(0x110)][_0x586651(0xf7)](_0x186082,0x0),'markDeletions':_0xcb42f6}});_0x967939=this[_0x586651(0x76)](_0x967939,_0x2871e7);for(const _0x56b406 of _0x967939)this[_0x586651(0x148)](_0x2871e7,_0x56b406,_0x11a01e[_0x586651(0x110)][_0x586651(0x113)][_0x586651(0x123)]());const _0x83803c=_0x4dd592[_0x586651(0x8e)]()[_0x586651(0xeb)],_0x5114ef=_0x11a01e[_0x586651(0x110)][_0x586651(0x113)][_0x586651(0x13f)][_0x586651(0x70)](_0x83803c),_0x1026be={'document':_0x11a01e[_0x586651(0x110)][_0x586651(0x113)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5e3e2e=_0x166bbc(_0x967939,_0x5114ef,_0x1026be)[_0x586651(0x156)];_0x11a01e[_0x586651(0x110)][_0x586651(0xad)](_0x2bacc1=>{const _0x2f37c0=_0x586651;if(_0x2bacc1[_0x2f37c0(0xea)](_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0x113)][_0x2f37c0(0x8c)][_0x2f37c0(0x127)]),_0xcb42f6)_0x11a01e[_0x2f37c0(0xfc)][_0x2f37c0(0x133)](_0x2f37c0(0x130))[_0x2f37c0(0x11a)](_0x5e3e2e);else{for(const _0x4b48a9 of _0x5e3e2e)_0x4b48a9[_0x2f37c0(0x139)]=_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0x113)][_0x2f37c0(0xeb)],_0x29862d(_0x11a01e,_0x4b48a9),_0x2bacc1[_0x2f37c0(0x87)][_0x2f37c0(0xcf)](_0x4b48a9),_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0xae)](_0x4b48a9);}}),this[_0x586651(0xc5)][_0x586651(0xfc)][_0x586651(0x133)](_0x586651(0xbb))[_0x586651(0xa2)]();}[_0x15699c(0x76)](_0x109e30,_0x57bea5){const _0x4ca8fd=_0x15699c;return _0x109e30[_0x4ca8fd(0xdb)](_0x1e100f=>{const _0x1a9c4=_0x4ca8fd;if(_0x1a9c4(0xff)==_0x1e100f[_0x1a9c4(0x86)]){const _0x149b68=_0x1e100f[_0x1a9c4(0x71)][_0x1a9c4(0xbf)];return!_0x57bea5[_0x1a9c4(0xee)](_0x149b68);}if(_0x1e100f[_0x1a9c4(0x86)][_0x1a9c4(0xc8)](_0x1a9c4(0xb0))>-0x1){const _0x245f5d=_0x1e100f[_0x1a9c4(0xcd)][_0x1a9c4(0xc3)][_0x1a9c4(0xbf)];return!_0x57bea5[_0x1a9c4(0xee)](_0x245f5d);}return!0x0;});}[_0x15699c(0x148)](_0x2e7d70,_0x20a9d3,_0x1a012a){const _0xe0b7e0=_0x15699c,_0x2532f6=_0x20a9d3[_0xe0b7e0(0xa5)]();for(const _0x4b5987 in _0x20a9d3){const _0x919b4c=_0x20a9d3[_0x4b5987];_0x919b4c instanceof _0x2c2dcc?_0x20a9d3[_0x4b5987]=new _0x2c2dcc(_0x408812(_0x919b4c[_0xe0b7e0(0xc3)]),_0x408812(_0x919b4c[_0xe0b7e0(0x12e)])):_0x919b4c instanceof _0x5f0b22&&(_0x20a9d3[_0x4b5987]=_0x408812(_0x919b4c));}if([_0xe0b7e0(0x73),_0xe0b7e0(0x11e),_0xe0b7e0(0xaa),_0xe0b7e0(0xe7),_0xe0b7e0(0x11d),_0xe0b7e0(0x108)][_0xe0b7e0(0x10d)](_0x2532f6[_0xe0b7e0(0x86)])){if(_0x2532f6[_0xe0b7e0(0x12c)]=!0x1,_0x2532f6[_0xe0b7e0(0x139)]=null,_0xe0b7e0(0xaa)==_0x2532f6[_0xe0b7e0(0x86)]){const _0x3ea1ff=_0x2532f6[_0xe0b7e0(0xe2)],_0x3cdb30=_0x2532f6[_0xe0b7e0(0xf8)];new _0x5e5347(_0x3ea1ff,_0x3cdb30)[_0xe0b7e0(0x157)]();}else _0x2532f6[_0xe0b7e0(0x157)]();}function _0x408812(_0xc0f936){const _0x1927ec=_0xe0b7e0;if(_0x1927ec(0x7a)==_0xc0f936[_0x1927ec(0xfe)][_0x1927ec(0xc7)])return _0xc0f936;const _0x2310c6=[];let _0x36e519=_0xc0f936[_0x1927ec(0xfe)];for(let _0x25f98b=0x0;_0x25f98b<_0xc0f936[_0x1927ec(0xe5)][_0x1927ec(0xf2)];_0x25f98b++){const _0x51ed44=_0x2e7d70[_0x1927ec(0x133)](_0x36e519)||0x0;_0x2310c6[_0x25f98b]=_0xc0f936[_0x1927ec(0xe5)][_0x25f98b]+_0x51ed44,_0x36e519=_0x36e519[_0x1927ec(0xcb)](_0xc0f936[_0x1927ec(0xe5)][_0x25f98b]);}return new _0x5f0b22(_0x1a012a,_0x2310c6,_0xc0f936[_0x1927ec(0xce)]);}}[_0x15699c(0xe0)](){const _0x584631=_0x15699c;if(!this[_0x584631(0x10c)])return;this[_0x584631(0xbc)][_0x584631(0xf2)]>0x0&&this[_0x584631(0xc0)](),this[_0x584631(0xa8)]=0x0,this[_0x584631(0xba)]=!0x1;const {action:_0x12b2a0,content:_0x472045,version:_0x2dc08e,mainView:_0x592290,aiBalloon:_0x2934e5}=this[_0x584631(0x10c)];_0x592290[_0x584631(0xfb)]=!0x1,_0x592290[_0x584631(0x137)](),this[_0x584631(0x121)](_0x592290,_0x2934e5);const _0x4a5ec2=_0x592290;_0x4a5ec2[_0x584631(0xdd)]&&_0x4a5ec2[_0x584631(0xdd)][_0x584631(0x13d)]&&_0x4a5ec2[_0x584631(0xdd)][_0x584631(0x13d)][_0x584631(0x114)]({'isOn':!0x1,'icon':_0x176190}),this[_0x584631(0x78)](_0x592290),_0x592290[_0x584631(0x9a)](),this[_0x584631(0x135)](),this[_0x584631(0x90)](_0x592290),this[_0x584631(0x152)](_0x472045,_0x2dc08e,_0x592290,_0x2934e5,_0x12b2a0)[_0x584631(0x98)](_0x4003e8=>{const _0x316baf=_0x584631;this[_0x316baf(0x95)](_0x4003e8)||console[_0x316baf(0xd2)](_0x316baf(0x75),_0x4003e8);});}[_0x15699c(0x78)](_0x2669f9){const _0xbd48c8=_0x15699c,_0x504a17=_0x2669f9[_0xbd48c8(0x9d)][_0xbd48c8(0x7f)];for(;_0x504a17[_0xbd48c8(0xf2)]>0x0;)_0x504a17[_0xbd48c8(0xaa)](_0x504a17[_0xbd48c8(0x9f)]);_0x2669f9[_0xbd48c8(0x9d)][_0xbd48c8(0x85)]=!0x1;}[_0x15699c(0x95)](_0x39df35){const _0x7dd49f=_0x15699c;return!!_0x39df35[_0x7dd49f(0x11b)]&&_0x39df35[_0x7dd49f(0x11b)][_0x7dd49f(0xd5)](_0x7dd49f(0x101));}[_0x15699c(0xca)](){const _0x2b3a3d=_0x15699c;this[_0x2b3a3d(0xbc)]=[],this[_0x2b3a3d(0x10c)]=void 0x0,this[_0x2b3a3d(0xa8)]=0x0,this[_0x2b3a3d(0x135)]();}[_0x15699c(0xc0)](){const _0x2beac4=_0x15699c;this[_0x2beac4(0x14e)]&&this[_0x2beac4(0x14e)][_0x2beac4(0x103)](),this[_0x2beac4(0x147)][_0x2beac4(0x129)](),this[_0x2beac4(0x154)]=!0x1,this[_0x2beac4(0x10c)]&&this[_0x2beac4(0x10c)][_0x2beac4(0x14f)][_0x2beac4(0x81)]();}[_0x15699c(0xb8)](){const _0xe9df56=_0x15699c,_0x19623e=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x2a4def=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x5ea1bf=new _0x521294(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x4a2308=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]);_0x19623e[_0xe9df56(0x114)]({'icon':_0x373bb4,'label':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xa9)),'tooltip':!0x0,'class':_0xe9df56(0xbd)}),_0x2a4def[_0xe9df56(0x114)]({'icon':_0x4ee518,'tooltip':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xf6)),'class':_0xe9df56(0x141)}),_0x5ea1bf[_0xe9df56(0xef)]({'tag':_0xe9df56(0x82),'attributes':{'class':[_0xe9df56(0xb5)]},'children':[_0xe9df56(0x91)]}),_0x4a2308[_0xe9df56(0x114)]({'icon':_0x4a4848,'tooltip':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xe9)),'class':_0xe9df56(0x15c)}),_0x19623e[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x2bb25e=>!_0x2bb25e),_0x19623e['on'](_0xe9df56(0x9b),()=>{const _0x1e25f6=_0xe9df56;this[_0x1e25f6(0xe0)]();}),_0x2a4def[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x25c7d1=>!_0x25c7d1),_0x2a4def['on'](_0xe9df56(0x9b),()=>{const _0x49cefb=_0xe9df56;this[_0x49cefb(0x77)]();}),_0x4a2308[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x49af4e=>!_0x49af4e),_0x4a2308['on'](_0xe9df56(0x9b),()=>{const _0x192cfe=_0xe9df56;this[_0x192cfe(0xe8)]();}),this[_0xe9df56(0x146)]=_0x2a4def,this[_0xe9df56(0xb6)]=_0x5ea1bf,this[_0xe9df56(0x10b)]=_0x4a2308,this[_0xe9df56(0x74)][_0xe9df56(0x144)](_0x19623e);}[_0x15699c(0x77)](){const _0xd757d5=_0x15699c,_0x5d0bce=this[_0xd757d5(0xbc)][_0xd757d5(0xf2)];this[_0xd757d5(0xa8)]<_0x5d0bce-0x1&&this[_0xd757d5(0xb3)](this[_0xd757d5(0xa8)]+0x1);}[_0x15699c(0xe8)](){const _0x1cdb87=_0x15699c;this[_0x1cdb87(0xa8)]>0x0&&this[_0x1cdb87(0xb3)](this[_0x1cdb87(0xa8)]-0x1);}async[_0x15699c(0xb3)](_0x28938a){const _0x16817a=_0x15699c;if(!this[_0x16817a(0x10c)])return;this[_0x16817a(0xa8)]=_0x28938a;const {mainView:_0x5279b1}=this[_0x16817a(0x10c)],_0x28da9b=this[_0x16817a(0xbc)][this[_0x16817a(0xbc)][_0x16817a(0xf2)]-0x1-this[_0x16817a(0xa8)]];if(!_0x28da9b)return;if(_0x28da9b[_0x16817a(0x119)])return this[_0x16817a(0x13e)](_0x28da9b,_0x5279b1),void this[_0x16817a(0x135)]();if(!_0x28da9b[_0x16817a(0x128)][_0x16817a(0xf2)])return;_0x5279b1[_0x16817a(0x137)](),this[_0x16817a(0x10c)]&&this[_0x16817a(0x121)](_0x5279b1,this[_0x16817a(0x10c)][_0x16817a(0x14f)]);const _0x201152=_0x28da9b[_0x16817a(0x128)][_0x28da9b[_0x16817a(0x128)][_0x16817a(0xf2)]-0x1];if(_0x201152){const _0x568cf2=this[_0x16817a(0xc5)];this[_0x16817a(0x78)](_0x5279b1);try{const _0x776a21=_0x1a3a0a({'editor':_0x568cf2,'changeGroups':_0x201152[_0x16817a(0x93)],'documentContextContent':_0x201152[_0x16817a(0x10e)],'showDiff':this[_0x16817a(0xba)],'trimUnchanged':!0x1});this[_0x16817a(0x78)](_0x5279b1),await new Promise(_0x58bdcd=>setTimeout(_0x58bdcd,0x32)),await _0x5279b1[_0x16817a(0x9e)]({'parts':_0x776a21,'renderingStrategy':_0x16817a(0xa3),'abortSignal':new AbortController()[_0x16817a(0xd3)]});}catch(_0x146f62){this[_0x16817a(0x95)](_0x146f62)||console[_0x16817a(0xd2)](_0x16817a(0xed),_0x146f62);}}this[_0x16817a(0x135)]();}[_0x15699c(0x135)](){const _0x40a260=_0x15699c;if(!this[_0x40a260(0x146)]||!this[_0x40a260(0xb6)]||!this[_0x40a260(0x10b)])return;const _0x10098c=this[_0x40a260(0xbc)][_0x40a260(0xf2)],_0x47058b=_0x10098c>0x1,_0xbc8bc3=this[_0x40a260(0x10c)]?.[_0x40a260(0xcc)];if(_0x47058b){this[_0x40a260(0xb4)]||this[_0x40a260(0x15b)]||this[_0x40a260(0x7e)]||(this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0x146)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0x146)]),this[_0x40a260(0xb4)]=!0x0,this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0xb6)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0xb6)]),this[_0x40a260(0x15b)]=!0x0,this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0x10b)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0x10b)]),this[_0x40a260(0x7e)]=!0x0);const _0x4a48be=_0x10098c-this[_0x40a260(0xa8)];this[_0x40a260(0xb6)][_0x40a260(0xfa)]&&(this[_0x40a260(0xb6)][_0x40a260(0xfa)][_0x40a260(0x79)]=_0x4a48be+'/'+_0x10098c),this[_0x40a260(0x146)][_0x40a260(0x120)]=this[_0x40a260(0xa8)]<_0x10098c-0x1,this[_0x40a260(0x10b)][_0x40a260(0x120)]=this[_0x40a260(0xa8)]>0x0;}else(this[_0x40a260(0xb4)]||this[_0x40a260(0x15b)]||this[_0x40a260(0x7e)])&&(this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0x146)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0x146)]),this[_0x40a260(0xb4)]=!0x1,this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0xb6)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0xb6)]),this[_0x40a260(0x15b)]=!0x1,this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0x10b)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0x10b)]),this[_0x40a260(0x7e)]=!0x1);}[_0x15699c(0x109)](_0x58e81d,_0x4764bd){const _0x438ad8=_0x15699c;_0x58e81d[_0x438ad8(0x96)](),_0x4764bd[_0x438ad8(0x107)][_0x438ad8(0x96)](),this[_0x438ad8(0x154)]=!0x0;}async[_0x15699c(0x13e)](_0x2d9eb8,_0xce8c1a){const _0x5b7cb8=_0x15699c,_0x3e36c2=_0x5467a6(this[_0x5b7cb8(0xc5)][_0x5b7cb8(0x105)],_0x5b7cb8(0x12b));_0xce8c1a[_0x5b7cb8(0x12d)](_0x3e36c2),_0x2d9eb8[_0x5b7cb8(0x119)]=!0x0,await this[_0x5b7cb8(0x147)][_0x5b7cb8(0x13a)],_0xce8c1a[_0x5b7cb8(0xa1)](),this[_0x5b7cb8(0x10c)]?.[_0x5b7cb8(0x14f)][_0x5b7cb8(0x107)][_0x5b7cb8(0xc2)]&&(this[_0x5b7cb8(0x10c)][_0x5b7cb8(0x14f)][_0x5b7cb8(0x107)][_0x5b7cb8(0xc2)][_0x5b7cb8(0x14c)]=!0x0);}[_0x15699c(0x121)](_0x2a89cb,_0x235161){const _0x3c4163=_0x15699c;_0x2a89cb[_0x3c4163(0x89)](),_0x235161[_0x3c4163(0x107)][_0x3c4163(0xc2)]&&(_0x235161[_0x3c4163(0x107)][_0x3c4163(0xc2)][_0x3c4163(0x14c)]=!0x1);}async[_0x15699c(0x116)](_0x243354,_0x28cc23){const _0x4ac9c6=_0x15699c;await this[_0x4ac9c6(0x147)][_0x4ac9c6(0x13a)],this[_0x4ac9c6(0x154)]=!0x1,_0x243354[_0x4ac9c6(0x122)](),_0x28cc23[_0x4ac9c6(0x107)][_0x4ac9c6(0x122)]();}[_0x15699c(0x11f)](){const _0x4d437f=_0x15699c;this[_0x4d437f(0x74)][_0x4d437f(0x12f)](_0xd4a0b6=>{const _0x536474=_0x4d437f;_0x536474(0x120)in _0xd4a0b6&&(_0xd4a0b6[_0x536474(0x120)]=!0x1);});}}
23
+ const _0x17feb6=_0x3587;(function(_0x1e5206,_0x5ad71e){const _0x3d10dc=_0x3587,_0x2cad30=_0x1e5206();while(!![]){try{const _0x3b60bc=parseInt(_0x3d10dc(0x16b))/0x1*(parseInt(_0x3d10dc(0x1a8))/0x2)+parseInt(_0x3d10dc(0x168))/0x3+-parseInt(_0x3d10dc(0x165))/0x4*(parseInt(_0x3d10dc(0xf4))/0x5)+-parseInt(_0x3d10dc(0x1d4))/0x6+-parseInt(_0x3d10dc(0x1c2))/0x7*(-parseInt(_0x3d10dc(0x1ab))/0x8)+-parseInt(_0x3d10dc(0x12b))/0x9+parseInt(_0x3d10dc(0x167))/0xa;if(_0x3b60bc===_0x5ad71e)break;else _0x2cad30['push'](_0x2cad30['shift']());}catch(_0x41f79e){_0x2cad30['push'](_0x2cad30['shift']());}}}(_0x5392,0xb7702));import{Plugin as _0x5d78e2}from'ckeditor5/src/core.js';import{AIConnector as _0x523ff8}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0xf748d2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1947cf,ButtonView as _0x2b05ed,ViewCollection as _0x1a26e2,View as _0x456041,BodyCollection as _0x1ba3bb}from'ckeditor5/src/ui.js';function _0x5392(){const _0x396009=['focus','2627224KrnjOY','element','2436970QsAGQH','2612859PGJYvx','nodeAfter','Error\x20updating\x20content\x20during\x20navigation:','2462JjTnQw','interactionFinished','ck-ai-interaction-counter','history','indexOf','stopListening','execute','1/1','rename','first','isEnabled','replyCreated','_isNavigationCounterInView','_updateNavigationUI','_interactionParams','Error\x20updating\x20content\x20in\x20replyContentUpdated:','stop','parent','AI_ACTIONS_GENERIC_ERROR','rejected','path','position','_getExecuteDataRegular','TableSelection','balloonView','start','showChangesButton','upsertCustomAIActionRating','_execute','accepted','_clearInteractionHistory','selectionRemoved','map','hasPendingParts','AIActions','Error\x20updating\x20content\x20in\x20replyCreated:','mainView','TrackChanges','showLoader','config','processor','showError','open','documentContextContent','document','_filterOperationsOutsideRange','replies','_navigateToNext','range','getSelectedContent','replyContentUpdated','_isNavigationPreviousButtonInView','streaming','getDocumentContext','listenTo','icon','miniToolbarView','AIConnector','sourcePosition','clearErrorState','get','1172tXigwc','attachToDom','executeAction','16haUbGL','type','applySuggestion','toggleSuggestionDisplayMode','stopAutoScroll','random','pending','_createInteraction','AI_ACTIONS_TRY_AGAIN','createRange','clearLoading','removeNavigationItem','addOperation','abort','getAncestors','aiBalloon','isPremiumPlugin','ai-request-aborted','_promiseQueue','editor','getRoot','message','rootName','2232216MbIZTU','batch','_getExecuteDataInTable','_disableCustomViews','_setupCustomViews','catch','set','setChangeGroupState','getRanges','documentFragment','pluginName','plugins','_executeAction','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','toData','Error\x20refreshing\x20interaction:','getSelectedBlocks','locale','1900482QjykWO','modelToViewWithIds','_applyChanges','_interaction','_customViews','add','setTemplate','push','_applyOperationsAsSuggestions','isDocumentOperation','baseVersion','_clearErrorState','5ExBklS','length','clone','ck-ai-navigation-button\x20ck-ai-next-button','changeGroups','_navigationNextButton','_isNavigationNextButtonInView','setErrorState','selection','model','_refreshInteraction','_interactions','stickiness','createPositionAfter','updateContent','_anchorOperation','destroy','isOfficialPlugin','isBusy','_navigationPreviousButton','ai-no-track-changes','_setLoadingState','has','getSelectedTableCells','enqueue','_clearSuggestionContent','hideLoader','ck-ai-custom-action-button','requires','ai.availableReplyActions','_aiConnector','insertSuggestion','reinsert','getCommonAncestor','actionCallId','_children','change','hideError','includes','howMany','end','bodyView','signal','startAutoScroll','_clone','getFirstRange','startsWith','static','AI_ACTIONS_PREVIOUS_INTERACTION','_appendChild','_setErrorState','textContent','_displayInteractionAtIndex','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','applyOperation','13232187CoUjpy','remove','_navigationCounter','_balloonShowDiff','AIBalloon','filter','AI_ACTIONS_NEXT_INTERACTION','nextSibling','getLimitElement','upsertAIActionRating','_currentInteractionIndex','_stopInteraction','Attribute','schema','isCollapsed','_clearLoadingState','forEach','ck-ai-navigation-button\x20ck-ai-previous-button','queueEmptyPromise','toolbar','getChild','state','dialogClosed','areChangesVisible','getChildAtOffset','merge','stopInteraction','replyChangeGroupStateUpdated','getSelectionAsFragment','setLoading','_bodyCollection','operationsA','_wrapWithCommonAncestors','close','detachFromDom','isLoading','actionName','move','slice','insert','bind','root','version','addNavigationItem','_navigateToPrevious','TrackChangesEditing','setSelection','createPositionBefore','error','hasError','getOperations','$graveyard','_isAbortError','createPositionAt','span','split','data'];_0x5392=function(){return _0x396009;};return _0x5392();}import{AIEditing as _0x3a06a5}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5623ed}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x293dbe,first as _0x5a0931}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3df9ff,IconRefresh as _0x4dc9e4,IconNextArrow as _0x586592,IconPreviousArrow as _0x47d573,IconShowChangesOff as _0x5a480a}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x28e18e}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x46eaf0}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x52b860}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x59b572}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x380023}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3342f6,getOperationsFromReply as _0x1bf5ef}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5dde1e,ModelRange as _0x1f6cab,ModelPosition as _0x3e0772,_DetachOperation as _0x27c19c,transformOperationSets as _0x556fc3}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x5a32bd}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x3587(_0x4409c5,_0x103d79){const _0x5392e5=_0x5392();return _0x3587=function(_0x3587be,_0x3c130e){_0x3587be=_0x3587be-0xe9;let _0x34dba6=_0x5392e5[_0x3587be];return _0x34dba6;},_0x3587(_0x4409c5,_0x103d79);}export class AIActions extends _0x5d78e2{static get[_0x17feb6(0x110)](){return[_0x523ff8,_0x1947cf,_0x3a06a5,_0x28e18e,_0x380023];}static get[_0x17feb6(0x1cc)](){const _0x4f8309=_0x17feb6;return _0x4f8309(0x18d);}static get[_0x17feb6(0x105)](){return!0x0;}static get[_0x17feb6(0x1bb)](){return!0x0;}[_0x17feb6(0x112)];[_0x17feb6(0xff)]=[];[_0x17feb6(0x135)]=0x0;[_0x17feb6(0x179)];[_0x17feb6(0x12e)]=!0x1;[_0x17feb6(0xec)]=new _0x1a26e2();[_0x17feb6(0x107)];[_0x17feb6(0x12d)];[_0x17feb6(0x177)]=!0x1;[_0x17feb6(0xf9)];[_0x17feb6(0x19e)]=!0x1;[_0x17feb6(0xfa)]=!0x1;[_0x17feb6(0x1bd)];[_0x17feb6(0x149)];get[_0x17feb6(0xeb)](){const _0x2c9756=_0x17feb6;return this[_0x2c9756(0xff)][this[_0x2c9756(0xff)][_0x2c9756(0xf5)]-0x1];}constructor(_0x18206c){const _0x37b327=_0x17feb6;super(_0x18206c),this[_0x37b327(0x149)]=new _0x1ba3bb(this[_0x37b327(0x1be)][_0x37b327(0x1d3)]),this[_0x37b327(0x149)][_0x37b327(0x1a9)](),this[_0x37b327(0x112)]=this[_0x37b327(0x1be)][_0x37b327(0x1cd)][_0x37b327(0x1a7)](_0x37b327(0x1a4)),this[_0x37b327(0x1c8)](_0x37b327(0x106),!0x1),this[_0x37b327(0x1bd)]=new _0x46eaf0(),this[_0x37b327(0x1c6)]();}[_0x17feb6(0x145)](){const _0x52e3d7=_0x17feb6;this[_0x52e3d7(0x136)]();}async[_0x17feb6(0x1aa)](_0x15fce0,_0x4e1f28,_0x1a4906){const _0x4f361d=_0x17feb6;if(this[_0x4f361d(0x1be)][_0x4f361d(0x1cd)][_0x4f361d(0x10a)](_0x4f361d(0x182))){if(this[_0x4f361d(0x1be)][_0x4f361d(0x1cd)][_0x4f361d(0x1a7)](_0x4f361d(0x182))[_0x4f361d(0x10b)]()){const {modelFragment:_0x1fc45b,anchorData:_0x2769aa}=this[_0x4f361d(0x1c4)]();return this[_0x4f361d(0x1ce)](_0x15fce0,_0x1fc45b,_0x2769aa,_0x4e1f28,_0x1a4906);}}const {modelFragment:_0x1d8f98,anchorData:_0x4a4385}=this[_0x4f361d(0x181)]();return this[_0x4f361d(0x1ce)](_0x15fce0,_0x1d8f98,_0x4a4385,_0x4e1f28,_0x1a4906);}[_0x17feb6(0x104)](){const _0x3ae95e=_0x17feb6;this[_0x3ae95e(0x149)][_0x3ae95e(0x14d)](),super[_0x3ae95e(0x104)]();}[_0x17feb6(0x181)](){const _0x171d2d=_0x17feb6,_0x115fb4=this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x197)][_0x171d2d(0xfc)];if(_0x115fb4[_0x171d2d(0x139)]){const _0x2d6f64=_0x5a0931(_0x115fb4[_0x171d2d(0x1d2)]())||this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x138)][_0x171d2d(0x133)](_0x115fb4);this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x118)](_0x3bc7a1=>{const _0x3ed17c=_0x171d2d;_0x3bc7a1[_0x3ed17c(0x159)](_0x2d6f64,'in');});}const _0x36ab41=_0x115fb4[_0x171d2d(0x121)](),_0x5c68fa=this[_0x171d2d(0x14b)](this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x19c)](_0x115fb4),_0x36ab41[_0x171d2d(0x184)],_0x36ab41[_0x171d2d(0x11c)]),_0x4066dc=_0x115fb4[_0x171d2d(0x121)]()[_0x171d2d(0x184)],_0x5c3c70=new Map();let _0x2c9277=_0x5c68fa;for(let _0x230b9d=0x0;_0x230b9d<_0x4066dc[_0x171d2d(0x17f)][_0x171d2d(0xf5)];_0x230b9d++)_0x5c3c70[_0x171d2d(0x1c8)](_0x2c9277,_0x4066dc[_0x171d2d(0x17f)][_0x230b9d]),_0x2c9277=_0x2c9277[_0x171d2d(0x13f)](0x0);return{'modelFragment':_0x5c68fa,'anchorData':_0x5c3c70};}[_0x17feb6(0x1c4)](){const _0x1cc293=_0x17feb6,_0xb655bd=this[_0x1cc293(0x1be)][_0x1cc293(0xfd)][_0x1cc293(0x197)][_0x1cc293(0xfc)],_0x585d02=this[_0x1cc293(0x1be)][_0x1cc293(0x1cd)][_0x1cc293(0x1a7)](_0x1cc293(0x182))[_0x1cc293(0x147)](),_0x46de81=_0xb655bd[_0x1cc293(0x121)]()[_0x1cc293(0x184)][_0x1cc293(0x17c)][_0x1cc293(0x17c)],_0x4b0324=this[_0x1cc293(0x14b)](_0x585d02,this[_0x1cc293(0x1be)][_0x1cc293(0xfd)][_0x1cc293(0x15a)](_0x46de81),this[_0x1cc293(0x1be)][_0x1cc293(0xfd)][_0x1cc293(0x101)](_0x46de81)),_0x50d07c=_0xb655bd[_0x1cc293(0x121)]()[_0x1cc293(0x184)],_0x26d051=new Map();let _0x3c1099=_0x4b0324;for(let _0x1414f2=0x0;_0x1414f2<_0x50d07c[_0x1cc293(0x17f)][_0x1cc293(0xf5)];_0x1414f2++)if(_0x26d051[_0x1cc293(0x1c8)](_0x3c1099,_0x50d07c[_0x1cc293(0x17f)][_0x1414f2]),_0x1414f2<_0x50d07c[_0x1cc293(0x17f)][_0x1cc293(0xf5)]-0x1)_0x3c1099=_0x3c1099[_0x1cc293(0x13f)](0x0);else{let _0x3799cb=_0x3c1099[_0x1cc293(0x132)];for(;_0x3799cb;)_0x26d051[_0x1cc293(0x1c8)](_0x3799cb,_0x50d07c[_0x1cc293(0x17f)][_0x1414f2]),_0x3799cb=_0x3799cb[_0x1cc293(0x132)];}return{'modelFragment':_0x4b0324,'anchorData':_0x26d051};}[_0x17feb6(0x1ce)](_0x30001e,_0x1a8030,_0x408fba,_0x4a6243,_0x4c847a){const _0x2b7b30=_0x17feb6,_0x633e18=this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x1a7)](_0x3a06a5),_0x486feb=this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x1a7)](_0x28e18e),_0x2ee27d=this[_0x2b7b30(0x1be)][_0x2b7b30(0xfd)][_0x2b7b30(0x197)][_0x2b7b30(0xfc)],_0x495da8=_0x633e18[_0x2b7b30(0xe9)](_0x1a8030),_0x317837=this[_0x2b7b30(0x1be)][_0x2b7b30(0x163)][_0x2b7b30(0x193)][_0x2b7b30(0x1d0)](_0x495da8),_0x1c0a29=this[_0x2b7b30(0x1be)][_0x2b7b30(0xfd)][_0x2b7b30(0x197)][_0x2b7b30(0x155)],_0x30a51f=[..._0x2ee27d[_0x2b7b30(0x1ca)]()];let _0x406475=this[_0x2b7b30(0x1be)][_0x2b7b30(0x192)][_0x2b7b30(0x1a7)](_0x2b7b30(0x111))||[..._0x5a32bd];this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x10a)](_0x2b7b30(0x190))||(_0x406475=_0x406475[_0x2b7b30(0x130)](_0x24393a=>_0x2b7b30(0x113)!=_0x24393a));const _0x51ddc1=new _0xf748d2(this[_0x2b7b30(0x1be)][_0x2b7b30(0x1d3)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2b7b30(0x1a2),'customView':this[_0x2b7b30(0xec)]},'showUnchangedParts':!0x0,'availableActions':_0x406475},this[_0x2b7b30(0x149)]);return _0x486feb[_0x2b7b30(0x195)]({'index':0x3e8*Math[_0x2b7b30(0x1b0)]()%0x3e8,'title':_0x4a6243,'icon':_0x4c847a||_0x3df9ff,'mainView':_0x51ddc1,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x10a)](_0x2b7b30(0x190)),'ranges':_0x30a51f}),this[_0x2b7b30(0x109)](_0x51ddc1,_0x486feb),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x1ad),()=>{const _0x2000fb=_0x2b7b30;this[_0x2000fb(0xea)](_0x1a8030,_0x408fba,!0x1);}),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x113),()=>{const _0x25fc08=_0x2b7b30;this[_0x25fc08(0xea)](_0x1a8030,_0x408fba,!0x0);}),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x18a),()=>{const _0x1d1a56=_0x2b7b30;this[_0x1d1a56(0x136)](),this[_0x1d1a56(0x1c5)]();}),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x141),()=>{const _0x396a82=_0x2b7b30;if(this[_0x396a82(0xeb)]&&this[_0x396a82(0xeb)][_0x396a82(0x199)][_0x396a82(0xf5)]>0x0){const _0x1493c0=this[_0x396a82(0xeb)][_0x396a82(0x199)][this[_0x396a82(0xeb)][_0x396a82(0x199)][_0x396a82(0xf5)]-0x1],_0x304a81=_0x1493c0[_0x396a82(0xf8)][0x0];_0x304a81&&_0x396a82(0x1b1)===_0x304a81[_0x396a82(0x140)]&&_0x1493c0[_0x396a82(0x1c9)](0x0,_0x396a82(0x17e));}this[_0x396a82(0x136)](),this[_0x396a82(0x189)](),this[_0x396a82(0x170)](_0x486feb);}),this[_0x2b7b30(0x1b2)](_0x317837,_0x1c0a29,_0x51ddc1,_0x486feb,_0x30001e);}[_0x17feb6(0x14b)](_0x4e5ac6,_0x2a6d2f,_0x24fffa){const _0x5a72b9=_0x17feb6,_0x209292=this[_0x5a72b9(0x1be)][_0x5a72b9(0xfd)][_0x5a72b9(0x1b4)](_0x2a6d2f,_0x24fffa)[_0x5a72b9(0x115)](),_0x105d87=_0x209292['is'](_0x5a72b9(0x1cb))?[]:_0x209292[_0x5a72b9(0x1b9)]({'includeSelf':!0x0})[_0x5a72b9(0x151)](0x1);if(_0x105d87[_0x5a72b9(0xf5)]){const _0xdbcda1=_0x105d87[_0x5a72b9(0x18b)](_0x3425b1=>_0x3425b1[_0x5a72b9(0x120)](!0x1));for(let _0x542307=0x1;_0x542307<_0xdbcda1[_0x5a72b9(0xf5)];_0x542307++)_0xdbcda1[_0x542307-0x1][_0x5a72b9(0x125)](_0xdbcda1[_0x542307]);return _0xdbcda1[_0xdbcda1[_0x5a72b9(0xf5)]-0x1][_0x5a72b9(0x125)](_0x4e5ac6),new _0x5dde1e(_0xdbcda1[0x0]);}return _0x4e5ac6;}async[_0x17feb6(0x1b2)](_0x1cc82c,_0x41a721,_0x36b2ec,_0x63b659,_0x318c30){const _0x504b1b=_0x17feb6,_0x1cf0e8=this[_0x504b1b(0x1be)];this[_0x504b1b(0x179)]={'action':_0x318c30,'content':_0x1cc82c,'version':_0x41a721,'mainView':_0x36b2ec,'aiBalloon':_0x63b659};const _0x5eed5b=new _0x5623ed({'connector':this[_0x504b1b(0x112)],'editor':_0x1cf0e8,'content':_0x1cc82c,'version':_0x41a721,..._0x318c30});this[_0x504b1b(0xff)][_0x504b1b(0xef)](_0x5eed5b),_0x36b2ec[_0x504b1b(0x119)]();const _0x3e8003=(_0xee4353,_0x4706fd,_0x9930e6=!0x1,_0x4c6dea=_0x504b1b(0x19f))=>this[_0x504b1b(0x1bd)][_0x504b1b(0x10c)](async _0x21aa8e=>{const _0x4d5ea8=_0x504b1b;try{const _0x23e045=_0x59b572({'editor':_0x1cf0e8,'changeGroups':_0xee4353[_0x4d5ea8(0xf8)],'documentContextContent':_0xee4353[_0x4d5ea8(0x196)],'showDiff':_0x9930e6,'trimUnchanged':!0x1});await _0x4706fd[_0x4d5ea8(0x102)]({'parts':_0x23e045,'renderingStrategy':_0x4c6dea,'abortSignal':_0x21aa8e});}catch(_0x2323f5){if(this[_0x4d5ea8(0x15f)](_0x2323f5))return;throw _0x2323f5;}});this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x176),(_0x50ccf1,_0x3a8347)=>{const _0x5828eb=_0x504b1b;_0x36b2ec[_0x5828eb(0x10e)](),_0x63b659[_0x5828eb(0x11f)](),_0x3e8003(_0x3a8347,_0x36b2ec)[_0x5828eb(0x1c7)](_0x39105a=>{const _0xd20632=_0x5828eb;this[_0xd20632(0x15f)](_0x39105a)||(console[_0xd20632(0x15b)](_0xd20632(0x18e),_0x39105a),this[_0xd20632(0x126)](_0x5eed5b,_0x36b2ec));});}),this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x19d),(_0x3a75d3,_0x27810c)=>{const _0x35ea63=_0x504b1b;_0x3e8003(_0x27810c,_0x36b2ec)[_0x35ea63(0x1c7)](_0x5f2302=>{const _0x29f271=_0x35ea63;this[_0x29f271(0x15f)](_0x5f2302)||(console[_0x29f271(0x15b)](_0x29f271(0x17a),_0x5f2302),this[_0x29f271(0x126)](_0x5eed5b,_0x36b2ec));});}),this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x16c),async()=>{const _0x82618a=_0x504b1b;try{await this[_0x82618a(0x13a)](_0x36b2ec,_0x63b659),this[_0x82618a(0x178)](),await this[_0x82618a(0x1bd)][_0x82618a(0x13d)];}catch(_0x5512d1){this[_0x82618a(0x15f)](_0x5512d1)||(console[_0x82618a(0x15b)](_0x82618a(0x1cf),_0x5512d1),this[_0x82618a(0x126)](_0x5eed5b,_0x36b2ec));}finally{_0x63b659[_0x82618a(0x1af)]();}}),this[_0x504b1b(0x1a1)](_0x36b2ec,_0x504b1b(0x1ae),async(_0x2396f4,{showDiff:_0x18a34f})=>{const _0x323600=_0x504b1b;try{this[_0x323600(0x12e)]=_0x18a34f;const _0x5c00b8=this[_0x323600(0xeb)][_0x323600(0x199)][this[_0x323600(0xeb)][_0x323600(0x199)][_0x323600(0xf5)]-0x1];_0x5c00b8&&await _0x3e8003(_0x5c00b8,_0x36b2ec,_0x18a34f,_0x323600(0x123));}catch(_0x1693af){this[_0x323600(0x15f)](_0x1693af)||(console[_0x323600(0x15b)](_0x323600(0x129),_0x1693af),this[_0x323600(0x126)](_0x5eed5b,_0x36b2ec));}}),this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x146),(_0x845bff,{reply:_0x2e92a1})=>{const _0x132f86=_0x504b1b,_0x48d452={'positiveCount':_0x2e92a1[_0x132f86(0xf8)][_0x132f86(0x130)](_0x5a65fb=>_0x132f86(0x188)===_0x5a65fb[_0x132f86(0x140)])[_0x132f86(0xf5)],'totalCount':_0x2e92a1[_0x132f86(0xf8)][_0x132f86(0xf5)]},_0x3e3c9a=this[_0x132f86(0xeb)][_0x132f86(0x116)],_0xf611b5=this[_0x132f86(0xeb)][_0x132f86(0x14f)];_0xf611b5?this[_0x132f86(0x112)][_0x132f86(0x134)](_0xf611b5,_0x3e3c9a,_0x48d452):this[_0x132f86(0x112)][_0x132f86(0x186)](_0x3e3c9a,_0x48d452);}),this[_0x504b1b(0x109)](_0x36b2ec,_0x63b659);try{const _0x27e9f8=await this[_0x504b1b(0xeb)][_0x504b1b(0x184)]();return this[_0x504b1b(0x178)](),_0x27e9f8;}catch(_0xd87731){if(this[_0x504b1b(0x15f)](_0xd87731))return;_0x36b2ec[_0x504b1b(0x10e)](),this[_0x504b1b(0x126)](_0x5eed5b,_0x36b2ec);}}[_0x17feb6(0xea)](_0x5e079f,_0xe35a72,_0x4f4dc4){const _0x1b1471=_0x17feb6,_0x2ada70=this[_0x1b1471(0x1be)];if(_0x4f4dc4&&!_0x2ada70[_0x1b1471(0x1cd)][_0x1b1471(0x10a)](_0x1b1471(0x190)))throw new _0x293dbe(_0x1b1471(0x108),null);const _0x290d5e=this[_0x1b1471(0x1be)][_0x1b1471(0x1cd)][_0x1b1471(0x1a7)](_0x380023),_0x40718b=this[_0x1b1471(0xeb)],_0x1feced=this[_0x1b1471(0xeb)][_0x1b1471(0x199)][this[_0x1b1471(0xeb)][_0x1b1471(0x199)][_0x1b1471(0xf5)]-0x1],_0x1b36fd=_0x1feced[_0x1b1471(0xf8)];_0x1feced[_0x1b1471(0x1c9)](0x0,_0x1b1471(0x188));let _0x5dbee2=_0x1bf5ef({'editor':_0x2ada70,'reply':_0x1feced,'interaction':_0x40718b,'groups':_0x1b36fd,'transform':!0x1,'documentCompare':_0x290d5e,'documentCompareOptions':{'anchor':_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x160)](_0x5e079f,0x0),'markDeletions':_0x4f4dc4}});_0x5dbee2=this[_0x1b1471(0x198)](_0x5dbee2,_0xe35a72);for(const _0x8880fd of _0x5dbee2)this[_0x1b1471(0x103)](_0xe35a72,_0x8880fd,_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x197)][_0x1b1471(0x1bf)]());const _0x314fa3=_0x40718b[_0x1b1471(0x1a0)]()[_0x1b1471(0x155)],_0x307064=_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x197)][_0x1b1471(0x16e)][_0x1b1471(0x15d)](_0x314fa3),_0xe96dd9={'document':_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x197)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3b0c21=_0x556fc3(_0x5dbee2,_0x307064,_0xe96dd9)[_0x1b1471(0x14a)];_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x118)](_0x5ed430=>{const _0x57584e=_0x1b1471;if(_0x5ed430[_0x57584e(0x159)](_0x2ada70[_0x57584e(0xfd)][_0x57584e(0x197)][_0x57584e(0xfc)][_0x57584e(0x164)]),_0x4f4dc4)_0x2ada70[_0x57584e(0x1cd)][_0x57584e(0x1a7)](_0x57584e(0x158))[_0x57584e(0xf0)](_0x3b0c21);else{for(const _0x2177a3 of _0x3b0c21)_0x2177a3[_0x57584e(0xf2)]=_0x2ada70[_0x57584e(0xfd)][_0x57584e(0x197)][_0x57584e(0x155)],_0x3342f6(_0x2ada70,_0x2177a3),_0x5ed430[_0x57584e(0x1c3)][_0x57584e(0x1b7)](_0x2177a3),_0x2ada70[_0x57584e(0xfd)][_0x57584e(0x12a)](_0x2177a3);}}),this[_0x1b1471(0x1be)][_0x1b1471(0x1cd)][_0x1b1471(0x1a7)](_0x1b1471(0x12f))[_0x1b1471(0x14c)]();}[_0x17feb6(0x198)](_0x2186c6,_0x4ec0fb){const _0x2d5584=_0x17feb6;return _0x2186c6[_0x2d5584(0x130)](_0x156afd=>{const _0x8305ce=_0x2d5584;if(_0x8305ce(0x173)==_0x156afd[_0x8305ce(0x1ac)]){const _0x17b387=_0x156afd[_0x8305ce(0x180)][_0x8305ce(0x169)];return!_0x4ec0fb[_0x8305ce(0x10a)](_0x17b387);}if(_0x156afd[_0x8305ce(0x1ac)][_0x8305ce(0x16f)](_0x8305ce(0x137))>-0x1){const _0x5141d8=_0x156afd[_0x8305ce(0x19b)][_0x8305ce(0x184)][_0x8305ce(0x169)];return!_0x4ec0fb[_0x8305ce(0x10a)](_0x5141d8);}return!0x0;});}[_0x17feb6(0x103)](_0x582d67,_0x325d3a,_0x323e13){const _0x45092f=_0x17feb6,_0x4b05d9=_0x325d3a[_0x45092f(0xf6)]();for(const _0x29fbd1 in _0x325d3a){const _0x119f6d=_0x325d3a[_0x29fbd1];_0x119f6d instanceof _0x1f6cab?_0x325d3a[_0x29fbd1]=new _0x1f6cab(_0x2c1eb4(_0x119f6d[_0x45092f(0x184)]),_0x2c1eb4(_0x119f6d[_0x45092f(0x11c)])):_0x119f6d instanceof _0x3e0772&&(_0x325d3a[_0x29fbd1]=_0x2c1eb4(_0x119f6d));}if([_0x45092f(0x152),_0x45092f(0x150),_0x45092f(0x12c),_0x45092f(0x114),_0x45092f(0x162),_0x45092f(0x144)][_0x45092f(0x11a)](_0x4b05d9[_0x45092f(0x1ac)])){if(_0x4b05d9[_0x45092f(0xf1)]=!0x1,_0x4b05d9[_0x45092f(0xf2)]=null,_0x45092f(0x12c)==_0x4b05d9[_0x45092f(0x1ac)]){const _0x4c9fa7=_0x4b05d9[_0x45092f(0x1a5)],_0x51893c=_0x4b05d9[_0x45092f(0x11b)];new _0x27c19c(_0x4c9fa7,_0x51893c)[_0x45092f(0x187)]();}else _0x4b05d9[_0x45092f(0x187)]();}function _0x2c1eb4(_0x19fbbe){const _0x37441a=_0x45092f;if(_0x37441a(0x15e)==_0x19fbbe[_0x37441a(0x154)][_0x37441a(0x1c1)])return _0x19fbbe;const _0x4e1b77=[];let _0x525ac7=_0x19fbbe[_0x37441a(0x154)];for(let _0x330558=0x0;_0x330558<_0x19fbbe[_0x37441a(0x17f)][_0x37441a(0xf5)];_0x330558++){const _0x1ce7da=_0x582d67[_0x37441a(0x1a7)](_0x525ac7)||0x0;_0x4e1b77[_0x330558]=_0x19fbbe[_0x37441a(0x17f)][_0x330558]+_0x1ce7da,_0x525ac7=_0x525ac7[_0x37441a(0x143)](_0x19fbbe[_0x37441a(0x17f)][_0x330558]);}return new _0x3e0772(_0x323e13,_0x4e1b77,_0x19fbbe[_0x37441a(0x100)]);}}[_0x17feb6(0xfe)](){const _0x33e44a=_0x17feb6;if(!this[_0x33e44a(0x179)])return;this[_0x33e44a(0xff)][_0x33e44a(0xf5)]>0x0&&this[_0x33e44a(0x136)](),this[_0x33e44a(0x135)]=0x0,this[_0x33e44a(0x12e)]=!0x1;const {action:_0x1067e8,content:_0x5dc12b,version:_0x4caf93,mainView:_0x18e563,aiBalloon:_0x3e424e}=this[_0x33e44a(0x179)];_0x18e563[_0x33e44a(0x142)]=!0x1,_0x18e563[_0x33e44a(0x119)](),this[_0x33e44a(0xf3)](_0x18e563,_0x3e424e);const _0x70ba2e=_0x18e563;_0x70ba2e[_0x33e44a(0x1a3)]&&_0x70ba2e[_0x33e44a(0x1a3)][_0x33e44a(0x185)]&&_0x70ba2e[_0x33e44a(0x1a3)][_0x33e44a(0x185)][_0x33e44a(0x1c8)]({'isOn':!0x1,'icon':_0x5a480a}),this[_0x33e44a(0x10d)](_0x18e563),_0x18e563[_0x33e44a(0x191)](),this[_0x33e44a(0x178)](),this[_0x33e44a(0x170)](_0x18e563),this[_0x33e44a(0x1b2)](_0x5dc12b,_0x4caf93,_0x18e563,_0x3e424e,_0x1067e8)[_0x33e44a(0x1c7)](_0x2e7080=>{const _0x41452f=_0x33e44a;this[_0x41452f(0x15f)](_0x2e7080)||console[_0x41452f(0x15b)](_0x41452f(0x1d1),_0x2e7080);});}[_0x17feb6(0x10d)](_0x2935ae){const _0x28d982=_0x17feb6,_0x2fe9d7=_0x2935ae[_0x28d982(0x11d)][_0x28d982(0x117)];for(;_0x2fe9d7[_0x28d982(0xf5)]>0x0;)_0x2fe9d7[_0x28d982(0x12c)](_0x2fe9d7[_0x28d982(0x174)]);_0x2935ae[_0x28d982(0x11d)][_0x28d982(0x18c)]=!0x1;}[_0x17feb6(0x15f)](_0x47062c){const _0x9b0afd=_0x17feb6;return!!_0x47062c[_0x9b0afd(0x1c0)]&&_0x47062c[_0x9b0afd(0x1c0)][_0x9b0afd(0x122)](_0x9b0afd(0x1bc));}[_0x17feb6(0x189)](){const _0x73e40=_0x17feb6;this[_0x73e40(0xff)]=[],this[_0x73e40(0x179)]=void 0x0,this[_0x73e40(0x135)]=0x0,this[_0x73e40(0x178)]();}[_0x17feb6(0x136)](){const _0x58798a=_0x17feb6;this[_0x58798a(0xeb)]&&this[_0x58798a(0xeb)][_0x58798a(0x17b)](),this[_0x58798a(0x1bd)][_0x58798a(0x1b8)](),this[_0x58798a(0x106)]=!0x1,this[_0x58798a(0x179)]&&this[_0x58798a(0x179)][_0x58798a(0x1ba)][_0x58798a(0x1af)]();}[_0x17feb6(0x1c6)](){const _0x4b4f5b=_0x17feb6,_0xe9dece=new _0x2b05ed(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]),_0x59290c=new _0x2b05ed(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]),_0x57e3d4=new _0x456041(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]),_0x3afc38=new _0x2b05ed(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]);_0xe9dece[_0x4b4f5b(0x1c8)]({'icon':_0x4dc9e4,'label':_0x52b860(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)],_0x4b4f5b(0x1b3)),'tooltip':!0x0,'class':_0x4b4f5b(0x10f)}),_0x59290c[_0x4b4f5b(0x1c8)]({'icon':_0x47d573,'tooltip':_0x52b860(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)],_0x4b4f5b(0x124)),'class':_0x4b4f5b(0x13c)}),_0x57e3d4[_0x4b4f5b(0xee)]({'tag':_0x4b4f5b(0x161),'attributes':{'class':[_0x4b4f5b(0x16d)]},'children':[_0x4b4f5b(0x172)]}),_0x3afc38[_0x4b4f5b(0x1c8)]({'icon':_0x586592,'tooltip':_0x52b860(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)],_0x4b4f5b(0x131)),'class':_0x4b4f5b(0xf7)}),_0xe9dece[_0x4b4f5b(0x153)](_0x4b4f5b(0x175))['to'](this,_0x4b4f5b(0x106),_0x4d75a7=>!_0x4d75a7),_0xe9dece['on'](_0x4b4f5b(0x171),()=>{const _0x2716c8=_0x4b4f5b;this[_0x2716c8(0xfe)]();}),_0x59290c[_0x4b4f5b(0x153)](_0x4b4f5b(0x175))['to'](this,_0x4b4f5b(0x106),_0x29e6d6=>!_0x29e6d6),_0x59290c['on'](_0x4b4f5b(0x171),()=>{const _0x477fdc=_0x4b4f5b;this[_0x477fdc(0x157)]();}),_0x3afc38[_0x4b4f5b(0x153)](_0x4b4f5b(0x175))['to'](this,_0x4b4f5b(0x106),_0x1f5cd7=>!_0x1f5cd7),_0x3afc38['on'](_0x4b4f5b(0x171),()=>{const _0x1c069e=_0x4b4f5b;this[_0x1c069e(0x19a)]();}),this[_0x4b4f5b(0x107)]=_0x59290c,this[_0x4b4f5b(0x12d)]=_0x57e3d4,this[_0x4b4f5b(0xf9)]=_0x3afc38,this[_0x4b4f5b(0xec)][_0x4b4f5b(0xed)](_0xe9dece);}[_0x17feb6(0x157)](){const _0x12f2d5=_0x17feb6,_0x2a53f0=this[_0x12f2d5(0xff)][_0x12f2d5(0xf5)];this[_0x12f2d5(0x135)]<_0x2a53f0-0x1&&this[_0x12f2d5(0x128)](this[_0x12f2d5(0x135)]+0x1);}[_0x17feb6(0x19a)](){const _0x1cc97a=_0x17feb6;this[_0x1cc97a(0x135)]>0x0&&this[_0x1cc97a(0x128)](this[_0x1cc97a(0x135)]-0x1);}async[_0x17feb6(0x128)](_0x3f618c){const _0x15d6c3=_0x17feb6;if(!this[_0x15d6c3(0x179)])return;this[_0x15d6c3(0x135)]=_0x3f618c;const {mainView:_0x2134cf}=this[_0x15d6c3(0x179)],_0x377a63=this[_0x15d6c3(0xff)][this[_0x15d6c3(0xff)][_0x15d6c3(0xf5)]-0x1-this[_0x15d6c3(0x135)]];if(!_0x377a63)return;if(_0x377a63[_0x15d6c3(0x15c)])return this[_0x15d6c3(0x126)](_0x377a63,_0x2134cf),void this[_0x15d6c3(0x178)]();if(!_0x377a63[_0x15d6c3(0x199)][_0x15d6c3(0xf5)])return;_0x2134cf[_0x15d6c3(0x119)](),this[_0x15d6c3(0x179)]&&this[_0x15d6c3(0xf3)](_0x2134cf,this[_0x15d6c3(0x179)][_0x15d6c3(0x1ba)]);const _0x5ea0f1=_0x377a63[_0x15d6c3(0x199)][_0x377a63[_0x15d6c3(0x199)][_0x15d6c3(0xf5)]-0x1];if(_0x5ea0f1){const _0x13a150=this[_0x15d6c3(0x1be)];this[_0x15d6c3(0x10d)](_0x2134cf);try{const _0x2ee75f=_0x59b572({'editor':_0x13a150,'changeGroups':_0x5ea0f1[_0x15d6c3(0xf8)],'documentContextContent':_0x5ea0f1[_0x15d6c3(0x196)],'showDiff':this[_0x15d6c3(0x12e)],'trimUnchanged':!0x1});this[_0x15d6c3(0x10d)](_0x2134cf),await new Promise(_0x15b32e=>setTimeout(_0x15b32e,0x32)),await _0x2134cf[_0x15d6c3(0x102)]({'parts':_0x2ee75f,'renderingStrategy':_0x15d6c3(0x123),'abortSignal':new AbortController()[_0x15d6c3(0x11e)]});}catch(_0x48228e){this[_0x15d6c3(0x15f)](_0x48228e)||console[_0x15d6c3(0x15b)](_0x15d6c3(0x16a),_0x48228e);}}this[_0x15d6c3(0x178)]();}[_0x17feb6(0x178)](){const _0x4c91c1=_0x17feb6;if(!this[_0x4c91c1(0x107)]||!this[_0x4c91c1(0x12d)]||!this[_0x4c91c1(0xf9)])return;const _0x3adeb5=this[_0x4c91c1(0xff)][_0x4c91c1(0xf5)],_0xdb41f9=_0x3adeb5>0x1,_0x26879c=this[_0x4c91c1(0x179)]?.[_0x4c91c1(0x18f)];if(_0xdb41f9){this[_0x4c91c1(0x19e)]||this[_0x4c91c1(0x177)]||this[_0x4c91c1(0xfa)]||(this[_0x4c91c1(0xec)][_0x4c91c1(0xed)](this[_0x4c91c1(0x107)]),_0x26879c?.[_0x4c91c1(0x156)](this[_0x4c91c1(0x107)]),this[_0x4c91c1(0x19e)]=!0x0,this[_0x4c91c1(0xec)][_0x4c91c1(0xed)](this[_0x4c91c1(0x12d)]),_0x26879c?.[_0x4c91c1(0x156)](this[_0x4c91c1(0x12d)]),this[_0x4c91c1(0x177)]=!0x0,this[_0x4c91c1(0xec)][_0x4c91c1(0xed)](this[_0x4c91c1(0xf9)]),_0x26879c?.[_0x4c91c1(0x156)](this[_0x4c91c1(0xf9)]),this[_0x4c91c1(0xfa)]=!0x0);const _0x1d825d=_0x3adeb5-this[_0x4c91c1(0x135)];this[_0x4c91c1(0x12d)][_0x4c91c1(0x166)]&&(this[_0x4c91c1(0x12d)][_0x4c91c1(0x166)][_0x4c91c1(0x127)]=_0x1d825d+'/'+_0x3adeb5),this[_0x4c91c1(0x107)][_0x4c91c1(0x175)]=this[_0x4c91c1(0x135)]<_0x3adeb5-0x1,this[_0x4c91c1(0xf9)][_0x4c91c1(0x175)]=this[_0x4c91c1(0x135)]>0x0;}else(this[_0x4c91c1(0x19e)]||this[_0x4c91c1(0x177)]||this[_0x4c91c1(0xfa)])&&(this[_0x4c91c1(0xec)][_0x4c91c1(0x12c)](this[_0x4c91c1(0x107)]),_0x26879c?.[_0x4c91c1(0x1b6)](this[_0x4c91c1(0x107)]),this[_0x4c91c1(0x19e)]=!0x1,this[_0x4c91c1(0xec)][_0x4c91c1(0x12c)](this[_0x4c91c1(0x12d)]),_0x26879c?.[_0x4c91c1(0x1b6)](this[_0x4c91c1(0x12d)]),this[_0x4c91c1(0x177)]=!0x1,this[_0x4c91c1(0xec)][_0x4c91c1(0x12c)](this[_0x4c91c1(0xf9)]),_0x26879c?.[_0x4c91c1(0x1b6)](this[_0x4c91c1(0xf9)]),this[_0x4c91c1(0xfa)]=!0x1);}[_0x17feb6(0x109)](_0x25411c,_0x295301){const _0x29ca2c=_0x17feb6;_0x25411c[_0x29ca2c(0x148)](),_0x295301[_0x29ca2c(0x183)][_0x29ca2c(0x148)](),this[_0x29ca2c(0x106)]=!0x0;}async[_0x17feb6(0x126)](_0x46bf2f,_0x4b5a53){const _0x1f3da5=_0x17feb6,_0x4d24a7=_0x52b860(this[_0x1f3da5(0x1be)][_0x1f3da5(0x1d3)],_0x1f3da5(0x17d));_0x4b5a53[_0x1f3da5(0x194)](_0x4d24a7),_0x46bf2f[_0x1f3da5(0x15c)]=!0x0,await this[_0x1f3da5(0x1bd)][_0x1f3da5(0x13d)],_0x4b5a53[_0x1f3da5(0xfb)](),this[_0x1f3da5(0x179)]?.[_0x1f3da5(0x1ba)][_0x1f3da5(0x183)][_0x1f3da5(0x13e)]&&(this[_0x1f3da5(0x179)][_0x1f3da5(0x1ba)][_0x1f3da5(0x183)][_0x1f3da5(0x13e)][_0x1f3da5(0x14e)]=!0x0);}[_0x17feb6(0xf3)](_0x12e976,_0xb5e9dd){const _0xd7384d=_0x17feb6;_0x12e976[_0xd7384d(0x1a6)](),_0xb5e9dd[_0xd7384d(0x183)][_0xd7384d(0x13e)]&&(_0xb5e9dd[_0xd7384d(0x183)][_0xd7384d(0x13e)][_0xd7384d(0x14e)]=!0x1);}async[_0x17feb6(0x13a)](_0x47bef7,_0x5df1df){const _0xc38682=_0x17feb6;await this[_0xc38682(0x1bd)][_0xc38682(0x13d)],this[_0xc38682(0x106)]=!0x1,_0x47bef7[_0xc38682(0x1b5)](),_0x5df1df[_0xc38682(0x183)][_0xc38682(0x1b5)]();}[_0x17feb6(0x1c5)](){const _0x22c790=_0x17feb6;this[_0x22c790(0xec)][_0x22c790(0x13b)](_0x2d913e=>{const _0x5e6a09=_0x22c790;_0x5e6a09(0x175)in _0x2d913e&&(_0x2d913e[_0x5e6a09(0x175)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x336a7f=_0x287b;function _0x2d87(){const _0xced1d1=['sendRequest','editor','2BdjDcL','html','replies','actionName','19530JqtPCh','connector','executeAction','1555wZlLYz','replyCreated','createReply','55ihSAyz','getDocumentContext','content','184dznmFR','model','3299604MmDEdV','1642814PFWtZj','executeCustomAction','4892592dMDcJo','TEXT','delegate','push','userMessage','2302840CqBlIu','version','8538vaVBfv','Current\x20document','hasError','current-document','fire','10734230JHdtay','args','45CbGgIs'];_0x2d87=function(){return _0xced1d1;};return _0x2d87();}(function(_0x53e7f1,_0x5bd185){const _0x265df3=_0x287b,_0x1e1403=_0x53e7f1();while(!![]){try{const _0x57847b=parseInt(_0x265df3(0x135))/0x1*(parseInt(_0x265df3(0x145))/0x2)+parseInt(_0x265df3(0x139))/0x3*(-parseInt(_0x265df3(0x142))/0x4)+parseInt(_0x265df3(0x13c))/0x5*(-parseInt(_0x265df3(0x14e))/0x6)+parseInt(_0x265df3(0x144))/0x7+parseInt(_0x265df3(0x14c))/0x8*(-parseInt(_0x265df3(0x132))/0x9)+-parseInt(_0x265df3(0x130))/0xa+-parseInt(_0x265df3(0x13f))/0xb*(-parseInt(_0x265df3(0x147))/0xc);if(_0x57847b===_0x5bd185)break;else _0x1e1403['push'](_0x1e1403['shift']());}catch(_0x57ffa1){_0x1e1403['push'](_0x1e1403['shift']());}}}(_0x2d87,0xdb407));function _0x287b(_0x2a6e9d,_0x5df0f3){const _0x2d871b=_0x2d87();return _0x287b=function(_0x287bb5,_0x2c0bfb){_0x287bb5=_0x287bb5-0x12e;let _0x51eee3=_0x2d871b[_0x287bb5];return _0x51eee3;},_0x287b(_0x2a6e9d,_0x5df0f3);}import{AIInteraction as _0x42f648,AI_MODEL_EVENT_NAMES as _0x23bfd9}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0xf774de}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x2f6a94}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x42f648{[_0x336a7f(0x141)];[_0x336a7f(0x14d)];[_0x336a7f(0x138)];[_0x336a7f(0x131)];[_0x336a7f(0x14b)];[_0x336a7f(0x143)];[_0x336a7f(0x150)]=!0x1;constructor(_0x5a1ad5){const _0x52b7fa=_0x336a7f;super(_0x5a1ad5),this[_0x52b7fa(0x141)]=_0x5a1ad5[_0x52b7fa(0x141)],this[_0x52b7fa(0x14d)]=_0x5a1ad5[_0x52b7fa(0x14d)],this[_0x52b7fa(0x138)]=_0x5a1ad5[_0x52b7fa(0x138)],this[_0x52b7fa(0x131)]=_0x5a1ad5[_0x52b7fa(0x131)],this[_0x52b7fa(0x14b)]=_0x5a1ad5[_0x52b7fa(0x14b)],this[_0x52b7fa(0x143)]=_0x5a1ad5[_0x52b7fa(0x143)];}async[_0x336a7f(0x133)](){const _0x843358=_0x336a7f;return this[_0x843358(0x138)]?this[_0x843358(0x13a)][_0x843358(0x13b)]({'content':this[_0x843358(0x141)],'actionName':this[_0x843358(0x138)],'args':this[_0x843358(0x131)]}):this[_0x843358(0x13a)][_0x843358(0x146)]({'content':this[_0x843358(0x141)],'message':this[_0x843358(0x14b)],'model':this[_0x843358(0x143)],'outputFormat':_0x843358(0x136)});}[_0x336a7f(0x140)](){const _0x26b521=_0x336a7f;return{'type':_0xf774de[_0x26b521(0x148)],'content':this[_0x26b521(0x141)],'version':this[_0x26b521(0x14d)],'label':_0x26b521(0x14f),'uiId':_0x26b521(0x12e)};}[_0x336a7f(0x13e)](_0x59809a){const _0x2a6521=_0x336a7f,_0x4272ee=new _0x2f6a94({'editor':this[_0x2a6521(0x134)],'documentContextContent':this[_0x2a6521(0x141)],..._0x59809a});return this[_0x2a6521(0x137)][_0x2a6521(0x14a)](_0x4272ee),_0x4272ee[_0x2a6521(0x149)](..._0x23bfd9)['to'](this),this[_0x2a6521(0x12f)](_0x2a6521(0x13d),_0x4272ee),_0x4272ee;}}
23
+ const _0x4c9761=_0x52b4;function _0x435a(){const _0x17af4d=['sendRequest','model','4848645OQQsga','4713376TWSnnH','html','current-document','6826112QUdCwW','fire','createReply','3seEyae','hasError','209356AQvTMk','delegate','userMessage','getDocumentContext','TEXT','1727228QFoHaR','1bnOiPV','connector','actionName','executeCustomAction','args','executeAction','32663340MeSgTG','content','6557688wPOZBK','replyCreated','replies','version','push','editor','Current\x20document'];_0x435a=function(){return _0x17af4d;};return _0x435a();}(function(_0x194df0,_0x43c5e8){const _0x3a9245=_0x52b4,_0x287a94=_0x194df0();while(!![]){try{const _0x4b5671=parseInt(_0x3a9245(0x140))/0x1*(-parseInt(_0x3a9245(0x13f))/0x2)+-parseInt(_0x3a9245(0x138))/0x3*(parseInt(_0x3a9245(0x132))/0x4)+-parseInt(_0x3a9245(0x131))/0x5+parseInt(_0x3a9245(0x128))/0x6+parseInt(_0x3a9245(0x13a))/0x7+-parseInt(_0x3a9245(0x135))/0x8+parseInt(_0x3a9245(0x146))/0x9;if(_0x4b5671===_0x43c5e8)break;else _0x287a94['push'](_0x287a94['shift']());}catch(_0x3965fc){_0x287a94['push'](_0x287a94['shift']());}}}(_0x435a,0xd897d));import{AIInteraction as _0x1a870c,AI_MODEL_EVENT_NAMES as _0x495988}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x35cd84}from'../../aicore/model/aicontext.js';function _0x52b4(_0x4b43ff,_0x1163bb){const _0x435aa6=_0x435a();return _0x52b4=function(_0x52b42b,_0x147ff6){_0x52b42b=_0x52b42b-0x127;let _0x3f902b=_0x435aa6[_0x52b42b];return _0x3f902b;},_0x52b4(_0x4b43ff,_0x1163bb);}import{AIActionsReply as _0xa60ecb}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x1a870c{[_0x4c9761(0x127)];[_0x4c9761(0x12b)];[_0x4c9761(0x142)];[_0x4c9761(0x144)];[_0x4c9761(0x13c)];[_0x4c9761(0x130)];[_0x4c9761(0x139)]=!0x1;constructor(_0x1f14e3){const _0x182760=_0x4c9761;super(_0x1f14e3),this[_0x182760(0x127)]=_0x1f14e3[_0x182760(0x127)],this[_0x182760(0x12b)]=_0x1f14e3[_0x182760(0x12b)],this[_0x182760(0x142)]=_0x1f14e3[_0x182760(0x142)],this[_0x182760(0x144)]=_0x1f14e3[_0x182760(0x144)],this[_0x182760(0x13c)]=_0x1f14e3[_0x182760(0x13c)],this[_0x182760(0x130)]=_0x1f14e3[_0x182760(0x130)];}async[_0x4c9761(0x12f)](){const _0x188ddf=_0x4c9761;return this[_0x188ddf(0x142)]?this[_0x188ddf(0x141)][_0x188ddf(0x145)]({'content':this[_0x188ddf(0x127)],'actionName':this[_0x188ddf(0x142)],'args':this[_0x188ddf(0x144)]}):this[_0x188ddf(0x141)][_0x188ddf(0x143)]({'content':this[_0x188ddf(0x127)],'message':this[_0x188ddf(0x13c)],'model':this[_0x188ddf(0x130)],'outputFormat':_0x188ddf(0x133)});}[_0x4c9761(0x13d)](){const _0x553356=_0x4c9761;return{'type':_0x35cd84[_0x553356(0x13e)],'content':this[_0x553356(0x127)],'version':this[_0x553356(0x12b)],'label':_0x553356(0x12e),'uiId':_0x553356(0x134)};}[_0x4c9761(0x137)](_0x229c16){const _0x3535cc=_0x4c9761,_0x4cac60=new _0xa60ecb({'editor':this[_0x3535cc(0x12d)],'documentContextContent':this[_0x3535cc(0x127)],..._0x229c16});return this[_0x3535cc(0x12a)][_0x3535cc(0x12c)](_0x4cac60),_0x4cac60[_0x3535cc(0x13b)](..._0x495988)['to'](this),this[_0x3535cc(0x136)](_0x3535cc(0x129),_0x4cac60),_0x4cac60;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f0389=_0xc2c2;(function(_0x113c52,_0x1958e6){const _0x595d80=_0xc2c2,_0x817fa0=_0x113c52();while(!![]){try{const _0x13b9ac=-parseInt(_0x595d80(0x12b))/0x1+parseInt(_0x595d80(0x121))/0x2+parseInt(_0x595d80(0x115))/0x3*(-parseInt(_0x595d80(0x11d))/0x4)+parseInt(_0x595d80(0x112))/0x5*(-parseInt(_0x595d80(0x12e))/0x6)+parseInt(_0x595d80(0x119))/0x7*(-parseInt(_0x595d80(0x128))/0x8)+parseInt(_0x595d80(0x113))/0x9+-parseInt(_0x595d80(0x130))/0xa*(-parseInt(_0x595d80(0x117))/0xb);if(_0x13b9ac===_0x1958e6)break;else _0x817fa0['push'](_0x817fa0['shift']());}catch(_0x9609){_0x817fa0['push'](_0x817fa0['shift']());}}}(_0x2854,0x52b53));function _0x2854(){const _0x38191a=['_getDifferentChangeGroups','140qrwQGy','children','documentContextContent','parsedContent','698804strnJB','map','new','value','removed','isDone','parsedMergedContent','4683272srQehA','childNodes','pending','615435ixguYD','updateChangeGroups','modified','64302ZGgGEJ','node','627540YvbmCo','data-id','130CyKhNs','3841749aUuNxR','changeGroups','50538suVvry','added','286KTSsPg','cloneNode','7YcDAnd','length','pop'];_0x2854=function(){return _0x38191a;};return _0x2854();}import{AIReply as _0x3a3cda}from'../../aicore/model/aireply.js';import{getAttribute as _0x5d2005}from'../../aicore/utils/htmlparser.js';import{uid as _0x1add32}from'ckeditor5/src/utils.js';function _0xc2c2(_0x165da5,_0x1b2ed8){const _0x2854e6=_0x2854();return _0xc2c2=function(_0xc2c282,_0x241447){_0xc2c282=_0xc2c282-0x112;let _0x363714=_0x2854e6[_0xc2c282];return _0x363714;},_0xc2c2(_0x165da5,_0x1b2ed8);}import{diffArrays as _0x31e26f}from'diff';export class AIActionsReply extends _0x3a3cda{[_0x1f0389(0x12c)](){const _0x20b618=_0x1f0389;if(this[_0x20b618(0x127)]=this[_0x20b618(0x120)][_0x20b618(0x118)](!0x0),0x0==this[_0x20b618(0x127)][_0x20b618(0x129)][_0x20b618(0x11a)])return void(this[_0x20b618(0x114)]=[]);const _0x41558d=this[_0x20b618(0x11f)][_0x20b618(0x11e)][_0x20b618(0x122)](_0xda951c=>({'node':_0xda951c,'id':_0x5d2005(_0xda951c,_0x20b618(0x131))})),_0x48d711=this[_0x20b618(0x127)][_0x20b618(0x11e)][_0x20b618(0x122)](_0x2cccec=>({'node':_0x2cccec,'id':_0x5d2005(_0x2cccec,_0x20b618(0x131))||_0x1add32()})),_0x883529=_0x31e26f(_0x41558d,_0x48d711,{'comparator':(_0x3bd8f2,_0x19b921)=>_0x3bd8f2['id']==_0x19b921['id'],'oneChangePerToken':!0x0});if(!this[_0x20b618(0x126)]){for(;_0x883529[_0x20b618(0x11a)]&&_0x883529[_0x883529[_0x20b618(0x11a)]-0x1][_0x20b618(0x125)];)_0x883529[_0x20b618(0x11b)]();}const _0x56ec6c=_0x883529[_0x20b618(0x122)](_0x358cb8=>{const _0x5cfcb7=_0x20b618,_0x43575f=_0x358cb8[_0x5cfcb7(0x116)]?_0x5cfcb7(0x123):_0x358cb8[_0x5cfcb7(0x125)]?_0x5cfcb7(0x125):_0x5cfcb7(0x12d);return{'node':_0x358cb8[_0x5cfcb7(0x124)][0x0][_0x5cfcb7(0x12f)],'type':_0x43575f,'id':_0x358cb8[_0x5cfcb7(0x124)][0x0]['id']};});this[_0x20b618(0x114)]=[{'changes':_0x56ec6c,'state':_0x20b618(0x12a),'index':0x0}];}[_0x1f0389(0x11c)](_0xed82c0,_0xee7885){return _0xee7885;}}
23
+ const _0x18cb44=_0x26b2;(function(_0x202547,_0x681c6e){const _0x186d44=_0x26b2,_0x4256aa=_0x202547();while(!![]){try{const _0x5f6349=parseInt(_0x186d44(0x117))/0x1*(parseInt(_0x186d44(0x112))/0x2)+-parseInt(_0x186d44(0x11b))/0x3+-parseInt(_0x186d44(0x116))/0x4*(-parseInt(_0x186d44(0x126))/0x5)+-parseInt(_0x186d44(0x10a))/0x6*(-parseInt(_0x186d44(0x122))/0x7)+parseInt(_0x186d44(0x113))/0x8+parseInt(_0x186d44(0x120))/0x9*(-parseInt(_0x186d44(0x11a))/0xa)+-parseInt(_0x186d44(0x114))/0xb*(parseInt(_0x186d44(0x10d))/0xc);if(_0x5f6349===_0x681c6e)break;else _0x4256aa['push'](_0x4256aa['shift']());}catch(_0xb806d8){_0x4256aa['push'](_0x4256aa['shift']());}}}(_0x2142,0xe0e86));import{AIReply as _0x4809fa}from'../../aicore/model/aireply.js';function _0x2142(){const _0x359e9c=['1247080LciFTy','1463aaIQIh','removed','5161028amhIDD','484QbDgni','length','new','2595040SIXtNE','2252502GouTED','children','updateChangeGroups','added','pop','36vuJlCI','value','56dAbCfj','cloneNode','node','_getDifferentChangeGroups','5oWIhES','pending','documentContextContent','childNodes','map','892176AuEhAH','modified','parsedMergedContent','57528QQzjit','isDone','data-id','parsedContent','changeGroups','2942EeWZRH'];_0x2142=function(){return _0x359e9c;};return _0x2142();}function _0x26b2(_0x5301f2,_0x35f0d3){const _0x2142ed=_0x2142();return _0x26b2=function(_0x26b21d,_0x187d96){_0x26b21d=_0x26b21d-0x10a;let _0x227161=_0x2142ed[_0x26b21d];return _0x227161;},_0x26b2(_0x5301f2,_0x35f0d3);}import{getAttribute as _0x392de2}from'../../aicore/utils/htmlparser.js';import{uid as _0xf2b186}from'ckeditor5/src/utils.js';import{diffArrays as _0x2468ad}from'diff';export class AIActionsReply extends _0x4809fa{[_0x18cb44(0x11d)](){const _0x2f0756=_0x18cb44;if(this[_0x2f0756(0x10c)]=this[_0x2f0756(0x110)][_0x2f0756(0x123)](!0x0),0x0==this[_0x2f0756(0x10c)][_0x2f0756(0x129)][_0x2f0756(0x118)])return void(this[_0x2f0756(0x111)]=[]);const _0x495e54=this[_0x2f0756(0x128)][_0x2f0756(0x11c)][_0x2f0756(0x12a)](_0x3513a5=>({'node':_0x3513a5,'id':_0x392de2(_0x3513a5,_0x2f0756(0x10f))})),_0x6d1ed5=this[_0x2f0756(0x10c)][_0x2f0756(0x11c)][_0x2f0756(0x12a)](_0xe116fe=>({'node':_0xe116fe,'id':_0x392de2(_0xe116fe,_0x2f0756(0x10f))||_0xf2b186()})),_0x4cf417=_0x2468ad(_0x495e54,_0x6d1ed5,{'comparator':(_0x1edd84,_0x23d0dd)=>_0x1edd84['id']==_0x23d0dd['id'],'oneChangePerToken':!0x0});if(!this[_0x2f0756(0x10e)]){for(;_0x4cf417[_0x2f0756(0x118)]&&_0x4cf417[_0x4cf417[_0x2f0756(0x118)]-0x1][_0x2f0756(0x115)];)_0x4cf417[_0x2f0756(0x11f)]();}const _0x5eaf65=_0x4cf417[_0x2f0756(0x12a)](_0x4b62d1=>{const _0x4a5887=_0x2f0756,_0x15d543=_0x4b62d1[_0x4a5887(0x11e)]?_0x4a5887(0x119):_0x4b62d1[_0x4a5887(0x115)]?_0x4a5887(0x115):_0x4a5887(0x10b);return{'node':_0x4b62d1[_0x4a5887(0x121)][0x0][_0x4a5887(0x124)],'type':_0x15d543,'id':_0x4b62d1[_0x4a5887(0x121)][0x0]['id']};});this[_0x2f0756(0x111)]=[{'changes':_0x5eaf65,'state':_0x2f0756(0x127),'index':0x0}];}[_0x18cb44(0x125)](_0x47c016,_0x3cbcc1){return _0x3cbcc1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x343c(){var _0x5d1191=['7oFpcqB','AIRequestError','20285HRiJZb','388nRvzHO','AIAdapter','134UpPVni','14086765zHKwiC','aiadapter-text-adapter-not-set','483719vBStbA','afterInit','pluginName','name','1278996LJaXqD','textAdapter','isOfficialPlugin','3452960ifdvJd','isPremiumPlugin','7840ZQYkjO','9243McEhBH','29721BRhoWk'];_0x343c=function(){return _0x5d1191;};return _0x343c();}var _0x497e1a=_0x38cd;(function(_0x57f135,_0x163376){var _0xb53f16=_0x38cd,_0x20e198=_0x57f135();while(!![]){try{var _0x5851a9=parseInt(_0xb53f16(0x1ff))/0x1+parseInt(_0xb53f16(0x1fc))/0x2*(-parseInt(_0xb53f16(0x1f6))/0x3)+parseInt(_0xb53f16(0x1fa))/0x4*(parseInt(_0xb53f16(0x1f9))/0x5)+-parseInt(_0xb53f16(0x203))/0x6*(-parseInt(_0xb53f16(0x1f7))/0x7)+-parseInt(_0xb53f16(0x206))/0x8+-parseInt(_0xb53f16(0x1f5))/0x9*(parseInt(_0xb53f16(0x1f4))/0xa)+parseInt(_0xb53f16(0x1fd))/0xb;if(_0x5851a9===_0x163376)break;else _0x20e198['push'](_0x20e198['shift']());}catch(_0x3ca567){_0x20e198['push'](_0x20e198['shift']());}}}(_0x343c,0x72dc8));function _0x38cd(_0x3cb328,_0x2583f8){var _0x343cad=_0x343c();return _0x38cd=function(_0x38cd15,_0x2efc68){_0x38cd15=_0x38cd15-0x1f4;var _0x8fd1e2=_0x343cad[_0x38cd15];return _0x8fd1e2;},_0x38cd(_0x3cb328,_0x2583f8);}import{Plugin as _0x42f27f}from'ckeditor5/src/core.js';import{CKEditorError as _0x2d5e97}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x42f27f{static get[_0x497e1a(0x201)](){var _0x2798e6=_0x497e1a;return _0x2798e6(0x1fb);}static get[_0x497e1a(0x205)](){return!0x0;}static get[_0x497e1a(0x207)](){return!0x0;}[_0x497e1a(0x200)](){var _0x16b726=_0x497e1a;if(!this[_0x16b726(0x204)])throw new _0x2d5e97(_0x16b726(0x1fe),null);}}export class AIRequestError extends Error{constructor(_0x383433){var _0x6b5d6a=_0x497e1a;super(_0x383433),this[_0x6b5d6a(0x202)]=_0x6b5d6a(0x1f8);}}
23
+ var _0x4bf8fc=_0x5d2a;function _0x3d1d(){var _0x26aa80=['afterInit','textAdapter','1yhUqmP','1269596hplgJi','2636282YvqEBW','pluginName','aiadapter-text-adapter-not-set','2824458kEzQLN','567020vUWIzh','17287362BIydNh','isPremiumPlugin','46271460oczYNh','isOfficialPlugin','6IAUJqr','name','AIAdapter','21pNqKru','AIRequestError','4304816nrIzqB'];_0x3d1d=function(){return _0x26aa80;};return _0x3d1d();}function _0x5d2a(_0x4a775a,_0x45ca2c){var _0x3d1d6d=_0x3d1d();return _0x5d2a=function(_0x5d2aaf,_0x4cebcf){_0x5d2aaf=_0x5d2aaf-0x1d7;var _0x7a8a84=_0x3d1d6d[_0x5d2aaf];return _0x7a8a84;},_0x5d2a(_0x4a775a,_0x45ca2c);}(function(_0x23a0b6,_0x37391b){var _0x454955=_0x5d2a,_0x40b785=_0x23a0b6();while(!![]){try{var _0x5c765e=-parseInt(_0x454955(0x1d8))/0x1*(-parseInt(_0x454955(0x1da))/0x2)+parseInt(_0x454955(0x1dd))/0x3+-parseInt(_0x454955(0x1d9))/0x4+-parseInt(_0x454955(0x1de))/0x5*(-parseInt(_0x454955(0x1e3))/0x6)+parseInt(_0x454955(0x1e6))/0x7*(parseInt(_0x454955(0x1e8))/0x8)+parseInt(_0x454955(0x1df))/0x9+-parseInt(_0x454955(0x1e1))/0xa;if(_0x5c765e===_0x37391b)break;else _0x40b785['push'](_0x40b785['shift']());}catch(_0x4b3e5c){_0x40b785['push'](_0x40b785['shift']());}}}(_0x3d1d,0xeb41a));import{Plugin as _0x49c821}from'ckeditor5/src/core.js';import{CKEditorError as _0x272b30}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x49c821{static get[_0x4bf8fc(0x1db)](){var _0x14ba0=_0x4bf8fc;return _0x14ba0(0x1e5);}static get[_0x4bf8fc(0x1e2)](){return!0x0;}static get[_0x4bf8fc(0x1e0)](){return!0x0;}[_0x4bf8fc(0x1e9)](){var _0x411bb8=_0x4bf8fc;if(!this[_0x411bb8(0x1d7)])throw new _0x272b30(_0x411bb8(0x1dc),null);}}export class AIRequestError extends Error{constructor(_0x53af82){var _0x24ca0b=_0x4bf8fc;super(_0x53af82),this[_0x24ca0b(0x1e4)]=_0x24ca0b(0x1e7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a1aae=_0xbdff;function _0xbdff(_0x496920,_0x49dddf){const _0x5e92ca=_0x5e92();return _0xbdff=function(_0xbdff77,_0x575bf9){_0xbdff77=_0xbdff77-0x128;let _0x76aeca=_0x5e92ca[_0xbdff77];return _0x76aeca;},_0xbdff(_0x496920,_0x49dddf);}(function(_0x28378b,_0x3fb775){const _0x3793ac=_0xbdff,_0x1a0519=_0x28378b();while(!![]){try{const _0x4d70d0=-parseInt(_0x3793ac(0x12f))/0x1*(-parseInt(_0x3793ac(0x12a))/0x2)+-parseInt(_0x3793ac(0x141))/0x3+-parseInt(_0x3793ac(0x129))/0x4+-parseInt(_0x3793ac(0x130))/0x5*(parseInt(_0x3793ac(0x13d))/0x6)+parseInt(_0x3793ac(0x133))/0x7+parseInt(_0x3793ac(0x137))/0x8+parseInt(_0x3793ac(0x149))/0x9;if(_0x4d70d0===_0x3fb775)break;else _0x1a0519['push'](_0x1a0519['shift']());}catch(_0xff1ec1){_0x1a0519['push'](_0x1a0519['shift']());}}}(_0x5e92,0x92e98));import{Plugin as _0x585efc}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c9f24}from'ckeditor5/src/utils.js';import{AIAdapter as _0x49d498,AIRequestError as _0x224476}from'./aiadapter.js';import{getTranslation as _0x27fb51}from'../utils/common-translations.js';function _0x5e92(){const _0x4bb78f=['5hDWcXE','aborted','makeRequest','6795327yrxsRx','object','reject','AI_ERROR_GET_PARAMETERS','1562144HkfLza','_prepareRequestParameters','plugins','name','abort','signal','1254630IgxTPq','resolve','locale','AbortError','2773677MEOZSe','catch','application/json','get','assign','editor','sendRequest','aitextadapter-send-request-failed','2314971iGaiEP','AI_ERROR_GET_HEADERS','error','_prepareRequestHeaders','2333108LSZefN','358178xkuGjJ','abortController','init','requires','textAdapter','5Bskswy'];_0x5e92=function(){return _0x4bb78f;};return _0x5e92();}export class AITextAdapter extends _0x585efc{[_0x1a1aae(0x12b)];static get[_0x1a1aae(0x12d)](){return[_0x49d498];}constructor(_0x18b3dd){const _0x505388=_0x1a1aae;super(_0x18b3dd),this[_0x505388(0x12b)]=new AbortController();}[_0x1a1aae(0x12c)](){const _0x1d7f70=_0x1a1aae;this[_0x1d7f70(0x146)][_0x1d7f70(0x139)][_0x1d7f70(0x144)](_0x49d498)[_0x1d7f70(0x12e)]=this;}[_0x1a1aae(0x13b)](){const _0x308b39=_0x1a1aae;this[_0x308b39(0x12b)][_0x308b39(0x13c)][_0x308b39(0x131)]||(this[_0x308b39(0x12b)][_0x308b39(0x13b)](),this[_0x308b39(0x12b)]=new AbortController());}async[_0x1a1aae(0x132)](_0x378502){const _0x554ec0=_0x1a1aae;return this[_0x554ec0(0x147)](_0x378502)[_0x554ec0(0x142)](_0x3b00c8=>{const _0x17b016=_0x554ec0;if(_0x3b00c8 instanceof _0x224476)return Promise[_0x17b016(0x135)](_0x3b00c8);if(_0x17b016(0x140)==_0x3b00c8[_0x17b016(0x13a)])return Promise[_0x17b016(0x13e)]();throw console[_0x17b016(0x14b)](_0x3b00c8),new _0x5c9f24(_0x17b016(0x148),null);});}async[_0x1a1aae(0x128)](_0x9ec12,_0x125d1a){const _0x24b152=_0x1a1aae,_0x2565d7=this[_0x24b152(0x146)][_0x24b152(0x13f)],_0x72433c={'Content-Type':_0x24b152(0x143)};if(_0x24b152(0x134)==typeof _0x9ec12)Object[_0x24b152(0x145)](_0x72433c,_0x9ec12);else{if(_0x9ec12)try{const _0x8b2bb6=await _0x9ec12(_0x125d1a);Object[_0x24b152(0x145)](_0x72433c,_0x8b2bb6);}catch{return Promise[_0x24b152(0x135)](new _0x224476(_0x27fb51(_0x2565d7,_0x24b152(0x14a))));}}return _0x72433c;}async[_0x1a1aae(0x138)](_0x16ca07,_0x458582){const _0x488025=_0x1a1aae,_0x300323=this[_0x488025(0x146)][_0x488025(0x13f)];if(_0x488025(0x134)==typeof _0x16ca07)return _0x16ca07;try{return await _0x16ca07(_0x458582);}catch{return Promise[_0x488025(0x135)](new _0x224476(_0x27fb51(_0x300323,_0x488025(0x136))));}}}
23
+ const _0x51d8de=_0x367e;function _0x315b(){const _0x9b4ffa=['aitextadapter-send-request-failed','requires','2169044wpUzrq','textAdapter','AI_ERROR_GET_PARAMETERS','AI_ERROR_GET_HEADERS','51364LzXKTn','4897256tvErgd','catch','reject','signal','344382gMgwXo','1616580lZYQbJ','_prepareRequestHeaders','application/json','error','init','abort','assign','16722567xuynGV','aborted','3qrOovt','10rtrRQQ','abortController','name','object','makeRequest','editor','AbortError','locale','5fyRJAA','plugins','get','sendRequest','resolve','1553595rkmCko','_prepareRequestParameters'];_0x315b=function(){return _0x9b4ffa;};return _0x315b();}(function(_0x374dbd,_0x19f902){const _0xa1b606=_0x367e,_0x14f400=_0x374dbd();while(!![]){try{const _0x2cb924=parseInt(_0xa1b606(0x1fb))/0x1*(parseInt(_0xa1b606(0x1e3))/0x2)+parseInt(_0xa1b606(0x1f2))/0x3*(-parseInt(_0xa1b606(0x1df))/0x4)+-parseInt(_0xa1b606(0x1db))/0x5+parseInt(_0xa1b606(0x1e8))/0x6+-parseInt(_0xa1b606(0x1e9))/0x7+-parseInt(_0xa1b606(0x1e4))/0x8+-parseInt(_0xa1b606(0x1f0))/0x9*(-parseInt(_0xa1b606(0x1f3))/0xa);if(_0x2cb924===_0x19f902)break;else _0x14f400['push'](_0x14f400['shift']());}catch(_0x449b42){_0x14f400['push'](_0x14f400['shift']());}}}(_0x315b,0x54e91));function _0x367e(_0x1c1703,_0x2a944e){const _0x315b57=_0x315b();return _0x367e=function(_0x367ed5,_0x48b121){_0x367ed5=_0x367ed5-0x1d7;let _0x3bf5ce=_0x315b57[_0x367ed5];return _0x3bf5ce;},_0x367e(_0x1c1703,_0x2a944e);}import{Plugin as _0x4947f6}from'ckeditor5/src/core.js';import{CKEditorError as _0x545c19}from'ckeditor5/src/utils.js';import{AIAdapter as _0x7cda00,AIRequestError as _0x174462}from'./aiadapter.js';import{getTranslation as _0x2b4097}from'../utils/common-translations.js';export class AITextAdapter extends _0x4947f6{[_0x51d8de(0x1f4)];static get[_0x51d8de(0x1de)](){return[_0x7cda00];}constructor(_0x20630d){const _0x597788=_0x51d8de;super(_0x20630d),this[_0x597788(0x1f4)]=new AbortController();}[_0x51d8de(0x1ed)](){const _0x34dcee=_0x51d8de;this[_0x34dcee(0x1f8)][_0x34dcee(0x1d7)][_0x34dcee(0x1d8)](_0x7cda00)[_0x34dcee(0x1e0)]=this;}[_0x51d8de(0x1ee)](){const _0x394eda=_0x51d8de;this[_0x394eda(0x1f4)][_0x394eda(0x1e7)][_0x394eda(0x1f1)]||(this[_0x394eda(0x1f4)][_0x394eda(0x1ee)](),this[_0x394eda(0x1f4)]=new AbortController());}async[_0x51d8de(0x1f7)](_0x304142){const _0x1f08fa=_0x51d8de;return this[_0x1f08fa(0x1d9)](_0x304142)[_0x1f08fa(0x1e5)](_0x4b3d3d=>{const _0x11c767=_0x1f08fa;if(_0x4b3d3d instanceof _0x174462)return Promise[_0x11c767(0x1e6)](_0x4b3d3d);if(_0x11c767(0x1f9)==_0x4b3d3d[_0x11c767(0x1f5)])return Promise[_0x11c767(0x1da)]();throw console[_0x11c767(0x1ec)](_0x4b3d3d),new _0x545c19(_0x11c767(0x1dd),null);});}async[_0x51d8de(0x1ea)](_0x42755f,_0xdac252){const _0x1babd3=_0x51d8de,_0x38b1f6=this[_0x1babd3(0x1f8)][_0x1babd3(0x1fa)],_0x56c27d={'Content-Type':_0x1babd3(0x1eb)};if(_0x1babd3(0x1f6)==typeof _0x42755f)Object[_0x1babd3(0x1ef)](_0x56c27d,_0x42755f);else{if(_0x42755f)try{const _0x4d14b8=await _0x42755f(_0xdac252);Object[_0x1babd3(0x1ef)](_0x56c27d,_0x4d14b8);}catch{return Promise[_0x1babd3(0x1e6)](new _0x174462(_0x2b4097(_0x38b1f6,_0x1babd3(0x1e2))));}}return _0x56c27d;}async[_0x51d8de(0x1dc)](_0x234e0e,_0x4a777d){const _0x7bc8c9=_0x51d8de,_0x1787de=this[_0x7bc8c9(0x1f8)][_0x7bc8c9(0x1fa)];if(_0x7bc8c9(0x1f6)==typeof _0x234e0e)return _0x234e0e;try{return await _0x234e0e(_0x4a777d);}catch{return Promise[_0x7bc8c9(0x1e6)](new _0x174462(_0x2b4097(_0x1787de,_0x7bc8c9(0x1e1))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c461e=_0x56d3;function _0x56d3(_0x30ad95,_0x1f0ad5){const _0x2dc57d=_0x2dc5();return _0x56d3=function(_0x56d3bc,_0x3bd573){_0x56d3bc=_0x56d3bc-0xd0;let _0x566562=_0x2dc57d[_0x56d3bc];return _0x566562;},_0x56d3(_0x30ad95,_0x1f0ad5);}function _0x2dc5(){const _0x3fcbda=['3491514MaqPJj','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.','AI_ERROR_UNSUPPORTED_MODEL','getReader','editor','2513792OLwzOQ','body','split','5tymrmT','_readAsyncIterableResponse','\x0a<</SYS>>\x0a[INST]\x0a','cohere.command','send','_bedrockClientConfig','<<SYS>>\x0a','_readStreamableResponse','112fmwbnD','application/json','json','ai.assistant.adapter.aws.requestHeaders','abortController','define','_readStaticResponse','ai.assistant.adapter.aws.apiUrl','meta.llama','config','_prepareRequestParameters','7260oUBcJr','_apiUrl','Instruction:\x0a','sendRequest','\x0a\x0aAssistant:','1396092paiRlH','_prepareRequestHeaders','utf-8','chunk','parse','_getGeneratedText','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','data','locale','test','_processAWSRequest','\x0a[/INST]','getModelFamily','ai21.j2','226237awFYaN','signal','_requestHeaders','Human:\x0a','resolve','filter','AWSTextAdapter','map','_processProxyRequest','preparePrompt','anthropic.claude','6290016zuzjIt','bedrock-2023-05-31','generations','stringify','generation','read','pluginName','POST','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.','length','378602ddIKWH','get','bytes','anthropic.claude-v2','decode','18801PiXzZe','_requestParameters','completions','completion','ai.assistant.adapter.aws.bedrockClientConfig','join','text','ai.assistant.adapter.aws.requestParameters'];_0x2dc5=function(){return _0x3fcbda;};return _0x2dc5();}(function(_0x59d784,_0x41f3dc){const _0xef86a1=_0x56d3,_0x3b8c0e=_0x59d784();while(!![]){try{const _0x253450=parseInt(_0xef86a1(0xe8))/0x1+parseInt(_0xef86a1(0x10f))/0x2+-parseInt(_0xef86a1(0x10a))/0x3+parseInt(_0xef86a1(0xda))/0x4+-parseInt(_0xef86a1(0x112))/0x5*(-parseInt(_0xef86a1(0xf3))/0x6)+-parseInt(_0xef86a1(0xfd))/0x7*(-parseInt(_0xef86a1(0x11a))/0x8)+-parseInt(_0xef86a1(0x102))/0x9*(parseInt(_0xef86a1(0xd5))/0xa);if(_0x253450===_0x41f3dc)break;else _0x3b8c0e['push'](_0x3b8c0e['shift']());}catch(_0x37fb3e){_0x3b8c0e['push'](_0x3b8c0e['shift']());}}}(_0x2dc5,0xe9b3c));import{AITextAdapter as _0xe8a7b4}from'./aitextadapter.js';import{AIRequestError as _0x324b45}from'./aiadapter.js';import{BedrockRuntimeClient as _0x54ff25,InvokeModelCommand as _0x56587d,InvokeModelWithResponseStreamCommand as _0x2ce735}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x3387f0}from'../utils/common-translations.js';export class AWSTextAdapter extends _0xe8a7b4{[_0x5c461e(0xd6)];[_0x5c461e(0xea)];[_0x5c461e(0x117)];[_0x5c461e(0x103)];static get[_0x5c461e(0xf9)](){const _0x5f175c=_0x5c461e;return _0x5f175c(0xee);}constructor(_0x3572a9){const _0xb86271=_0x5c461e;super(_0x3572a9),_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x109))||_0x3572a9[_0xb86271(0xd3)][_0xb86271(0x11f)](_0xb86271(0x109),{'model':_0xb86271(0x100),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0xb86271(0xf4),'stream':!0x0}),this[_0xb86271(0xd6)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0xd1)),this[_0xb86271(0x117)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x106)),this[_0xb86271(0xea)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x11d)),this[_0xb86271(0x103)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x109));}async[_0x5c461e(0xd8)]({query:_0x44fd53,context:_0x11a1e0,onData:_0x57c065,actionId:_0x204f1a}){const _0x28dbca=_0x5c461e,{model:_0x45877d,stream:_0x55066a,..._0x1be919}=await this[_0x28dbca(0xd4)](this[_0x28dbca(0x103)],_0x204f1a),_0x589b22={'prompt':await this[_0x28dbca(0xf1)](_0x44fd53,_0x11a1e0,_0x45877d,_0x204f1a),..._0x1be919};this[_0x28dbca(0xd6)]?await this[_0x28dbca(0xf0)](_0x589b22,_0x45877d,_0x55066a,_0x57c065,_0x204f1a):await this[_0x28dbca(0xe4)](_0x589b22,_0x45877d,_0x55066a,_0x57c065);}async[_0x5c461e(0xf1)](_0x306681,_0x111890,_0x34fc11,_0x432081){const _0x33cd43=_0x5c461e;let _0x34b797,_0x985d63;return _0x111890?(_0x34b797=_0x33cd43(0x10b),_0x985d63=_0x33cd43(0xd7)+_0x306681+_0x33cd43(0xe0)+_0x111890):(_0x34b797=_0x33cd43(0xfb),_0x985d63=_0x306681),_0x33cd43(0xd2)==this[_0x33cd43(0xe6)](_0x34fc11)?_0x33cd43(0x118)+_0x34b797+_0x33cd43(0x114)+_0x985d63+_0x33cd43(0xe5):_0x33cd43(0xeb)+_0x34b797+'\x0a'+_0x985d63+_0x33cd43(0xd9);}[_0x5c461e(0xe6)](_0x3b4ec2){const _0x4c8cec=_0x5c461e;if(/^anthropic\.claude/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xf2);if(/^ai21\.j2/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xe7);if(/^cohere\.command/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0x115);if(/^meta\.llama/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xd2);throw new _0x324b45(_0x3387f0(this[_0x4c8cec(0x10e)][_0x4c8cec(0xe2)],_0x4c8cec(0x10c),_0x3b4ec2));}async[_0x5c461e(0xf0)](_0xf133a1,_0x3c469c,_0x1ad5af,_0x2879a5,_0x424819){const _0x26cfc9=_0x5c461e,_0x5ee83f={'method':_0x26cfc9(0xfa),'headers':await this[_0x26cfc9(0xdb)](this[_0x26cfc9(0xea)],_0x424819),'body':JSON[_0x26cfc9(0xf6)]({..._0xf133a1,'model':_0x3c469c,'stream':_0x1ad5af}),'signal':this[_0x26cfc9(0x11e)][_0x26cfc9(0xe9)]},_0x290d88=await fetch(this[_0x26cfc9(0xd6)],_0x5ee83f);_0x1ad5af?await this[_0x26cfc9(0x119)](_0x290d88,_0x3c469c,_0x2879a5):await this[_0x26cfc9(0xd0)](_0x290d88,_0x3c469c,_0x2879a5);}async[_0x5c461e(0xe4)](_0x1f9d02,_0x449050,_0x45e663,_0x558719){const _0x45c820=_0x5c461e,_0x35493f=new _0x54ff25(this[_0x45c820(0x117)]),_0x403208={'body':JSON[_0x45c820(0xf6)](_0x1f9d02),'contentType':_0x45c820(0x11b),'accept':_0x45c820(0x11b),'modelId':_0x449050};let _0x4a627c;if(_0x45e663){const _0x2346bb=new _0x2ce735(_0x403208);_0x4a627c=await _0x35493f[_0x45c820(0x116)](_0x2346bb,{'abortSignal':this[_0x45c820(0x11e)][_0x45c820(0xe9)]}),await this[_0x45c820(0x113)](_0x4a627c,_0x449050,_0x558719);}else{const _0x401d0a=new _0x56587d(_0x403208);_0x4a627c=await _0x35493f[_0x45c820(0x116)](_0x401d0a,{'abortSignal':this[_0x45c820(0x11e)][_0x45c820(0xe9)]}),await this[_0x45c820(0xd0)](_0x4a627c,_0x449050,_0x558719);}}async[_0x5c461e(0x113)](_0x58f6a8,_0x2d24fe,_0x41a09e){const _0x3dc0eb=_0x5c461e,_0xdd2cc9=_0x58f6a8[_0x3dc0eb(0x110)],_0x245e60=new TextDecoder(_0x3dc0eb(0xdc));let _0x2c7b1a='';for await(const _0x263b35 of _0xdd2cc9)if(_0x263b35[_0x3dc0eb(0xdd)]){const _0x16ff27=_0x245e60[_0x3dc0eb(0x101)](_0x263b35[_0x3dc0eb(0xdd)][_0x3dc0eb(0xff)]),_0x3f7028=JSON[_0x3dc0eb(0xde)](_0x16ff27);_0x2c7b1a+=this[_0x3dc0eb(0xdf)](_0x3f7028,_0x2d24fe),_0x41a09e(_0x2c7b1a);}return Promise[_0x3dc0eb(0xec)]();}async[_0x5c461e(0x119)](_0x463f2b,_0x1e7754,_0x1abb2a){const _0x1e3c1b=_0x5c461e,_0x7251d7=_0x463f2b[_0x1e3c1b(0x110)],_0x8c7d48=new TextDecoder(_0x1e3c1b(0xdc)),_0x18cae1=_0x7251d7[_0x1e3c1b(0x10d)]();let _0x236d5b='',_0x35857b='',_0x5ed86d=!0x1;for(;!_0x5ed86d;){const {done:_0x3b0449,value:_0x253798}=await _0x18cae1[_0x1e3c1b(0xf8)]();if(_0x5ed86d=_0x3b0449,_0x5ed86d)break;const _0x266696=(_0x236d5b+_0x8c7d48[_0x1e3c1b(0x101)](_0x253798))[_0x1e3c1b(0x111)]('\x0a')[_0x1e3c1b(0xef)](_0x5ce276=>{const _0x427f88=_0x1e3c1b;try{return _0x236d5b='',JSON[_0x427f88(0xde)](_0x5ce276);}catch{return _0x236d5b=_0x5ce276,null;}})[_0x1e3c1b(0xed)](_0x24aab4=>null!==_0x24aab4);_0x266696[_0x1e3c1b(0xfc)]&&(_0x35857b+=_0x266696[_0x1e3c1b(0xef)](_0x2dca9d=>this[_0x1e3c1b(0xdf)](_0x2dca9d,_0x1e7754))[_0x1e3c1b(0x107)](''),_0x1abb2a(_0x35857b));}return Promise[_0x1e3c1b(0xec)]();}async[_0x5c461e(0xd0)](_0x1f47ab,_0x4c271d,_0x3e7c2b){const _0x43c33a=_0x5c461e;let _0x1062bd;return _0x1062bd=_0x1f47ab instanceof Response?await _0x1f47ab[_0x43c33a(0x11c)]():JSON[_0x43c33a(0xde)](new TextDecoder(_0x43c33a(0xdc))[_0x43c33a(0x101)](_0x1f47ab[_0x43c33a(0x110)])),(_0x3e7c2b(this[_0x43c33a(0xdf)](_0x1062bd,_0x4c271d)),Promise[_0x43c33a(0xec)]());}[_0x5c461e(0xdf)](_0x574fc9,_0x21840e){const _0x4627ef=_0x5c461e;switch(this[_0x4627ef(0xe6)](_0x21840e)){case _0x4627ef(0xf2):return _0x574fc9[_0x4627ef(0x105)];case _0x4627ef(0xe7):return _0x574fc9[_0x4627ef(0x104)][0x0][_0x4627ef(0xe1)][_0x4627ef(0x108)];case _0x4627ef(0x115):return _0x574fc9[_0x4627ef(0xf5)][0x0][_0x4627ef(0x108)];case _0x4627ef(0xd2):return _0x574fc9[_0x4627ef(0xf7)];}}}
23
+ const _0x456733=_0x259d;(function(_0x325a41,_0x12946a){const _0x1143f2=_0x259d,_0x4b2c25=_0x325a41();while(!![]){try{const _0x12ba5d=-parseInt(_0x1143f2(0xaf))/0x1*(parseInt(_0x1143f2(0xbe))/0x2)+parseInt(_0x1143f2(0xaa))/0x3+parseInt(_0x1143f2(0xa1))/0x4*(parseInt(_0x1143f2(0x90))/0x5)+-parseInt(_0x1143f2(0x9f))/0x6+parseInt(_0x1143f2(0xd8))/0x7+-parseInt(_0x1143f2(0xa2))/0x8*(parseInt(_0x1143f2(0xcd))/0x9)+parseInt(_0x1143f2(0xb2))/0xa*(-parseInt(_0x1143f2(0x8e))/0xb);if(_0x12ba5d===_0x12946a)break;else _0x4b2c25['push'](_0x4b2c25['shift']());}catch(_0x29bdc3){_0x4b2c25['push'](_0x4b2c25['shift']());}}}(_0x3de5,0x80f93));import{AITextAdapter as _0x31e91e}from'./aitextadapter.js';import{AIRequestError as _0x16bd1b}from'./aiadapter.js';import{BedrockRuntimeClient as _0x36b50b,InvokeModelCommand as _0x1cb2c7,InvokeModelWithResponseStreamCommand as _0x2d7e9c}from'@aws-sdk/client-bedrock-runtime';function _0x259d(_0x284815,_0x22eb92){const _0x3de592=_0x3de5();return _0x259d=function(_0x259dc5,_0x4ae07f){_0x259dc5=_0x259dc5-0x8b;let _0x22abcd=_0x3de592[_0x259dc5];return _0x22abcd;},_0x259d(_0x284815,_0x22eb92);}import{getTranslation as _0x23067b}from'../utils/common-translations.js';function _0x3de5(){const _0x523fdd=['config','test','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','_apiUrl','define','5730363PRogEr','editor','getModelFamily','AI_ERROR_UNSUPPORTED_MODEL','_processAWSRequest','ai.assistant.adapter.aws.bedrockClientConfig','utf-8','filter','preparePrompt','\x0a[/INST]','bedrock-2023-05-31','5865776WdSGiH','meta.llama','pluginName','chunk','application/json','read','bytes','4285699xdcchd','_processProxyRequest','1253095YSDGsu','get','_requestHeaders','cohere.command','decode','_readStreamableResponse','join','_readStaticResponse','signal','ai.assistant.adapter.aws.requestParameters','locale','sendRequest','AWSTextAdapter','generations','ai.assistant.adapter.aws.apiUrl','973806iQEXlq','Instruction:\x0a','12zTPLBi','8KHToMZ','anthropic.claude-v2','completions','_readAsyncIterableResponse','length','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','map','_prepareRequestParameters','2999400uXEYkg','send','completion','generation','anthropic.claude','295DxgInZ','\x0a\x0aAssistant:','json','30zKYdlb','\x0a<</SYS>>\x0a[INST]\x0a','<<SYS>>\x0a','ai21.j2','text','abortController','_getGeneratedText','parse','ai.assistant.adapter.aws.requestHeaders','stringify','_prepareRequestHeaders','resolve','634qjfKZS','split','_requestParameters','POST','getReader','data','body','_bedrockClientConfig','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'];_0x3de5=function(){return _0x523fdd;};return _0x3de5();}export class AWSTextAdapter extends _0x31e91e{[_0x456733(0xcb)];[_0x456733(0x92)];[_0x456733(0xc5)];[_0x456733(0xc0)];static get[_0x456733(0xda)](){const _0x504c63=_0x456733;return _0x504c63(0x9c);}constructor(_0x522d95){const _0x5a4c18=_0x456733;super(_0x522d95),_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0x99))||_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0xcc)](_0x5a4c18(0x99),{'model':_0x5a4c18(0xa3),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5a4c18(0xd7),'stream':!0x0}),this[_0x5a4c18(0xcb)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0x9e)),this[_0x5a4c18(0xc5)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0xd2)),this[_0x5a4c18(0x92)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0xba)),this[_0x5a4c18(0xc0)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0x99));}async[_0x456733(0x9b)]({query:_0x3cd440,context:_0x3bd202,onData:_0x28a9a5,actionId:_0x75f431}){const _0x49e688=_0x456733,{model:_0x58af07,stream:_0x6bf84c,..._0x3cdfb1}=await this[_0x49e688(0xa9)](this[_0x49e688(0xc0)],_0x75f431),_0x39dcca={'prompt':await this[_0x49e688(0xd5)](_0x3cd440,_0x3bd202,_0x58af07,_0x75f431),..._0x3cdfb1};this[_0x49e688(0xcb)]?await this[_0x49e688(0x8f)](_0x39dcca,_0x58af07,_0x6bf84c,_0x28a9a5,_0x75f431):await this[_0x49e688(0xd1)](_0x39dcca,_0x58af07,_0x6bf84c,_0x28a9a5);}async[_0x456733(0xd5)](_0x35850c,_0x31ac91,_0x5216b5,_0x3de78f){const _0x4f5f3b=_0x456733;let _0x1a64b1,_0x106375;return _0x31ac91?(_0x1a64b1=_0x4f5f3b(0xa7),_0x106375=_0x4f5f3b(0xa0)+_0x35850c+_0x4f5f3b(0xc6)+_0x31ac91):(_0x1a64b1=_0x4f5f3b(0xc9),_0x106375=_0x35850c),_0x4f5f3b(0xd9)==this[_0x4f5f3b(0xcf)](_0x5216b5)?_0x4f5f3b(0xb4)+_0x1a64b1+_0x4f5f3b(0xb3)+_0x106375+_0x4f5f3b(0xd6):_0x4f5f3b(0xca)+_0x1a64b1+'\x0a'+_0x106375+_0x4f5f3b(0xb0);}[_0x456733(0xcf)](_0x4f070f){const _0x475d3a=_0x456733;if(/^anthropic\.claude/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0xae);if(/^ai21\.j2/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0xb5);if(/^cohere\.command/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0x93);if(/^meta\.llama/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0xd9);throw new _0x16bd1b(_0x23067b(this[_0x475d3a(0xce)][_0x475d3a(0x9a)],_0x475d3a(0xd0),_0x4f070f));}async[_0x456733(0x8f)](_0x1dd994,_0x3be364,_0x2fa62c,_0x23f3b1,_0x2e1f6f){const _0x44236c=_0x456733,_0x101646={'method':_0x44236c(0xc1),'headers':await this[_0x44236c(0xbc)](this[_0x44236c(0x92)],_0x2e1f6f),'body':JSON[_0x44236c(0xbb)]({..._0x1dd994,'model':_0x3be364,'stream':_0x2fa62c}),'signal':this[_0x44236c(0xb7)][_0x44236c(0x98)]},_0x1b8a89=await fetch(this[_0x44236c(0xcb)],_0x101646);_0x2fa62c?await this[_0x44236c(0x95)](_0x1b8a89,_0x3be364,_0x23f3b1):await this[_0x44236c(0x97)](_0x1b8a89,_0x3be364,_0x23f3b1);}async[_0x456733(0xd1)](_0x559110,_0x1c5e9d,_0x967f40,_0x5b939e){const _0x22cd69=_0x456733,_0x38f6c1=new _0x36b50b(this[_0x22cd69(0xc5)]),_0x1149f0={'body':JSON[_0x22cd69(0xbb)](_0x559110),'contentType':_0x22cd69(0x8b),'accept':_0x22cd69(0x8b),'modelId':_0x1c5e9d};let _0x47be68;if(_0x967f40){const _0x3a4ebf=new _0x2d7e9c(_0x1149f0);_0x47be68=await _0x38f6c1[_0x22cd69(0xab)](_0x3a4ebf,{'abortSignal':this[_0x22cd69(0xb7)][_0x22cd69(0x98)]}),await this[_0x22cd69(0xa5)](_0x47be68,_0x1c5e9d,_0x5b939e);}else{const _0x291a17=new _0x1cb2c7(_0x1149f0);_0x47be68=await _0x38f6c1[_0x22cd69(0xab)](_0x291a17,{'abortSignal':this[_0x22cd69(0xb7)][_0x22cd69(0x98)]}),await this[_0x22cd69(0x97)](_0x47be68,_0x1c5e9d,_0x5b939e);}}async[_0x456733(0xa5)](_0x46ddb8,_0x51f972,_0x27e25a){const _0x533eba=_0x456733,_0x20e11c=_0x46ddb8[_0x533eba(0xc4)],_0x42cadc=new TextDecoder(_0x533eba(0xd3));let _0x253e19='';for await(const _0xf143e1 of _0x20e11c)if(_0xf143e1[_0x533eba(0xdb)]){const _0x31b2ba=_0x42cadc[_0x533eba(0x94)](_0xf143e1[_0x533eba(0xdb)][_0x533eba(0x8d)]),_0x282f56=JSON[_0x533eba(0xb9)](_0x31b2ba);_0x253e19+=this[_0x533eba(0xb8)](_0x282f56,_0x51f972),_0x27e25a(_0x253e19);}return Promise[_0x533eba(0xbd)]();}async[_0x456733(0x95)](_0x5440ad,_0x538707,_0x55373c){const _0x14be0e=_0x456733,_0x3ed116=_0x5440ad[_0x14be0e(0xc4)],_0x3f5bec=new TextDecoder(_0x14be0e(0xd3)),_0x382426=_0x3ed116[_0x14be0e(0xc2)]();let _0x4e7f53='',_0x2131d0='',_0x416c83=!0x1;for(;!_0x416c83;){const {done:_0x29b299,value:_0x17dbc2}=await _0x382426[_0x14be0e(0x8c)]();if(_0x416c83=_0x29b299,_0x416c83)break;const _0x52ed66=(_0x4e7f53+_0x3f5bec[_0x14be0e(0x94)](_0x17dbc2))[_0x14be0e(0xbf)]('\x0a')[_0x14be0e(0xa8)](_0x9a2ae1=>{const _0x43d196=_0x14be0e;try{return _0x4e7f53='',JSON[_0x43d196(0xb9)](_0x9a2ae1);}catch{return _0x4e7f53=_0x9a2ae1,null;}})[_0x14be0e(0xd4)](_0x186e77=>null!==_0x186e77);_0x52ed66[_0x14be0e(0xa6)]&&(_0x2131d0+=_0x52ed66[_0x14be0e(0xa8)](_0x1f2e83=>this[_0x14be0e(0xb8)](_0x1f2e83,_0x538707))[_0x14be0e(0x96)](''),_0x55373c(_0x2131d0));}return Promise[_0x14be0e(0xbd)]();}async[_0x456733(0x97)](_0x4072c8,_0x2a1cc0,_0x1c98ba){const _0x35f26b=_0x456733;let _0x3cb9bb;return _0x3cb9bb=_0x4072c8 instanceof Response?await _0x4072c8[_0x35f26b(0xb1)]():JSON[_0x35f26b(0xb9)](new TextDecoder(_0x35f26b(0xd3))[_0x35f26b(0x94)](_0x4072c8[_0x35f26b(0xc4)])),(_0x1c98ba(this[_0x35f26b(0xb8)](_0x3cb9bb,_0x2a1cc0)),Promise[_0x35f26b(0xbd)]());}[_0x456733(0xb8)](_0x4808aa,_0x844e85){const _0x40412c=_0x456733;switch(this[_0x40412c(0xcf)](_0x844e85)){case _0x40412c(0xae):return _0x4808aa[_0x40412c(0xac)];case _0x40412c(0xb5):return _0x4808aa[_0x40412c(0xa4)][0x0][_0x40412c(0xc3)][_0x40412c(0xb6)];case _0x40412c(0x93):return _0x4808aa[_0x40412c(0x9d)][0x0][_0x40412c(0xb6)];case _0x40412c(0xd9):return _0x4808aa[_0x40412c(0xad)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x142b7f=_0x2439;(function(_0x13829b,_0x46742e){const _0x17c55e=_0x2439,_0x2b0a69=_0x13829b();while(!![]){try{const _0x600a8a=parseInt(_0x17c55e(0x18d))/0x1*(parseInt(_0x17c55e(0x1a4))/0x2)+parseInt(_0x17c55e(0x1be))/0x3+-parseInt(_0x17c55e(0x1c3))/0x4*(parseInt(_0x17c55e(0x199))/0x5)+-parseInt(_0x17c55e(0x1cc))/0x6+-parseInt(_0x17c55e(0x1b3))/0x7*(-parseInt(_0x17c55e(0x1c9))/0x8)+parseInt(_0x17c55e(0x1bf))/0x9*(parseInt(_0x17c55e(0x18f))/0xa)+parseInt(_0x17c55e(0x1ac))/0xb*(parseInt(_0x17c55e(0x1ba))/0xc);if(_0x600a8a===_0x46742e)break;else _0x2b0a69['push'](_0x2b0a69['shift']());}catch(_0x3d0bfa){_0x2b0a69['push'](_0x2b0a69['shift']());}}}(_0x3eac,0x4f58b));import{AITextAdapter as _0x528158}from'./aitextadapter.js';import{AIRequestError as _0x6ad2cc}from'./aiadapter.js';function _0x3eac(){const _0x5d6283=['pluginName','abortController','800MBEASw','stream','prepareMessages','text','signal','body','_prepareRequestParameters','[DONE]','define','ai.assistant.adapter.openAI.requestHeaders','_apiUrl','4fwWbor','replace','filter','editor','_requestParameters','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_ERROR_CONTEXT_LENGTH','1411718ZysVmp','gpt-4o','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','message','decode','user','data:\x20','7mnuAat','Moderation','Instruction:\x0a','split','includes','_readStaticResponse','content','48UKUqKZ','ai.assistant.adapter.openAI.apiUrl','read','context_length_exceeded','1020324laXHIu','9nbsdav','map','AI_ERROR_MODERATION','_prepareRequestHeaders','11212FIPYfZ','get','_requestHeaders','_cleanUpData','OpenAITextAdapter','reject','1199624ZkspcD','json','delta','2902290veSmfb','getReader','locale','ai.assistant.adapter.openAI.requestParameters','system','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.','length','config','stringify','91007wlZYvn','_readStreamableResponse','717710rfSwMG','POST','_isBufferIncomplete','parse','join','resolve','sendRequest','choices'];_0x3eac=function(){return _0x5d6283;};return _0x3eac();}function _0x2439(_0x4d6d58,_0x165ad9){const _0x3eac13=_0x3eac();return _0x2439=function(_0x24397a,_0x1d6c46){_0x24397a=_0x24397a-0x18a;let _0x2cfbbb=_0x3eac13[_0x24397a];return _0x2cfbbb;},_0x2439(_0x4d6d58,_0x165ad9);}import{getTranslation as _0x13222d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x528158{[_0x142b7f(0x1a3)];[_0x142b7f(0x1c5)];[_0x142b7f(0x1a8)];static get[_0x142b7f(0x197)](){const _0xb06701=_0x142b7f;return _0xb06701(0x1c7);}constructor(_0xbeb252){const _0x1dd827=_0x142b7f;super(_0xbeb252),_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1a1)](_0x1dd827(0x1bb),_0x1dd827(0x1aa)),_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1cf))||_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1a1)](_0x1dd827(0x1cf),{'model':_0x1dd827(0x1ad),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1dd827(0x1a3)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1bb)),this[_0x1dd827(0x1c5)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1a2))||{},this[_0x1dd827(0x1a8)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1cf));}async[_0x142b7f(0x195)]({query:_0x378965,context:_0x24ac8a,onData:_0x5bdf75,actionId:_0x55452e}){const _0x563263=_0x142b7f,_0x54fcf2=this[_0x563263(0x1a7)][_0x563263(0x1ce)],_0x2242ca=await this[_0x563263(0x19b)](_0x378965,_0x24ac8a,_0x55452e),_0x36f3b0=await this[_0x563263(0x1c2)](this[_0x563263(0x1c5)],_0x55452e),_0xeb59ef=await this[_0x563263(0x19f)](this[_0x563263(0x1a8)],_0x55452e),_0x1240f3={'messages':_0x2242ca,..._0xeb59ef},_0x105a53={'method':_0x563263(0x190),'headers':_0x36f3b0,'body':JSON[_0x563263(0x18c)](_0x1240f3),'signal':this[_0x563263(0x198)][_0x563263(0x19d)]},_0x8dfa3c=await fetch(this[_0x563263(0x1a3)],_0x105a53);if(_0x8dfa3c['ok'])return _0xeb59ef[_0x563263(0x19a)]?await this[_0x563263(0x18e)](_0x8dfa3c,_0x5bdf75):await this[_0x563263(0x1b8)](_0x8dfa3c,_0x5bdf75),Promise[_0x563263(0x194)]();{const _0x39f439=await _0x8dfa3c[_0x563263(0x19c)]();return _0x39f439[_0x563263(0x1b7)](_0x563263(0x1bd))?Promise[_0x563263(0x1c8)](new _0x6ad2cc(_0x13222d(_0x54fcf2,_0x563263(0x1ab)))):_0x39f439[_0x563263(0x1b7)](_0x563263(0x1b4))?Promise[_0x563263(0x1c8)](new _0x6ad2cc(_0x13222d(_0x54fcf2,_0x563263(0x1c1)))):Promise[_0x563263(0x1c8)](new Error(_0x39f439));}}async[_0x142b7f(0x19b)](_0x178a58,_0x3e8c6a,_0x2f0ac4){const _0x48a493=_0x142b7f;let _0x5c384b,_0x27594d;return _0x3e8c6a?(_0x5c384b=_0x48a493(0x1a9),_0x27594d=_0x48a493(0x1b5)+_0x178a58+_0x48a493(0x1ae)+_0x3e8c6a):(_0x5c384b=_0x48a493(0x1d1),_0x27594d=_0x178a58),[{'role':_0x48a493(0x1d0),'content':_0x5c384b},{'role':_0x48a493(0x1b1),'content':_0x27594d}];}async[_0x142b7f(0x18e)](_0x52cb3c,_0x26d25a){const _0x4e531d=_0x142b7f,_0x1ac8d7=_0x52cb3c[_0x4e531d(0x19e)][_0x4e531d(0x1cd)](),_0x77cc56=new TextDecoder();let _0xeb5eec='',_0xccb6f6='',_0x3a26fa='',_0x2073f4=!0x1;for(;!_0x2073f4;){const {done:_0x4e1246,value:_0x2fffa8}=await _0x1ac8d7[_0x4e531d(0x1bc)](),_0x4aebdb=_0xeb5eec+_0x77cc56[_0x4e531d(0x1b0)](_0x2fffa8);let _0x18c41a='';_0x2073f4=_0x4e1246;try{_0x18c41a=this[_0x4e531d(0x1c6)](_0x4aebdb),_0xeb5eec='';}catch{_0xeb5eec=_0x4aebdb;continue;}_0xccb6f6+=_0x18c41a,!_0x2073f4&&this[_0x4e531d(0x191)](_0xccb6f6)||_0xccb6f6&&(_0x3a26fa+=_0xccb6f6,_0xccb6f6='',_0x26d25a(_0x3a26fa));}return Promise[_0x4e531d(0x194)]();}async[_0x142b7f(0x1b8)](_0x4fa72c,_0xa7966b){const _0x19e10c=_0x142b7f;return _0xa7966b((await _0x4fa72c[_0x19e10c(0x1ca)]())[_0x19e10c(0x196)][0x0][_0x19e10c(0x1af)][_0x19e10c(0x1b9)]),Promise[_0x19e10c(0x194)]();}[_0x142b7f(0x191)](_0x379416){const _0x381e1c=_0x142b7f,_0x71746f=_0x379416[_0x381e1c(0x1b6)]('<')[_0x381e1c(0x18a)]!==_0x379416[_0x381e1c(0x1b6)]('>')[_0x381e1c(0x18a)],_0x13892e=_0x379416[_0x381e1c(0x18a)]<0x1e;return _0x71746f&&_0x13892e;}[_0x142b7f(0x1c6)](_0x48b908){const _0x50e048=_0x142b7f;return _0x48b908[_0x50e048(0x1b6)](/\n(?![^{]*\})/g)[_0x50e048(0x1c0)](_0x51e722=>_0x51e722[_0x50e048(0x1a5)](_0x50e048(0x1b2),''))[_0x50e048(0x1a6)](_0x3400b5=>_0x3400b5&&_0x3400b5[_0x50e048(0x18a)]>0x0&&_0x50e048(0x1a0)!==_0x3400b5)[_0x50e048(0x1c0)](_0x2a319a=>{const _0x4fa39a=_0x50e048,{choices:_0x4cac52}=JSON[_0x4fa39a(0x192)](_0x2a319a);if(_0x4cac52[0x0]?.[_0x4fa39a(0x1cb)]?.[_0x4fa39a(0x1b9)])return _0x4cac52[0x0][_0x4fa39a(0x1cb)][_0x4fa39a(0x1b9)];})[_0x50e048(0x1a6)](_0x52b407=>_0x52b407)[_0x50e048(0x193)]('');}}
23
+ const _0x41cab7=_0x493d;(function(_0xed6bac,_0x44020d){const _0x1cb59f=_0x493d,_0x460bf0=_0xed6bac();while(!![]){try{const _0x4ed0c5=-parseInt(_0x1cb59f(0x1db))/0x1*(parseInt(_0x1cb59f(0x1c5))/0x2)+-parseInt(_0x1cb59f(0x1bc))/0x3*(-parseInt(_0x1cb59f(0x1e1))/0x4)+-parseInt(_0x1cb59f(0x1c7))/0x5*(parseInt(_0x1cb59f(0x1dd))/0x6)+parseInt(_0x1cb59f(0x1b6))/0x7+-parseInt(_0x1cb59f(0x1b8))/0x8*(parseInt(_0x1cb59f(0x1b1))/0x9)+-parseInt(_0x1cb59f(0x1f4))/0xa*(-parseInt(_0x1cb59f(0x1e9))/0xb)+-parseInt(_0x1cb59f(0x1ba))/0xc*(-parseInt(_0x1cb59f(0x1b2))/0xd);if(_0x4ed0c5===_0x44020d)break;else _0x460bf0['push'](_0x460bf0['shift']());}catch(_0x49e2ab){_0x460bf0['push'](_0x460bf0['shift']());}}}(_0x170b,0xb00d9));function _0x493d(_0x1318b8,_0x4f3c22){const _0x170b0c=_0x170b();return _0x493d=function(_0x493d70,_0xcd0517){_0x493d70=_0x493d70-0x1ae;let _0x64be2b=_0x170b0c[_0x493d70];return _0x64be2b;},_0x493d(_0x1318b8,_0x4f3c22);}function _0x170b(){const _0x5e3d3a=['parse','user','split','10fuoBaC','text','Moderation','_prepareRequestHeaders','resolve','_readStaticResponse','6801552ikEeYN','13QqIkhQ','data:\x20','replace','getReader','2815295ECzVvz','_isBufferIncomplete','8tClcHT','OpenAITextAdapter','12205848QyQwYI','AI_ERROR_CONTEXT_LENGTH','15UKiGYp','sendRequest','_cleanUpData','get','read','reject','Instruction:\x0a','ai.assistant.adapter.openAI.apiUrl','_apiUrl','2ZeulOd','stream','20230QSKNAn','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.','locale','decode','delta','message','context_length_exceeded','AI_ERROR_MODERATION','abortController','content','editor','[DONE]','_readStreamableResponse','stringify','POST','signal','gpt-4o','pluginName','ai.assistant.adapter.openAI.requestHeaders','filter','638908UNUmCV','_requestHeaders','1698gAPgJS','includes','length','config','632444qdkQzK','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_requestParameters','join','prepareMessages','map','body','choices','11559603pvHTsd','ai.assistant.adapter.openAI.requestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','json','define','system','_prepareRequestParameters','https://api.openai.com/v1/chat/completions'];_0x170b=function(){return _0x5e3d3a;};return _0x170b();}import{AITextAdapter as _0x528399}from'./aitextadapter.js';import{AIRequestError as _0xf173eb}from'./aiadapter.js';import{getTranslation as _0x4e4069}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x528399{[_0x41cab7(0x1c4)];[_0x41cab7(0x1dc)];[_0x41cab7(0x1e3)];static get[_0x41cab7(0x1d8)](){const _0x478d56=_0x41cab7;return _0x478d56(0x1b9);}constructor(_0x2e5aad){const _0x2c9e83=_0x41cab7;super(_0x2e5aad),_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1ed)](_0x2c9e83(0x1c3),_0x2c9e83(0x1f0)),_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1ea))||_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1ed)](_0x2c9e83(0x1ea),{'model':_0x2c9e83(0x1d7),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x2c9e83(0x1c4)]=_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1c3)),this[_0x2c9e83(0x1dc)]=_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1d9))||{},this[_0x2c9e83(0x1e3)]=_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1ea));}async[_0x41cab7(0x1bd)]({query:_0x36a46b,context:_0x100a0c,onData:_0x15fd4d,actionId:_0x5896ec}){const _0x473416=_0x41cab7,_0x5daebc=this[_0x473416(0x1d1)][_0x473416(0x1c9)],_0x558063=await this[_0x473416(0x1e5)](_0x36a46b,_0x100a0c,_0x5896ec),_0x4f58f4=await this[_0x473416(0x1ae)](this[_0x473416(0x1dc)],_0x5896ec),_0x5d10f6=await this[_0x473416(0x1ef)](this[_0x473416(0x1e3)],_0x5896ec),_0x323243={'messages':_0x558063,..._0x5d10f6},_0x32835e={'method':_0x473416(0x1d5),'headers':_0x4f58f4,'body':JSON[_0x473416(0x1d4)](_0x323243),'signal':this[_0x473416(0x1cf)][_0x473416(0x1d6)]},_0x5a9a2b=await fetch(this[_0x473416(0x1c4)],_0x32835e);if(_0x5a9a2b['ok'])return _0x5d10f6[_0x473416(0x1c6)]?await this[_0x473416(0x1d3)](_0x5a9a2b,_0x15fd4d):await this[_0x473416(0x1b0)](_0x5a9a2b,_0x15fd4d),Promise[_0x473416(0x1af)]();{const _0x9b5415=await _0x5a9a2b[_0x473416(0x1f5)]();return _0x9b5415[_0x473416(0x1de)](_0x473416(0x1cd))?Promise[_0x473416(0x1c1)](new _0xf173eb(_0x4e4069(_0x5daebc,_0x473416(0x1bb)))):_0x9b5415[_0x473416(0x1de)](_0x473416(0x1f6))?Promise[_0x473416(0x1c1)](new _0xf173eb(_0x4e4069(_0x5daebc,_0x473416(0x1ce)))):Promise[_0x473416(0x1c1)](new Error(_0x9b5415));}}async[_0x41cab7(0x1e5)](_0x40b9f6,_0xdef750,_0x278f25){const _0x4fc0cf=_0x41cab7;let _0x18f57e,_0x45c3e5;return _0xdef750?(_0x18f57e=_0x4fc0cf(0x1c8),_0x45c3e5=_0x4fc0cf(0x1c2)+_0x40b9f6+_0x4fc0cf(0x1eb)+_0xdef750):(_0x18f57e=_0x4fc0cf(0x1e2),_0x45c3e5=_0x40b9f6),[{'role':_0x4fc0cf(0x1ee),'content':_0x18f57e},{'role':_0x4fc0cf(0x1f2),'content':_0x45c3e5}];}async[_0x41cab7(0x1d3)](_0x4f55b0,_0x1bd6f8){const _0x27c216=_0x41cab7,_0x222645=_0x4f55b0[_0x27c216(0x1e7)][_0x27c216(0x1b5)](),_0x57c50e=new TextDecoder();let _0x306fb8='',_0x49c75c='',_0x23d241='',_0x4be72b=!0x1;for(;!_0x4be72b;){const {done:_0x273e4c,value:_0xac9368}=await _0x222645[_0x27c216(0x1c0)](),_0x4ba71c=_0x306fb8+_0x57c50e[_0x27c216(0x1ca)](_0xac9368);let _0x379320='';_0x4be72b=_0x273e4c;try{_0x379320=this[_0x27c216(0x1be)](_0x4ba71c),_0x306fb8='';}catch{_0x306fb8=_0x4ba71c;continue;}_0x49c75c+=_0x379320,!_0x4be72b&&this[_0x27c216(0x1b7)](_0x49c75c)||_0x49c75c&&(_0x23d241+=_0x49c75c,_0x49c75c='',_0x1bd6f8(_0x23d241));}return Promise[_0x27c216(0x1af)]();}async[_0x41cab7(0x1b0)](_0x12fdfe,_0x459061){const _0x29a241=_0x41cab7;return _0x459061((await _0x12fdfe[_0x29a241(0x1ec)]())[_0x29a241(0x1e8)][0x0][_0x29a241(0x1cc)][_0x29a241(0x1d0)]),Promise[_0x29a241(0x1af)]();}[_0x41cab7(0x1b7)](_0x4a1d2c){const _0xb9acf9=_0x41cab7,_0x437118=_0x4a1d2c[_0xb9acf9(0x1f3)]('<')[_0xb9acf9(0x1df)]!==_0x4a1d2c[_0xb9acf9(0x1f3)]('>')[_0xb9acf9(0x1df)],_0x58e5b0=_0x4a1d2c[_0xb9acf9(0x1df)]<0x1e;return _0x437118&&_0x58e5b0;}[_0x41cab7(0x1be)](_0x5ca195){const _0x14c6cd=_0x41cab7;return _0x5ca195[_0x14c6cd(0x1f3)](/\n(?![^{]*\})/g)[_0x14c6cd(0x1e6)](_0xd9b846=>_0xd9b846[_0x14c6cd(0x1b4)](_0x14c6cd(0x1b3),''))[_0x14c6cd(0x1da)](_0x34a62f=>_0x34a62f&&_0x34a62f[_0x14c6cd(0x1df)]>0x0&&_0x14c6cd(0x1d2)!==_0x34a62f)[_0x14c6cd(0x1e6)](_0x486785=>{const _0x2afb60=_0x14c6cd,{choices:_0x164b2b}=JSON[_0x2afb60(0x1f1)](_0x486785);if(_0x164b2b[0x0]?.[_0x2afb60(0x1cb)]?.[_0x2afb60(0x1d0)])return _0x164b2b[0x0][_0x2afb60(0x1cb)][_0x2afb60(0x1d0)];})[_0x14c6cd(0x1da)](_0x28a0e3=>_0x28a0e3)[_0x14c6cd(0x1e4)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x453ad9=_0x5dd3;(function(_0x2cba17,_0x557e97){const _0x48e6d4=_0x5dd3,_0x86c46d=_0x2cba17();while(!![]){try{const _0x43dcff=parseInt(_0x48e6d4(0x12d))/0x1*(parseInt(_0x48e6d4(0x13f))/0x2)+parseInt(_0x48e6d4(0xec))/0x3*(-parseInt(_0x48e6d4(0x105))/0x4)+-parseInt(_0x48e6d4(0x118))/0x5+-parseInt(_0x48e6d4(0xf6))/0x6+parseInt(_0x48e6d4(0x13e))/0x7*(-parseInt(_0x48e6d4(0xf5))/0x8)+-parseInt(_0x48e6d4(0xfe))/0x9*(-parseInt(_0x48e6d4(0x12c))/0xa)+-parseInt(_0x48e6d4(0x142))/0xb*(-parseInt(_0x48e6d4(0x11f))/0xc);if(_0x43dcff===_0x557e97)break;else _0x86c46d['push'](_0x86c46d['shift']());}catch(_0x35be42){_0x86c46d['push'](_0x86c46d['shift']());}}}(_0x4a54,0x1d696));import{Plugin as _0x3808cc}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x378e9e}from'./aiassistantui.js';function _0x5dd3(_0x53366c,_0x5300dc){const _0x4a54e2=_0x4a54();return _0x5dd3=function(_0x5dd352,_0x284f1b){_0x5dd352=_0x5dd352-0xdd;let _0x408ce=_0x4a54e2[_0x5dd352];return _0x408ce;},_0x5dd3(_0x53366c,_0x5300dc);}import{AIAssistantEditing as _0x1445f5}from'./aiassistantediting.js';import{getTranslation as _0x2b5cad}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3911c1}from'./utils/normalizecommandsconfig.js';function _0x4a54(){const _0x36df5a=['Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','direct','concat','Hindi','Confident','includes','config','changeStyle','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Legal','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','makeLonger','translateGerman','Casual','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateFrench','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','83262TNQaTc','Summarize','define','find','ai.assistant.extraCommandGroups','continue','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','groupId','professional','1513336bcrSlr','445254JgCYnt','AIAssistant','Translate\x20the\x20content\x20to\x20Spanish\x20language.','ai.assistant.preserveComments','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Edit\x20or\x20review','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translate','513CUtJDk','editOrReview','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','push','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','locale','28RnpjgX','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate','generate','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','isPremiumPlugin','isOfficialPlugin','Arabic','set','filter','makeShorter','ai.assistant.removeCommands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','casual','Friendly','Portuguese','Generate\x20from\x20selection','Simplify\x20language','Improve\x20writing','138505mhnPTO','translateChinese','Journalism','simplifyLanguage','Direct','translateHindi','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','232212DYlWFc','French','Professional','Business','legal','Simplified\x20Chinese','ai.assistant.commands','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Continue','English','translateArabic','Make\x20shorter','friendly','8530Nyhwgd','1JqBZty','changeTone','business','Translate\x20the\x20content\x20to\x20French\x20language.','journalism','Change\x20style','translateEnglish','forEach','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','pluginName','confident','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translatePortuguese','translateSpanish','Translate\x20the\x20content\x20to\x20German\x20language.','German','requires','7NuhxCr','379070hObQUq','Make\x20longer','Change\x20tone','209bMKRcr','summarize','improveWriting','commands','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','poetic','Spanish','Translate\x20the\x20content\x20to\x20Arabic\x20language.','get'];_0x4a54=function(){return _0x36df5a;};return _0x4a54();}export class AIAssistant extends _0x3808cc{static get[_0x453ad9(0x13d)](){return[_0x378e9e,_0x1445f5];}static get[_0x453ad9(0x136)](){const _0x3f951d=_0x453ad9;return _0x3f951d(0xf7);}static get[_0x453ad9(0x10b)](){return!0x0;}static get[_0x453ad9(0x10a)](){return!0x0;}constructor(_0x9f93b0){const _0x5b5fda=_0x453ad9;super(_0x9f93b0);const _0x359ec1=_0x9f93b0[_0x5b5fda(0xe0)],_0x251f4b=_0x9f93b0[_0x5b5fda(0x104)];_0x359ec1[_0x5b5fda(0xee)](_0x5b5fda(0xf9),!0x0),_0x359ec1[_0x5b5fda(0xee)](_0x5b5fda(0x125),getDefaultAICommands(_0x251f4b)),_0x359ec1[_0x5b5fda(0xee)](_0x5b5fda(0xf0),[]),_0x359ec1[_0x5b5fda(0xee)](_0x5b5fda(0x110),[]);let _0xab672e=_0x3911c1(_0x359ec1[_0x5b5fda(0x14a)](_0x5b5fda(0x125)),_0x251f4b);const _0x510a3a=_0x359ec1[_0x5b5fda(0x14a)](_0x5b5fda(0xf0)),_0x45330f=_0x359ec1[_0x5b5fda(0x14a)](_0x5b5fda(0x110));_0x510a3a[_0x5b5fda(0x134)](_0x23883b=>{const _0x29169a=_0x5b5fda,_0xfafd3e=_0xab672e[_0x29169a(0xef)](_0x5494da=>_0x5494da[_0x29169a(0xf3)]===_0x23883b[_0x29169a(0xf3)]);_0xfafd3e?_0xfafd3e[_0x29169a(0x145)]=_0xfafd3e[_0x29169a(0x145)][_0x29169a(0x14d)](_0x23883b[_0x29169a(0x145)]):_0xab672e[_0x29169a(0x101)](_0x23883b);}),_0xab672e=_0xab672e[_0x5b5fda(0x10e)](_0x106b60=>!_0x45330f[_0x5b5fda(0xdf)](_0x106b60[_0x5b5fda(0xf3)])),_0xab672e[_0x5b5fda(0x134)](_0x44c972=>{const _0x5c2f63=_0x5b5fda;_0x44c972[_0x5c2f63(0x145)]=_0x44c972[_0x5c2f63(0x145)][_0x5c2f63(0x10e)](_0x26c98e=>!_0x45330f[_0x5c2f63(0xdf)](_0x26c98e['id']));}),_0x359ec1[_0x5b5fda(0x10d)](_0x5b5fda(0x125),_0xab672e);}}export function getDefaultAICommands(_0xabff5c){const _0x1540c8=_0x453ad9;return[{'groupId':_0x1540c8(0xff),'groupLabel':_0x2b5cad(_0xabff5c,_0x1540c8(0xfb)),'commands':[{'id':_0x1540c8(0x144),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x117)),'prompt':_0x1540c8(0xf2)},{'id':_0x1540c8(0x10f),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x12a)),'prompt':_0x1540c8(0xfa)},{'id':_0x1540c8(0xe5),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x140)),'prompt':_0x1540c8(0xe2)},{'id':_0x1540c8(0x11b),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x116)),'prompt':_0x1540c8(0x111)}]},{'groupId':_0x1540c8(0x108),'groupLabel':_0x2b5cad(_0xabff5c,_0x1540c8(0x115)),'commands':[{'id':_0x1540c8(0x143),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0xed)),'prompt':_0x1540c8(0xfc)},{'id':_0x1540c8(0xf1),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x127)),'prompt':_0x1540c8(0x106)}]},{'groupId':_0x1540c8(0x12e),'groupLabel':_0x2b5cad(_0xabff5c,_0x1540c8(0x141)),'commands':[{'id':_0x1540c8(0xf4),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x121)),'prompt':_0x1540c8(0x14b)},{'id':_0x1540c8(0x112),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0xe7)),'prompt':_0x1540c8(0x126)},{'id':_0x1540c8(0x14c),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x11c)),'prompt':_0x1540c8(0xe4)},{'id':_0x1540c8(0x137),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0xde)),'prompt':_0x1540c8(0x138)},{'id':_0x1540c8(0x12b),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x113)),'prompt':_0x1540c8(0xeb)}]},{'groupId':_0x1540c8(0xe1),'groupLabel':_0x2b5cad(_0xabff5c,_0x1540c8(0x132)),'commands':[{'id':_0x1540c8(0x12f),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x122)),'prompt':_0x1540c8(0xe9)},{'id':_0x1540c8(0x123),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0xe3)),'prompt':_0x1540c8(0x11e)},{'id':_0x1540c8(0x131),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x11a)),'prompt':_0x1540c8(0x146)},{'id':_0x1540c8(0x147),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0xe8)),'prompt':_0x1540c8(0x135)}]},{'groupId':_0x1540c8(0xfd),'groupLabel':_0x2b5cad(_0xabff5c,_0x1540c8(0x107)),'commands':[{'id':_0x1540c8(0x133),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x128)),'prompt':_0x1540c8(0x102)},{'id':_0x1540c8(0x13a),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x148)),'prompt':_0x1540c8(0xf8)},{'id':_0x1540c8(0x139),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x114)),'prompt':_0x1540c8(0x109)},{'id':_0x1540c8(0xe6),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x13c)),'prompt':_0x1540c8(0x13b)},{'id':_0x1540c8(0xea),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x120)),'prompt':_0x1540c8(0x130)},{'id':_0x1540c8(0x119),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x124)),'prompt':_0x1540c8(0x100)},{'id':_0x1540c8(0x11d),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0xdd)),'prompt':_0x1540c8(0x103)},{'id':_0x1540c8(0x129),'label':_0x2b5cad(_0xabff5c,_0x1540c8(0x10c)),'prompt':_0x1540c8(0x149)}]}];}
23
+ const _0x59d488=_0x189d;(function(_0x539127,_0x32019d){const _0x154796=_0x189d,_0x2e3eaa=_0x539127();while(!![]){try{const _0x479b96=-parseInt(_0x154796(0x10b))/0x1+parseInt(_0x154796(0xe8))/0x2+parseInt(_0x154796(0x125))/0x3*(parseInt(_0x154796(0x106))/0x4)+parseInt(_0x154796(0x135))/0x5*(-parseInt(_0x154796(0x11c))/0x6)+-parseInt(_0x154796(0xe5))/0x7+-parseInt(_0x154796(0xe3))/0x8+parseInt(_0x154796(0x111))/0x9;if(_0x479b96===_0x32019d)break;else _0x2e3eaa['push'](_0x2e3eaa['shift']());}catch(_0x1e2ccc){_0x2e3eaa['push'](_0x2e3eaa['shift']());}}}(_0x4878,0x2a2fc));import{Plugin as _0x1e466c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0xacb674}from'./aiassistantui.js';function _0x4878(){const _0x304445=['Edit\x20or\x20review','locale','German','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','AIAssistant','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','get','business','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Make\x20longer','filter','Arabic','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20German\x20language.','Legal','122908orySqb','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translatePortuguese','French','143704IyoemO','translate','set','Confident','casual','direct','4943043ZYfUOq','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','pluginName','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','improveWriting','isOfficialPlugin','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','generate','journalism','6EMgHTG','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.assistant.removeCommands','continue','concat','translateSpanish','poetic','summarize','33YUggoy','Simplified\x20Chinese','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','professional','Change\x20style','changeStyle','groupId','Direct','Spanish','Professional','requires','simplifyLanguage','includes','translateEnglish','Continue','define','1096265zuVJlx','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','editOrReview','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Translate','makeLonger','Business','Translate\x20the\x20content\x20to\x20English\x20language.','Summarize','forEach','translateChinese','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Hindi','ai.assistant.preserveComments','Simplify\x20language','Portuguese','translateArabic','Generate\x20from\x20selection','legal','config','isPremiumPlugin','Change\x20tone','Improve\x20writing','friendly','translateHindi','Make\x20shorter','Journalism','find','1966840ydpqNO','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','778799mwqLqO','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeShorter','11282htxYBJ','translateGerman','commands','Casual','ai.assistant.commands','Poetic','push','changeTone','English','ai.assistant.extraCommandGroups','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','confident','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateFrench'];_0x4878=function(){return _0x304445;};return _0x4878();}import{AIAssistantEditing as _0x4bd9d9}from'./aiassistantediting.js';import{getTranslation as _0x5ddd68}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x2f0292}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x1e466c{static get[_0x59d488(0x12f)](){return[_0xacb674,_0x4bd9d9];}static get[_0x59d488(0x114)](){const _0x44cfe4=_0x59d488;return _0x44cfe4(0xfa);}static get[_0x59d488(0x118)](){return!0x0;}static get[_0x59d488(0xdb)](){return!0x0;}constructor(_0x1321ab){const _0x4fd0e2=_0x59d488;super(_0x1321ab);const _0x4deb47=_0x1321ab[_0x4fd0e2(0xda)],_0x4bce71=_0x1321ab[_0x4fd0e2(0xf7)];_0x4deb47[_0x4fd0e2(0x134)](_0x4fd0e2(0xd4),!0x0),_0x4deb47[_0x4fd0e2(0x134)](_0x4fd0e2(0xec),getDefaultAICommands(_0x4bce71)),_0x4deb47[_0x4fd0e2(0x134)](_0x4fd0e2(0xf1),[]),_0x4deb47[_0x4fd0e2(0x134)](_0x4fd0e2(0x11f),[]);let _0x1428be=_0x2f0292(_0x4deb47[_0x4fd0e2(0xfd)](_0x4fd0e2(0xec)),_0x4bce71);const _0x524d78=_0x4deb47[_0x4fd0e2(0xfd)](_0x4fd0e2(0xf1)),_0x417111=_0x4deb47[_0x4fd0e2(0xfd)](_0x4fd0e2(0x11f));_0x524d78[_0x4fd0e2(0xd0)](_0xbb9dcc=>{const _0x51a85c=_0x4fd0e2,_0x4c79ea=_0x1428be[_0x51a85c(0xe2)](_0xd43fbf=>_0xd43fbf[_0x51a85c(0x12b)]===_0xbb9dcc[_0x51a85c(0x12b)]);_0x4c79ea?_0x4c79ea[_0x51a85c(0xea)]=_0x4c79ea[_0x51a85c(0xea)][_0x51a85c(0x121)](_0xbb9dcc[_0x51a85c(0xea)]):_0x1428be[_0x51a85c(0xee)](_0xbb9dcc);}),_0x1428be=_0x1428be[_0x4fd0e2(0x101)](_0x5933c5=>!_0x417111[_0x4fd0e2(0x131)](_0x5933c5[_0x4fd0e2(0x12b)])),_0x1428be[_0x4fd0e2(0xd0)](_0x5499b6=>{const _0x56464f=_0x4fd0e2;_0x5499b6[_0x56464f(0xea)]=_0x5499b6[_0x56464f(0xea)][_0x56464f(0x101)](_0x178c02=>!_0x417111[_0x56464f(0x131)](_0x178c02['id']));}),_0x4deb47[_0x4fd0e2(0x10d)](_0x4fd0e2(0xec),_0x1428be);}}function _0x189d(_0xfaaf9e,_0xe98887){const _0x4878d8=_0x4878();return _0x189d=function(_0x189d47,_0x3418ca){_0x189d47=_0x189d47-0xcc;let _0x3afe8e=_0x4878d8[_0x189d47];return _0x3afe8e;},_0x189d(_0xfaaf9e,_0xe98887);}export function getDefaultAICommands(_0x5bbdd2){const _0x158797=_0x59d488;return[{'groupId':_0x158797(0x137),'groupLabel':_0x5ddd68(_0x5bbdd2,_0x158797(0xf6)),'commands':[{'id':_0x158797(0x117),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xdd)),'prompt':_0x158797(0x138)},{'id':_0x158797(0xe7),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xe0)),'prompt':_0x158797(0x127)},{'id':_0x158797(0xcc),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x100)),'prompt':_0x158797(0x11e)},{'id':_0x158797(0x130),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xd5)),'prompt':_0x158797(0x11d)}]},{'groupId':_0x158797(0x11a),'groupLabel':_0x5ddd68(_0x5bbdd2,_0x158797(0xd8)),'commands':[{'id':_0x158797(0x124),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xcf)),'prompt':_0x158797(0x119)},{'id':_0x158797(0x120),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x133)),'prompt':_0x158797(0xe4)}]},{'groupId':_0x158797(0xef),'groupLabel':_0x5ddd68(_0x5bbdd2,_0x158797(0xdc)),'commands':[{'id':_0x158797(0x128),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x12e)),'prompt':_0x158797(0x108)},{'id':_0x158797(0x10f),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xeb)),'prompt':_0x158797(0x112)},{'id':_0x158797(0x110),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x12c)),'prompt':_0x158797(0xff)},{'id':_0x158797(0xf3),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x10e)),'prompt':_0x158797(0x136)},{'id':_0x158797(0xde),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x115)),'prompt':_0x158797(0xf9)}]},{'groupId':_0x158797(0x12a),'groupLabel':_0x5ddd68(_0x5bbdd2,_0x158797(0x129)),'commands':[{'id':_0x158797(0xfe),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xcd)),'prompt':_0x158797(0xf2)},{'id':_0x158797(0xd9),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x105)),'prompt':_0x158797(0x116)},{'id':_0x158797(0x11b),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xe1)),'prompt':_0x158797(0xfb)},{'id':_0x158797(0x123),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xed)),'prompt':_0x158797(0x113)}]},{'groupId':_0x158797(0x10c),'groupLabel':_0x5ddd68(_0x5bbdd2,_0x158797(0x139)),'commands':[{'id':_0x158797(0x132),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xf0)),'prompt':_0x158797(0xce)},{'id':_0x158797(0x122),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x12d)),'prompt':_0x158797(0xf4)},{'id':_0x158797(0x109),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xd6)),'prompt':_0x158797(0x107)},{'id':_0x158797(0xe9),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xf8)),'prompt':_0x158797(0x104)},{'id':_0x158797(0xf5),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x10a)),'prompt':_0x158797(0x103)},{'id':_0x158797(0xd1),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x126)),'prompt':_0x158797(0xfc)},{'id':_0x158797(0xdf),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0xd3)),'prompt':_0x158797(0xe6)},{'id':_0x158797(0xd7),'label':_0x5ddd68(_0x5bbdd2,_0x158797(0x102)),'prompt':_0x158797(0xd2)}]}];}