@ckeditor/ckeditor5-ai 47.6.2-alpha.1 → 47.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- 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/aiformtoolbarview.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/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.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/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.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/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.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/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.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/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- 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/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.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/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.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/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.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/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.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/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.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/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.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/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bbbca=_0x4e9f;(function(_0x1fb34e,_0x5ac3cc){const _0x2486ec=_0x4e9f,_0x400ba0=_0x1fb34e();while(!![]){try{const _0x41c8da=parseInt(_0x2486ec(0x100))/0x1*(parseInt(_0x2486ec(0xf6))/0x2)+parseInt(_0x2486ec(0xcf))/0x3*(-parseInt(_0x2486ec(0xd1))/0x4)+-parseInt(_0x2486ec(0x101))/0x5*(parseInt(_0x2486ec(0xc7))/0x6)+-parseInt(_0x2486ec(0xda))/0x7+parseInt(_0x2486ec(0x10d))/0x8+parseInt(_0x2486ec(0xfd))/0x9+parseInt(_0x2486ec(0xd9))/0xa*(parseInt(_0x2486ec(0xec))/0xb);if(_0x41c8da===_0x5ac3cc)break;else _0x400ba0['push'](_0x400ba0['shift']());}catch(_0x105ecb){_0x400ba0['push'](_0x400ba0['shift']());}}}(_0x3526,0x3af08));import{CKEditorError as _0x452652,EmitterMixin as _0x3fdf9b,uid as _0xe7dad6}from'ckeditor5/src/utils.js';function _0x3526(){const _0x49258c=['isDestroyed','888363zXXIlG','reasoning','reasoningFinished','10eSenNC','572255MsombX','content','_isWebSearching','callId','splice','text','replies','source','replyCreated','webSearchFinished','abortController','resetWebSearchState','1258856AHGWjX','conversationTitle','webSearchStarted','interactionStarted','data','actionCallId','interactionDestroyed','web-search','interactionCreated','error','start','appendContent','connector','getDocumentContext','replyChangeGroupStateUpdated','modification-delta','ai-chat-interaction-error','currentReply','18Mznmeq','createReply','destroy','stopListening','abort','action-metadata','setConversationTitle','push','51501NlkOuq','parse','96JRxBIG','sources','text-delta','conversation-title','interactionFinished','_finalizeInteraction','interactionStopped','editor','1311230wNVgBx','2984506AqHPch','fire','resetReasoningState','forEach','message-metadata','event','modification','notification','replyContentUpdated','result','toolName','messageId','_handleToolNotificationData','mcp-tool-notification','find','getReply','sendRequest','currentRequest','77OkniqX','_isReasoning','stop','mcp-tool-result','isStopped','length','reasoningStarted','getStream','toolDataReceived','attributes','49842Iktapt','delegate','done','textDelta','type','_handleToolResultData'];_0x3526=function(){return _0x49258c;};return _0x3526();}import{AIReply as _0x235828}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3bbbca(0xbd),_0x3bbbca(0xb8),_0x3bbbca(0xd7),_0x3bbbca(0xd5),_0x3bbbca(0xbb),_0x3bbbca(0x109),_0x3bbbca(0xe2),_0x3bbbca(0xc3),_0x3bbbca(0xcd),_0x3bbbca(0xb7),_0x3bbbca(0x10a),_0x3bbbca(0xf2),_0x3bbbca(0xff),_0x3bbbca(0xf4),_0x3bbbca(0xbe)];function _0x4e9f(_0x423d55,_0x31118f){const _0x352629=_0x3526();return _0x4e9f=function(_0x4e9f83,_0x4c2516){_0x4e9f83=_0x4e9f83-0xb7;let _0x51cb20=_0x352629[_0x4e9f83];return _0x51cb20;},_0x4e9f(_0x423d55,_0x31118f);}export class AIInteraction extends _0x3fdf9b(){['id'];[_0x3bbbca(0x107)]=[];[_0x3bbbca(0xc6)];[_0x3bbbca(0xe5)];[_0x3bbbca(0xba)];[_0x3bbbca(0xeb)];[_0x3bbbca(0xc1)];[_0x3bbbca(0xf0)]=!0x1;[_0x3bbbca(0xfc)]=!0x1;[_0x3bbbca(0xd8)];[_0x3bbbca(0xed)]=!0x1;[_0x3bbbca(0x103)]=!0x1;constructor({connector:_0x349f8e,editor:_0x5380b1}){const _0x4b64cb=_0x3bbbca;super(),this['id']=_0xe7dad6(),this[_0x4b64cb(0xc1)]=_0x349f8e,this[_0x4b64cb(0xf0)]=!0x0,this[_0x4b64cb(0xd8)]=_0x5380b1;}async[_0x3bbbca(0xbf)](){const _0x1d7979=_0x3bbbca,_0x223ddc=[];let _0x69b9ed,_0x426b41,_0x4135b5;this[_0x1d7979(0xf0)]=!0x1;try{this[_0x1d7979(0xeb)]=await this[_0x1d7979(0xea)](),this[_0x1d7979(0xdb)](_0x1d7979(0xb8),this);const _0x6d0dc4=await this[_0x1d7979(0xeb)][_0x1d7979(0xf3)]();for await(const _0x1bba60 of _0x6d0dc4){if(this[_0x1d7979(0xf0)])return;if(_0x1d7979(0xbe)==_0x1bba60[_0x1d7979(0xdf)])return void this[_0x1d7979(0xdb)](_0x1d7979(0xbe),{'error':new _0x452652(_0x1d7979(0xc5),this)});switch(_0x1bba60[_0x1d7979(0xdf)]){case _0x1d7979(0xde):this[_0x1d7979(0xe5)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe5)];break;case _0x1d7979(0xcc):this[_0x1d7979(0xba)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x104)];break;case _0x1d7979(0xd4):this[_0x1d7979(0xcd)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x10e)],!0x0);break;case _0x1d7979(0x108):_0x223ddc[_0x1d7979(0xce)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x108)]);break;case _0x1d7979(0xbc):this[_0x1d7979(0x103)]||(this[_0x1d7979(0x103)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xb7),this));break;case _0x1d7979(0xfe):this[_0x1d7979(0xed)]||(this[_0x1d7979(0xed)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xf2),this));break;case _0x1d7979(0xc4):case _0x1d7979(0xd3):this[_0x1d7979(0xdc)](),this[_0x1d7979(0x10c)](),_0x69b9ed=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1d7979(0xe0):_0x1d7979(0x106),_0x426b41=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1bba60[_0x1d7979(0xb9)]['id']:void 0x0,this[_0x1d7979(0xc6)]&&this[_0x1d7979(0xc6)][_0x1d7979(0xfa)]!=_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xf8)](),this[_0x1d7979(0xc6)]=void 0x0),this[_0x1d7979(0xc6)]||(this[_0x1d7979(0xc6)]=this[_0x1d7979(0xc8)]({'type':_0x69b9ed,'interactionId':this['id'],'id':_0x426b41}),_0x1d7979(0xe0)==_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0))),this[_0x1d7979(0xc6)][_0x1d7979(0xc0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xf9)]);break;case _0x1d7979(0xef):_0x4135b5=JSON[_0x1d7979(0xd0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe3)]),this[_0x1d7979(0xfb)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x4135b5[_0x1d7979(0xb9)],'attributes':_0x4135b5[_0x1d7979(0xf5)]});break;case _0x1d7979(0xe7):this[_0x1d7979(0xe6)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xb9)]});}}}finally{this[_0x1d7979(0xf0)]||(this[_0x1d7979(0xc6)]&&_0x223ddc[_0x1d7979(0xf1)]>0x0&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0)),this[_0x1d7979(0xd6)](),this[_0x1d7979(0xdb)](_0x1d7979(0xd5),this));}}[_0x3bbbca(0xee)](){const _0x4bd502=_0x3bbbca;this[_0x4bd502(0xf0)]||(this[_0x4bd502(0xd6)](),this[_0x4bd502(0xdb)](_0x4bd502(0xd7),this));}[_0x3bbbca(0xe9)](_0x7995b5){const _0x153350=_0x3bbbca;return this[_0x153350(0x107)][_0x153350(0xe8)](_0x2b6081=>_0x2b6081['id']===_0x7995b5);}[_0x3bbbca(0xc9)](){const _0x4d3381=_0x3bbbca;this[_0x4d3381(0xfc)]||(this[_0x4d3381(0xee)](),this[_0x4d3381(0x107)][_0x4d3381(0xdd)](_0x9e27d5=>_0x9e27d5[_0x4d3381(0xc9)]()),this[_0x4d3381(0x107)]=[],this[_0x4d3381(0xfc)]=!0x0,this[_0x4d3381(0xdb)](_0x4d3381(0xbb),this),this[_0x4d3381(0xca)]());}[_0x3bbbca(0xc8)](_0x3f0cc6){const _0xe9e2ee=_0x3bbbca,_0x253e71=new _0x235828({'editor':this[_0xe9e2ee(0xd8)],'documentContextContent':this[_0xe9e2ee(0xc2)]()?.[_0xe9e2ee(0x102)],..._0x3f0cc6});return this[_0xe9e2ee(0x107)][_0xe9e2ee(0xce)](_0x253e71),_0x253e71[_0xe9e2ee(0xf7)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xe9e2ee(0xdb)](_0xe9e2ee(0x109),_0x253e71),_0x253e71;}[_0x3bbbca(0xcd)](_0xb1e4a,_0x52c7b3=!0x1){const _0x5c856c=_0x3bbbca;this[_0x5c856c(0xdb)](_0x5c856c(0xcd),_0xb1e4a,_0x52c7b3);}[_0x3bbbca(0x10c)](){const _0x46e9b9=_0x3bbbca;this[_0x46e9b9(0x103)]&&(this[_0x46e9b9(0x103)]=!0x1,this[_0x46e9b9(0xdb)](_0x46e9b9(0x10a),this));}[_0x3bbbca(0xdc)](){const _0x3d3e24=_0x3bbbca;this[_0x3d3e24(0xed)]&&(this[_0x3d3e24(0xed)]=!0x1,this[_0x3d3e24(0xdb)](_0x3d3e24(0xff),this));}[_0x3bbbca(0xfb)](_0x525322){const _0x21f596=_0x3bbbca;this[_0x21f596(0xdb)](_0x21f596(0xf4),{'type':_0x21f596(0xe3),'toolName':_0x525322[_0x21f596(0xe4)],'data':structuredClone(_0x525322[_0x21f596(0xb9)]||{}),'attributes':structuredClone(_0x525322[_0x21f596(0xf5)]||{})},this);}[_0x3bbbca(0xe6)](_0x54e687){const _0x3b700c=_0x3bbbca;this[_0x3b700c(0xdb)](_0x3b700c(0xf4),{'type':_0x3b700c(0xe1),'toolName':_0x54e687[_0x3b700c(0xe4)],'data':structuredClone(_0x54e687[_0x3b700c(0xb9)])},this);}[_0x3bbbca(0xd6)](){const _0x5b3407=_0x3bbbca;this[_0x5b3407(0xf0)]=!0x0,this[_0x5b3407(0xeb)]&&this[_0x5b3407(0xeb)][_0x5b3407(0x10b)][_0x5b3407(0xcb)](),this[_0x5b3407(0xc6)]&&this[_0x5b3407(0xc6)][_0x5b3407(0xf8)](),this[_0x5b3407(0xeb)]=this[_0x5b3407(0xc6)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3263fb=_0x210c;(function(_0x22d58,_0x375b23){const _0x4c371d=_0x210c,_0x4b37a9=_0x22d58();while(!![]){try{const _0x33d42b=-parseInt(_0x4c371d(0x196))/0x1+-parseInt(_0x4c371d(0x18d))/0x2*(parseInt(_0x4c371d(0x1a1))/0x3)+parseInt(_0x4c371d(0x19b))/0x4*(parseInt(_0x4c371d(0x197))/0x5)+parseInt(_0x4c371d(0x1a6))/0x6+parseInt(_0x4c371d(0x193))/0x7+parseInt(_0x4c371d(0x199))/0x8*(-parseInt(_0x4c371d(0x194))/0x9)+parseInt(_0x4c371d(0x186))/0xa;if(_0x33d42b===_0x375b23)break;else _0x4b37a9['push'](_0x4b37a9['shift']());}catch(_0x2430a0){_0x4b37a9['push'](_0x4b37a9['shift']());}}}(_0x3b05,0x8b078));function _0x210c(_0x42c1ea,_0x52d307){const _0x3b057f=_0x3b05();return _0x210c=function(_0x210cb7,_0x59947f){_0x210cb7=_0x210cb7-0x173;let _0x15d83b=_0x3b057f[_0x210cb7];return _0x15d83b;},_0x210c(_0x42c1ea,_0x52d307);}import{EmitterMixin as _0x47fefe,logWarning as _0x22f5b6,logError as _0x566aba}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e4ede}from'../utils/common-translations.js';export class AIModels extends _0x47fefe(){[_0x3263fb(0x18a)];[_0x3263fb(0x17c)];[_0x3263fb(0x173)];[_0x3263fb(0x17e)]=[];[_0x3263fb(0x184)]=null;constructor({connector:_0x52bf00,config:_0x42b7bb,locale:_0x12dd25}){const _0x3417e9=_0x3263fb;super(),this[_0x3417e9(0x18a)]=_0x52bf00,this[_0x3417e9(0x17c)]=_0x42b7bb,this[_0x3417e9(0x173)]=_0x12dd25;}get[_0x3263fb(0x182)](){const _0x5a5ba4=_0x3263fb;return this[_0x5a5ba4(0x17c)]?.[_0x5a5ba4(0x180)];}get[_0x3263fb(0x19c)](){const _0x5e551d=_0x3263fb;return this[_0x5e551d(0x17c)]?.[_0x5e551d(0x192)];}async[_0x3263fb(0x1a3)](){const _0x319a82=_0x3263fb;return this[_0x319a82(0x184)]||(this[_0x319a82(0x184)]=this[_0x319a82(0x17b)]()),this[_0x319a82(0x184)];}async[_0x3263fb(0x18c)](){const _0xdaf700=_0x3263fb,_0x5155f7=await this[_0xdaf700(0x1a3)]();let _0x13d8d2;return _0x13d8d2=this[_0xdaf700(0x182)]?this[_0xdaf700(0x18e)](_0x5155f7,this[_0xdaf700(0x182)]):_0x5155f7[_0xdaf700(0x19e)](_0x3dfcfe=>_0x3dfcfe[_0xdaf700(0x1a4)]),_0x13d8d2;}async[_0x3263fb(0x175)](_0x550f80){const _0x93ea98=_0x3263fb,_0x3608cb=await this[_0x93ea98(0x1a3)]();if(!_0x3608cb[_0x93ea98(0x195)])return null;if(_0x550f80){const _0x44c189=this[_0x93ea98(0x189)](_0x3608cb,_0x550f80);if(_0x44c189)return _0x44c189;_0x22f5b6(_0x93ea98(0x18b),{'modelId':_0x550f80,'fallBackModelId':this[_0x93ea98(0x19c)]});}return this[_0x93ea98(0x1a0)]();}async[_0x3263fb(0x1a0)](){const _0x139984=_0x3263fb,_0xf8c862=await this[_0x139984(0x18c)]();if(!_0xf8c862[_0x139984(0x195)])return null;if(this[_0x139984(0x19c)]){const _0x31e442=this[_0x139984(0x189)](_0xf8c862,this[_0x139984(0x19c)]);if(_0x31e442)return _0x31e442;_0x22f5b6(_0x139984(0x174),{'defaultModelId':this[_0x139984(0x19c)],'fallBackModelId':_0xf8c862[0x0]['id']});}return _0xf8c862[0x0];}async[_0x3263fb(0x17a)](_0x156969){const _0x4b0017=_0x3263fb;return(await this[_0x4b0017(0x18c)]())[_0x4b0017(0x17d)](_0x18786b=>_0x18786b[_0x4b0017(0x190)]===_0x156969[_0x4b0017(0x190)]&&_0x18786b[_0x4b0017(0x179)]===_0x156969[_0x4b0017(0x179)]);}async[_0x3263fb(0x17b)](){const _0x2312ad=_0x3263fb;if(!this[_0x2312ad(0x17e)][_0x2312ad(0x195)])try{const _0x404f18=this[_0x2312ad(0x173)][_0x2312ad(0x18f)]||'en',_0x4c915a=this[_0x2312ad(0x18a)][_0x2312ad(0x177)](_0x404f18),_0x1f2336=await _0x4c915a[_0x2312ad(0x1a2)]();this[_0x2312ad(0x17e)]=_0x1f2336[_0x2312ad(0x19a)][_0x2312ad(0x183)](_0x1535a6=>ze(_0x1535a6)?{..._0x1535a6,'name':_0x3e4ede(this[_0x2312ad(0x173)],_0x2312ad(0x198))}:_0x1535a6);}catch(_0x14f0e9){throw _0x566aba(_0x2312ad(0x176),{'error':_0x14f0e9}),_0x14f0e9;}return[...this[_0x2312ad(0x17e)]];}[_0x3263fb(0x18e)](_0x28c869,_0x2ed42c){const _0x1928c2=_0x3263fb;let _0x4128aa;if(_0x2ed42c){_0x4128aa=[];const _0x34c85c=new Set(),_0x1c505b=_0x1928c2(0x178)==typeof _0x2ed42c?[_0x2ed42c[_0x1928c2(0x185)]()]:_0x2ed42c[_0x1928c2(0x183)](_0x18f1cc=>_0x18f1cc[_0x1928c2(0x185)]());for(const _0x2e571c of _0x1c505b)for(const _0x58ae37 of _0x28c869)!_0x34c85c[_0x1928c2(0x17f)](_0x58ae37['id'])&&this[_0x1928c2(0x19d)](_0x58ae37,_0x2e571c)&&(_0x4128aa[_0x1928c2(0x187)](_0x58ae37),_0x34c85c[_0x1928c2(0x191)](_0x58ae37['id']));}else _0x4128aa=_0x28c869;return _0x4128aa;}[_0x3263fb(0x19d)](_0x20646e,_0xc8694c){const _0xdbdcba=_0x3263fb,_0x386fc0=_0x20646e['id'][_0xdbdcba(0x185)](),_0x545355=_0x20646e[_0xdbdcba(0x190)][_0xdbdcba(0x185)](),_0x4d9099=_0x20646e[_0xdbdcba(0x179)][_0xdbdcba(0x185)]();return _0x386fc0===_0xc8694c||_0x545355===_0xc8694c||ze(_0x20646e)&&_0xdbdcba(0x181)===_0xc8694c||_0x4d9099===_0xc8694c||_0x386fc0[_0xdbdcba(0x1a5)](_0xc8694c);}[_0x3263fb(0x189)](_0x4a1bce,_0x3e36c6){const _0x588292=_0x3263fb;return _0x4a1bce[_0x588292(0x19f)](_0x4b212d=>ze(_0x4b212d)&&_0x588292(0x181)===_0x3e36c6?_0x4b212d:_0x4b212d['id']===_0x3e36c6)||null;}}function _0x3b05(){const _0x3fea71=['getModel','ai-models-unable-to-retrieve','getModels','string','provider','isAvailable','_retrieveModels','_config','some','_modelList','has','displayedModels','auto','_availableModels','map','_modelsRequest','toLocaleLowerCase','8606000XIQSLZ','push','agent','_getModelById','_connector','ai-chat-model-id-unrecognized','getAvailableModels','1877218TdMHly','_filterModels','uiLanguage','name','add','defaultModelId','4591699ceIXrF','1683lmmLSR','length','364747ioCYJb','5FvCbpq','AI_MODEL_NAME_AUTO','44080SPAwDl','items','2637960UGugBr','_defaultModelId','_isMatchingFilter','filter','find','getDefault','3NmweiD','list','getAll','recommended','startsWith','4362858FtCTKP','_locale','ai-chat-default-model-id-unrecognized'];_0x3b05=function(){return _0x3fea71;};return _0x3b05();}function ze(_0x71220c){const _0x30d1d2=_0x3263fb;return _0x71220c['id'][_0x30d1d2(0x1a5)](_0x30d1d2(0x188));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x9d56(){const _0x33ac6c=['state','17809ZFoOwe','parsedContent','nextSibling','stopListening','modifiedNodeIds','every','setChangeGroupState','removed','5702268DwsTbD','modified','type','content','modification','changeGroups','withDiff','done','_getCachedContentParts','change:content','map','5890OCCKtF','filter','find','new','ai-get-editor-from-context-no-editor','replyChangeGroupStateUpdated','201658GowTFN','getContentParts','sources','editor','data-unstable','isDone','replyContentUpdated','newNodeIds','parsedMergedContent','documentContextContent','appendContent','changes','areActionsDisabled','includes','locale','withoutDiff','ai-reply-get-content-parts-group-not-found','unshift','onContentChange','span','fire','152ahEFlE','cachedSuggestionContentParts','index','736094QsXYEp','318afTQzw','merge','interactionId','convertMarkdownToHTML','_setCachedContentParts','_getDifferentChangeGroups','7790590kksBYx','color:\x20#808080;\x20font-style:\x20italic','node','parseAndNormalizeHTML','splice','aiResponseParser','aiResponseApplier','535662XRHPbi','14371pVGkfI','context','previousSibling','set','3ldIMrR','AI_SUGGESTION_CONTENT_PART_REMOVED','cloneNode','updateChangeGroups','push','length','forEach','data-id','pending','removedNodeIds','indexOf','destroy'];_0x9d56=function(){return _0x33ac6c;};return _0x9d56();}const _0x3b346d=_0x2d63;(function(_0x3c10fe,_0x4f293e){const _0x2fe7e7=_0x2d63,_0x1e98d2=_0x3c10fe();while(!![]){try{const _0x8c8216=parseInt(_0x2fe7e7(0xa8))/0x1+-parseInt(_0x2fe7e7(0x90))/0x2*(parseInt(_0x2fe7e7(0x6a))/0x3)+parseInt(_0x2fe7e7(0x7f))/0x4+-parseInt(_0x2fe7e7(0xaf))/0x5+-parseInt(_0x2fe7e7(0xa9))/0x6*(-parseInt(_0x2fe7e7(0xb7))/0x7)+-parseInt(_0x2fe7e7(0xa5))/0x8*(-parseInt(_0x2fe7e7(0xb6))/0x9)+parseInt(_0x2fe7e7(0x8a))/0xa*(-parseInt(_0x2fe7e7(0x77))/0xb);if(_0x8c8216===_0x4f293e)break;else _0x1e98d2['push'](_0x1e98d2['shift']());}catch(_0xc918c3){_0x1e98d2['push'](_0x1e98d2['shift']());}}}(_0x9d56,0xc0926));import{CKEditorError as _0x2bdca8,ObservableMixin as _0x3c52d2,uid as _0x509d19}from'ckeditor5/src/utils.js';import{Element as _0x3fc04d,findAll as _0x5705d2,getAttribute as _0x29d93b,getParents as _0x2096bd,Document as _0x56695b,parse as _0x4d28b1,Text as _0x45154a}from'../utils/htmlparser.js';import{AIResponseParser as _0x1e1f6b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0xc4be5a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x56ca6c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2c585}from'../utils/common-translations.js';import{cloneDeep as _0x44146c}from'es-toolkit';function _0x2d63(_0x27af23,_0x5d8658){const _0x9d56f=_0x9d56();return _0x2d63=function(_0x2d6307,_0x5ca6d0){_0x2d6307=_0x2d6307-0x68;let _0x2fc746=_0x9d56f[_0x2d6307];return _0x2fc746;},_0x2d63(_0x27af23,_0x5d8658);}export class AIReply extends _0x3c52d2(){['id'];[_0x3b346d(0xab)];[_0x3b346d(0x81)];[_0x3b346d(0x92)]=[];[_0x3b346d(0x78)]=new _0x56695b([]);[_0x3b346d(0x98)]=new _0x56695b([]);[_0x3b346d(0x84)]=[];[_0x3b346d(0x9c)]=!0x1;[_0x3b346d(0x99)];[_0x3b346d(0xb4)];[_0x3b346d(0xb5)];[_0x3b346d(0x93)];[_0x3b346d(0xa6)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x5ae6b8,content:_0x2804dc='',isDone:_0x1212b4=!0x1,interactionId:_0x7cb4d0,areActionsDisabled:_0x2343de,documentContextContent:_0x3990b9,editor:_0x4afa3b,id:_0x43b38c}){const _0x316b8b=_0x3b346d;super(),this['id']=_0x43b38c||_0x509d19(),this[_0x316b8b(0xab)]=_0x7cb4d0,this[_0x316b8b(0x81)]=_0x5ae6b8,this[_0x316b8b(0x9c)]=!!_0x2343de,this[_0x316b8b(0x93)]=_0x4afa3b,this[_0x316b8b(0xb4)]=new _0x1e1f6b(),this[_0x316b8b(0xb5)]=new _0xc4be5a(),this[_0x316b8b(0x99)]=_0x4d28b1(_0x3990b9||''),this[_0x316b8b(0x69)](_0x316b8b(0x95),_0x1212b4),this['on'](_0x316b8b(0x88),()=>{const _0x3204a9=_0x316b8b;this[_0x3204a9(0xa2)]();}),this[_0x316b8b(0x69)](_0x316b8b(0x82),_0x2804dc);}[_0x3b346d(0x9a)](_0x3b5c68){const _0x1d5393=_0x3b346d;this[_0x1d5393(0x69)](_0x1d5393(0x82),this[_0x1d5393(0x82)]+_0x3b5c68);}[_0x3b346d(0x86)](){const _0x570bb9=_0x3b346d;this[_0x570bb9(0x95)]||(this[_0x570bb9(0x69)](_0x570bb9(0x95),!0x0),this[_0x570bb9(0xa2)]());}[_0x3b346d(0x75)](){const _0x40fbb5=_0x3b346d;this[_0x40fbb5(0x7a)]();}[_0x3b346d(0x7d)](_0x276901,_0x1cd232){const _0x3631c9=_0x3b346d;this[_0x3631c9(0x84)][_0x276901][_0x3631c9(0x76)]=_0x1cd232,this[_0x3631c9(0xa4)](_0x3631c9(0x8f),{'reply':this,'index':_0x276901,'state':_0x1cd232});}[_0x3b346d(0x91)]({showDiff:_0xe75e0b,groupIndex:_0x5b6066}){const _0x2d30bf=_0x3b346d;if(!this[_0x2d30bf(0x93)])throw new _0x2bdca8(_0x2d30bf(0x8e),null,{'aiReply':this});const _0x52f3eb=this[_0x2d30bf(0x87)](_0xe75e0b,_0x5b6066);if(_0x52f3eb)return _0x52f3eb;let _0x11b95f=[];if(void 0x0===_0x5b6066)_0x11b95f=this[_0x2d30bf(0x84)];else{const _0x2607b2=this[_0x2d30bf(0x84)][_0x2d30bf(0x8c)](({index:_0x21a1c5})=>_0x21a1c5===_0x5b6066);if(!_0x2607b2)throw new _0x2bdca8(_0x2d30bf(0xa0),null,{'aiReply':this,'groupIndex':_0x5b6066});_0x11b95f=[_0x2607b2];}const _0x551b41=_0x56ca6c({'editor':this[_0x2d30bf(0x93)],'showDiff':_0xe75e0b,'changeGroups':_0x11b95f,'documentContextContent':this[_0x2d30bf(0x99)]});return this[_0x2d30bf(0xad)](_0xe75e0b,_0x551b41),_0x551b41;}[_0x3b346d(0x87)](_0x587e45,_0x568523){const _0xf2806e=_0x3b346d,_0x411ba3=_0x587e45?_0xf2806e(0x85):_0xf2806e(0x9f);if(!this[_0xf2806e(0xa6)][_0x411ba3][_0xf2806e(0x6f)])return null;const _0xbe0ea9=this[_0xf2806e(0xa6)][_0x411ba3];if(void 0x0===_0x568523)return _0xbe0ea9[_0xf2806e(0x6f)]>0x0&&_0xbe0ea9[_0xf2806e(0x6f)]!==this[_0xf2806e(0x84)][_0xf2806e(0x6f)]?(this[_0xf2806e(0xad)](_0x587e45,null),null):_0x44146c(_0xbe0ea9);{const _0x467a32=_0xbe0ea9[_0xf2806e(0x8c)](({index:_0x1eb91e})=>_0x1eb91e===_0x568523);if(_0x467a32)return[_0x44146c(_0x467a32)];}return null;}[_0x3b346d(0xad)](_0x21f278,_0x567c2f){const _0x4ce6a8=_0x3b346d,_0x475da7=_0x21f278?_0x4ce6a8(0x85):_0x4ce6a8(0x9f);_0x567c2f?_0x567c2f[_0x4ce6a8(0x70)](_0x4043ba=>{const _0x44c6bc=_0x4ce6a8,_0x145cc9=this[_0x44c6bc(0xa6)][_0x475da7],_0x5d7aff=_0x145cc9[_0x44c6bc(0x8c)](({index:_0x5a23b7})=>_0x5a23b7===_0x4043ba[_0x44c6bc(0xa7)]);if(_0x5d7aff){const _0x30e1c8=_0x145cc9[_0x44c6bc(0x74)](_0x5d7aff);_0x145cc9[_0x44c6bc(0xb3)](_0x30e1c8,0x1,_0x4043ba);}else _0x145cc9[_0x44c6bc(0x6e)](_0x4043ba);}):this[_0x4ce6a8(0xa6)][_0x475da7][_0x4ce6a8(0x6f)]=0x0;}[_0x3b346d(0xa2)](){const _0x3a593e=_0x3b346d;if(_0x3a593e(0x83)===this[_0x3a593e(0x81)]){this[_0x3a593e(0x78)]=this[_0x3a593e(0xb4)][_0x3a593e(0xb2)](this[_0x3a593e(0x82)]);const _0x356104=this[_0x3a593e(0x84)];this[_0x3a593e(0x6d)]();const _0x4196c8=this[_0x3a593e(0xae)](_0x356104,this[_0x3a593e(0x84)]);(_0x4196c8[_0x3a593e(0x6f)]||this[_0x3a593e(0x95)])&&(this[_0x3a593e(0xa4)](_0x3a593e(0x96),this,_0x4196c8),this[_0x3a593e(0xa6)][_0x3a593e(0x85)][_0x3a593e(0x6f)]=this[_0x3a593e(0xa6)][_0x3a593e(0x9f)][_0x3a593e(0x6f)]=0x0);}else this[_0x3a593e(0x78)]=this[_0x3a593e(0xb4)][_0x3a593e(0xac)](this[_0x3a593e(0x82)]),this[_0x3a593e(0xa4)](_0x3a593e(0x96),this);}[_0x3b346d(0xae)](_0x23c4b0,_0x513f6b){const _0x5e3949=_0x3b346d,_0x30d515=[];for(const _0x357de5 of _0x513f6b){const _0x21e921=_0x23c4b0[_0x357de5[_0x5e3949(0xa7)]];_0x21e921?_0x21e921[_0x5e3949(0x9b)][_0x5e3949(0x6f)]!==_0x357de5[_0x5e3949(0x9b)][_0x5e3949(0x6f)]?_0x30d515[_0x5e3949(0x6e)](_0x357de5):_0x21e921[_0x5e3949(0x9b)][_0x5e3949(0x70)]((_0x3c59b5,_0x5b8451)=>{const _0x4ceae0=_0x5e3949,_0xd8d050=_0x357de5[_0x4ceae0(0x9b)][_0x5b8451];_0x3c59b5['id']!==_0xd8d050['id']&&_0x30d515[_0x4ceae0(0x6e)](_0x357de5);}):_0x30d515[_0x5e3949(0x6e)](_0x357de5);}return _0x30d515;}[_0x3b346d(0x6d)](){const _0x5cdaa5=_0x3b346d,_0x454088=new _0x3fc04d('p',{},[new _0x3fc04d(_0x5cdaa5(0xa3),{'style':_0x5cdaa5(0xb0)},[new _0x45154a(_0x2c585(this[_0x5cdaa5(0x93)][_0x5cdaa5(0x9e)],_0x5cdaa5(0x6b)))])]),_0x2c61b5=this[_0x5cdaa5(0xb5)][_0x5cdaa5(0xaa)](this[_0x5cdaa5(0x78)],this[_0x5cdaa5(0x99)][_0x5cdaa5(0x6c)](!0x0),{'markUnstableElements':!this[_0x5cdaa5(0x95)],'replaceRemovedWith':_0x454088,'cutAfterLastChange':!this[_0x5cdaa5(0x95)]});if(!_0x2c61b5[_0x5cdaa5(0x7b)][_0x5cdaa5(0x6f)]&&!this[_0x5cdaa5(0x95)])return;this[_0x5cdaa5(0x98)]=_0x2c61b5[_0x5cdaa5(0x78)];let _0x43b9a1=[];if(_0x5705d2(_0x58938d=>{const _0x48253d=_0x5cdaa5,_0x45abad=_0x29d93b(_0x58938d,_0x48253d(0x71));if(!_0x45abad||!_0x1a1f92(_0x45abad))return!0x1;const _0x9680fc=[_0x58938d,..._0x2096bd(_0x58938d)]['at'](-0x2);if(_0x58938d!=_0x9680fc){const _0x5ebdef=_0x29d93b(_0x9680fc,_0x48253d(0x71));_0x1a1f92(_0x5ebdef)||(_0x43b9a1[_0x48253d(0x6e)]({'node':_0x9680fc,'id':_0x5ebdef,'type':_0x48253d(0x80)}),_0x2c61b5[_0x48253d(0x7b)][_0x48253d(0x6e)](_0x5ebdef));}else _0x2c61b5[_0x48253d(0x7b)][_0x48253d(0x9d)](_0x45abad)?_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x80),'id':_0x45abad}):_0x2c61b5[_0x48253d(0x97)][_0x48253d(0x9d)](_0x45abad)?_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x8d),'id':_0x45abad,'anchorId':_0x29d93b(_0x58938d[_0x48253d(0x68)],_0x48253d(0x71))}):_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x7e),'id':_0x45abad});return!0x0;},this[_0x5cdaa5(0x98)]),_0x43b9a1=_0x43b9a1[_0x5cdaa5(0x8b)](({node:_0xdebb0b})=>[..._0x2096bd(_0xdebb0b),_0xdebb0b][_0x5cdaa5(0x7c)](_0x1442e8=>!_0x29d93b(_0x1442e8,_0x5cdaa5(0x94)))),0x0==_0x43b9a1[_0x5cdaa5(0x6f)])return;const _0x31d011=[[_0x43b9a1[0x0]]];for(let _0x3ead73=0x1;_0x3ead73<_0x43b9a1[_0x5cdaa5(0x6f)];_0x3ead73++){const _0x3eaab6=_0x31d011[_0x31d011[_0x5cdaa5(0x6f)]-0x1],_0x350da4=_0x3eaab6[_0x3eaab6[_0x5cdaa5(0x6f)]-0x1];_0x43b9a1[_0x3ead73][_0x5cdaa5(0xb1)][_0x5cdaa5(0x68)]==_0x350da4[_0x5cdaa5(0xb1)]&&_0x5cdaa5(0x80)!=_0x43b9a1[_0x3ead73][_0x5cdaa5(0x81)]&&_0x5cdaa5(0x80)!=_0x350da4[_0x5cdaa5(0x81)]?_0x3eaab6[_0x5cdaa5(0x6e)](_0x43b9a1[_0x3ead73]):_0x31d011[_0x5cdaa5(0x6e)]([_0x43b9a1[_0x3ead73]]);}for(const _0x128760 of _0x31d011){const _0x56b1ae=_0x128760[0x0],_0x3d4092=_0x128760[_0x128760[_0x5cdaa5(0x6f)]-0x1],_0x432692=_0x1d3194(_0x56b1ae[_0x5cdaa5(0xb1)][_0x5cdaa5(0x68)]);_0x432692&&_0x128760[_0x5cdaa5(0xa1)](_0x432692);const _0x46643a=_0x1d3194(_0x3d4092[_0x5cdaa5(0xb1)][_0x5cdaa5(0x79)]);_0x46643a&&_0x128760[_0x5cdaa5(0x6e)](_0x46643a);}function _0x1a1f92(_0x1d4464){const _0x40ce04=_0x5cdaa5;return _0x2c61b5[_0x40ce04(0x7b)][_0x40ce04(0x9d)](_0x1d4464)||_0x2c61b5[_0x40ce04(0x97)][_0x40ce04(0x9d)](_0x1d4464)||_0x2c61b5[_0x40ce04(0x73)][_0x40ce04(0x9d)](_0x1d4464);}function _0x1d3194(_0x3e81f7){const _0x4af681=_0x5cdaa5;if(_0x3e81f7&&_0x29d93b(_0x3e81f7,_0x4af681(0x71))&&!_0x29d93b(_0x3e81f7,_0x4af681(0x94))){const _0x393f23=_0x29d93b(_0x3e81f7,_0x4af681(0x71));if(!_0x1a1f92(_0x393f23))return{'node':_0x3e81f7,'type':_0x4af681(0xb8),'id':_0x393f23};}return null;}this[_0x5cdaa5(0x84)]=_0x31d011[_0x5cdaa5(0x89)]((_0xc212c3,_0x17c865)=>({'changes':_0xc212c3,'state':_0x5cdaa5(0x72),'index':_0x17c865}));}}
|
|
23
|
+
const _0x133240=_0x1276;function _0x2366(){const _0x3864d2=['unshift','editor','8DfVpbI','content','previousSibling','changes','612733BEJExI','aiResponseApplier','new','change:content','_getDifferentChangeGroups','1430DMOvNK','node','removedNodeIds','newNodeIds','aiResponseParser','_setCachedContentParts','map','modifiedNodeIds','582804CsBvZg','filter','locale','_getCachedContentParts','14481blGYWd','includes','setChangeGroupState','index','cachedSuggestionContentParts','span','updateChangeGroups','modification','done','2849130iXlbjm','state','interactionId','modified','removed','1988gCmNOx','replyChangeGroupStateUpdated','merge','ai-reply-get-content-parts-group-not-found','isDone','length','getContentParts','sources','convertMarkdownToHTML','areActionsDisabled','changeGroups','find','nextSibling','pending','ai-get-editor-from-context-no-editor','10JVtHTp','destroy','1455513yCENRs','replyContentUpdated','push','every','withoutDiff','12576JOOtbb','type','parsedContent','stopListening','indexOf','forEach','onContentChange','data-unstable','splice','parsedMergedContent','appendContent','color:\x20#808080;\x20font-style:\x20italic','withDiff','cloneNode','parseAndNormalizeHTML','documentContextContent','data-id','set','AI_SUGGESTION_CONTENT_PART_REMOVED','4633518LyyFUd','fire','context'];_0x2366=function(){return _0x3864d2;};return _0x2366();}(function(_0x2ee95e,_0x351a78){const _0x4312e9=_0x1276,_0xb7795d=_0x2ee95e();while(!![]){try{const _0x2c494d=-parseInt(_0x4312e9(0xc1))/0x1+parseInt(_0x4312e9(0xce))/0x2+parseInt(_0x4312e9(0x93))/0x3*(parseInt(_0x4312e9(0xb0))/0x4)+parseInt(_0x4312e9(0x91))/0x5*(-parseInt(_0x4312e9(0xab))/0x6)+-parseInt(_0x4312e9(0xd3))/0x7*(-parseInt(_0x4312e9(0x98))/0x8)+-parseInt(_0x4312e9(0xc5))/0x9*(-parseInt(_0x4312e9(0xb9))/0xa)+-parseInt(_0x4312e9(0xb4))/0xb;if(_0x2c494d===_0x351a78)break;else _0xb7795d['push'](_0xb7795d['shift']());}catch(_0x562cf9){_0xb7795d['push'](_0xb7795d['shift']());}}}(_0x2366,0xd8e6d));import{CKEditorError as _0x35bd97,ObservableMixin as _0x3378d9,uid as _0x184f65}from'ckeditor5/src/utils.js';function _0x1276(_0x23c05b,_0x1e1fd0){const _0x236614=_0x2366();return _0x1276=function(_0x127660,_0x3db56a){_0x127660=_0x127660-0x88;let _0x1d76cb=_0x236614[_0x127660];return _0x1d76cb;},_0x1276(_0x23c05b,_0x1e1fd0);}import{Element as _0x1b7a25,findAll as _0x53c501,getAttribute as _0x1b5aca,getParents as _0x3ddae2,Document as _0x5f4863,parse as _0x30d067,Text as _0x21caf2}from'../utils/htmlparser.js';import{AIResponseParser as _0x69afc0}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x547365}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5ee9af}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4401d9}from'../utils/common-translations.js';import{cloneDeep as _0x1ed1eb}from'es-toolkit';export class AIReply extends _0x3378d9(){['id'];[_0x133240(0xd0)];[_0x133240(0x99)];[_0x133240(0x89)]=[];[_0x133240(0x9a)]=new _0x5f4863([]);[_0x133240(0xa1)]=new _0x5f4863([]);[_0x133240(0x8c)]=[];[_0x133240(0x8b)]=!0x1;[_0x133240(0xa7)];[_0x133240(0xbd)];[_0x133240(0xb5)];[_0x133240(0xaf)];[_0x133240(0xc9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x321266,content:_0x2dd8d7='',isDone:_0x4bbf61=!0x1,interactionId:_0x5d6447,areActionsDisabled:_0xcafcfb,documentContextContent:_0x3b4477,editor:_0x52e1e3,id:_0xda752f}){const _0x1e4424=_0x133240;super(),this['id']=_0xda752f||_0x184f65(),this[_0x1e4424(0xd0)]=_0x5d6447,this[_0x1e4424(0x99)]=_0x321266,this[_0x1e4424(0x8b)]=!!_0xcafcfb,this[_0x1e4424(0xaf)]=_0x52e1e3,this[_0x1e4424(0xbd)]=new _0x69afc0(),this[_0x1e4424(0xb5)]=new _0x547365(),this[_0x1e4424(0xa7)]=_0x30d067(_0x3b4477||''),this[_0x1e4424(0xa9)](_0x1e4424(0xd7),_0x4bbf61),this['on'](_0x1e4424(0xb7),()=>{const _0x23fd89=_0x1e4424;this[_0x23fd89(0x9e)]();}),this[_0x1e4424(0xa9)](_0x1e4424(0xb1),_0x2dd8d7);}[_0x133240(0xa2)](_0x9df1ee){const _0x5d9683=_0x133240;this[_0x5d9683(0xa9)](_0x5d9683(0xb1),this[_0x5d9683(0xb1)]+_0x9df1ee);}[_0x133240(0xcd)](){const _0x4e8e93=_0x133240;this[_0x4e8e93(0xd7)]||(this[_0x4e8e93(0xa9)](_0x4e8e93(0xd7),!0x0),this[_0x4e8e93(0x9e)]());}[_0x133240(0x92)](){const _0x450079=_0x133240;this[_0x450079(0x9b)]();}[_0x133240(0xc7)](_0x14e4ad,_0x46d727){const _0x1a330c=_0x133240;this[_0x1a330c(0x8c)][_0x14e4ad][_0x1a330c(0xcf)]=_0x46d727,this[_0x1a330c(0xac)](_0x1a330c(0xd4),{'reply':this,'index':_0x14e4ad,'state':_0x46d727});}[_0x133240(0x88)]({showDiff:_0x273b0b,groupIndex:_0x4159a5}){const _0x23367b=_0x133240;if(!this[_0x23367b(0xaf)])throw new _0x35bd97(_0x23367b(0x90),null,{'aiReply':this});const _0xb9347f=this[_0x23367b(0xc4)](_0x273b0b,_0x4159a5);if(_0xb9347f)return _0xb9347f;let _0x14971b=[];if(void 0x0===_0x4159a5)_0x14971b=this[_0x23367b(0x8c)];else{const _0x1eb19b=this[_0x23367b(0x8c)][_0x23367b(0x8d)](({index:_0x5cff17})=>_0x5cff17===_0x4159a5);if(!_0x1eb19b)throw new _0x35bd97(_0x23367b(0xd6),null,{'aiReply':this,'groupIndex':_0x4159a5});_0x14971b=[_0x1eb19b];}const _0x17941e=_0x5ee9af({'editor':this[_0x23367b(0xaf)],'showDiff':_0x273b0b,'changeGroups':_0x14971b,'documentContextContent':this[_0x23367b(0xa7)]});return this[_0x23367b(0xbe)](_0x273b0b,_0x17941e),_0x17941e;}[_0x133240(0xc4)](_0x28adb,_0x3a11d6){const _0x311772=_0x133240,_0x59da44=_0x28adb?_0x311772(0xa4):_0x311772(0x97);if(!this[_0x311772(0xc9)][_0x59da44][_0x311772(0xd8)])return null;const _0x3ba1ca=this[_0x311772(0xc9)][_0x59da44];if(void 0x0===_0x3a11d6)return _0x3ba1ca[_0x311772(0xd8)]>0x0&&_0x3ba1ca[_0x311772(0xd8)]!==this[_0x311772(0x8c)][_0x311772(0xd8)]?(this[_0x311772(0xbe)](_0x28adb,null),null):_0x1ed1eb(_0x3ba1ca);{const _0x2f09d8=_0x3ba1ca[_0x311772(0x8d)](({index:_0x147a43})=>_0x147a43===_0x3a11d6);if(_0x2f09d8)return[_0x1ed1eb(_0x2f09d8)];}return null;}[_0x133240(0xbe)](_0x18d0ec,_0x12aa5d){const _0x40f735=_0x133240,_0x12a4a6=_0x18d0ec?_0x40f735(0xa4):_0x40f735(0x97);_0x12aa5d?_0x12aa5d[_0x40f735(0x9d)](_0x32b34d=>{const _0x197ebe=_0x40f735,_0x2ecbc1=this[_0x197ebe(0xc9)][_0x12a4a6],_0x5882cd=_0x2ecbc1[_0x197ebe(0x8d)](({index:_0x539f97})=>_0x539f97===_0x32b34d[_0x197ebe(0xc8)]);if(_0x5882cd){const _0x1b5dd0=_0x2ecbc1[_0x197ebe(0x9c)](_0x5882cd);_0x2ecbc1[_0x197ebe(0xa0)](_0x1b5dd0,0x1,_0x32b34d);}else _0x2ecbc1[_0x197ebe(0x95)](_0x32b34d);}):this[_0x40f735(0xc9)][_0x12a4a6][_0x40f735(0xd8)]=0x0;}[_0x133240(0x9e)](){const _0x113af4=_0x133240;if(_0x113af4(0xcc)===this[_0x113af4(0x99)]){this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0xa6)](this[_0x113af4(0xb1)]);const _0x28212f=this[_0x113af4(0x8c)];this[_0x113af4(0xcb)]();const _0x6ea48f=this[_0x113af4(0xb8)](_0x28212f,this[_0x113af4(0x8c)]);(_0x6ea48f[_0x113af4(0xd8)]||this[_0x113af4(0xd7)])&&(this[_0x113af4(0xac)](_0x113af4(0x94),this,_0x6ea48f),this[_0x113af4(0xc9)][_0x113af4(0xa4)][_0x113af4(0xd8)]=this[_0x113af4(0xc9)][_0x113af4(0x97)][_0x113af4(0xd8)]=0x0);}else this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0x8a)](this[_0x113af4(0xb1)]),this[_0x113af4(0xac)](_0x113af4(0x94),this);}[_0x133240(0xb8)](_0x57733b,_0x17c09e){const _0x212398=_0x133240,_0x3ed0b3=[];for(const _0x1bbfd1 of _0x17c09e){const _0x2230fc=_0x57733b[_0x1bbfd1[_0x212398(0xc8)]];_0x2230fc?_0x2230fc[_0x212398(0xb3)][_0x212398(0xd8)]!==_0x1bbfd1[_0x212398(0xb3)][_0x212398(0xd8)]?_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1):_0x2230fc[_0x212398(0xb3)][_0x212398(0x9d)]((_0x38e251,_0x1c7e97)=>{const _0x149395=_0x212398,_0x1fd4f8=_0x1bbfd1[_0x149395(0xb3)][_0x1c7e97];_0x38e251['id']!==_0x1fd4f8['id']&&_0x3ed0b3[_0x149395(0x95)](_0x1bbfd1);}):_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1);}return _0x3ed0b3;}[_0x133240(0xcb)](){const _0x143f33=_0x133240,_0x282d31=new _0x1b7a25('p',{},[new _0x1b7a25(_0x143f33(0xca),{'style':_0x143f33(0xa3)},[new _0x21caf2(_0x4401d9(this[_0x143f33(0xaf)][_0x143f33(0xc3)],_0x143f33(0xaa)))])]),_0x24925c=this[_0x143f33(0xb5)][_0x143f33(0xd5)](this[_0x143f33(0x9a)],this[_0x143f33(0xa7)][_0x143f33(0xa5)](!0x0),{'markUnstableElements':!this[_0x143f33(0xd7)],'replaceRemovedWith':_0x282d31,'cutAfterLastChange':!this[_0x143f33(0xd7)]});if(!_0x24925c[_0x143f33(0xc0)][_0x143f33(0xd8)]&&!this[_0x143f33(0xd7)])return;this[_0x143f33(0xa1)]=_0x24925c[_0x143f33(0x9a)];let _0x53f16f=[];if(_0x53c501(_0x434d43=>{const _0x3cba3e=_0x143f33,_0x39aceb=_0x1b5aca(_0x434d43,_0x3cba3e(0xa8));if(!_0x39aceb||!_0x197229(_0x39aceb))return!0x1;const _0x190771=[_0x434d43,..._0x3ddae2(_0x434d43)]['at'](-0x2);if(_0x434d43!=_0x190771){const _0x1e4029=_0x1b5aca(_0x190771,_0x3cba3e(0xa8));_0x197229(_0x1e4029)||(_0x53f16f[_0x3cba3e(0x95)]({'node':_0x190771,'id':_0x1e4029,'type':_0x3cba3e(0xd1)}),_0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0x95)](_0x1e4029));}else _0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd1),'id':_0x39aceb}):_0x24925c[_0x3cba3e(0xbc)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xb6),'id':_0x39aceb,'anchorId':_0x1b5aca(_0x434d43[_0x3cba3e(0xb2)],_0x3cba3e(0xa8))}):_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd2),'id':_0x39aceb});return!0x0;},this[_0x143f33(0xa1)]),_0x53f16f=_0x53f16f[_0x143f33(0xc2)](({node:_0xc62b01})=>[..._0x3ddae2(_0xc62b01),_0xc62b01][_0x143f33(0x96)](_0x3d3d6b=>!_0x1b5aca(_0x3d3d6b,_0x143f33(0x9f)))),0x0==_0x53f16f[_0x143f33(0xd8)])return;const _0x2a4f97=[[_0x53f16f[0x0]]];for(let _0x50d227=0x1;_0x50d227<_0x53f16f[_0x143f33(0xd8)];_0x50d227++){const _0x1d7da1=_0x2a4f97[_0x2a4f97[_0x143f33(0xd8)]-0x1],_0x4b09e4=_0x1d7da1[_0x1d7da1[_0x143f33(0xd8)]-0x1];_0x53f16f[_0x50d227][_0x143f33(0xba)][_0x143f33(0xb2)]==_0x4b09e4[_0x143f33(0xba)]&&_0x143f33(0xd1)!=_0x53f16f[_0x50d227][_0x143f33(0x99)]&&_0x143f33(0xd1)!=_0x4b09e4[_0x143f33(0x99)]?_0x1d7da1[_0x143f33(0x95)](_0x53f16f[_0x50d227]):_0x2a4f97[_0x143f33(0x95)]([_0x53f16f[_0x50d227]]);}for(const _0xfa927a of _0x2a4f97){const _0x326a7c=_0xfa927a[0x0],_0x51717e=_0xfa927a[_0xfa927a[_0x143f33(0xd8)]-0x1],_0x3e0291=_0x3a6fc4(_0x326a7c[_0x143f33(0xba)][_0x143f33(0xb2)]);_0x3e0291&&_0xfa927a[_0x143f33(0xae)](_0x3e0291);const _0xc2f32e=_0x3a6fc4(_0x51717e[_0x143f33(0xba)][_0x143f33(0x8e)]);_0xc2f32e&&_0xfa927a[_0x143f33(0x95)](_0xc2f32e);}function _0x197229(_0x123fe6){const _0x91b125=_0x143f33;return _0x24925c[_0x91b125(0xc0)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbc)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbb)][_0x91b125(0xc6)](_0x123fe6);}function _0x3a6fc4(_0x161414){const _0x593cae=_0x143f33;if(_0x161414&&_0x1b5aca(_0x161414,_0x593cae(0xa8))&&!_0x1b5aca(_0x161414,_0x593cae(0x9f))){const _0x1e2ee6=_0x1b5aca(_0x161414,_0x593cae(0xa8));if(!_0x197229(_0x1e2ee6))return{'node':_0x161414,'type':_0x593cae(0xad),'id':_0x1e2ee6};}return null;}this[_0x143f33(0x8c)]=_0x2a4f97[_0x143f33(0xbf)]((_0x19c7f3,_0x33304f)=>({'changes':_0x19c7f3,'state':_0x143f33(0x8f),'index':_0x33304f}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
_0x185acb(){[_0x4da76b(0x132)];[_0x4da76b(0x11e)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x4da76b(0x157)]=new Set();constructor(_0x572e49){const _0x35c04b=_0x4da76b;super(),this[_0x35c04b(0x132)]=_0x572e49||_0x247c22;}[_0x4da76b(0x123)](_0x260628,_0x1e4937,_0x304167){const _0x40981a=_0x4da76b,_0x1747d9=_0xd9d3eb(_0x260628);if(0x0===_0x1e4937[_0x40981a(0x124)][_0x40981a(0x122)]){const _0x323826=[];return _0x2a7f33(_0x40981a(0x11c),_0x40981a(0x140),_0x1747d9)[_0x40981a(0x127)](_0x2de2bf=>{const _0x327e4a=_0x40981a,_0x246c3e=this[_0x327e4a(0x132)]();_0x515741(_0x2de2bf,_0x327e4a(0x11c),_0x246c3e),_0x323826[_0x327e4a(0x118)](_0x246c3e);}),this[_0x40981a(0x12c)](_0x1747d9),{'parsedContent':_0x1747d9,'newNodeIds':_0x323826,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x304167&&_0x304167[_0x40981a(0x129)]&&this[_0x40981a(0x137)](_0x1747d9),this[_0x40981a(0x11e)][_0x40981a(0x15c)]=[],this[_0x40981a(0x11e)][_0x40981a(0x14c)]=[],this[_0x40981a(0x11e)][_0x40981a(0x134)]=[],this[_0x40981a(0x11e)][_0x40981a(0x15b)]=[],this[_0x40981a(0x11e)][_0x40981a(0x14e)]=null,this[_0x40981a(0x157)]=new Set(_0x2a7f33(_0x40981a(0x11c),null,_0x1e4937)[_0x40981a(0x158)](_0x1e4e43=>_0x34a64d(_0x1e4e43,_0x40981a(0x11c)))[_0x40981a(0x121)](_0x419ce6=>!!_0x419ce6));let _0x477ddc=-0x1,_0x5c5410=!0x1;const _0x527468=_0x1747d9[_0x40981a(0x124)],_0xdbc719=Array[_0x40981a(0x117)](_0x527468)[_0x40981a(0x121)](_0x9bc16e=>!(0x3===_0x9bc16e[_0x40981a(0x144)]&&''===_0x5420e9(_0x9bc16e)[_0x40981a(0x12d)]())),_0x5dbf13=_0xdbc719[_0x40981a(0x122)];for(let _0x20f3d6=0x0;_0x20f3d6<_0x5dbf13;_0x20f3d6++){const _0x3d6bf1=_0xdbc719[_0x20f3d6],_0x5f0a4f=_0xdbc719[_0x20f3d6+0x1];if(this[_0x40981a(0x13b)](_0x3d6bf1)){if(-0x1===_0x477ddc&&(_0x477ddc=_0x20f3d6),this[_0x40981a(0x125)](_0x3d6bf1),!this[_0x40981a(0x13b)](_0x5f0a4f)){const [_0x293be9,_0x30de60]=this[_0x40981a(0x152)](_0x3d6bf1,_0x5c5410,_0x1e4937);if(_0x293be9){const _0x1631c7=Array[_0x40981a(0x117)](_0xdbc719)[_0x40981a(0x14b)](_0x477ddc,_0x20f3d6+0x1);this[_0x40981a(0x142)](_0x293be9,_0x1631c7,_0x30de60),_0x477ddc=-0x1;}}}else{if(this[_0x40981a(0x159)](_0x3d6bf1))_0x5c5410=!0x0;else{if(this[_0x40981a(0x135)](_0x3d6bf1)){const _0x969ddc=_0x34a64d(_0x3d6bf1,_0x40981a(0x11c));if(_0x969ddc&&this[_0x40981a(0x157)][_0x40981a(0x139)](_0x969ddc)){const _0x54410d=_0xbd672a(_0x40981a(0x11c),_0x969ddc,_0x1e4937);this[_0x40981a(0x153)](_0x54410d,_0x3d6bf1);}if(this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x119)](_0x969ddc)){const _0x7e0bda=this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x136)](_0x969ddc);this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x13d)](_0x7e0bda,0x1);}}else{if(this[_0x40981a(0x13f)](_0x3d6bf1)){const _0x1300ec=_0x34a64d(_0x3d6bf1,_0x40981a(0x11c));this[_0x40981a(0x11e)][_0x40981a(0x14c)][_0x40981a(0x119)](_0x1300ec)||this[_0x40981a(0x150)](_0x3d6bf1);}}}}}for(const _0xd8c97a of this[_0x40981a(0x11e)][_0x40981a(0x134)]){const _0x37d1a8=_0xbd672a(_0x40981a(0x11c),_0xd8c97a,_0x1e4937);if(_0x37d1a8){if(_0x304167&&_0x304167[_0x40981a(0x154)]){this[_0x40981a(0x11e)][_0x40981a(0x14e)]=_0xd8c97a;const _0x4fabd6=_0x304167[_0x40981a(0x154)][_0x40981a(0x149)](!0x0);_0x515741(_0x4fabd6,_0x40981a(0x11c),_0xd8c97a),_0x515741(_0x4fabd6,_0x40981a(0x11b),_0x40981a(0x12f)),_0x15ed01(_0x37d1a8,_0x4fabd6);}else _0x5e14b3(_0x37d1a8);}}if(_0x2a7f33(_0x40981a(0x12e),null,_0x1e4937)[_0x40981a(0x127)](_0x1128d4=>{const _0x1455e3=_0x40981a,_0x34c965=_0x34a64d(_0x1128d4,_0x1455e3(0x12e)),_0x4d4995=_0xbd672a(_0x1455e3(0x11c),_0x34c965,_0x1e4937);_0x4d4995&&_0x1c3317(_0x4d4995,_0x1128d4);}),_0x2a7f33(_0x40981a(0x11c),_0x40981a(0x140),_0x1e4937)[_0x40981a(0x127)](_0x4f0d98=>{const _0x3e6f1d=_0x40981a,_0x15c2bc=this[_0x3e6f1d(0x14a)](_0x4f0d98);_0x515741(_0x4f0d98,_0x3e6f1d(0x11c),_0x15c2bc),this[_0x3e6f1d(0x11e)][_0x3e6f1d(0x15c)][_0x3e6f1d(0x118)](_0x15c2bc);}),this[_0x40981a(0x12c)](_0x1e4937),_0x304167&&_0x304167[_0x40981a(0x129)]&&this[_0x40981a(0x148)](_0x1e4937,_0x304167[_0x40981a(0x141)]||0x0),_0x304167&&_0x304167[_0x40981a(0x156)]&&this[_0x40981a(0x11e)][_0x40981a(0x14e)]){let _0x116ef9=_0xbd672a(_0x40981a(0x11c),this[_0x40981a(0x11e)][_0x40981a(0x14e)],_0x1e4937);for(;_0x116ef9;)_0x2d35b7(_0x116ef9),_0x116ef9=_0x116ef9[_0x40981a(0x11d)];}return{'parsedContent':_0x1e4937,'newNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x15c)],'modifiedNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x14c)],'removedNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x134)]};}[_0x4da76b(0x142)](_0x20f716,_0x358d96,_0x210020){const _0x505fe5=_0x4da76b;for(const _0x99e0ae of _0x358d96){const _0x29fe11=this[_0x505fe5(0x14a)](_0x99e0ae);_0x515741(_0x99e0ae,_0x505fe5(0x11c),_0x29fe11),this[_0x505fe5(0x11e)][_0x505fe5(0x15c)][_0x505fe5(0x118)](_0x29fe11),this[_0x505fe5(0x11e)][_0x505fe5(0x14e)]=_0x29fe11;}const _0x5f3374=_0x505fe5(0x120)===_0x210020||_0x505fe5(0x13c)===_0x210020?_0x358d96[_0x505fe5(0x143)]():_0x358d96;for(const _0x1db774 of _0x5f3374)_0x4fcf58(_0x20f716,_0x1db774,_0x210020);}[_0x4da76b(0x153)](_0x3baee3,_0x49f329){const _0x2230f1=_0x4da76b;if(!_0x3baee3)return;if(_0x440862(_0x3baee3,_0x49f329))return;const _0x42f522=this[_0x2230f1(0x14a)](_0x3baee3);_0x515741(_0x49f329,_0x2230f1(0x11c),_0x42f522),this[_0x2230f1(0x11e)][_0x2230f1(0x14c)][_0x2230f1(0x118)](_0x42f522),this[_0x2230f1(0x11e)][_0x2230f1(0x14e)]=_0x42f522,_0x15ed01(_0x3baee3,_0x49f329[_0x2230f1(0x149)](!0x0));}[_0x4da76b(0x152)](_0x8822d2,_0x407085,_0x1a20b4){const _0x236404=_0x4da76b,_0x3674fe=this[_0x236404(0x131)](_0x8822d2,!0x1);if(_0x3674fe){const _0x54b5bc=this[_0x236404(0x145)](_0x3674fe),_0x12bca9=_0xbd672a(_0x236404(0x11c),_0x54b5bc,_0x1a20b4);if(_0x12bca9)return[_0x12bca9,_0x236404(0x13c)];this[_0x236404(0x11e)][_0x236404(0x15b)][_0x236404(0x118)](_0x54b5bc);}const _0x4489dd=this[_0x236404(0x126)](_0x8822d2,!0x1);if(_0x4489dd){const _0x481177=this[_0x236404(0x145)](_0x4489dd),_0xf6e94e=_0xbd672a(_0x236404(0x11c),_0x481177,_0x1a20b4);if(_0xf6e94e)return[_0xf6e94e,_0x236404(0x155)];this[_0x236404(0x11e)][_0x236404(0x15b)][_0x236404(0x118)](_0x481177);}return _0x407085?_0x8822d2[_0x236404(0x133)]?this[_0x236404(0x130)](_0x8822d2,_0x1a20b4):[_0x1a20b4[_0x236404(0x124)][_0x1a20b4[_0x236404(0x124)][_0x236404(0x122)]-0x1],_0x236404(0x13c)]:[_0x1a20b4[_0x236404(0x124)][0x0],_0x236404(0x155)];}[_0x4da76b(0x130)](_0x28b901,_0x5b1df1){const _0x244d12=_0x4da76b,_0x54cbb7=[],_0x2c5db5=this[_0x244d12(0x131)](_0x28b901,!0x0);if(_0x2c5db5){const _0x52ba6d=this[_0x244d12(0x145)](_0x2c5db5),_0x34059a=_0xbd672a(_0x244d12(0x11c),_0x52ba6d,_0x5b1df1);_0x34059a&&_0x54cbb7[_0x244d12(0x118)]([_0x34059a,_0x244d12(0x13c)]);}const _0x458181=this[_0x244d12(0x126)](_0x28b901,!0x0);if(_0x458181){const _0x6b7215=this[_0x244d12(0x145)](_0x458181),_0x555c91=_0xbd672a(_0x244d12(0x11c),_0x6b7215,_0x5b1df1);_0x555c91&&_0x54cbb7[_0x244d12(0x118)]([_0x555c91,_0x244d12(0x155)]);}if(_0x54cbb7[_0x244d12(0x122)]>0x1)return _0x373df(_0x54cbb7[0x0][0x0])<=_0x373df(_0x54cbb7[0x1][0x0])?_0x54cbb7[0x0]:_0x54cbb7[0x1];return 0x1===_0x54cbb7[_0x244d12(0x122)]?_0x54cbb7[0x0]:[_0x5b1df1[_0x244d12(0x146)],_0x244d12(0x13c)];}[_0x4da76b(0x126)](_0x45d5c2,_0x33b469){const _0x486d30=_0x4da76b;let _0x39c416=_0x45d5c2[_0x486d30(0x133)],_0x53a74d=null,_0x4360a0=!0x1;for(;_0x39c416;){if(_0x141f2f(_0x39c416)){if(this[_0x486d30(0x13f)](_0x39c416)&&(_0x53a74d=_0x39c416),this[_0x486d30(0x159)](_0x39c416)&&_0x33b469&&!_0x4360a0){_0x4360a0=!0x0,_0x39c416=_0x39c416[_0x486d30(0x133)];continue;}break;}const _0xf2abc3=_0x34a64d(_0x39c416,_0x486d30(0x11c));if(_0xf2abc3&&_0x486d30(0x140)!==_0xf2abc3&&this[_0x486d30(0x157)][_0x486d30(0x139)](_0xf2abc3)){_0x53a74d=_0x39c416;break;}_0x39c416=_0x39c416[_0x486d30(0x133)];}return _0x53a74d;}[_0x4da76b(0x131)](_0x341ca4,_0x543209){const _0x69eb97=_0x4da76b;let _0x51db6b=_0x341ca4[_0x69eb97(0x15e)],_0x4b7caa=null,_0x3e944e=!0x1;for(;_0x51db6b;){if(_0x141f2f(_0x51db6b)){if(this[_0x69eb97(0x13f)](_0x51db6b)&&(_0x4b7caa=_0x51db6b),this[_0x69eb97(0x159)](_0x51db6b)&&_0x543209&&!_0x3e944e){_0x3e944e=!0x0,_0x51db6b=_0x51db6b[_0x69eb97(0x15e)];continue;}break;}const _0x37201e=_0x34a64d(_0x51db6b,_0x69eb97(0x11c));if(_0x37201e&&_0x69eb97(0x140)!==_0x37201e&&this[_0x69eb97(0x157)][_0x69eb97(0x139)](_0x37201e)){_0x4b7caa=_0x51db6b;break;}_0x51db6b=_0x51db6b[_0x69eb97(0x15e)];}return _0x4b7caa;}[_0x4da76b(0x125)](_0x4e6c46){const _0x39c680=_0x4da76b;_0x5ce0bf(_0x4e6c46)&&_0x2a7f33(_0x39c680(0x11c),null,_0x4e6c46)[_0x39c680(0x127)](_0x2d341c=>{const _0x265de5=_0x39c680;if(this[_0x265de5(0x135)](_0x2d341c)&&!this[_0x265de5(0x11a)](_0x2d341c)){const _0x247dee=_0x34a64d(_0x2d341c,_0x265de5(0x11c));_0x515741(_0x2d341c,_0x265de5(0x12e),_0x247dee),_0x515741(_0x2d341c,_0x265de5(0x11c),null);}});}[_0x4da76b(0x145)](_0x48a935){const _0x30b15c=_0x4da76b;if(!_0x48a935)return null;if(_0x5ce0bf(_0x48a935))return _0x34a64d(_0x48a935,_0x30b15c(0x11c));if(_0x141f2f(_0x48a935)){const _0x4ee80b=_0x5420e9(_0x48a935)[_0x30b15c(0x14f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4ee80b&&_0x4ee80b[0x1])return _0x4ee80b[0x1];}return null;}[_0x4da76b(0x150)](_0x35d123){const _0x37af7f=_0x4da76b;if(_0x141f2f(_0x35d123)){const _0x5290fd=_0x5420e9(_0x35d123)[_0x37af7f(0x14f)](/removed[\s*-]data-id="([^"]+)"/);_0x5290fd&&_0x5290fd[0x1]&&this[_0x37af7f(0x11e)][_0x37af7f(0x134)][_0x37af7f(0x118)](_0x5290fd[0x1]);}}[_0x4da76b(0x14a)](_0x493c90){const _0x1c01d2=_0x4da76b;return this[_0x1c01d2(0x135)](_0x493c90)?_0x34a64d(_0x493c90,_0x1c01d2(0x11c)):this[_0x1c01d2(0x132)]();}[_0x4da76b(0x12c)](_0x2fd859){const _0x2df66f=_0x4da76b;_0x336510(_0x2fd859)[_0x2df66f(0x121)](_0x332c1b=>this[_0x2df66f(0x13f)](_0x332c1b)||this[_0x2df66f(0x159)](_0x332c1b))[_0x2df66f(0x127)](_0x143c33=>{_0x5e14b3(_0x143c33);});}[_0x4da76b(0x137)](_0x42f107){const _0x1988aa=_0x4da76b,_0x4405b2=_0x42f107[_0x1988aa(0x124)],_0x4a836a=_0x4405b2[_0x4405b2[_0x1988aa(0x122)]-0x1];_0x4a836a&&_0x5ce0bf(_0x4a836a)&&_0x515741(_0x4a836a,_0x1988aa(0x138),_0x1988aa(0x12f));}[_0x4da76b(0x148)](_0x3d1662,_0x387c94){const _0x1f37a2=_0x4da76b,_0x4f3f35=_0xbd672a(_0x1f37a2(0x138),_0x1f37a2(0x12f),_0x3d1662);if(!_0x4f3f35)return;const _0x33e537=_0x49fa0f(_0x4f3f35)[_0x1f37a2(0x14b)](0x0,-0x1),_0x20b02e=_0x33e537[_0x1f37a2(0x122)];let _0x4851de=_0x4f3f35;if(_0x20b02e>_0x387c94){let _0x4c5d86=_0x20b02e,_0x40c76c=null;for(;_0x4c5d86>_0x387c94&&_0x4c5d86>=0x0;)_0x4c5d86--,_0x40c76c=_0x33e537[_0x4c5d86];_0x40c76c&&(_0x4851de=_0x40c76c,_0x515741(_0x4f3f35,_0x1f37a2(0x138),null),_0x515741(_0x40c76c,_0x1f37a2(0x138),_0x1f37a2(0x12f)));}else{if(_0x20b02e<_0x387c94){let _0x14d84e=_0x20b02e,_0x464d2e=_0x4f3f35;for(;_0x14d84e<_0x387c94;){const _0x2bccfb=_0x464d2e[_0x1f37a2(0x124)][_0x1f37a2(0x121)](_0x3670eb=>_0x5ce0bf(_0x3670eb));if(0x0===_0x2bccfb[_0x1f37a2(0x122)])break;_0x14d84e++,_0x464d2e=_0x2bccfb[_0x2bccfb[_0x1f37a2(0x122)]-0x1];}_0x464d2e&&(_0x4851de=_0x464d2e,_0x515741(_0x4f3f35,_0x1f37a2(0x138),null),_0x515741(_0x464d2e,_0x1f37a2(0x138),_0x1f37a2(0x12f)));}}let _0x4afef4=_0x4851de;for(;_0x4afef4;){for(;_0x4afef4[_0x1f37a2(0x133)];)_0x4afef4=_0x4afef4[_0x1f37a2(0x133)],_0x5ce0bf(_0x4afef4)&&_0x515741(_0x4afef4,_0x1f37a2(0x138),_0x1f37a2(0x12f));_0x4afef4=_0x4afef4[_0x1f37a2(0x11d)];}}[_0x4da76b(0x13b)](_0x49d001){const _0x18eba5=_0x4da76b;return Boolean(_0x18eba5(0x140)===_0x34a64d(_0x49d001,_0x18eba5(0x11c)));}[_0x4da76b(0x135)](_0x4bf311){const _0x97fa06=_0x4da76b;return Boolean((_0x34a64d(_0x4bf311,_0x97fa06(0x11c))||'')[_0x97fa06(0x122)]>0x0&&_0x97fa06(0x140)!==_0x34a64d(_0x4bf311,_0x97fa06(0x11c)));}[_0x4da76b(0x13f)](_0x518129){const _0x598759=_0x4da76b;return!!_0x518129&&Boolean(_0x141f2f(_0x518129)&&_0x5420e9(_0x518129)[_0x598759(0x14f)](/removed[\s*-]data-id="[^"]+"/));}[_0x4da76b(0x11a)](_0x188846){const _0x25e529=_0x4da76b;let _0x4ea6c7=_0x188846[_0x25e529(0x11d)];for(;_0x4ea6c7;){if(_0x34a64d(_0x4ea6c7,_0x25e529(0x12e)))return!0x0;_0x4ea6c7=_0x4ea6c7[_0x25e529(0x11d)];}return!0x1;}[_0x4da76b(0x159)](_0x40aa85){const _0x3b1d1b=_0x4da76b;return Boolean(_0x141f2f(_0x40aa85)&&_0x5420e9(_0x40aa85)[_0x3b1d1b(0x14f)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x2fb9aa=_0x42aa;(function(_0x1cbdc4,_0x435651){const _0x17fb1f=_0x42aa,_0x286f4b=_0x1cbdc4();while(!![]){try{const _0xc50e0=parseInt(_0x17fb1f(0x1c2))/0x1*(-parseInt(_0x17fb1f(0x1d9))/0x2)+parseInt(_0x17fb1f(0x1cb))/0x3*(parseInt(_0x17fb1f(0x1dc))/0x4)+-parseInt(_0x17fb1f(0x1ef))/0x5+parseInt(_0x17fb1f(0x1e6))/0x6+-parseInt(_0x17fb1f(0x1d5))/0x7*(-parseInt(_0x17fb1f(0x1b1))/0x8)+parseInt(_0x17fb1f(0x1dd))/0x9*(parseInt(_0x17fb1f(0x1bf))/0xa)+-parseInt(_0x17fb1f(0x1cd))/0xb;if(_0xc50e0===_0x435651)break;else _0x286f4b['push'](_0x286f4b['shift']());}catch(_0x1b8d7d){_0x286f4b['push'](_0x286f4b['shift']());}}}(_0x177e,0x6c2f8));function _0x42aa(_0x21c908,_0x2edb70){const _0x177efd=_0x177e();return _0x42aa=function(_0x42aadb,_0x4af54c){_0x42aadb=_0x42aadb-0x1a9;let _0x445882=_0x177efd[_0x42aadb];return _0x445882;},_0x42aa(_0x21c908,_0x2edb70);}import{ObservableMixin as _0x5c429e,uid as _0x39de47}from'ckeditor5/src/utils.js';function _0x177e(){const _0x52c8c3=['map','new-element','slice','664728erQtma','_existingDataIds','_insertNodes','_generateUid','markUnstableElementsDepth','_storeDeletedElementIds','afterbegin','_findPrevElementWithDataId','_findNextElementWithDataId','1634100vMFbbi','data-removed','nodeType','data-unstable','includes','_isExistingNode','_markUnstableElements','match','_findReferenceNode','lastChild','8lhDFBS','beforebegin','removedIds','invalidIds','indexOf','merge','_touchedNodesState','_markLastTagElementUnstable','afterend','length','has','_findFallbackReferenceNode','_isDelNode','cloneNode','249950SGJvGJ','_removeSpecialComments','from','190367wPCHbi','_hasWrappedParent','replaceRemovedWith','reverse','_markWrappedElements','forEach','data-wrapped-id','nextSibling','_isExistingContentComment','1108284dUCNOs','trim','5550248pcUNDM','childNodes','newIds','lastTouchedId','true','markUnstableElements','modifiedIds','cutAfterLastChange','4793089XaPgxy','data-id','splice','_getNodeDataId','2RxqFXv','filter','previousSibling','4WZULZr','108wRAIqF','parentNode','_isNewNode','_getUid','push','_replaceNode'];_0x177e=function(){return _0x52c8c3;};return _0x177e();}import{findAllByAttribute as _0x36c99f,findByAttribute as _0x357e2d,getAttribute as _0x2ad3fd,isComment as _0x36eef7,isTag as _0x328a22,insertElement as _0x466d82,moveElement as _0x574358,removeElement as _0x149f9c,replaceElement as _0x2ef022,serialize as _0x5a9b3b,setAttribute as _0x8dee3c,clone as _0x3880b6,findAllComments as _0x10a01b,getParents as _0x5ace6b,getNodeNestingLevel as _0x58d003,areNodesSame as _0x43e662,removeElementsAfter as _0x159905}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c429e(){[_0x2fb9aa(0x1e9)];[_0x2fb9aa(0x1b7)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2fb9aa(0x1e7)]=new Set();constructor(_0x29124b){const _0x16a889=_0x2fb9aa;super(),this[_0x16a889(0x1e9)]=_0x29124b||_0x39de47;}[_0x2fb9aa(0x1b6)](_0x3215ab,_0xf33d81,_0x423b85){const _0x3fb2de=_0x2fb9aa,_0x1e74ba=_0x3880b6(_0x3215ab);if(0x0===_0xf33d81[_0x3fb2de(0x1ce)][_0x3fb2de(0x1ba)]){const _0x393375=[];return _0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0x1e74ba)[_0x3fb2de(0x1c7)](_0x13ac02=>{const _0x1371f9=_0x3fb2de,_0xd91d63=this[_0x1371f9(0x1e9)]();_0x8dee3c(_0x13ac02,_0x1371f9(0x1d6),_0xd91d63),_0x393375[_0x1371f9(0x1e1)](_0xd91d63);}),this[_0x3fb2de(0x1c0)](_0x1e74ba),{'parsedContent':_0x1e74ba,'newNodeIds':_0x393375,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1b8)](_0x1e74ba),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b4)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=null,this[_0x3fb2de(0x1e7)]=new Set(_0x36c99f(_0x3fb2de(0x1d6),null,_0xf33d81)[_0x3fb2de(0x1e3)](_0x50787f=>_0x2ad3fd(_0x50787f,_0x3fb2de(0x1d6)))[_0x3fb2de(0x1da)](_0x1e9167=>!!_0x1e9167));let _0x28a153=-0x1,_0x443618=!0x1;const _0x500c25=_0x1e74ba[_0x3fb2de(0x1ce)],_0x167230=Array[_0x3fb2de(0x1c1)](_0x500c25)[_0x3fb2de(0x1da)](_0x3cf47b=>!(0x3===_0x3cf47b[_0x3fb2de(0x1a9)]&&''===_0x5a9b3b(_0x3cf47b)[_0x3fb2de(0x1cc)]())),_0x4a2335=_0x167230[_0x3fb2de(0x1ba)];for(let _0x53a65a=0x0;_0x53a65a<_0x4a2335;_0x53a65a++){const _0x33b615=_0x167230[_0x53a65a],_0x24cacd=_0x167230[_0x53a65a+0x1];if(this[_0x3fb2de(0x1df)](_0x33b615)){if(-0x1===_0x28a153&&(_0x28a153=_0x53a65a),this[_0x3fb2de(0x1c6)](_0x33b615),!this[_0x3fb2de(0x1df)](_0x24cacd)){const [_0x4f5ee2,_0x541e1e]=this[_0x3fb2de(0x1af)](_0x33b615,_0x443618,_0xf33d81);if(_0x4f5ee2){const _0x458df6=Array[_0x3fb2de(0x1c1)](_0x167230)[_0x3fb2de(0x1e5)](_0x28a153,_0x53a65a+0x1);this[_0x3fb2de(0x1e8)](_0x4f5ee2,_0x458df6,_0x541e1e),_0x28a153=-0x1;}}}else{if(this[_0x3fb2de(0x1ca)](_0x33b615))_0x443618=!0x0;else{if(this[_0x3fb2de(0x1ac)](_0x33b615)){const _0x36aa24=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));if(_0x36aa24&&this[_0x3fb2de(0x1e7)][_0x3fb2de(0x1bb)](_0x36aa24)){const _0xe62f5f=_0x357e2d(_0x3fb2de(0x1d6),_0x36aa24,_0xf33d81);this[_0x3fb2de(0x1e2)](_0xe62f5f,_0x33b615);}if(this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1ab)](_0x36aa24)){const _0x28700a=this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1b5)](_0x36aa24);this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1d7)](_0x28700a,0x1);}}else{if(this[_0x3fb2de(0x1bd)](_0x33b615)){const _0x2231e8=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)][_0x3fb2de(0x1ab)](_0x2231e8)||this[_0x3fb2de(0x1eb)](_0x33b615);}}}}}for(const _0x5abcd6 of this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]){const _0x397475=_0x357e2d(_0x3fb2de(0x1d6),_0x5abcd6,_0xf33d81);if(_0x397475){if(_0x423b85&&_0x423b85[_0x3fb2de(0x1c4)]){this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=_0x5abcd6;const _0x170b70=_0x423b85[_0x3fb2de(0x1c4)][_0x3fb2de(0x1be)](!0x0);_0x8dee3c(_0x170b70,_0x3fb2de(0x1d6),_0x5abcd6),_0x8dee3c(_0x170b70,_0x3fb2de(0x1f0),_0x3fb2de(0x1d1)),_0x2ef022(_0x397475,_0x170b70);}else _0x149f9c(_0x397475);}}if(_0x36c99f(_0x3fb2de(0x1c8),null,_0xf33d81)[_0x3fb2de(0x1c7)](_0x1cb67d=>{const _0x48d2a2=_0x3fb2de,_0x3a86ab=_0x2ad3fd(_0x1cb67d,_0x48d2a2(0x1c8)),_0x5d4c19=_0x357e2d(_0x48d2a2(0x1d6),_0x3a86ab,_0xf33d81);_0x5d4c19&&_0x574358(_0x5d4c19,_0x1cb67d);}),_0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0xf33d81)[_0x3fb2de(0x1c7)](_0x52323a=>{const _0x348e81=_0x3fb2de,_0x3eec3f=this[_0x348e81(0x1e0)](_0x52323a);_0x8dee3c(_0x52323a,_0x348e81(0x1d6),_0x3eec3f),this[_0x348e81(0x1b7)][_0x348e81(0x1cf)][_0x348e81(0x1e1)](_0x3eec3f);}),this[_0x3fb2de(0x1c0)](_0xf33d81),_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1ad)](_0xf33d81,_0x423b85[_0x3fb2de(0x1ea)]||0x0),_0x423b85&&_0x423b85[_0x3fb2de(0x1d4)]&&this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]){let _0x4fa3ab=_0x357e2d(_0x3fb2de(0x1d6),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)],_0xf33d81);for(;_0x4fa3ab;)_0x159905(_0x4fa3ab),_0x4fa3ab=_0x4fa3ab[_0x3fb2de(0x1de)];}return{'parsedContent':_0xf33d81,'newNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)],'modifiedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)],'removedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]};}[_0x2fb9aa(0x1e8)](_0x51ea49,_0x17a60d,_0x3f2240){const _0x3ecb8f=_0x2fb9aa;for(const _0xe03194 of _0x17a60d){const _0x190284=this[_0x3ecb8f(0x1e0)](_0xe03194);_0x8dee3c(_0xe03194,_0x3ecb8f(0x1d6),_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1cf)][_0x3ecb8f(0x1e1)](_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1d0)]=_0x190284;}const _0x24fbe9=_0x3ecb8f(0x1ec)===_0x3f2240||_0x3ecb8f(0x1b9)===_0x3f2240?_0x17a60d[_0x3ecb8f(0x1c5)]():_0x17a60d;for(const _0xd4a2dd of _0x24fbe9)_0x466d82(_0x51ea49,_0xd4a2dd,_0x3f2240);}[_0x2fb9aa(0x1e2)](_0xacbd92,_0x2fb5e2){const _0x2eff93=_0x2fb9aa;if(!_0xacbd92)return;if(_0x43e662(_0xacbd92,_0x2fb5e2))return;const _0x275a6a=this[_0x2eff93(0x1e0)](_0xacbd92);_0x8dee3c(_0x2fb5e2,_0x2eff93(0x1d6),_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d3)][_0x2eff93(0x1e1)](_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d0)]=_0x275a6a,_0x2ef022(_0xacbd92,_0x2fb5e2[_0x2eff93(0x1be)](!0x0));}[_0x2fb9aa(0x1af)](_0x16c52e,_0x13e639,_0x3f5154){const _0x362dbe=_0x2fb9aa,_0x80903a=this[_0x362dbe(0x1ed)](_0x16c52e,!0x1);if(_0x80903a){const _0x2396bb=this[_0x362dbe(0x1d8)](_0x80903a),_0x49b439=_0x357e2d(_0x362dbe(0x1d6),_0x2396bb,_0x3f5154);if(_0x49b439)return[_0x49b439,_0x362dbe(0x1b9)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x2396bb);}const _0x5f3859=this[_0x362dbe(0x1ee)](_0x16c52e,!0x1);if(_0x5f3859){const _0x1fd63e=this[_0x362dbe(0x1d8)](_0x5f3859),_0x28b3e9=_0x357e2d(_0x362dbe(0x1d6),_0x1fd63e,_0x3f5154);if(_0x28b3e9)return[_0x28b3e9,_0x362dbe(0x1b2)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x1fd63e);}return _0x13e639?_0x16c52e[_0x362dbe(0x1c9)]?this[_0x362dbe(0x1bc)](_0x16c52e,_0x3f5154):[_0x3f5154[_0x362dbe(0x1ce)][_0x3f5154[_0x362dbe(0x1ce)][_0x362dbe(0x1ba)]-0x1],_0x362dbe(0x1b9)]:[_0x3f5154[_0x362dbe(0x1ce)][0x0],_0x362dbe(0x1b2)];}[_0x2fb9aa(0x1bc)](_0x302b2b,_0x3fd188){const _0x44ff4a=_0x2fb9aa,_0x3c1ae4=[],_0x1c73a9=this[_0x44ff4a(0x1ed)](_0x302b2b,!0x0);if(_0x1c73a9){const _0x17ce32=this[_0x44ff4a(0x1d8)](_0x1c73a9),_0x10a23f=_0x357e2d(_0x44ff4a(0x1d6),_0x17ce32,_0x3fd188);_0x10a23f&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x10a23f,_0x44ff4a(0x1b9)]);}const _0x30d5a5=this[_0x44ff4a(0x1ee)](_0x302b2b,!0x0);if(_0x30d5a5){const _0x530940=this[_0x44ff4a(0x1d8)](_0x30d5a5),_0x3b8dc3=_0x357e2d(_0x44ff4a(0x1d6),_0x530940,_0x3fd188);_0x3b8dc3&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x3b8dc3,_0x44ff4a(0x1b2)]);}if(_0x3c1ae4[_0x44ff4a(0x1ba)]>0x1)return _0x58d003(_0x3c1ae4[0x0][0x0])<=_0x58d003(_0x3c1ae4[0x1][0x0])?_0x3c1ae4[0x0]:_0x3c1ae4[0x1];return 0x1===_0x3c1ae4[_0x44ff4a(0x1ba)]?_0x3c1ae4[0x0]:[_0x3fd188[_0x44ff4a(0x1b0)],_0x44ff4a(0x1b9)];}[_0x2fb9aa(0x1ee)](_0x28240a,_0x58ec6b){const _0x1b507a=_0x2fb9aa;let _0x42eff=_0x28240a[_0x1b507a(0x1c9)],_0x5ceb86=null,_0x42e855=!0x1;for(;_0x42eff;){if(_0x36eef7(_0x42eff)){if(this[_0x1b507a(0x1bd)](_0x42eff)&&(_0x5ceb86=_0x42eff),this[_0x1b507a(0x1ca)](_0x42eff)&&_0x58ec6b&&!_0x42e855){_0x42e855=!0x0,_0x42eff=_0x42eff[_0x1b507a(0x1c9)];continue;}break;}const _0x1a53dc=_0x2ad3fd(_0x42eff,_0x1b507a(0x1d6));if(_0x1a53dc&&_0x1b507a(0x1e4)!==_0x1a53dc&&this[_0x1b507a(0x1e7)][_0x1b507a(0x1bb)](_0x1a53dc)){_0x5ceb86=_0x42eff;break;}_0x42eff=_0x42eff[_0x1b507a(0x1c9)];}return _0x5ceb86;}[_0x2fb9aa(0x1ed)](_0x52c262,_0x302f12){const _0x5ebb7a=_0x2fb9aa;let _0x238715=_0x52c262[_0x5ebb7a(0x1db)],_0x1bc8a1=null,_0x3aae12=!0x1;for(;_0x238715;){if(_0x36eef7(_0x238715)){if(this[_0x5ebb7a(0x1bd)](_0x238715)&&(_0x1bc8a1=_0x238715),this[_0x5ebb7a(0x1ca)](_0x238715)&&_0x302f12&&!_0x3aae12){_0x3aae12=!0x0,_0x238715=_0x238715[_0x5ebb7a(0x1db)];continue;}break;}const _0x599c25=_0x2ad3fd(_0x238715,_0x5ebb7a(0x1d6));if(_0x599c25&&_0x5ebb7a(0x1e4)!==_0x599c25&&this[_0x5ebb7a(0x1e7)][_0x5ebb7a(0x1bb)](_0x599c25)){_0x1bc8a1=_0x238715;break;}_0x238715=_0x238715[_0x5ebb7a(0x1db)];}return _0x1bc8a1;}[_0x2fb9aa(0x1c6)](_0x3419e7){const _0x2eca8f=_0x2fb9aa;_0x328a22(_0x3419e7)&&_0x36c99f(_0x2eca8f(0x1d6),null,_0x3419e7)[_0x2eca8f(0x1c7)](_0x13ee5e=>{const _0x2debd6=_0x2eca8f;if(this[_0x2debd6(0x1ac)](_0x13ee5e)&&!this[_0x2debd6(0x1c3)](_0x13ee5e)){const _0x291729=_0x2ad3fd(_0x13ee5e,_0x2debd6(0x1d6));_0x8dee3c(_0x13ee5e,_0x2debd6(0x1c8),_0x291729),_0x8dee3c(_0x13ee5e,_0x2debd6(0x1d6),null);}});}[_0x2fb9aa(0x1d8)](_0x373510){const _0x1687a7=_0x2fb9aa;if(!_0x373510)return null;if(_0x328a22(_0x373510))return _0x2ad3fd(_0x373510,_0x1687a7(0x1d6));if(_0x36eef7(_0x373510)){const _0x3b8981=_0x5a9b3b(_0x373510)[_0x1687a7(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3b8981&&_0x3b8981[0x1])return _0x3b8981[0x1];}return null;}[_0x2fb9aa(0x1eb)](_0x3fb016){const _0x2097df=_0x2fb9aa;if(_0x36eef7(_0x3fb016)){const _0x141558=_0x5a9b3b(_0x3fb016)[_0x2097df(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);_0x141558&&_0x141558[0x1]&&this[_0x2097df(0x1b7)][_0x2097df(0x1b3)][_0x2097df(0x1e1)](_0x141558[0x1]);}}[_0x2fb9aa(0x1e0)](_0x348353){const _0x1b0b6f=_0x2fb9aa;return this[_0x1b0b6f(0x1ac)](_0x348353)?_0x2ad3fd(_0x348353,_0x1b0b6f(0x1d6)):this[_0x1b0b6f(0x1e9)]();}[_0x2fb9aa(0x1c0)](_0x2e3c11){const _0x54fec4=_0x2fb9aa;_0x10a01b(_0x2e3c11)[_0x54fec4(0x1da)](_0x127637=>this[_0x54fec4(0x1bd)](_0x127637)||this[_0x54fec4(0x1ca)](_0x127637))[_0x54fec4(0x1c7)](_0x2c0c1f=>{_0x149f9c(_0x2c0c1f);});}[_0x2fb9aa(0x1b8)](_0x4109a4){const _0x59f71f=_0x2fb9aa,_0x20d254=_0x4109a4[_0x59f71f(0x1ce)],_0x46c707=_0x20d254[_0x20d254[_0x59f71f(0x1ba)]-0x1];_0x46c707&&_0x328a22(_0x46c707)&&_0x8dee3c(_0x46c707,_0x59f71f(0x1aa),_0x59f71f(0x1d1));}[_0x2fb9aa(0x1ad)](_0x353b50,_0x57f344){const _0xfcbef6=_0x2fb9aa,_0x5e0c82=_0x357e2d(_0xfcbef6(0x1aa),_0xfcbef6(0x1d1),_0x353b50);if(!_0x5e0c82)return;const _0x4c10be=_0x5ace6b(_0x5e0c82)[_0xfcbef6(0x1e5)](0x0,-0x1),_0x5ba3b1=_0x4c10be[_0xfcbef6(0x1ba)];let _0x4f34a9=_0x5e0c82;if(_0x5ba3b1>_0x57f344){let _0x256aab=_0x5ba3b1,_0x56bf95=null;for(;_0x256aab>_0x57f344&&_0x256aab>=0x0;)_0x256aab--,_0x56bf95=_0x4c10be[_0x256aab];_0x56bf95&&(_0x4f34a9=_0x56bf95,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0x56bf95,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}else{if(_0x5ba3b1<_0x57f344){let _0x277292=_0x5ba3b1,_0xcfd737=_0x5e0c82;for(;_0x277292<_0x57f344;){const _0x17e2e5=_0xcfd737[_0xfcbef6(0x1ce)][_0xfcbef6(0x1da)](_0x4b9b43=>_0x328a22(_0x4b9b43));if(0x0===_0x17e2e5[_0xfcbef6(0x1ba)])break;_0x277292++,_0xcfd737=_0x17e2e5[_0x17e2e5[_0xfcbef6(0x1ba)]-0x1];}_0xcfd737&&(_0x4f34a9=_0xcfd737,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0xcfd737,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}}let _0x4af2dd=_0x4f34a9;for(;_0x4af2dd;){for(;_0x4af2dd[_0xfcbef6(0x1c9)];)_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1c9)],_0x328a22(_0x4af2dd)&&_0x8dee3c(_0x4af2dd,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1));_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1de)];}}[_0x2fb9aa(0x1df)](_0x6a67){const _0x4c1850=_0x2fb9aa;return Boolean(_0x4c1850(0x1e4)===_0x2ad3fd(_0x6a67,_0x4c1850(0x1d6)));}[_0x2fb9aa(0x1ac)](_0x3d667a){const _0x347163=_0x2fb9aa;return Boolean((_0x2ad3fd(_0x3d667a,_0x347163(0x1d6))||'')[_0x347163(0x1ba)]>0x0&&_0x347163(0x1e4)!==_0x2ad3fd(_0x3d667a,_0x347163(0x1d6)));}[_0x2fb9aa(0x1bd)](_0x71d5ff){const _0x4afe2b=_0x2fb9aa;return!!_0x71d5ff&&Boolean(_0x36eef7(_0x71d5ff)&&_0x5a9b3b(_0x71d5ff)[_0x4afe2b(0x1ae)](/removed[\s*-]data-id="[^"]+"/));}[_0x2fb9aa(0x1c3)](_0x11e7f7){const _0xa36288=_0x2fb9aa;let _0x32a2b9=_0x11e7f7[_0xa36288(0x1de)];for(;_0x32a2b9;){if(_0x2ad3fd(_0x32a2b9,_0xa36288(0x1c8)))return!0x0;_0x32a2b9=_0x32a2b9[_0xa36288(0x1de)];}return!0x1;}[_0x2fb9aa(0x1ca)](_0x44f1ee){const _0x16af98=_0x2fb9aa;return Boolean(_0x36eef7(_0x44f1ee)&&_0x5a9b3b(_0x44f1ee)[_0x16af98(0x1ae)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x4cd3(_0x56e982,_0x522628){const _0x2a6325=_0x2a63();return _0x4cd3=function(_0x4cd34a,_0xa13325){_0x4cd34a=_0x4cd34a-0x1e0;let _0x5f0231=_0x2a6325[_0x4cd34a];return _0x5f0231;},_0x4cd3(_0x56e982,_0x522628);}const _0x329b22=_0x4cd3;function _0x2a63(){const _0x4b5649=['9652860qqkoPm','replace','</dummy>','28JuouqC','parseAndNormalizeHTML','children','2984527aBYtzF','parse','<dummy>','1685325HqLWhq','215536zBMOCJ','23665zVwyvf','1398glzjnZ','_parseHTML','_m2html','8QRaHSp','convertMarkdownToHTML','3221307OWfYnR','43691qHYxSB'];_0x2a63=function(){return _0x4b5649;};return _0x2a63();}(function(_0x2437e0,_0x118ad3){const _0x2a17d2=_0x4cd3,_0x4392e7=_0x2437e0();while(!![]){try{const _0x311e83=-parseInt(_0x2a17d2(0x1e3))/0x1*(parseInt(_0x2a17d2(0x1e7))/0x2)+parseInt(_0x2a17d2(0x1ed))/0x3+parseInt(_0x2a17d2(0x1ee))/0x4+parseInt(_0x2a17d2(0x1ef))/0x5*(-parseInt(_0x2a17d2(0x1f0))/0x6)+parseInt(_0x2a17d2(0x1ea))/0x7+-parseInt(_0x2a17d2(0x1e0))/0x8*(-parseInt(_0x2a17d2(0x1e2))/0x9)+parseInt(_0x2a17d2(0x1e4))/0xa;if(_0x311e83===_0x118ad3)break;else _0x4392e7['push'](_0x4392e7['shift']());}catch(_0x57b4a){_0x4392e7['push'](_0x4392e7['shift']());}}}(_0x2a63,0x9ee0e));import{ObservableMixin as _0x574c7f}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x17fb03}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4984d4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x574c7f(){[_0x329b22(0x1f2)];constructor(){const _0x30daa1=_0x329b22;super(),this[_0x30daa1(0x1f2)]=new _0x17fb03();}[_0x329b22(0x1e1)](_0x2c341a){const _0x4e35e3=_0x329b22,_0xddb7fc=this[_0x4e35e3(0x1f2)][_0x4e35e3(0x1eb)](_0x2c341a);return this[_0x4e35e3(0x1e8)](_0xddb7fc);}[_0x329b22(0x1e8)](_0x28b26b){const _0x4c2ced=_0x329b22;return this[_0x4c2ced(0x1f1)](_0x28b26b);}[_0x329b22(0x1f1)](_0x49b8af){const _0x7ace22=_0x329b22,_0x1bd74c=_0x49b8af[_0x7ace22(0x1e5)](/^\t+/gm,'\x20')[_0x7ace22(0x1e5)](/\n*/g,'')[_0x7ace22(0x1e5)](/\s+/g,'\x20')[_0x7ace22(0x1e5)](/<[^>]*?$/g,''),_0x51c0dc=_0x4984d4(_0x7ace22(0x1ec)+_0x1bd74c+_0x7ace22(0x1e6));return _0x51c0dc[_0x7ace22(0x1e9)]=_0x51c0dc[_0x7ace22(0x1e9)][0x0][_0x7ace22(0x1e9)],_0x51c0dc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x40c9(_0x3dd440,_0x79887f){var _0x34fed8=_0x34fe();return _0x40c9=function(_0x40c919,_0x2db29d){_0x40c919=_0x40c919-0x89;var _0x1d6f44=_0x34fed8[_0x40c919];return _0x1d6f44;},_0x40c9(_0x3dd440,_0x79887f);}(function(_0x499ac6,_0x1cdc99){var _0x33b264=_0x40c9,_0x1f07ba=_0x499ac6();while(!![]){try{var _0x4ff172=parseInt(_0x33b264(0x8f))/0x1+-parseInt(_0x33b264(0x8d))/0x2+parseInt(_0x33b264(0x8c))/0x3+parseInt(_0x33b264(0x90))/0x4*(parseInt(_0x33b264(0x8b))/0x5)+-parseInt(_0x33b264(0x95))/0x6*(-parseInt(_0x33b264(0x96))/0x7)+-parseInt(_0x33b264(0x91))/0x8+parseInt(_0x33b264(0x89))/0x9;if(_0x4ff172===_0x1cdc99)break;else _0x1f07ba['push'](_0x1f07ba['shift']());}catch(_0x1ab635){_0x1f07ba['push'](_0x1f07ba['shift']());}}}(_0x34fe,0xc9223));import{View as _0x2d7884}from'ckeditor5/src/ui.js';import{getTranslation as _0x2d2612}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x2d7884{constructor(_0x35b081){var _0xd52287=_0x40c9;super(_0x35b081),this[_0xd52287(0x8a)]({'tag':_0xd52287(0x93),'attributes':{'class':['ck',_0xd52287(0x94)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xd52287(0x92)]},'children':[{'text':_0x2d2612(_0x35b081,_0xd52287(0x8e))}]}]});}}function _0x34fe(){var _0x5bb71a=['119fVnMFH','8737911YCLZOG','setTemplate','2789435fMxJow','1744503YaBOHg','2279974IUUvxs','AI_DISCLAIMER_TEXT','141537omLqhB','8uNKOyF','9215976NDQFjJ','ck-ai-disclaimer__content','div','ck-ai-disclaimer','108048IMNqdB'];_0x34fe=function(){return _0x5bb71a;};return _0x34fe();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9804cb=_0x7e9d;(function(_0x5cf9b2,_0x4a6e99){const _0x9adf33=_0x7e9d,_0x4d4019=_0x5cf9b2();while(!![]){try{const _0x153d0e=parseInt(_0x9adf33(0x101))/0x1+parseInt(_0x9adf33(0x120))/0x2+parseInt(_0x9adf33(0x11d))/0x3+parseInt(_0x9adf33(0x115))/0x4+parseInt(_0x9adf33(0x112))/0x5+parseInt(_0x9adf33(0x104))/0x6+-parseInt(_0x9adf33(0xff))/0x7*(parseInt(_0x9adf33(0x118))/0x8);if(_0x153d0e===_0x4a6e99)break;else _0x4d4019['push'](_0x4d4019['shift']());}catch(_0x50f692){_0x4d4019['push'](_0x4d4019['shift']());}}}(_0x2df7,0x57777));function _0x2df7(){const _0x5a81e7=['16806056TttfPb','height','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','fill','140px','687480hZASSx','attributes','class','757662UmoeHx','40px','_createSkeletonItems','ck-ai-skeleton__item','center','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','7nyTfET','div','340845uKFfbJ','map','100%','2972832FeNoQp','150px','align',';\x20height:\x20','24px','right','ck-ai-skeleton','128px','72px','44px','88px','setTemplate','left','width','1829595diAskA','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','250px','2595172NjIDyJ','tag','width:\x20'];_0x2df7=function(){return _0x5a81e7;};return _0x2df7();}import{View as _0x2f317d}from'ckeditor5/src/ui.js';function _0x7e9d(_0x3ecc65,_0x4948ae){const _0x2df7c8=_0x2df7();return _0x7e9d=function(_0x7e9d97,_0x348ada){_0x7e9d97=_0x7e9d97-0xfb;let _0x5ef8b4=_0x2df7c8[_0x7e9d97];return _0x5ef8b4;},_0x7e9d(_0x3ecc65,_0x4948ae);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x2f317d{constructor(_0x2e96c7,_0x196183){const _0x467422=_0x7e9d;super(_0x2e96c7),this[_0x467422(0x10f)]({'tag':_0x467422(0x100),'attributes':{'class':['ck',_0x467422(0x10a)]},'children':this[_0x467422(0xfb)](_0x196183)});}[_0x9804cb(0xfb)](_0x386be0){const _0x29874e=_0x9804cb,_0x4e5c7a=['ck',_0x29874e(0xfc)];return _0x386be0[_0x29874e(0x102)](_0x216fe5=>{const _0x53f81a=_0x29874e;let _0x1e1f42='';switch(_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x106)]){case _0x53f81a(0x109):_0x1e1f42=_0x53f81a(0x11a);break;case _0x53f81a(0xfd):_0x1e1f42=_0x53f81a(0xfe);break;case _0x53f81a(0x110):_0x1e1f42=_0x53f81a(0x113);}return{'tag':_0x216fe5[_0x53f81a(0x116)],'attributes':{'class':[..._0x4e5c7a,_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]?_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]:''],'style':_0x53f81a(0x117)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x111)]+_0x53f81a(0x107)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x119)]+';'+_0x1e1f42}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x105),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x11c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}}],'aiHistory':ta(0x5,_0x9804cb(0x103),_0x9804cb(0x10d),_0x9804cb(0x109)),'aiChatResources':ta(0x8,_0x9804cb(0x103),_0x9804cb(0x108),_0x9804cb(0x109)),'aiReviewChecks':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}}]};function ta(_0x1a1c47,_0x44b279,_0x515acd,_0x36b7a9){const _0x3f1e28=_0x9804cb;return new Array(_0x1a1c47)[_0x3f1e28(0x11b)](null)[_0x3f1e28(0x102)](()=>({'tag':_0x3f1e28(0x100),'attributes':{'width':_0x44b279,'height':_0x515acd,'align':_0x36b7a9}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1ec2fd,_0x5f3e3e){const _0x47cd8a=_0x56aa,_0x156c0d=_0x1ec2fd();while(!![]){try{const _0x5e68a3=-parseInt(_0x47cd8a(0x120))/0x1+-parseInt(_0x47cd8a(0x11c))/0x2+-parseInt(_0x47cd8a(0x117))/0x3*(parseInt(_0x47cd8a(0x118))/0x4)+parseInt(_0x47cd8a(0x115))/0x5*(-parseInt(_0x47cd8a(0x11f))/0x6)+-parseInt(_0x47cd8a(0x11b))/0x7+parseInt(_0x47cd8a(0x11a))/0x8+-parseInt(_0x47cd8a(0x116))/0x9*(-parseInt(_0x47cd8a(0x113))/0xa);if(_0x5e68a3===_0x5f3e3e)break;else _0x156c0d['push'](_0x156c0d['shift']());}catch(_0x35b8f4){_0x156c0d['push'](_0x156c0d['shift']());}}}(_0x2406,0xd935b));function _0x56aa(_0x3fc3ce,_0x81fef2){const _0x24061d=_0x2406();return _0x56aa=function(_0x56aa90,_0x32d673){_0x56aa90=_0x56aa90-0x113;let _0x510cbf=_0x24061d[_0x56aa90];return _0x510cbf;},_0x56aa(_0x3fc3ce,_0x81fef2);}import{SpinnerView as _0x147ea4}from'ckeditor5/src/ui.js';function _0x2406(){const _0x27490a=['10629080UKTQIU','7640794LkpBvp','1471086SXgHdd','extendTemplate','span','42oWvreT','961123WBxFdh','56645050cGmimR','ck-ai-spinner_','1125830LOpZFF','9PULnGY','579693UmUFtB','36euTftT','ck-ai-spinner'];_0x2406=function(){return _0x27490a;};return _0x2406();}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x147ea4{constructor(_0x10c22e=void 0x0){const _0x54df05=_0x56aa;super();const _0x3bc179=_0x10c22e?_0x54df05(0x114)+_0x10c22e:'';this[_0x54df05(0x11d)]({'tag':_0x54df05(0x11e),'attributes':{'class':[_0x54df05(0x119),_0x3bc179]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bbf0a=_0x2bbf;(function(_0x516307,_0x2799aa){const _0x3e2833=_0x2bbf,_0x51383d=_0x516307();while(!![]){try{const _0x5cbb7f=-parseInt(_0x3e2833(0x179))/0x1+-parseInt(_0x3e2833(0x17d))/0x2*(parseInt(_0x3e2833(0x187))/0x3)+-parseInt(_0x3e2833(0x1a2))/0x4+parseInt(_0x3e2833(0x1a5))/0x5+parseInt(_0x3e2833(0x18a))/0x6*(-parseInt(_0x3e2833(0x173))/0x7)+parseInt(_0x3e2833(0x190))/0x8*(-parseInt(_0x3e2833(0x180))/0x9)+-parseInt(_0x3e2833(0x18d))/0xa*(-parseInt(_0x3e2833(0x1a1))/0xb);if(_0x5cbb7f===_0x2799aa)break;else _0x51383d['push'](_0x51383d['shift']());}catch(_0x5c679b){_0x51383d['push'](_0x51383d['shift']());}}}(_0xf313,0xace8f));function _0xf313(){const _0x19bac9=['361298MhsWQa','length','isOn','ck-ai-mini-toolbar','1265586foWwNz','set','AI_MINI_TOOLBAR_DISLIKE','81myCXMH','full','showChanges','customView','isEnabled','icon','_setupRatingButtons','3CMrbfE','fire','showChangesButton','1254GTMgcK','_setupCopyButton','locale','11432080FXEQjY','showDislike','_setupShowChangesButton','906424KUlphF','bind','extendTemplate','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','isShowChangesOn','add','class','dislikeButton','toggleShowChanges','like','toggleShowChangesEnabled','showCopy','copyButton','AI_MINI_TOOLBAR_COPY','children','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button','44LbHmbB','3303628VSUPnS','ck-ai-button-tertiary','addMany','1080870wTctyh','execute','AI_MINI_TOOLBAR_LIKE','items','likeButton','41566nQzTXz','showLike','_config','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','ck-ai-mini-toolbar\x20ck-hidden'];_0xf313=function(){return _0x19bac9;};return _0xf313();}import{ButtonView as _0x25f86a,IconView as _0x549260,ToolbarView as _0x5a9d3b}from'ckeditor5/src/ui.js';import{IconCheck as _0x891f94,IconCopy as _0x4538eb,IconShowChangesOff as _0x11dd25,IconShowChangesOn as _0x5c1256,IconThumbDown as _0x1e2860,IconThumbUp as _0x5f53d3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4d081f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x2bbf(_0x12a531,_0x59ec4a){const _0xf31325=_0xf313();return _0x2bbf=function(_0x2bbf4a,_0x39fb5a){_0x2bbf4a=_0x2bbf4a-0x173;let _0x1bf279=_0xf31325[_0x2bbf4a];return _0x1bf279;},_0x2bbf(_0x12a531,_0x59ec4a);}export class AIMiniToolbarView extends _0x5a9d3b{[_0x4bbf0a(0x19c)];[_0x4bbf0a(0x1a9)];[_0x4bbf0a(0x197)];[_0x4bbf0a(0x189)];[_0x4bbf0a(0x175)];constructor(_0x39ec93,_0x14dfdd={}){const _0xc07a0d=_0x4bbf0a;super(_0x39ec93),this[_0xc07a0d(0x17e)](_0xc07a0d(0x184),!0x0),this[_0xc07a0d(0x17e)](_0xc07a0d(0x194),!0x1),this[_0xc07a0d(0x175)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x14dfdd};const _0x2923bc=!(this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]?.[_0xc07a0d(0x17a)]);this[_0xc07a0d(0x196)]=_0x2923bc?_0xc07a0d(0x178):_0xc07a0d(0x17c),this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]&&(this[_0xc07a0d(0x18b)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x19c)])),this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]&&(this[_0xc07a0d(0x18f)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x189)])),this[_0xc07a0d(0x186)](),this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x1a9)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x197)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x1a4)](this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]);}[_0x4bbf0a(0x19a)](_0x5ad758){const _0x53ad2a=_0x4bbf0a;this[_0x53ad2a(0x189)][_0x53ad2a(0x184)]=_0x5ad758;}[_0x4bbf0a(0x186)](){const _0x7970f0=_0x4bbf0a;this[_0x7970f0(0x1a9)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x1a9)][_0x7970f0(0x17e)]({'icon':_0x5f53d3,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x1a7)),'tooltip':!0x0}),this[_0x7970f0(0x1a9)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x1a9)]['on'](_0x7970f0(0x1a6),()=>{const _0x5f174e=_0x7970f0;this[_0x5f174e(0x188)](_0x5f174e(0x199));}),this[_0x7970f0(0x197)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x197)][_0x7970f0(0x17e)]({'icon':_0x1e2860,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x17f)),'tooltip':!0x0}),this[_0x7970f0(0x197)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x197)]['on'](_0x7970f0(0x1a6),()=>{const _0x1abce8=_0x7970f0;this[_0x1abce8(0x188)](_0x1abce8(0x177));});}[_0x4bbf0a(0x18b)](){const _0x1299cf=_0x4bbf0a;this[_0x1299cf(0x19c)]=new _0x25f86a(this[_0x1299cf(0x18c)]),this[_0x1299cf(0x19c)][_0x1299cf(0x17e)]({'icon':_0x4538eb,'label':_0x4d081f(this[_0x1299cf(0x18c)],_0x1299cf(0x19d)),'class':_0x1299cf(0x1a0),'tooltip':!0x0}),this[_0x1299cf(0x19c)][_0x1299cf(0x191)](_0x1299cf(0x184))['to'](this);const _0x21488b=new _0x549260();_0x21488b[_0x1299cf(0x17e)]({'content':_0x891f94}),_0x21488b[_0x1299cf(0x192)]({'attributes':{'class':[_0x1299cf(0x19f)]}}),this[_0x1299cf(0x19c)]['on'](_0x1299cf(0x1a6),()=>{const _0x4c8e61=_0x1299cf;this[_0x4c8e61(0x19c)][_0x4c8e61(0x196)]=_0x4c8e61(0x193),setTimeout(()=>{const _0xeff223=_0x4c8e61;this[_0xeff223(0x19c)][_0xeff223(0x196)]=_0xeff223(0x1a0);},0x7d0);}),this[_0x1299cf(0x19c)][_0x1299cf(0x19e)][_0x1299cf(0x195)](_0x21488b);}[_0x4bbf0a(0x18f)](){const _0x5b9ef6=_0x4bbf0a;this[_0x5b9ef6(0x189)]=new _0x25f86a(this[_0x5b9ef6(0x18c)]),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x17e)]({'icon':_0x11dd25,'label':_0x4d081f(this[_0x5b9ef6(0x18c)],_0x5b9ef6(0x176)),'withText':_0x5b9ef6(0x181)==this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'tooltip':_0x5b9ef6(0x181)!=this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'class':_0x5b9ef6(0x1a3)}),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x17b))['to'](this,_0x5b9ef6(0x194)),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x184))['to'](this),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x185))['to'](this,_0x5b9ef6(0x194),_0x178bd7=>_0x178bd7?_0x5c1256:_0x11dd25),this[_0x5b9ef6(0x189)]['on'](_0x5b9ef6(0x1a6),()=>{const _0x4ab9b0=_0x5b9ef6;this[_0x4ab9b0(0x188)](_0x4ab9b0(0x198));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5551db=_0x3a4c;(function(_0x2ffe6b,_0x469084){const _0x58f162=_0x3a4c,_0x1f9007=_0x2ffe6b();while(!![]){try{const _0x8dde4f=-parseInt(_0x58f162(0x169))/0x1*(parseInt(_0x58f162(0x17c))/0x2)+parseInt(_0x58f162(0x174))/0x3+parseInt(_0x58f162(0x195))/0x4+-parseInt(_0x58f162(0x17e))/0x5+parseInt(_0x58f162(0x167))/0x6+-parseInt(_0x58f162(0x171))/0x7+parseInt(_0x58f162(0x16f))/0x8;if(_0x8dde4f===_0x469084)break;else _0x1f9007['push'](_0x1f9007['shift']());}catch(_0x57d484){_0x1f9007['push'](_0x1f9007['shift']());}}}(_0x4370,0x21da1));import{View as _0x53e3dc}from'ckeditor5/src/ui.js';function _0x4370(){const _0x2a052c=['index','ck-ai-suggestion__body','bind','state','_actionsView','find','length','from','addEventListener','hasNonEmptyParts','queueEmptyPromise','updateVisibility','areActionsDisabled','793680lEhdyI','warning','13zOqNOj','markAsDone','createCollection','setTemplate','_updateContentPartsPromiseQueue','_children','1951504RKZSVO','_areActionsDisabled','1110480lcaiMf','AI_SUGGESTION_NO_PARTS_WARNING','pending','314565jNzcBg','forEach','isEnabled','set','setPartActive','abort','isTrackChangesOn','hasPendingParts','17526ZOKggq','enqueue','819445dGggph','addSource','findIndex','locale','hasChanges','isActive','some','filter','AI_SUGGESTION_EMPTY_PART_WARNING','setContent','empty-parts-warning','partsCount','updateContentParts','_showUnchangedParts','_emptyPartsWarningView','_switchButtonLabelsPlurality','_sourcesView','updateContent','_availableActions','add','partDefinition','updateSources','bodyCollection','376128dYIDjI','push','_cachedContentParts','delegate','updatePartState','availableActions','isVisible','getPartView','ck-ai-suggestion__body__content-parts','div'];_0x4370=function(){return _0x2a052c;};return _0x4370();}import{AISuggestionBodyViewContentPartView as _0x598034}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x465c2d}from'../../utils/eventnames.js';import{PromiseQueue as _0x1b9173}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0xe0ac6f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x511914}from'../../utils/common-translations.js';function _0x3a4c(_0x1a7fd6,_0x122a7c){const _0x4370e8=_0x4370();return _0x3a4c=function(_0x3a4c83,_0x4e294e){_0x3a4c83=_0x3a4c83-0x153;let _0x429013=_0x4370e8[_0x3a4c83];return _0x429013;},_0x3a4c(_0x1a7fd6,_0x122a7c);}import{AIChatFeedSuggestionItemActionsView as _0x4598b4}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1f4855}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x53e3dc{[_0x5551db(0x15e)];[_0x5551db(0x18e)];[_0x5551db(0x16e)];[_0x5551db(0x170)];[_0x5551db(0x18b)];[_0x5551db(0x16d)];[_0x5551db(0x18c)];[_0x5551db(0x190)];[_0x5551db(0x197)]=[];constructor(_0x2d4a8c,_0x2e30ab){const _0x4bc225=_0x5551db;super(_0x2d4a8c);const {areActionsDisabled:_0x2151c3,showUnchangedParts:_0x17b1b7,availableActions:_0x4fa612}=_0x2e30ab;this[_0x4bc225(0x170)]=_0x2151c3,this[_0x4bc225(0x18b)]=_0x17b1b7,this[_0x4bc225(0x190)]=_0x4fa612,this[_0x4bc225(0x177)](_0x4bc225(0x17b),!0x1),this[_0x4bc225(0x177)](_0x4bc225(0x17a),!0x1),this[_0x4bc225(0x16e)]=this[_0x4bc225(0x16b)](),this[_0x4bc225(0x16d)]=new _0x1b9173(),this[_0x4bc225(0x18c)]=new _0xe0ac6f({'id':_0x4bc225(0x188),'initialContent':_0x511914(_0x2d4a8c,_0x4bc225(0x186)),'level':_0x4bc225(0x168)}),this[_0x4bc225(0x18c)][_0x4bc225(0x156)]=!0x1,this[_0x4bc225(0x15e)]=new _0x4598b4(_0x2d4a8c,_0x2e30ab[_0x4bc225(0x155)],this[_0x4bc225(0x170)]),this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x17a))['to'](this),this[_0x4bc225(0x18e)]=new _0x1f4855(this[_0x4bc225(0x181)],_0x2e30ab[_0x4bc225(0x194)]),_0x2e30ab[_0x4bc225(0x166)]?this[_0x4bc225(0x15e)][_0x4bc225(0x176)]=!0x1:this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x176))['to'](this,_0x4bc225(0x17b)),this[_0x4bc225(0x15e)][_0x4bc225(0x153)](..._0x465c2d)['to'](this),this[_0x4bc225(0x16c)]({'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x15b)]},'children':[{'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x158)]},'children':this[_0x4bc225(0x16e)]},this[_0x4bc225(0x18c)],this[_0x4bc225(0x15e)],this[_0x4bc225(0x18e)]]});}get[_0x5551db(0x189)](){const _0x27b727=_0x5551db;return this[_0x27b727(0x16e)][_0x27b727(0x160)];}async[_0x5551db(0x18a)]({parts:_0x1f06f7,renderingStrategy:_0x475806,abortSignal:_0x223d9c}){const _0x283c0b=_0x5551db;this[_0x283c0b(0x16e)][_0x283c0b(0x160)]?_0x1f06f7[_0x283c0b(0x175)](_0x1d9990=>{const _0x29fafe=_0x283c0b,_0x308e14=this[_0x29fafe(0x197)][_0x29fafe(0x180)](_0x5bb799=>_0x5bb799[_0x29fafe(0x15a)]==_0x1d9990[_0x29fafe(0x15a)]);-0x1===_0x308e14?this[_0x29fafe(0x197)][_0x29fafe(0x196)](_0x1d9990):this[_0x29fafe(0x197)][_0x308e14]=_0x1d9990;}):this[_0x283c0b(0x197)]=_0x1f06f7;const _0x10820a=this[_0x283c0b(0x18b)]?_0x1f06f7:_0x1f06f7[_0x283c0b(0x185)](_0x252c2a=>_0x252c2a[_0x283c0b(0x182)]);this[_0x283c0b(0x15e)][_0x283c0b(0x18d)](_0x10820a[_0x283c0b(0x160)]>0x1);for(const _0x283ca9 of _0x10820a)this[_0x283c0b(0x16d)][_0x283c0b(0x17d)](async _0x4ab46c=>{const _0x3334cc=_0x283c0b;let _0x20ecc6=this[_0x3334cc(0x157)](_0x283ca9[_0x3334cc(0x15a)]);_0x20ecc6||(_0x20ecc6=new _0x598034(this[_0x3334cc(0x181)],{'part':_0x283ca9,'uiIndex':this[_0x3334cc(0x16e)][_0x3334cc(0x160)]+0x1,'areActionsDisabled':this[_0x3334cc(0x170)],'availableActions':this[_0x3334cc(0x190)]}),_0x20ecc6[_0x3334cc(0x153)](..._0x465c2d)['to'](this),this[_0x3334cc(0x16e)][_0x3334cc(0x191)](_0x20ecc6),this[_0x3334cc(0x17b)]=!0x0),await _0x20ecc6[_0x3334cc(0x18f)]({'part':_0x283ca9,'renderingStrategy':_0x475806,'showUnchangedParts':this[_0x3334cc(0x18b)],'abortSignal':_0x4ab46c}),_0x20ecc6[_0x3334cc(0x16a)]();});return _0x223d9c?.[_0x283c0b(0x162)](_0x283c0b(0x179),()=>{const _0x3a3928=_0x283c0b;this[_0x3a3928(0x16d)][_0x3a3928(0x179)]();}),this[_0x283c0b(0x16d)][_0x283c0b(0x164)];}[_0x5551db(0x154)](_0x4acc52,_0xc1efa4){const _0x50db3e=_0x5551db,_0x155752=this[_0x50db3e(0x157)](_0x4acc52);_0x155752&&(_0x155752[_0x50db3e(0x15d)]=_0xc1efa4),this[_0x50db3e(0x17b)]=_0x50db3e(0x173)==_0xc1efa4||Array[_0x50db3e(0x161)](this[_0x50db3e(0x16e)])[_0x50db3e(0x184)](_0x55f946=>_0x50db3e(0x173)==_0x55f946[_0x50db3e(0x15d)]);}[_0x5551db(0x178)](_0x3b2371,_0x10d5fa){const _0x164187=_0x5551db;if(!0x1===_0x3b2371){for(const _0x4f61ae of this[_0x164187(0x16e)])_0x4f61ae[_0x164187(0x183)]=!0x1;}else{const _0x137ace=this[_0x164187(0x157)](_0x3b2371);_0x137ace&&(_0x137ace[_0x164187(0x183)]=_0x10d5fa);}}[_0x5551db(0x193)](_0x27c5cc){const _0x1e06d1=_0x5551db;_0x27c5cc[_0x1e06d1(0x175)](_0x28747d=>this[_0x1e06d1(0x18e)][_0x1e06d1(0x17f)](_0x28747d)),this[_0x1e06d1(0x18e)][_0x1e06d1(0x156)]=!0x0;}[_0x5551db(0x157)](_0x31b474){const _0x134a48=_0x5551db;return this[_0x134a48(0x16e)][_0x134a48(0x15f)](_0x123ea6=>_0x123ea6[_0x134a48(0x192)][_0x134a48(0x15a)]==_0x31b474)??null;}[_0x5551db(0x16a)](){const _0x24cc0c=_0x5551db;if(!this[_0x24cc0c(0x18b)]){const _0x39a98d=!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x4c28d9})=>_0x4c28d9),_0x464b66=!!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x2ee9f1})=>!_0x2ee9f1);this[_0x24cc0c(0x18c)][_0x24cc0c(0x156)]=0x0==this[_0x24cc0c(0x16e)][_0x24cc0c(0x160)]||_0x464b66,_0x39a98d?this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x172))):this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x186)));}this[_0x24cc0c(0x16e)][_0x24cc0c(0x175)](_0x37ff91=>_0x37ff91[_0x24cc0c(0x16a)]()),this[_0x24cc0c(0x15e)][_0x24cc0c(0x165)](this[_0x24cc0c(0x163)]);}get[_0x5551db(0x163)](){const _0x592353=_0x5551db;return this[_0x592353(0x16e)][_0x592353(0x185)](_0x2648ea=>_0x2648ea[_0x592353(0x192)][_0x592353(0x182)])[_0x592353(0x160)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44a6c3=_0x201c;(function(_0x34f4ce,_0x3e0acd){const _0x1b10b9=_0x201c,_0x1c4a78=_0x34f4ce();while(!![]){try{const _0x394b8e=parseInt(_0x1b10b9(0x18b))/0x1+-parseInt(_0x1b10b9(0x18a))/0x2+-parseInt(_0x1b10b9(0x18d))/0x3*(-parseInt(_0x1b10b9(0x199))/0x4)+parseInt(_0x1b10b9(0x18e))/0x5+-parseInt(_0x1b10b9(0x17e))/0x6*(parseInt(_0x1b10b9(0x18c))/0x7)+parseInt(_0x1b10b9(0x19a))/0x8*(parseInt(_0x1b10b9(0x195))/0x9)+parseInt(_0x1b10b9(0x196))/0xa;if(_0x394b8e===_0x3e0acd)break;else _0x1c4a78['push'](_0x1c4a78['shift']());}catch(_0x36d7db){_0x1c4a78['push'](_0x1c4a78['shift']());}}}(_0x4593,0x49bc5));function _0x201c(_0x4a688c,_0x5d702f){const _0x4593df=_0x4593();return _0x201c=function(_0x201c17,_0x330e07){_0x201c17=_0x201c17-0x17a;let _0x46aa1b=_0x4593df[_0x201c17];return _0x46aa1b;},_0x201c(_0x4a688c,_0x5d702f);}import{View as _0x5c5f53}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5cb4d0}from'./aisuggestionheaderview.js';function _0x4593(){const _0x29f7cd=['bodyView','isShowChangesToggleVisible','662262YmUzFk','328616timTsj','7fGusZT','249969TfdHHV','964910WylfeR','headerView','createCollection','children','markAsDone','isOn','div','22860fbpEiI','939670UQOKOR','bind','updateContent','4siXiQo','768UPmQEu','isTrackChangesOn','ck-ai-suggestion__container','toggleSuggestionDisplayMode','updateContentParts','fire','1857456soEQkW','add','set','delegate','updateSources','setTemplate','areChangesVisible','ck-rounded-corners','toggleShowChanges','hasNonEmptyParts'];_0x4593=function(){return _0x29f7cd;};return _0x4593();}import{AISuggestionBodyView as _0x74c478}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x203458}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x5c5f53{[_0x44a6c3(0x188)];[_0x44a6c3(0x191)];[_0x44a6c3(0x18f)];constructor(_0x2aa842,_0x4f7ab4,_0x18d74e){const _0x36e2a9=_0x44a6c3;super(_0x2aa842);const {showDiff:_0x3bc4f8,areActionsDisabled:_0x278322,showUnchangedParts:_0x147f74,availableActions:_0x437595}=_0x4f7ab4;this[_0x36e2a9(0x180)](_0x36e2a9(0x19b),!0x1),this[_0x36e2a9(0x180)](_0x36e2a9(0x184),!0x1),this[_0x36e2a9(0x191)]=this[_0x36e2a9(0x190)](),this[_0x36e2a9(0x18f)]=new _0x5cb4d0(_0x2aa842,{'showDiff':_0x3bc4f8}),this[_0x36e2a9(0x18f)]['on'](_0x36e2a9(0x186),(_0x192821,_0x4d4dba)=>{const _0x11549d=_0x36e2a9;this[_0x11549d(0x184)]=_0x4d4dba[_0x11549d(0x193)],this[_0x11549d(0x17d)](_0x11549d(0x17b),{'showDiff':_0x4d4dba[_0x11549d(0x193)]});}),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x18f)]),this[_0x36e2a9(0x188)]=new _0x74c478(_0x2aa842,{'areActionsDisabled':_0x278322,'showUnchangedParts':!!_0x147f74,'availableActions':_0x437595,'bodyCollection':_0x18d74e}),this[_0x36e2a9(0x188)][_0x36e2a9(0x181)](..._0x203458)['to'](this),this[_0x36e2a9(0x188)][_0x36e2a9(0x197)](_0x36e2a9(0x19b))['to'](this),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x188)]),this[_0x36e2a9(0x183)]({'tag':_0x36e2a9(0x194),'attributes':{'class':['ck',_0x36e2a9(0x17a),_0x36e2a9(0x185)]},'children':this[_0x36e2a9(0x191)]});}async[_0x44a6c3(0x198)](_0x296e16){const _0x1497de=_0x44a6c3;await this[_0x1497de(0x188)][_0x1497de(0x17c)](_0x296e16);}[_0x44a6c3(0x182)](_0x4cd2cf){const _0x1fd7b6=_0x44a6c3;this[_0x1fd7b6(0x188)][_0x1fd7b6(0x182)](_0x4cd2cf);}[_0x44a6c3(0x192)](){const _0x14e573=_0x44a6c3;this[_0x14e573(0x188)][_0x14e573(0x192)](),this[_0x14e573(0x18f)]&&(this[_0x14e573(0x18f)][_0x14e573(0x189)]=this[_0x14e573(0x188)][_0x14e573(0x187)]);}}
|