@ckeditor/ckeditor5-ai 47.7.3 → 47.7.5-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 +16 -16
- 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.d.ts +21 -14
- 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 _0x51a979=_0x5934;(function(_0x367b70,_0x159439){const _0xb1da4c=_0x5934,_0x156643=_0x367b70();while(!![]){try{const _0x3e7a72=-parseInt(_0xb1da4c(0x1b1))/0x1+-parseInt(_0xb1da4c(0x1e8))/0x2+-parseInt(_0xb1da4c(0x1b4))/0x3*(-parseInt(_0xb1da4c(0x1cc))/0x4)+parseInt(_0xb1da4c(0x1ed))/0x5*(parseInt(_0xb1da4c(0x18e))/0x6)+parseInt(_0xb1da4c(0x1c1))/0x7*(-parseInt(_0xb1da4c(0x1a8))/0x8)+-parseInt(_0xb1da4c(0x1f6))/0x9*(-parseInt(_0xb1da4c(0x18a))/0xa)+parseInt(_0xb1da4c(0x19d))/0xb;if(_0x3e7a72===_0x159439)break;else _0x156643['push'](_0x156643['shift']());}catch(_0x3b9ae1){_0x156643['push'](_0x156643['shift']());}}}(_0x15ee,0xe18be));import{createParser as _0x1dad0c}from'eventsource-parser';import{ContextPlugin as _0x18a2c8}from'ckeditor5/src/core.js';function _0x5934(_0x2d1dff,_0x3b646a){const _0x15eef9=_0x15ee();return _0x5934=function(_0x59342c,_0x5d4e19){_0x59342c=_0x59342c-0x161;let _0x3e9dfa=_0x15eef9[_0x59342c];return _0x3e9dfa;},_0x5934(_0x2d1dff,_0x3b646a);}import{CKEditorError as _0x6236a7}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x15ee(){const _0x216b9e=['upsertCustomAIReviewRating','1023711wZYyAW','/ratings','stringify','1254xxroET','_getStreamReader','/messages','toString','requires','/messages/','context','executeAction','language','executeCustomAction','positiveCount','limit','length','4963PFDGTc','getReader','items','/reviews/custom/calls/','startConversation','deleteWebResource','order','/models/1?','define','status','_token','6992HGmhXl','abortController','PATCH','upsertAIChatRating','ai.serviceUrl','https://ai.cke-cs.com/v1','deleteConversation','_apiUrl','excludeEmpty','/documents/','isPremiumPlugin','_handleError','then','modificationId','data','Bearer\x20','createdAt','/conversations/','CloudServices','upsertCustomAIActionRating','PUT','releaseLock','DELETE','fix-grammar','deleteFile','/actions/custom/calls','MAKE_SHORTER','improve-writing','3332182vwTQbl','updateConversation','GET','upsertAIReviewRating','catch','2392585YuVTbf','sortBy','/documents','desc','push','decode','_decoder','signal','totalCount','23175MdjEDC','100','MAKE_TONE_FORMAL','request','/web-resources','/reviews/custom/calls','fetchConversations','/actions/system/','TRANSLATE','fetchConversationMessages','true','value','parse','pluginName','FIX_GRAMMAR','application/json','group','upsertAIActionRating','message','append','/calls','_sendApiRequest','reset','plugins','/calls/','CONTINUE','body','translate','text','ai-request-aborted','/conversations?','traceId','name','callSystemReview','ai-missing-token','/reviews/system/','make-tone-formal','statusText','fetchConversation','init','AIConnector','deleteDocument','3850ZfyYom','code','false','get','6vLLySB','AbortError','make-shorter','token','callCustomReview','/web-resources/','Content-Type','uploadUrl','make-tone-casual','continue','read','MAKE_LONGER','/files','fetchDocument','config','29823893qSuNOA','/files/','isOfficialPlugin','queryAssistant','feed','getModels','ai-request-failed','uploadDocument','uploadFile','make-longer','IMPROVE_WRITING','14648YVRjhW','/conversations','/actions/custom/calls/','attributes','json','MAKE_TONE_CASUAL','POST','file'];_0x15ee=function(){return _0x216b9e;};return _0x15ee();}!function(_0xe9e7c8){const _0x21e836=_0x5934;_0xe9e7c8[_0x21e836(0x179)]=_0x21e836(0x197),_0xe9e7c8[_0x21e836(0x16e)]=_0x21e836(0x1e3),_0xe9e7c8[_0x21e836(0x1a7)]=_0x21e836(0x1e7),_0xe9e7c8[_0x21e836(0x199)]=_0x21e836(0x1a6),_0xe9e7c8[_0x21e836(0x1e6)]=_0x21e836(0x190),_0xe9e7c8[_0x21e836(0x1ad)]=_0x21e836(0x196),_0xe9e7c8[_0x21e836(0x162)]=_0x21e836(0x184),_0xe9e7c8[_0x21e836(0x168)]=_0x21e836(0x17b);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x18a2c8{[_0x51a979(0x1d3)];[_0x51a979(0x1cb)];[_0x51a979(0x1f3)];static get[_0x51a979(0x1b8)](){const _0x169dcc=_0x51a979;return[_0x169dcc(0x1de)];}static get[_0x51a979(0x16d)](){const _0x14b70b=_0x51a979;return _0x14b70b(0x188);}static get[_0x51a979(0x19f)](){return!0x0;}static get[_0x51a979(0x1d6)](){return!0x0;}constructor(_0x1e15f3){const _0x5b12f0=_0x51a979;super(_0x1e15f3),this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x1c9)](_0x5b12f0(0x1d0),_0x5b12f0(0x1d1)),this[_0x5b12f0(0x1d3)]=this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x18d)](_0x5b12f0(0x1d0)),this[_0x5b12f0(0x1cb)]=null,this[_0x5b12f0(0x1f3)]=new TextDecoder();}[_0x51a979(0x187)](){const _0x17fd89=_0x51a979,_0x24aea6=this[_0x17fd89(0x1ba)][_0x17fd89(0x177)][_0x17fd89(0x18d)](_0x17fd89(0x1de));if(!_0x24aea6[_0x17fd89(0x191)])throw new _0x6236a7(_0x17fd89(0x182),this);this[_0x17fd89(0x1cb)]=_0x24aea6[_0x17fd89(0x191)];}[_0x51a979(0x1c5)](_0x3054c4,_0x4ca337){const _0x30768b=_0x51a979,_0x131f13=this[_0x30768b(0x175)](_0x30768b(0x1a9),_0x30768b(0x1ae),{'id':_0x3054c4,'group':_0x4ca337});return{'getConversation':async()=>(await _0x131f13[_0x30768b(0x163)])[_0x30768b(0x1ac)](),'abortController':_0x131f13[_0x30768b(0x1cd)]};}[_0x51a979(0x1a0)]({message:_0xb1f742,conversationId:_0x4d177c,parts:_0x5f0d41,capabilities:_0x416ab8,model:_0xebc027,attributes:_0x5d066f}){const _0x5d92b1=_0x51a979,_0x373407={'prompt':_0xb1f742,'content':_0x5f0d41,'model':_0xebc027,..._0x416ab8&&{'capabilities':_0x416ab8},..._0x5d066f&&{'attributes':_0x5d066f}},_0x1d97e3=this[_0x5d92b1(0x175)](_0x5d92b1(0x1dd)+_0x4d177c+_0x5d92b1(0x1b6),_0x5d92b1(0x1ae),_0x373407);return{'getStream':async()=>{const _0xee9b2a=_0x5d92b1,_0x2905cf=(await _0x1d97e3[_0xee9b2a(0x163)])[_0xee9b2a(0x17a)];return this[_0xee9b2a(0x1b5)](_0x2905cf);},'abortController':_0x1d97e3[_0x5d92b1(0x1cd)]};}[_0x51a979(0x1bd)]({content:_0x184cab,message:_0x15f148,model:_0x4304f8,outputFormat:_0x5daf9c}){const _0x1706d2=_0x51a979,_0x2363c9={'content':[{'type':_0x1706d2(0x17c),'content':_0x184cab}],'prompt':_0x15f148,'model':_0x4304f8,'outputFormat':_0x5daf9c},_0x23f82c=this[_0x1706d2(0x175)](_0x1706d2(0x1e5),_0x1706d2(0x1ae),_0x2363c9);return{'getStream':async()=>{const _0x1385ec=_0x1706d2,_0x517d07=(await _0x23f82c[_0x1385ec(0x163)])[_0x1385ec(0x17a)];return this[_0x1385ec(0x1b5)](_0x517d07);},'abortController':_0x23f82c[_0x1706d2(0x1cd)]};}[_0x51a979(0x1bb)]({actionName:_0x553bb3,content:_0x473237,args:_0x1e1243}){const _0x3bdd89=_0x51a979,_0x1200f6={'content':[{'type':_0x3bdd89(0x17c),'content':_0x473237}],'args':_0x1e1243},_0x1a64d9=this[_0x3bdd89(0x175)](_0x3bdd89(0x167)+_0x553bb3+_0x3bdd89(0x174),_0x3bdd89(0x1ae),_0x1200f6);return{'getStream':async()=>{const _0x4e70c8=_0x3bdd89,_0xf3c548=(await _0x1a64d9[_0x4e70c8(0x163)])[_0x4e70c8(0x17a)];return this[_0x4e70c8(0x1b5)](_0xf3c548);},'abortController':_0x1a64d9[_0x3bdd89(0x1cd)]};}[_0x51a979(0x1a5)](_0x10adb1,_0x24fe6d,_0x393f75){const _0x16483e=_0x51a979,_0x3c3c72=new FormData();_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1af),_0x24fe6d,_0x24fe6d[_0x16483e(0x180)]),_0x393f75&&_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1ab),JSON[_0x16483e(0x1b3)](_0x393f75));const _0x238460=this[_0x16483e(0x175)](_0x16483e(0x1dd)+_0x10adb1+_0x16483e(0x19a),_0x16483e(0x1ae),_0x3c3c72);return{'getId':async()=>(await _0x238460[_0x16483e(0x163)])[_0x16483e(0x1ac)](),'abortController':_0x238460[_0x16483e(0x1cd)]};}[_0x51a979(0x19b)](_0x2e04b8,_0x40d54d){const _0x3a3d8f=_0x51a979,_0xb7feb4=this[_0x3a3d8f(0x175)](_0x3a3d8f(0x1dd)+_0x2e04b8+_0x3a3d8f(0x1d5)+_0x40d54d,_0x3a3d8f(0x1ea));return{'getDocument':async()=>(await _0xb7feb4[_0x3a3d8f(0x163)])[_0x3a3d8f(0x1ac)](),'abortController':_0xb7feb4[_0x3a3d8f(0x1cd)]};}[_0x51a979(0x1a4)](_0x1c455e,_0x360c77,_0x11d58a){const _0x414791=_0x51a979,_0x57db76={'content':_0x360c77};_0x11d58a&&(_0x57db76[_0x414791(0x1ab)]=_0x11d58a);const _0x309bff=this[_0x414791(0x175)](_0x414791(0x1dd)+_0x1c455e+_0x414791(0x1ef),_0x414791(0x1ae),_0x57db76);return{'getId':async()=>(await _0x309bff[_0x414791(0x163)])[_0x414791(0x1ac)](),'abortController':_0x309bff[_0x414791(0x1cd)]};}[_0x51a979(0x166)](_0x322457,_0x36de7a={}){const _0xebd046=_0x51a979,_0x37eec6=new URLSearchParams();_0x37eec6[_0xebd046(0x173)](_0xebd046(0x170),_0x322457),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1d4),!0x1!==_0x36de7a[_0xebd046(0x1d4)]?_0xebd046(0x16a):_0xebd046(0x18c)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1bf),_0x36de7a[_0xebd046(0x1bf)]?_0x36de7a[_0xebd046(0x1bf)][_0xebd046(0x1b7)]():_0xebd046(0x161)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1ee),_0x36de7a[_0xebd046(0x1ee)]?_0x36de7a[_0xebd046(0x1ee)]:_0xebd046(0x1dc)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1c7),_0x36de7a[_0xebd046(0x1c7)]?_0x36de7a[_0xebd046(0x1c7)]:_0xebd046(0x1f0));const _0x21c34d=this[_0xebd046(0x175)](_0xebd046(0x17e)+_0x37eec6[_0xebd046(0x1b7)](),_0xebd046(0x1ea));return{'getConversations':async()=>{const _0x25a7d5=_0xebd046,_0xcffb30=await _0x21c34d[_0x25a7d5(0x163)];return(await _0xcffb30[_0x25a7d5(0x1ac)]())[_0x25a7d5(0x1c3)];},'abortController':_0x21c34d[_0xebd046(0x1cd)]};}[_0x51a979(0x1d2)](_0x34ec75){const _0x230f80=_0x51a979,_0x38f15e=this[_0x230f80(0x175)](_0x230f80(0x1dd)+_0x34ec75,_0x230f80(0x1e2));return{'execute':async()=>{const _0x483b8c=_0x230f80;await _0x38f15e[_0x483b8c(0x163)];},'abortController':_0x38f15e[_0x230f80(0x1cd)]};}[_0x51a979(0x1e9)](_0x5171e4,_0x40e02a){const _0x12cc88=_0x51a979,_0x2f79e4=this[_0x12cc88(0x175)](_0x12cc88(0x1dd)+_0x5171e4,_0x12cc88(0x1ce),_0x40e02a);return{'getResult':async()=>(await _0x2f79e4[_0x12cc88(0x163)],_0x40e02a),'abortController':_0x2f79e4[_0x12cc88(0x1cd)]};}[_0x51a979(0x186)](_0x230bfa){const _0xbbcd55=_0x51a979,_0x571848=this[_0xbbcd55(0x175)](_0xbbcd55(0x1dd)+_0x230bfa,_0xbbcd55(0x1ea));return{'getConversation':async()=>(await _0x571848[_0xbbcd55(0x163)])[_0xbbcd55(0x1ac)](),'abortController':_0x571848[_0xbbcd55(0x1cd)]};}[_0x51a979(0x169)](_0x16385e){const _0x4b2230=_0x51a979,_0x19f277=this[_0x4b2230(0x175)](_0x4b2230(0x1dd)+_0x16385e+_0x4b2230(0x1b6),_0x4b2230(0x1ea));return{'getMessages':async()=>{const _0x37a0af=_0x4b2230,_0x2e1483=await _0x19f277[_0x37a0af(0x163)];return(await _0x2e1483[_0x37a0af(0x1ac)]())[_0x37a0af(0x1c3)];},'abortController':_0x19f277[_0x4b2230(0x1cd)]};}[_0x51a979(0x195)](_0x4bf794,_0x2a9206,_0x152465){const _0x56fe4f=_0x51a979,_0x8ad5df=this[_0x56fe4f(0x175)](_0x56fe4f(0x1dd)+_0x4bf794+_0x56fe4f(0x164),_0x56fe4f(0x1ae),{'url':_0x2a9206,'attributes':_0x152465});return{'getId':async()=>(await _0x8ad5df[_0x56fe4f(0x163)])[_0x56fe4f(0x1ac)](),'abortController':_0x8ad5df[_0x56fe4f(0x1cd)]};}[_0x51a979(0x1a2)](_0x2f8ec1='en'){const _0x5a184d=_0x51a979,_0x1008fb=new URLSearchParams();_0x1008fb[_0x5a184d(0x173)](_0x5a184d(0x1bc),_0x2f8ec1);const _0x414fc2=_0x5a184d(0x1c8)+_0x1008fb[_0x5a184d(0x1b7)](),_0x23bb57=this[_0x5a184d(0x175)](_0x414fc2,_0x5a184d(0x1ea));return{'list':async()=>await(await _0x23bb57[_0x5a184d(0x163)])[_0x5a184d(0x1ac)](),'abortController':_0x23bb57[_0x5a184d(0x1cd)]};}[_0x51a979(0x1e4)](_0x1518ca,_0x1f4cdc){const _0x1e0d78=_0x51a979,_0x3b6da3=this[_0x1e0d78(0x175)](_0x1e0d78(0x1dd)+_0x1518ca+_0x1e0d78(0x19e)+_0x1f4cdc,_0x1e0d78(0x1e2));return{'execute':async()=>{const _0x5bf3f5=_0x1e0d78;await _0x3b6da3[_0x5bf3f5(0x163)];},'abortController':_0x3b6da3[_0x1e0d78(0x1cd)]};}[_0x51a979(0x189)](_0x44f461,_0x3ca203){const _0x184450=_0x51a979,_0x1fedbd=this[_0x184450(0x175)](_0x184450(0x1dd)+_0x44f461+_0x184450(0x1d5)+_0x3ca203,_0x184450(0x1e2));return{'execute':async()=>{const _0x40f819=_0x184450;await _0x1fedbd[_0x40f819(0x163)];},'abortController':_0x1fedbd[_0x184450(0x1cd)]};}[_0x51a979(0x1c6)](_0x57fcf7,_0x286fc0){const _0x1a1dd5=_0x51a979,_0x3c9793=this[_0x1a1dd5(0x175)](_0x1a1dd5(0x1dd)+_0x57fcf7+_0x1a1dd5(0x193)+_0x286fc0,_0x1a1dd5(0x1e2));return{'execute':async()=>{const _0x48527d=_0x1a1dd5;await _0x3c9793[_0x48527d(0x163)];},'abortController':_0x3c9793[_0x1a1dd5(0x1cd)]};}[_0x51a979(0x181)]({reviewName:_0x2272bc,content:_0x2eb7eb,args:_0x4fa216}){const _0xa0a48a=_0x51a979,_0x374c8e=this[_0xa0a48a(0x175)](_0xa0a48a(0x183)+_0x2272bc+_0xa0a48a(0x174),_0xa0a48a(0x1ae),{'content':[{'type':_0xa0a48a(0x17c),'content':_0x2eb7eb}],'args':_0x4fa216});return{'getStream':async()=>{const _0x2ed169=_0xa0a48a,_0x592a6d=(await _0x374c8e[_0x2ed169(0x163)])[_0x2ed169(0x17a)];return this[_0x2ed169(0x1b5)](_0x592a6d);},'abortController':_0x374c8e[_0xa0a48a(0x1cd)]};}[_0x51a979(0x192)]({content:_0xadd4ad,prompt:_0x5b2aaf,model:_0x55f94a}){const _0x3b50c2=_0x51a979,_0x42e4fc=this[_0x3b50c2(0x175)](_0x3b50c2(0x165),_0x3b50c2(0x1ae),{'content':[{'type':_0x3b50c2(0x17c),'content':_0xadd4ad}],'prompt':_0x5b2aaf,'model':_0x55f94a});return{'getStream':async()=>{const _0x1f498a=_0x3b50c2,_0x506692=(await _0x42e4fc[_0x1f498a(0x163)])[_0x1f498a(0x17a)];return this[_0x1f498a(0x1b5)](_0x506692);},'abortController':_0x42e4fc[_0x3b50c2(0x1cd)]};}[_0x51a979(0x1cf)](_0x1f6428,_0xc9d82,_0x4dd759){const _0x4f6dbd=_0x51a979,_0x3b0746=this[_0x4f6dbd(0x175)](_0x4f6dbd(0x1dd)+_0x1f6428+_0x4f6dbd(0x1b9)+_0xc9d82+_0x4f6dbd(0x1b2),_0x4f6dbd(0x1e0),{'positiveCount':_0x4dd759[_0x4f6dbd(0x1be)],'totalCount':_0x4dd759[_0x4f6dbd(0x1f5)],'modificationId':_0x4dd759[_0x4f6dbd(0x1d9)]});return{'execute':async()=>{const _0x478fe2=_0x4f6dbd;await _0x3b0746[_0x478fe2(0x163)];},'abortController':_0x3b0746[_0x4f6dbd(0x1cd)]};}[_0x51a979(0x171)](_0x356e66,_0x35c621,_0x4a211b){const _0x7361a9=_0x51a979,_0x5eb86c=this[_0x7361a9(0x175)](_0x7361a9(0x167)+_0x356e66+_0x7361a9(0x178)+_0x35c621+_0x7361a9(0x1b2),_0x7361a9(0x1e0),{'positiveCount':_0x4a211b[_0x7361a9(0x1be)],'totalCount':_0x4a211b[_0x7361a9(0x1f5)]});return{'execute':async()=>{const _0x43986f=_0x7361a9;await _0x5eb86c[_0x43986f(0x163)];},'abortController':_0x5eb86c[_0x7361a9(0x1cd)]};}[_0x51a979(0x1df)](_0xa9ebbb,_0x2a59d2){const _0x55714a=_0x51a979,_0x1ea496=this[_0x55714a(0x175)](_0x55714a(0x1aa)+_0xa9ebbb+_0x55714a(0x1b2),_0x55714a(0x1e0),{'positiveCount':_0x2a59d2[_0x55714a(0x1be)],'totalCount':_0x2a59d2[_0x55714a(0x1f5)]});return{'execute':async()=>{const _0x21e929=_0x55714a;await _0x1ea496[_0x21e929(0x163)];},'abortController':_0x1ea496[_0x55714a(0x1cd)]};}[_0x51a979(0x1eb)](_0x5570b,_0x4a9213,_0x1ea9c5,_0x4ec3a2){const _0x57eaa5=_0x51a979,_0x13e086=this[_0x57eaa5(0x175)](_0x57eaa5(0x183)+_0x5570b+_0x57eaa5(0x178)+_0x4a9213+_0x57eaa5(0x1b2),_0x57eaa5(0x1e0),{'positiveCount':_0x1ea9c5[_0x57eaa5(0x1be)],'totalCount':_0x1ea9c5[_0x57eaa5(0x1f5)],'dataId':_0x4ec3a2});return{'execute':async()=>{const _0x3682c4=_0x57eaa5;await _0x13e086[_0x3682c4(0x163)];},'abortController':_0x13e086[_0x57eaa5(0x1cd)]};}[_0x51a979(0x1b0)](_0x4462d1,_0x3621b3,_0x11158b){const _0x3a15c=_0x51a979,_0x57d7ae=this[_0x3a15c(0x175)](_0x3a15c(0x1c4)+_0x4462d1+_0x3a15c(0x1b2),_0x3a15c(0x1e0),{'positiveCount':_0x3621b3[_0x3a15c(0x1be)],'totalCount':_0x3621b3[_0x3a15c(0x1f5)],'dataId':_0x11158b});return{'execute':async()=>{const _0x1e8a9f=_0x3a15c;await _0x57d7ae[_0x1e8a9f(0x163)];},'abortController':_0x57d7ae[_0x3a15c(0x1cd)]};}[_0x51a979(0x175)](_0x10a02e,_0x59a290,_0xc61fc6){const _0x1ed729=_0x51a979,_0x133428=new AbortController(),_0x13d4e5=_0xc61fc6 instanceof FormData,_0x172061={'Authorization':_0x1ed729(0x1db)+this[_0x1ed729(0x1cb)]?.[_0x1ed729(0x16b)]};_0xc61fc6&&!_0x13d4e5&&(_0x172061[_0x1ed729(0x194)]=_0x1ed729(0x16f));const _0x75aabc={'method':_0x59a290,'headers':_0x172061,'signal':_0x133428[_0x1ed729(0x1f4)]};return _0xc61fc6&&(_0x75aabc[_0x1ed729(0x17a)]=_0x13d4e5?_0xc61fc6:JSON[_0x1ed729(0x1b3)](_0xc61fc6)),{'request':fetch(''+this[_0x1ed729(0x1d3)]+_0x10a02e,_0x75aabc)[_0x1ed729(0x1ec)](_0x4954ed=>{const _0x3cff37=_0x1ed729;this[_0x3cff37(0x1d7)](_0x4954ed);})[_0x1ed729(0x1d8)](_0x298334=>_0x298334['ok']?_0x298334:_0x298334[_0x1ed729(0x1ac)]()[_0x1ed729(0x1d8)](_0x3b5a5b=>{const _0x5a5dcd=_0x1ed729;throw{'url':this[_0x5a5dcd(0x1d3)],'path':_0x10a02e,'method':_0x59a290,'body':_0xc61fc6,'status':(_0x298334||{})[_0x5a5dcd(0x1ca)],'statusText':(_0x298334||{})[_0x5a5dcd(0x185)],'code':_0x3b5a5b[_0x5a5dcd(0x18b)],'message':_0x3b5a5b[_0x5a5dcd(0x172)],'traceId':_0x3b5a5b[_0x5a5dcd(0x17f)]};})),'abortController':_0x133428};}async*[_0x51a979(0x1b5)](_0x5da348){const _0x2c6c41=_0x51a979,_0x3af080=[],_0x1ed799=_0x5da348[_0x2c6c41(0x1c2)](),_0x23fe86=_0x1dad0c({'onError':_0x24c3a5=>{const _0x50feea=_0x2c6c41;this[_0x50feea(0x1d7)](_0x24c3a5);},'onEvent':_0x5eebcb=>{const _0x3c3ed6=_0x2c6c41;_0x5eebcb[_0x3c3ed6(0x1da)]=JSON[_0x3c3ed6(0x16c)](_0x5eebcb[_0x3c3ed6(0x1da)]),_0x3af080[_0x3c3ed6(0x1f1)](_0x5eebcb);}});try{let _0x2658bc=!0x1;for(;!_0x2658bc;){const {done:_0x23912a,value:_0xfc45f7}=await _0x1ed799[_0x2c6c41(0x198)]();_0x23912a&&(_0x2658bc=!0x0),_0x23fe86[_0x2c6c41(0x1a1)](this[_0x2c6c41(0x1f3)][_0x2c6c41(0x1f2)](_0xfc45f7,{'stream':!0x0})),yield*_0x3af080,_0x3af080[_0x2c6c41(0x1c0)]=0x0;}}catch(_0x1ec7f7){this[_0x2c6c41(0x1d7)](_0x1ec7f7);}finally{_0x1ed799[_0x2c6c41(0x1e1)](),_0x23fe86[_0x2c6c41(0x176)]();}}[_0x51a979(0x1d7)](_0x49c020){const _0x2ceaef=_0x51a979;if(_0x49c020 instanceof _0x6236a7)throw _0x49c020;if(_0x49c020 instanceof Error&&_0x2ceaef(0x18f)===_0x49c020[_0x2ceaef(0x180)])throw new _0x6236a7(_0x2ceaef(0x17d),this,{'originalError':_0x49c020});throw new _0x6236a7(_0x2ceaef(0x1a3),this,{'originalError':_0x49c020});}}
|
|
23
|
+
const _0x524bb7=_0x1d06;(function(_0x237e0c,_0x1d58da){const _0x26d29c=_0x1d06,_0x201921=_0x237e0c();while(!![]){try{const _0x2fe776=parseInt(_0x26d29c(0xc0))/0x1+parseInt(_0x26d29c(0xee))/0x2+parseInt(_0x26d29c(0x128))/0x3*(parseInt(_0x26d29c(0xe0))/0x4)+-parseInt(_0x26d29c(0x118))/0x5*(parseInt(_0x26d29c(0x12a))/0x6)+-parseInt(_0x26d29c(0xfb))/0x7+parseInt(_0x26d29c(0x107))/0x8+-parseInt(_0x26d29c(0xb6))/0x9*(parseInt(_0x26d29c(0xd7))/0xa);if(_0x2fe776===_0x1d58da)break;else _0x201921['push'](_0x201921['shift']());}catch(_0x52d1e5){_0x201921['push'](_0x201921['shift']());}}}(_0x46dd,0xcfc79));import{createParser as _0x8a3a82}from'eventsource-parser';function _0x1d06(_0x40d5ee,_0x538380){const _0x46dd9c=_0x46dd();return _0x1d06=function(_0x1d0644,_0x241f84){_0x1d0644=_0x1d0644-0x9d;let _0x31511d=_0x46dd9c[_0x1d0644];return _0x31511d;},_0x1d06(_0x40d5ee,_0x538380);}import{ContextPlugin as _0x178cb9}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d61db}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x46dd(){const _0x1dfd7f=['init','abortController','upsertAIChatRating','/conversations','2923230GkAmPP','queryAssistant','GET','executeCustomAction','improve-writing','context','deleteFile','/conversations/','/web-resources/','CloudServices','fetchConversations','language','request','3155537xZPEzm','define','POST','attributes','getReader','true','then','callSystemReview','AbortError','ai.serviceUrl','/messages/','https://ai.cke-cs.com/v1','1213192hLVDnT','plugins','_apiUrl','uploadUrl','fetchConversationMessages','push','/models/1?','FIX_GRAMMAR','fetchDocument','desc','PATCH','_handleError','group','Content-Type','get','/documents/','value','19010QgyzQj','/calls','fetchConversation','MAKE_TONE_FORMAL','isOfficialPlugin','/files','translate','status','read','feed','/messages','limit','token','uploadDocument','_sendApiRequest','pluginName','126hPnfQG','upsertCustomAIReviewRating','2046qTahDu','PUT','message','continue','positiveCount','totalCount','ai-request-aborted','excludeEmpty','sortBy','AIConnector','upsertAIReviewRating','/actions/custom/calls','statusText','name','MAKE_TONE_CASUAL','decode','text','toString','false','executeAction','signal','/web-resources','deleteWebResource','uploadFile','CONTINUE','order','make-longer','json','/reviews/system/','catch','releaseLock','updateConversation','_decoder','9vZrEGr','/actions/custom/calls/','/actions/system/','items','stringify','requires','code','upsertCustomAIActionRating','DELETE','/reviews/custom/calls/','862297YNAPQV','startConversation','/calls/','upsertAIActionRating','_token','getModels','/files/','/conversations?','IMPROVE_WRITING','callCustomReview','/ratings','/documents','deleteConversation','100','TRANSLATE','application/json','fix-grammar','length','traceId','ai-missing-token','_getStreamReader','modificationId','createdAt','6922330rTLqUE','deleteDocument','Bearer\x20','make-tone-formal','data','append','MAKE_LONGER','make-shorter','parse','77620sJqlom','file','ai-request-failed','config','make-tone-casual','body','reset','isPremiumPlugin','MAKE_SHORTER','/reviews/custom/calls'];_0x46dd=function(){return _0x1dfd7f;};return _0x46dd();}!function(_0x264bbd){const _0x20e62d=_0x1d06;_0x264bbd[_0x20e62d(0xad)]=_0x20e62d(0x12d),_0x264bbd[_0x20e62d(0x10e)]=_0x20e62d(0xd0),_0x264bbd[_0x20e62d(0xc8)]=_0x20e62d(0xf2),_0x264bbd[_0x20e62d(0xdd)]=_0x20e62d(0xaf),_0x264bbd[_0x20e62d(0xe8)]=_0x20e62d(0xde),_0x264bbd[_0x20e62d(0xa3)]=_0x20e62d(0xe4),_0x264bbd[_0x20e62d(0x11b)]=_0x20e62d(0xda),_0x264bbd[_0x20e62d(0xce)]=_0x20e62d(0x11e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x178cb9{[_0x524bb7(0x109)];[_0x524bb7(0xc4)];[_0x524bb7(0xb5)];static get[_0x524bb7(0xbb)](){const _0x19e40a=_0x524bb7;return[_0x19e40a(0xf7)];}static get[_0x524bb7(0x127)](){const _0x309085=_0x524bb7;return _0x309085(0x9e);}static get[_0x524bb7(0x11c)](){return!0x0;}static get[_0x524bb7(0xe7)](){return!0x0;}constructor(_0x389694){const _0x2c00a7=_0x524bb7;super(_0x389694),this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0xfc)](_0x2c00a7(0x104),_0x2c00a7(0x106)),this[_0x2c00a7(0x109)]=this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0x115)](_0x2c00a7(0x104)),this[_0x2c00a7(0xc4)]=null,this[_0x2c00a7(0xb5)]=new TextDecoder();}[_0x524bb7(0xea)](){const _0x2656d9=_0x524bb7,_0x9ad423=this[_0x2656d9(0xf3)][_0x2656d9(0x108)][_0x2656d9(0x115)](_0x2656d9(0xf7));if(!_0x9ad423[_0x2656d9(0x124)])throw new _0x4d61db(_0x2656d9(0xd3),this);this[_0x2656d9(0xc4)]=_0x9ad423[_0x2656d9(0x124)];}[_0x524bb7(0xc1)](_0x28e0f5,_0x148bd7){const _0x10f95=_0x524bb7,_0x2258b7=this[_0x10f95(0x126)](_0x10f95(0xed),_0x10f95(0xfd),{'id':_0x28e0f5,'group':_0x148bd7});return{'getConversation':async()=>(await _0x2258b7[_0x10f95(0xfa)])[_0x10f95(0xb0)](),'abortController':_0x2258b7[_0x10f95(0xeb)]};}[_0x524bb7(0xef)]({message:_0x125e0f,conversationId:_0xc331e6,parts:_0x512979,capabilities:_0x56a63f,model:_0x29bcb2,attributes:_0x241960}){const _0x205345=_0x524bb7,_0x390eab={'prompt':_0x125e0f,'content':_0x512979,'model':_0x29bcb2,..._0x56a63f&&{'capabilities':_0x56a63f},..._0x241960&&{'attributes':_0x241960}},_0x5eba6e=this[_0x205345(0x126)](_0x205345(0xf5)+_0xc331e6+_0x205345(0x122),_0x205345(0xfd),_0x390eab);return{'getStream':async()=>{const _0x5db2f5=_0x205345,_0x11c501=(await _0x5eba6e[_0x5db2f5(0xfa)])[_0x5db2f5(0xe5)];return this[_0x5db2f5(0xd4)](_0x11c501);},'abortController':_0x5eba6e[_0x205345(0xeb)]};}[_0x524bb7(0xf1)]({content:_0x2e8f91,message:_0x463296,model:_0x2faabc,outputFormat:_0x582055}){const _0x1f8259=_0x524bb7,_0x9f7d29={'content':[{'type':_0x1f8259(0xa5),'content':_0x2e8f91}],'prompt':_0x463296,'model':_0x2faabc,'outputFormat':_0x582055},_0x469f48=this[_0x1f8259(0x126)](_0x1f8259(0xa0),_0x1f8259(0xfd),_0x9f7d29);return{'getStream':async()=>{const _0x3385ee=_0x1f8259,_0x2b6c2a=(await _0x469f48[_0x3385ee(0xfa)])[_0x3385ee(0xe5)];return this[_0x3385ee(0xd4)](_0x2b6c2a);},'abortController':_0x469f48[_0x1f8259(0xeb)]};}[_0x524bb7(0xa8)]({actionName:_0x43fa3b,content:_0x544307,args:_0x43f422}){const _0x22fcda=_0x524bb7,_0x814373={'content':[{'type':_0x22fcda(0xa5),'content':_0x544307}],'args':_0x43f422},_0x222caf=this[_0x22fcda(0x126)](_0x22fcda(0xb8)+_0x43fa3b+_0x22fcda(0x119),_0x22fcda(0xfd),_0x814373);return{'getStream':async()=>{const _0x5aa3c3=_0x22fcda,_0x3719c6=(await _0x222caf[_0x5aa3c3(0xfa)])[_0x5aa3c3(0xe5)];return this[_0x5aa3c3(0xd4)](_0x3719c6);},'abortController':_0x222caf[_0x22fcda(0xeb)]};}[_0x524bb7(0xac)](_0x5af6d3,_0x10a393,_0x41ac46){const _0x2f55fa=_0x524bb7,_0x390cf3=new FormData();_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xe1),_0x10a393,_0x10a393[_0x2f55fa(0xa2)]),_0x41ac46&&_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xfe),JSON[_0x2f55fa(0xba)](_0x41ac46));const _0x3520c4=this[_0x2f55fa(0x126)](_0x2f55fa(0xf5)+_0x5af6d3+_0x2f55fa(0x11d),_0x2f55fa(0xfd),_0x390cf3);return{'getId':async()=>(await _0x3520c4[_0x2f55fa(0xfa)])[_0x2f55fa(0xb0)](),'abortController':_0x3520c4[_0x2f55fa(0xeb)]};}[_0x524bb7(0x10f)](_0x5ca7f6,_0x316837){const _0x20d546=_0x524bb7,_0x417e85=this[_0x20d546(0x126)](_0x20d546(0xf5)+_0x5ca7f6+_0x20d546(0x116)+_0x316837,_0x20d546(0xf0));return{'getDocument':async()=>(await _0x417e85[_0x20d546(0xfa)])[_0x20d546(0xb0)](),'abortController':_0x417e85[_0x20d546(0xeb)]};}[_0x524bb7(0x125)](_0x459886,_0x43c56a,_0xca341d){const _0x35088e=_0x524bb7,_0x31a1eb={'content':_0x43c56a};_0xca341d&&(_0x31a1eb[_0x35088e(0xfe)]=_0xca341d);const _0x15c1c4=this[_0x35088e(0x126)](_0x35088e(0xf5)+_0x459886+_0x35088e(0xcb),_0x35088e(0xfd),_0x31a1eb);return{'getId':async()=>(await _0x15c1c4[_0x35088e(0xfa)])[_0x35088e(0xb0)](),'abortController':_0x15c1c4[_0x35088e(0xeb)]};}[_0x524bb7(0xf8)](_0x56dd1f,_0xb0ada9={}){const _0x55f706=_0x524bb7,_0x4ae46f=new URLSearchParams();_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x113),_0x56dd1f),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x131),!0x1!==_0xb0ada9[_0x55f706(0x131)]?_0x55f706(0x100):_0x55f706(0xa7)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x123),_0xb0ada9[_0x55f706(0x123)]?_0xb0ada9[_0x55f706(0x123)][_0x55f706(0xa6)]():_0x55f706(0xcd)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x9d),_0xb0ada9[_0x55f706(0x9d)]?_0xb0ada9[_0x55f706(0x9d)]:_0x55f706(0xd6)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0xae),_0xb0ada9[_0x55f706(0xae)]?_0xb0ada9[_0x55f706(0xae)]:_0x55f706(0x110));const _0x13f730=this[_0x55f706(0x126)](_0x55f706(0xc7)+_0x4ae46f[_0x55f706(0xa6)](),_0x55f706(0xf0));return{'getConversations':async()=>{const _0x1a89cb=_0x55f706,_0x113def=await _0x13f730[_0x1a89cb(0xfa)];return(await _0x113def[_0x1a89cb(0xb0)]())[_0x1a89cb(0xb9)];},'abortController':_0x13f730[_0x55f706(0xeb)]};}[_0x524bb7(0xcc)](_0x5b5b16){const _0x55e4ed=_0x524bb7,_0x57a7a3=this[_0x55e4ed(0x126)](_0x55e4ed(0xf5)+_0x5b5b16,_0x55e4ed(0xbe));return{'execute':async()=>{const _0x5d9930=_0x55e4ed;await _0x57a7a3[_0x5d9930(0xfa)];},'abortController':_0x57a7a3[_0x55e4ed(0xeb)]};}[_0x524bb7(0xb4)](_0x2dddc9,_0x4ceb1a){const _0x2efd98=_0x524bb7,_0x33eb9e=this[_0x2efd98(0x126)](_0x2efd98(0xf5)+_0x2dddc9,_0x2efd98(0x111),_0x4ceb1a);return{'getResult':async()=>(await _0x33eb9e[_0x2efd98(0xfa)],_0x4ceb1a),'abortController':_0x33eb9e[_0x2efd98(0xeb)]};}[_0x524bb7(0x11a)](_0xf4dc10){const _0x2aa76d=_0x524bb7,_0x46e027=this[_0x2aa76d(0x126)](_0x2aa76d(0xf5)+_0xf4dc10,_0x2aa76d(0xf0));return{'getConversation':async()=>(await _0x46e027[_0x2aa76d(0xfa)])[_0x2aa76d(0xb0)](),'abortController':_0x46e027[_0x2aa76d(0xeb)]};}[_0x524bb7(0x10b)](_0xec569c){const _0x2307de=_0x524bb7,_0x592028=this[_0x2307de(0x126)](_0x2307de(0xf5)+_0xec569c+_0x2307de(0x122),_0x2307de(0xf0));return{'getMessages':async()=>{const _0x3fad54=_0x2307de,_0x4f0260=await _0x592028[_0x3fad54(0xfa)];return(await _0x4f0260[_0x3fad54(0xb0)]())[_0x3fad54(0xb9)];},'abortController':_0x592028[_0x2307de(0xeb)]};}[_0x524bb7(0x10a)](_0x4723ba,_0x458026,_0x3a5645){const _0x56b2f4=_0x524bb7,_0x16da18=this[_0x56b2f4(0x126)](_0x56b2f4(0xf5)+_0x4723ba+_0x56b2f4(0xaa),_0x56b2f4(0xfd),{'url':_0x458026,'attributes':_0x3a5645});return{'getId':async()=>(await _0x16da18[_0x56b2f4(0xfa)])[_0x56b2f4(0xb0)](),'abortController':_0x16da18[_0x56b2f4(0xeb)]};}[_0x524bb7(0xc5)](_0x1f023f='en'){const _0x1e99d2=_0x524bb7,_0x5d7d31=new URLSearchParams();_0x5d7d31[_0x1e99d2(0xdc)](_0x1e99d2(0xf9),_0x1f023f);const _0x378037=_0x1e99d2(0x10d)+_0x5d7d31[_0x1e99d2(0xa6)](),_0x236dad=this[_0x1e99d2(0x126)](_0x378037,_0x1e99d2(0xf0));return{'list':async()=>await(await _0x236dad[_0x1e99d2(0xfa)])[_0x1e99d2(0xb0)](),'abortController':_0x236dad[_0x1e99d2(0xeb)]};}[_0x524bb7(0xf4)](_0x52fbc9,_0x3fa419){const _0x12f75a=_0x524bb7,_0x227a25=this[_0x12f75a(0x126)](_0x12f75a(0xf5)+_0x52fbc9+_0x12f75a(0xc6)+_0x3fa419,_0x12f75a(0xbe));return{'execute':async()=>{const _0x1edfec=_0x12f75a;await _0x227a25[_0x1edfec(0xfa)];},'abortController':_0x227a25[_0x12f75a(0xeb)]};}[_0x524bb7(0xd8)](_0x4f71f6,_0x29d043){const _0x128624=_0x524bb7,_0x252398=this[_0x128624(0x126)](_0x128624(0xf5)+_0x4f71f6+_0x128624(0x116)+_0x29d043,_0x128624(0xbe));return{'execute':async()=>{const _0x3eaac1=_0x128624;await _0x252398[_0x3eaac1(0xfa)];},'abortController':_0x252398[_0x128624(0xeb)]};}[_0x524bb7(0xab)](_0x24f903,_0x1c9e4e){const _0xedda0e=_0x524bb7,_0x241c6b=this[_0xedda0e(0x126)](_0xedda0e(0xf5)+_0x24f903+_0xedda0e(0xf6)+_0x1c9e4e,_0xedda0e(0xbe));return{'execute':async()=>{const _0xca4ee1=_0xedda0e;await _0x241c6b[_0xca4ee1(0xfa)];},'abortController':_0x241c6b[_0xedda0e(0xeb)]};}[_0x524bb7(0x102)]({reviewName:_0x25be81,content:_0xd11ec1,args:_0x31163d}){const _0x112265=_0x524bb7,_0xa2b61d=this[_0x112265(0x126)](_0x112265(0xb1)+_0x25be81+_0x112265(0x119),_0x112265(0xfd),{'content':[{'type':_0x112265(0xa5),'content':_0xd11ec1}],'args':_0x31163d});return{'getStream':async()=>{const _0x3058fa=_0x112265,_0x25ab4f=(await _0xa2b61d[_0x3058fa(0xfa)])[_0x3058fa(0xe5)];return this[_0x3058fa(0xd4)](_0x25ab4f);},'abortController':_0xa2b61d[_0x112265(0xeb)]};}[_0x524bb7(0xc9)]({content:_0xd9d4c6,prompt:_0x5f0d7b,model:_0x2182db}){const _0x44b3a7=_0x524bb7,_0x4fa05d=this[_0x44b3a7(0x126)](_0x44b3a7(0xe9),_0x44b3a7(0xfd),{'content':[{'type':_0x44b3a7(0xa5),'content':_0xd9d4c6}],'prompt':_0x5f0d7b,'model':_0x2182db});return{'getStream':async()=>{const _0x498d4f=_0x44b3a7,_0xe09b9b=(await _0x4fa05d[_0x498d4f(0xfa)])[_0x498d4f(0xe5)];return this[_0x498d4f(0xd4)](_0xe09b9b);},'abortController':_0x4fa05d[_0x44b3a7(0xeb)]};}[_0x524bb7(0xec)](_0x8fc410,_0x352839,_0x1cad08){const _0x15995f=_0x524bb7,_0x5650ec=this[_0x15995f(0x126)](_0x15995f(0xf5)+_0x8fc410+_0x15995f(0x105)+_0x352839+_0x15995f(0xca),_0x15995f(0x12b),{'positiveCount':_0x1cad08[_0x15995f(0x12e)],'totalCount':_0x1cad08[_0x15995f(0x12f)],'modificationId':_0x1cad08[_0x15995f(0xd5)]});return{'execute':async()=>{const _0x34c1b5=_0x15995f;await _0x5650ec[_0x34c1b5(0xfa)];},'abortController':_0x5650ec[_0x15995f(0xeb)]};}[_0x524bb7(0xc3)](_0x2ef57f,_0x215f18,_0x4b9c0a){const _0x44b9af=_0x524bb7,_0x5ce89a=this[_0x44b9af(0x126)](_0x44b9af(0xb8)+_0x2ef57f+_0x44b9af(0xc2)+_0x215f18+_0x44b9af(0xca),_0x44b9af(0x12b),{'positiveCount':_0x4b9c0a[_0x44b9af(0x12e)],'totalCount':_0x4b9c0a[_0x44b9af(0x12f)]});return{'execute':async()=>{const _0x38db0c=_0x44b9af;await _0x5ce89a[_0x38db0c(0xfa)];},'abortController':_0x5ce89a[_0x44b9af(0xeb)]};}[_0x524bb7(0xbd)](_0x50a39b,_0x197f4b){const _0x58e427=_0x524bb7,_0x934185=this[_0x58e427(0x126)](_0x58e427(0xb7)+_0x50a39b+_0x58e427(0xca),_0x58e427(0x12b),{'positiveCount':_0x197f4b[_0x58e427(0x12e)],'totalCount':_0x197f4b[_0x58e427(0x12f)]});return{'execute':async()=>{const _0xb58783=_0x58e427;await _0x934185[_0xb58783(0xfa)];},'abortController':_0x934185[_0x58e427(0xeb)]};}[_0x524bb7(0x9f)](_0x365899,_0xfae3b2,_0xe8baff,_0x29a4a3){const _0x2eab12=_0x524bb7,_0x43705b=this[_0x2eab12(0x126)](_0x2eab12(0xb1)+_0x365899+_0x2eab12(0xc2)+_0xfae3b2+_0x2eab12(0xca),_0x2eab12(0x12b),{'positiveCount':_0xe8baff[_0x2eab12(0x12e)],'totalCount':_0xe8baff[_0x2eab12(0x12f)],'dataId':_0x29a4a3});return{'execute':async()=>{const _0x164101=_0x2eab12;await _0x43705b[_0x164101(0xfa)];},'abortController':_0x43705b[_0x2eab12(0xeb)]};}[_0x524bb7(0x129)](_0x69dcd6,_0x501b2f,_0x20d04e){const _0x1499db=_0x524bb7,_0x1190b8=this[_0x1499db(0x126)](_0x1499db(0xbf)+_0x69dcd6+_0x1499db(0xca),_0x1499db(0x12b),{'positiveCount':_0x501b2f[_0x1499db(0x12e)],'totalCount':_0x501b2f[_0x1499db(0x12f)],'dataId':_0x20d04e});return{'execute':async()=>{const _0x11a2e2=_0x1499db;await _0x1190b8[_0x11a2e2(0xfa)];},'abortController':_0x1190b8[_0x1499db(0xeb)]};}[_0x524bb7(0x126)](_0x2b82a4,_0x419b45,_0x3f4626){const _0x4dc6e2=_0x524bb7,_0x4f48b3=new AbortController(),_0x472402=_0x3f4626 instanceof FormData,_0x5b0b11={'Authorization':_0x4dc6e2(0xd9)+this[_0x4dc6e2(0xc4)]?.[_0x4dc6e2(0x117)]};_0x3f4626&&!_0x472402&&(_0x5b0b11[_0x4dc6e2(0x114)]=_0x4dc6e2(0xcf));const _0x1e812d={'method':_0x419b45,'headers':_0x5b0b11,'signal':_0x4f48b3[_0x4dc6e2(0xa9)]};return _0x3f4626&&(_0x1e812d[_0x4dc6e2(0xe5)]=_0x472402?_0x3f4626:JSON[_0x4dc6e2(0xba)](_0x3f4626)),{'request':fetch(''+this[_0x4dc6e2(0x109)]+_0x2b82a4,_0x1e812d)[_0x4dc6e2(0xb2)](_0x3d2c2d=>{const _0x38a42b=_0x4dc6e2;this[_0x38a42b(0x112)](_0x3d2c2d);})[_0x4dc6e2(0x101)](_0x5887e6=>_0x5887e6['ok']?_0x5887e6:_0x5887e6[_0x4dc6e2(0xb0)]()[_0x4dc6e2(0x101)](_0x246fca=>{const _0x441836=_0x4dc6e2;throw{'url':this[_0x441836(0x109)],'path':_0x2b82a4,'method':_0x419b45,'body':_0x3f4626,'status':(_0x5887e6||{})[_0x441836(0x11f)],'statusText':(_0x5887e6||{})[_0x441836(0xa1)],'code':_0x246fca[_0x441836(0xbc)],'message':_0x246fca[_0x441836(0x12c)],'traceId':_0x246fca[_0x441836(0xd2)]};})),'abortController':_0x4f48b3};}async*[_0x524bb7(0xd4)](_0x2fc6e7){const _0x18592d=_0x524bb7,_0x2ba2e3=[],_0x42dcdf=_0x2fc6e7[_0x18592d(0xff)](),_0x119dfb=_0x8a3a82({'onError':_0xd7ed2d=>{const _0x3b0f6a=_0x18592d;this[_0x3b0f6a(0x112)](_0xd7ed2d);},'onEvent':_0x5968bc=>{const _0x1a059a=_0x18592d;_0x5968bc[_0x1a059a(0xdb)]=JSON[_0x1a059a(0xdf)](_0x5968bc[_0x1a059a(0xdb)]),_0x2ba2e3[_0x1a059a(0x10c)](_0x5968bc);}});try{let _0x217283=!0x1;for(;!_0x217283;){const {done:_0x221211,value:_0x7810e8}=await _0x42dcdf[_0x18592d(0x120)]();_0x221211&&(_0x217283=!0x0),_0x119dfb[_0x18592d(0x121)](this[_0x18592d(0xb5)][_0x18592d(0xa4)](_0x7810e8,{'stream':!0x0})),yield*_0x2ba2e3,_0x2ba2e3[_0x18592d(0xd1)]=0x0;}}catch(_0x3f593e){this[_0x18592d(0x112)](_0x3f593e);}finally{_0x42dcdf[_0x18592d(0xb3)](),_0x119dfb[_0x18592d(0xe6)]();}}[_0x524bb7(0x112)](_0x3744ea){const _0x10fb0c=_0x524bb7;if(_0x3744ea instanceof _0x4d61db)throw _0x3744ea;if(_0x3744ea instanceof Error&&_0x10fb0c(0x103)===_0x3744ea[_0x10fb0c(0xa2)])throw new _0x4d61db(_0x10fb0c(0x130),this,{'originalError':_0x3744ea});throw new _0x4d61db(_0x10fb0c(0xe2),this,{'originalError':_0x3744ea});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x29f28c=_0x5720;(function(_0x3a6a0d,_0x1a7ab1){const _0x46cdc2=_0x5720,_0x562f9d=_0x3a6a0d();while(!![]){try{const _0x34b761=parseInt(_0x46cdc2(0x219))/0x1+-parseInt(_0x46cdc2(0x1d1))/0x2+-parseInt(_0x46cdc2(0x22c))/0x3*(-parseInt(_0x46cdc2(0x1de))/0x4)+parseInt(_0x46cdc2(0x234))/0x5*(parseInt(_0x46cdc2(0x1ff))/0x6)+parseInt(_0x46cdc2(0x1fc))/0x7*(parseInt(_0x46cdc2(0x1cc))/0x8)+-parseInt(_0x46cdc2(0x22d))/0x9*(-parseInt(_0x46cdc2(0x1d0))/0xa)+-parseInt(_0x46cdc2(0x1c7))/0xb*(parseInt(_0x46cdc2(0x1d5))/0xc);if(_0x34b761===_0x1a7ab1)break;else _0x562f9d['push'](_0x562f9d['shift']());}catch(_0x214265){_0x562f9d['push'](_0x562f9d['shift']());}}}(_0x2d7e,0x77836));import{ViewDowncastWriter as _0x363d9f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x50d022,Editor as _0x30cc69}from'ckeditor5/src/core.js';import{uid as _0x196cd8}from'ckeditor5/src/utils.js';function _0x5720(_0x1f0a10,_0x3d3efe){const _0x2d7ea6=_0x2d7e();return _0x5720=function(_0x5720ce,_0x428e5d){_0x5720ce=_0x5720ce-0x1c5;let _0x12ca97=_0x2d7ea6[_0x5720ce];return _0x12ca97;},_0x5720(_0x1f0a10,_0x3d3efe);}function _0x2d7e(){const _0x5cc051=['_getDocumentDataStringFromView','4NjJCGo','toView','start','containerElement','getItems','isOfficialPlugin','data','editingDowncast','trim','getLastMatchingPosition','data-id','hideFakeVisualSelection','schema','selection','createRange','getStart','for','getHtml','_displayedFakeSelectionLocked','markerToElement','toData','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','removeMarker','_setDataIdsOnChildren',':start>','push','isAtEnd','isPremiumPlugin','domConverter','markers','119LLWALd','_integrateEditor','locale','193770FUNgoO','ai-selection:','isOpening','ai-selection','fromCharCode','define','removeAllRanges','random','config','createUIElement','markerToHighlight','_outputDataProcessor','$textProxy','processor','emptyElement','sessionId','pluginName','name','context','indexOf','view','getSelection','markerName','length','substring','viewToDom','615353XtEGKk','listenTo','conversion',':start></','afterInit','convertAiChatSelectionMarker','isBefore','getSelectionText','sort','AIEditing','ready','getRoot','_setOutputDataProcessor','getDocumentData','dataDowncast','_getMarkersInDocumentOrder','end','_sessionId','has','912387ZMyxzH','3015Lmjkod','ai.models.showModelSelector','setAttribute','plugins','addMarker','RealTimeCollaborationClient','editing','20ckWIcj','from','getChildren','editors','isContent','document','get','floor','htmlWriter','3568609QuxKii','getMarkersGroup','model','element','join','118424QEIrCv',':end>','ck-ai-assistant-ui_theme','modelToDataWithIds','2480sVzEXj','1138896YpkgYZ','_displayedFakeSelectionId','ck-fake-ai-selection','getRanges','12TBOrXM','change',':end></','showFakeVisualSelection','add','isAfter','version','_nextDataId'];_0x2d7e=function(){return _0x5cc051;};return _0x2d7e();}import{getTranslation as _0x357b17}from'./utils/common-translations.js';import{getEditorFromContext as _0x40762e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x29f28c(0x202);export class AIEditing extends _0x50d022{constructor(_0x332452){const _0x31ba91=_0x29f28c;super(_0x332452),this[_0x31ba91(0x211)][_0x31ba91(0x207)][_0x31ba91(0x204)](_0x31ba91(0x22e),!0x0);}[_0x29f28c(0x20a)];[_0x29f28c(0x1d2)]=null;[_0x29f28c(0x1f0)]=!0x1;[_0x29f28c(0x22a)];static get[_0x29f28c(0x20f)](){const _0x15ab3d=_0x29f28c;return _0x15ab3d(0x222);}static get[_0x29f28c(0x1e3)](){return!0x0;}static get[_0x29f28c(0x1f9)](){return!0x0;}get[_0x29f28c(0x20e)](){const _0x5947ef=_0x29f28c;if(!this[_0x5947ef(0x22a)]){const _0x4534d4=_0x40762e(this[_0x5947ef(0x211)]),_0x5021eb=_0x4534d4[_0x5947ef(0x230)][_0x5947ef(0x22b)](_0x5947ef(0x232))&&_0x4534d4[_0x5947ef(0x230)][_0x5947ef(0x23a)](_0x5947ef(0x232))[_0x5947ef(0x20e)];this[_0x5947ef(0x22a)]=_0x5021eb||_0x196cd8();}return this[_0x5947ef(0x22a)];}async[_0x29f28c(0x226)](){const _0x58d24c=_0x29f28c,_0x444cb1=_0x40762e(this[_0x58d24c(0x211)]),_0x4d938d=_0x444cb1[_0x58d24c(0x1c9)],_0x29cec5=_0x444cb1[_0x58d24c(0x1e4)][_0x58d24c(0x1df)](_0x4d938d[_0x58d24c(0x239)][_0x58d24c(0x224)](),{'convertAiChatSelectionMarker':!0x0}),_0x49db72=new _0x363d9f(_0x444cb1[_0x58d24c(0x233)][_0x58d24c(0x213)][_0x58d24c(0x239)]);this[_0x58d24c(0x1f5)](_0x29cec5,_0x49db72);let _0x114d4e=await this[_0x58d24c(0x1dd)](_0x29cec5);const _0x3b8a39=this[_0x58d24c(0x228)](),_0x202282=[];for(const _0x1ddfb9 of _0x3b8a39){const _0x404868='<'+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x21c)+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1f6),_0x2887ce=_0x114d4e[_0x58d24c(0x212)](_0x404868);_0x114d4e=_0x114d4e[_0x58d24c(0x217)](0x0,_0x2887ce)+_0x114d4e[_0x58d24c(0x217)](_0x2887ce+_0x404868[_0x58d24c(0x216)]);const _0x3e69b3='<'+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1d7)+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1cd),_0x200b3b=_0x114d4e[_0x58d24c(0x212)](_0x3e69b3);_0x114d4e=_0x114d4e[_0x58d24c(0x217)](0x0,_0x200b3b)+_0x114d4e[_0x58d24c(0x217)](_0x200b3b+_0x3e69b3[_0x58d24c(0x216)]),_0x202282[_0x58d24c(0x1f7)]({'markerName':_0x1ddfb9[_0x58d24c(0x210)],'start':_0x2887ce,'end':_0x200b3b,'htmlFragment':_0x114d4e[_0x58d24c(0x217)](_0x2887ce,_0x200b3b)});}return{'content':_0x114d4e,'version':_0x444cb1[_0x58d24c(0x1c9)][_0x58d24c(0x239)][_0x58d24c(0x1db)],'sessionId':this[_0x58d24c(0x20e)],'selections':_0x202282};}async[_0x29f28c(0x21d)](){const _0x2b7ba9=_0x29f28c;this[_0x2b7ba9(0x211)]instanceof _0x30cc69?this[_0x2b7ba9(0x1fd)](this[_0x2b7ba9(0x211)]):this[_0x2b7ba9(0x21a)](this[_0x2b7ba9(0x211)][_0x2b7ba9(0x237)],_0x2b7ba9(0x1d9),(_0x3eb76f,_0x239214)=>{const _0x370786=_0x2b7ba9;_0x239214['on'](_0x370786(0x223),()=>{const _0x18ef9d=_0x370786;this[_0x18ef9d(0x1fd)](_0x239214);});});}[_0x29f28c(0x225)](_0x22d87c){const _0x1b8789=_0x29f28c;this[_0x1b8789(0x20a)]=_0x22d87c;}async[_0x29f28c(0x1dd)](_0x5e8cd6){const _0x18338a=_0x29f28c;let _0x1049cc;const _0x1a4605=_0x40762e(this[_0x18338a(0x211)]);if(this[_0x18338a(0x20a)]){const _0x804f14=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1fa)][_0x18338a(0x218)](_0x5e8cd6),_0x5d094a=await this[_0x18338a(0x20a)](_0x804f14);_0x1049cc=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1c6)][_0x18338a(0x1ef)](_0x5d094a);}else _0x1049cc=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1f2)](_0x5e8cd6);return _0x1049cc;}[_0x29f28c(0x1fd)](_0x3c3536){const _0x1ea231=_0x29f28c;_0x3c3536[_0x1ea231(0x21b)][_0x1ea231(0x1ee)](_0x1ea231(0x1e5))[_0x1ea231(0x209)]({'model':_0x1ea231(0x202),'view':{'classes':[_0x1ea231(0x1d3),_0x1ea231(0x1ce)],'priority':0xc}}),_0x3c3536[_0x1ea231(0x21b)][_0x1ea231(0x1ee)](_0x1ea231(0x227))[_0x1ea231(0x1f1)]({'model':_0x1ea231(0x202),'view':(_0x5c8040,{writer:_0x24faa8,options:_0x23eff5})=>_0x23eff5[_0x1ea231(0x21e)]?_0x24faa8[_0x1ea231(0x208)](_0x5c8040[_0x1ea231(0x215)]+':'+(_0x5c8040[_0x1ea231(0x201)]?_0x1ea231(0x1e0):_0x1ea231(0x229))):null});}[_0x29f28c(0x1d8)](_0x4e2a05,_0x1ffc31,_0x267cce=!0x1,_0x43707a=!0x1){const _0x3255bb=_0x29f28c;if(this[_0x3255bb(0x1f0)]&&!_0x43707a)return!0x1;const _0x4ce4b9=_0x40762e(this[_0x3255bb(0x211)])[_0x3255bb(0x1c9)];return _0x4ce4b9[_0x3255bb(0x1d6)](_0x177a26=>{const _0x4d5286=_0x3255bb;this[_0x4d5286(0x1d2)]&&this[_0x4d5286(0x1e9)](this[_0x4d5286(0x1d2)]),this[_0x4d5286(0x1d2)]=_0x1ffc31,this[_0x4d5286(0x1f0)]=_0x267cce;let _0x2207c8=0x0;for(let _0x3eb606 of _0x4e2a05){const _0x527f9f=_0x4d5286(0x200)+_0x2207c8;if(_0x3eb606[_0x4d5286(0x1e0)][_0x4d5286(0x1f8)]){const _0x385af4=_0x3eb606[_0x4d5286(0x1e0)][_0x4d5286(0x1e7)](({item:_0x3ef912})=>!_0x4ce4b9[_0x4d5286(0x1ea)][_0x4d5286(0x238)](_0x3ef912),{'boundaries':_0x3eb606});_0x3eb606=_0x177a26[_0x4d5286(0x1ec)](_0x385af4,_0x3eb606[_0x4d5286(0x229)]);}_0x177a26[_0x4d5286(0x231)](_0x527f9f,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3eb606}),_0x2207c8++;}}),window[_0x3255bb(0x214)]()?.[_0x3255bb(0x205)](),!0x0;}[_0x29f28c(0x1e9)](_0x5a39c2){const _0x2281d0=_0x29f28c;if(this[_0x2281d0(0x1d2)]!=_0x5a39c2)return!0x1;this[_0x2281d0(0x1d2)]=null,this[_0x2281d0(0x1f0)]=!0x1;const _0x403391=_0x40762e(this[_0x2281d0(0x211)]),_0x6c4757=_0x403391[_0x2281d0(0x1c9)][_0x2281d0(0x1fb)][_0x2281d0(0x1c8)](_0x2281d0(0x202));return _0x403391[_0x2281d0(0x1c9)][_0x2281d0(0x1d6)](_0x29946d=>{const _0x26d053=_0x2281d0;for(const _0x4d6bd8 of _0x6c4757)_0x29946d[_0x26d053(0x1f4)](_0x4d6bd8);}),!0x0;}async[_0x29f28c(0x1cf)](_0x3b1c4d){const _0x218dad=_0x29f28c,_0x2fafe1=_0x40762e(this[_0x218dad(0x211)]),_0x211d56=_0x2fafe1[_0x218dad(0x1e4)][_0x218dad(0x1df)](_0x3b1c4d),_0x1b0d83=new _0x363d9f(_0x2fafe1[_0x218dad(0x233)][_0x218dad(0x213)][_0x218dad(0x239)]);return this[_0x218dad(0x1f5)](_0x211d56,_0x1b0d83),this[_0x218dad(0x1dd)](_0x211d56);}[_0x29f28c(0x1f5)](_0x199268,_0x418a97){const _0x34468b=_0x29f28c;let _0x383c8e=!0x1;const _0x2649bf=new Set();for(const _0x74b864 of _0x199268[_0x34468b(0x236)]()){const _0xc615ee=_0x74b864['is'](_0x34468b(0x20d))||_0x74b864['is'](_0x34468b(0x1e1));if(!_0x74b864['is'](_0x34468b(0x1ca)))continue;(this[_0x34468b(0x1f5)](_0x74b864,_0x418a97)||_0xc615ee)&&(_0x418a97[_0x34468b(0x22f)](_0x34468b(0x1e8),this[_0x34468b(0x1dc)](_0x2649bf),_0x74b864),_0x383c8e=!0x0);}return _0x383c8e;}[_0x29f28c(0x1dc)](_0x5123a1){const _0xb5dd40=_0x29f28c;let _0x2631a1;do{_0x2631a1='';for(let _0x2eebcd=0x0;_0x2eebcd<0x4;_0x2eebcd++)_0x2631a1+=String[_0xb5dd40(0x203)](0x61+Math[_0xb5dd40(0x1c5)](0x1a*Math[_0xb5dd40(0x206)]()));}while(_0x5123a1[_0xb5dd40(0x22b)](_0x2631a1));return _0x5123a1[_0xb5dd40(0x1d9)](_0x2631a1),_0x2631a1;}[_0x29f28c(0x220)](){const _0x41fab6=_0x29f28c,{model:_0x1b7367}=_0x40762e(this[_0x41fab6(0x211)]),_0x32fef3=_0x1b7367[_0x41fab6(0x239)][_0x41fab6(0x1eb)],_0x5ba2cb=[];for(const _0x28f66b of _0x32fef3[_0x41fab6(0x1d4)]())for(const _0x22ee20 of _0x28f66b[_0x41fab6(0x1e2)]())_0x22ee20['is'](_0x41fab6(0x20b))?_0x5ba2cb[_0x41fab6(0x1f7)](_0x22ee20[_0x41fab6(0x1e4)]):_0x22ee20['is'](_0x41fab6(0x1ca))&&_0x5ba2cb[_0x41fab6(0x216)]>0x0&&'\x20'!==_0x5ba2cb[_0x5ba2cb[_0x41fab6(0x216)]-0x1]&&_0x5ba2cb[_0x41fab6(0x1f7)]('\x20');return _0x5ba2cb[_0x41fab6(0x216)]?'\x22'+_0x5ba2cb[_0x41fab6(0x1cb)]('')[_0x41fab6(0x1e6)]()+'\x22':_0x357b17(this[_0x41fab6(0x211)][_0x41fab6(0x1fe)],_0x41fab6(0x1f3));}[_0x29f28c(0x228)](){const _0x366579=_0x29f28c,_0x5d6286=_0x40762e(this[_0x366579(0x211)])[_0x366579(0x1c9)];return Array[_0x366579(0x235)](_0x5d6286[_0x366579(0x1fb)][_0x366579(0x1c8)](_0x366579(0x202)))[_0x366579(0x221)]((_0x180578,_0x2e072c)=>_0x180578[_0x366579(0x1ed)]()[_0x366579(0x21f)](_0x2e072c[_0x366579(0x1ed)]())?-0x1:_0x180578[_0x366579(0x1ed)]()[_0x366579(0x1da)](_0x2e072c[_0x366579(0x1ed)]())?0x1:0x0);}}
|
|
23
|
+
const _0x1ffd0a=_0x9e8c;function _0x9e8c(_0x52a5f9,_0x1ba6eb){const _0x3b6efc=_0x3b6e();return _0x9e8c=function(_0x9e8cff,_0x56a2ad){_0x9e8cff=_0x9e8cff-0xe6;let _0x1a04cb=_0x3b6efc[_0x9e8cff];return _0x1a04cb;},_0x9e8c(_0x52a5f9,_0x1ba6eb);}(function(_0x1bf4c3,_0x5bf10c){const _0x3c54b3=_0x9e8c,_0x15dc41=_0x1bf4c3();while(!![]){try{const _0x4cc10d=parseInt(_0x3c54b3(0x104))/0x1+parseInt(_0x3c54b3(0xf9))/0x2+-parseInt(_0x3c54b3(0xf7))/0x3*(-parseInt(_0x3c54b3(0x13a))/0x4)+-parseInt(_0x3c54b3(0xed))/0x5+-parseInt(_0x3c54b3(0x10c))/0x6+parseInt(_0x3c54b3(0x120))/0x7*(parseInt(_0x3c54b3(0x115))/0x8)+-parseInt(_0x3c54b3(0x10b))/0x9;if(_0x4cc10d===_0x5bf10c)break;else _0x15dc41['push'](_0x15dc41['shift']());}catch(_0x24f81c){_0x15dc41['push'](_0x15dc41['shift']());}}}(_0x3b6e,0xc9a83));function _0x3b6e(){const _0x227c5c=['selection','getDocumentData','markerName','trim','22548429xlGlXe','2209128PPluxr','RealTimeCollaborationClient','getMarkersGroup','length','start','conversion','document','floor','removeAllRanges','8BsgIUk','domConverter','getLastMatchingPosition','from','plugins','isAfter','element','editors','version','_setDataIdsOnChildren','end','6444753pYKFAJ','_getDocumentDataStringFromView','containerElement','get','ready','toData','_getMarkersInDocumentOrder','htmlWriter','getSelection','substring','has','define','editing','_sessionId','sessionId','getStart','getRanges','view','markers','emptyElement','name','removeMarker','isOfficialPlugin','hideFakeVisualSelection','indexOf','fromCharCode','264TASSrc','isBefore','random','join','data','toView',':end>','change','_integrateEditor','ai.models.showModelSelector','add','locale','showFakeVisualSelection','ck-fake-ai-selection','for',':end></','_displayedFakeSelectionId','_setOutputDataProcessor','isOpening','editingDowncast','createUIElement','schema','_displayedFakeSelectionLocked','data-id','createRange','markerToHighlight','modelToDataWithIds','pluginName','addMarker','$textProxy',':start></','getHtml','push','config','dataDowncast','model','processor','setAttribute','906030mIuXCC','isAtEnd','markerToElement','listenTo','isPremiumPlugin','_outputDataProcessor',':start>','isContent','ai-selection','AIEditing','46245eEKksL','getRoot','2953518DOZBxu','getItems','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','ai-selection:','viewToDom','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','afterInit','_nextDataId','sort','getSelectionText','465934vsSldu','context','getChildren'];_0x3b6e=function(){return _0x227c5c;};return _0x3b6e();}import{ViewDowncastWriter as _0x5df79e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2f98a3,Editor as _0x4087ef}from'ckeditor5/src/core.js';import{uid as _0x1f453e}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c8e30}from'./utils/common-translations.js';import{getEditorFromContext as _0x410050}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1ffd0a(0xf5);export class AIEditing extends _0x2f98a3{constructor(_0x2a44a6){const _0x16c576=_0x1ffd0a;super(_0x2a44a6),this[_0x16c576(0x105)][_0x16c576(0xe8)][_0x16c576(0x12b)](_0x16c576(0x143),!0x0);}[_0x1ffd0a(0xf2)];[_0x1ffd0a(0x14a)]=null;[_0x1ffd0a(0x150)]=!0x1;[_0x1ffd0a(0x12d)];static get[_0x1ffd0a(0x155)](){const _0x3eb368=_0x1ffd0a;return _0x3eb368(0xf6);}static get[_0x1ffd0a(0x136)](){return!0x0;}static get[_0x1ffd0a(0xf1)](){return!0x0;}get[_0x1ffd0a(0x12e)](){const _0x250d1d=_0x1ffd0a;if(!this[_0x250d1d(0x12d)]){const _0x6ee90f=_0x410050(this[_0x250d1d(0x105)]),_0x508bfd=_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x12a)](_0x250d1d(0x10d))&&_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x123)](_0x250d1d(0x10d))[_0x250d1d(0x12e)];this[_0x250d1d(0x12d)]=_0x508bfd||_0x1f453e();}return this[_0x250d1d(0x12d)];}async[_0x1ffd0a(0x108)](){const _0x2122c5=_0x1ffd0a,_0x55a065=_0x410050(this[_0x2122c5(0x105)]),_0x1260c4=_0x55a065[_0x2122c5(0xea)],_0x35c8cb=_0x55a065[_0x2122c5(0x13e)][_0x2122c5(0x13f)](_0x1260c4[_0x2122c5(0x112)][_0x2122c5(0xf8)](),{'convertAiChatSelectionMarker':!0x0}),_0x2a2a16=new _0x5df79e(_0x55a065[_0x2122c5(0x12c)][_0x2122c5(0x131)][_0x2122c5(0x112)]);this[_0x2122c5(0x11e)](_0x35c8cb,_0x2a2a16);let _0x4517c5=await this[_0x2122c5(0x121)](_0x35c8cb);const _0x572be8=this[_0x2122c5(0x126)](),_0x1ce52e=[];for(const _0x13cf6e of _0x572be8){const _0x84d9af='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x158)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0xf3),_0x36b7fb=_0x4517c5[_0x2122c5(0x138)](_0x84d9af);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x36b7fb)+_0x4517c5[_0x2122c5(0x129)](_0x36b7fb+_0x84d9af[_0x2122c5(0x10f)]);const _0xb1ae31='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x149)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x140),_0x7e4f59=_0x4517c5[_0x2122c5(0x138)](_0xb1ae31);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x7e4f59)+_0x4517c5[_0x2122c5(0x129)](_0x7e4f59+_0xb1ae31[_0x2122c5(0x10f)]),_0x1ce52e[_0x2122c5(0xe7)]({'markerName':_0x13cf6e[_0x2122c5(0x134)],'start':_0x36b7fb,'end':_0x7e4f59,'htmlFragment':_0x4517c5[_0x2122c5(0x129)](_0x36b7fb,_0x7e4f59)});}return{'content':_0x4517c5,'version':_0x55a065[_0x2122c5(0xea)][_0x2122c5(0x112)][_0x2122c5(0x11d)],'sessionId':this[_0x2122c5(0x12e)],'selections':_0x1ce52e};}async[_0x1ffd0a(0x100)](){const _0xbb554c=_0x1ffd0a;this[_0xbb554c(0x105)]instanceof _0x4087ef?this[_0xbb554c(0x142)](this[_0xbb554c(0x105)]):this[_0xbb554c(0xf0)](this[_0xbb554c(0x105)][_0xbb554c(0x11c)],_0xbb554c(0x144),(_0x1df93c,_0x19dfdd)=>{const _0x1bc2a6=_0xbb554c;_0x19dfdd['on'](_0x1bc2a6(0x124),()=>{const _0x4d8bed=_0x1bc2a6;this[_0x4d8bed(0x142)](_0x19dfdd);});});}[_0x1ffd0a(0x14b)](_0x8cc3b5){const _0x10b0c0=_0x1ffd0a;this[_0x10b0c0(0xf2)]=_0x8cc3b5;}async[_0x1ffd0a(0x121)](_0x499824){const _0x3727e7=_0x1ffd0a;let _0x6898c1;const _0x36d522=_0x410050(this[_0x3727e7(0x105)]);if(this[_0x3727e7(0xf2)]){const _0x5b4893=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x116)][_0x3727e7(0xfd)](_0x499824),_0x304542=await this[_0x3727e7(0xf2)](_0x5b4893);_0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x127)][_0x3727e7(0xe6)](_0x304542);}else _0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x125)](_0x499824);return _0x6898c1;}[_0x1ffd0a(0x142)](_0x2f1b08){const _0x46c3d1=_0x1ffd0a;_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0x14d))[_0x46c3d1(0x153)]({'model':_0x46c3d1(0xf5),'view':{'classes':[_0x46c3d1(0x147),_0x46c3d1(0xfe)],'priority':0xc}}),_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0xe9))[_0x46c3d1(0xef)]({'model':_0x46c3d1(0xf5),'view':(_0x68cd30,{writer:_0x5cd266,options:_0x25f685})=>_0x25f685[_0x46c3d1(0xff)]?_0x5cd266[_0x46c3d1(0x14e)](_0x68cd30[_0x46c3d1(0x109)]+':'+(_0x68cd30[_0x46c3d1(0x14c)]?_0x46c3d1(0x110):_0x46c3d1(0x11f))):null});}[_0x1ffd0a(0x146)](_0x34fd4b,_0x6ea798,_0x4b9076=!0x1,_0xe11b5c=!0x1){const _0x400505=_0x1ffd0a;if(this[_0x400505(0x150)]&&!_0xe11b5c)return!0x1;const _0x196ded=_0x410050(this[_0x400505(0x105)])[_0x400505(0xea)];return _0x196ded[_0x400505(0x141)](_0x338162=>{const _0x234a13=_0x400505;this[_0x234a13(0x14a)]&&this[_0x234a13(0x137)](this[_0x234a13(0x14a)]),this[_0x234a13(0x14a)]=_0x6ea798,this[_0x234a13(0x150)]=_0x4b9076;let _0x1621ec=0x0;for(let _0x3f0ecb of _0x34fd4b){const _0x15dd2e=_0x234a13(0xfc)+_0x1621ec;if(_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0xee)]){const _0x1ea3a8=_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0x117)](({item:_0x43aa05})=>!_0x196ded[_0x234a13(0x14f)][_0x234a13(0xf4)](_0x43aa05),{'boundaries':_0x3f0ecb});_0x3f0ecb=_0x338162[_0x234a13(0x152)](_0x1ea3a8,_0x3f0ecb[_0x234a13(0x11f)]);}_0x338162[_0x234a13(0x156)](_0x15dd2e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3f0ecb}),_0x1621ec++;}}),window[_0x400505(0x128)]()?.[_0x400505(0x114)](),!0x0;}[_0x1ffd0a(0x137)](_0x56fdeb){const _0x4e8a87=_0x1ffd0a;if(this[_0x4e8a87(0x14a)]!=_0x56fdeb)return!0x1;this[_0x4e8a87(0x14a)]=null,this[_0x4e8a87(0x150)]=!0x1;const _0x4bd5ba=_0x410050(this[_0x4e8a87(0x105)]),_0x2cb1e7=_0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x132)][_0x4e8a87(0x10e)](_0x4e8a87(0xf5));return _0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x141)](_0x39d32c=>{const _0x543a69=_0x4e8a87;for(const _0x4a9b88 of _0x2cb1e7)_0x39d32c[_0x543a69(0x135)](_0x4a9b88);}),!0x0;}async[_0x1ffd0a(0x154)](_0x1a7a1b){const _0x1d5f73=_0x1ffd0a,_0x5f1cad=_0x410050(this[_0x1d5f73(0x105)]),_0x5ba8e4=_0x5f1cad[_0x1d5f73(0x13e)][_0x1d5f73(0x13f)](_0x1a7a1b),_0x24fae3=new _0x5df79e(_0x5f1cad[_0x1d5f73(0x12c)][_0x1d5f73(0x131)][_0x1d5f73(0x112)]);return this[_0x1d5f73(0x11e)](_0x5ba8e4,_0x24fae3),this[_0x1d5f73(0x121)](_0x5ba8e4);}[_0x1ffd0a(0x11e)](_0x5ccba9,_0x1c2c10){const _0x56d811=_0x1ffd0a;let _0x10c8db=!0x1;const _0x35627e=new Set();for(const _0x25ee1d of _0x5ccba9[_0x56d811(0x106)]()){const _0x11e7d4=_0x25ee1d['is'](_0x56d811(0x133))||_0x25ee1d['is'](_0x56d811(0x122));if(!_0x25ee1d['is'](_0x56d811(0x11b)))continue;(this[_0x56d811(0x11e)](_0x25ee1d,_0x1c2c10)||_0x11e7d4)&&(_0x1c2c10[_0x56d811(0xec)](_0x56d811(0x151),this[_0x56d811(0x101)](_0x35627e),_0x25ee1d),_0x10c8db=!0x0);}return _0x10c8db;}[_0x1ffd0a(0x101)](_0x1ee75a){const _0x2b33be=_0x1ffd0a;let _0x356f49;do{_0x356f49='';for(let _0x48d54a=0x0;_0x48d54a<0x4;_0x48d54a++)_0x356f49+=String[_0x2b33be(0x139)](0x61+Math[_0x2b33be(0x113)](0x1a*Math[_0x2b33be(0x13c)]()));}while(_0x1ee75a[_0x2b33be(0x12a)](_0x356f49));return _0x1ee75a[_0x2b33be(0x144)](_0x356f49),_0x356f49;}[_0x1ffd0a(0x103)](){const _0x496227=_0x1ffd0a,{model:_0x2ee9ef}=_0x410050(this[_0x496227(0x105)]),_0x55bcc0=_0x2ee9ef[_0x496227(0x112)][_0x496227(0x107)],_0x45f31f=[];for(const _0x3a1278 of _0x55bcc0[_0x496227(0x130)]())for(const _0x8dd2b6 of _0x3a1278[_0x496227(0xfa)]())_0x8dd2b6['is'](_0x496227(0x157))?_0x45f31f[_0x496227(0xe7)](_0x8dd2b6[_0x496227(0x13e)]):_0x8dd2b6['is'](_0x496227(0x11b))&&_0x45f31f[_0x496227(0x10f)]>0x0&&'\x20'!==_0x45f31f[_0x45f31f[_0x496227(0x10f)]-0x1]&&_0x45f31f[_0x496227(0xe7)]('\x20');return _0x45f31f[_0x496227(0x10f)]?'\x22'+_0x45f31f[_0x496227(0x13d)]('')[_0x496227(0x10a)]()+'\x22':_0x1c8e30(this[_0x496227(0x105)][_0x496227(0x145)],_0x496227(0xfb));}[_0x1ffd0a(0x126)](){const _0x5ada23=_0x1ffd0a,_0x904dd2=_0x410050(this[_0x5ada23(0x105)])[_0x5ada23(0xea)];return Array[_0x5ada23(0x118)](_0x904dd2[_0x5ada23(0x132)][_0x5ada23(0x10e)](_0x5ada23(0xf5)))[_0x5ada23(0x102)]((_0x1f2a39,_0x37d203)=>_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x13b)](_0x37d203[_0x5ada23(0x12f)]())?-0x1:_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x11a)](_0x37d203[_0x5ada23(0x12f)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x45aa(){const _0x177341=['getCapabilitiesRequestData','toggleReasoning','1495FFprdt','reset','setReasoning','reasoning','_isReasoningEnabled','7BzJghI','8478936HKWRUM','12354OvGneD','isReasoningEnabled','306604HmgbQN','fire','11weuIPA','toggleWebSearch','getCapabilitiesConfig','21tfruAC','_isWebSearchEnabled','capabilitiesUpdated','3060mJFfZi','isWebSearchEnabled','init','95914cQasAo','setWebSearch','6653770yCAMYn','webSearch','2JaqGls','3894426PduNxi','335913JkQJKL'];_0x45aa=function(){return _0x177341;};return _0x45aa();}const _0x3f0e71=_0x2459;(function(_0x594285,_0x45ff40){const _0x198f7b=_0x2459,_0x55e099=_0x594285();while(!![]){try{const _0x140bfa=-parseInt(_0x198f7b(0x128))/0x1*(-parseInt(_0x198f7b(0x126))/0x2)+-parseInt(_0x198f7b(0x11c))/0x3*(-parseInt(_0x198f7b(0x117))/0x4)+-parseInt(_0x198f7b(0x10e))/0x5*(parseInt(_0x198f7b(0x115))/0x6)+parseInt(_0x198f7b(0x113))/0x7*(parseInt(_0x198f7b(0x114))/0x8)+parseInt(_0x198f7b(0x127))/0x9+-parseInt(_0x198f7b(0x124))/0xa*(-parseInt(_0x198f7b(0x119))/0xb)+-parseInt(_0x198f7b(0x11f))/0xc*(parseInt(_0x198f7b(0x122))/0xd);if(_0x140bfa===_0x45ff40)break;else _0x55e099['push'](_0x55e099['shift']());}catch(_0x290444){_0x55e099['push'](_0x55e099['shift']());}}}(_0x45aa,0x82395));import{EmitterMixin as _0x1e2986}from'ckeditor5/src/utils.js';function _0x2459(_0x190df7,_0x5dbc14){const _0x45aa5f=_0x45aa();return _0x2459=function(_0x2459b0,_0x2ba6e3){_0x2459b0=_0x2459b0-0x10e;let _0xf6c82b=_0x45aa5f[_0x2459b0];return _0xf6c82b;},_0x2459(_0x190df7,_0x5dbc14);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3f0e71(0x11e)];export class AICapabilities extends _0x1e2986(){[_0x3f0e71(0x11d)];[_0x3f0e71(0x112)];constructor(){const _0x259fd5=_0x3f0e71;super(),this[_0x259fd5(0x11d)]=!0x1,this[_0x259fd5(0x112)]=!0x1;}[_0x3f0e71(0x121)](){const _0x3cdf89=_0x3f0e71;this[_0x3cdf89(0x10f)]();}[_0x3f0e71(0x10f)](){const _0x5d1fbd=_0x3f0e71;this[_0x5d1fbd(0x123)](!0x1),this[_0x5d1fbd(0x110)](!0x1);}[_0x3f0e71(0x11b)](){const _0x282a69=_0x3f0e71;return{'isWebSearchEnabled':this[_0x282a69(0x11d)],'isReasoningEnabled':this[_0x282a69(0x112)]};}static[_0x3f0e71(0x129)](_0x71793){const _0x32a9d2=_0x3f0e71,_0x49b5c7={};return _0x71793&&_0x71793[_0x32a9d2(0x120)]&&(_0x49b5c7[_0x32a9d2(0x125)]={}),_0x71793&&_0x71793[_0x32a9d2(0x116)]&&(_0x49b5c7[_0x32a9d2(0x111)]={}),_0x49b5c7;}[_0x3f0e71(0x11a)](){const _0x3e5e38=_0x3f0e71;this[_0x3e5e38(0x123)](!this[_0x3e5e38(0x11d)]);}[_0x3f0e71(0x12a)](){const _0x38b250=_0x3f0e71;this[_0x38b250(0x110)](!this[_0x38b250(0x112)]);}[_0x3f0e71(0x123)](_0x2cb9e8){const _0xbaae77=_0x3f0e71;_0x2cb9e8!==this[_0xbaae77(0x11d)]&&(this[_0xbaae77(0x11d)]=_0x2cb9e8,this[_0xbaae77(0x118)](_0xbaae77(0x11e),this[_0xbaae77(0x11b)]()));}[_0x3f0e71(0x110)](_0x3ef707){const _0x20663e=_0x3f0e71;_0x3ef707!==this[_0x20663e(0x112)]&&(this[_0x20663e(0x112)]=_0x3ef707,this[_0x20663e(0x118)](_0x20663e(0x11e),this[_0x20663e(0x11b)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xea14(_0x43adaf,_0x2ef1e2){var _0x2dde38=_0x2dde();return _0xea14=function(_0xea14f5,_0x5e83bb){_0xea14f5=_0xea14f5-0x169;var _0x1e7e71=_0x2dde38[_0xea14f5];return _0x1e7e71;},_0xea14(_0x43adaf,_0x2ef1e2);}function _0x2dde(){var _0x1754af=['3073448AJURbT','TEXT','HTML','URL','selection','71960vKxgps','693732jWOVYS','SELECTION','DOCUMENT','file','document','web-resource','markdown','7kdGmiu','134490aVpFPQ','767145GGpxTA','mcp-tool-context','TOOL','text','FILE','MARKDOWN','html','20622ccfCHe','450300MTTJmv'];_0x2dde=function(){return _0x1754af;};return _0x2dde();}(function(_0x47716b,_0x221c34){var _0x37c443=_0xea14,_0x7312d7=_0x47716b();while(!![]){try{var _0x5281d6=parseInt(_0x37c443(0x17d))/0x1*(parseInt(_0x37c443(0x16e))/0x2)+parseInt(_0x37c443(0x17e))/0x3+parseInt(_0x37c443(0x16f))/0x4+parseInt(_0x37c443(0x17f))/0x5+parseInt(_0x37c443(0x176))/0x6+-parseInt(_0x37c443(0x175))/0x7+-parseInt(_0x37c443(0x170))/0x8;if(_0x5281d6===_0x221c34)break;else _0x7312d7['push'](_0x7312d7['shift']());}catch(_0x15a254){_0x7312d7['push'](_0x7312d7['shift']());}}}(_0x2dde,0x196ec));export var AIContextItemType;!function(_0x48a6cb){var _0x2cada5=_0xea14;_0x48a6cb[_0x2cada5(0x169)]=_0x2cada5(0x180),_0x48a6cb[_0x2cada5(0x16b)]=_0x2cada5(0x179),_0x48a6cb[_0x2cada5(0x178)]=_0x2cada5(0x17a),_0x48a6cb[_0x2cada5(0x173)]=_0x2cada5(0x17b),_0x48a6cb[_0x2cada5(0x171)]=_0x2cada5(0x16a),_0x48a6cb[_0x2cada5(0x177)]=_0x2cada5(0x174);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x341859){var _0x34f9a8=_0xea14;_0x341859[_0x34f9a8(0x171)]=_0x34f9a8(0x16a),_0x341859[_0x34f9a8(0x16c)]=_0x34f9a8(0x17c),_0x341859[_0x34f9a8(0x172)]=_0x34f9a8(0x16d);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d04bc=_0x3cf1;function _0x3cf1(_0x85ffb6,_0x1227dd){const _0x4b36e7=_0x4b36();return _0x3cf1=function(_0x3cf1e0,_0x4aed37){_0x3cf1e0=_0x3cf1e0-0x172;let _0x5b6d5e=_0x4b36e7[_0x3cf1e0];return _0x5b6d5e;},_0x3cf1(_0x85ffb6,_0x1227dd);}(function(_0x2486ae,_0x551b1f){const _0x465393=_0x3cf1,_0x180d61=_0x2486ae();while(!![]){try{const _0x5465de=-parseInt(_0x465393(0x1ab))/0x1+parseInt(_0x465393(0x197))/0x2*(-parseInt(_0x465393(0x1b1))/0x3)+-parseInt(_0x465393(0x1a9))/0x4+-parseInt(_0x465393(0x1b8))/0x5+-parseInt(_0x465393(0x189))/0x6*(-parseInt(_0x465393(0x18a))/0x7)+-parseInt(_0x465393(0x1b6))/0x8*(parseInt(_0x465393(0x19a))/0x9)+parseInt(_0x465393(0x179))/0xa;if(_0x5465de===_0x551b1f)break;else _0x180d61['push'](_0x180d61['shift']());}catch(_0x516223){_0x180d61['push'](_0x180d61['shift']());}}}(_0x4b36,0x9a95a));import{CKEditorError as _0x4eedfb,EmitterMixin as _0x3c94d9,uid as _0x2edeb7}from'ckeditor5/src/utils.js';import{AIReply as _0x2680f0}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4d04bc(0x1a6),_0x4d04bc(0x1a7),_0x4d04bc(0x182),_0x4d04bc(0x17e),_0x4d04bc(0x177),_0x4d04bc(0x18c),_0x4d04bc(0x183),_0x4d04bc(0x1c5),_0x4d04bc(0x192),_0x4d04bc(0x18d),_0x4d04bc(0x175),_0x4d04bc(0x1c2),_0x4d04bc(0x185),_0x4d04bc(0x1c6),_0x4d04bc(0x17d)];function _0x4b36(){const _0x3c5abb=['3408640EIoRDZ','_finalizeInteraction','1224799fUkdeX','getStream','modification-delta','length','stop','sendRequest','1448358OikLqM','web-search','_handleToolNotificationData','messageId','getReply','162008xgWIFT','getDocumentContext','5185700qDONIu','message-metadata','delegate','currentRequest','splice','toolName','event','abortController','replies','editor','reasoningStarted','destroy','isStopped','replyChangeGroupStateUpdated','toolDataReceived','text-delta','modification','result','notification','callId','webSearchFinished','connector','interactionDestroyed','resetWebSearchState','36221380nPYpBH','ai-chat-interaction-error','conversationTitle','source','error','interactionFinished','forEach','text','content','interactionStopped','replyContentUpdated','done','reasoningFinished','_handleToolResultData','isDestroyed','stopListening','12GNSnXR','2623887LZbNhq','action-metadata','replyCreated','webSearchStarted','createReply','data','appendContent','mcp-tool-notification','setConversationTitle','fire','_isWebSearching','type','attributes','2KdRogV','resetReasoningState','conversation-title','63qkFsMn','mcp-tool-result','find','start','sources','push','parse','textDelta','currentReply','actionCallId','abort','_isReasoning','interactionCreated','interactionStarted','reasoning'];_0x4b36=function(){return _0x3c5abb;};return _0x4b36();}export class AIInteraction extends _0x3c94d9(){['id'];[_0x4d04bc(0x1c0)]=[];[_0x4d04bc(0x1a2)];[_0x4d04bc(0x1b4)];[_0x4d04bc(0x1a3)];[_0x4d04bc(0x1bb)];[_0x4d04bc(0x176)];[_0x4d04bc(0x1c4)]=!0x1;[_0x4d04bc(0x187)]=!0x1;[_0x4d04bc(0x1c1)];[_0x4d04bc(0x1a5)]=!0x1;[_0x4d04bc(0x194)]=!0x1;constructor({connector:_0x3b9996,editor:_0x879e3a}){const _0x2d5be6=_0x4d04bc;super(),this['id']=_0x2edeb7(),this[_0x2d5be6(0x176)]=_0x3b9996,this[_0x2d5be6(0x1c4)]=!0x0,this[_0x2d5be6(0x1c1)]=_0x879e3a;}async[_0x4d04bc(0x19d)](){const _0x26ecad=_0x4d04bc,_0x564461=[];let _0x99a2c2,_0x23a8ee,_0x2d9fda;this[_0x26ecad(0x1c4)]=!0x1;try{this[_0x26ecad(0x1bb)]=await this[_0x26ecad(0x1b0)](),this[_0x26ecad(0x193)](_0x26ecad(0x1a7),this);const _0x34148f=await this[_0x26ecad(0x1bb)][_0x26ecad(0x1ac)]();for await(const _0x150ae4 of _0x34148f){if(this[_0x26ecad(0x1c4)])return;if(_0x26ecad(0x17d)==_0x150ae4[_0x26ecad(0x1be)])return void this[_0x26ecad(0x193)](_0x26ecad(0x17d),{'error':new _0x4eedfb(_0x26ecad(0x17a),this)});switch(_0x150ae4[_0x26ecad(0x1be)]){case _0x26ecad(0x1b9):this[_0x26ecad(0x1b4)]=_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1b4)];break;case _0x26ecad(0x18b):this[_0x26ecad(0x1a3)]=_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x174)];break;case _0x26ecad(0x199):this[_0x26ecad(0x192)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x17b)],!0x0);break;case _0x26ecad(0x17c):_0x564461[_0x26ecad(0x19f)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x17c)]);break;case _0x26ecad(0x1b2):this[_0x26ecad(0x194)]||(this[_0x26ecad(0x194)]=!0x0,this[_0x26ecad(0x193)](_0x26ecad(0x18d),this));break;case _0x26ecad(0x1a8):this[_0x26ecad(0x1a5)]||(this[_0x26ecad(0x1a5)]=!0x0,this[_0x26ecad(0x193)](_0x26ecad(0x1c2),this));break;case _0x26ecad(0x1ad):case _0x26ecad(0x1c7):this[_0x26ecad(0x198)](),this[_0x26ecad(0x178)](),_0x99a2c2=_0x26ecad(0x1ad)==_0x150ae4[_0x26ecad(0x1be)]?_0x26ecad(0x1c8):_0x26ecad(0x180),_0x23a8ee=_0x26ecad(0x1ad)==_0x150ae4[_0x26ecad(0x1be)]?_0x150ae4[_0x26ecad(0x18f)]['id']:void 0x0,this[_0x26ecad(0x1a2)]&&this[_0x26ecad(0x1a2)][_0x26ecad(0x195)]!=_0x99a2c2&&(this[_0x26ecad(0x1a2)][_0x26ecad(0x184)](),this[_0x26ecad(0x1a2)]=void 0x0),this[_0x26ecad(0x1a2)]||(this[_0x26ecad(0x1a2)]=this[_0x26ecad(0x18e)]({'type':_0x99a2c2,'interactionId':this['id'],'id':_0x23a8ee}),_0x26ecad(0x1c8)==_0x99a2c2&&(this[_0x26ecad(0x1a2)][_0x26ecad(0x19e)]=_0x564461[_0x26ecad(0x1bc)](0x0))),this[_0x26ecad(0x1a2)][_0x26ecad(0x190)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1a1)]);break;case _0x26ecad(0x19b):_0x2d9fda=JSON[_0x26ecad(0x1a0)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x172)]),this[_0x26ecad(0x186)]({'toolName':_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1bd)],'data':_0x2d9fda[_0x26ecad(0x18f)],'attributes':_0x2d9fda[_0x26ecad(0x196)]});break;case _0x26ecad(0x191):this[_0x26ecad(0x1b3)]({'toolName':_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1bd)],'data':_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x18f)]});}}}finally{this[_0x26ecad(0x1c4)]||(this[_0x26ecad(0x1a2)]&&_0x564461[_0x26ecad(0x1ae)]>0x0&&(this[_0x26ecad(0x1a2)][_0x26ecad(0x19e)]=_0x564461[_0x26ecad(0x1bc)](0x0)),this[_0x26ecad(0x1aa)](),this[_0x26ecad(0x193)](_0x26ecad(0x17e),this));}}[_0x4d04bc(0x1af)](){const _0x4a0777=_0x4d04bc;this[_0x4a0777(0x1c4)]||(this[_0x4a0777(0x1aa)](),this[_0x4a0777(0x193)](_0x4a0777(0x182),this));}[_0x4d04bc(0x1b5)](_0x5ce452){const _0x956f78=_0x4d04bc;return this[_0x956f78(0x1c0)][_0x956f78(0x19c)](_0x356b7d=>_0x356b7d['id']===_0x5ce452);}[_0x4d04bc(0x1c3)](){const _0x5bef38=_0x4d04bc;this[_0x5bef38(0x187)]||(this[_0x5bef38(0x1af)](),this[_0x5bef38(0x1c0)][_0x5bef38(0x17f)](_0x335d97=>_0x335d97[_0x5bef38(0x1c3)]()),this[_0x5bef38(0x1c0)]=[],this[_0x5bef38(0x187)]=!0x0,this[_0x5bef38(0x193)](_0x5bef38(0x177),this),this[_0x5bef38(0x188)]());}[_0x4d04bc(0x18e)](_0x203154){const _0x58c7d9=_0x4d04bc,_0x47b46d=new _0x2680f0({'editor':this[_0x58c7d9(0x1c1)],'documentContextContent':this[_0x58c7d9(0x1b7)]()?.[_0x58c7d9(0x181)],..._0x203154});return this[_0x58c7d9(0x1c0)][_0x58c7d9(0x19f)](_0x47b46d),_0x47b46d[_0x58c7d9(0x1ba)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x58c7d9(0x193)](_0x58c7d9(0x18c),_0x47b46d),_0x47b46d;}[_0x4d04bc(0x192)](_0x58bfd9,_0x3cb6b5=!0x1){const _0x1f36ac=_0x4d04bc;this[_0x1f36ac(0x193)](_0x1f36ac(0x192),_0x58bfd9,_0x3cb6b5);}[_0x4d04bc(0x178)](){const _0x458a38=_0x4d04bc;this[_0x458a38(0x194)]&&(this[_0x458a38(0x194)]=!0x1,this[_0x458a38(0x193)](_0x458a38(0x175),this));}[_0x4d04bc(0x198)](){const _0x3df9f4=_0x4d04bc;this[_0x3df9f4(0x1a5)]&&(this[_0x3df9f4(0x1a5)]=!0x1,this[_0x3df9f4(0x193)](_0x3df9f4(0x185),this));}[_0x4d04bc(0x186)](_0x53c655){const _0x2ac0f7=_0x4d04bc;this[_0x2ac0f7(0x193)](_0x2ac0f7(0x1c6),{'type':_0x2ac0f7(0x172),'toolName':_0x53c655[_0x2ac0f7(0x1bd)],'data':structuredClone(_0x53c655[_0x2ac0f7(0x18f)]||{}),'attributes':structuredClone(_0x53c655[_0x2ac0f7(0x196)]||{})},this);}[_0x4d04bc(0x1b3)](_0xc940e6){const _0x349ec1=_0x4d04bc;this[_0x349ec1(0x193)](_0x349ec1(0x1c6),{'type':_0x349ec1(0x173),'toolName':_0xc940e6[_0x349ec1(0x1bd)],'data':structuredClone(_0xc940e6[_0x349ec1(0x18f)])},this);}[_0x4d04bc(0x1aa)](){const _0x479ada=_0x4d04bc;this[_0x479ada(0x1c4)]=!0x0,this[_0x479ada(0x1bb)]&&this[_0x479ada(0x1bb)][_0x479ada(0x1bf)][_0x479ada(0x1a4)](),this[_0x479ada(0x1a2)]&&this[_0x479ada(0x1a2)][_0x479ada(0x184)](),this[_0x479ada(0x1bb)]=this[_0x479ada(0x1a2)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xb6832=_0x5848;function _0x5848(_0x2cafbd,_0x647f98){const _0x4e7173=_0x4e71();return _0x5848=function(_0x5848ee,_0x1ebba1){_0x5848ee=_0x5848ee-0x1ef;let _0x2719f3=_0x4e7173[_0x5848ee];return _0x2719f3;},_0x5848(_0x2cafbd,_0x647f98);}(function(_0x3e3b46,_0x4bc6b0){const _0x498c00=_0x5848,_0x3ad6ff=_0x3e3b46();while(!![]){try{const _0x85553d=parseInt(_0x498c00(0x211))/0x1+parseInt(_0x498c00(0x214))/0x2+parseInt(_0x498c00(0x21a))/0x3+-parseInt(_0x498c00(0x1f4))/0x4*(parseInt(_0x498c00(0x216))/0x5)+-parseInt(_0x498c00(0x1fd))/0x6*(parseInt(_0x498c00(0x1f2))/0x7)+-parseInt(_0x498c00(0x222))/0x8+-parseInt(_0x498c00(0x200))/0x9*(-parseInt(_0x498c00(0x20c))/0xa);if(_0x85553d===_0x4bc6b0)break;else _0x3ad6ff['push'](_0x3ad6ff['shift']());}catch(_0x2bd88f){_0x3ad6ff['push'](_0x3ad6ff['shift']());}}}(_0x4e71,0xc131f));import{EmitterMixin as _0x11b40b,logWarning as _0x1c801b,logError as _0x17a64d}from'ckeditor5/src/utils.js';import{getTranslation as _0x16e3b3}from'../utils/common-translations.js';export class AIModels extends _0x11b40b(){[_0xb6832(0x213)];[_0xb6832(0x215)];[_0xb6832(0x21f)];[_0xb6832(0x1f6)]=[];[_0xb6832(0x1f5)]=null;constructor({connector:_0x5e781c,config:_0x37438,locale:_0x517fe0}){const _0x5e17a=_0xb6832;super(),this[_0x5e17a(0x213)]=_0x5e781c,this[_0x5e17a(0x215)]=_0x37438,this[_0x5e17a(0x21f)]=_0x517fe0;}get[_0xb6832(0x1fb)](){const _0x591aa9=_0xb6832;return this[_0x591aa9(0x215)]?.[_0x591aa9(0x212)];}get[_0xb6832(0x1f7)](){const _0x73e757=_0xb6832;return this[_0x73e757(0x215)]?.[_0x73e757(0x1ef)];}async[_0xb6832(0x20f)](){const _0x79aae8=_0xb6832;return this[_0x79aae8(0x1f5)]||(this[_0x79aae8(0x1f5)]=this[_0x79aae8(0x205)]()),this[_0x79aae8(0x1f5)];}async[_0xb6832(0x21b)](){const _0x1197f2=_0xb6832,_0x268631=await this[_0x1197f2(0x20f)]();let _0x4f5b78;return _0x4f5b78=this[_0x1197f2(0x1fb)]?this[_0x1197f2(0x1f8)](_0x268631,this[_0x1197f2(0x1fb)]):_0x268631[_0x1197f2(0x1fa)](_0x5954c1=>_0x5954c1[_0x1197f2(0x21e)]),_0x4f5b78;}async[_0xb6832(0x203)](_0x52de5d){const _0xa8c766=_0xb6832,_0x400c1e=await this[_0xa8c766(0x20f)]();if(!_0x400c1e[_0xa8c766(0x218)])return null;if(_0x52de5d){const _0x5c1b43=this[_0xa8c766(0x204)](_0x400c1e,_0x52de5d);if(_0x5c1b43)return _0x5c1b43;_0x1c801b(_0xa8c766(0x21d),{'modelId':_0x52de5d,'fallBackModelId':this[_0xa8c766(0x1f7)]});}return this[_0xa8c766(0x1f1)]();}async[_0xb6832(0x1f1)](){const _0x193718=_0xb6832,_0x2cfafa=await this[_0x193718(0x21b)]();if(!_0x2cfafa[_0x193718(0x218)])return null;if(this[_0x193718(0x1f7)]){const _0x4ca64b=this[_0x193718(0x204)](_0x2cfafa,this[_0x193718(0x1f7)]);if(_0x4ca64b)return _0x4ca64b;_0x1c801b(_0x193718(0x220),{'defaultModelId':this[_0x193718(0x1f7)],'fallBackModelId':_0x2cfafa[0x0]['id']});}return _0x2cfafa[0x0];}async[_0xb6832(0x21c)](_0xc5c815){const _0x4507e3=_0xb6832;return(await this[_0x4507e3(0x21b)]())[_0x4507e3(0x20d)](_0x3335a3=>_0x3335a3[_0x4507e3(0x210)]===_0xc5c815[_0x4507e3(0x210)]&&_0x3335a3[_0x4507e3(0x201)]===_0xc5c815[_0x4507e3(0x201)]);}async[_0xb6832(0x205)](){const _0x1d5f0b=_0xb6832;if(!this[_0x1d5f0b(0x1f6)][_0x1d5f0b(0x218)])try{const _0x23f35d=this[_0x1d5f0b(0x21f)][_0x1d5f0b(0x206)]||'en',_0xd4800=this[_0x1d5f0b(0x213)][_0x1d5f0b(0x20b)](_0x23f35d),_0x95317b=await _0xd4800[_0x1d5f0b(0x1fc)]();this[_0x1d5f0b(0x1f6)]=_0x95317b[_0x1d5f0b(0x20e)][_0x1d5f0b(0x219)](_0x6f2f7c=>ze(_0x6f2f7c)?{..._0x6f2f7c,'name':_0x16e3b3(this[_0x1d5f0b(0x21f)],_0x1d5f0b(0x221))}:_0x6f2f7c);}catch(_0x6ee569){throw _0x17a64d(_0x1d5f0b(0x1f0),{'error':_0x6ee569}),_0x6ee569;}return[...this[_0x1d5f0b(0x1f6)]];}[_0xb6832(0x1f8)](_0x1b9370,_0x5043ef){const _0x389d03=_0xb6832;let _0x53849a;if(_0x5043ef){_0x53849a=[];const _0x24efdf=new Set(),_0x9999c1=_0x389d03(0x1f9)==typeof _0x5043ef?[_0x5043ef[_0x389d03(0x1f3)]()]:_0x5043ef[_0x389d03(0x219)](_0x58c029=>_0x58c029[_0x389d03(0x1f3)]());for(const _0x305e43 of _0x9999c1)for(const _0x537dba of _0x1b9370)!_0x24efdf[_0x389d03(0x1fe)](_0x537dba['id'])&&this[_0x389d03(0x217)](_0x537dba,_0x305e43)&&(_0x53849a[_0x389d03(0x1ff)](_0x537dba),_0x24efdf[_0x389d03(0x202)](_0x537dba['id']));}else _0x53849a=_0x1b9370;return _0x53849a;}[_0xb6832(0x217)](_0x19ecdd,_0x5d5a05){const _0x3f70b2=_0xb6832,_0x28549a=_0x19ecdd['id'][_0x3f70b2(0x1f3)](),_0x18c9e2=_0x19ecdd[_0x3f70b2(0x210)][_0x3f70b2(0x1f3)](),_0x41a368=_0x19ecdd[_0x3f70b2(0x201)][_0x3f70b2(0x1f3)]();return _0x28549a===_0x5d5a05||_0x18c9e2===_0x5d5a05||ze(_0x19ecdd)&&_0x3f70b2(0x209)===_0x5d5a05||_0x41a368===_0x5d5a05||_0x28549a[_0x3f70b2(0x20a)](_0x5d5a05);}[_0xb6832(0x204)](_0x4568b9,_0x37f0dc){const _0xd83cd=_0xb6832;return _0x4568b9[_0xd83cd(0x208)](_0x43941a=>ze(_0x43941a)&&_0xd83cd(0x209)===_0x37f0dc?_0x43941a:_0x43941a['id']===_0x37f0dc)||null;}}function _0x4e71(){const _0x45edbf=['isAvailable','ai-chat-model-id-unrecognized','recommended','_locale','ai-chat-default-model-id-unrecognized','AI_MODEL_NAME_AUTO','4211328ycrpia','defaultModelId','ai-models-unable-to-retrieve','getDefault','5479089hWCdei','toLocaleLowerCase','76Zcejhf','_modelsRequest','_modelList','_defaultModelId','_filterModels','string','filter','_availableModels','list','12LtjPmj','has','push','9LUIxDA','provider','add','getModel','_getModelById','_retrieveModels','uiLanguage','agent','find','auto','startsWith','getModels','13779130NrrNrX','some','items','getAll','name','200694SrwYxF','displayedModels','_connector','2157494UoEJOb','_config','343595ENbcuG','_isMatchingFilter','length','map','4594512yQkGYF','getAvailableModels'];_0x4e71=function(){return _0x45edbf;};return _0x4e71();}function ze(_0x56a914){const _0x2f801f=_0xb6832;return _0x56a914['id'][_0x2f801f(0x20a)](_0x2f801f(0x207));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x21d2(_0x186140,_0x41413c){const _0x10eb9c=_0x10eb();return _0x21d2=function(_0x21d25c,_0x4946a7){_0x21d25c=_0x21d25c-0x1ac;let _0x3fe4a6=_0x10eb9c[_0x21d25c];return _0x3fe4a6;},_0x21d2(_0x186140,_0x41413c);}const _0x1dbc35=_0x21d2;(function(_0x31dddf,_0x7f9185){const _0x3b4e8e=_0x21d2,_0x1b07a3=_0x31dddf();while(!![]){try{const _0x56f419=-parseInt(_0x3b4e8e(0x1de))/0x1*(parseInt(_0x3b4e8e(0x1dc))/0x2)+-parseInt(_0x3b4e8e(0x1c7))/0x3*(-parseInt(_0x3b4e8e(0x1cd))/0x4)+-parseInt(_0x3b4e8e(0x1ac))/0x5*(parseInt(_0x3b4e8e(0x1d7))/0x6)+-parseInt(_0x3b4e8e(0x1ea))/0x7*(parseInt(_0x3b4e8e(0x1f9))/0x8)+-parseInt(_0x3b4e8e(0x1b1))/0x9+-parseInt(_0x3b4e8e(0x1c1))/0xa+-parseInt(_0x3b4e8e(0x1b5))/0xb*(-parseInt(_0x3b4e8e(0x1af))/0xc);if(_0x56f419===_0x7f9185)break;else _0x1b07a3['push'](_0x1b07a3['shift']());}catch(_0x591c67){_0x1b07a3['push'](_0x1b07a3['shift']());}}}(_0x10eb,0x46a26));import{CKEditorError as _0xe8e30a,ObservableMixin as _0x4525dd,uid as _0x40bb6b}from'ckeditor5/src/utils.js';import{Element as _0xbc92c0,findAll as _0x1a0d81,getAttribute as _0x2f0c10,getParents as _0x3cd6e7,Document as _0x1af7e3,parse as _0x3f9970,Text as _0x473226}from'../utils/htmlparser.js';import{AIResponseParser as _0x282d4c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3ec193}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5daa36}from'../utils/getsuggestionpartsfromreply.js';function _0x10eb(){const _0x58b650=['type','126883YaeUbP','previousSibling','aiResponseApplier','newNodeIds','forEach','parsedMergedContent','change:content','find','push','map','color:\x20#808080;\x20font-style:\x20italic','replyChangeGroupStateUpdated','244769dmEHop','removed','unshift','set','changeGroups','splice','appendContent','editor','merge','ai-get-editor-from-context-no-editor','replyContentUpdated','withDiff','data-unstable','stopListening','cloneNode','112wVwOuh','_setCachedContentParts','modifiedNodeIds','onContentChange','removedNodeIds','5TkwOIY','every','updateChangeGroups','23892DRqnCF','node','1743930yRYUCW','setChangeGroupState','sources','data-id','9647AHhjUE','ai-reply-get-content-parts-group-not-found','isDone','filter','convertMarkdownToHTML','withoutDiff','locale','parsedContent','span','nextSibling','includes','cachedSuggestionContentParts','2561590wUlZVA','pending','length','indexOf','destroy','AI_SUGGESTION_CONTENT_PART_REMOVED','3tUHXTJ','_getDifferentChangeGroups','areActionsDisabled','done','aiResponseParser','state','1242188xZQnkx','_getCachedContentParts','context','getContentParts','new','modification','changes','fire','interactionId','index','3444618VgOaoj','modified','content','parseAndNormalizeHTML','documentContextContent','4hofDVi'];_0x10eb=function(){return _0x58b650;};return _0x10eb();}import{getTranslation as _0x4cbbaa}from'../utils/common-translations.js';import{cloneDeep as _0x16a653}from'es-toolkit';export class AIReply extends _0x4525dd(){['id'];[_0x1dbc35(0x1d5)];[_0x1dbc35(0x1dd)];[_0x1dbc35(0x1b3)]=[];[_0x1dbc35(0x1bc)]=new _0x1af7e3([]);[_0x1dbc35(0x1e3)]=new _0x1af7e3([]);[_0x1dbc35(0x1ee)]=[];[_0x1dbc35(0x1c9)]=!0x1;[_0x1dbc35(0x1db)];[_0x1dbc35(0x1cb)];[_0x1dbc35(0x1e0)];[_0x1dbc35(0x1f1)];[_0x1dbc35(0x1c0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x518453,content:_0x29dc97='',isDone:_0x2c1002=!0x1,interactionId:_0x76ad25,areActionsDisabled:_0x402b13,documentContextContent:_0x51314e,editor:_0x5a5dfe,id:_0x2a5636}){const _0xceb0b3=_0x1dbc35;super(),this['id']=_0x2a5636||_0x40bb6b(),this[_0xceb0b3(0x1d5)]=_0x76ad25,this[_0xceb0b3(0x1dd)]=_0x518453,this[_0xceb0b3(0x1c9)]=!!_0x402b13,this[_0xceb0b3(0x1f1)]=_0x5a5dfe,this[_0xceb0b3(0x1cb)]=new _0x282d4c(),this[_0xceb0b3(0x1e0)]=new _0x3ec193(),this[_0xceb0b3(0x1db)]=_0x3f9970(_0x51314e||''),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1b7),_0x2c1002),this['on'](_0xceb0b3(0x1e4),()=>{const _0x888eb0=_0xceb0b3;this[_0x888eb0(0x1fc)]();}),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1d9),_0x29dc97);}[_0x1dbc35(0x1f0)](_0x3ec435){const _0x32fc41=_0x1dbc35;this[_0x32fc41(0x1ed)](_0x32fc41(0x1d9),this[_0x32fc41(0x1d9)]+_0x3ec435);}[_0x1dbc35(0x1ca)](){const _0x321455=_0x1dbc35;this[_0x321455(0x1b7)]||(this[_0x321455(0x1ed)](_0x321455(0x1b7),!0x0),this[_0x321455(0x1fc)]());}[_0x1dbc35(0x1c5)](){const _0x5ae9b7=_0x1dbc35;this[_0x5ae9b7(0x1f7)]();}[_0x1dbc35(0x1b2)](_0x2dcd65,_0x398c19){const _0x58314a=_0x1dbc35;this[_0x58314a(0x1ee)][_0x2dcd65][_0x58314a(0x1cc)]=_0x398c19,this[_0x58314a(0x1d4)](_0x58314a(0x1e9),{'reply':this,'index':_0x2dcd65,'state':_0x398c19});}[_0x1dbc35(0x1d0)]({showDiff:_0x2cfbc1,groupIndex:_0x4e2373}){const _0x64788=_0x1dbc35;if(!this[_0x64788(0x1f1)])throw new _0xe8e30a(_0x64788(0x1f3),null,{'aiReply':this});const _0x4f29d1=this[_0x64788(0x1ce)](_0x2cfbc1,_0x4e2373);if(_0x4f29d1)return _0x4f29d1;let _0x516b31=[];if(void 0x0===_0x4e2373)_0x516b31=this[_0x64788(0x1ee)];else{const _0x459946=this[_0x64788(0x1ee)][_0x64788(0x1e5)](({index:_0x247dd2})=>_0x247dd2===_0x4e2373);if(!_0x459946)throw new _0xe8e30a(_0x64788(0x1b6),null,{'aiReply':this,'groupIndex':_0x4e2373});_0x516b31=[_0x459946];}const _0x32a7e6=_0x5daa36({'editor':this[_0x64788(0x1f1)],'showDiff':_0x2cfbc1,'changeGroups':_0x516b31,'documentContextContent':this[_0x64788(0x1db)]});return this[_0x64788(0x1fa)](_0x2cfbc1,_0x32a7e6),_0x32a7e6;}[_0x1dbc35(0x1ce)](_0x3752ce,_0x5b75af){const _0x27400d=_0x1dbc35,_0x1c4d10=_0x3752ce?_0x27400d(0x1f5):_0x27400d(0x1ba);if(!this[_0x27400d(0x1c0)][_0x1c4d10][_0x27400d(0x1c3)])return null;const _0xe8df2a=this[_0x27400d(0x1c0)][_0x1c4d10];if(void 0x0===_0x5b75af)return _0xe8df2a[_0x27400d(0x1c3)]>0x0&&_0xe8df2a[_0x27400d(0x1c3)]!==this[_0x27400d(0x1ee)][_0x27400d(0x1c3)]?(this[_0x27400d(0x1fa)](_0x3752ce,null),null):_0x16a653(_0xe8df2a);{const _0x18bdd9=_0xe8df2a[_0x27400d(0x1e5)](({index:_0x2201c7})=>_0x2201c7===_0x5b75af);if(_0x18bdd9)return[_0x16a653(_0x18bdd9)];}return null;}[_0x1dbc35(0x1fa)](_0x559cd2,_0x27a4fd){const _0x49e518=_0x1dbc35,_0x442338=_0x559cd2?_0x49e518(0x1f5):_0x49e518(0x1ba);_0x27a4fd?_0x27a4fd[_0x49e518(0x1e2)](_0x2cb025=>{const _0x3221dd=_0x49e518,_0x1571b4=this[_0x3221dd(0x1c0)][_0x442338],_0x416b78=_0x1571b4[_0x3221dd(0x1e5)](({index:_0x5a6cdb})=>_0x5a6cdb===_0x2cb025[_0x3221dd(0x1d6)]);if(_0x416b78){const _0x40c393=_0x1571b4[_0x3221dd(0x1c4)](_0x416b78);_0x1571b4[_0x3221dd(0x1ef)](_0x40c393,0x1,_0x2cb025);}else _0x1571b4[_0x3221dd(0x1e6)](_0x2cb025);}):this[_0x49e518(0x1c0)][_0x442338][_0x49e518(0x1c3)]=0x0;}[_0x1dbc35(0x1fc)](){const _0x53af77=_0x1dbc35;if(_0x53af77(0x1d2)===this[_0x53af77(0x1dd)]){this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1da)](this[_0x53af77(0x1d9)]);const _0x2bea7c=this[_0x53af77(0x1ee)];this[_0x53af77(0x1ae)]();const _0x3855e3=this[_0x53af77(0x1c8)](_0x2bea7c,this[_0x53af77(0x1ee)]);(_0x3855e3[_0x53af77(0x1c3)]||this[_0x53af77(0x1b7)])&&(this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this,_0x3855e3),this[_0x53af77(0x1c0)][_0x53af77(0x1f5)][_0x53af77(0x1c3)]=this[_0x53af77(0x1c0)][_0x53af77(0x1ba)][_0x53af77(0x1c3)]=0x0);}else this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1b9)](this[_0x53af77(0x1d9)]),this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this);}[_0x1dbc35(0x1c8)](_0x5558fa,_0x1d1dbc){const _0x5e28bd=_0x1dbc35,_0x37c34e=[];for(const _0x490a07 of _0x1d1dbc){const _0x1482ba=_0x5558fa[_0x490a07[_0x5e28bd(0x1d6)]];_0x1482ba?_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]!==_0x490a07[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]?_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07):_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1e2)]((_0x119d07,_0x543b47)=>{const _0x76fa6a=_0x5e28bd,_0x1485d1=_0x490a07[_0x76fa6a(0x1d3)][_0x543b47];_0x119d07['id']!==_0x1485d1['id']&&_0x37c34e[_0x76fa6a(0x1e6)](_0x490a07);}):_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07);}return _0x37c34e;}[_0x1dbc35(0x1ae)](){const _0x4c790f=_0x1dbc35,_0x1d8355=new _0xbc92c0('p',{},[new _0xbc92c0(_0x4c790f(0x1bd),{'style':_0x4c790f(0x1e8)},[new _0x473226(_0x4cbbaa(this[_0x4c790f(0x1f1)][_0x4c790f(0x1bb)],_0x4c790f(0x1c6)))])]),_0xcc4d30=this[_0x4c790f(0x1e0)][_0x4c790f(0x1f2)](this[_0x4c790f(0x1bc)],this[_0x4c790f(0x1db)][_0x4c790f(0x1f8)](!0x0),{'markUnstableElements':!this[_0x4c790f(0x1b7)],'replaceRemovedWith':_0x1d8355,'cutAfterLastChange':!this[_0x4c790f(0x1b7)]});if(!_0xcc4d30[_0x4c790f(0x1fb)][_0x4c790f(0x1c3)]&&!this[_0x4c790f(0x1b7)])return;this[_0x4c790f(0x1e3)]=_0xcc4d30[_0x4c790f(0x1bc)];let _0x2403b7=[];if(_0x1a0d81(_0x49c3d7=>{const _0x41c318=_0x4c790f,_0x1572b4=_0x2f0c10(_0x49c3d7,_0x41c318(0x1b4));if(!_0x1572b4||!_0x42759c(_0x1572b4))return!0x1;const _0x1314be=[_0x49c3d7,..._0x3cd6e7(_0x49c3d7)]['at'](-0x2);if(_0x49c3d7!=_0x1314be){const _0x46afe0=_0x2f0c10(_0x1314be,_0x41c318(0x1b4));_0x42759c(_0x46afe0)||(_0x2403b7[_0x41c318(0x1e6)]({'node':_0x1314be,'id':_0x46afe0,'type':_0x41c318(0x1d8)}),_0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1e6)](_0x46afe0));}else _0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d8),'id':_0x1572b4}):_0xcc4d30[_0x41c318(0x1e1)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d1),'id':_0x1572b4,'anchorId':_0x2f0c10(_0x49c3d7[_0x41c318(0x1df)],_0x41c318(0x1b4))}):_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1eb),'id':_0x1572b4});return!0x0;},this[_0x4c790f(0x1e3)]),_0x2403b7=_0x2403b7[_0x4c790f(0x1b8)](({node:_0x2c79ef})=>[..._0x3cd6e7(_0x2c79ef),_0x2c79ef][_0x4c790f(0x1ad)](_0x1ca8ee=>!_0x2f0c10(_0x1ca8ee,_0x4c790f(0x1f6)))),0x0==_0x2403b7[_0x4c790f(0x1c3)])return;const _0x4255b9=[[_0x2403b7[0x0]]];for(let _0x1f28a0=0x1;_0x1f28a0<_0x2403b7[_0x4c790f(0x1c3)];_0x1f28a0++){const _0x2bedf5=_0x4255b9[_0x4255b9[_0x4c790f(0x1c3)]-0x1],_0x46d031=_0x2bedf5[_0x2bedf5[_0x4c790f(0x1c3)]-0x1];_0x2403b7[_0x1f28a0][_0x4c790f(0x1b0)][_0x4c790f(0x1df)]==_0x46d031[_0x4c790f(0x1b0)]&&_0x4c790f(0x1d8)!=_0x2403b7[_0x1f28a0][_0x4c790f(0x1dd)]&&_0x4c790f(0x1d8)!=_0x46d031[_0x4c790f(0x1dd)]?_0x2bedf5[_0x4c790f(0x1e6)](_0x2403b7[_0x1f28a0]):_0x4255b9[_0x4c790f(0x1e6)]([_0x2403b7[_0x1f28a0]]);}for(const _0x163d97 of _0x4255b9){const _0xdc25a=_0x163d97[0x0],_0x5e0a79=_0x163d97[_0x163d97[_0x4c790f(0x1c3)]-0x1],_0x221b2e=_0x564763(_0xdc25a[_0x4c790f(0x1b0)][_0x4c790f(0x1df)]);_0x221b2e&&_0x163d97[_0x4c790f(0x1ec)](_0x221b2e);const _0x43fcd6=_0x564763(_0x5e0a79[_0x4c790f(0x1b0)][_0x4c790f(0x1be)]);_0x43fcd6&&_0x163d97[_0x4c790f(0x1e6)](_0x43fcd6);}function _0x42759c(_0x42c1a4){const _0x1a16dc=_0x4c790f;return _0xcc4d30[_0x1a16dc(0x1fb)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1e1)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1fd)][_0x1a16dc(0x1bf)](_0x42c1a4);}function _0x564763(_0x3b266b){const _0x50da7=_0x4c790f;if(_0x3b266b&&_0x2f0c10(_0x3b266b,_0x50da7(0x1b4))&&!_0x2f0c10(_0x3b266b,_0x50da7(0x1f6))){const _0x3107e8=_0x2f0c10(_0x3b266b,_0x50da7(0x1b4));if(!_0x42759c(_0x3107e8))return{'node':_0x3b266b,'type':_0x50da7(0x1cf),'id':_0x3107e8};}return null;}this[_0x4c790f(0x1ee)]=_0x4255b9[_0x4c790f(0x1e7)]((_0x5979e7,_0x23f1ed)=>({'changes':_0x5979e7,'state':_0x4c790f(0x1c2),'index':_0x23f1ed}));}}
|
|
23
|
+
const _0x26ce9d=_0x30ae;(function(_0x768623,_0x4357fe){const _0xe84b51=_0x30ae,_0x4cb024=_0x768623();while(!![]){try{const _0x18f5f1=parseInt(_0xe84b51(0xda))/0x1+parseInt(_0xe84b51(0xfa))/0x2*(parseInt(_0xe84b51(0xd8))/0x3)+-parseInt(_0xe84b51(0xd0))/0x4+-parseInt(_0xe84b51(0xce))/0x5*(parseInt(_0xe84b51(0xf4))/0x6)+parseInt(_0xe84b51(0xc4))/0x7*(-parseInt(_0xe84b51(0xb7))/0x8)+-parseInt(_0xe84b51(0xeb))/0x9+-parseInt(_0xe84b51(0xe4))/0xa*(-parseInt(_0xe84b51(0xed))/0xb);if(_0x18f5f1===_0x4357fe)break;else _0x4cb024['push'](_0x4cb024['shift']());}catch(_0x3da640){_0x4cb024['push'](_0x4cb024['shift']());}}}(_0x3bf6,0x7b090));import{CKEditorError as _0x5e40d0,ObservableMixin as _0x46c9bd,uid as _0x4f316a}from'ckeditor5/src/utils.js';import{Element as _0x5d814f,findAll as _0x122897,getAttribute as _0x18f9ed,getParents as _0x1632ba,Document as _0x2f1415,parse as _0xc44688,Text as _0x526c97}from'../utils/htmlparser.js';import{AIResponseParser as _0x5c5811}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5c6a6a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x19dcba}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5ba47d}from'../utils/common-translations.js';import{cloneDeep as _0x232a21}from'es-toolkit';function _0x30ae(_0x5b4da6,_0x5e7f1c){const _0x3bf69d=_0x3bf6();return _0x30ae=function(_0x30ae63,_0x502578){_0x30ae63=_0x30ae63-0xaa;let _0x21557a=_0x3bf69d[_0x30ae63];return _0x21557a;},_0x30ae(_0x5b4da6,_0x5e7f1c);}function _0x3bf6(){const _0x323f99=['getContentParts','new','index','ai-get-editor-from-context-no-editor','_setCachedContentParts','locale','30QKRFEk','interactionId','node','changes','merge','cachedSuggestionContentParts','updateChangeGroups','4300371lWuvJA','pending','545435okeuXY','AI_SUGGESTION_CONTENT_PART_REMOVED','type','filter','context','length','done','589728hmRAvn','parsedMergedContent','modifiedNodeIds','span','destroy','push','8FhijnD','documentContextContent','setChangeGroupState','areActionsDisabled','newNodeIds','editor','appendContent','isDone','splice','forEach','state','fire','convertMarkdownToHTML','sources','2456eACnJk','indexOf','removedNodeIds','withDiff','map','changeGroups','parsedContent','parseAndNormalizeHTML','includes','unshift','data-id','find','_getDifferentChangeGroups','5663zzkyZe','previousSibling','stopListening','aiResponseParser','replyChangeGroupStateUpdated','onContentChange','data-unstable','replyContentUpdated','set','removed','25rcBJMU','every','1104272lvJGMJ','cloneNode','aiResponseApplier','modification','nextSibling','change:content','color:\x20#808080;\x20font-style:\x20italic','_getCachedContentParts','700611EQmvvc','withoutDiff','914739fbgQCF','content','modified','ai-reply-get-content-parts-group-not-found'];_0x3bf6=function(){return _0x323f99;};return _0x3bf6();}export class AIReply extends _0x46c9bd(){['id'];[_0x26ce9d(0xe5)];[_0x26ce9d(0xef)];[_0x26ce9d(0xb6)]=[];[_0x26ce9d(0xbd)]=new _0x2f1415([]);[_0x26ce9d(0xf5)]=new _0x2f1415([]);[_0x26ce9d(0xbc)]=[];[_0x26ce9d(0xac)]=!0x1;[_0x26ce9d(0xaa)];[_0x26ce9d(0xc7)];[_0x26ce9d(0xd2)];[_0x26ce9d(0xae)];[_0x26ce9d(0xe9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x365cee,content:_0x5b0f02='',isDone:_0x4a78ec=!0x1,interactionId:_0x4ade84,areActionsDisabled:_0x513062,documentContextContent:_0x3f0fbc,editor:_0x221bf3,id:_0x11c84d}){const _0x3b4530=_0x26ce9d;super(),this['id']=_0x11c84d||_0x4f316a(),this[_0x3b4530(0xe5)]=_0x4ade84,this[_0x3b4530(0xef)]=_0x365cee,this[_0x3b4530(0xac)]=!!_0x513062,this[_0x3b4530(0xae)]=_0x221bf3,this[_0x3b4530(0xc7)]=new _0x5c5811(),this[_0x3b4530(0xd2)]=new _0x5c6a6a(),this[_0x3b4530(0xaa)]=_0xc44688(_0x3f0fbc||''),this[_0x3b4530(0xcc)](_0x3b4530(0xb0),_0x4a78ec),this['on'](_0x3b4530(0xd5),()=>{const _0x94c43a=_0x3b4530;this[_0x94c43a(0xc9)]();}),this[_0x3b4530(0xcc)](_0x3b4530(0xdb),_0x5b0f02);}[_0x26ce9d(0xaf)](_0x59d0a8){const _0x240ec6=_0x26ce9d;this[_0x240ec6(0xcc)](_0x240ec6(0xdb),this[_0x240ec6(0xdb)]+_0x59d0a8);}[_0x26ce9d(0xf3)](){const _0x16a35d=_0x26ce9d;this[_0x16a35d(0xb0)]||(this[_0x16a35d(0xcc)](_0x16a35d(0xb0),!0x0),this[_0x16a35d(0xc9)]());}[_0x26ce9d(0xf8)](){const _0xfc4881=_0x26ce9d;this[_0xfc4881(0xc6)]();}[_0x26ce9d(0xab)](_0x2a0ebf,_0x5cbfd0){const _0x2a0fce=_0x26ce9d;this[_0x2a0fce(0xbc)][_0x2a0ebf][_0x2a0fce(0xb3)]=_0x5cbfd0,this[_0x2a0fce(0xb4)](_0x2a0fce(0xc8),{'reply':this,'index':_0x2a0ebf,'state':_0x5cbfd0});}[_0x26ce9d(0xde)]({showDiff:_0x15dbed,groupIndex:_0xcf2c04}){const _0x4919c4=_0x26ce9d;if(!this[_0x4919c4(0xae)])throw new _0x5e40d0(_0x4919c4(0xe1),null,{'aiReply':this});const _0x82a74d=this[_0x4919c4(0xd7)](_0x15dbed,_0xcf2c04);if(_0x82a74d)return _0x82a74d;let _0x3d596e=[];if(void 0x0===_0xcf2c04)_0x3d596e=this[_0x4919c4(0xbc)];else{const _0x391050=this[_0x4919c4(0xbc)][_0x4919c4(0xc2)](({index:_0x3bf94b})=>_0x3bf94b===_0xcf2c04);if(!_0x391050)throw new _0x5e40d0(_0x4919c4(0xdd),null,{'aiReply':this,'groupIndex':_0xcf2c04});_0x3d596e=[_0x391050];}const _0x27118d=_0x19dcba({'editor':this[_0x4919c4(0xae)],'showDiff':_0x15dbed,'changeGroups':_0x3d596e,'documentContextContent':this[_0x4919c4(0xaa)]});return this[_0x4919c4(0xe2)](_0x15dbed,_0x27118d),_0x27118d;}[_0x26ce9d(0xd7)](_0x30a29a,_0x489af0){const _0x467981=_0x26ce9d,_0x3de4aa=_0x30a29a?_0x467981(0xba):_0x467981(0xd9);if(!this[_0x467981(0xe9)][_0x3de4aa][_0x467981(0xf2)])return null;const _0xb7f85a=this[_0x467981(0xe9)][_0x3de4aa];if(void 0x0===_0x489af0)return _0xb7f85a[_0x467981(0xf2)]>0x0&&_0xb7f85a[_0x467981(0xf2)]!==this[_0x467981(0xbc)][_0x467981(0xf2)]?(this[_0x467981(0xe2)](_0x30a29a,null),null):_0x232a21(_0xb7f85a);{const _0x39acaa=_0xb7f85a[_0x467981(0xc2)](({index:_0x156796})=>_0x156796===_0x489af0);if(_0x39acaa)return[_0x232a21(_0x39acaa)];}return null;}[_0x26ce9d(0xe2)](_0x30b690,_0x1d9983){const _0x54bac9=_0x26ce9d,_0x28222c=_0x30b690?_0x54bac9(0xba):_0x54bac9(0xd9);_0x1d9983?_0x1d9983[_0x54bac9(0xb2)](_0x28aad7=>{const _0x5e5be7=_0x54bac9,_0x2d2d78=this[_0x5e5be7(0xe9)][_0x28222c],_0x196c73=_0x2d2d78[_0x5e5be7(0xc2)](({index:_0x226f17})=>_0x226f17===_0x28aad7[_0x5e5be7(0xe0)]);if(_0x196c73){const _0xb829e4=_0x2d2d78[_0x5e5be7(0xb8)](_0x196c73);_0x2d2d78[_0x5e5be7(0xb1)](_0xb829e4,0x1,_0x28aad7);}else _0x2d2d78[_0x5e5be7(0xf9)](_0x28aad7);}):this[_0x54bac9(0xe9)][_0x28222c][_0x54bac9(0xf2)]=0x0;}[_0x26ce9d(0xc9)](){const _0x18a979=_0x26ce9d;if(_0x18a979(0xd3)===this[_0x18a979(0xef)]){this[_0x18a979(0xbd)]=this[_0x18a979(0xc7)][_0x18a979(0xbe)](this[_0x18a979(0xdb)]);const _0x31d673=this[_0x18a979(0xbc)];this[_0x18a979(0xea)]();const _0x309a2a=this[_0x18a979(0xc3)](_0x31d673,this[_0x18a979(0xbc)]);(_0x309a2a[_0x18a979(0xf2)]||this[_0x18a979(0xb0)])&&(this[_0x18a979(0xb4)](_0x18a979(0xcb),this,_0x309a2a),this[_0x18a979(0xe9)][_0x18a979(0xba)][_0x18a979(0xf2)]=this[_0x18a979(0xe9)][_0x18a979(0xd9)][_0x18a979(0xf2)]=0x0);}else this[_0x18a979(0xbd)]=this[_0x18a979(0xc7)][_0x18a979(0xb5)](this[_0x18a979(0xdb)]),this[_0x18a979(0xb4)](_0x18a979(0xcb),this);}[_0x26ce9d(0xc3)](_0x31a5c9,_0xb5fef0){const _0x46afb2=_0x26ce9d,_0x3d01fa=[];for(const _0x1f448d of _0xb5fef0){const _0x2cc21c=_0x31a5c9[_0x1f448d[_0x46afb2(0xe0)]];_0x2cc21c?_0x2cc21c[_0x46afb2(0xe7)][_0x46afb2(0xf2)]!==_0x1f448d[_0x46afb2(0xe7)][_0x46afb2(0xf2)]?_0x3d01fa[_0x46afb2(0xf9)](_0x1f448d):_0x2cc21c[_0x46afb2(0xe7)][_0x46afb2(0xb2)]((_0x1e7022,_0x3d1964)=>{const _0x320079=_0x46afb2,_0xc3db1a=_0x1f448d[_0x320079(0xe7)][_0x3d1964];_0x1e7022['id']!==_0xc3db1a['id']&&_0x3d01fa[_0x320079(0xf9)](_0x1f448d);}):_0x3d01fa[_0x46afb2(0xf9)](_0x1f448d);}return _0x3d01fa;}[_0x26ce9d(0xea)](){const _0x57d304=_0x26ce9d,_0x378c23=new _0x5d814f('p',{},[new _0x5d814f(_0x57d304(0xf7),{'style':_0x57d304(0xd6)},[new _0x526c97(_0x5ba47d(this[_0x57d304(0xae)][_0x57d304(0xe3)],_0x57d304(0xee)))])]),_0x2082ce=this[_0x57d304(0xd2)][_0x57d304(0xe8)](this[_0x57d304(0xbd)],this[_0x57d304(0xaa)][_0x57d304(0xd1)](!0x0),{'markUnstableElements':!this[_0x57d304(0xb0)],'replaceRemovedWith':_0x378c23,'cutAfterLastChange':!this[_0x57d304(0xb0)]});if(!_0x2082ce[_0x57d304(0xf6)][_0x57d304(0xf2)]&&!this[_0x57d304(0xb0)])return;this[_0x57d304(0xf5)]=_0x2082ce[_0x57d304(0xbd)];let _0x30262d=[];if(_0x122897(_0x423020=>{const _0xd846ed=_0x57d304,_0x27f73=_0x18f9ed(_0x423020,_0xd846ed(0xc1));if(!_0x27f73||!_0x24ae82(_0x27f73))return!0x1;const _0x1f5064=[_0x423020,..._0x1632ba(_0x423020)]['at'](-0x2);if(_0x423020!=_0x1f5064){const _0x2c9df9=_0x18f9ed(_0x1f5064,_0xd846ed(0xc1));_0x24ae82(_0x2c9df9)||(_0x30262d[_0xd846ed(0xf9)]({'node':_0x1f5064,'id':_0x2c9df9,'type':_0xd846ed(0xdc)}),_0x2082ce[_0xd846ed(0xf6)][_0xd846ed(0xf9)](_0x2c9df9));}else _0x2082ce[_0xd846ed(0xf6)][_0xd846ed(0xbf)](_0x27f73)?_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xdc),'id':_0x27f73}):_0x2082ce[_0xd846ed(0xad)][_0xd846ed(0xbf)](_0x27f73)?_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xdf),'id':_0x27f73,'anchorId':_0x18f9ed(_0x423020[_0xd846ed(0xc5)],_0xd846ed(0xc1))}):_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xcd),'id':_0x27f73});return!0x0;},this[_0x57d304(0xf5)]),_0x30262d=_0x30262d[_0x57d304(0xf0)](({node:_0x549bf5})=>[..._0x1632ba(_0x549bf5),_0x549bf5][_0x57d304(0xcf)](_0x1c666a=>!_0x18f9ed(_0x1c666a,_0x57d304(0xca)))),0x0==_0x30262d[_0x57d304(0xf2)])return;const _0x5f08f8=[[_0x30262d[0x0]]];for(let _0x20b231=0x1;_0x20b231<_0x30262d[_0x57d304(0xf2)];_0x20b231++){const _0x44f6ce=_0x5f08f8[_0x5f08f8[_0x57d304(0xf2)]-0x1],_0x14ee5d=_0x44f6ce[_0x44f6ce[_0x57d304(0xf2)]-0x1];_0x30262d[_0x20b231][_0x57d304(0xe6)][_0x57d304(0xc5)]==_0x14ee5d[_0x57d304(0xe6)]&&_0x57d304(0xdc)!=_0x30262d[_0x20b231][_0x57d304(0xef)]&&_0x57d304(0xdc)!=_0x14ee5d[_0x57d304(0xef)]?_0x44f6ce[_0x57d304(0xf9)](_0x30262d[_0x20b231]):_0x5f08f8[_0x57d304(0xf9)]([_0x30262d[_0x20b231]]);}for(const _0x94d981 of _0x5f08f8){const _0x588ae2=_0x94d981[0x0],_0x4fccf6=_0x94d981[_0x94d981[_0x57d304(0xf2)]-0x1],_0x3c5ee3=_0x12af34(_0x588ae2[_0x57d304(0xe6)][_0x57d304(0xc5)]);_0x3c5ee3&&_0x94d981[_0x57d304(0xc0)](_0x3c5ee3);const _0xb6c093=_0x12af34(_0x4fccf6[_0x57d304(0xe6)][_0x57d304(0xd4)]);_0xb6c093&&_0x94d981[_0x57d304(0xf9)](_0xb6c093);}function _0x24ae82(_0x5abd2f){const _0x40d180=_0x57d304;return _0x2082ce[_0x40d180(0xf6)][_0x40d180(0xbf)](_0x5abd2f)||_0x2082ce[_0x40d180(0xad)][_0x40d180(0xbf)](_0x5abd2f)||_0x2082ce[_0x40d180(0xb9)][_0x40d180(0xbf)](_0x5abd2f);}function _0x12af34(_0x4cb044){const _0xec9cdf=_0x57d304;if(_0x4cb044&&_0x18f9ed(_0x4cb044,_0xec9cdf(0xc1))&&!_0x18f9ed(_0x4cb044,_0xec9cdf(0xca))){const _0x1ecea3=_0x18f9ed(_0x4cb044,_0xec9cdf(0xc1));if(!_0x24ae82(_0x1ecea3))return{'node':_0x4cb044,'type':_0xec9cdf(0xf1),'id':_0x1ecea3};}return null;}this[_0x57d304(0xbc)]=_0x5f08f8[_0x57d304(0xbb)]((_0x36c5b9,_0x3581a1)=>({'changes':_0x36c5b9,'state':_0x57d304(0xec),'index':_0x3581a1}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
_0xa8da33(){[_0x544b17(0x1d2)];[_0x544b17(0x1f3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x544b17(0x1ef)]=new Set();constructor(_0x19d3c4){const _0x30b377=_0x544b17;super(),this[_0x30b377(0x1d2)]=_0x19d3c4||_0x5db69d;}[_0x544b17(0x1cf)](_0xbbfc3e,_0x629b70,_0x5c212d){const _0x400435=_0x544b17,_0x5e7562=_0x46bd86(_0xbbfc3e);if(0x0===_0x629b70[_0x400435(0x1c2)][_0x400435(0x1f2)]){const _0x2619a1=[];return _0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x5e7562)[_0x400435(0x1c4)](_0x19a5eb=>{const _0x28946d=_0x400435,_0x27e486=this[_0x28946d(0x1d2)]();_0x596918(_0x19a5eb,_0x28946d(0x1e7),_0x27e486),_0x2619a1[_0x28946d(0x1c8)](_0x27e486);}),this[_0x400435(0x1d4)](_0x5e7562),{'parsedContent':_0x5e7562,'newNodeIds':_0x2619a1,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1db)](_0x5e7562),this[_0x400435(0x1f3)][_0x400435(0x1df)]=[],this[_0x400435(0x1f3)][_0x400435(0x1b8)]=[],this[_0x400435(0x1f3)][_0x400435(0x1d6)]=[],this[_0x400435(0x1f3)][_0x400435(0x1cd)]=[],this[_0x400435(0x1f3)][_0x400435(0x1e0)]=null,this[_0x400435(0x1ef)]=new Set(_0x1a06e7(_0x400435(0x1e7),null,_0x629b70)[_0x400435(0x1b6)](_0x1cb17e=>_0x4cbff3(_0x1cb17e,_0x400435(0x1e7)))[_0x400435(0x1bf)](_0x5ebe23=>!!_0x5ebe23));let _0x4158a5=-0x1,_0x2fc892=!0x1;const _0x2f159e=_0x5e7562[_0x400435(0x1c2)],_0x266d2c=Array[_0x400435(0x1c7)](_0x2f159e)[_0x400435(0x1bf)](_0x2fd864=>!(0x3===_0x2fd864[_0x400435(0x1bc)]&&''===_0x44096d(_0x2fd864)[_0x400435(0x1e3)]())),_0x58484f=_0x266d2c[_0x400435(0x1f2)];for(let _0x4ba6aa=0x0;_0x4ba6aa<_0x58484f;_0x4ba6aa++){const _0x33910d=_0x266d2c[_0x4ba6aa],_0x3484b1=_0x266d2c[_0x4ba6aa+0x1];if(this[_0x400435(0x1e6)](_0x33910d)){if(-0x1===_0x4158a5&&(_0x4158a5=_0x4ba6aa),this[_0x400435(0x1d0)](_0x33910d),!this[_0x400435(0x1e6)](_0x3484b1)){const [_0x50c3f0,_0x59cc6c]=this[_0x400435(0x1e8)](_0x33910d,_0x2fc892,_0x629b70);if(_0x50c3f0){const _0x5157a6=Array[_0x400435(0x1c7)](_0x266d2c)[_0x400435(0x1e5)](_0x4158a5,_0x4ba6aa+0x1);this[_0x400435(0x1da)](_0x50c3f0,_0x5157a6,_0x59cc6c),_0x4158a5=-0x1;}}}else{if(this[_0x400435(0x1b5)](_0x33910d))_0x2fc892=!0x0;else{if(this[_0x400435(0x1d3)](_0x33910d)){const _0x2123e0=_0x4cbff3(_0x33910d,_0x400435(0x1e7));if(_0x2123e0&&this[_0x400435(0x1ef)][_0x400435(0x1d7)](_0x2123e0)){const _0x5d24e5=_0x4b2642(_0x400435(0x1e7),_0x2123e0,_0x629b70);this[_0x400435(0x1ee)](_0x5d24e5,_0x33910d);}if(this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1d5)](_0x2123e0)){const _0x17c2b8=this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1f5)](_0x2123e0);this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1cb)](_0x17c2b8,0x1);}}else{if(this[_0x400435(0x1e9)](_0x33910d)){const _0x331b39=_0x4cbff3(_0x33910d,_0x400435(0x1e7));this[_0x400435(0x1f3)][_0x400435(0x1b8)][_0x400435(0x1d5)](_0x331b39)||this[_0x400435(0x1c9)](_0x33910d);}}}}}for(const _0xd38f9b of this[_0x400435(0x1f3)][_0x400435(0x1d6)]){const _0x352239=_0x4b2642(_0x400435(0x1e7),_0xd38f9b,_0x629b70);if(_0x352239){if(_0x5c212d&&_0x5c212d[_0x400435(0x1c3)]){this[_0x400435(0x1f3)][_0x400435(0x1e0)]=_0xd38f9b;const _0x50a6b5=_0x5c212d[_0x400435(0x1c3)][_0x400435(0x1c5)](!0x0);_0x596918(_0x50a6b5,_0x400435(0x1e7),_0xd38f9b),_0x596918(_0x50a6b5,_0x400435(0x1dc),_0x400435(0x1ce)),_0x3c4e5c(_0x352239,_0x50a6b5);}else _0x5be67e(_0x352239);}}if(_0x1a06e7(_0x400435(0x1dd),null,_0x629b70)[_0x400435(0x1c4)](_0x39b547=>{const _0xfa512e=_0x400435,_0x267f0f=_0x4cbff3(_0x39b547,_0xfa512e(0x1dd)),_0x28fc65=_0x4b2642(_0xfa512e(0x1e7),_0x267f0f,_0x629b70);_0x28fc65&&_0x8e35ba(_0x28fc65,_0x39b547);}),_0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x629b70)[_0x400435(0x1c4)](_0x185bf7=>{const _0xb1f092=_0x400435,_0x1e1fa6=this[_0xb1f092(0x1cc)](_0x185bf7);_0x596918(_0x185bf7,_0xb1f092(0x1e7),_0x1e1fa6),this[_0xb1f092(0x1f3)][_0xb1f092(0x1df)][_0xb1f092(0x1c8)](_0x1e1fa6);}),this[_0x400435(0x1d4)](_0x629b70),_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1b7)](_0x629b70,_0x5c212d[_0x400435(0x1f8)]||0x0),_0x5c212d&&_0x5c212d[_0x400435(0x1d8)]&&this[_0x400435(0x1f3)][_0x400435(0x1e0)]){let _0xd6d511=_0x4b2642(_0x400435(0x1e7),this[_0x400435(0x1f3)][_0x400435(0x1e0)],_0x629b70);for(;_0xd6d511;)_0x46dd1f(_0xd6d511),_0xd6d511=_0xd6d511[_0x400435(0x1b2)];}return{'parsedContent':_0x629b70,'newNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1df)],'modifiedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1b8)],'removedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1d6)]};}[_0x544b17(0x1da)](_0x415994,_0x58b189,_0x5179d1){const _0x18f17f=_0x544b17;for(const _0x1f3b28 of _0x58b189){const _0x53e43d=this[_0x18f17f(0x1cc)](_0x1f3b28);_0x596918(_0x1f3b28,_0x18f17f(0x1e7),_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1df)][_0x18f17f(0x1c8)](_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1e0)]=_0x53e43d;}const _0x5a96dc=_0x18f17f(0x1ca)===_0x5179d1||_0x18f17f(0x1be)===_0x5179d1?_0x58b189[_0x18f17f(0x1f0)]():_0x58b189;for(const _0x50a084 of _0x5a96dc)_0x5eb6f7(_0x415994,_0x50a084,_0x5179d1);}[_0x544b17(0x1ee)](_0x1c2be8,_0x2ebe6b){const _0x3b5265=_0x544b17;if(!_0x1c2be8)return;if(_0x35a25f(_0x1c2be8,_0x2ebe6b))return;const _0x2aea04=this[_0x3b5265(0x1cc)](_0x1c2be8);_0x596918(_0x2ebe6b,_0x3b5265(0x1e7),_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1b8)][_0x3b5265(0x1c8)](_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1e0)]=_0x2aea04,_0x3c4e5c(_0x1c2be8,_0x2ebe6b[_0x3b5265(0x1c5)](!0x0));}[_0x544b17(0x1e8)](_0x56eb4b,_0x345407,_0xb5706d){const _0x5000bc=_0x544b17,_0x2323f8=this[_0x5000bc(0x1ba)](_0x56eb4b,!0x1);if(_0x2323f8){const _0x467a04=this[_0x5000bc(0x1ec)](_0x2323f8),_0x594ef1=_0x4b2642(_0x5000bc(0x1e7),_0x467a04,_0xb5706d);if(_0x594ef1)return[_0x594ef1,_0x5000bc(0x1be)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x467a04);}const _0x336677=this[_0x5000bc(0x1c6)](_0x56eb4b,!0x1);if(_0x336677){const _0x3d71be=this[_0x5000bc(0x1ec)](_0x336677),_0x3a607c=_0x4b2642(_0x5000bc(0x1e7),_0x3d71be,_0xb5706d);if(_0x3a607c)return[_0x3a607c,_0x5000bc(0x1c1)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x3d71be);}return _0x345407?_0x56eb4b[_0x5000bc(0x1e2)]?this[_0x5000bc(0x1ed)](_0x56eb4b,_0xb5706d):[_0xb5706d[_0x5000bc(0x1c2)][_0xb5706d[_0x5000bc(0x1c2)][_0x5000bc(0x1f2)]-0x1],_0x5000bc(0x1be)]:[_0xb5706d[_0x5000bc(0x1c2)][0x0],_0x5000bc(0x1c1)];}[_0x544b17(0x1ed)](_0x184316,_0x599561){const _0x2f3fdb=_0x544b17,_0x1cdfe1=[],_0x29ace9=this[_0x2f3fdb(0x1ba)](_0x184316,!0x0);if(_0x29ace9){const _0x1c733a=this[_0x2f3fdb(0x1ec)](_0x29ace9),_0xef3ecb=_0x4b2642(_0x2f3fdb(0x1e7),_0x1c733a,_0x599561);_0xef3ecb&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0xef3ecb,_0x2f3fdb(0x1be)]);}const _0x285d73=this[_0x2f3fdb(0x1c6)](_0x184316,!0x0);if(_0x285d73){const _0x35dfb9=this[_0x2f3fdb(0x1ec)](_0x285d73),_0x2dd601=_0x4b2642(_0x2f3fdb(0x1e7),_0x35dfb9,_0x599561);_0x2dd601&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0x2dd601,_0x2f3fdb(0x1c1)]);}if(_0x1cdfe1[_0x2f3fdb(0x1f2)]>0x1)return _0xdbc387(_0x1cdfe1[0x0][0x0])<=_0xdbc387(_0x1cdfe1[0x1][0x0])?_0x1cdfe1[0x0]:_0x1cdfe1[0x1];return 0x1===_0x1cdfe1[_0x2f3fdb(0x1f2)]?_0x1cdfe1[0x0]:[_0x599561[_0x2f3fdb(0x1b9)],_0x2f3fdb(0x1be)];}[_0x544b17(0x1c6)](_0x471b68,_0x36a67c){const _0x1dbe1e=_0x544b17;let _0x364321=_0x471b68[_0x1dbe1e(0x1e2)],_0x5bccea=null,_0x21f489=!0x1;for(;_0x364321;){if(_0x30d6b1(_0x364321)){if(this[_0x1dbe1e(0x1e9)](_0x364321)&&(_0x5bccea=_0x364321),this[_0x1dbe1e(0x1b5)](_0x364321)&&_0x36a67c&&!_0x21f489){_0x21f489=!0x0,_0x364321=_0x364321[_0x1dbe1e(0x1e2)];continue;}break;}const _0x2528b1=_0x4cbff3(_0x364321,_0x1dbe1e(0x1e7));if(_0x2528b1&&_0x1dbe1e(0x1b4)!==_0x2528b1&&this[_0x1dbe1e(0x1ef)][_0x1dbe1e(0x1d7)](_0x2528b1)){_0x5bccea=_0x364321;break;}_0x364321=_0x364321[_0x1dbe1e(0x1e2)];}return _0x5bccea;}[_0x544b17(0x1ba)](_0x36535a,_0x135d94){const _0x46898c=_0x544b17;let _0x2aaf42=_0x36535a[_0x46898c(0x1f1)],_0x580739=null,_0x31c39e=!0x1;for(;_0x2aaf42;){if(_0x30d6b1(_0x2aaf42)){if(this[_0x46898c(0x1e9)](_0x2aaf42)&&(_0x580739=_0x2aaf42),this[_0x46898c(0x1b5)](_0x2aaf42)&&_0x135d94&&!_0x31c39e){_0x31c39e=!0x0,_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];continue;}break;}const _0x5cd679=_0x4cbff3(_0x2aaf42,_0x46898c(0x1e7));if(_0x5cd679&&_0x46898c(0x1b4)!==_0x5cd679&&this[_0x46898c(0x1ef)][_0x46898c(0x1d7)](_0x5cd679)){_0x580739=_0x2aaf42;break;}_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];}return _0x580739;}[_0x544b17(0x1d0)](_0xd83d5d){const _0x5426f5=_0x544b17;_0x2ed662(_0xd83d5d)&&_0x1a06e7(_0x5426f5(0x1e7),null,_0xd83d5d)[_0x5426f5(0x1c4)](_0x5504f2=>{const _0x3281d4=_0x5426f5;if(this[_0x3281d4(0x1d3)](_0x5504f2)&&!this[_0x3281d4(0x1c0)](_0x5504f2)){const _0x1e962f=_0x4cbff3(_0x5504f2,_0x3281d4(0x1e7));_0x596918(_0x5504f2,_0x3281d4(0x1dd),_0x1e962f),_0x596918(_0x5504f2,_0x3281d4(0x1e7),null);}});}[_0x544b17(0x1ec)](_0x1248ee){const _0x5456f6=_0x544b17;if(!_0x1248ee)return null;if(_0x2ed662(_0x1248ee))return _0x4cbff3(_0x1248ee,_0x5456f6(0x1e7));if(_0x30d6b1(_0x1248ee)){const _0x595a73=_0x44096d(_0x1248ee)[_0x5456f6(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x595a73&&_0x595a73[0x1])return _0x595a73[0x1];}return null;}[_0x544b17(0x1c9)](_0x5c6058){const _0x249851=_0x544b17;if(_0x30d6b1(_0x5c6058)){const _0x2cd525=_0x44096d(_0x5c6058)[_0x249851(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);_0x2cd525&&_0x2cd525[0x1]&&this[_0x249851(0x1f3)][_0x249851(0x1d6)][_0x249851(0x1c8)](_0x2cd525[0x1]);}}[_0x544b17(0x1cc)](_0x5d544b){const _0x4eb49b=_0x544b17;return this[_0x4eb49b(0x1d3)](_0x5d544b)?_0x4cbff3(_0x5d544b,_0x4eb49b(0x1e7)):this[_0x4eb49b(0x1d2)]();}[_0x544b17(0x1d4)](_0x213ee6){const _0x7b6e60=_0x544b17;_0x1f47a8(_0x213ee6)[_0x7b6e60(0x1bf)](_0x34b7ab=>this[_0x7b6e60(0x1e9)](_0x34b7ab)||this[_0x7b6e60(0x1b5)](_0x34b7ab))[_0x7b6e60(0x1c4)](_0x513e99=>{_0x5be67e(_0x513e99);});}[_0x544b17(0x1db)](_0x4e9c8a){const _0x48c5f0=_0x544b17,_0x4a31bc=_0x4e9c8a[_0x48c5f0(0x1c2)],_0x52457e=_0x4a31bc[_0x4a31bc[_0x48c5f0(0x1f2)]-0x1];_0x52457e&&_0x2ed662(_0x52457e)&&_0x596918(_0x52457e,_0x48c5f0(0x1bb),_0x48c5f0(0x1ce));}[_0x544b17(0x1b7)](_0x43e6b0,_0x1b93be){const _0x3ed052=_0x544b17,_0x5c9b89=_0x4b2642(_0x3ed052(0x1bb),_0x3ed052(0x1ce),_0x43e6b0);if(!_0x5c9b89)return;const _0x20f6ec=_0x5828b6(_0x5c9b89)[_0x3ed052(0x1e5)](0x0,-0x1),_0x4f41f9=_0x20f6ec[_0x3ed052(0x1f2)];let _0x3d20d5=_0x5c9b89;if(_0x4f41f9>_0x1b93be){let _0x558893=_0x4f41f9,_0x35a0de=null;for(;_0x558893>_0x1b93be&&_0x558893>=0x0;)_0x558893--,_0x35a0de=_0x20f6ec[_0x558893];_0x35a0de&&(_0x3d20d5=_0x35a0de,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x35a0de,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}else{if(_0x4f41f9<_0x1b93be){let _0x710362=_0x4f41f9,_0x2b7c4f=_0x5c9b89;for(;_0x710362<_0x1b93be;){const _0x15de40=_0x2b7c4f[_0x3ed052(0x1c2)][_0x3ed052(0x1bf)](_0x35ab19=>_0x2ed662(_0x35ab19));if(0x0===_0x15de40[_0x3ed052(0x1f2)])break;_0x710362++,_0x2b7c4f=_0x15de40[_0x15de40[_0x3ed052(0x1f2)]-0x1];}_0x2b7c4f&&(_0x3d20d5=_0x2b7c4f,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x2b7c4f,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}}let _0x2746bf=_0x3d20d5;for(;_0x2746bf;){for(;_0x2746bf[_0x3ed052(0x1e2)];)_0x2746bf=_0x2746bf[_0x3ed052(0x1e2)],_0x2ed662(_0x2746bf)&&_0x596918(_0x2746bf,_0x3ed052(0x1bb),_0x3ed052(0x1ce));_0x2746bf=_0x2746bf[_0x3ed052(0x1b2)];}}[_0x544b17(0x1e6)](_0x39e8cc){const _0x4937ce=_0x544b17;return Boolean(_0x4937ce(0x1b4)===_0x4cbff3(_0x39e8cc,_0x4937ce(0x1e7)));}[_0x544b17(0x1d3)](_0x2a7a76){const _0x272b5d=_0x544b17;return Boolean((_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7))||'')[_0x272b5d(0x1f2)]>0x0&&_0x272b5d(0x1b4)!==_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7)));}[_0x544b17(0x1e9)](_0x235d67){const _0x14349a=_0x544b17;return!!_0x235d67&&Boolean(_0x30d6b1(_0x235d67)&&_0x44096d(_0x235d67)[_0x14349a(0x1d1)](/removed[\s*-]data-id="[^"]+"/));}[_0x544b17(0x1c0)](_0x364e53){const _0x4a7da0=_0x544b17;let _0x4dcd4d=_0x364e53[_0x4a7da0(0x1b2)];for(;_0x4dcd4d;){if(_0x4cbff3(_0x4dcd4d,_0x4a7da0(0x1dd)))return!0x0;_0x4dcd4d=_0x4dcd4d[_0x4a7da0(0x1b2)];}return!0x1;}[_0x544b17(0x1b5)](_0x93627a){const _0x4de4fb=_0x544b17;return Boolean(_0x30d6b1(_0x93627a)&&_0x44096d(_0x93627a)[_0x4de4fb(0x1d1)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x2c2b(){const _0x5ad9be=['filter','data-wrapped-id','markUnstableElements','_findFallbackReferenceNode','cutAfterLastChange','has','replaceRemovedWith','afterend','parentNode','data-unstable','5293905boDSRw','_replaceNode','nextSibling','cloneNode','_getNodeDataId','166884aUVcHX','forEach','indexOf','push','lastChild','_hasWrappedParent','52608UytKdc','splice','4aeKgBn','true','_generateUid','slice','map','_removeSpecialComments','_isDelNode','length','1969OQEIYA','_touchedNodesState','markUnstableElementsDepth','reverse','trim','_markUnstableElements','nodeType','_findNextElementWithDataId','168MQEatb','_findPrevElementWithDataId','data-removed','_isExistingNode','_insertNodes','beforebegin','525TppEAG','data-id','1692464FgxBWH','invalidIds','match','modifiedIds','childNodes','includes','_isExistingContentComment','newIds','_markLastTagElementUnstable','6994840GcIqAb','afterbegin','merge','_getUid','_findReferenceNode','_existingDataIds','_storeDeletedElementIds','713191hPpUDl','27OqYaeE','_isNewNode','lastTouchedId','_markWrappedElements','removedIds','new-element','18402XNxBWC','previousSibling','from'];_0x2c2b=function(){return _0x5ad9be;};return _0x2c2b();}const _0x587997=_0x4e77;function _0x4e77(_0x492f40,_0x5bc410){const _0x2c2bf3=_0x2c2b();return _0x4e77=function(_0x4e77b0,_0x1ff907){_0x4e77b0=_0x4e77b0-0x122;let _0x345e53=_0x2c2bf3[_0x4e77b0];return _0x345e53;},_0x4e77(_0x492f40,_0x5bc410);}(function(_0xad695,_0xc68406){const _0x525d4f=_0x4e77,_0x1a9281=_0xad695();while(!![]){try{const _0x42030c=-parseInt(_0x525d4f(0x146))/0x1*(parseInt(_0x525d4f(0x167))/0x2)+-parseInt(_0x525d4f(0x14d))/0x3*(-parseInt(_0x525d4f(0x12e))/0x4)+-parseInt(_0x525d4f(0x15a))/0x5+-parseInt(_0x525d4f(0x165))/0x6*(-parseInt(_0x525d4f(0x134))/0x7)+-parseInt(_0x525d4f(0x136))/0x8*(-parseInt(_0x525d4f(0x147))/0x9)+-parseInt(_0x525d4f(0x13f))/0xa+parseInt(_0x525d4f(0x126))/0xb*(parseInt(_0x525d4f(0x15f))/0xc);if(_0x42030c===_0xc68406)break;else _0x1a9281['push'](_0x1a9281['shift']());}catch(_0x11dd5e){_0x1a9281['push'](_0x1a9281['shift']());}}}(_0x2c2b,0xd0a50));import{ObservableMixin as _0x4daaa5,uid as _0x178923}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x7afdfe,findByAttribute as _0x110819,getAttribute as _0x4566c1,isComment as _0x4f2611,isTag as _0x10d4f2,insertElement as _0x4794cf,moveElement as _0x1ac0c6,removeElement as _0x4b9ff1,replaceElement as _0x46fc58,serialize as _0x1e10d8,setAttribute as _0x5ab751,clone as _0x4ae774,findAllComments as _0x19b8cb,getParents as _0x502ca2,getNodeNestingLevel as _0x51b030,areNodesSame as _0x3ac447,removeElementsAfter as _0xad8381}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4daaa5(){[_0x587997(0x169)];[_0x587997(0x127)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x587997(0x144)]=new Set();constructor(_0x3afe41){const _0xe3b2e=_0x587997;super(),this[_0xe3b2e(0x169)]=_0x3afe41||_0x178923;}[_0x587997(0x141)](_0x2461c9,_0x4a82fa,_0x80acdb){const _0x19deaf=_0x587997,_0x22c4cf=_0x4ae774(_0x2461c9);if(0x0===_0x4a82fa[_0x19deaf(0x13a)][_0x19deaf(0x125)]){const _0x2a4b9c=[];return _0x7afdfe(_0x19deaf(0x135),_0x19deaf(0x14c),_0x22c4cf)[_0x19deaf(0x160)](_0x155840=>{const _0x17dbb0=_0x19deaf,_0x52632c=this[_0x17dbb0(0x169)]();_0x5ab751(_0x155840,_0x17dbb0(0x135),_0x52632c),_0x2a4b9c[_0x17dbb0(0x162)](_0x52632c);}),this[_0x19deaf(0x123)](_0x22c4cf),{'parsedContent':_0x22c4cf,'newNodeIds':_0x2a4b9c,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x80acdb&&_0x80acdb[_0x19deaf(0x152)]&&this[_0x19deaf(0x13e)](_0x22c4cf),this[_0x19deaf(0x127)][_0x19deaf(0x13d)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x139)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x14b)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x137)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x149)]=null,this[_0x19deaf(0x144)]=new Set(_0x7afdfe(_0x19deaf(0x135),null,_0x4a82fa)[_0x19deaf(0x122)](_0x36654c=>_0x4566c1(_0x36654c,_0x19deaf(0x135)))[_0x19deaf(0x150)](_0x531798=>!!_0x531798));let _0x11a3c4=-0x1,_0x5b6642=!0x1;const _0xe1d30d=_0x22c4cf[_0x19deaf(0x13a)],_0x37bc37=Array[_0x19deaf(0x14f)](_0xe1d30d)[_0x19deaf(0x150)](_0x5a15fa=>!(0x3===_0x5a15fa[_0x19deaf(0x12c)]&&''===_0x1e10d8(_0x5a15fa)[_0x19deaf(0x12a)]())),_0x5df4d6=_0x37bc37[_0x19deaf(0x125)];for(let _0xe241a3=0x0;_0xe241a3<_0x5df4d6;_0xe241a3++){const _0x3e7ad5=_0x37bc37[_0xe241a3],_0x1ebb79=_0x37bc37[_0xe241a3+0x1];if(this[_0x19deaf(0x148)](_0x3e7ad5)){if(-0x1===_0x11a3c4&&(_0x11a3c4=_0xe241a3),this[_0x19deaf(0x14a)](_0x3e7ad5),!this[_0x19deaf(0x148)](_0x1ebb79)){const [_0x539d6c,_0x36ec8f]=this[_0x19deaf(0x143)](_0x3e7ad5,_0x5b6642,_0x4a82fa);if(_0x539d6c){const _0x49974e=Array[_0x19deaf(0x14f)](_0x37bc37)[_0x19deaf(0x16a)](_0x11a3c4,_0xe241a3+0x1);this[_0x19deaf(0x132)](_0x539d6c,_0x49974e,_0x36ec8f),_0x11a3c4=-0x1;}}}else{if(this[_0x19deaf(0x13c)](_0x3e7ad5))_0x5b6642=!0x0;else{if(this[_0x19deaf(0x131)](_0x3e7ad5)){const _0x14c457=_0x4566c1(_0x3e7ad5,_0x19deaf(0x135));if(_0x14c457&&this[_0x19deaf(0x144)][_0x19deaf(0x155)](_0x14c457)){const _0x6727c1=_0x110819(_0x19deaf(0x135),_0x14c457,_0x4a82fa);this[_0x19deaf(0x15b)](_0x6727c1,_0x3e7ad5);}if(this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x13b)](_0x14c457)){const _0x5ecc17=this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x161)](_0x14c457);this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x166)](_0x5ecc17,0x1);}}else{if(this[_0x19deaf(0x124)](_0x3e7ad5)){const _0x41c329=_0x4566c1(_0x3e7ad5,_0x19deaf(0x135));this[_0x19deaf(0x127)][_0x19deaf(0x139)][_0x19deaf(0x13b)](_0x41c329)||this[_0x19deaf(0x145)](_0x3e7ad5);}}}}}for(const _0x4d9591 of this[_0x19deaf(0x127)][_0x19deaf(0x14b)]){const _0x376da7=_0x110819(_0x19deaf(0x135),_0x4d9591,_0x4a82fa);if(_0x376da7){if(_0x80acdb&&_0x80acdb[_0x19deaf(0x156)]){this[_0x19deaf(0x127)][_0x19deaf(0x149)]=_0x4d9591;const _0x175bc1=_0x80acdb[_0x19deaf(0x156)][_0x19deaf(0x15d)](!0x0);_0x5ab751(_0x175bc1,_0x19deaf(0x135),_0x4d9591),_0x5ab751(_0x175bc1,_0x19deaf(0x130),_0x19deaf(0x168)),_0x46fc58(_0x376da7,_0x175bc1);}else _0x4b9ff1(_0x376da7);}}if(_0x7afdfe(_0x19deaf(0x151),null,_0x4a82fa)[_0x19deaf(0x160)](_0xefb23f=>{const _0x1ab9be=_0x19deaf,_0x892960=_0x4566c1(_0xefb23f,_0x1ab9be(0x151)),_0x520a7d=_0x110819(_0x1ab9be(0x135),_0x892960,_0x4a82fa);_0x520a7d&&_0x1ac0c6(_0x520a7d,_0xefb23f);}),_0x7afdfe(_0x19deaf(0x135),_0x19deaf(0x14c),_0x4a82fa)[_0x19deaf(0x160)](_0x15d796=>{const _0x1f04fa=_0x19deaf,_0x8f2bed=this[_0x1f04fa(0x142)](_0x15d796);_0x5ab751(_0x15d796,_0x1f04fa(0x135),_0x8f2bed),this[_0x1f04fa(0x127)][_0x1f04fa(0x13d)][_0x1f04fa(0x162)](_0x8f2bed);}),this[_0x19deaf(0x123)](_0x4a82fa),_0x80acdb&&_0x80acdb[_0x19deaf(0x152)]&&this[_0x19deaf(0x12b)](_0x4a82fa,_0x80acdb[_0x19deaf(0x128)]||0x0),_0x80acdb&&_0x80acdb[_0x19deaf(0x154)]&&this[_0x19deaf(0x127)][_0x19deaf(0x149)]){let _0x23d845=_0x110819(_0x19deaf(0x135),this[_0x19deaf(0x127)][_0x19deaf(0x149)],_0x4a82fa);for(;_0x23d845;)_0xad8381(_0x23d845),_0x23d845=_0x23d845[_0x19deaf(0x158)];}return{'parsedContent':_0x4a82fa,'newNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x13d)],'modifiedNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x139)],'removedNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x14b)]};}[_0x587997(0x132)](_0x3b50b2,_0x53a2a4,_0x46163a){const _0x58f960=_0x587997;for(const _0x511107 of _0x53a2a4){const _0x269e8d=this[_0x58f960(0x142)](_0x511107);_0x5ab751(_0x511107,_0x58f960(0x135),_0x269e8d),this[_0x58f960(0x127)][_0x58f960(0x13d)][_0x58f960(0x162)](_0x269e8d),this[_0x58f960(0x127)][_0x58f960(0x149)]=_0x269e8d;}const _0xcb6f48=_0x58f960(0x140)===_0x46163a||_0x58f960(0x157)===_0x46163a?_0x53a2a4[_0x58f960(0x129)]():_0x53a2a4;for(const _0xc4563a of _0xcb6f48)_0x4794cf(_0x3b50b2,_0xc4563a,_0x46163a);}[_0x587997(0x15b)](_0xc2fa5,_0x2405b2){const _0x53cc93=_0x587997;if(!_0xc2fa5)return;if(_0x3ac447(_0xc2fa5,_0x2405b2))return;const _0xbe2248=this[_0x53cc93(0x142)](_0xc2fa5);_0x5ab751(_0x2405b2,_0x53cc93(0x135),_0xbe2248),this[_0x53cc93(0x127)][_0x53cc93(0x139)][_0x53cc93(0x162)](_0xbe2248),this[_0x53cc93(0x127)][_0x53cc93(0x149)]=_0xbe2248,_0x46fc58(_0xc2fa5,_0x2405b2[_0x53cc93(0x15d)](!0x0));}[_0x587997(0x143)](_0x3e88b4,_0x21f6a5,_0x537a4f){const _0x5f3be5=_0x587997,_0x33eb6d=this[_0x5f3be5(0x12f)](_0x3e88b4,!0x1);if(_0x33eb6d){const _0x14408a=this[_0x5f3be5(0x15e)](_0x33eb6d),_0x175bc3=_0x110819(_0x5f3be5(0x135),_0x14408a,_0x537a4f);if(_0x175bc3)return[_0x175bc3,_0x5f3be5(0x157)];this[_0x5f3be5(0x127)][_0x5f3be5(0x137)][_0x5f3be5(0x162)](_0x14408a);}const _0x4aa635=this[_0x5f3be5(0x12d)](_0x3e88b4,!0x1);if(_0x4aa635){const _0x2e4989=this[_0x5f3be5(0x15e)](_0x4aa635),_0x2c815a=_0x110819(_0x5f3be5(0x135),_0x2e4989,_0x537a4f);if(_0x2c815a)return[_0x2c815a,_0x5f3be5(0x133)];this[_0x5f3be5(0x127)][_0x5f3be5(0x137)][_0x5f3be5(0x162)](_0x2e4989);}return _0x21f6a5?_0x3e88b4[_0x5f3be5(0x15c)]?this[_0x5f3be5(0x153)](_0x3e88b4,_0x537a4f):[_0x537a4f[_0x5f3be5(0x13a)][_0x537a4f[_0x5f3be5(0x13a)][_0x5f3be5(0x125)]-0x1],_0x5f3be5(0x157)]:[_0x537a4f[_0x5f3be5(0x13a)][0x0],_0x5f3be5(0x133)];}[_0x587997(0x153)](_0x16b5b5,_0x571644){const _0x55dbe6=_0x587997,_0x2eddcf=[],_0x1ff93d=this[_0x55dbe6(0x12f)](_0x16b5b5,!0x0);if(_0x1ff93d){const _0x444ab7=this[_0x55dbe6(0x15e)](_0x1ff93d),_0x46fe90=_0x110819(_0x55dbe6(0x135),_0x444ab7,_0x571644);_0x46fe90&&_0x2eddcf[_0x55dbe6(0x162)]([_0x46fe90,_0x55dbe6(0x157)]);}const _0x2c85e8=this[_0x55dbe6(0x12d)](_0x16b5b5,!0x0);if(_0x2c85e8){const _0x5b461c=this[_0x55dbe6(0x15e)](_0x2c85e8),_0x194fe6=_0x110819(_0x55dbe6(0x135),_0x5b461c,_0x571644);_0x194fe6&&_0x2eddcf[_0x55dbe6(0x162)]([_0x194fe6,_0x55dbe6(0x133)]);}if(_0x2eddcf[_0x55dbe6(0x125)]>0x1)return _0x51b030(_0x2eddcf[0x0][0x0])<=_0x51b030(_0x2eddcf[0x1][0x0])?_0x2eddcf[0x0]:_0x2eddcf[0x1];return 0x1===_0x2eddcf[_0x55dbe6(0x125)]?_0x2eddcf[0x0]:[_0x571644[_0x55dbe6(0x163)],_0x55dbe6(0x157)];}[_0x587997(0x12d)](_0x5e975c,_0x4eff47){const _0x3702b0=_0x587997;let _0xf3908a=_0x5e975c[_0x3702b0(0x15c)],_0x416d90=null,_0x1a53c0=!0x1;for(;_0xf3908a;){if(_0x4f2611(_0xf3908a)){if(this[_0x3702b0(0x124)](_0xf3908a)&&(_0x416d90=_0xf3908a),this[_0x3702b0(0x13c)](_0xf3908a)&&_0x4eff47&&!_0x1a53c0){_0x1a53c0=!0x0,_0xf3908a=_0xf3908a[_0x3702b0(0x15c)];continue;}break;}const _0x2d342d=_0x4566c1(_0xf3908a,_0x3702b0(0x135));if(_0x2d342d&&_0x3702b0(0x14c)!==_0x2d342d&&this[_0x3702b0(0x144)][_0x3702b0(0x155)](_0x2d342d)){_0x416d90=_0xf3908a;break;}_0xf3908a=_0xf3908a[_0x3702b0(0x15c)];}return _0x416d90;}[_0x587997(0x12f)](_0x1c5230,_0x1a217c){const _0x1976c0=_0x587997;let _0x39ff3f=_0x1c5230[_0x1976c0(0x14e)],_0x3d293a=null,_0x2d865e=!0x1;for(;_0x39ff3f;){if(_0x4f2611(_0x39ff3f)){if(this[_0x1976c0(0x124)](_0x39ff3f)&&(_0x3d293a=_0x39ff3f),this[_0x1976c0(0x13c)](_0x39ff3f)&&_0x1a217c&&!_0x2d865e){_0x2d865e=!0x0,_0x39ff3f=_0x39ff3f[_0x1976c0(0x14e)];continue;}break;}const _0xf63890=_0x4566c1(_0x39ff3f,_0x1976c0(0x135));if(_0xf63890&&_0x1976c0(0x14c)!==_0xf63890&&this[_0x1976c0(0x144)][_0x1976c0(0x155)](_0xf63890)){_0x3d293a=_0x39ff3f;break;}_0x39ff3f=_0x39ff3f[_0x1976c0(0x14e)];}return _0x3d293a;}[_0x587997(0x14a)](_0x11bf4a){const _0x242e30=_0x587997;_0x10d4f2(_0x11bf4a)&&_0x7afdfe(_0x242e30(0x135),null,_0x11bf4a)[_0x242e30(0x160)](_0x535a47=>{const _0x50931f=_0x242e30;if(this[_0x50931f(0x131)](_0x535a47)&&!this[_0x50931f(0x164)](_0x535a47)){const _0x416a5a=_0x4566c1(_0x535a47,_0x50931f(0x135));_0x5ab751(_0x535a47,_0x50931f(0x151),_0x416a5a),_0x5ab751(_0x535a47,_0x50931f(0x135),null);}});}[_0x587997(0x15e)](_0x2519ae){const _0x284fb8=_0x587997;if(!_0x2519ae)return null;if(_0x10d4f2(_0x2519ae))return _0x4566c1(_0x2519ae,_0x284fb8(0x135));if(_0x4f2611(_0x2519ae)){const _0x55d841=_0x1e10d8(_0x2519ae)[_0x284fb8(0x138)](/removed[\s*-]data-id="([^"]+)"/);if(_0x55d841&&_0x55d841[0x1])return _0x55d841[0x1];}return null;}[_0x587997(0x145)](_0x13d84f){const _0x106566=_0x587997;if(_0x4f2611(_0x13d84f)){const _0x3ca39e=_0x1e10d8(_0x13d84f)[_0x106566(0x138)](/removed[\s*-]data-id="([^"]+)"/);_0x3ca39e&&_0x3ca39e[0x1]&&this[_0x106566(0x127)][_0x106566(0x14b)][_0x106566(0x162)](_0x3ca39e[0x1]);}}[_0x587997(0x142)](_0x1e73b5){const _0x90d037=_0x587997;return this[_0x90d037(0x131)](_0x1e73b5)?_0x4566c1(_0x1e73b5,_0x90d037(0x135)):this[_0x90d037(0x169)]();}[_0x587997(0x123)](_0x296856){const _0x5b6675=_0x587997;_0x19b8cb(_0x296856)[_0x5b6675(0x150)](_0x44b2ce=>this[_0x5b6675(0x124)](_0x44b2ce)||this[_0x5b6675(0x13c)](_0x44b2ce))[_0x5b6675(0x160)](_0x10ac8a=>{_0x4b9ff1(_0x10ac8a);});}[_0x587997(0x13e)](_0x28ca5b){const _0x1b8ac9=_0x587997,_0x29d2f9=_0x28ca5b[_0x1b8ac9(0x13a)],_0xad91ac=_0x29d2f9[_0x29d2f9[_0x1b8ac9(0x125)]-0x1];_0xad91ac&&_0x10d4f2(_0xad91ac)&&_0x5ab751(_0xad91ac,_0x1b8ac9(0x159),_0x1b8ac9(0x168));}[_0x587997(0x12b)](_0x2612c0,_0x1b9502){const _0x33d2be=_0x587997,_0x560705=_0x110819(_0x33d2be(0x159),_0x33d2be(0x168),_0x2612c0);if(!_0x560705)return;const _0x31938d=_0x502ca2(_0x560705)[_0x33d2be(0x16a)](0x0,-0x1),_0x25b0aa=_0x31938d[_0x33d2be(0x125)];let _0x2ad31f=_0x560705;if(_0x25b0aa>_0x1b9502){let _0x5b2704=_0x25b0aa,_0x1d402c=null;for(;_0x5b2704>_0x1b9502&&_0x5b2704>=0x0;)_0x5b2704--,_0x1d402c=_0x31938d[_0x5b2704];_0x1d402c&&(_0x2ad31f=_0x1d402c,_0x5ab751(_0x560705,_0x33d2be(0x159),null),_0x5ab751(_0x1d402c,_0x33d2be(0x159),_0x33d2be(0x168)));}else{if(_0x25b0aa<_0x1b9502){let _0x1beb30=_0x25b0aa,_0x5177b4=_0x560705;for(;_0x1beb30<_0x1b9502;){const _0x3690b8=_0x5177b4[_0x33d2be(0x13a)][_0x33d2be(0x150)](_0x6d89fa=>_0x10d4f2(_0x6d89fa));if(0x0===_0x3690b8[_0x33d2be(0x125)])break;_0x1beb30++,_0x5177b4=_0x3690b8[_0x3690b8[_0x33d2be(0x125)]-0x1];}_0x5177b4&&(_0x2ad31f=_0x5177b4,_0x5ab751(_0x560705,_0x33d2be(0x159),null),_0x5ab751(_0x5177b4,_0x33d2be(0x159),_0x33d2be(0x168)));}}let _0x4c4ddc=_0x2ad31f;for(;_0x4c4ddc;){for(;_0x4c4ddc[_0x33d2be(0x15c)];)_0x4c4ddc=_0x4c4ddc[_0x33d2be(0x15c)],_0x10d4f2(_0x4c4ddc)&&_0x5ab751(_0x4c4ddc,_0x33d2be(0x159),_0x33d2be(0x168));_0x4c4ddc=_0x4c4ddc[_0x33d2be(0x158)];}}[_0x587997(0x148)](_0x55f866){const _0x12da05=_0x587997;return Boolean(_0x12da05(0x14c)===_0x4566c1(_0x55f866,_0x12da05(0x135)));}[_0x587997(0x131)](_0x39f28e){const _0x3d6e7e=_0x587997;return Boolean((_0x4566c1(_0x39f28e,_0x3d6e7e(0x135))||'')[_0x3d6e7e(0x125)]>0x0&&_0x3d6e7e(0x14c)!==_0x4566c1(_0x39f28e,_0x3d6e7e(0x135)));}[_0x587997(0x124)](_0xcfc92f){const _0x899a79=_0x587997;return!!_0xcfc92f&&Boolean(_0x4f2611(_0xcfc92f)&&_0x1e10d8(_0xcfc92f)[_0x899a79(0x138)](/removed[\s*-]data-id="[^"]+"/));}[_0x587997(0x164)](_0x450040){const _0x4d33bc=_0x587997;let _0x1871c2=_0x450040[_0x4d33bc(0x158)];for(;_0x1871c2;){if(_0x4566c1(_0x1871c2,_0x4d33bc(0x151)))return!0x0;_0x1871c2=_0x1871c2[_0x4d33bc(0x158)];}return!0x1;}[_0x587997(0x13c)](_0x28c7f7){const _0x4e8caf=_0x587997;return Boolean(_0x4f2611(_0x28c7f7)&&_0x1e10d8(_0x28c7f7)[_0x4e8caf(0x138)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x289ae9=_0x4221;(function(_0x135d68,_0x3c1e1d){const _0x3d3d00=_0x4221,_0x535245=_0x135d68();while(!![]){try{const _0x4a74af=-parseInt(_0x3d3d00(0xad))/0x1*(-parseInt(_0x3d3d00(0xb9))/0x2)+parseInt(_0x3d3d00(0xb4))/0x3*(-parseInt(_0x3d3d00(0xa8))/0x4)+parseInt(_0x3d3d00(0xba))/0x5*(parseInt(_0x3d3d00(0xb5))/0x6)+-parseInt(_0x3d3d00(0xb3))/0x7*(parseInt(_0x3d3d00(0xaa))/0x8)+-parseInt(_0x3d3d00(0xac))/0x9+-parseInt(_0x3d3d00(0xbb))/0xa*(parseInt(_0x3d3d00(0xb8))/0xb)+parseInt(_0x3d3d00(0xaf))/0xc;if(_0x4a74af===_0x3c1e1d)break;else _0x535245['push'](_0x535245['shift']());}catch(_0x34c265){_0x535245['push'](_0x535245['shift']());}}}(_0x7115,0xdef0f));import{ObservableMixin as _0x4a5825}from'ckeditor5/src/utils.js';function _0x4221(_0xce0914,_0x5d697b){const _0x7115ab=_0x7115();return _0x4221=function(_0x422144,_0x503093){_0x422144=_0x422144-0xa8;let _0x2a438e=_0x7115ab[_0x422144];return _0x2a438e;},_0x4221(_0xce0914,_0x5d697b);}import{MarkdownGfmMdToHtml as _0x2c8f66}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x3d3be2}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4a5825(){[_0x289ae9(0xab)];constructor(){const _0x2a6888=_0x289ae9;super(),this[_0x2a6888(0xab)]=new _0x2c8f66();}[_0x289ae9(0xae)](_0x331039){const _0x2a69b7=_0x289ae9,_0x1fa092=this[_0x2a69b7(0xab)][_0x2a69b7(0xb2)](_0x331039);return this[_0x2a69b7(0xb1)](_0x1fa092);}[_0x289ae9(0xb1)](_0x44be9f){const _0x239f9f=_0x289ae9;return this[_0x239f9f(0xbc)](_0x44be9f);}[_0x289ae9(0xbc)](_0x138dd8){const _0x2315dd=_0x289ae9,_0x5b226d=_0x138dd8[_0x2315dd(0xb0)](/^\t+/gm,'\x20')[_0x2315dd(0xb0)](/\n*/g,'')[_0x2315dd(0xb0)](/\s+/g,'\x20')[_0x2315dd(0xb0)](/<[^>]*?$/g,''),_0x3aa567=_0x3d3be2(_0x2315dd(0xa9)+_0x5b226d+_0x2315dd(0xb7));return _0x3aa567[_0x2315dd(0xb6)]=_0x3aa567[_0x2315dd(0xb6)][0x0][_0x2315dd(0xb6)],_0x3aa567;}}function _0x7115(){const _0x42e2af=['</dummy>','11Uonrcb','200542PZvAzX','95UjPeOU','389290trariG','_parseHTML','2364RHHNdO','<dummy>','8DYeFQJ','_m2html','12081159xjBhVr','11sEvzpq','convertMarkdownToHTML','23212632HRfKTN','replace','parseAndNormalizeHTML','parse','4565981mANrvC','8703hoWGTQ','512796RWntlJ','children'];_0x7115=function(){return _0x42e2af;};return _0x7115();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x79db51,_0x309286){var _0x49ad1c=_0x5996,_0x139ef3=_0x79db51();while(!![]){try{var _0x1dc3b5=parseInt(_0x49ad1c(0x17e))/0x1*(-parseInt(_0x49ad1c(0x17c))/0x2)+parseInt(_0x49ad1c(0x181))/0x3+-parseInt(_0x49ad1c(0x184))/0x4*(parseInt(_0x49ad1c(0x18c))/0x5)+parseInt(_0x49ad1c(0x180))/0x6+parseInt(_0x49ad1c(0x185))/0x7*(parseInt(_0x49ad1c(0x187))/0x8)+parseInt(_0x49ad1c(0x183))/0x9*(-parseInt(_0x49ad1c(0x186))/0xa)+-parseInt(_0x49ad1c(0x188))/0xb*(parseInt(_0x49ad1c(0x189))/0xc);if(_0x1dc3b5===_0x309286)break;else _0x139ef3['push'](_0x139ef3['shift']());}catch(_0x3605cf){_0x139ef3['push'](_0x139ef3['shift']());}}}(_0x382d,0xccc6b));function _0x5996(_0x3a6dc2,_0x50d23e){var _0x382d85=_0x382d();return _0x5996=function(_0x5996d3,_0x2577ef){_0x5996d3=_0x5996d3-0x17c;var _0x465f05=_0x382d85[_0x5996d3];return _0x465f05;},_0x5996(_0x3a6dc2,_0x50d23e);}import{View as _0x360853}from'ckeditor5/src/ui.js';function _0x382d(){var _0x1a60f5=['AI_DISCLAIMER_TEXT','ck-ai-disclaimer','20Yaxvxm','934UllMit','setTemplate','1159pgckxq','ck-ai-disclaimer__content','100446vgOKzt','2573823FBigHT','div','506871zdRmbp','29528DUuhgc','1507513pDfKKV','20HoAvdp','56UUVJCB','9460143INfWsk','12EzTimW'];_0x382d=function(){return _0x1a60f5;};return _0x382d();}import{getTranslation as _0x75aa26}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x360853{constructor(_0x3cb831){var _0x20cb65=_0x5996;super(_0x3cb831),this[_0x20cb65(0x17d)]({'tag':_0x20cb65(0x182),'attributes':{'class':['ck',_0x20cb65(0x18b)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x20cb65(0x17f)]},'children':[{'text':_0x75aa26(_0x3cb831,_0x20cb65(0x18a))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f7ca8=_0x2a56;(function(_0x115683,_0x1867c5){const _0x5f489f=_0x2a56,_0x302bed=_0x115683();while(!![]){try{const _0x4df632=-parseInt(_0x5f489f(0x1b0))/0x1*(parseInt(_0x5f489f(0x1b9))/0x2)+-parseInt(_0x5f489f(0x1ae))/0x3*(parseInt(_0x5f489f(0x1a0))/0x4)+parseInt(_0x5f489f(0x1b2))/0x5+-parseInt(_0x5f489f(0x1c5))/0x6+-parseInt(_0x5f489f(0x1c3))/0x7*(parseInt(_0x5f489f(0x1ba))/0x8)+-parseInt(_0x5f489f(0x1a4))/0x9*(parseInt(_0x5f489f(0x1b3))/0xa)+parseInt(_0x5f489f(0x19e))/0xb*(parseInt(_0x5f489f(0x1be))/0xc);if(_0x4df632===_0x1867c5)break;else _0x302bed['push'](_0x302bed['shift']());}catch(_0xe7d0b2){_0x302bed['push'](_0x302bed['shift']());}}}(_0x1313,0x4ec3c));import{View as _0x16054a}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';function _0x1313(){const _0x517b73=['right','140px','4389301fnCVUm','width:\x20','3851934RLZzKf','_createSkeletonItems','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','539bktqDf','72px','110412zTjDCS','ck-ai-skeleton','150px','24px','277533lGEHys','44px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','map','250px','88px','128px','attributes','fill','width','63mWOHwG','center','116hRzPSG','40px','1036715VGyzkQ','70JVdSDc',';\x20height:\x20','100%','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','height','ck-ai-skeleton__item','2410NvRTUg','8VOHITn','left','div','tag','568068BNOhfQ','setTemplate','align'];_0x1313=function(){return _0x517b73;};return _0x1313();}export class AISkeletonView extends _0x16054a{constructor(_0x125d03,_0xcaa514){const _0x1f1b62=_0x2a56;super(_0x125d03),this[_0x1f1b62(0x1bf)]({'tag':_0x1f1b62(0x1bc),'attributes':{'class':['ck',_0x1f1b62(0x1a1)]},'children':this[_0x1f1b62(0x1c6)](_0xcaa514)});}[_0x2f7ca8(0x1c6)](_0x17f168){const _0xff6180=_0x2f7ca8,_0x51e3f2=['ck',_0xff6180(0x1b8)];return _0x17f168[_0xff6180(0x1a7)](_0x4c2348=>{const _0x4db2ed=_0xff6180;let _0x390230='';switch(_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1c0)]){case _0x4db2ed(0x1c1):_0x390230=_0x4db2ed(0x1a6);break;case _0x4db2ed(0x1af):_0x390230=_0x4db2ed(0x19d);break;case _0x4db2ed(0x1bb):_0x390230=_0x4db2ed(0x1b6);}return{'tag':_0x4c2348[_0x4db2ed(0x1bd)],'attributes':{'class':[..._0x51e3f2,_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1c7)]?_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1c7)]:''],'style':_0x4db2ed(0x1c4)+_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1ad)]+_0x4db2ed(0x1b4)+_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1b7)]+';'+_0x390230}};});}}function _0x2a56(_0x4ab0c7,_0xa04558){const _0x13132d=_0x1313();return _0x2a56=function(_0x2a56f5,_0xd9c629){_0x2a56f5=_0x2a56f5-0x19d;let _0x4f2d28=_0x13132d[_0x2a56f5];return _0x4f2d28;},_0x2a56(_0x4ab0c7,_0xa04558);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x19f),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1a8),'height':_0x2f7ca8(0x1b1),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1a9),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1a2),'height':_0x2f7ca8(0x1b1),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1c2),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1a8),'height':_0x2f7ca8(0x1b1),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1a9),'align':_0x2f7ca8(0x1c1)}}],'aiHistory':$e(0x5,_0x2f7ca8(0x1b5),_0x2f7ca8(0x1a5),_0x2f7ca8(0x1c1)),'aiChatResources':$e(0x8,_0x2f7ca8(0x1b5),_0x2f7ca8(0x1a3),_0x2f7ca8(0x1c1)),'aiReviewChecks':[{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1aa),'height':_0x2f7ca8(0x1a3),'align':_0x2f7ca8(0x1bb)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1a3),'align':_0x2f7ca8(0x1bb)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1aa),'height':_0x2f7ca8(0x1a3),'align':_0x2f7ca8(0x1bb)}}]};function $e(_0x28f63f,_0x5bd9b4,_0x10bffd,_0x5422dc){const _0x25dc84=_0x2f7ca8;return new Array(_0x28f63f)[_0x25dc84(0x1ac)](null)[_0x25dc84(0x1a7)](()=>({'tag':_0x25dc84(0x1bc),'attributes':{'width':_0x5bd9b4,'height':_0x10bffd,'align':_0x5422dc}}));}
|