@ckeditor/ckeditor5-ai 47.7.1-alpha.0 → 47.7.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.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x136e10=_0x51f2;(function(_0x194d0f,_0x598a2d){var _0xcf0713=_0x51f2,_0x1b5916=_0x194d0f();while(!![]){try{var _0x7cef72=parseInt(_0xcf0713(0xe7))/0x1+-parseInt(_0xcf0713(0xe3))/0x2+parseInt(_0xcf0713(0xdd))/0x3+parseInt(_0xcf0713(0xeb))/0x4*(parseInt(_0xcf0713(0xd8))/0x5)+-parseInt(_0xcf0713(0xe2))/0x6+parseInt(_0xcf0713(0xd3))/0x7*(-parseInt(_0xcf0713(0xd6))/0x8)+parseInt(_0xcf0713(0xf3))/0x9;if(_0x7cef72===_0x598a2d)break;else _0x1b5916['push'](_0x1b5916['shift']());}catch(_0x2f51d6){_0x1b5916['push'](_0x1b5916['shift']());}}}(_0x50fd,0x938d6));import{View as _0x51c4c8}from'ckeditor5/src/ui.js';import{getTranslation as _0x382362}from'../../utils/common-translations.js';import{AISuggestionContentPartStateView as _0x222e71}from'./aisuggestioncontentpartstateview.js';import{AISuggestionContentPartToolbarView as _0x3cbb9e}from'./aisuggestioncontentparttoolbarview.js';function _0x51f2(_0xd9a63f,_0x3f72c4){var _0x50fdea=_0x50fd();return _0x51f2=function(_0x51f299,_0x371bd3){_0x51f299=_0x51f299-0xd3;var _0x8b6695=_0x50fdea[_0x51f299];return _0x8b6695;},_0x51f2(_0xd9a63f,_0x3f72c4);}function _0x50fd(){var _0x5be676=['AI_SUGGESTION_CONTENT_PART_TITLE','toString','insertSuggestion','toolbarView','state','createCollection','index','6896781wInOmH','remove','applySuggestion','ck-reset_all-excluded','ck-ai-suggestion__body__content-part__title','7MNjjLi','ck-ai-suggestion__body__content-part__title__label','titleLabelView','7368968kPIcxz','add','435JDSVOe','isEnabled','stateView','setState','addMany','515100RMdNHU','children','pending','setTemplate','div','2153280rqrwfT','160930IYcRGW','span','set','rejectSuggestion','197547swsuzu','change:state','bind','fire','38128daGzrQ'];_0x50fd=function(){return _0x5be676;};return _0x50fd();}export class AISuggestionContentPartHeaderView extends _0x51c4c8{[_0x136e10(0xef)];[_0x136e10(0xda)];[_0x136e10(0xd5)];[_0x136e10(0xde)];constructor(_0x2fa02e,{part:_0x19a19a,uiIndex:_0x5b8a03,availableActions:_0x595b60,areActionsDisabled:_0x4c4b07}){var _0x16d302=_0x136e10;super(_0x2fa02e),this[_0x16d302(0xe5)](_0x16d302(0xd9),!0x0),this[_0x16d302(0xe5)](_0x16d302(0xf0),_0x16d302(0xdf)),this[_0x16d302(0xef)]=new _0x3cbb9e(_0x2fa02e,_0x595b60,_0x4c4b07),this[_0x16d302(0xef)]['on'](_0x16d302(0xe6),()=>{var _0x24254a=_0x16d302;this[_0x24254a(0xea)](_0x24254a(0xe6),{'index':_0x19a19a[_0x24254a(0xf2)]});}),this[_0x16d302(0xef)]['on'](_0x16d302(0xee),()=>{var _0x362e10=_0x16d302;this[_0x362e10(0xea)](_0x362e10(0xee),{'index':_0x19a19a[_0x362e10(0xf2)]});}),this[_0x16d302(0xef)]['on'](_0x16d302(0xf5),()=>{var _0x355e11=_0x16d302;this[_0x355e11(0xea)](_0x355e11(0xf5),{'index':_0x19a19a[_0x355e11(0xf2)]});}),this[_0x16d302(0xef)][_0x16d302(0xe9)](_0x16d302(0xd9))['to'](this),this[_0x16d302(0xda)]=new _0x222e71(_0x2fa02e),this[_0x16d302(0xd5)]=new Sn(_0x2fa02e,_0x5b8a03),this[_0x16d302(0xde)]=this[_0x16d302(0xf1)](),this[_0x16d302(0xde)][_0x16d302(0xdc)]([this[_0x16d302(0xd5)],this[_0x16d302(0xef)]]),this[_0x16d302(0xe0)]({'tag':_0x16d302(0xe1),'attributes':{'class':['ck',_0x16d302(0xf6),_0x16d302(0xf7)]},'children':this[_0x16d302(0xde)]}),this['on'](_0x16d302(0xe8),(_0x4bb4cb,_0x59cc14,_0x545103,_0x2ff454)=>{var _0x3a7f2c=_0x16d302;_0x3a7f2c(0xdf)===_0x2ff454?this[_0x3a7f2c(0xde)][_0x3a7f2c(0xf4)](this[_0x3a7f2c(0xef)]):this[_0x3a7f2c(0xde)][_0x3a7f2c(0xf4)](this[_0x3a7f2c(0xda)]),_0x3a7f2c(0xdf)===_0x545103?this[_0x3a7f2c(0xde)][_0x3a7f2c(0xd7)](this[_0x3a7f2c(0xef)]):(this[_0x3a7f2c(0xda)][_0x3a7f2c(0xdb)](_0x545103),this[_0x3a7f2c(0xde)][_0x3a7f2c(0xd7)](this[_0x3a7f2c(0xda)]));});}}class Sn extends _0x51c4c8{constructor(_0x5c80d1,_0x1dce69){var _0x3d6b72=_0x136e10;super(_0x5c80d1),this[_0x3d6b72(0xe0)]({'tag':_0x3d6b72(0xe4),'attributes':{'class':['ck',_0x3d6b72(0xd4)]},'children':[_0x382362(_0x5c80d1,_0x3d6b72(0xec),_0x1dce69[_0x3d6b72(0xed)]())]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x515065=_0xf679;(function(_0x2f1cac,_0xdc9d12){const _0x4724ab=_0xf679,_0x5c264f=_0x2f1cac();while(!![]){try{const _0x54f796=-parseInt(_0x4724ab(0xcc))/0x1*(-parseInt(_0x4724ab(0xbf))/0x2)+parseInt(_0x4724ab(0xc9))/0x3*(-parseInt(_0x4724ab(0xdc))/0x4)+-parseInt(_0x4724ab(0xc3))/0x5*(parseInt(_0x4724ab(0xdb))/0x6)+parseInt(_0x4724ab(0xc6))/0x7+parseInt(_0x4724ab(0xc4))/0x8*(parseInt(_0x4724ab(0xca))/0x9)+-parseInt(_0x4724ab(0xd7))/0xa*(parseInt(_0x4724ab(0xd3))/0xb)+parseInt(_0x4724ab(0xd5))/0xc;if(_0x54f796===_0xdc9d12)break;else _0x5c264f['push'](_0x5c264f['shift']());}catch(_0x13b8d2){_0x5c264f['push'](_0x5c264f['shift']());}}}(_0x2286,0x2beed));import{IconView as _0x1d9bcb,View as _0x58fc2d}from'ckeditor5/src/ui.js';function _0x2286(){const _0x4bc744=['1584OMwuGF','state','1016940nYHDXL','ck-ai-suggestion__content-part-state__label','22310UXscsi','bindTemplate','setState','change:state','20286DZhDNi','155060JMSWyD','span','ck-ai-suggestion__content-part-state','content','outdated','576IIcrej','setTemplate','ck-ai-suggestion__content-part-state_','div','30hUVhGX','2506544zfchXF','ck-hidden','624561RsllPg','AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','bind','21hnmRpF','9kCQKSg','stateIconView','1061MKFlPE','AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','isVisible','accepted','rejected','set'];_0x2286=function(){return _0x4bc744;};return _0x2286();}function _0xf679(_0x2c75ee,_0x1804eb){const _0x2286b8=_0x2286();return _0xf679=function(_0xf6797f,_0x4af6cf){_0xf6797f=_0xf6797f-0xbc;let _0x1ed79d=_0x2286b8[_0xf6797f];return _0x1ed79d;},_0xf679(_0x2c75ee,_0x1804eb);}import{IconBoxWithCross as _0x294089,IconBoxWithCheck as _0x358f8d}from'ckeditor5/src/icons.js';import{getTranslation as _0x1f98bd}from'../../utils/common-translations.js';import'../../../../theme/common/aisuggestioncontentpartstate.css';export const ICON_STATE_MAP={'accepted':_0x358f8d,'rejected':_0x294089,'outdated':_0x294089};export class AISuggestionContentPartStateView extends _0x58fc2d{[_0x515065(0xcb)];constructor(_0x4065b1){const _0x5a05d6=_0x515065;super(_0x4065b1);const _0x4c907a=this[_0x5a05d6(0xd8)];this[_0x5a05d6(0xd2)](_0x5a05d6(0xd4),_0x5a05d6(0xd0)),this[_0x5a05d6(0xd2)](_0x5a05d6(0xcf),!0x0),this[_0x5a05d6(0xcb)]=new StateIconView(),this[_0x5a05d6(0xcb)][_0x5a05d6(0xc8)](_0x5a05d6(0xd4))['to'](this),this[_0x5a05d6(0xc0)]({'tag':_0x5a05d6(0xc2),'attributes':{'class':['ck',_0x5a05d6(0xbc),_0x4c907a['to'](_0x5a05d6(0xd4),_0x41ca0c=>_0x5a05d6(0xc1)+_0x41ca0c),_0x4c907a['if'](_0x5a05d6(0xcf),_0x5a05d6(0xc5),_0xe1420e=>!_0xe1420e)]},'children':[{'tag':_0x5a05d6(0xdd),'attributes':{'class':[_0x5a05d6(0xd6)]},'children':[{'text':_0x4c907a['to'](_0x5a05d6(0xd4),_0xd0dc5b=>{const _0x1f367d=_0x5a05d6;switch(_0xd0dc5b){case _0x1f367d(0xd0):return _0x1f98bd(_0x4065b1,_0x1f367d(0xce));case _0x1f367d(0xd1):return _0x1f98bd(_0x4065b1,_0x1f367d(0xcd));case _0x1f367d(0xbe):return _0x1f98bd(_0x4065b1,_0x1f367d(0xc7));}})}]},this[_0x5a05d6(0xcb)]]});}[_0x515065(0xd9)](_0x5112c0){const _0x533bc6=_0x515065;this[_0x533bc6(0xd4)]=_0x5112c0;}}export class StateIconView extends _0x1d9bcb{constructor(){const _0x285678=_0x515065;super(),this[_0x285678(0xd2)](_0x285678(0xd4),_0x285678(0xd0)),this[_0x285678(0xbd)]=ICON_STATE_MAP[this[_0x285678(0xd4)]],this['on'](_0x285678(0xda),()=>{const _0x2aa48b=_0x285678;this[_0x2aa48b(0xbd)]=ICON_STATE_MAP[this[_0x2aa48b(0xd4)]];});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5a323a=_0x1775;(function(_0x573b02,_0x2bf74a){const _0x2ecfca=_0x1775,_0x10cb08=_0x573b02();while(!![]){try{const _0x24142a=-parseInt(_0x2ecfca(0x1a2))/0x1+-parseInt(_0x2ecfca(0x196))/0x2+-parseInt(_0x2ecfca(0x1ab))/0x3*(parseInt(_0x2ecfca(0x1b1))/0x4)+-parseInt(_0x2ecfca(0x1ac))/0x5*(parseInt(_0x2ecfca(0x197))/0x6)+-parseInt(_0x2ecfca(0x1aa))/0x7*(-parseInt(_0x2ecfca(0x1a6))/0x8)+parseInt(_0x2ecfca(0x19b))/0x9*(parseInt(_0x2ecfca(0x1b4))/0xa)+-parseInt(_0x2ecfca(0x193))/0xb*(-parseInt(_0x2ecfca(0x1b3))/0xc);if(_0x24142a===_0x2bf74a)break;else _0x10cb08['push'](_0x10cb08['shift']());}catch(_0x3c6a6c){_0x10cb08['push'](_0x10cb08['shift']());}}}(_0x303b,0xe03ce));import{ButtonView as _0x372966,ToolbarView as _0x229e7f}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c622c}from'../../utils/common-translations.js';import{IconBoxWithCross as _0x47f634,IconBoxWithCheck as _0x3ac598,IconBoxWithMarker as _0x293998,IconInfo as _0x262fa4}from'ckeditor5/src/icons.js';function _0x1775(_0x15fe9a,_0x44e73b){const _0x303b8b=_0x303b();return _0x1775=function(_0x1775f6,_0x510c57){_0x1775f6=_0x1775f6-0x193;let _0x5a6b69=_0x303b8b[_0x1775f6];return _0x5a6b69;},_0x1775(_0x15fe9a,_0x44e73b);}function _0x303b(){const _0x35f306=['set','9RoqAgp','isEnabled','bind','bindTemplate','isVisible','addMany','AI_SUGGESTION_CONTENT_PART_REJECT','481462PyChGV','execute','AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','setButtonsVisibility','1480GxVoUz','extendTemplate','push','insertSuggestion','39529IJcEvE','1376784tyujlS','255TxWIEz','ck-hidden','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','ck-ai-suggestion-content-part-toolbar','fire','12kolgYi','_applyButton','12rFnxLn','8783590qEvjir','includes','class','items','20978650DAZEVW','AI_SUGGESTION_CONTENT_PART_APPLY','rejectSuggestion','1018722FLWTeV','64014dhCUgv','applySuggestion','_suggestButton'];_0x303b=function(){return _0x35f306;};return _0x303b();}import'../../../../theme/common/aisuggestioncontentparttoolbar.css';export class AISuggestionContentPartToolbarView extends _0x229e7f{[_0x5a323a(0x1b2)];[_0x5a323a(0x199)];constructor(_0x5247bc,_0xd88d3f,_0x5463bf){const _0xb2a2ac=_0x5a323a;super(_0x5247bc);const _0x4dd164=Boolean(_0x5463bf);this[_0xb2a2ac(0x19a)](_0xb2a2ac(0x19c),!_0x4dd164),this[_0xb2a2ac(0x19a)](_0xb2a2ac(0x19f),!0x0),this[_0xb2a2ac(0x1b6)]=_0xb2a2ac(0x1af);const _0x9eaca5=[];if(_0x4dd164){const _0x12955b=new _0x372966(_0x5247bc);_0x12955b[_0xb2a2ac(0x19a)]({'label':_0x1c622c(_0x5247bc,_0xb2a2ac(0x1ae)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x262fa4}),_0x9eaca5[_0xb2a2ac(0x1a8)](_0x12955b);}else{_0xd88d3f[_0xb2a2ac(0x1b5)](_0xb2a2ac(0x198))&&(this[_0xb2a2ac(0x1b2)]=new _0x372966(_0x5247bc),this[_0xb2a2ac(0x1b2)][_0xb2a2ac(0x19a)]({'label':_0x1c622c(_0x5247bc,_0xb2a2ac(0x194)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x3ac598}),this[_0xb2a2ac(0x1b2)][_0xb2a2ac(0x19d)](_0xb2a2ac(0x19c))['to'](this),this[_0xb2a2ac(0x1b2)]['on'](_0xb2a2ac(0x1a3),()=>{const _0x2051f4=_0xb2a2ac;this[_0x2051f4(0x1b0)](_0x2051f4(0x198));}),_0x9eaca5[_0xb2a2ac(0x1a8)](this[_0xb2a2ac(0x1b2)])),_0xd88d3f[_0xb2a2ac(0x1b5)](_0xb2a2ac(0x1a9))&&(this[_0xb2a2ac(0x199)]=new _0x372966(_0x5247bc),this[_0xb2a2ac(0x199)][_0xb2a2ac(0x19a)]({'label':_0x1c622c(_0x5247bc,_0xb2a2ac(0x1a4)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x293998}),this[_0xb2a2ac(0x199)][_0xb2a2ac(0x19d)](_0xb2a2ac(0x19c))['to'](this),this[_0xb2a2ac(0x199)]['on'](_0xb2a2ac(0x1a3),()=>{const _0x36297b=_0xb2a2ac;this[_0x36297b(0x1b0)](_0x36297b(0x1a9));}),_0x9eaca5[_0xb2a2ac(0x1a8)](this[_0xb2a2ac(0x199)]));const _0x9e77ac=new _0x372966(_0x5247bc);_0x9e77ac[_0xb2a2ac(0x19a)]({'label':_0x1c622c(_0x5247bc,_0xb2a2ac(0x1a1)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x47f634}),_0x9e77ac[_0xb2a2ac(0x19d)](_0xb2a2ac(0x19c))['to'](this),_0x9e77ac['on'](_0xb2a2ac(0x1a3),()=>{const _0x189321=_0xb2a2ac;this[_0x189321(0x1b0)](_0x189321(0x195));}),_0x9eaca5[_0xb2a2ac(0x1a8)](_0x9e77ac);}this[_0xb2a2ac(0x1b7)][_0xb2a2ac(0x1a0)](_0x9eaca5);const _0xcca28f=this[_0xb2a2ac(0x19e)];this[_0xb2a2ac(0x1a7)]({'attributes':{'class':[_0xcca28f['if'](_0xb2a2ac(0x19f),_0xb2a2ac(0x1ad),_0x456d6a=>!_0x456d6a)]}});}[_0x5a323a(0x1a5)]({showApplyButton:_0x32bb80,showSuggestButton:_0xb05507}){const _0x4167ed=_0x5a323a;this[_0x4167ed(0x1b2)]&&(this[_0x4167ed(0x1b2)][_0x4167ed(0x19f)]=_0x32bb80),this[_0x4167ed(0x199)]&&(this[_0x4167ed(0x199)][_0x4167ed(0x19f)]=_0xb05507);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x411a52=_0x14b2;(function(_0x19533e,_0x17c132){const _0xa31c9e=_0x14b2,_0x2c2a5e=_0x19533e();while(!![]){try{const _0x4effdd=-parseInt(_0xa31c9e(0x102))/0x1*(parseInt(_0xa31c9e(0x12b))/0x2)+parseInt(_0xa31c9e(0x10b))/0x3*(parseInt(_0xa31c9e(0x10a))/0x4)+-parseInt(_0xa31c9e(0x10f))/0x5*(-parseInt(_0xa31c9e(0x111))/0x6)+-parseInt(_0xa31c9e(0x103))/0x7*(parseInt(_0xa31c9e(0x114))/0x8)+parseInt(_0xa31c9e(0x110))/0x9*(parseInt(_0xa31c9e(0x10e))/0xa)+-parseInt(_0xa31c9e(0x121))/0xb+-parseInt(_0xa31c9e(0x128))/0xc;if(_0x4effdd===_0x17c132)break;else _0x2c2a5e['push'](_0x2c2a5e['shift']());}catch(_0x19a8c3){_0x2c2a5e['push'](_0x2c2a5e['shift']());}}}(_0x3d6e,0x945df));import{View as _0x2208de}from'ckeditor5/src/ui.js';function _0x14b2(_0x3507f9,_0x48afa2){const _0x3d6ed5=_0x3d6e();return _0x14b2=function(_0x14b21f,_0x476542){_0x14b21f=_0x14b21f-0xfa;let _0x573849=_0x3d6ed5[_0x14b21f];return _0x573849;},_0x14b2(_0x3507f9,_0x48afa2);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1b074b}from'../../utils/eventnames.js';import{AISuggestionContentPartHeaderView as _0x4987cd}from'./aisuggestioncontentpartheaderview.js';import{AISuggestionStreamableContentView as _0x23179b}from'./aisuggestionstreamablecontentview.js';export class AISuggestionBodyViewContentPartView extends _0x2208de{[_0x411a52(0x10c)];[_0x411a52(0x11d)];[_0x411a52(0x117)];constructor(_0x23bf63,{part:_0x582ed9,uiIndex:_0x46180f,areActionsDisabled:_0x201f0d,availableActions:_0x16b681}){const _0x593b9f=_0x411a52;super(_0x23bf63);const _0x32ef4f=this[_0x593b9f(0x105)];this[_0x593b9f(0x127)](_0x593b9f(0xfc),_0x593b9f(0x120)),this[_0x593b9f(0x127)](_0x593b9f(0x113),!0x1),this[_0x593b9f(0x127)](_0x593b9f(0x101),!0x1),this[_0x593b9f(0x127)](_0x593b9f(0xfd),!0x1),this[_0x593b9f(0x127)](_0x593b9f(0x11f),!0x1);const _0x2510c0=()=>{const _0x1e05aa=_0x593b9f;this[_0x1e05aa(0x11f)]=this[_0x1e05aa(0x113)]&&_0x1e05aa(0x120)==this[_0x1e05aa(0xfc)]&&!_0x201f0d;};this['on'](_0x593b9f(0x100),_0x2510c0),this['on'](_0x593b9f(0x11c),_0x2510c0),_0x2510c0(),this[_0x593b9f(0x10c)]=this[_0x593b9f(0xff)](),this[_0x593b9f(0x11d)]=new _0x4987cd(_0x23bf63,{'part':_0x582ed9,'uiIndex':_0x46180f,'availableActions':_0x16b681,'areActionsDisabled':_0x201f0d}),this[_0x593b9f(0x11d)][_0x593b9f(0x104)](_0x593b9f(0x11f),_0x593b9f(0xfc))['to'](this),this[_0x593b9f(0x11d)][_0x593b9f(0x124)](..._0x1b074b)['to'](this),this[_0x593b9f(0x117)]=new _0x23179b(_0x23bf63),this[_0x593b9f(0x10c)][_0x593b9f(0x11b)]([this[_0x593b9f(0x11d)],this[_0x593b9f(0x117)]]),this[_0x593b9f(0x108)]({'tag':_0x593b9f(0x106),'attributes':{'class':['ck',_0x593b9f(0x116),_0x32ef4f['to'](_0x593b9f(0xfc),_0x4aef53=>_0x593b9f(0x107)+_0x4aef53),_0x32ef4f['if'](_0x593b9f(0x11f),_0x593b9f(0x11a)),_0x32ef4f['if'](_0x593b9f(0xfd),_0x593b9f(0x109)),_0x32ef4f['if'](_0x593b9f(0x101),_0x593b9f(0xfe),_0x596f4a=>!_0x596f4a)]},'children':this[_0x593b9f(0x10c)],'on':{'mouseenter':_0x32ef4f['to'](()=>{const _0x3e8a65=_0x593b9f;this[_0x3e8a65(0x11f)]&&this[_0x3e8a65(0x126)](_0x3e8a65(0x10d),{'index':_0x582ed9[_0x3e8a65(0x123)]});}),'mouseleave':_0x32ef4f['to'](()=>{const _0x1e63af=_0x593b9f;this[_0x1e63af(0x11f)]&&this[_0x1e63af(0x126)](_0x1e63af(0x118),{'index':_0x582ed9[_0x1e63af(0x123)]});}),'click':_0x32ef4f['to'](_0x3ecc12=>{const _0x777acf=_0x593b9f,_0x12dc0d=_0x3ecc12[_0x777acf(0x119)];this[_0x777acf(0x11f)]&&!this[_0x777acf(0x11d)][_0x777acf(0x129)][_0x777acf(0x112)][_0x777acf(0xfa)](_0x12dc0d)&&this[_0x777acf(0x126)](_0x777acf(0x122),{'index':_0x582ed9[_0x777acf(0x123)]});})}});}async[_0x411a52(0x115)]({part:_0x4ec8f3,renderingStrategy:_0x5b7545,showUnchangedParts:_0x3459aa=!0x1,abortSignal:_0x1aaa90}){const _0x34f6f4=_0x411a52;this[_0x34f6f4(0x11e)]=_0x4ec8f3,this[_0x34f6f4(0x101)]=this[_0x34f6f4(0x11e)][_0x34f6f4(0x125)]||_0x3459aa,this[_0x34f6f4(0x101)]&&await this[_0x34f6f4(0x117)][_0x34f6f4(0xfb)]({'part':_0x4ec8f3,'renderingStrategy':_0x5b7545,'abortSignal':_0x1aaa90});}[_0x411a52(0x12a)](){const _0xf5e535=_0x411a52;this[_0xf5e535(0x113)]=!0x0;}}function _0x3d6e(){const _0x43179a=['1157GHiWID','7DWQPGg','bind','bindTemplate','div','ck-ai-suggestion__body__content-part_','setTemplate','ck-ai-suggestion__body__content-part_active','140DjaCIl','19365HHOABP','_children','mouseOverSuggestion','30TGfynd','469330awrtlC','2875563oxBFFB','54ZITHmv','element','isDone','7867376OqfiUc','updateContent','ck-ai-suggestion__body__content-part','_streamableContentView','mouseLeaveSuggestion','target','ck-ai-suggestion__body__content-part_enabled','addMany','change:isDone','_headerView','partDefinition','isEnabled','pending','1637449JDJRrt','showChangeInText','index','delegate','hasChanges','fire','set','1027392sErdtf','toolbarView','markAsDone','352dUIImc','contains','update','state','isActive','ck-hidden','createCollection','change:state','isVisible'];_0x3d6e=function(){return _0x43179a;};return _0x3d6e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x401b(){const _0x214d8c=['1610235MYqLnp','showDiff','showChangesToggleView','2TjGVLv','filter','children','ck-hidden','bind','remove','fire','ck-ai-suggestion__header','1372068cNOgUd','setTemplate','add','AI_SUGGESTION_BUTTON_SHOW_CHANGES','725526StJSsA','127793BpTIbR','execute','div','isShowChangesToggleVisible','4ZlazIS','render','isVisible','iconView','content','isOn','5228024eSUBoD','showHeader','span','3733226sgKHfC','set','toggleShowChanges','106839JXhEag','icon','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','AI_SUGGESTION_HEADER_TITLE'];_0x401b=function(){return _0x214d8c;};return _0x401b();}const _0x165714=_0x20d2;(function(_0x23987b,_0x165b5a){const _0x1a09d2=_0x20d2,_0x2f131d=_0x23987b();while(!![]){try{const _0x4c7176=-parseInt(_0x1a09d2(0x8e))/0x1*(parseInt(_0x1a09d2(0x81))/0x2)+-parseInt(_0x1a09d2(0x9e))/0x3*(-parseInt(_0x1a09d2(0x92))/0x4)+parseInt(_0x1a09d2(0xa2))/0x5+parseInt(_0x1a09d2(0x89))/0x6+parseInt(_0x1a09d2(0x9b))/0x7+-parseInt(_0x1a09d2(0x98))/0x8+parseInt(_0x1a09d2(0x8d))/0x9;if(_0x4c7176===_0x165b5a)break;else _0x2f131d['push'](_0x2f131d['shift']());}catch(_0x52591f){_0x2f131d['push'](_0x2f131d['shift']());}}}(_0x401b,0x6649e));import{getTranslation as _0x459f71}from'../../utils/common-translations.js';import{ButtonView as _0x837eaf,IconView as _0x5e8928,View as _0x5b2fc9}from'ckeditor5/src/ui.js';import{IconDocument as _0x2d5791,IconShowChangesOff as _0x4d7cf5,IconShowChangesOn as _0x12489e}from'ckeditor5/src/icons.js';function _0x20d2(_0x302121,_0x36b968){const _0x401b6f=_0x401b();return _0x20d2=function(_0x20d2cf,_0x12dff6){_0x20d2cf=_0x20d2cf-0x7f;let _0x315620=_0x401b6f[_0x20d2cf];return _0x315620;},_0x20d2(_0x302121,_0x36b968);}export class AISuggestionHeaderView extends _0x5b2fc9{[_0x165714(0x80)];constructor(_0x4ddb12,_0x6b03d5){const _0x212349=_0x165714;super(_0x4ddb12),this[_0x212349(0x9c)](_0x212349(0x91),!0x0),this[_0x212349(0x80)]=new ShowChangesToggleView(_0x4ddb12),this[_0x212349(0x80)][_0x212349(0x9c)]({'class':_0x212349(0xa0),'label':_0x459f71(_0x4ddb12,_0x212349(0x8c)),'withText':!0x0}),this[_0x212349(0x80)][_0x212349(0x97)]=_0x6b03d5[_0x212349(0x7f)],this[_0x212349(0x80)][_0x212349(0x85)](_0x212349(0x94))['to'](this,_0x212349(0x91)),this[_0x212349(0x80)][_0x212349(0x85)](_0x212349(0x9f))['to'](this[_0x212349(0x80)],_0x212349(0x97),_0x484d3c=>_0x484d3c?_0x12489e:_0x4d7cf5),this[_0x212349(0x80)]['on'](_0x212349(0x8f),()=>{const _0x516ee3=_0x212349;this[_0x516ee3(0x80)][_0x516ee3(0x97)]=!this[_0x516ee3(0x80)][_0x516ee3(0x97)],this[_0x516ee3(0x87)](_0x516ee3(0x9d),{'isOn':this[_0x516ee3(0x80)][_0x516ee3(0x97)]});});const _0x8a0a10=new _0x5e8928();_0x8a0a10[_0x212349(0x96)]=_0x2d5791,this[_0x212349(0x8a)]({'tag':_0x212349(0x90),'attributes':{'class':['ck',_0x212349(0x88),!0x1===_0x6b03d5[_0x212349(0x99)]?_0x212349(0x84):null][_0x212349(0x82)](Boolean)},'children':[_0x8a0a10,{'tag':_0x212349(0x9a),'children':[_0x459f71(_0x4ddb12,_0x212349(0xa1))]},this[_0x212349(0x80)]]});}}export class ShowChangesToggleView extends _0x837eaf{[_0x165714(0x93)](){const _0x33b74c=_0x165714;super[_0x33b74c(0x93)](),this[_0x33b74c(0x83)][_0x33b74c(0x86)](this[_0x33b74c(0x95)]),this[_0x33b74c(0x83)][_0x33b74c(0x8b)](this[_0x33b74c(0x95)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x410187,_0x1bba07){const _0x54cf97=_0x1678,_0x1e90eb=_0x410187();while(!![]){try{const _0x435fec=parseInt(_0x54cf97(0x88))/0x1+parseInt(_0x54cf97(0x86))/0x2+-parseInt(_0x54cf97(0x7b))/0x3+parseInt(_0x54cf97(0x87))/0x4*(parseInt(_0x54cf97(0x7e))/0x5)+-parseInt(_0x54cf97(0x81))/0x6*(-parseInt(_0x54cf97(0x82))/0x7)+-parseInt(_0x54cf97(0x7f))/0x8+parseInt(_0x54cf97(0x77))/0x9;if(_0x435fec===_0x1bba07)break;else _0x1e90eb['push'](_0x1e90eb['shift']());}catch(_0x5ea25d){_0x1e90eb['push'](_0x1e90eb['shift']());}}}(_0x2e8b,0xc2d10));function _0x2e8b(){const _0x547591=['span','698358atPOBn','56Aipquy','106634dKczDV','ck-ai-suggestion__loader-text','bindTemplate','AI_CHAT_IS_WRITING','22623372ryFxDI','ck-hidden','locale','div','3022200DzpdpX','setTemplate','isVisible','74105XMdGbj','12323560fdxUfL','small','337596yvHTvL','21Pdurfz','ck-ai-suggestion__loader','set'];_0x2e8b=function(){return _0x547591;};return _0x2e8b();}import{View as _0x16a06a}from'ckeditor5/src/ui.js';import{AISpinnerView as _0x39fc4b}from'../aispinner.js';function _0x1678(_0x17d14b,_0x1f5d15){const _0x2e8b03=_0x2e8b();return _0x1678=function(_0x167897,_0xfe2533){_0x167897=_0x167897-0x75;let _0x171fb5=_0x2e8b03[_0x167897];return _0x171fb5;},_0x1678(_0x17d14b,_0x1f5d15);}import{getTranslation as _0x4aa275}from'../../utils/common-translations.js';export class AISuggestionLoaderView extends _0x16a06a{constructor(_0x408015){const _0xf28069=_0x1678;super(_0x408015),this[_0xf28069(0x84)](_0xf28069(0x7d),!0x0);const _0x44aeb8=new _0x39fc4b(_0xf28069(0x80));_0x44aeb8[_0xf28069(0x7d)]=!0x0;const _0x285084=new _0x16a06a(this[_0xf28069(0x79)]);_0x285084[_0xf28069(0x7c)]({'tag':_0xf28069(0x85),'attributes':{'class':['ck',_0xf28069(0x89)]},'children':[_0x4aa275(this[_0xf28069(0x79)],_0xf28069(0x76))]}),this[_0xf28069(0x7c)]({'tag':_0xf28069(0x7a),'attributes':{'class':['ck',_0xf28069(0x83),this[_0xf28069(0x75)]['if'](_0xf28069(0x7d),_0xf28069(0x78),_0x2d87e7=>!_0x2d87e7)]},'children':[_0x44aeb8,_0x285084]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4a30(_0x4227d6,_0x5ae2dd){var _0x3a3bf5=_0x3a3b();return _0x4a30=function(_0x4a3012,_0x3c90bc){_0x4a3012=_0x4a3012-0x84;var _0x1a27b7=_0x3a3bf5[_0x4a3012];return _0x1a27b7;},_0x4a30(_0x4227d6,_0x5ae2dd);}var _0x30c574=_0x4a30;(function(_0x37b524,_0x2f0fdb){var _0x16b3cc=_0x4a30,_0x3ec944=_0x37b524();while(!![]){try{var _0x24c809=-parseInt(_0x16b3cc(0x96))/0x1*(parseInt(_0x16b3cc(0x9c))/0x2)+parseInt(_0x16b3cc(0x87))/0x3*(parseInt(_0x16b3cc(0x8e))/0x4)+parseInt(_0x16b3cc(0x98))/0x5*(-parseInt(_0x16b3cc(0x9f))/0x6)+-parseInt(_0x16b3cc(0x9a))/0x7*(-parseInt(_0x16b3cc(0x8a))/0x8)+-parseInt(_0x16b3cc(0x8c))/0x9*(-parseInt(_0x16b3cc(0x95))/0xa)+-parseInt(_0x16b3cc(0x9d))/0xb*(-parseInt(_0x16b3cc(0x89))/0xc)+-parseInt(_0x16b3cc(0x93))/0xd;if(_0x24c809===_0x2f0fdb)break;else _0x3ec944['push'](_0x3ec944['shift']());}catch(_0x2ee133){_0x3ec944['push'](_0x3ec944['shift']());}}}(_0x3a3b,0xb5c2b));import{View as _0x56b03f}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x4ebf3a}from'../../utils/htmlstreamer.js';import{serialize as _0x2e1b3e}from'../../utils/htmlparser.js';import'../../../../theme/common/aisuggestionstreamablecontent.css';function _0x3a3b(){var _0x311bce=['ck-reset_all-excluded','9VrUCWb','streaming','666276CSuzUY','ck-content','innerHTML','setTemplate','clear','14278589DCmrMo','ck-ai-suggestion-streamable-content','11169460wPTynQ','692023nLftKZ','reset','1061035fQLCAU','htmlStreamer','1897zCWIEW','div','4NLLRot','44xZnfLY','element','6VpsDVg','update','content','stream','6nZFMMT','animation:\x20ck-html-streamer-fade-in\x20.5s','1506108rPPvcS','43896BAjzYL'];_0x3a3b=function(){return _0x311bce;};return _0x3a3b();}export class AISuggestionStreamableContentView extends _0x56b03f{[_0x30c574(0x99)];constructor(_0x54521b){var _0x38cb45=_0x30c574;super(_0x54521b),this[_0x38cb45(0x99)]=new _0x4ebf3a({'textNodeStyle':_0x38cb45(0x88),'delay':0x14}),this[_0x38cb45(0x91)]({'tag':_0x38cb45(0x9b),'attributes':{'class':['ck',_0x38cb45(0x8f),_0x38cb45(0x8b),_0x38cb45(0x94)]}});}async[_0x30c574(0x84)]({part:_0x2ee175,renderingStrategy:_0x26655b,abortSignal:_0x5c2d20}){var _0x587c42=_0x30c574;_0x587c42(0x8d)===_0x26655b?await this[_0x587c42(0x99)][_0x587c42(0x86)]({'document':_0x2ee175[_0x587c42(0x85)],'targetElement':this[_0x587c42(0x9e)],'abortSignal':_0x5c2d20}):this[_0x587c42(0x9e)][_0x587c42(0x90)]=_0x2e1b3e(_0x2ee175[_0x587c42(0x85)]);}[_0x30c574(0x92)](){var _0x4bc8c7=_0x30c574;this[_0x4bc8c7(0x99)][_0x4bc8c7(0x97)](),this[_0x4bc8c7(0x9e)][_0x4bc8c7(0x90)]='';}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46ee6a=_0x5ed7;(function(_0x3b90cd,_0x4713a5){const _0x816087=_0x5ed7,_0x45c67b=_0x3b90cd();while(!![]){try{const _0x1fed86=-parseInt(_0x816087(0x226))/0x1+-parseInt(_0x816087(0x20e))/0x2*(parseInt(_0x816087(0x227))/0x3)+parseInt(_0x816087(0x222))/0x4*(-parseInt(_0x816087(0x21e))/0x5)+parseInt(_0x816087(0x213))/0x6*(parseInt(_0x816087(0x1fb))/0x7)+-parseInt(_0x816087(0x20c))/0x8*(-parseInt(_0x816087(0x22e))/0x9)+-parseInt(_0x816087(0x223))/0xa*(-parseInt(_0x816087(0x205))/0xb)+parseInt(_0x816087(0x203))/0xc*(parseInt(_0x816087(0x211))/0xd);if(_0x1fed86===_0x4713a5)break;else _0x45c67b['push'](_0x45c67b['shift']());}catch(_0x241a55){_0x45c67b['push'](_0x45c67b['shift']());}}}(_0x23fc,0xa5097));import{View as _0x287c43,ButtonView as _0x34c396,IconView as _0x11fdb4,BalloonPanelView as _0x12e04d}from'ckeditor5/src/ui.js';import{IconWeb as _0x450f64}from'@ckeditor/ckeditor5-icons';function _0x5ed7(_0x5a9c32,_0x426b5b){const _0x23fc78=_0x23fc();return _0x5ed7=function(_0x5ed775,_0x97dafe){_0x5ed775=_0x5ed775-0x1f0;let _0x499ee7=_0x23fc78[_0x5ed775];return _0x499ee7;},_0x5ed7(_0x5a9c32,_0x426b5b);}import{getTranslation as _0xfaa913}from'../../utils/common-translations.js';export class AIWebSourcesView extends _0x287c43{[_0x46ee6a(0x1f2)];[_0x46ee6a(0x208)];[_0x46ee6a(0x225)];constructor(_0x3e7d6b,_0x183509){const _0x35d68f=_0x46ee6a;super(_0x3e7d6b),this[_0x35d68f(0x225)]=_0x183509,this[_0x35d68f(0x1f2)]=this[_0x35d68f(0x1f5)](),this[_0x35d68f(0x1fc)](_0x35d68f(0x206),!0x1),this[_0x35d68f(0x215)]({'tag':_0x35d68f(0x1f1),'attributes':{'class':['ck',_0x35d68f(0x233),this[_0x35d68f(0x201)]['if'](_0x35d68f(0x206),_0x35d68f(0x22c),_0x32ce3=>!_0x32ce3)]},'children':this[_0x35d68f(0x1f2)]});const _0x1a3d70=new _0x287c43(this[_0x35d68f(0x20a)]),_0x18efc8=new _0x11fdb4();_0x18efc8[_0x35d68f(0x1f0)]=_0x450f64,_0x1a3d70[_0x35d68f(0x215)]({'tag':_0x35d68f(0x1f1),'attributes':{'class':['ck',_0x35d68f(0x1ff)]},'children':[_0x18efc8,{'tag':_0x35d68f(0x204),'children':[{'text':_0xfaa913(this[_0x35d68f(0x20a)],_0x35d68f(0x21a))}]}]}),this[_0x35d68f(0x1f2)][_0x35d68f(0x221)](_0x1a3d70),this[_0x35d68f(0x236)](_0x3e7d6b);}[_0x46ee6a(0x202)](_0xa9aae1){const _0x49408f=_0x46ee6a;this[_0x49408f(0x1f2)][_0x49408f(0x221)](new AIWebSourceView(this[_0x49408f(0x20a)],_0xa9aae1,this[_0x49408f(0x208)]));}[_0x46ee6a(0x236)](_0xa8e7d7){const _0x2f2160=_0x46ee6a;this[_0x2f2160(0x208)]=new _0x12e04d(_0xa8e7d7),this[_0x2f2160(0x208)][_0x2f2160(0x234)]({'attributes':{'class':[_0x2f2160(0x1f7)]}}),this[_0x2f2160(0x225)][_0x2f2160(0x221)](this[_0x2f2160(0x208)]);}}export class AIWebSourceView extends _0x34c396{[_0x46ee6a(0x208)];[_0x46ee6a(0x229)];constructor(_0x56bee3,_0x1ca524,_0x47b185){const _0x15d45b=_0x46ee6a;super(_0x56bee3),this[_0x15d45b(0x229)]=_0x1ca524,this[_0x15d45b(0x208)]=_0x47b185,this[_0x15d45b(0x1fc)]({'label':_0x1ca524[_0x15d45b(0x224)],'class':[_0x15d45b(0x21c)],'withText':!0x0});const _0x2c44da=this[_0x15d45b(0x201)];if(this[_0x15d45b(0x234)]({'on':{'click':_0x2c44da['to'](()=>{const _0x348c3d=_0x15d45b;window[_0x348c3d(0x21b)](_0x1ca524[_0x348c3d(0x22d)],_0x348c3d(0x1fd));}),'mouseenter':_0x2c44da['to'](()=>{const _0x240b01=_0x15d45b;this[_0x240b01(0x20b)]();}),'mouseleave':_0x2c44da['to'](()=>{const _0x563601=_0x15d45b;this[_0x563601(0x217)]();})}}),_0x1ca524[_0x15d45b(0x22a)]){const _0x58a762=new _0x287c43(_0x56bee3);_0x58a762[_0x15d45b(0x215)]({'tag':_0x15d45b(0x232),'attributes':{'src':_0x1ca524[_0x15d45b(0x22a)]||_0x450f64,'alt':_0x1ca524[_0x15d45b(0x224)],'class':[_0x15d45b(0x235)]}}),this[_0x15d45b(0x1f2)][_0x15d45b(0x221)](_0x58a762);}else this[_0x15d45b(0x1fc)](_0x15d45b(0x216),_0x450f64);}[_0x46ee6a(0x22f)](_0x3e0bef,_0x2a2c57){const _0x4f7e07=_0x46ee6a,_0x57382e=new _0x287c43(_0x3e0bef),_0x3cd26a=[];let _0x347ada;_0x2a2c57?.[_0x4f7e07(0x22a)]?(_0x347ada=new _0x287c43(_0x3e0bef),_0x347ada[_0x4f7e07(0x215)]({'tag':_0x4f7e07(0x232),'attributes':{'src':_0x2a2c57[_0x4f7e07(0x22a)],'alt':_0x2a2c57[_0x4f7e07(0x224)],'class':[_0x4f7e07(0x231)]}})):(_0x347ada=new _0x11fdb4(),_0x347ada[_0x4f7e07(0x1f0)]=_0x450f64,_0x347ada[_0x4f7e07(0x234)]({'attributes':{'alt':_0x2a2c57[_0x4f7e07(0x224)],'class':[_0x4f7e07(0x231)]}})),_0x3cd26a[_0x4f7e07(0x212)](_0x347ada);const _0x353971=new _0x287c43(_0x3e0bef);_0x353971[_0x4f7e07(0x215)]({'tag':'a','attributes':{'class':[_0x4f7e07(0x1f8)],'href':_0x2a2c57[_0x4f7e07(0x22d)]},'children':[{'text':new URL(_0x2a2c57[_0x4f7e07(0x22d)])?.[_0x4f7e07(0x210)]}]}),_0x3cd26a[_0x4f7e07(0x212)](_0x353971);const _0x3c0141=new _0x287c43(_0x3e0bef);_0x3c0141[_0x4f7e07(0x215)]({'tag':_0x4f7e07(0x1f1),'attributes':{'class':[_0x4f7e07(0x20f)]},'children':_0x3cd26a});const _0x310b8e=new _0x287c43(_0x3e0bef);return _0x310b8e[_0x4f7e07(0x215)]({'tag':_0x4f7e07(0x204),'attributes':{'class':[_0x4f7e07(0x20f),_0x4f7e07(0x1f6)]},'children':[{'text':_0x2a2c57[_0x4f7e07(0x224)][_0x4f7e07(0x1f3)]>0x190?_0x2a2c57[_0x4f7e07(0x224)][_0x4f7e07(0x200)](0x0,0x190)+_0x4f7e07(0x230):_0x2a2c57[_0x4f7e07(0x224)]}]}),_0x57382e[_0x4f7e07(0x215)]({'tag':_0x4f7e07(0x1f1),'attributes':{'class':['ck',_0x4f7e07(0x20d)]},'children':[_0x3c0141,_0x310b8e]}),_0x57382e;}[_0x46ee6a(0x20b)](){const _0x35e700=_0x46ee6a;this[_0x35e700(0x220)](),this[_0x35e700(0x208)][_0x35e700(0x1f4)]({'target':this[_0x35e700(0x21f)],'positions':[_0x12e04d[_0x35e700(0x219)][_0x35e700(0x21d)],_0x12e04d[_0x35e700(0x219)][_0x35e700(0x1fe)],_0x12e04d[_0x35e700(0x219)][_0x35e700(0x218)]],'limiter':document[_0x35e700(0x207)](_0x35e700(0x209))}),this[_0x35e700(0x208)][_0x35e700(0x22b)]();}[_0x46ee6a(0x217)](){const _0x1ad607=_0x46ee6a;this[_0x1ad607(0x208)][_0x1ad607(0x214)]();}[_0x46ee6a(0x220)](){const _0x55c6e6=_0x46ee6a;this[_0x55c6e6(0x208)][_0x55c6e6(0x1f0)][_0x55c6e6(0x1f9)](0x0)?.[_0x55c6e6(0x228)](),this[_0x55c6e6(0x208)][_0x55c6e6(0x1f0)][_0x55c6e6(0x1fa)]();const _0x45c1a4=this[_0x55c6e6(0x22f)](this[_0x55c6e6(0x20a)],this[_0x55c6e6(0x229)]);this[_0x55c6e6(0x208)][_0x55c6e6(0x1f0)][_0x55c6e6(0x221)](_0x45c1a4);}}function _0x23fc(){const _0x54bd1e=['ck-ai-web-source__tooltip-url','get','clear','21sbLGDE','set','_blank','northArrowSouthWest','ck-ai-web-sources__header','substring','bindTemplate','addSource','1608wrlOSV','span','55lGElCW','isVisible','querySelector','balloonPanelView','.ck-ai-chat','locale','_showTooltip','5816zjNHnG','ck-ai-web-source__tooltip','38AGaLMG','ck-ai-web-source__tooltip-row','hostname','70291SeLXSS','push','1153866FzneAO','hide','setTemplate','icon','_hideTooltip','northArrowSouthEast','defaultPositions','AI_CHAT_SOURCES_HEADER','open','ck\x20ck-ai-web-source','northArrowSouth','20CWDMaK','element','_updateTooltipContent','add','168996FPiGiU','1339050PQKDOt','title','bodyCollection','612614hXQuhf','115614klPYHv','destroy','source','favicon','show','ck-hidden','url','2709ucPRBA','_createTooltipContentView','...','ck-ai-web-source__tooltip-image','img','ck-ai-web-sources','extendTemplate','ck-ai-web-source__image','_setupBalloonPanel','content','div','children','length','pin','createCollection','ck-ai-web-source__tooltip-title','ck-ai-web-source__tooltip-balloon'];_0x23fc=function(){return _0x54bd1e;};return _0x23fc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ce927=_0x9a27;function _0x2e73(){const _0x48092a=['createAt','getContent','910cpNEBK','createFromPath','createBefore','899808BQfoXL','document','6teGFDn','isEqual','66649DQSLjA','getNudgedToWordBoundary','forEach','length','nextNode','4YrgieA','reverse','lastChild','start','previousNode','slice','316101pnbOJG','firstChild','path','827262SGSCSG','parent','includes','152040zMHarx','push','1BehNnU','data','406502OHMevk','1198575tpaplG','end','createAfter'];_0x2e73=function(){return _0x48092a;};return _0x2e73();}(function(_0x316c11,_0x5c735b){const _0x27e0e5=_0x9a27,_0x2c25c7=_0x316c11();while(!![]){try{const _0x41f899=-parseInt(_0x27e0e5(0x8c))/0x1*(parseInt(_0x27e0e5(0x8e))/0x2)+parseInt(_0x27e0e5(0xa6))/0x3*(parseInt(_0x27e0e5(0xa0))/0x4)+parseInt(_0x27e0e5(0x8a))/0x5*(parseInt(_0x27e0e5(0x99))/0x6)+-parseInt(_0x27e0e5(0x8f))/0x7+-parseInt(_0x27e0e5(0x97))/0x8+-parseInt(_0x27e0e5(0xa9))/0x9+parseInt(_0x27e0e5(0x94))/0xa*(parseInt(_0x27e0e5(0x9b))/0xb);if(_0x41f899===_0x5c735b)break;else _0x2c25c7['push'](_0x2c25c7['shift']());}catch(_0x9e6512){_0x2c25c7['push'](_0x2c25c7['shift']());}}}(_0x2e73,0x1a6f2));import{DocumentPosition as _0x319c6d}from'./documentposition.js';import{clone as _0x2fd67f,getParents as _0x533853,Document as _0x4a645a,Text as _0x474190,isTag as _0x14c720,isText as _0x403a4a,replaceElement as _0x1b5fad,removeElement as _0x2b95ad}from'./htmlparser.js';function _0x9a27(_0x9f564c,_0x379cc7){const _0x2e73d3=_0x2e73();return _0x9a27=function(_0x9a277e,_0x5ca1e4){_0x9a277e=_0x9a277e-0x88;let _0x32c4d8=_0x2e73d3[_0x9a277e];return _0x32c4d8;},_0x9a27(_0x9f564c,_0x379cc7);}export class DocumentRange{[_0x1ce927(0xa3)];[_0x1ce927(0x90)];constructor(_0x16a7d5,_0x50c286){const _0xe8eb8c=_0x1ce927;this[_0xe8eb8c(0xa3)]=_0x16a7d5,this[_0xe8eb8c(0x90)]=_0x50c286;}[_0x1ce927(0x9a)](_0x54329f){const _0x117178=_0x1ce927;return this==_0x54329f||this[_0x117178(0xa3)][_0x117178(0x9a)](_0x54329f[_0x117178(0xa3)])&&this[_0x117178(0x90)][_0x117178(0x9a)](_0x54329f[_0x117178(0x90)]);}[_0x1ce927(0x9c)](){const _0x12e38b=_0x1ce927;return new DocumentRange(this[_0x12e38b(0xa3)][_0x12e38b(0x9c)](_0x12e38b(0xa3)),this[_0x12e38b(0x90)][_0x12e38b(0x9c)](_0x12e38b(0x90)));}[_0x1ce927(0x93)](){const _0x643f15=_0x1ce927,_0x385798=_0x2fd67f(this[_0x643f15(0xa3)][_0x643f15(0x98)]),_0x1ede5b=_0x319c6d[_0x643f15(0x95)](_0x385798,this[_0x643f15(0xa3)][_0x643f15(0xa8)]),_0x45ca19=_0x319c6d[_0x643f15(0x95)](_0x385798,this[_0x643f15(0x90)][_0x643f15(0xa8)]);let _0x54adb7,_0x469514;if(_0x403a4a(_0x1ede5b[_0x643f15(0x88)])){const _0x444eba=_0x1ede5b[_0x643f15(0xa8)][_0x1ede5b[_0x643f15(0xa8)][_0x643f15(0x9e)]-0x1],_0x164e9b=new _0x474190(_0x1ede5b[_0x643f15(0x88)][_0x643f15(0x8d)][_0x643f15(0xa5)](_0x444eba));_0x1b5fad(_0x1ede5b[_0x643f15(0x88)],_0x164e9b),_0x54adb7=_0x164e9b;}else _0x54adb7=_0x1ede5b[_0x643f15(0x9f)];if(_0x403a4a(_0x45ca19[_0x643f15(0x88)])){const _0x9fedbc=_0x45ca19[_0x643f15(0xa8)][_0x45ca19[_0x643f15(0xa8)][_0x643f15(0x9e)]-0x1],_0x4c1235=new _0x474190(_0x45ca19[_0x643f15(0x88)][_0x643f15(0x8d)][_0x643f15(0xa5)](0x0,_0x9fedbc));_0x1b5fad(_0x45ca19[_0x643f15(0x88)],_0x4c1235),_0x469514=_0x4c1235;}else _0x469514=_0x45ca19[_0x643f15(0xa4)];if(!(_0x54adb7&&_0x469514&&_0x385798[_0x643f15(0xa7)]&&_0x385798[_0x643f15(0xa2)]))return new _0x4a645a([]);const _0x1eab0e=_0x533853(_0x54adb7),_0x26f4b5=_0x533853(_0x469514),_0x4af24c=[],_0x2f82c0=[];let _0x4b3959=_0x385798[_0x643f15(0xa7)];for(;_0x4b3959&&_0x4b3959!==_0x54adb7;){let _0x9afcef;_0x1eab0e[_0x643f15(0x89)](_0x4b3959)||_0x4af24c[_0x643f15(0x8b)](_0x4b3959),_0x9afcef=_0x14c720(_0x4b3959)?_0x319c6d[_0x643f15(0x92)](_0x385798,_0x4b3959,_0x643f15(0xa3)):_0x319c6d[_0x643f15(0x91)](_0x385798,_0x4b3959),_0x4b3959=_0x9afcef?_0x9afcef[_0x643f15(0x9f)]:null;}for(_0x4b3959=_0x385798[_0x643f15(0xa2)];_0x4b3959&&_0x4b3959!==_0x469514;){let _0x50fee7;_0x26f4b5[_0x643f15(0x89)](_0x4b3959)||_0x2f82c0[_0x643f15(0x8b)](_0x4b3959),_0x50fee7=_0x14c720(_0x4b3959)?_0x319c6d[_0x643f15(0x92)](_0x385798,_0x4b3959,_0x643f15(0x90)):_0x319c6d[_0x643f15(0x96)](_0x385798,_0x4b3959),_0x4b3959=_0x50fee7?_0x50fee7[_0x643f15(0xa4)]:null;}return _0x4af24c[_0x643f15(0x9d)](_0x394c84=>{_0x2b95ad(_0x394c84);}),_0x2f82c0[_0x643f15(0xa1)]()[_0x643f15(0x9d)](_0x20689b=>{_0x2b95ad(_0x20689b);}),_0x385798;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x158e(){const _0x3b7d01=['node','markers','filter','71068IFeluo','shift','operationsA','oldRange','get','type','history','525825gLmwHc','removed','marker','version','data-id','getDocumentContext','756066BGdMNd','name','getDiff','document','11188cxzSsF','anchorId','length','map','getOperations','previousSibling','documentContextContent','new','cloneNode','1714104uoQspW','model','173793NogKGS','182377xjgruh','getRange','content'];_0x158e=function(){return _0x3b7d01;};return _0x158e();}(function(_0x20202a,_0x806043){const _0xf998c9=_0x4867,_0x2f5ce2=_0x20202a();while(!![]){try{const _0x361c6a=-parseInt(_0xf998c9(0x182))/0x1+-parseInt(_0xf998c9(0x165))/0x2+parseInt(_0xf998c9(0x181))/0x3+parseInt(_0xf998c9(0x176))/0x4+-parseInt(_0xf998c9(0x16c))/0x5+parseInt(_0xf998c9(0x172))/0x6+parseInt(_0xf998c9(0x17f))/0x7;if(_0x361c6a===_0x806043)break;else _0x2f5ce2['push'](_0x2f5ce2['shift']());}catch(_0x2fdd9d){_0x2f5ce2['push'](_0x2f5ce2['shift']());}}}(_0x158e,0x1a7f7));import{transformOperationSets as _0x1146fa}from'ckeditor5/src/engine.js';import{append as _0x39d648,findByAttribute as _0x24f57b,prependChild as _0x144914,removeElement as _0x467126,serialize as _0x30c33c}from'./htmlparser.js';function _0x4867(_0xdad92,_0x371f41){const _0x158e56=_0x158e();return _0x4867=function(_0x48678e,_0x1bfce5){_0x48678e=_0x48678e-0x164;let _0x49bafc=_0x158e56[_0x48678e];return _0x49bafc;},_0x4867(_0xdad92,_0x371f41);}export function getOperationsFromReply({editor:_0x5bc320,interaction:_0x40a4ad,reply:_0x2aed66,groups:_0x5017f0,transform:_0x44b672,documentCompare:_0x14c6bc,documentCompareOptions:_0x3a9d6d}){const _0x3c0fe5=_0x4867,_0x247213=_0x40a4ad[_0x3c0fe5(0x171)]();if(!_0x247213)return[];const _0x427eca=_0x247213[_0x3c0fe5(0x184)],_0x2b97c1=_0x247213[_0x3c0fe5(0x16f)],_0x51149b=_0x2aed66[_0x3c0fe5(0x17c)][_0x3c0fe5(0x17e)](!0x0);for(const {changes:_0x382fc1}of _0x5017f0){const _0x576c46=_0x382fc1[_0x3c0fe5(0x164)](_0x25c285=>_0x3c0fe5(0x17d)!=_0x25c285[_0x3c0fe5(0x16a)])[_0x3c0fe5(0x179)](_0x47c36f=>_0x24f57b(_0x3c0fe5(0x170),_0x47c36f['id'],_0x51149b)),_0x1bc381=_0x382fc1[_0x3c0fe5(0x164)](_0xcdd087=>_0x3c0fe5(0x16d)!=_0xcdd087[_0x3c0fe5(0x16a)])[_0x3c0fe5(0x179)](_0x5acd00=>_0x5acd00[_0x3c0fe5(0x185)][_0x3c0fe5(0x17e)](!0x0));let _0x10cbde=null;if(_0x576c46[_0x3c0fe5(0x178)]){_0x10cbde=_0x576c46[0x0][_0x3c0fe5(0x17b)];for(let _0x456e80=0x0;_0x456e80<_0x576c46[_0x3c0fe5(0x178)];_0x456e80++)_0x467126(_0x576c46[_0x456e80]);}if(_0x1bc381[_0x3c0fe5(0x178)]){_0x10cbde||(_0x382fc1[0x0][_0x3c0fe5(0x177)]?_0x10cbde=_0x24f57b(_0x3c0fe5(0x170),_0x382fc1[0x0][_0x3c0fe5(0x177)],_0x51149b):(_0x10cbde=_0x1bc381[_0x3c0fe5(0x166)](),_0x144914(_0x51149b,_0x10cbde)));for(let _0x51bd00=0x0;_0x51bd00<_0x1bc381[_0x3c0fe5(0x178)];_0x51bd00++)_0x39d648(_0x10cbde,_0x1bc381[_0x51bd00]),_0x10cbde=_0x1bc381[_0x51bd00];}}const _0x14c6c3=_0x30c33c(_0x51149b),_0x4c8f51=_0x14c6bc[_0x3c0fe5(0x174)](_0x427eca,_0x14c6c3,_0x3a9d6d)[_0x3c0fe5(0x17a)]();if(_0x44b672){const _0x1cb8e2=_0x5bc320[_0x3c0fe5(0x180)][_0x3c0fe5(0x175)][_0x3c0fe5(0x16b)][_0x3c0fe5(0x17a)](_0x2b97c1),_0x21e178={'document':_0x5bc320[_0x3c0fe5(0x180)][_0x3c0fe5(0x175)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x1146fa(_0x4c8f51,_0x1cb8e2,_0x21e178)[_0x3c0fe5(0x167)];}return _0x4c8f51;}export function fixMarkerOperationOldRange(_0x1b8196,_0x5a1801){const _0x4c7553=_0x4867;if(_0x4c7553(0x16e)!=_0x5a1801[_0x4c7553(0x16a)])return;const _0x10cf4b=_0x1b8196[_0x4c7553(0x180)][_0x4c7553(0x186)][_0x4c7553(0x169)](_0x5a1801[_0x4c7553(0x173)]);_0x10cf4b&&(_0x5a1801[_0x4c7553(0x168)]=_0x10cf4b[_0x4c7553(0x183)]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0x478a4f,_0x256253){const _0x4f29f7=_0x4817,_0x162190=_0x478a4f();while(!![]){try{const _0x35df29=-parseInt(_0x4f29f7(0x15a))/0x1+parseInt(_0x4f29f7(0x177))/0x2*(-parseInt(_0x4f29f7(0x144))/0x3)+parseInt(_0x4f29f7(0x19e))/0x4+-parseInt(_0x4f29f7(0x14d))/0x5*(parseInt(_0x4f29f7(0x148))/0x6)+parseInt(_0x4f29f7(0x194))/0x7+-parseInt(_0x4f29f7(0x166))/0x8*(-parseInt(_0x4f29f7(0x170))/0x9)+parseInt(_0x4f29f7(0x178))/0xa;if(_0x35df29===_0x256253)break;else _0x162190['push'](_0x162190['shift']());}catch(_0x508aee){_0x162190['push'](_0x162190['shift']());}}}(_0x55db,0x31266));import{findOne as _0x4c6a03,getAttribute as _0x2f664c,Document as _0x12f91e,serialize as _0x202a57,parse as _0x16d5fa}from'./htmlparser.js';import{fixElementSuggestionRange as _0x367c52}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x3cdad4,_DetachOperation as _0x8243bc,_removeFromModelNodeList as _0x470545,_insertIntoModelNodeList as _0x51a2e5}from'ckeditor5/src/engine.js';function _0x4817(_0x5602e9,_0x244c42){const _0x55db4d=_0x55db();return _0x4817=function(_0x481717,_0x62df03){_0x481717=_0x481717-0x135;let _0x2bc51c=_0x55db4d[_0x481717];return _0x2bc51c;},_0x4817(_0x5602e9,_0x244c42);}import{uid as _0x2cf2ee}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x14c25e,changeGroups:_0x3c5b3c,documentContextContent:_0x1cd55c,showDiff:_0x6768f3,trimUnchanged:_0x10e3bf=!0x0}){const _0x1749fb=_0x4817;return _0x3c5b3c[_0x1749fb(0x169)](_0x11e701=>{const _0x39a2c1=_0x1749fb,_0x5d0a28=new _0x12f91e([]),_0x50a0d1=new _0x12f91e([]);for(const _0x39e993 of _0x11e701[_0x39a2c1(0x164)])if(_0x6768f3&&_0x39a2c1(0x18f)==_0x39e993[_0x39a2c1(0x142)]||_0x50a0d1[_0x39a2c1(0x1a4)][_0x39a2c1(0x14a)](_0x39e993[_0x39a2c1(0x15f)][_0x39a2c1(0x191)](!0x0)),_0x39a2c1(0x173)!=_0x39e993[_0x39a2c1(0x142)]&&(_0x6768f3||_0x39a2c1(0x18f)!=_0x39e993[_0x39a2c1(0x142)])){const _0x2c7763=_0x4c6a03(_0x3bf28c=>_0x2f664c(_0x3bf28c,_0x39a2c1(0x163))==_0x39e993['id'],_0x1cd55c,!0x0);_0x2c7763&&_0x5d0a28[_0x39a2c1(0x1a4)][_0x39a2c1(0x14a)](_0x2c7763[_0x39a2c1(0x191)](!0x0));}const {content:_0xc135c0,hasChanges:_0xec35e}=function(_0x29203a,_0x4e1ed5,_0x57642c,_0x56b28c,_0x147190=!0x0){const _0x1e5ecf=_0x39a2c1,_0x2d443d=_0x29203a[_0x1e5ecf(0x151)][_0x1e5ecf(0x193)](_0x1e5ecf(0x159)),_0x27425b=_0x202a57(_0x4e1ed5),_0x2ee3a7=_0x202a57(_0x57642c),_0x5f3433=_0x29203a[_0x1e5ecf(0x18c)][_0x1e5ecf(0x16d)](_0x27425b,_0x1e5ecf(0x139)),_0x988b5d=_0x29203a[_0x1e5ecf(0x16f)][_0x1e5ecf(0x16a)](_0x5f3433,0x0),_0x3badf1=_0x2d443d[_0x1e5ecf(0x17d)](_0x27425b,_0x2ee3a7,{'anchor':_0x988b5d,'markDeletions':_0x56b28c}),_0x1eadf6=_0x3badf1[_0x1e5ecf(0x15e)]();if(0x0==_0x1eadf6[_0x1e5ecf(0x175)])return{'content':_0x4e1ed5[_0x1e5ecf(0x191)](!0x0),'hasChanges':!0x1};_0x56b28c?function(_0x3573ae,_0x56a604,_0x5f3e70){const _0xde5fa0=_0x1e5ecf;if(0x0==_0x3573ae[_0xde5fa0(0x175)])return;const _0x23a1f9=_0x5f3e70[_0xde5fa0(0x151)][_0xde5fa0(0x193)](_0xde5fa0(0x159)),_0x2a079f=_0x5f3e70[_0xde5fa0(0x151)][_0xde5fa0(0x193)](_0xde5fa0(0x145));_0x5f3e70[_0xde5fa0(0x16f)][_0xde5fa0(0x181)](_0x3bc61c=>{const _0x27d15a=_0xde5fa0,_0x575e02=new Set();for(let _0x1f8dc1=0x0;_0x1f8dc1<_0x3573ae[_0x27d15a(0x175)];_0x1f8dc1++){const _0x59a3ff=_0x3573ae[_0x1f8dc1];if(_0x59a3ff[_0x27d15a(0x172)]=null,_0x59a3ff[_0x27d15a(0x18d)]=!0x1,_0x23a1f9[_0x27d15a(0x184)](_0x59a3ff)){const _0x430650=_0x367c52(_0x59a3ff[_0x27d15a(0x195)],_0x5f3e70[_0x27d15a(0x16f)]),_0x46ad46=_0x27d15a(0x15b)+_0x2cf2ee()+_0x27d15a(0x1a6);_0x56a604[_0x27d15a(0x16c)][_0x27d15a(0x19a)](_0x46ad46,_0x430650);}else switch(_0x59a3ff[_0x27d15a(0x142)]){case _0x27d15a(0x196):{if(_0x59a3ff[_0x27d15a(0x17e)]==_0x59a3ff[_0x27d15a(0x168)])break;_0x3bc61c[_0x27d15a(0x146)][_0x27d15a(0x17c)](_0x59a3ff),_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x15c)](_0x59a3ff);const _0x507dc5=_0x27d15a(0x16e),_0x5157c1=_0x59a3ff[_0x27d15a(0x17a)],_0x2a75a7=_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x188)](_0x5157c1,_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x16a)](_0x5157c1[_0x27d15a(0x154)],_0x27d15a(0x140))),_0x27dd74=_0x27d15a(0x155)+_0x507dc5+':'+_0x2cf2ee()+_0x27d15a(0x1a6);_0x56a604[_0x27d15a(0x16c)][_0x27d15a(0x19a)](_0x27dd74,_0x2a75a7);break;}case _0x27d15a(0x19b):case _0x27d15a(0x1a9):case _0x27d15a(0x143):{if(_0x59a3ff[_0x27d15a(0x1a8)]==_0x59a3ff[_0x27d15a(0x18a)])break;_0x3bc61c[_0x27d15a(0x146)][_0x27d15a(0x17c)](_0x59a3ff),_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x15c)](_0x59a3ff);const _0x4d0a6f=_0x59a3ff[_0x27d15a(0x17f)];if(!_0x2a079f[_0x27d15a(0x185)](_0x4d0a6f))break;const _0x192b56=_0x367c52(_0x59a3ff[_0x27d15a(0x192)],_0x5f3e70[_0x27d15a(0x16f)]),_0x545045=_0x27d15a(0x155)+_0x4d0a6f+':'+_0x2cf2ee()+_0x27d15a(0x1a6);_0x56a604[_0x27d15a(0x16c)][_0x27d15a(0x19a)](_0x545045,_0x192b56);break;}case _0x27d15a(0x180):{_0x3bc61c[_0x27d15a(0x146)][_0x27d15a(0x17c)](_0x59a3ff),_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x15c)](_0x59a3ff);if(_0x3573ae[_0x1f8dc1+0x1]&&_0x27d15a(0x14c)==_0x3573ae[_0x1f8dc1+0x1][_0x27d15a(0x142)]){no(_0x56a604,_0x59a3ff);break;}const _0x402018=_0x59a3ff[_0x27d15a(0x17a)],_0xc49c94=_0x59a3ff[_0x27d15a(0x1a7)],_0x5fe648=_0x367c52(_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x188)](_0x402018,_0x402018[_0x27d15a(0x153)](_0xc49c94)),_0x5f3e70[_0x27d15a(0x16f)]),_0x5830e9=_0x27d15a(0x14b)+_0x2cf2ee()+_0x27d15a(0x1a6);_0x56a604[_0x27d15a(0x16c)][_0x27d15a(0x19a)](_0x5830e9,_0x5fe648);break;}case _0x27d15a(0x167):{_0x3bc61c[_0x27d15a(0x146)][_0x27d15a(0x17c)](_0x59a3ff),_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x15c)](_0x59a3ff);const _0x145c2e=_0x59a3ff[_0x27d15a(0x150)],_0x81882d=_0x59a3ff[_0x27d15a(0x161)],_0x1611ee=_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x188)](_0x145c2e,_0x81882d),_0x318602=_0x27d15a(0x14b)+_0x2cf2ee()+_0x27d15a(0x1a6);_0x56a604[_0x27d15a(0x16c)][_0x27d15a(0x19a)](_0x318602,_0x1611ee);break;}case _0x27d15a(0x14c):{_0x3bc61c[_0x27d15a(0x146)][_0x27d15a(0x17c)](_0x59a3ff),_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x15c)](_0x59a3ff),_0x3573ae[_0x1f8dc1-0x1]&&_0x27d15a(0x180)==_0x3573ae[_0x1f8dc1-0x1][_0x27d15a(0x142)]&&no(_0x56a604,_0x59a3ff);const _0x175d23=_0x59a3ff[_0x27d15a(0x183)](),_0x156feb=_0x59a3ff[_0x27d15a(0x1a7)];for(let _0x153602=0x0;_0x153602<_0x156feb;_0x153602++){const _0x51902e=_0x175d23[_0x27d15a(0x153)](_0x153602)[_0x27d15a(0x154)];_0x575e02[_0x27d15a(0x162)](_0x51902e);}break;}case _0x27d15a(0x136):{const _0x5f0f71=_0x59a3ff[_0x27d15a(0x13a)],_0x3ad930=_0x59a3ff[_0x27d15a(0x1a7)],_0x565820=new _0x8243bc(_0x5f0f71,_0x3ad930);_0x3bc61c[_0x27d15a(0x146)][_0x27d15a(0x17c)](_0x565820),_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x15c)](_0x565820);break;}}}for(const _0x55e8ab of _0x575e02){const _0x476521=_0x5f3e70[_0x27d15a(0x16f)][_0x27d15a(0x157)](_0x55e8ab),_0x5e899b=_0x27d15a(0x19f)+_0x2cf2ee()+_0x27d15a(0x1a6);_0x56a604[_0x27d15a(0x16c)][_0x27d15a(0x19a)](_0x5e899b,_0x367c52(_0x476521,_0x5f3e70[_0x27d15a(0x16f)]));}});}(_0x1eadf6,_0x5f3433,_0x29203a):_0x29203a[_0x1e5ecf(0x16f)][_0x1e5ecf(0x181)](_0x24b26d=>{const _0x8443d5=_0x1e5ecf;for(const _0x4c32e9 of _0x1eadf6)if(_0x8443d5(0x136)==_0x4c32e9[_0x8443d5(0x142)]){const _0xb513a9=_0x4c32e9[_0x8443d5(0x13a)],_0x1dda4f=_0x4c32e9[_0x8443d5(0x1a7)],_0x1c1ff8=new _0x8243bc(_0xb513a9,_0x1dda4f);_0x24b26d[_0x8443d5(0x146)][_0x8443d5(0x17c)](_0x1c1ff8),_0x29203a[_0x8443d5(0x16f)][_0x8443d5(0x15c)](_0x1c1ff8);}else{if(_0x8443d5(0x138)==_0x4c32e9[_0x8443d5(0x142)]){const _0x38a066=_0x4c32e9[_0x8443d5(0x1a5)],_0x1c1efd=_0x4c32e9[_0x8443d5(0x195)];null!==_0x1c1efd?_0x5f3433[_0x8443d5(0x16c)][_0x8443d5(0x19a)](_0x38a066,_0x1c1efd):_0x5f3433[_0x8443d5(0x16c)][_0x8443d5(0x149)](_0x38a066);}else _0x4c32e9[_0x8443d5(0x172)]=null,_0x4c32e9[_0x8443d5(0x18d)]=!0x1,_0x24b26d[_0x8443d5(0x146)][_0x8443d5(0x17c)](_0x4c32e9),_0x29203a[_0x8443d5(0x16f)][_0x8443d5(0x15c)](_0x4c32e9);}});if(_0x147190){const _0x3d7f49=getMinimalSelection(_0x29203a,_0x1eadf6,_0x5f3433);expandSelectionWithContext(_0x29203a[_0x1e5ecf(0x16f)],_0x3d7f49),function(_0x1bc86f,_0x44f76e){const _0x54b434=_0x1e5ecf,_0x5e1dc8=_0x44f76e[_0x54b434(0x18e)]()[_0x54b434(0x19c)];let _0x54d454=_0x44f76e[_0x54b434(0x18e)]()[_0x54b434(0x140)];const _0x343bc6=_0x5e1dc8[_0x54b434(0x199)];(_0x54d454[_0x54b434(0x1a3)]||_0x54d454[_0x54b434(0x154)]&&_0x54d454[_0x54b434(0x154)]['is'](_0x54b434(0x13b)))&&(_0x51a2e5(_0x54d454,_0x54b434(0x160)),_0x54d454=_0x54d454[_0x54b434(0x153)](0x3)),(_0x5e1dc8[_0x54b434(0x1a3)]||_0x5e1dc8[_0x54b434(0x198)]&&_0x5e1dc8[_0x54b434(0x198)]['is'](_0x54b434(0x13b)))&&(_0x51a2e5(_0x5e1dc8,_0x54b434(0x160)),function(_0x3e54c2,_0x1826b7,_0x4a2831){const _0x1c7d5d=_0x54b434;for(let [_0x4d42c5,_0x3f6c74]of _0x3e54c2[_0x1c7d5d(0x16c)]){const _0x1df2f3=_0x3f6c74[_0x1c7d5d(0x13d)](_0x1826b7,_0x4a2831,!0x1);_0x3f6c74=_0x1df2f3[0x0],_0x3e54c2[_0x1c7d5d(0x16c)][_0x1c7d5d(0x19a)](_0x4d42c5,_0x3f6c74);}}(_0x343bc6,_0x5e1dc8,0x3),_0x5e1dc8[_0x54b434(0x15d)]==_0x54d454[_0x54b434(0x15d)]&&(_0x54d454=_0x54d454[_0x54b434(0x153)](0x3)));const _0x15f5ac=_0x1bc86f[_0x54b434(0x188)](_0x1bc86f[_0x54b434(0x16a)](_0x343bc6,0x0),_0x5e1dc8),_0x1214bc=_0x1bc86f[_0x54b434(0x188)](_0x54d454,_0x1bc86f[_0x54b434(0x16a)](_0x343bc6,_0x54b434(0x140))),_0x2af0ac=[..._0x15f5ac[_0x54b434(0x137)](),..._0x1214bc[_0x54b434(0x137)]()];_0x2af0ac[_0x54b434(0x14f)]();for(const _0x517693 of _0x2af0ac)_0x470545(_0x517693),_transformMarkersByDeletion(_0x343bc6,_0x517693);}(_0x29203a[_0x1e5ecf(0x16f)],_0x3d7f49);}const _0x4be8ed=_0x29203a[_0x1e5ecf(0x18c)][_0x1e5ecf(0x16b)](_0x5f3433,{'showSuggestionHighlights':!0x0});return{'content':_0x16d5fa(_0x4be8ed),'hasChanges':!0x0};}(_0x14c25e,_0x5d0a28,_0x50a0d1,_0x6768f3,_0x10e3bf);return{'type':_0x11e701[_0x39a2c1(0x164)][0x0][_0x39a2c1(0x142)],'index':_0x11e701[_0x39a2c1(0x186)],'content':_0xc135c0,'hasChanges':_0xec35e};});}function no(_0x30f2b6,_0x5d8a6e){const _0x4742a2=_0x4817;for(const [_0x3c3e06,_0x46214f]of _0x30f2b6[_0x4742a2(0x16c)]){const _0x208fc5=_0x3cdad4[_0x4742a2(0x182)](_0x46214f[_0x4742a2(0x165)](_0x5d8a6e));_0x30f2b6[_0x4742a2(0x16c)][_0x4742a2(0x19a)](_0x3c3e06,_0x208fc5);}}function _0x55db(){const _0x762827=['createPositionAt','stringify','markers','parse','$elementName','model','16038XuBCPf','_getTransformedByDeletion','baseVersion','new','isAfter','length','modifySelection','90494EOeHTs','6248770xOKRau','schema','position','isBefore','addOperation','getDiff','oldName','key','insert','change','_createFromRanges','getMovedRangeStart','isMarkedRemoveOperation','isRegisteredAttribute','index','slice','createRange','createSelection','newValue','focus','data','isDocumentOperation','getFirstRange','removed','isBlock','cloneNode','range','get','1198064vGOTAt','newRange','rename','element','nodeBefore','root','set','addAttribute','start','forward','831812ShpEng','suggestion:formatBlock:$fakeWrap:','word','POSITIVE_INFINITY','merge','textNode','children','name',':$aiSuggestion','howMany','oldValue','removeAttribute','setTo','remove','getMinimalFlatRanges','marker','$root','sourcePosition','$text','isObject','_getTransformedByInsertion','offset','path','end','backward','type','changeAttribute','24ugRurG','SuggestionsConversion','batch','clone','1506IpGNTE','delete','push','suggestion:insertion:','move','6010gDVJil','createPositionFromPath','reverse','splitPosition','plugins','stickiness','getShiftedBy','nodeAfter','suggestion:attribute:','toNone','createRangeOn','targetPosition','DocumentCompare','390248PmMqqs','suggestion:deletion:','applyOperation','parent','getOperations','node','...','moveTargetPosition','add','data-id','changes','getTransformedByOperation','1128JaxgRR','split','newName','map'];_0x55db=function(){return _0x762827;};return _0x55db();}export function getMinimalSelection(_0x57d180,_0x2052b8,_0x5c80a3){const _0x4aa329=_0x4817,_0x15db3b=_0x57d180[_0x4aa329(0x151)][_0x4aa329(0x193)](_0x4aa329(0x159));let _0x13adde=_0x57d180[_0x4aa329(0x16f)][_0x4aa329(0x16a)](_0x5c80a3,Number[_0x4aa329(0x1a1)]),_0x47435d=_0x57d180[_0x4aa329(0x16f)][_0x4aa329(0x16a)](_0x5c80a3,0x0);for(const _0x347aa1 of _0x2052b8){let _0x1db5d2,_0x193d22;if(_0x15db3b[_0x4aa329(0x184)](_0x347aa1))_0x1db5d2=_0x347aa1[_0x4aa329(0x195)][_0x4aa329(0x19c)],_0x193d22=_0x347aa1[_0x4aa329(0x195)][_0x4aa329(0x140)];else switch(_0x13adde=_0x13adde[_0x4aa329(0x165)](_0x347aa1),_0x47435d=_0x47435d[_0x4aa329(0x165)](_0x347aa1),_0x347aa1[_0x4aa329(0x142)]){case _0x4aa329(0x196):_0x1db5d2=_0x347aa1[_0x4aa329(0x17a)],_0x193d22=_0x1db5d2[_0x4aa329(0x153)](0x1);break;case _0x4aa329(0x19b):case _0x4aa329(0x1a9):case _0x4aa329(0x143):_0x1db5d2=_0x347aa1[_0x4aa329(0x192)][_0x4aa329(0x19c)],_0x193d22=_0x347aa1[_0x4aa329(0x192)][_0x4aa329(0x140)];break;case _0x4aa329(0x180):_0x1db5d2=_0x347aa1[_0x4aa329(0x17a)],_0x193d22=_0x1db5d2[_0x4aa329(0x153)](_0x347aa1[_0x4aa329(0x1a7)]);break;case _0x4aa329(0x167):_0x1db5d2=_0x347aa1[_0x4aa329(0x150)],_0x193d22=_0x347aa1[_0x4aa329(0x161)];break;case _0x4aa329(0x1a2):{const _0xb14ca3=_0x347aa1[_0x4aa329(0x158)][_0x4aa329(0x13f)][_0x4aa329(0x187)](0x0,-0x1);_0x1db5d2=_0x57d180[_0x4aa329(0x16f)][_0x4aa329(0x14e)](_0x5c80a3,_0xb14ca3),_0x193d22=_0x1db5d2[_0x4aa329(0x153)](0x1);break;}case _0x4aa329(0x136):{const _0x14341e=_0x347aa1[_0x4aa329(0x1a7)],_0xfff4a1=_0x347aa1[_0x4aa329(0x13a)][_0x4aa329(0x13d)](_0x347aa1[_0x4aa329(0x158)],_0x14341e),_0x36a9e7=_0x347aa1[_0x4aa329(0x183)]();_0x4aa329(0x136)==_0x347aa1[_0x4aa329(0x142)]?(_0x1db5d2=_0xfff4a1,_0x193d22=_0xfff4a1):(_0x1db5d2=_0x36a9e7,_0x193d22=_0x36a9e7[_0x4aa329(0x153)](_0x14341e));break;}}_0x1db5d2&&_0x1db5d2[_0x4aa329(0x17b)](_0x13adde)&&(_0x13adde=_0x1db5d2[_0x4aa329(0x147)](),_0x13adde[_0x4aa329(0x152)]=_0x4aa329(0x156)),_0x193d22&&_0x193d22[_0x4aa329(0x174)](_0x47435d)&&(_0x47435d=_0x193d22[_0x4aa329(0x147)](),_0x47435d[_0x4aa329(0x152)]=_0x4aa329(0x156));}return _0x57d180[_0x4aa329(0x16f)][_0x4aa329(0x189)](_0x57d180[_0x4aa329(0x16f)][_0x4aa329(0x188)](_0x13adde,_0x47435d));}export function expandSelectionWithContext(_0x174b4f,_0x48ad73){const _0xacb4f9=_0x4817;ro(_0x174b4f,_0x48ad73,_0xacb4f9(0x19d));const _0x5d21a1=_0x48ad73[_0xacb4f9(0x18e)]();_0x48ad73[_0xacb4f9(0x135)]([]),_0x48ad73[_0xacb4f9(0x135)](_0x5d21a1,{'backward':!0x0}),ro(_0x174b4f,_0x48ad73,_0xacb4f9(0x141));}function ro(_0x49490a,_0x5c1494,_0x53487e){const _0x5bfe3b=_0x4817;let _0x4d4085=0x14;for(;_0x4d4085;){_0x49490a[_0x5bfe3b(0x176)](_0x5c1494,{'unit':_0x5bfe3b(0x1a0),'direction':_0x53487e}),_0x4d4085--;const _0x498056=_0x5c1494[_0x5bfe3b(0x18b)][_0x5bfe3b(0x19d)==_0x53487e?_0x5bfe3b(0x198):_0x5bfe3b(0x154)];if(_0x498056&&_0x498056['is'](_0x5bfe3b(0x197))&&_0x49490a[_0x5bfe3b(0x179)][_0x5bfe3b(0x190)](_0x498056)&&_0x49490a[_0x5bfe3b(0x179)][_0x5bfe3b(0x13c)](_0x498056))break;}}export function _transformMarkersByDeletion(_0x2a1de4,_0x31de2d){const _0x31d4ee=_0x4817;for(const [_0x2bad1c,_0x5da1f3]of _0x2a1de4[_0x31d4ee(0x16c)]){const _0x371ae2=_0x5da1f3[_0x31d4ee(0x171)](_0x31de2d[_0x31d4ee(0x19c)],_0x31de2d[_0x31d4ee(0x140)][_0x31d4ee(0x13e)]-_0x31de2d[_0x31d4ee(0x19c)][_0x31d4ee(0x13e)]);null!=_0x371ae2?_0x2a1de4[_0x31d4ee(0x16c)][_0x31d4ee(0x19a)](_0x2bad1c,_0x371ae2):_0x2a1de4[_0x31d4ee(0x16c)][_0x31d4ee(0x149)](_0x2bad1c);}}
|
|
23
|
+
(function(_0x533578,_0x4faa44){const _0x572109=_0x439f,_0x593718=_0x533578();while(!![]){try{const _0x151936=parseInt(_0x572109(0x196))/0x1+parseInt(_0x572109(0x179))/0x2+parseInt(_0x572109(0x17e))/0x3+-parseInt(_0x572109(0x170))/0x4+-parseInt(_0x572109(0x156))/0x5*(parseInt(_0x572109(0x166))/0x6)+parseInt(_0x572109(0x1a6))/0x7+-parseInt(_0x572109(0x168))/0x8;if(_0x151936===_0x4faa44)break;else _0x593718['push'](_0x593718['shift']());}catch(_0x36d18b){_0x593718['push'](_0x593718['shift']());}}}(_0x339d,0xeb4b7));import{findOne as _0x2c20da,getAttribute as _0x26e10e,Document as _0x5eac2a,serialize as _0x3ff4b8,parse as _0x50b0b6}from'./htmlparser.js';import{fixElementSuggestionRange as _0x5b8d0c}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0xadd0ce,_DetachOperation as _0x3f34a6,_removeFromModelNodeList as _0xb3eb93,_insertIntoModelNodeList as _0x46004a}from'ckeditor5/src/engine.js';function _0x439f(_0x7ad13a,_0x47a0e0){const _0x339d78=_0x339d();return _0x439f=function(_0x439f1b,_0x32fd69){_0x439f1b=_0x439f1b-0x14f;let _0x4a9a51=_0x339d78[_0x439f1b];return _0x4a9a51;},_0x439f(_0x7ad13a,_0x47a0e0);}import{uid as _0x1b2b62}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x4fbab4,changeGroups:_0xb10276,documentContextContent:_0x10e6d6,showDiff:_0xd2b27a,trimUnchanged:_0x4efeb9=!0x0}){const _0x3df82e=_0x439f;return _0xb10276[_0x3df82e(0x1b4)](_0xa3783c=>{const _0x2852b0=_0x3df82e,_0x331814=new _0x5eac2a([]),_0x1425a6=new _0x5eac2a([]);for(const _0xdc8a22 of _0xa3783c[_0x2852b0(0x1bb)])if(_0xd2b27a&&_0x2852b0(0x1bc)==_0xdc8a22[_0x2852b0(0x19a)]||_0x1425a6[_0x2852b0(0x1ba)][_0x2852b0(0x1a2)](_0xdc8a22[_0x2852b0(0x16a)][_0x2852b0(0x1a8)](!0x0)),_0x2852b0(0x155)!=_0xdc8a22[_0x2852b0(0x19a)]&&(_0xd2b27a||_0x2852b0(0x1bc)!=_0xdc8a22[_0x2852b0(0x19a)])){const _0x548c4c=_0x2c20da(_0x1fd496=>_0x26e10e(_0x1fd496,_0x2852b0(0x15c))==_0xdc8a22['id'],_0x10e6d6,!0x0);_0x548c4c&&_0x331814[_0x2852b0(0x1ba)][_0x2852b0(0x1a2)](_0x548c4c[_0x2852b0(0x1a8)](!0x0));}const {content:_0x5bed3c,hasChanges:_0x45960c}=function(_0x19e04f,_0x2ab7fa,_0x44fc58,_0x44519,_0x164079=!0x0){const _0x342284=_0x2852b0,_0x4c6584=_0x19e04f[_0x342284(0x198)][_0x342284(0x1a5)](_0x342284(0x16e)),_0x1450dc=_0x3ff4b8(_0x2ab7fa),_0x4105c2=_0x3ff4b8(_0x44fc58),_0x296dba=_0x19e04f[_0x342284(0x178)][_0x342284(0x164)](_0x1450dc,_0x342284(0x167)),_0xab0123=_0x19e04f[_0x342284(0x158)][_0x342284(0x1a9)](_0x296dba,0x0),_0x1fca76=_0x4c6584[_0x342284(0x1c0)](_0x1450dc,_0x4105c2,{'anchor':_0xab0123,'markDeletions':_0x44519}),_0x1f5b8e=_0x1fca76[_0x342284(0x181)]();if(0x0==_0x1f5b8e[_0x342284(0x150)])return{'content':_0x2ab7fa[_0x342284(0x1a8)](!0x0),'hasChanges':!0x1};_0x44519?function(_0x16ff3a,_0x223df7,_0x44047e){const _0x3524fe=_0x342284;if(0x0==_0x16ff3a[_0x3524fe(0x150)])return;const _0x437b23=_0x44047e[_0x3524fe(0x198)][_0x3524fe(0x1a5)](_0x3524fe(0x16e)),_0x486029=_0x44047e[_0x3524fe(0x198)][_0x3524fe(0x1a5)](_0x3524fe(0x1b6));_0x44047e[_0x3524fe(0x158)][_0x3524fe(0x16d)](_0x1a8141=>{const _0x46606c=_0x3524fe,_0x2ccba8=new Set();for(let _0x3c3822=0x0;_0x3c3822<_0x16ff3a[_0x46606c(0x150)];_0x3c3822++){const _0x3c7db1=_0x16ff3a[_0x3c3822];if(_0x3c7db1[_0x46606c(0x1b9)]=null,_0x3c7db1[_0x46606c(0x180)]=!0x1,_0x437b23[_0x46606c(0x1bd)](_0x3c7db1)){const _0x27d12c=_0x5b8d0c(_0x3c7db1[_0x46606c(0x1ae)],_0x44047e[_0x46606c(0x158)]),_0x500959=_0x46606c(0x151)+_0x1b2b62()+_0x46606c(0x1aa);_0x223df7[_0x46606c(0x15a)][_0x46606c(0x162)](_0x500959,_0x27d12c);}else switch(_0x3c7db1[_0x46606c(0x19a)]){case _0x46606c(0x1af):{if(_0x3c7db1[_0x46606c(0x15d)]==_0x3c7db1[_0x46606c(0x171)])break;_0x1a8141[_0x46606c(0x159)][_0x46606c(0x18f)](_0x3c7db1),_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b3)](_0x3c7db1);const _0x53110c=_0x46606c(0x174),_0x311ce4=_0x3c7db1[_0x46606c(0x1b0)],_0x363764=_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b5)](_0x311ce4,_0x44047e[_0x46606c(0x158)][_0x46606c(0x1a9)](_0x311ce4[_0x46606c(0x193)],_0x46606c(0x16f))),_0x4de8d2=_0x46606c(0x17b)+_0x53110c+':'+_0x1b2b62()+_0x46606c(0x1aa);_0x223df7[_0x46606c(0x15a)][_0x46606c(0x162)](_0x4de8d2,_0x363764);break;}case _0x46606c(0x194):case _0x46606c(0x19b):case _0x46606c(0x161):{if(_0x3c7db1[_0x46606c(0x195)]==_0x3c7db1[_0x46606c(0x18a)])break;_0x1a8141[_0x46606c(0x159)][_0x46606c(0x18f)](_0x3c7db1),_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b3)](_0x3c7db1);const _0x456bdd=_0x3c7db1[_0x46606c(0x1a0)];if(!_0x486029[_0x46606c(0x188)](_0x456bdd))break;const _0x3cfb35=_0x5b8d0c(_0x3c7db1[_0x46606c(0x1bf)],_0x44047e[_0x46606c(0x158)]),_0x5ad624=_0x46606c(0x17b)+_0x456bdd+':'+_0x1b2b62()+_0x46606c(0x1aa);_0x223df7[_0x46606c(0x15a)][_0x46606c(0x162)](_0x5ad624,_0x3cfb35);break;}case _0x46606c(0x1b2):{_0x1a8141[_0x46606c(0x159)][_0x46606c(0x18f)](_0x3c7db1),_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b3)](_0x3c7db1);if(_0x16ff3a[_0x3c3822+0x1]&&_0x46606c(0x163)==_0x16ff3a[_0x3c3822+0x1][_0x46606c(0x19a)]){no(_0x223df7,_0x3c7db1);break;}const _0x31fe1a=_0x3c7db1[_0x46606c(0x1b0)],_0x35e268=_0x3c7db1[_0x46606c(0x182)],_0x450c3d=_0x5b8d0c(_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b5)](_0x31fe1a,_0x31fe1a[_0x46606c(0x160)](_0x35e268)),_0x44047e[_0x46606c(0x158)]),_0x2ab90d=_0x46606c(0x18c)+_0x1b2b62()+_0x46606c(0x1aa);_0x223df7[_0x46606c(0x15a)][_0x46606c(0x162)](_0x2ab90d,_0x450c3d);break;}case _0x46606c(0x175):{_0x1a8141[_0x46606c(0x159)][_0x46606c(0x18f)](_0x3c7db1),_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b3)](_0x3c7db1);const _0x169082=_0x3c7db1[_0x46606c(0x191)],_0x3c5cdb=_0x3c7db1[_0x46606c(0x18b)],_0x465526=_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b5)](_0x169082,_0x3c5cdb),_0x3ec0f1=_0x46606c(0x18c)+_0x1b2b62()+_0x46606c(0x1aa);_0x223df7[_0x46606c(0x15a)][_0x46606c(0x162)](_0x3ec0f1,_0x465526);break;}case _0x46606c(0x163):{_0x1a8141[_0x46606c(0x159)][_0x46606c(0x18f)](_0x3c7db1),_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b3)](_0x3c7db1),_0x16ff3a[_0x3c3822-0x1]&&_0x46606c(0x1b2)==_0x16ff3a[_0x3c3822-0x1][_0x46606c(0x19a)]&&no(_0x223df7,_0x3c7db1);const _0x275b5f=_0x3c7db1[_0x46606c(0x173)](),_0x19917f=_0x3c7db1[_0x46606c(0x182)];for(let _0x46d416=0x0;_0x46d416<_0x19917f;_0x46d416++){const _0x1cafee=_0x275b5f[_0x46606c(0x160)](_0x46d416)[_0x46606c(0x193)];_0x2ccba8[_0x46606c(0x1ab)](_0x1cafee);}break;}case _0x46606c(0x187):{const _0x5c575d=_0x3c7db1[_0x46606c(0x19c)],_0x840366=_0x3c7db1[_0x46606c(0x182)],_0x11a721=new _0x3f34a6(_0x5c575d,_0x840366);_0x1a8141[_0x46606c(0x159)][_0x46606c(0x18f)](_0x11a721),_0x44047e[_0x46606c(0x158)][_0x46606c(0x1b3)](_0x11a721);break;}}}for(const _0x2189e0 of _0x2ccba8){const _0x3bcda9=_0x44047e[_0x46606c(0x158)][_0x46606c(0x190)](_0x2189e0),_0x2017a0=_0x46606c(0x15e)+_0x1b2b62()+_0x46606c(0x1aa);_0x223df7[_0x46606c(0x15a)][_0x46606c(0x162)](_0x2017a0,_0x5b8d0c(_0x3bcda9,_0x44047e[_0x46606c(0x158)]));}});}(_0x1f5b8e,_0x296dba,_0x19e04f):_0x19e04f[_0x342284(0x158)][_0x342284(0x16d)](_0x8955b0=>{const _0x3ccc6b=_0x342284;for(const _0x383559 of _0x1f5b8e)if(_0x3ccc6b(0x187)==_0x383559[_0x3ccc6b(0x19a)]){const _0x410c0f=_0x383559[_0x3ccc6b(0x19c)],_0x2fb0e9=_0x383559[_0x3ccc6b(0x182)],_0x2c0bb8=new _0x3f34a6(_0x410c0f,_0x2fb0e9);_0x8955b0[_0x3ccc6b(0x159)][_0x3ccc6b(0x18f)](_0x2c0bb8),_0x19e04f[_0x3ccc6b(0x158)][_0x3ccc6b(0x1b3)](_0x2c0bb8);}else{if(_0x3ccc6b(0x197)==_0x383559[_0x3ccc6b(0x19a)]){const _0x16945a=_0x383559[_0x3ccc6b(0x19d)],_0x6d6f83=_0x383559[_0x3ccc6b(0x1ae)];null!==_0x6d6f83?_0x296dba[_0x3ccc6b(0x15a)][_0x3ccc6b(0x162)](_0x16945a,_0x6d6f83):_0x296dba[_0x3ccc6b(0x15a)][_0x3ccc6b(0x1a7)](_0x16945a);}else _0x383559[_0x3ccc6b(0x1b9)]=null,_0x383559[_0x3ccc6b(0x180)]=!0x1,_0x8955b0[_0x3ccc6b(0x159)][_0x3ccc6b(0x18f)](_0x383559),_0x19e04f[_0x3ccc6b(0x158)][_0x3ccc6b(0x1b3)](_0x383559);}});if(_0x164079){const _0x24b5af=getMinimalSelection(_0x19e04f,_0x1f5b8e,_0x296dba);expandSelectionWithContext(_0x19e04f[_0x342284(0x158)],_0x24b5af),function(_0x33eb06,_0x27bbe4){const _0x4fa414=_0x342284,_0x44ce59=_0x27bbe4[_0x4fa414(0x17d)]()[_0x4fa414(0x1c1)];let _0x17ff5e=_0x27bbe4[_0x4fa414(0x17d)]()[_0x4fa414(0x16f)];const _0x81111b=_0x44ce59[_0x4fa414(0x183)];(_0x17ff5e[_0x4fa414(0x186)]||_0x17ff5e[_0x4fa414(0x193)]&&_0x17ff5e[_0x4fa414(0x193)]['is'](_0x4fa414(0x16c)))&&(_0x46004a(_0x17ff5e,_0x4fa414(0x199)),_0x17ff5e=_0x17ff5e[_0x4fa414(0x160)](0x3)),(_0x44ce59[_0x4fa414(0x186)]||_0x44ce59[_0x4fa414(0x176)]&&_0x44ce59[_0x4fa414(0x176)]['is'](_0x4fa414(0x16c)))&&(_0x46004a(_0x44ce59,_0x4fa414(0x199)),function(_0x2b019b,_0x317902,_0x2f7a41){const _0x37e506=_0x4fa414;for(let [_0x1df5ac,_0x5daa93]of _0x2b019b[_0x37e506(0x15a)]){const _0x5bce35=_0x5daa93[_0x37e506(0x184)](_0x317902,_0x2f7a41,!0x1);_0x5daa93=_0x5bce35[0x0],_0x2b019b[_0x37e506(0x15a)][_0x37e506(0x162)](_0x1df5ac,_0x5daa93);}}(_0x81111b,_0x44ce59,0x3),_0x44ce59[_0x4fa414(0x1b8)]==_0x17ff5e[_0x4fa414(0x1b8)]&&(_0x17ff5e=_0x17ff5e[_0x4fa414(0x160)](0x3)));const _0x1d579f=_0x33eb06[_0x4fa414(0x1b5)](_0x33eb06[_0x4fa414(0x1a9)](_0x81111b,0x0),_0x44ce59),_0x417407=_0x33eb06[_0x4fa414(0x1b5)](_0x17ff5e,_0x33eb06[_0x4fa414(0x1a9)](_0x81111b,_0x4fa414(0x16f))),_0x12f448=[..._0x1d579f[_0x4fa414(0x1be)](),..._0x417407[_0x4fa414(0x1be)]()];_0x12f448[_0x4fa414(0x153)]();for(const _0x513195 of _0x12f448)_0xb3eb93(_0x513195),_transformMarkersByDeletion(_0x81111b,_0x513195);}(_0x19e04f[_0x342284(0x158)],_0x24b5af);}const _0x9d852e=_0x19e04f[_0x342284(0x178)][_0x342284(0x169)](_0x296dba,{'showSuggestionHighlights':!0x0});return{'content':_0x50b0b6(_0x9d852e),'hasChanges':!0x0};}(_0x4fbab4,_0x331814,_0x1425a6,_0xd2b27a,_0x4efeb9);return{'type':_0xa3783c[_0x2852b0(0x1bb)][0x0][_0x2852b0(0x19a)],'index':_0xa3783c[_0x2852b0(0x152)],'content':_0x5bed3c,'hasChanges':_0x45960c};});}function _0x339d(){const _0x2226b1=['model','batch','markers','setTo','data-id','oldName','suggestion:formatBlock:$fakeWrap:','element','getShiftedBy','changeAttribute','set','move','parse','toNone','4542168ioTNCr','$root','1164256wujyOZ','stringify','node','slice','$text','change','DocumentCompare','end','7684672aMpyGZ','newName','forward','getMovedRangeStart','$elementName','split','nodeBefore','getTransformedByOperation','data','3490672oTHyCu','isBefore','suggestion:attribute:','POSITIVE_INFINITY','getFirstRange','2094591SzUgVW','path','isDocumentOperation','getOperations','howMany','root','_getTransformedByInsertion','isObject','textNode','remove','isRegisteredAttribute','_createFromRanges','newValue','moveTargetPosition','suggestion:insertion:','targetPosition','focus','addOperation','createRangeOn','splitPosition','word','nodeAfter','addAttribute','oldValue','965027wXIGtU','marker','plugins','...','type','removeAttribute','sourcePosition','name','modifySelection','backward','key','createSelection','push','stickiness','isBlock','get','7951741gWHpoi','delete','cloneNode','createPositionAt',':$aiSuggestion','add','_getTransformedByDeletion','createPositionFromPath','newRange','rename','position','merge','insert','applyOperation','map','createRange','SuggestionsConversion','offset','parent','baseVersion','children','changes','removed','isMarkedRemoveOperation','getMinimalFlatRanges','range','getDiff','start','schema','length','suggestion:deletion:','index','reverse','isAfter','new','10NMGSLJ','clone'];_0x339d=function(){return _0x2226b1;};return _0x339d();}function no(_0x3c9e40,_0xaf73d3){const _0x5d230d=_0x439f;for(const [_0x17a10d,_0x35b04e]of _0x3c9e40[_0x5d230d(0x15a)]){const _0x4782b5=_0xadd0ce[_0x5d230d(0x189)](_0x35b04e[_0x5d230d(0x177)](_0xaf73d3));_0x3c9e40[_0x5d230d(0x15a)][_0x5d230d(0x162)](_0x17a10d,_0x4782b5);}}export function getMinimalSelection(_0x4a695a,_0x55a835,_0x4876d4){const _0x4f3d46=_0x439f,_0x33cc12=_0x4a695a[_0x4f3d46(0x198)][_0x4f3d46(0x1a5)](_0x4f3d46(0x16e));let _0x3de716=_0x4a695a[_0x4f3d46(0x158)][_0x4f3d46(0x1a9)](_0x4876d4,Number[_0x4f3d46(0x17c)]),_0x103118=_0x4a695a[_0x4f3d46(0x158)][_0x4f3d46(0x1a9)](_0x4876d4,0x0);for(const _0x516215 of _0x55a835){let _0x23eeda,_0x28cf10;if(_0x33cc12[_0x4f3d46(0x1bd)](_0x516215))_0x23eeda=_0x516215[_0x4f3d46(0x1ae)][_0x4f3d46(0x1c1)],_0x28cf10=_0x516215[_0x4f3d46(0x1ae)][_0x4f3d46(0x16f)];else switch(_0x3de716=_0x3de716[_0x4f3d46(0x177)](_0x516215),_0x103118=_0x103118[_0x4f3d46(0x177)](_0x516215),_0x516215[_0x4f3d46(0x19a)]){case _0x4f3d46(0x1af):_0x23eeda=_0x516215[_0x4f3d46(0x1b0)],_0x28cf10=_0x23eeda[_0x4f3d46(0x160)](0x1);break;case _0x4f3d46(0x194):case _0x4f3d46(0x19b):case _0x4f3d46(0x161):_0x23eeda=_0x516215[_0x4f3d46(0x1bf)][_0x4f3d46(0x1c1)],_0x28cf10=_0x516215[_0x4f3d46(0x1bf)][_0x4f3d46(0x16f)];break;case _0x4f3d46(0x1b2):_0x23eeda=_0x516215[_0x4f3d46(0x1b0)],_0x28cf10=_0x23eeda[_0x4f3d46(0x160)](_0x516215[_0x4f3d46(0x182)]);break;case _0x4f3d46(0x175):_0x23eeda=_0x516215[_0x4f3d46(0x191)],_0x28cf10=_0x516215[_0x4f3d46(0x18b)];break;case _0x4f3d46(0x1b1):{const _0x3f94ad=_0x516215[_0x4f3d46(0x18d)][_0x4f3d46(0x17f)][_0x4f3d46(0x16b)](0x0,-0x1);_0x23eeda=_0x4a695a[_0x4f3d46(0x158)][_0x4f3d46(0x1ad)](_0x4876d4,_0x3f94ad),_0x28cf10=_0x23eeda[_0x4f3d46(0x160)](0x1);break;}case _0x4f3d46(0x187):{const _0x158ce5=_0x516215[_0x4f3d46(0x182)],_0x16be2f=_0x516215[_0x4f3d46(0x19c)][_0x4f3d46(0x184)](_0x516215[_0x4f3d46(0x18d)],_0x158ce5),_0x5d1d85=_0x516215[_0x4f3d46(0x173)]();_0x4f3d46(0x187)==_0x516215[_0x4f3d46(0x19a)]?(_0x23eeda=_0x16be2f,_0x28cf10=_0x16be2f):(_0x23eeda=_0x5d1d85,_0x28cf10=_0x5d1d85[_0x4f3d46(0x160)](_0x158ce5));break;}}_0x23eeda&&_0x23eeda[_0x4f3d46(0x17a)](_0x3de716)&&(_0x3de716=_0x23eeda[_0x4f3d46(0x157)](),_0x3de716[_0x4f3d46(0x1a3)]=_0x4f3d46(0x165)),_0x28cf10&&_0x28cf10[_0x4f3d46(0x154)](_0x103118)&&(_0x103118=_0x28cf10[_0x4f3d46(0x157)](),_0x103118[_0x4f3d46(0x1a3)]=_0x4f3d46(0x165));}return _0x4a695a[_0x4f3d46(0x158)][_0x4f3d46(0x1a1)](_0x4a695a[_0x4f3d46(0x158)][_0x4f3d46(0x1b5)](_0x3de716,_0x103118));}export function expandSelectionWithContext(_0x32ad00,_0x47ca85){const _0x5be235=_0x439f;ro(_0x32ad00,_0x47ca85,_0x5be235(0x172));const _0x2b9a23=_0x47ca85[_0x5be235(0x17d)]();_0x47ca85[_0x5be235(0x15b)]([]),_0x47ca85[_0x5be235(0x15b)](_0x2b9a23,{'backward':!0x0}),ro(_0x32ad00,_0x47ca85,_0x5be235(0x19f));}function ro(_0x541a9b,_0x1084f3,_0x403338){const _0x1fa4d3=_0x439f;let _0x51e3ed=0x14;for(;_0x51e3ed;){_0x541a9b[_0x1fa4d3(0x19e)](_0x1084f3,{'unit':_0x1fa4d3(0x192),'direction':_0x403338}),_0x51e3ed--;const _0x22bd97=_0x1084f3[_0x1fa4d3(0x18e)][_0x1fa4d3(0x172)==_0x403338?_0x1fa4d3(0x176):_0x1fa4d3(0x193)];if(_0x22bd97&&_0x22bd97['is'](_0x1fa4d3(0x15f))&&_0x541a9b[_0x1fa4d3(0x14f)][_0x1fa4d3(0x1a4)](_0x22bd97)&&_0x541a9b[_0x1fa4d3(0x14f)][_0x1fa4d3(0x185)](_0x22bd97))break;}}export function _transformMarkersByDeletion(_0x4309e6,_0x4ed6ac){const _0x545be3=_0x439f;for(const [_0x14aa44,_0x2cb182]of _0x4309e6[_0x545be3(0x15a)]){const _0xdea909=_0x2cb182[_0x545be3(0x1ac)](_0x4ed6ac[_0x545be3(0x1c1)],_0x4ed6ac[_0x545be3(0x16f)][_0x545be3(0x1b7)]-_0x4ed6ac[_0x545be3(0x1c1)][_0x545be3(0x1b7)]);null!=_0xdea909?_0x4309e6[_0x545be3(0x15a)][_0x545be3(0x162)](_0x14aa44,_0xdea909):_0x4309e6[_0x545be3(0x15a)][_0x545be3(0x1a7)](_0x14aa44);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4ab1d2,_0x2596f6){const _0x419205=_0x4ed5,_0x7650ae=_0x4ab1d2();while(!![]){try{const _0x44fd04=-parseInt(_0x419205(0x115))/0x1+-parseInt(_0x419205(0x102))/0x2*(parseInt(_0x419205(0x100))/0x3)+-parseInt(_0x419205(0x106))/0x4+-parseInt(_0x419205(0x10f))/0x5+-parseInt(_0x419205(0x105))/0x6+parseInt(_0x419205(0x113))/0x7+parseInt(_0x419205(0x112))/0x8;if(_0x44fd04===_0x2596f6)break;else _0x7650ae['push'](_0x7650ae['shift']());}catch(_0x2bfef9){_0x7650ae['push'](_0x7650ae['shift']());}}}(_0x18cd,0xcbf5e));import{parseDocument as _0x1dae58}from'htmlparser2';import{append as _0x206e1f,appendChild as _0x49c573,find as _0x5408e5,findAll as _0x367979,findOne as _0x429254,getChildren as _0x31fe7e,isComment as _0x168955,isTag as _0x3f2315,prepend as _0x40d497,prependChild as _0x3bc436,removeElement as _0x6a7a53,replaceElement as _0x1cffef,textContent as _0x49ee90,getParent as _0x28b6db,hasChildren as _0x144b01}from'domutils';import _0x5e42e3 from'dom-serializer';import{cloneNode as _0x510e95,isDocument as _0x40a402,isText as _0x14c440,Element as _0xe40654,Text as _0x4c878b,Document as _0x33f8e2,NodeWithChildren as _0x23e592}from'domhandler';export{_0x510e95 as cloneNode,_0x5408e5 as find,_0x429254 as findOne,_0x367979 as findAll,_0x31fe7e as getChildren,_0x28b6db as getParent,_0x168955 as isComment,_0x40a402 as isDocument,_0x3f2315 as isTag,_0x14c440 as isText,_0x206e1f as append,_0x49c573 as appendChild,_0x40d497 as prepend,_0x3bc436 as prependChild,_0x5e42e3 as render,_0x6a7a53 as removeElement,_0x1cffef as replaceElement,_0x49ee90 as textContent,_0x144b01 as hasChildren,_0xe40654 as Element,_0x33f8e2 as Document,_0x23e592 as NodeWithChildren,_0x4c878b as Text};export function parse(_0x1b061a){return _0x1dae58(_0x1b061a);}function _0x4ed5(_0x4436ea,_0x58981a){const _0x18cd58=_0x18cd();return _0x4ed5=function(_0x4ed5bb,_0x1f0135){_0x4ed5bb=_0x4ed5bb-0xff;let _0x152723=_0x18cd58[_0x4ed5bb];return _0x152723;},_0x4ed5(_0x4436ea,_0x58981a);}export function serialize(_0x236b21){return _0x5e42e3(_0x236b21);}export function findByAttribute(_0x48d6f3,_0x14ea88,_0x34cc58){const _0x1a68bd=_0x4ed5,_0x5ab400=null!==_0x14ea88?_0x5047d3=>_0x5047d3[_0x1a68bd(0x114)][_0x48d6f3]===_0x14ea88:_0x3d0713=>Boolean(_0x3d0713[_0x1a68bd(0x114)][_0x48d6f3]);return _0x429254(_0x10c222=>_0x3f2315(_0x10c222)&&_0x5ab400(_0x10c222),_0x34cc58);}export function findAllByAttribute(_0x5f08d3,_0x5e8be1,_0x3dd9c2){const _0x5ab4b5=_0x4ed5,_0x145ebb=null!==_0x5e8be1?_0x153580=>_0x153580[_0x5ab4b5(0x114)][_0x5f08d3]===_0x5e8be1:_0x3d69d1=>Boolean(_0x3d69d1[_0x5ab4b5(0x114)][_0x5f08d3]);return _0x367979(_0x3ff5ef=>_0x3f2315(_0x3ff5ef)&&_0x145ebb(_0x3ff5ef),_0x3dd9c2);}function _0x18cd(){const _0x694ee3=['beforebegin','beforeend','forEach','slice','nextSibling','push','cloneNode','afterend','3522530xKmVpJ','replace','map','18239816Adkuou','5363785oOCSWw','attribs','474831WMcAcD','afterbegin','3XOfdFK','parentNode','57390RQLcsI','reverse','indexOf','4922670uAEKLk','729332YImFCE'];_0x18cd=function(){return _0x694ee3;};return _0x18cd();}export function findAllComments(_0x498f09){return _0x5408e5(_0x34a219=>_0x168955(_0x34a219),_0x498f09,!0x0,0x1/0x0);}export function getAttribute(_0x4c8f78,_0x2f0cae){const _0x55a033=_0x4ed5;return _0x4c8f78&&_0x3f2315(_0x4c8f78)?_0x4c8f78[_0x55a033(0x114)][_0x2f0cae]:null;}export function setAttribute(_0x318e48,_0x5575b2,_0x4b3162){const _0x3fad5b=_0x4ed5;_0x3f2315(_0x318e48)&&(null===_0x4b3162?delete _0x318e48[_0x3fad5b(0x114)][_0x5575b2]:_0x318e48[_0x3fad5b(0x114)][_0x5575b2]=_0x4b3162);}export function insertElement(_0x5c471d,_0xd523d1,_0x19d7e1){const _0x52e00b=_0x4ed5,_0x48c782=_0xd523d1[_0x52e00b(0x10d)](!0x0);_0x52e00b(0x107)===_0x19d7e1?_0x40d497(_0x5c471d,_0x48c782):_0x52e00b(0xff)===_0x19d7e1?_0x3bc436(_0x5c471d,_0x48c782):_0x52e00b(0x108)===_0x19d7e1?_0x49c573(_0x5c471d,_0x48c782):_0x52e00b(0x10e)===_0x19d7e1&&_0x206e1f(_0x5c471d,_0x48c782);}export function moveElement(_0x5703ec,_0x4c9207){_0x6a7a53(_0x5703ec),_0x1cffef(_0x4c9207,_0x5703ec);}export function clone(_0x2f0466){const _0x43b019=_0x4ed5;return _0x2f0466[_0x43b019(0x10d)](!0x0);}export function getParents(_0x137caf){const _0x5dd453=_0x4ed5,_0x30bc43=[];let _0x2a5ecf=_0x137caf;for(;_0x2a5ecf;)_0x2a5ecf=_0x28b6db(_0x2a5ecf),_0x2a5ecf&&_0x30bc43[_0x5dd453(0x10c)](_0x2a5ecf);return _0x30bc43;}export function normalizeHTML(_0x81bd40){const _0x53e206=_0x4ed5;return _0x81bd40[_0x53e206(0x110)](/^\s+/gm,'')[_0x53e206(0x110)](/\s+$/gm,'')[_0x53e206(0x110)](/\n*/g,'')[_0x53e206(0x110)](/\s+/g,'\x20')[_0x53e206(0x110)](/>\s*</g,'><');}export function areNodesSame(_0x3d8fcd,_0x57b9ea){return normalizeHTML(serialize(_0x3d8fcd))===normalizeHTML(serialize(_0x57b9ea));}export function getNodeNestingLevel(_0x2ba6b9){const _0x55bf38=_0x4ed5;let _0x11a94d=0x0;for(;_0x2ba6b9[_0x55bf38(0x101)];)_0x2ba6b9=_0x2ba6b9[_0x55bf38(0x101)],_0x11a94d++;return _0x11a94d;}export function removeElementsAfter(_0x137630){const _0x11f4f4=_0x4ed5,_0x35c3e9=[];let _0x4bb841=_0x137630[_0x11f4f4(0x10b)];for(;_0x4bb841;)_0x35c3e9[_0x11f4f4(0x10c)](_0x4bb841),_0x4bb841=_0x4bb841[_0x11f4f4(0x10b)];_0x35c3e9[_0x11f4f4(0x109)](_0x31975c=>{_0x6a7a53(_0x31975c);});}export function getNodePath(_0x1ce283){const _0x528913=_0x4ed5;return[_0x1ce283,...getParents(_0x1ce283)][_0x528913(0x10a)](0x0,-0x1)[_0x528913(0x111)](_0x585260=>{const _0x33ae58=_0x528913,_0x252a27=_0x28b6db(_0x585260);return _0x31fe7e(_0x252a27)[_0x33ae58(0x104)](_0x585260);})[_0x528913(0x103)]();}
|