@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/966.ai.js +5 -0
- package/build/ai.js +1 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/en.js +1 -0
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +387 -403
- package/dist/index.css +441 -413
- 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/lang/contexts.json +1 -0
- package/lang/translations/af.po +8 -4
- package/lang/translations/ar.po +8 -4
- package/lang/translations/ast.po +8 -4
- package/lang/translations/az.po +8 -4
- package/lang/translations/be.po +8 -4
- package/lang/translations/bg.po +8 -4
- package/lang/translations/bn.po +8 -4
- package/lang/translations/bs.po +8 -4
- package/lang/translations/ca.po +8 -4
- package/lang/translations/cs.po +8 -4
- package/lang/translations/da.po +8 -4
- package/lang/translations/de-ch.po +8 -4
- package/lang/translations/de.po +8 -4
- package/lang/translations/el.po +8 -4
- package/lang/translations/en-au.po +8 -4
- package/lang/translations/en-gb.po +8 -4
- package/lang/translations/en.po +8 -4
- package/lang/translations/eo.po +8 -4
- package/lang/translations/es-co.po +8 -4
- package/lang/translations/es.po +8 -4
- package/lang/translations/et.po +8 -4
- package/lang/translations/eu.po +8 -4
- package/lang/translations/fa.po +8 -4
- package/lang/translations/fi.po +8 -4
- package/lang/translations/fr.po +8 -4
- package/lang/translations/gl.po +8 -4
- package/lang/translations/gu.po +8 -4
- package/lang/translations/he.po +8 -4
- package/lang/translations/hi.po +8 -4
- package/lang/translations/hr.po +8 -4
- package/lang/translations/hu.po +8 -4
- package/lang/translations/hy.po +8 -4
- package/lang/translations/id.po +8 -4
- package/lang/translations/it.po +8 -4
- package/lang/translations/ja.po +8 -4
- package/lang/translations/jv.po +8 -4
- package/lang/translations/kk.po +8 -4
- package/lang/translations/km.po +8 -4
- package/lang/translations/kn.po +8 -4
- package/lang/translations/ko.po +8 -4
- package/lang/translations/ku.po +8 -4
- package/lang/translations/lt.po +8 -4
- package/lang/translations/lv.po +8 -4
- package/lang/translations/ms.po +8 -4
- package/lang/translations/nb.po +8 -4
- package/lang/translations/ne.po +8 -4
- package/lang/translations/nl.po +8 -4
- package/lang/translations/no.po +8 -4
- package/lang/translations/oc.po +8 -4
- package/lang/translations/pl.po +8 -4
- package/lang/translations/pt-br.po +8 -4
- package/lang/translations/pt.po +8 -4
- package/lang/translations/ro.po +8 -4
- package/lang/translations/ru.po +8 -4
- package/lang/translations/si.po +8 -4
- package/lang/translations/sk.po +8 -4
- package/lang/translations/sl.po +8 -4
- package/lang/translations/sq.po +8 -4
- package/lang/translations/sr-latn.po +8 -4
- package/lang/translations/sr.po +8 -4
- package/lang/translations/sv.po +8 -4
- package/lang/translations/th.po +8 -4
- package/lang/translations/ti.po +8 -4
- package/lang/translations/tk.po +8 -4
- package/lang/translations/tr.po +8 -4
- package/lang/translations/tt.po +8 -4
- package/lang/translations/ug.po +8 -4
- package/lang/translations/uk.po +8 -4
- package/lang/translations/ur.po +8 -4
- package/lang/translations/uz.po +8 -4
- package/lang/translations/vi.po +8 -4
- package/lang/translations/zh-cn.po +8 -4
- package/lang/translations/zh.po +8 -4
- package/package.json +21 -21
- 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.d.ts +12 -8
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +24 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +13 -0
- 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.d.ts +5 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- 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.d.ts +5 -0
- 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.d.ts +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.d.ts +324 -0
- package/src/aichatshortcuts/aichatshortcuts.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
- package/src/aiconfig.d.ts +7 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.d.ts +8 -0
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.d.ts +7 -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.d.ts +1 -0
- 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.d.ts +4 -0
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
- 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/types.d.ts +11 -2
- 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.d.ts +4 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +95 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
- package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
- package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
- 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.d.ts +5 -0
- 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/augmentation.d.ts +2 -0
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
- package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
- package/theme/aichat/aichat-controls/prompt-input.css +23 -0
- package/theme/aichat/aichat-controls.css +0 -19
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aiminitoolbar.css +0 -16
- package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
- package/theme/aieditorintegration/aitogglebutton.css +5 -11
- package/theme/aiquickactions/aiquickactions.css +6 -11
- package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
- package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
- package/theme/aireviewcore/aireviewcore.css +4 -4
- package/theme/aitabs/aitabsresizebutton.css +14 -0
- package/theme/aitranslate/aitranslate.css +4 -0
- package/theme/common/aibutton.css +56 -67
- package/theme/common/aiheader.css +1 -1
- package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
- package/theme/common/aisuggestionstreamablecontent.css +4 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2d4656=_0x4d57;(function(_0x28fa3f,_0x4d0689){const _0x4658e6=_0x4d57,_0x221f95=_0x28fa3f();while(!![]){try{const _0x358d47=parseInt(_0x4658e6(0x1a4))/0x1+parseInt(_0x4658e6(0x196))/0x2+parseInt(_0x4658e6(0x181))/0x3+parseInt(_0x4658e6(0x1ac))/0x4*(-parseInt(_0x4658e6(0x189))/0x5)+-parseInt(_0x4658e6(0x185))/0x6+-parseInt(_0x4658e6(0x184))/0x7*(parseInt(_0x4658e6(0x17b))/0x8)+parseInt(_0x4658e6(0x187))/0x9;if(_0x358d47===_0x4d0689)break;else _0x221f95['push'](_0x221f95['shift']());}catch(_0x2a8702){_0x221f95['push'](_0x221f95['shift']());}}}(_0xefa7,0xafe58));function _0x4d57(_0xf78783,_0x5c13a6){const _0xefa786=_0xefa7();return _0x4d57=function(_0x4d57dd,_0x253ae7){_0x4d57dd=_0x4d57dd-0x174;let _0x13d83e=_0xefa786[_0x4d57dd];return _0x13d83e;},_0x4d57(_0xf78783,_0x5c13a6);}import{AITextAdapter as _0x6a9f4a}from'./aitextadapter.js';import{AIRequestError as _0x8b3bb1}from'./aiadapter.js';function _0xefa7(){const _0x20089a=['get','Instruction:\x0a','resolve','OpenAITextAdapter','config','pluginName','ai.assistant.adapter.openAI.requestParameters','json','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','split','_requestParameters','AI_ERROR_MODERATION','371630YAPTTV','ai.assistant.adapter.openAI.apiUrl','system','parse','map','ai.assistant.adapter.openAI.requestHeaders','join','locale','_prepareRequestParameters','read','_readStreamableResponse','AI_ERROR_CONTEXT_LENGTH','length','body','83947DeHoEb','define','_apiUrl','sendRequest','context_length_exceeded','reject','content','choices','1888LLtKwC','delta','data:\x20','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','prepareMessages','POST','_isBufferIncomplete','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','gpt-4o','getReader','text','editor','message','stringify','stream','_cleanUpData','includes','_prepareRequestHeaders','https://api.openai.com/v1/chat/completions','[DONE]','53240YqiMZP','abortController','decode','_readStaticResponse','signal','Moderation','3161739tQOdst','_requestHeaders','user','791canbpL','1181238UpcezO','replace','6033789MtVEil','filter','3440QFpjQV'];_0xefa7=function(){return _0x20089a;};return _0xefa7();}import{getTranslation as _0x577445}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x6a9f4a{[_0x2d4656(0x1a6)];[_0x2d4656(0x182)];[_0x2d4656(0x194)];static get[_0x2d4656(0x18f)](){const _0x5e7f64=_0x2d4656;return _0x5e7f64(0x18d);}constructor(_0x243c51){const _0x926c52=_0x2d4656;super(_0x243c51),_0x243c51[_0x926c52(0x18e)][_0x926c52(0x1a5)](_0x926c52(0x197),_0x926c52(0x179)),_0x243c51[_0x926c52(0x18e)][_0x926c52(0x18a)](_0x926c52(0x190))||_0x243c51[_0x926c52(0x18e)][_0x926c52(0x1a5)](_0x926c52(0x190),{'model':_0x926c52(0x1b4),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x926c52(0x1a6)]=_0x243c51[_0x926c52(0x18e)][_0x926c52(0x18a)](_0x926c52(0x197)),this[_0x926c52(0x182)]=_0x243c51[_0x926c52(0x18e)][_0x926c52(0x18a)](_0x926c52(0x19b))||{},this[_0x926c52(0x194)]=_0x243c51[_0x926c52(0x18e)][_0x926c52(0x18a)](_0x926c52(0x190));}async[_0x2d4656(0x1a7)]({query:_0x39680c,context:_0x4b271d,onData:_0x4c2322,actionId:_0x55ccdf}){const _0x73c083=_0x2d4656,_0x9df905=this[_0x73c083(0x1b7)][_0x73c083(0x19d)],_0x47999a=await this[_0x73c083(0x1b0)](_0x39680c,_0x4b271d,_0x55ccdf),_0xbb1a79=await this[_0x73c083(0x178)](this[_0x73c083(0x182)],_0x55ccdf),_0x174844=await this[_0x73c083(0x19e)](this[_0x73c083(0x194)],_0x55ccdf),_0x269d49={'messages':_0x47999a,..._0x174844},_0x135a07={'method':_0x73c083(0x1b1),'headers':_0xbb1a79,'body':JSON[_0x73c083(0x174)](_0x269d49),'signal':this[_0x73c083(0x17c)][_0x73c083(0x17f)]},_0x326779=await fetch(this[_0x73c083(0x1a6)],_0x135a07);if(_0x326779['ok'])return _0x174844[_0x73c083(0x175)]?await this[_0x73c083(0x1a0)](_0x326779,_0x4c2322):await this[_0x73c083(0x17e)](_0x326779,_0x4c2322),Promise[_0x73c083(0x18c)]();{const _0x15a70c=await _0x326779[_0x73c083(0x1b6)]();return _0x15a70c[_0x73c083(0x177)](_0x73c083(0x1a8))?Promise[_0x73c083(0x1a9)](new _0x8b3bb1(_0x577445(_0x9df905,_0x73c083(0x1a1)))):_0x15a70c[_0x73c083(0x177)](_0x73c083(0x180))?Promise[_0x73c083(0x1a9)](new _0x8b3bb1(_0x577445(_0x9df905,_0x73c083(0x195)))):Promise[_0x73c083(0x1a9)](new Error(_0x15a70c));}}async[_0x2d4656(0x1b0)](_0x29c800,_0x572977,_0xb67eba){const _0x3866d1=_0x2d4656;let _0xbd1ae9,_0x427ed9;return _0x572977?(_0xbd1ae9=_0x3866d1(0x1b3),_0x427ed9=_0x3866d1(0x18b)+_0x29c800+_0x3866d1(0x192)+_0x572977):(_0xbd1ae9=_0x3866d1(0x1af),_0x427ed9=_0x29c800),[{'role':_0x3866d1(0x198),'content':_0xbd1ae9},{'role':_0x3866d1(0x183),'content':_0x427ed9}];}async[_0x2d4656(0x1a0)](_0x2b295b,_0x41a71e){const _0x14f3a9=_0x2d4656,_0x4baaae=_0x2b295b[_0x14f3a9(0x1a3)][_0x14f3a9(0x1b5)](),_0x47d7bb=new TextDecoder();let _0x44ee5d='',_0xd98219='',_0x3bcb7f='',_0x49824b=!0x1;for(;!_0x49824b;){const {done:_0x37eedb,value:_0x571fef}=await _0x4baaae[_0x14f3a9(0x19f)](),_0x1fa034=_0x44ee5d+_0x47d7bb[_0x14f3a9(0x17d)](_0x571fef);let _0x172cc1='';_0x49824b=_0x37eedb;try{_0x172cc1=this[_0x14f3a9(0x176)](_0x1fa034),_0x44ee5d='';}catch{_0x44ee5d=_0x1fa034;continue;}_0xd98219+=_0x172cc1,!_0x49824b&&this[_0x14f3a9(0x1b2)](_0xd98219)||_0xd98219&&(_0x3bcb7f+=_0xd98219,_0xd98219='',_0x41a71e(_0x3bcb7f));}return Promise[_0x14f3a9(0x18c)]();}async[_0x2d4656(0x17e)](_0x164a4d,_0x82b356){const _0x616e36=_0x2d4656;return _0x82b356((await _0x164a4d[_0x616e36(0x191)]())[_0x616e36(0x1ab)][0x0][_0x616e36(0x1b8)][_0x616e36(0x1aa)]),Promise[_0x616e36(0x18c)]();}[_0x2d4656(0x1b2)](_0x4b0ce4){const _0x18fa83=_0x2d4656,_0x614cd2=_0x4b0ce4[_0x18fa83(0x193)]('<')[_0x18fa83(0x1a2)]!==_0x4b0ce4[_0x18fa83(0x193)]('>')[_0x18fa83(0x1a2)],_0x16580b=_0x4b0ce4[_0x18fa83(0x1a2)]<0x1e;return _0x614cd2&&_0x16580b;}[_0x2d4656(0x176)](_0xfedf69){const _0x2b97f8=_0x2d4656;return _0xfedf69[_0x2b97f8(0x193)](/\n(?![^{]*\})/g)[_0x2b97f8(0x19a)](_0x5b7493=>_0x5b7493[_0x2b97f8(0x186)](_0x2b97f8(0x1ae),''))[_0x2b97f8(0x188)](_0x2ed3fb=>_0x2ed3fb&&_0x2ed3fb[_0x2b97f8(0x1a2)]>0x0&&_0x2b97f8(0x17a)!==_0x2ed3fb)[_0x2b97f8(0x19a)](_0x3a0ca7=>{const _0x411cf8=_0x2b97f8,{choices:_0x371bb1}=JSON[_0x411cf8(0x199)](_0x3a0ca7);if(_0x371bb1[0x0]?.[_0x411cf8(0x1ad)]?.[_0x411cf8(0x1aa)])return _0x371bb1[0x0][_0x411cf8(0x1ad)][_0x411cf8(0x1aa)];})[_0x2b97f8(0x188)](_0x4b0f81=>_0x4b0f81)[_0x2b97f8(0x19c)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb436fb=_0x1f66;(function(_0x14d1ac,_0x1c39ba){const _0x56b1a0=_0x1f66,_0x4d10c1=_0x14d1ac();while(!![]){try{const _0x29ed81=parseInt(_0x56b1a0(0x18c))/0x1+parseInt(_0x56b1a0(0x1b0))/0x2+parseInt(_0x56b1a0(0x169))/0x3*(-parseInt(_0x56b1a0(0x182))/0x4)+-parseInt(_0x56b1a0(0x173))/0x5+parseInt(_0x56b1a0(0x189))/0x6*(-parseInt(_0x56b1a0(0x167))/0x7)+parseInt(_0x56b1a0(0x154))/0x8+-parseInt(_0x56b1a0(0x16a))/0x9*(-parseInt(_0x56b1a0(0x15c))/0xa);if(_0x29ed81===_0x1c39ba)break;else _0x4d10c1['push'](_0x4d10c1['shift']());}catch(_0x9de595){_0x4d10c1['push'](_0x4d10c1['shift']());}}}(_0x28a6,0x6138e));function _0x1f66(_0x5e0405,_0x3d6703){const _0x28a6f4=_0x28a6();return _0x1f66=function(_0x1f6690,_0x2de54f){_0x1f6690=_0x1f6690-0x148;let _0x3deb54=_0x28a6f4[_0x1f6690];return _0x3deb54;},_0x1f66(_0x5e0405,_0x3d6703);}import{Plugin as _0x4a5335}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x4c79e3}from'./aiassistantui.js';import{AIAssistantEditing as _0x3bf1bf}from'./aiassistantediting.js';import{getTranslation as _0xa07786}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x4206ca}from'./utils/normalizecommandsconfig.js';function _0x28a6(){const _0x20c83e=['Generate\x20from\x20selection','18EVtDLV','professional','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','755520rsxWMD','translateChinese','Legal','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','French','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Professional','Translate','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','journalism','Continue','set','Spanish','Make\x20shorter','define','isOfficialPlugin','Edit\x20or\x20review','commands','German','Change\x20tone','makeLonger','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','config','translateHindi','Confident','pluginName','Translate\x20the\x20content\x20to\x20English\x20language.','editOrReview','improveWriting','translateGerman','translatePortuguese','changeTone','Improve\x20writing','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','1540810fpjOFL','Simplify\x20language','ai.assistant.preserveComments','generate','find','direct','filter','Summarize','includes','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','changeStyle','concat','ai.assistant.commands','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','simplifyLanguage','Portuguese','get','Business','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','5902936iZEnAC','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Arabic','push','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Casual','50650pDnkhB','requires','Friendly','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','ai.assistant.extraCommandGroups','translateFrench','Simplified\x20Chinese','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Poetic','isPremiumPlugin','1792063IfpChA','locale','3UBeSWW','657LZaOex','groupId','Direct','Make\x20longer','ai.assistant.removeCommands','summarize','legal','Translate\x20the\x20content\x20to\x20Arabic\x20language.','friendly','3459505zYkYwS','forEach','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','makeShorter','translateEnglish','continue','Journalism','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','English','confident','translate','Hindi','casual','3101548XJNVHx','AIAssistant','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','business','Change\x20style','translateSpanish'];_0x28a6=function(){return _0x20c83e;};return _0x28a6();}export class AIAssistant extends _0x4a5335{static get[_0xb436fb(0x15d)](){return[_0x4c79e3,_0x3bf1bf];}static get[_0xb436fb(0x1a7)](){const _0x1d01a6=_0xb436fb;return _0x1d01a6(0x183);}static get[_0xb436fb(0x19c)](){return!0x0;}static get[_0xb436fb(0x166)](){return!0x0;}constructor(_0x4c50d7){const _0x16fb60=_0xb436fb;super(_0x4c50d7);const _0x17a512=_0x4c50d7[_0x16fb60(0x1a4)],_0x240528=_0x4c50d7[_0x16fb60(0x168)];_0x17a512[_0x16fb60(0x19b)](_0x16fb60(0x1b2),!0x0),_0x17a512[_0x16fb60(0x19b)](_0x16fb60(0x14d),getDefaultAICommands(_0x240528)),_0x17a512[_0x16fb60(0x19b)](_0x16fb60(0x160),[]),_0x17a512[_0x16fb60(0x19b)](_0x16fb60(0x16e),[]);let _0xd9092e=_0x4206ca(_0x17a512[_0x16fb60(0x151)](_0x16fb60(0x14d)),_0x240528);const _0x11284c=_0x17a512[_0x16fb60(0x151)](_0x16fb60(0x160)),_0x32a40e=_0x17a512[_0x16fb60(0x151)](_0x16fb60(0x16e));_0x11284c[_0x16fb60(0x174)](_0x401272=>{const _0x2708fb=_0x16fb60,_0xf2bb66=_0xd9092e[_0x2708fb(0x1b4)](_0x2cfd96=>_0x2cfd96[_0x2708fb(0x16b)]===_0x401272[_0x2708fb(0x16b)]);_0xf2bb66?_0xf2bb66[_0x2708fb(0x19e)]=_0xf2bb66[_0x2708fb(0x19e)][_0x2708fb(0x14c)](_0x401272[_0x2708fb(0x19e)]):_0xd9092e[_0x2708fb(0x157)](_0x401272);}),_0xd9092e=_0xd9092e[_0x16fb60(0x1b6)](_0x122710=>!_0x32a40e[_0x16fb60(0x149)](_0x122710[_0x16fb60(0x16b)])),_0xd9092e[_0x16fb60(0x174)](_0x25f2ad=>{const _0x988636=_0x16fb60;_0x25f2ad[_0x988636(0x19e)]=_0x25f2ad[_0x988636(0x19e)][_0x988636(0x1b6)](_0xd2582d=>!_0x32a40e[_0x988636(0x149)](_0xd2582d['id']));}),_0x17a512[_0x16fb60(0x198)](_0x16fb60(0x14d),_0xd9092e);}}export function getDefaultAICommands(_0x45240f){const _0x4a7073=_0xb436fb;return[{'groupId':_0x4a7073(0x1a9),'groupLabel':_0xa07786(_0x45240f,_0x4a7073(0x19d)),'commands':[{'id':_0x4a7073(0x1aa),'label':_0xa07786(_0x45240f,_0x4a7073(0x1ae)),'prompt':_0x4a7073(0x15a)},{'id':_0x4a7073(0x178),'label':_0xa07786(_0x45240f,_0x4a7073(0x19a)),'prompt':_0x4a7073(0x159)},{'id':_0x4a7073(0x1a1),'label':_0xa07786(_0x45240f,_0x4a7073(0x16d)),'prompt':_0x4a7073(0x176)},{'id':_0x4a7073(0x14f),'label':_0xa07786(_0x45240f,_0x4a7073(0x1b1)),'prompt':_0x4a7073(0x1a2)}]},{'groupId':_0x4a7073(0x1b3),'groupLabel':_0xa07786(_0x45240f,_0x4a7073(0x188)),'commands':[{'id':_0x4a7073(0x16f),'label':_0xa07786(_0x45240f,_0x4a7073(0x148)),'prompt':_0x4a7073(0x1af)},{'id':_0x4a7073(0x17a),'label':_0xa07786(_0x45240f,_0x4a7073(0x197)),'prompt':_0x4a7073(0x15f)}]},{'groupId':_0x4a7073(0x1ad),'groupLabel':_0xa07786(_0x45240f,_0x4a7073(0x1a0)),'commands':[{'id':_0x4a7073(0x18a),'label':_0xa07786(_0x45240f,_0x4a7073(0x193)),'prompt':_0x4a7073(0x17c)},{'id':_0x4a7073(0x181),'label':_0xa07786(_0x45240f,_0x4a7073(0x15b)),'prompt':_0x4a7073(0x18b)},{'id':_0x4a7073(0x1b5),'label':_0xa07786(_0x45240f,_0x4a7073(0x16c)),'prompt':_0x4a7073(0x192)},{'id':_0x4a7073(0x17e),'label':_0xa07786(_0x45240f,_0x4a7073(0x1a6)),'prompt':_0x4a7073(0x14a)},{'id':_0x4a7073(0x172),'label':_0xa07786(_0x45240f,_0x4a7073(0x15e)),'prompt':_0x4a7073(0x195)}]},{'groupId':_0x4a7073(0x14b),'groupLabel':_0xa07786(_0x45240f,_0x4a7073(0x186)),'commands':[{'id':_0x4a7073(0x185),'label':_0xa07786(_0x45240f,_0x4a7073(0x152)),'prompt':_0x4a7073(0x164)},{'id':_0x4a7073(0x170),'label':_0xa07786(_0x45240f,_0x4a7073(0x18e)),'prompt':_0x4a7073(0x153)},{'id':_0x4a7073(0x196),'label':_0xa07786(_0x45240f,_0x4a7073(0x17b)),'prompt':_0x4a7073(0x184)},{'id':_0x4a7073(0x158),'label':_0xa07786(_0x45240f,_0x4a7073(0x165)),'prompt':_0x4a7073(0x14e)}]},{'groupId':_0x4a7073(0x17f),'groupLabel':_0xa07786(_0x45240f,_0x4a7073(0x194)),'commands':[{'id':_0x4a7073(0x179),'label':_0xa07786(_0x45240f,_0x4a7073(0x17d)),'prompt':_0x4a7073(0x1a8)},{'id':_0x4a7073(0x187),'label':_0xa07786(_0x45240f,_0x4a7073(0x199)),'prompt':_0x4a7073(0x18f)},{'id':_0x4a7073(0x1ac),'label':_0xa07786(_0x45240f,_0x4a7073(0x150)),'prompt':_0x4a7073(0x155)},{'id':_0x4a7073(0x1ab),'label':_0xa07786(_0x45240f,_0x4a7073(0x19f)),'prompt':_0x4a7073(0x175)},{'id':_0x4a7073(0x161),'label':_0xa07786(_0x45240f,_0x4a7073(0x191)),'prompt':_0x4a7073(0x190)},{'id':_0x4a7073(0x18d),'label':_0xa07786(_0x45240f,_0x4a7073(0x162)),'prompt':_0x4a7073(0x177)},{'id':_0x4a7073(0x1a5),'label':_0xa07786(_0x45240f,_0x4a7073(0x180)),'prompt':_0x4a7073(0x1a3)},{'id':_0x4a7073(0x163),'label':_0xa07786(_0x45240f,_0x4a7073(0x156)),'prompt':_0x4a7073(0x171)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x585f0d=_0x3b53;(function(_0x3c235e,_0x352b51){const _0x31007f=_0x3b53,_0x1a23cb=_0x3c235e();while(!![]){try{const _0x4bf938=parseInt(_0x31007f(0x21b))/0x1+-parseInt(_0x31007f(0x20b))/0x2+parseInt(_0x31007f(0x228))/0x3*(parseInt(_0x31007f(0x1f9))/0x4)+parseInt(_0x31007f(0x216))/0x5+-parseInt(_0x31007f(0x23b))/0x6*(-parseInt(_0x31007f(0x226))/0x7)+parseInt(_0x31007f(0x23e))/0x8*(-parseInt(_0x31007f(0x208))/0x9)+parseInt(_0x31007f(0x220))/0xa;if(_0x4bf938===_0x352b51)break;else _0x1a23cb['push'](_0x1a23cb['shift']());}catch(_0x276429){_0x1a23cb['push'](_0x1a23cb['shift']());}}}(_0x25f1,0x91482));function _0x3b53(_0x562d7e,_0x406593){const _0x25f105=_0x25f1();return _0x3b53=function(_0x3b53db,_0x2d3469){_0x3b53db=_0x3b53db-0x1f4;let _0x5b80e6=_0x25f105[_0x3b53db];return _0x5b80e6;},_0x3b53(_0x562d7e,_0x406593);}import{uid as _0x2257ce}from'ckeditor5/src/utils.js';import{Plugin as _0x382d20}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x359ca6}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xf397a5,ViewDataTransfer as _0xc6ab31}from'ckeditor5/src/engine.js';const w=globalThis[_0x585f0d(0x223)],f=_0x585f0d(0x249);export class AIAssistantEditing extends _0x382d20{static get[_0x585f0d(0x248)](){const _0x2798a2=_0x585f0d;return _0x2798a2(0x202);}static get[_0x585f0d(0x236)](){return!0x0;}static get[_0x585f0d(0x219)](){return!0x0;}[_0x585f0d(0x20e)](){const _0x21dd6d=_0x585f0d,{editor:_0x30ff56}=this,_0x210e5f=[_0x21dd6d(0x25c)];_0x30ff56[_0x21dd6d(0x232)][_0x21dd6d(0x244)](_0x21dd6d(0x204))&&_0x210e5f[_0x21dd6d(0x257)](_0x21dd6d(0x24a)),_0x30ff56[_0x21dd6d(0x24f)][_0x21dd6d(0x214)](_0x21dd6d(0x242))[_0x21dd6d(0x234)]({'model':f,'view':{'classes':_0x210e5f,'priority':0xc}}),_0x30ff56[_0x21dd6d(0x24f)][_0x21dd6d(0x214)](_0x21dd6d(0x242))[_0x21dd6d(0x1f4)]({'model':f,'view':(_0x5acfb2,{writer:_0x5f5526})=>{const _0x144dfa=_0x21dd6d;if(!_0x5acfb2[_0x144dfa(0x230)][_0x144dfa(0x218)])return null;const _0x2e0fe2=_0x5f5526[_0x144dfa(0x222)](_0x144dfa(0x246));return _0x5f5526[_0x144dfa(0x22c)]([_0x144dfa(0x25c),_0x144dfa(0x215)],_0x2e0fe2),_0x2e0fe2;}});}[_0x585f0d(0x21f)](){!async function(_0x28bd7a){const _0x4ea3f9=_0x395998([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x156286=0x3dffc4e1,_0x460125=0x3df84589^_0x156286,_0x31679e=window[_0x395998([0x44,0x61,0x74,0x65])][_0x395998([0x6e,0x6f,0x77])](),_0xf67e31=_0x28bd7a[_0x395998([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c725a=new window[(_0x395998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47ab4e=>{_0xf67e31[_0x395998([0x6f,0x6e,0x63,0x65])](_0x395998([0x72,0x65,0x61,0x64,0x79]),_0x47ab4e);}),_0x36cc2c={[_0x395998([0x6b,0x74,0x79])]:_0x395998([0x45,0x43]),[_0x395998([0x75,0x73,0x65])]:_0x395998([0x73,0x69,0x67]),[_0x395998([0x63,0x72,0x76])]:_0x395998([0x50,0x2d,0x32,0x35,0x36]),[_0x395998([0x78])]:_0x395998([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x395998([0x79])]:_0x395998([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x395998([0x61,0x6c,0x67])]:_0x395998([0x45,0x53,0x32,0x35,0x36])},_0x2b9a7c=_0xf67e31[_0x395998([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x395998([0x67,0x65,0x74])](_0x395998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cb0d1(){let _0x1dc12c,_0x2df8c1=null,_0x4a2962=null;try{if(_0x2b9a7c==_0x395998([0x47,0x50,0x4c]))return _0x395998([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dc12c=_0x32e9a7(),!_0x1dc12c)return _0x395998([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dc12c[_0x395998([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a2962=_0x519880(_0x1dc12c[_0x395998([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dc12c[_0x395998([0x6a,0x74,0x69])])),await _0x401b0c()?_0x34843c()?_0x2d7886()?_0x395998([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4978d4()?(_0x1dc12c[_0x395998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395998([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2df8c1=_0x297dbb(_0x395998([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45bc89()):_0x395998([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x395998([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x395998([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x395998([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d7886(){const _0x503754=[_0x395998([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x395998([0x74,0x72,0x69,0x61,0x6c])][_0x395998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc12c[_0x395998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31679e/0x3e8:0xe10*_0x460125;return _0x1dc12c[_0x395998([0x65,0x78,0x70])]<_0x503754;}function _0x34843c(){const _0x182bde=_0x1dc12c[_0x395998([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x182bde&&(!!_0x182bde[_0x395998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395998([0x2a]))||!!_0x182bde[_0x395998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395998([0x41,0x49])));}function _0x4978d4(){const _0x493bfd=_0x3b53,_0x4fa46a=_0x1dc12c[_0x395998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fa46a||0x0==_0x4fa46a[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ec734}=new URL(window[_0x395998([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x493bfd(0x206)]);if(_0x4fa46a[_0x395998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec734))return!0x0;const _0x5706e3=_0x4ec734[_0x395998([0x73,0x70,0x6c,0x69,0x74])](_0x395998([0x2e]));return _0x4fa46a[_0x395998([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51f529=>_0x51f529[_0x395998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395998([0x2a])))[_0x395998([0x6d,0x61,0x70])](_0x40e3c0=>_0x40e3c0[_0x395998([0x73,0x70,0x6c,0x69,0x74])](_0x395998([0x2e])))[_0x395998([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x398b81=>_0x398b81[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5706e3[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395998([0x6d,0x61,0x70])](_0x5af7ef=>Array(_0x5706e3[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5af7ef[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395998([0x66,0x69,0x6c,0x6c])](_0x5af7ef[0x0]===_0x395998([0x2a])?_0x395998([0x2a]):'')[_0x395998([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5af7ef))[_0x395998([0x73,0x6f,0x6d,0x65])](_0x5e56d3=>_0x5706e3[_0x395998([0x65,0x76,0x65,0x72,0x79])]((_0x51f71c,_0x4a295e)=>_0x5e56d3[_0x4a295e]===_0x51f71c||_0x5e56d3[_0x4a295e]===_0x395998([0x2a])));}function _0x45bc89(){return _0x2df8c1&&_0x4a2962?new window[(_0x395998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x232ac3,_0x49f1dd)=>{_0x2df8c1[_0x395998([0x74,0x68,0x65,0x6e])](_0x232ac3,_0x49f1dd),_0x4a2962[_0x395998([0x74,0x68,0x65,0x6e])](_0x1ef6e6=>{_0x1ef6e6!=_0x395998([0x56,0x61,0x6c,0x69,0x64])&&_0x232ac3(_0x1ef6e6);},_0x49f1dd);}):_0x2df8c1||_0x4a2962||_0x395998([0x56,0x61,0x6c,0x69,0x64]);}}function _0x519880(_0x2dbd35,_0xc1d560){return new window[(_0x395998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x480852=>{if(_0x5ad9dc())return _0x480852(_0x395998([0x56,0x61,0x6c,0x69,0x64]));_0x182394(),_0xf67e31[_0x395998([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x395998([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f873e=!0x1;const _0x3bfa9d=_0x2257ce();function _0x68ce0b(_0x1ffe05){return!!_0x1ffe05&&(typeof _0x1ffe05===_0x395998([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ffe05===_0x395998([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ffe05[_0x395998([0x74,0x68,0x65,0x6e])]===_0x395998([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ffe05[_0x395998([0x63,0x61,0x74,0x63,0x68])]===_0x395998([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x339999(_0x331c04){_0x33ddc2(_0x331c04)[_0x395998([0x74,0x68,0x65,0x6e])](_0x353d8a=>{if(!_0x353d8a||_0x353d8a[_0x395998([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x395998([0x6f,0x6b]))return _0x395998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d5492(_0xb6dfc7(_0x3bfa9d+_0xc1d560))!=_0x353d8a[_0x395998([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x395998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x395998([0x56,0x61,0x6c,0x69,0x64]);})[_0x395998([0x74,0x68,0x65,0x6e])](_0x4b1887=>(_0x53c6b5(),_0x4b1887),()=>{const _0x1e7b50=_0x5e8237();return null==_0x1e7b50?(_0x53c6b5(),_0x395998([0x56,0x61,0x6c,0x69,0x64])):_0x395998(_0x31679e-_0x1e7b50>(0x19f340e1^_0x156286)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x395998([0x74,0x68,0x65,0x6e])](_0x480852)[_0x395998([0x63,0x61,0x74,0x63,0x68])](()=>{_0x480852(_0x395998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2413d2=0x3dc92a61^_0x156286;function _0x53c6b5(){const _0x4ffad8=_0x395998([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d5492(_0xb6dfc7(_0x2dbd35)),_0x32295b=_0x18b7e2(_0x4d5492(window[_0x395998([0x4d,0x61,0x74,0x68])][_0x395998([0x63,0x65,0x69,0x6c])](_0x31679e/_0x2413d2)));window[_0x395998([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395998([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ffad8,_0x32295b);}function _0x5e8237(){const _0x344ca4=_0x395998([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d5492(_0xb6dfc7(_0x2dbd35)),_0x23ba9f=window[_0x395998([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395998([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x344ca4);return _0x23ba9f?window[_0x395998([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18b7e2(_0x23ba9f),0x10)*_0x2413d2:null;}function _0x33ddc2(_0x6c183a){return new window[(_0x395998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a2f6a,_0x5913b7)=>{_0x6c183a[_0x395998([0x74,0x68,0x65,0x6e])](_0x5a2f6a,_0x5913b7),window[_0x395998([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5913b7,0x3dfe1021^_0x156286);});}}_0xf67e31[_0x395998([0x6f,0x6e])](_0x395998([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe74b87,_0x5c69c6)=>{if(_0x5c69c6[0x0]!=_0x2dbd35)return _0x480852(_0x395998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c69c6[0x1]={..._0x5c69c6[0x1],[_0x395998([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bfa9d};},{[_0x395998([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395998([0x68,0x69,0x67,0x68])}),_0xf67e31[_0x395998([0x6f,0x6e])](_0x395998([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b24b7=>{_0x68ce0b(_0x5b24b7[_0x395998([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f873e=!0x0,_0x339999(_0x5b24b7[_0x395998([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x395998([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395998([0x6c,0x6f,0x77])}),_0x5c725a[_0x395998([0x74,0x68,0x65,0x6e])](()=>{_0x4f873e||_0x480852(_0x395998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ad9dc(){return _0xf67e31[_0x395998([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395998([0x76,0x69,0x65,0x77])][_0x395998([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x395998([0x61,0x75,0x74,0x6f]);}function _0x182394(){_0xf67e31[_0x395998([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395998([0x76,0x69,0x65,0x77])][_0x395998([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x395998([0x61,0x75,0x74,0x6f]);}}function _0x297dbb(_0x5081fb){const _0x147606=[new window[(_0x395998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f7d72=>setTimeout(_0x2f7d72,0x3df6fa2d^_0x156286)),_0x5c725a[_0x395998([0x74,0x68,0x65,0x6e])](()=>new window[(_0x395998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f38b=>{let _0x53b2df=0x0;_0xf67e31[_0x395998([0x6d,0x6f,0x64,0x65,0x6c])][_0x395998([0x6f,0x6e])](_0x395998([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c8ce0,_0x10060b)=>{_0x10060b[0x0][_0x395998([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53b2df++,_0x53b2df==(0x3dffc109^_0x156286)&&(_0x24f38b(),_0x2c8ce0[_0x395998([0x6f,0x66,0x66])]());});}))];return window[_0x395998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x395998([0x72,0x61,0x63,0x65])](_0x147606)[_0x395998([0x74,0x68,0x65,0x6e])](()=>_0x5081fb);}async function _0x48252d(){await _0x5c725a,_0xf67e31[_0x395998([0x6d,0x6f,0x64,0x65,0x6c])][_0x395998([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bf059,_0xf67e31[_0x395998([0x6d,0x6f,0x64,0x65,0x6c])][_0x395998([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bf059,_0xf67e31[_0x395998([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x395998([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xaefe1f(_0x4d881e){const _0xc8e3be=_0x56076b();_0xf67e31[_0xc8e3be]=_0x395998([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d881e,_0x4d881e!=_0x395998([0x56,0x61,0x6c,0x69,0x64])&&_0x48252d();}function _0x56076b(){const _0x298013=window[_0x395998([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x395998([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x395998([0x6e,0x6f,0x77])]())[_0x395998([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x395998([0x2e]),'');let _0x29dbc1=_0x395998([0x6e]);for(let _0xf0bbd6=0x0;_0xf0bbd6<_0x298013[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf0bbd6+=0x2){let _0x456a47=window[_0x395998([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x298013[_0x395998([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf0bbd6,_0xf0bbd6+0x2));_0x456a47>=_0x4ea3f9[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x456a47-=_0x4ea3f9[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29dbc1+=_0x4ea3f9[_0x456a47];}return _0x29dbc1;}function _0x32e9a7(){const _0x27e6a2=_0x2b9a7c[_0x395998([0x73,0x70,0x6c,0x69,0x74])](_0x395998([0x2e]));if(0x3!=_0x27e6a2[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d00fd(_0x27e6a2[0x1]);function _0x5d00fd(_0x5b0628){const _0x4e91af=_0x321f53(_0x5b0628);return _0x4e91af&&_0x28c4fb()?_0x4e91af:null;function _0x28c4fb(){const _0x28c047=_0x4e91af[_0x395998([0x6a,0x74,0x69])],_0xce5d2=window[_0x395998([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28c047[_0x395998([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28c047[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x315301={..._0x4e91af,[_0x395998([0x6a,0x74,0x69])]:_0x28c047[_0x395998([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28c047[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x315301[_0x395998([0x76,0x63])],_0xb6dfc7(_0x315301)==_0xce5d2;}}}async function _0x401b0c(){let _0x8bdcee=!0x0;try{const _0x559dff=_0x2b9a7c[_0x395998([0x73,0x70,0x6c,0x69,0x74])](_0x395998([0x2e])),[_0x2c082f,_0x476c55,_0x23a2fc]=_0x559dff;return _0xf866c7(_0x2c082f),await _0x286333(_0x2c082f,_0x476c55,_0x23a2fc),_0x8bdcee;}catch{return!0x1;}function _0xf866c7(_0x444c73){const _0x108dfa=_0x321f53(_0x444c73);_0x108dfa&&_0x108dfa[_0x395998([0x61,0x6c,0x67])]==_0x395998([0x45,0x53,0x32,0x35,0x36])||(_0x8bdcee=!0x1);}async function _0x286333(_0x232987,_0x34cd42,_0x3320e8){const _0x198148=window[_0x395998([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x395998([0x66,0x72,0x6f,0x6d])](_0xf07f2e(_0x3320e8),_0xe9697e=>_0xe9697e[_0x395998([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x563bd5=new window[(_0x395998([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x395998([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x232987+_0x395998([0x2e])+_0x34cd42),_0x4e2b9a=window[_0x395998([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x395998([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e2b9a)return;const _0x31fae1=await _0x4e2b9a[_0x395998([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x395998([0x6a,0x77,0x6b]),_0x36cc2c,{[_0x395998([0x6e,0x61,0x6d,0x65])]:_0x395998([0x45,0x43,0x44,0x53,0x41]),[_0x395998([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x395998([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x395998([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e2b9a[_0x395998([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x395998([0x6e,0x61,0x6d,0x65])]:_0x395998([0x45,0x43,0x44,0x53,0x41]),[_0x395998([0x68,0x61,0x73,0x68])]:{[_0x395998([0x6e,0x61,0x6d,0x65])]:_0x395998([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31fae1,_0x198148,_0x563bd5)||(_0x8bdcee=!0x1);}}function _0x321f53(_0xa42570){return _0xa42570[_0x395998([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x395998([0x65,0x79]))?JSON[_0x395998([0x70,0x61,0x72,0x73,0x65])](_0xf07f2e(_0xa42570)):null;}function _0xf07f2e(_0x182a1a){return window[_0x395998([0x61,0x74,0x6f,0x62])](_0x182a1a[_0x395998([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x395998([0x2b]))[_0x395998([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x395998([0x2f])));}function _0xb6dfc7(_0x44bcea){let _0x43332f=0x1505;function _0x464fe8(_0x23a208){for(let _0x3b6653=0x0;_0x3b6653<_0x23a208[_0x395998([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b6653++){const _0x1b8251=_0x23a208[_0x395998([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b6653);_0x43332f=(_0x43332f<<0x5)+_0x43332f+_0x1b8251,_0x43332f&=_0x43332f;}}function _0x380d28(_0x545bce){Array[_0x395998([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x545bce)?_0x545bce[_0x395998([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x380d28):_0x545bce&&typeof _0x545bce==_0x395998([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x395998([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x545bce)[_0x395998([0x73,0x6f,0x72,0x74])]()[_0x395998([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d9131,_0x452430])=>{_0x464fe8(_0x5d9131),_0x380d28(_0x452430);}):_0x464fe8(window[_0x395998([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x545bce));}return _0x380d28(_0x44bcea),_0x43332f>>>0x0;}function _0x4d5492(_0x4c770a){return _0x4c770a[_0x395998([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x395998([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x395998([0x30]));}function _0x18b7e2(_0x226185){return _0x226185[_0x395998([0x73,0x70,0x6c,0x69,0x74])]('')[_0x395998([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x395998([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bf059(){}function _0x395998(_0x11586f){const _0x110785=_0x3b53;return _0x11586f[_0x110785(0x237)](_0x30b07f=>String[_0x110785(0x260)](_0x30b07f))[_0x110785(0x207)]('');}_0xaefe1f(await _0x4cb0d1());}(this);}[_0x585f0d(0x20f)](){const _0x20e728=_0x585f0d,_0x1fd34d=this[_0x20e728(0x25e)][_0x20e728(0x212)];_0x1fd34d[_0x20e728(0x245)](_0x2138ec=>{const _0x22b540=_0x20e728,_0x498a55=_0x1fd34d[_0x22b540(0x20d)][_0x22b540(0x231)][_0x22b540(0x1f7)]();let _0x1552d7=0x0;for(const _0x5e842b of _0x498a55){const _0x27b60c=f+':'+_0x1552d7;if(_0x1fd34d[_0x22b540(0x252)][_0x22b540(0x1fa)](_0x27b60c))_0x2138ec[_0x22b540(0x24c)](_0x27b60c,{'range':_0x5e842b});else{if(_0x5e842b[_0x22b540(0x255)][_0x22b540(0x259)]){const _0x1c8b1b=_0x5e842b[_0x22b540(0x255)][_0x22b540(0x205)](({item:_0x42424b})=>!_0x1fd34d[_0x22b540(0x21a)][_0x22b540(0x211)](_0x42424b),{'boundaries':_0x5e842b});_0x2138ec[_0x22b540(0x247)](_0x27b60c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2138ec[_0x22b540(0x22f)](_0x1c8b1b,_0x5e842b[_0x22b540(0x24e)])});}else _0x2138ec[_0x22b540(0x247)](_0x27b60c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5e842b});}_0x1552d7++;}});}[_0x585f0d(0x213)](){const _0x5efcaa=_0x585f0d,_0x36e77f=this[_0x5efcaa(0x25e)][_0x5efcaa(0x212)],_0x5e8437=Array[_0x5efcaa(0x200)](this[_0x5efcaa(0x25e)][_0x5efcaa(0x212)][_0x5efcaa(0x252)][_0x5efcaa(0x1fd)](f));_0x5e8437[_0x5efcaa(0x21e)]&&_0x36e77f[_0x5efcaa(0x245)](_0xc05583=>{const _0x36b18b=_0x5efcaa;_0x5e8437[_0x36b18b(0x253)](_0x1689b6=>{const _0x537ace=_0x36b18b;_0xc05583[_0x537ace(0x241)](_0x1689b6);});});}[_0x585f0d(0x261)](_0x3c29bb,_0x5da45d){const _0x701220=_0x585f0d,_0x4555d0=this[_0x701220(0x1f8)](),_0x22bb24=_0x5da45d||_0x4555d0[_0x701220(0x22d)]();this[_0x701220(0x25e)][_0x701220(0x212)][_0x701220(0x22b)](_0x22bb24)&&this[_0x701220(0x25e)][_0x701220(0x212)][_0x701220(0x245)](_0x2dd7e7=>{const _0x27f049=_0x701220;this[_0x27f049(0x213)](),_0x5da45d||this[_0x27f049(0x20c)](_0x2dd7e7,_0x4555d0),this[_0x27f049(0x25d)]({'insertAt':_0x22bb24,'writer':_0x2dd7e7,'html':_0x3c29bb});});}[_0x585f0d(0x240)](_0x5c17f6){const _0x8cca3e=_0x585f0d,{model:_0x5508c7}=this[_0x8cca3e(0x25e)],_0x2a2bb7=this[_0x8cca3e(0x1f8)]();_0x5508c7[_0x8cca3e(0x245)](()=>{const _0x1020ca=_0x8cca3e,_0xf90ef5=this[_0x1020ca(0x20a)](_0x5c17f6,_0x2a2bb7)||this[_0x1020ca(0x25f)](_0x2a2bb7);this[_0x1020ca(0x261)](_0x5c17f6,_0xf90ef5);});}[_0x585f0d(0x1f8)](){const _0x405503=_0x585f0d,_0x4c66c7=this[_0x405503(0x25e)][_0x405503(0x212)],_0x1078d3=Array[_0x405503(0x200)](_0x4c66c7[_0x405503(0x252)][_0x405503(0x1fd)](f))[_0x405503(0x237)](_0x2033ae=>_0x2033ae[_0x405503(0x256)]());return _0x4c66c7[_0x405503(0x209)](_0x1078d3);}[_0x585f0d(0x25d)]({writer:_0x2ca3a3,html:_0x1c0298,insertAt:_0x107d3f}){const _0xa5cafc=_0x585f0d,{view:_0x4b9bc5}=this[_0xa5cafc(0x25e)][_0xa5cafc(0x233)],_0x114c17=this[_0xa5cafc(0x25e)][_0xa5cafc(0x243)][_0xa5cafc(0x244)](_0x359ca6),_0x2ba708=new w();_0x2ba708[_0xa5cafc(0x227)](_0xa5cafc(0x239),_0x1c0298);const _0x10df20=new ClipboardEvent(_0xa5cafc(0x217),{'clipboardData':_0x2ba708}),_0x1dc024=new _0xf397a5(_0x4b9bc5,_0x10df20,{'dataTransfer':new _0xc6ab31(_0x2ba708)});_0x2ca3a3[_0xa5cafc(0x22e)](_0x107d3f);const _0x5a86e8=(_0x1cb754,_0x336246)=>{const _0x446eb3=_0xa5cafc;_0x336246[_0x446eb3(0x225)]&&_0x2ca3a3[_0x446eb3(0x22e)](_0x336246[_0x446eb3(0x225)]);};_0x114c17[_0xa5cafc(0x24b)](_0xa5cafc(0x201),_0x5a86e8,{'priority':_0xa5cafc(0x235)}),_0x4b9bc5[_0xa5cafc(0x20d)][_0xa5cafc(0x1fb)](_0xa5cafc(0x217),_0x1dc024),_0x114c17[_0xa5cafc(0x251)](_0xa5cafc(0x201),_0x5a86e8);}[_0x585f0d(0x25f)](_0x5bbbd4){const _0x42306b=_0x585f0d,{model:_0x238829}=this[_0x42306b(0x25e)],_0x34f286=Array[_0x42306b(0x200)](_0x5bbbd4[_0x42306b(0x23a)]());return _0x34f286[_0x42306b(0x21e)]?_0x238829[_0x42306b(0x254)](_0x34f286[_0x42306b(0x23d)]()):_0x5bbbd4[_0x42306b(0x21d)]();}[_0x585f0d(0x20a)](_0x447a54,_0x2cdd2d){const _0x4a7e39=_0x585f0d,{model:_0x7e2cf3,plugins:_0x2b80ee}=this[_0x4a7e39(0x25e)];if(_0x2b80ee[_0x4a7e39(0x1fa)](_0x4a7e39(0x1fe))){const _0x5be5dd=_0x2b80ee[_0x4a7e39(0x244)](_0x4a7e39(0x1fe))[_0x4a7e39(0x23c)](_0x2cdd2d);if(_0x5be5dd[_0x4a7e39(0x21e)]){const _0x81fd13=this[_0x4a7e39(0x24d)](_0x447a54),_0x25f0da=this[_0x4a7e39(0x203)](_0x5be5dd,_0x81fd13);return _0x7e2cf3[_0x4a7e39(0x25b)](_0x25f0da,0x0);}}return null;}[_0x585f0d(0x24d)](_0xa94548){const _0x58335a=_0x585f0d,_0x36b86d=this[_0x58335a(0x25e)][_0x58335a(0x243)][_0x58335a(0x244)](_0x58335a(0x1fe)),_0xf642d8=this[_0x58335a(0x25e)][_0x58335a(0x21c)][_0x58335a(0x22a)](_0xa94548),_0x442fc5=Array[_0x58335a(0x200)](_0xf642d8[_0x58335a(0x1f6)]())[_0x58335a(0x1ff)](_0x4214fa=>_0x4214fa['is'](_0x58335a(0x238),_0x58335a(0x224)));let _0x5d47e8=0x0;return _0x442fc5[_0x58335a(0x253)](_0x48fa2f=>{const _0x33e84d=_0x58335a;_0x5d47e8+=_0x36b86d[_0x33e84d(0x23f)](_0x48fa2f);}),_0x5d47e8;}[_0x585f0d(0x203)](_0x45d0db,_0x17227f){const _0x236e08=_0x585f0d,_0x179159=this[_0x236e08(0x25e)][_0x236e08(0x243)][_0x236e08(0x244)](_0x236e08(0x1fe)),_0x5ec6ef=_0x179159[_0x236e08(0x210)](_0x45d0db),_0x183e89=_0x179159[_0x236e08(0x25a)](_0x45d0db),_0xac7b01=_0x5ec6ef[_0x236e08(0x1f5)]+0x1,_0x4fa057=_0x183e89[_0x236e08(0x1fc)],_0x116bf9=_0x45d0db[0x0][_0x236e08(0x229)](_0x236e08(0x224));for(let _0x52073a=0x0;_0x52073a<_0x17227f;_0x52073a++)_0x179159[_0x236e08(0x258)](_0x116bf9,{'at':_0xac7b01});return _0x116bf9[_0x236e08(0x250)](_0xac7b01)[_0x236e08(0x250)](_0x4fa057);}[_0x585f0d(0x20c)](_0x264acc,_0x3541f2){const _0x18f7e5=_0x585f0d,{plugins:_0x291842}=this[_0x18f7e5(0x25e)],{model:_0x46514f}=_0x264acc;if(!_0x291842[_0x18f7e5(0x1fa)](_0x18f7e5(0x1fe)))return;_0x291842[_0x18f7e5(0x244)](_0x18f7e5(0x1fe))[_0x18f7e5(0x23c)](_0x3541f2)[_0x18f7e5(0x21e)]&&_0x46514f[_0x18f7e5(0x221)](_0x3541f2);}}function _0x25f1(){const _0x531078=['editingDowncast','plugins','get','change','span','addMarker','pluginName','ai-ui','ck-ai-assistant-ui_theme','once','updateMarker','_getTableRowCountFromContent','end','conversion','getChild','off','markers','forEach','createPositionAfter','start','getRange','push','insertRows','isAtEnd','getColumnIndexes','createPositionAt','ck-fake-ai-selection','_pasteHTMLUsingClipboard','editor','_getDefaultInsertBelowPosition','fromCharCode','insertContent','markerToElement','last','getChildren','getRanges','_getAISelection','430044IxVNNt','has','fire','first','getMarkersGroup','TableUtils','filter','from','contentInsertion','AIAssistantEditing','_createEmptyTableRows','ai.assistant.useTheme','getLastMatchingPosition','href','join','18kKVGVo','createSelection','_prepareTableInsertBelowPosition','477612DewSUX','_resetContentOfSelectedTableCells','document','init','showFakeVisualSelection','getRowIndexes','isContent','model','hideFakeVisualSelection','for','ck-fake-ai-selection_collapsed','1423360OvWbBp','paste','isCollapsed','isPremiumPlugin','schema','155866Wiygzm','data','getLastPosition','length','afterInit','8951160lnFozs','deleteContent','createUIElement','DataTransfer','table','resultRange','7WYIAZf','setData','3DxrHsZ','findAncestor','parse','canEditAt','addClass','getFirstRange','setSelection','createRange','markerRange','selection','config','editing','markerToHighlight','lowest','isOfficialPlugin','map','element','text/html','getSelectedBlocks','2243598yMvYzb','getSelectedTableCells','pop','3932872CIODTL','getRows','insertContentBelow','removeMarker'];_0x25f1=function(){return _0x531078;};return _0x25f1();}
|
|
23
|
+
const _0x245315=_0x42de;(function(_0x1ef8f7,_0x1b7730){const _0x33eaca=_0x42de,_0x45c2e9=_0x1ef8f7();while(!![]){try{const _0x3d9e9d=parseInt(_0x33eaca(0x214))/0x1*(parseInt(_0x33eaca(0x20a))/0x2)+parseInt(_0x33eaca(0x22d))/0x3*(-parseInt(_0x33eaca(0x1e9))/0x4)+parseInt(_0x33eaca(0x21b))/0x5+-parseInt(_0x33eaca(0x249))/0x6*(-parseInt(_0x33eaca(0x243))/0x7)+-parseInt(_0x33eaca(0x21e))/0x8*(parseInt(_0x33eaca(0x238))/0x9)+parseInt(_0x33eaca(0x1e8))/0xa*(parseInt(_0x33eaca(0x23f))/0xb)+-parseInt(_0x33eaca(0x225))/0xc;if(_0x3d9e9d===_0x1b7730)break;else _0x45c2e9['push'](_0x45c2e9['shift']());}catch(_0x7f6f15){_0x45c2e9['push'](_0x45c2e9['shift']());}}}(_0x30c8,0xcd00f));import{uid as _0x4927f6}from'ckeditor5/src/utils.js';function _0x30c8(){const _0x26d30c=['ai.assistant.useTheme','isCollapsed','createPositionAfter','5427150UbXORT','push','getLastMatchingPosition','href','markerRange','getMarkersGroup','createPositionAt','getLastPosition','pluginName','ck-fake-ai-selection_collapsed','DataTransfer','start','addClass','element','for','1150JjzatS','4VrGRzq','pop','table','addMarker','insertRows','conversion','deleteContent','createRange','lowest','join','plugins','_getDefaultInsertBelowPosition','schema','config','document','insertContentBelow','isContent','getSelectedBlocks','resultRange','afterInit','_resetContentOfSelectedTableCells','contentInsertion','getFirstRange','getSelectedTableCells','AIAssistantEditing','insertContent','init','fire','ck-ai-assistant-ui_theme','_createEmptyTableRows','selection','getChild','showFakeVisualSelection','2egWIOh','getRange','first','canEditAt','editor','markerToHighlight','TableUtils','setSelection','filter','markerToElement','1402855KxCNld','updateMarker','_pasteHTMLUsingClipboard','paste','has','change','isAtEnd','7027420dRJUFn','getChildren','isOfficialPlugin','2120ohbKzJ','markers','parse','getColumnIndexes','createUIElement','ai-ui','fromCharCode','5332548xiScnK','_getAISelection','editingDowncast','from','_prepareTableInsertBelowPosition','createSelection','forEach','span','4467285VaARte','editing','isPremiumPlugin','ck-fake-ai-selection','model','length','removeMarker','findAncestor','getRanges','setData','map','35109nushLP','hideFakeVisualSelection','end','getRows','off','once','last','8998UpIEAH','_getTableRowCountFromContent','getRowIndexes','text/html','7KtPOoY','get','data'];_0x30c8=function(){return _0x26d30c;};return _0x30c8();}function _0x42de(_0x237fb9,_0x18206d){const _0x30c8c4=_0x30c8();return _0x42de=function(_0x42decf,_0xd34a60){_0x42decf=_0x42decf-0x1e0;let _0x14a68f=_0x30c8c4[_0x42decf];return _0x14a68f;},_0x42de(_0x237fb9,_0x18206d);}import{Plugin as _0x14dd7e}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x25436c}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x5f8c62,ViewDataTransfer as _0x560048}from'ckeditor5/src/engine.js';const w=globalThis[_0x245315(0x1e3)],f=_0x245315(0x223);export class AIAssistantEditing extends _0x14dd7e{static get[_0x245315(0x1e1)](){const _0x28ef23=_0x245315;return _0x28ef23(0x201);}static get[_0x245315(0x21d)](){return!0x0;}static get[_0x245315(0x22f)](){return!0x0;}[_0x245315(0x203)](){const _0xa1b0cc=_0x245315,{editor:_0x31aa4d}=this,_0x4596eb=[_0xa1b0cc(0x230)];_0x31aa4d[_0xa1b0cc(0x1f6)][_0xa1b0cc(0x244)](_0xa1b0cc(0x246))&&_0x4596eb[_0xa1b0cc(0x24a)](_0xa1b0cc(0x205)),_0x31aa4d[_0xa1b0cc(0x1ee)][_0xa1b0cc(0x1e7)](_0xa1b0cc(0x227))[_0xa1b0cc(0x20f)]({'model':f,'view':{'classes':_0x4596eb,'priority':0xc}}),_0x31aa4d[_0xa1b0cc(0x1ee)][_0xa1b0cc(0x1e7)](_0xa1b0cc(0x227))[_0xa1b0cc(0x213)]({'model':f,'view':(_0x28f5b0,{writer:_0x17be97})=>{const _0x3a9bbd=_0xa1b0cc;if(!_0x28f5b0[_0x3a9bbd(0x24d)][_0x3a9bbd(0x247)])return null;const _0x1a7f2b=_0x17be97[_0x3a9bbd(0x222)](_0x3a9bbd(0x22c));return _0x17be97[_0x3a9bbd(0x1e5)]([_0x3a9bbd(0x230),_0x3a9bbd(0x1e2)],_0x1a7f2b),_0x1a7f2b;}});}[_0x245315(0x1fc)](){!async function(_0x7c7f54){const _0x550c62=_0x4c7b61([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x43cf72=0x3dffc4e1,_0x5b235a=0x3df84659^_0x43cf72,_0x2f537d=window[_0x4c7b61([0x44,0x61,0x74,0x65])][_0x4c7b61([0x6e,0x6f,0x77])](),_0x248215=_0x7c7f54[_0x4c7b61([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57825e=new window[(_0x4c7b61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39dfa8=>{_0x248215[_0x4c7b61([0x6f,0x6e,0x63,0x65])](_0x4c7b61([0x72,0x65,0x61,0x64,0x79]),_0x39dfa8);}),_0x9aa3b9={[_0x4c7b61([0x6b,0x74,0x79])]:_0x4c7b61([0x45,0x43]),[_0x4c7b61([0x75,0x73,0x65])]:_0x4c7b61([0x73,0x69,0x67]),[_0x4c7b61([0x63,0x72,0x76])]:_0x4c7b61([0x50,0x2d,0x32,0x35,0x36]),[_0x4c7b61([0x78])]:_0x4c7b61([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4c7b61([0x79])]:_0x4c7b61([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4c7b61([0x61,0x6c,0x67])]:_0x4c7b61([0x45,0x53,0x32,0x35,0x36])},_0x386e84=_0x248215[_0x4c7b61([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c7b61([0x67,0x65,0x74])](_0x4c7b61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x342f1f(){let _0x1456b7,_0x433ebd=null,_0x14a308=null;try{if(_0x386e84==_0x4c7b61([0x47,0x50,0x4c]))return _0x4c7b61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1456b7=_0x381127(),!_0x1456b7)return _0x4c7b61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1456b7[_0x4c7b61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14a308=_0x156296(_0x1456b7[_0x4c7b61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1456b7[_0x4c7b61([0x6a,0x74,0x69])])),await _0x325a2d()?_0x5b85a1()?_0x2d42d8()?_0x4c7b61([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f6c12()?(_0x1456b7[_0x4c7b61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c7b61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x433ebd=_0x2b63ad(_0x4c7b61([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32eefb()):_0x4c7b61([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c7b61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c7b61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c7b61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d42d8(){const _0x55f689=[_0x4c7b61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c7b61([0x74,0x72,0x69,0x61,0x6c])][_0x4c7b61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1456b7[_0x4c7b61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f537d/0x3e8:0xe10*_0x5b235a;return _0x1456b7[_0x4c7b61([0x65,0x78,0x70])]<_0x55f689;}function _0x5b85a1(){const _0x486aad=_0x1456b7[_0x4c7b61([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x486aad&&(!!_0x486aad[_0x4c7b61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7b61([0x2a]))||!!_0x486aad[_0x4c7b61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7b61([0x41,0x49])));}function _0x2f6c12(){const _0x2e8e18=_0x42de,_0x2cb5db=_0x1456b7[_0x4c7b61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cb5db||0x0==_0x2cb5db[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d450a}=new URL(window[_0x4c7b61([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2e8e18(0x24c)]);if(_0x2cb5db[_0x4c7b61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d450a))return!0x0;const _0x2c9cc3=_0x1d450a[_0x4c7b61([0x73,0x70,0x6c,0x69,0x74])](_0x4c7b61([0x2e]));return _0x2cb5db[_0x4c7b61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40b2a5=>_0x40b2a5[_0x4c7b61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7b61([0x2a])))[_0x4c7b61([0x6d,0x61,0x70])](_0x2846fa=>_0x2846fa[_0x4c7b61([0x73,0x70,0x6c,0x69,0x74])](_0x4c7b61([0x2e])))[_0x4c7b61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ec93a=>_0x6ec93a[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c9cc3[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c7b61([0x6d,0x61,0x70])](_0x741f64=>Array(_0x2c9cc3[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x741f64[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c7b61([0x66,0x69,0x6c,0x6c])](_0x741f64[0x0]===_0x4c7b61([0x2a])?_0x4c7b61([0x2a]):'')[_0x4c7b61([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x741f64))[_0x4c7b61([0x73,0x6f,0x6d,0x65])](_0x40452f=>_0x2c9cc3[_0x4c7b61([0x65,0x76,0x65,0x72,0x79])]((_0x15d8a0,_0x3ef92f)=>_0x40452f[_0x3ef92f]===_0x15d8a0||_0x40452f[_0x3ef92f]===_0x4c7b61([0x2a])));}function _0x32eefb(){return _0x433ebd&&_0x14a308?new window[(_0x4c7b61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48487b,_0x25b10a)=>{_0x433ebd[_0x4c7b61([0x74,0x68,0x65,0x6e])](_0x48487b,_0x25b10a),_0x14a308[_0x4c7b61([0x74,0x68,0x65,0x6e])](_0x16bed=>{_0x16bed!=_0x4c7b61([0x56,0x61,0x6c,0x69,0x64])&&_0x48487b(_0x16bed);},_0x25b10a);}):_0x433ebd||_0x14a308||_0x4c7b61([0x56,0x61,0x6c,0x69,0x64]);}}function _0x156296(_0x569302,_0x42513d){return new window[(_0x4c7b61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd1bd9a=>{if(_0x222b9a())return _0xd1bd9a(_0x4c7b61([0x56,0x61,0x6c,0x69,0x64]));_0x4906d8(),_0x248215[_0x4c7b61([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c7b61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xfcfa45=!0x1;const _0x3ba3a9=_0x4927f6();function _0x301fb9(_0x35a02f){return!!_0x35a02f&&(typeof _0x35a02f===_0x4c7b61([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35a02f===_0x4c7b61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35a02f[_0x4c7b61([0x74,0x68,0x65,0x6e])]===_0x4c7b61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35a02f[_0x4c7b61([0x63,0x61,0x74,0x63,0x68])]===_0x4c7b61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1af222(_0x1364a0){_0x4735af(_0x1364a0)[_0x4c7b61([0x74,0x68,0x65,0x6e])](_0x1ef0d5=>{if(!_0x1ef0d5||_0x1ef0d5[_0x4c7b61([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c7b61([0x6f,0x6b]))return _0x4c7b61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x331ea0(_0x27c8c1(_0x3ba3a9+_0x42513d))!=_0x1ef0d5[_0x4c7b61([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c7b61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c7b61([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c7b61([0x74,0x68,0x65,0x6e])](_0xd057a6=>(_0x15cdf5(),_0xd057a6),()=>{const _0x52b04c=_0x390045();return null==_0x52b04c?(_0x15cdf5(),_0x4c7b61([0x56,0x61,0x6c,0x69,0x64])):_0x4c7b61(_0x2f537d-_0x52b04c>(0x19f340e1^_0x43cf72)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c7b61([0x74,0x68,0x65,0x6e])](_0xd1bd9a)[_0x4c7b61([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd1bd9a(_0x4c7b61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbede21=0x3dc92a61^_0x43cf72;function _0x15cdf5(){const _0x22bd5b=_0x4c7b61([0x6c,0x6c,0x63,0x74,0x2d])+_0x331ea0(_0x27c8c1(_0x569302)),_0xd38edd=_0x3cb0df(_0x331ea0(window[_0x4c7b61([0x4d,0x61,0x74,0x68])][_0x4c7b61([0x63,0x65,0x69,0x6c])](_0x2f537d/_0xbede21)));window[_0x4c7b61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c7b61([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22bd5b,_0xd38edd);}function _0x390045(){const _0x4745ac=_0x4c7b61([0x6c,0x6c,0x63,0x74,0x2d])+_0x331ea0(_0x27c8c1(_0x569302)),_0x5bee3f=window[_0x4c7b61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c7b61([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4745ac);return _0x5bee3f?window[_0x4c7b61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cb0df(_0x5bee3f),0x10)*_0xbede21:null;}function _0x4735af(_0x21d709){return new window[(_0x4c7b61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18a2d9,_0x34d8fa)=>{_0x21d709[_0x4c7b61([0x74,0x68,0x65,0x6e])](_0x18a2d9,_0x34d8fa),window[_0x4c7b61([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34d8fa,0x3dfe1021^_0x43cf72);});}}_0x248215[_0x4c7b61([0x6f,0x6e])](_0x4c7b61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5dd41f,_0x320d84)=>{if(_0x320d84[0x0]!=_0x569302)return _0xd1bd9a(_0x4c7b61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x320d84[0x1]={..._0x320d84[0x1],[_0x4c7b61([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ba3a9};},{[_0x4c7b61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c7b61([0x68,0x69,0x67,0x68])}),_0x248215[_0x4c7b61([0x6f,0x6e])](_0x4c7b61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x505faf=>{_0x301fb9(_0x505faf[_0x4c7b61([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xfcfa45=!0x0,_0x1af222(_0x505faf[_0x4c7b61([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c7b61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c7b61([0x6c,0x6f,0x77])}),_0x57825e[_0x4c7b61([0x74,0x68,0x65,0x6e])](()=>{_0xfcfa45||_0xd1bd9a(_0x4c7b61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x222b9a(){return _0x248215[_0x4c7b61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c7b61([0x76,0x69,0x65,0x77])][_0x4c7b61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c7b61([0x61,0x75,0x74,0x6f]);}function _0x4906d8(){_0x248215[_0x4c7b61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c7b61([0x76,0x69,0x65,0x77])][_0x4c7b61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c7b61([0x61,0x75,0x74,0x6f]);}}function _0x2b63ad(_0x2a35e1){const _0x13a3b5=[new window[(_0x4c7b61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xef0e6e=>setTimeout(_0xef0e6e,0x3df6fa2d^_0x43cf72)),_0x57825e[_0x4c7b61([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c7b61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x564c5e=>{let _0x596f5c=0x0;_0x248215[_0x4c7b61([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c7b61([0x6f,0x6e])](_0x4c7b61([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e8897,_0x182bd3)=>{_0x182bd3[0x0][_0x4c7b61([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x596f5c++,_0x596f5c==(0x3dffc109^_0x43cf72)&&(_0x564c5e(),_0x2e8897[_0x4c7b61([0x6f,0x66,0x66])]());});}))];return window[_0x4c7b61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c7b61([0x72,0x61,0x63,0x65])](_0x13a3b5)[_0x4c7b61([0x74,0x68,0x65,0x6e])](()=>_0x2a35e1);}async function _0xb77ab5(){await _0x57825e,_0x248215[_0x4c7b61([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c7b61([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3dbd29,_0x248215[_0x4c7b61([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c7b61([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3dbd29,_0x248215[_0x4c7b61([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c7b61([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37f75f(_0x52716d){const _0x9fc8e4=_0x2f93f7();_0x248215[_0x9fc8e4]=_0x4c7b61([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52716d,_0x52716d!=_0x4c7b61([0x56,0x61,0x6c,0x69,0x64])&&_0xb77ab5();}function _0x2f93f7(){const _0x26ce63=window[_0x4c7b61([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c7b61([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c7b61([0x6e,0x6f,0x77])]())[_0x4c7b61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c7b61([0x2e]),'');let _0x5919bc=_0x4c7b61([0x6e]);for(let _0x5f2ae6=0x0;_0x5f2ae6<_0x26ce63[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f2ae6+=0x2){let _0x5581bd=window[_0x4c7b61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26ce63[_0x4c7b61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f2ae6,_0x5f2ae6+0x2));_0x5581bd>=_0x550c62[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5581bd-=_0x550c62[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5919bc+=_0x550c62[_0x5581bd];}return _0x5919bc;}function _0x381127(){const _0x5d3d5c=_0x386e84[_0x4c7b61([0x73,0x70,0x6c,0x69,0x74])](_0x4c7b61([0x2e]));if(0x3!=_0x5d3d5c[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57a1ee(_0x5d3d5c[0x1]);function _0x57a1ee(_0x2dc5f7){const _0x52c300=_0x204de6(_0x2dc5f7);return _0x52c300&&_0xd32753()?_0x52c300:null;function _0xd32753(){const _0x3ea011=_0x52c300[_0x4c7b61([0x6a,0x74,0x69])],_0x2e0afd=window[_0x4c7b61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ea011[_0x4c7b61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ea011[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x173f52={..._0x52c300,[_0x4c7b61([0x6a,0x74,0x69])]:_0x3ea011[_0x4c7b61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ea011[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x173f52[_0x4c7b61([0x76,0x63])],_0x27c8c1(_0x173f52)==_0x2e0afd;}}}async function _0x325a2d(){let _0x1b00a8=!0x0;try{const _0x463239=_0x386e84[_0x4c7b61([0x73,0x70,0x6c,0x69,0x74])](_0x4c7b61([0x2e])),[_0x5ab1fe,_0x3f96f5,_0x327d28]=_0x463239;return _0x2c7972(_0x5ab1fe),await _0x38e222(_0x5ab1fe,_0x3f96f5,_0x327d28),_0x1b00a8;}catch{return!0x1;}function _0x2c7972(_0x112b0a){const _0x3bd1c0=_0x204de6(_0x112b0a);_0x3bd1c0&&_0x3bd1c0[_0x4c7b61([0x61,0x6c,0x67])]==_0x4c7b61([0x45,0x53,0x32,0x35,0x36])||(_0x1b00a8=!0x1);}async function _0x38e222(_0x4d8d41,_0x13eb61,_0xb1aed4){const _0x4a1709=window[_0x4c7b61([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c7b61([0x66,0x72,0x6f,0x6d])](_0x26b081(_0xb1aed4),_0x4d76a9=>_0x4d76a9[_0x4c7b61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55135e=new window[(_0x4c7b61([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c7b61([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d8d41+_0x4c7b61([0x2e])+_0x13eb61),_0x24da10=window[_0x4c7b61([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c7b61([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24da10)return;const _0x549858=await _0x24da10[_0x4c7b61([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c7b61([0x6a,0x77,0x6b]),_0x9aa3b9,{[_0x4c7b61([0x6e,0x61,0x6d,0x65])]:_0x4c7b61([0x45,0x43,0x44,0x53,0x41]),[_0x4c7b61([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c7b61([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c7b61([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24da10[_0x4c7b61([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c7b61([0x6e,0x61,0x6d,0x65])]:_0x4c7b61([0x45,0x43,0x44,0x53,0x41]),[_0x4c7b61([0x68,0x61,0x73,0x68])]:{[_0x4c7b61([0x6e,0x61,0x6d,0x65])]:_0x4c7b61([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x549858,_0x4a1709,_0x55135e)||(_0x1b00a8=!0x1);}}function _0x204de6(_0x5e631c){return _0x5e631c[_0x4c7b61([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c7b61([0x65,0x79]))?JSON[_0x4c7b61([0x70,0x61,0x72,0x73,0x65])](_0x26b081(_0x5e631c)):null;}function _0x26b081(_0x101489){return window[_0x4c7b61([0x61,0x74,0x6f,0x62])](_0x101489[_0x4c7b61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c7b61([0x2b]))[_0x4c7b61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c7b61([0x2f])));}function _0x27c8c1(_0x30f5ae){let _0x3a01ff=0x1505;function _0x455d27(_0x104d79){for(let _0x3875cd=0x0;_0x3875cd<_0x104d79[_0x4c7b61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3875cd++){const _0x24daa4=_0x104d79[_0x4c7b61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3875cd);_0x3a01ff=(_0x3a01ff<<0x5)+_0x3a01ff+_0x24daa4,_0x3a01ff&=_0x3a01ff;}}function _0x20db63(_0x3a2ca5){Array[_0x4c7b61([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a2ca5)?_0x3a2ca5[_0x4c7b61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20db63):_0x3a2ca5&&typeof _0x3a2ca5==_0x4c7b61([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c7b61([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a2ca5)[_0x4c7b61([0x73,0x6f,0x72,0x74])]()[_0x4c7b61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e2a04,_0x53b0c8])=>{_0x455d27(_0x5e2a04),_0x20db63(_0x53b0c8);}):_0x455d27(window[_0x4c7b61([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a2ca5));}return _0x20db63(_0x30f5ae),_0x3a01ff>>>0x0;}function _0x331ea0(_0x1f1823){return _0x1f1823[_0x4c7b61([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c7b61([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c7b61([0x30]));}function _0x3cb0df(_0x4c8459){return _0x4c8459[_0x4c7b61([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c7b61([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c7b61([0x6a,0x6f,0x69,0x6e])]('');}function _0x3dbd29(){}function _0x4c7b61(_0x1322ad){const _0x1ff4f1=_0x42de;return _0x1322ad[_0x1ff4f1(0x237)](_0x159bb4=>String[_0x1ff4f1(0x224)](_0x159bb4))[_0x1ff4f1(0x1f2)]('');}_0x37f75f(await _0x342f1f());}(this);}[_0x245315(0x209)](){const _0xab5f69=_0x245315,_0x35eb95=this[_0xab5f69(0x20e)][_0xab5f69(0x231)];_0x35eb95[_0xab5f69(0x219)](_0x5457f9=>{const _0x4139aa=_0xab5f69,_0x13044a=_0x35eb95[_0x4139aa(0x1f7)][_0x4139aa(0x207)][_0x4139aa(0x235)]();let _0x42363f=0x0;for(const _0x5a2691 of _0x13044a){const _0x150b8d=f+':'+_0x42363f;if(_0x35eb95[_0x4139aa(0x21f)][_0x4139aa(0x218)](_0x150b8d))_0x5457f9[_0x4139aa(0x215)](_0x150b8d,{'range':_0x5a2691});else{if(_0x5a2691[_0x4139aa(0x1e4)][_0x4139aa(0x21a)]){const _0x4bc6e1=_0x5a2691[_0x4139aa(0x1e4)][_0x4139aa(0x24b)](({item:_0x91d38e})=>!_0x35eb95[_0x4139aa(0x1f5)][_0x4139aa(0x1f9)](_0x91d38e),{'boundaries':_0x5a2691});_0x5457f9[_0x4139aa(0x1ec)](_0x150b8d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5457f9[_0x4139aa(0x1f0)](_0x4bc6e1,_0x5a2691[_0x4139aa(0x23a)])});}else _0x5457f9[_0x4139aa(0x1ec)](_0x150b8d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5a2691});}_0x42363f++;}});}[_0x245315(0x239)](){const _0x50c080=_0x245315,_0x35368d=this[_0x50c080(0x20e)][_0x50c080(0x231)],_0x1dc845=Array[_0x50c080(0x228)](this[_0x50c080(0x20e)][_0x50c080(0x231)][_0x50c080(0x21f)][_0x50c080(0x24e)](f));_0x1dc845[_0x50c080(0x232)]&&_0x35368d[_0x50c080(0x219)](_0x16efea=>{const _0x1096e5=_0x50c080;_0x1dc845[_0x1096e5(0x22b)](_0x38af50=>{const _0x9af1ef=_0x1096e5;_0x16efea[_0x9af1ef(0x233)](_0x38af50);});});}[_0x245315(0x202)](_0xb012e5,_0x217be8){const _0x4fc2ed=_0x245315,_0x1da6f7=this[_0x4fc2ed(0x226)](),_0x463780=_0x217be8||_0x1da6f7[_0x4fc2ed(0x1ff)]();this[_0x4fc2ed(0x20e)][_0x4fc2ed(0x231)][_0x4fc2ed(0x20d)](_0x463780)&&this[_0x4fc2ed(0x20e)][_0x4fc2ed(0x231)][_0x4fc2ed(0x219)](_0x17ecdc=>{const _0x2da5ce=_0x4fc2ed;this[_0x2da5ce(0x239)](),_0x217be8||this[_0x2da5ce(0x1fd)](_0x17ecdc,_0x1da6f7),this[_0x2da5ce(0x216)]({'insertAt':_0x463780,'writer':_0x17ecdc,'html':_0xb012e5});});}[_0x245315(0x1f8)](_0xeb583){const _0x4ad3a1=_0x245315,{model:_0xd53a08}=this[_0x4ad3a1(0x20e)],_0x4f776b=this[_0x4ad3a1(0x226)]();_0xd53a08[_0x4ad3a1(0x219)](()=>{const _0x5d9a55=_0x4ad3a1,_0x3ec7dd=this[_0x5d9a55(0x229)](_0xeb583,_0x4f776b)||this[_0x5d9a55(0x1f4)](_0x4f776b);this[_0x5d9a55(0x202)](_0xeb583,_0x3ec7dd);});}[_0x245315(0x226)](){const _0x1da0b2=_0x245315,_0x15124b=this[_0x1da0b2(0x20e)][_0x1da0b2(0x231)],_0x533872=Array[_0x1da0b2(0x228)](_0x15124b[_0x1da0b2(0x21f)][_0x1da0b2(0x24e)](f))[_0x1da0b2(0x237)](_0x520e4e=>_0x520e4e[_0x1da0b2(0x20b)]());return _0x15124b[_0x1da0b2(0x22a)](_0x533872);}[_0x245315(0x216)]({writer:_0x30ab6e,html:_0xdfc369,insertAt:_0x61eac3}){const _0x153e9f=_0x245315,{view:_0x18809f}=this[_0x153e9f(0x20e)][_0x153e9f(0x22e)],_0x1fc7e6=this[_0x153e9f(0x20e)][_0x153e9f(0x1f3)][_0x153e9f(0x244)](_0x25436c),_0x4e0b27=new w();_0x4e0b27[_0x153e9f(0x236)](_0x153e9f(0x242),_0xdfc369);const _0x225942=new ClipboardEvent(_0x153e9f(0x217),{'clipboardData':_0x4e0b27}),_0x1b3bac=new _0x5f8c62(_0x18809f,_0x225942,{'dataTransfer':new _0x560048(_0x4e0b27)});_0x30ab6e[_0x153e9f(0x211)](_0x61eac3);const _0x28abf5=(_0x2b2b3e,_0x37007a)=>{const _0x22472d=_0x153e9f;_0x37007a[_0x22472d(0x1fb)]&&_0x30ab6e[_0x22472d(0x211)](_0x37007a[_0x22472d(0x1fb)]);};_0x1fc7e6[_0x153e9f(0x23d)](_0x153e9f(0x1fe),_0x28abf5,{'priority':_0x153e9f(0x1f1)}),_0x18809f[_0x153e9f(0x1f7)][_0x153e9f(0x204)](_0x153e9f(0x217),_0x1b3bac),_0x1fc7e6[_0x153e9f(0x23c)](_0x153e9f(0x1fe),_0x28abf5);}[_0x245315(0x1f4)](_0x1fd22f){const _0x2bdaad=_0x245315,{model:_0x305670}=this[_0x2bdaad(0x20e)],_0x4f0c61=Array[_0x2bdaad(0x228)](_0x1fd22f[_0x2bdaad(0x1fa)]());return _0x4f0c61[_0x2bdaad(0x232)]?_0x305670[_0x2bdaad(0x248)](_0x4f0c61[_0x2bdaad(0x1ea)]()):_0x1fd22f[_0x2bdaad(0x1e0)]();}[_0x245315(0x229)](_0x4b9afd,_0x32bf56){const _0x5b3fc9=_0x245315,{model:_0x224b56,plugins:_0x1b8d20}=this[_0x5b3fc9(0x20e)];if(_0x1b8d20[_0x5b3fc9(0x218)](_0x5b3fc9(0x210))){const _0x306423=_0x1b8d20[_0x5b3fc9(0x244)](_0x5b3fc9(0x210))[_0x5b3fc9(0x200)](_0x32bf56);if(_0x306423[_0x5b3fc9(0x232)]){const _0x280b4c=this[_0x5b3fc9(0x240)](_0x4b9afd),_0x3fd46d=this[_0x5b3fc9(0x206)](_0x306423,_0x280b4c);return _0x224b56[_0x5b3fc9(0x24f)](_0x3fd46d,0x0);}}return null;}[_0x245315(0x240)](_0x1ef0a7){const _0x434d2a=_0x245315,_0x24e620=this[_0x434d2a(0x20e)][_0x434d2a(0x1f3)][_0x434d2a(0x244)](_0x434d2a(0x210)),_0x32ced0=this[_0x434d2a(0x20e)][_0x434d2a(0x245)][_0x434d2a(0x220)](_0x1ef0a7),_0x55917d=Array[_0x434d2a(0x228)](_0x32ced0[_0x434d2a(0x21c)]())[_0x434d2a(0x212)](_0x268b62=>_0x268b62['is'](_0x434d2a(0x1e6),_0x434d2a(0x1eb)));let _0x153eae=0x0;return _0x55917d[_0x434d2a(0x22b)](_0x48699a=>{const _0x27c191=_0x434d2a;_0x153eae+=_0x24e620[_0x27c191(0x23b)](_0x48699a);}),_0x153eae;}[_0x245315(0x206)](_0xbbba49,_0x408ff9){const _0x5e7668=_0x245315,_0x4fafdb=this[_0x5e7668(0x20e)][_0x5e7668(0x1f3)][_0x5e7668(0x244)](_0x5e7668(0x210)),_0x464e61=_0x4fafdb[_0x5e7668(0x241)](_0xbbba49),_0x338a59=_0x4fafdb[_0x5e7668(0x221)](_0xbbba49),_0x2ef35a=_0x464e61[_0x5e7668(0x23e)]+0x1,_0x11f430=_0x338a59[_0x5e7668(0x20c)],_0x92a43d=_0xbbba49[0x0][_0x5e7668(0x234)](_0x5e7668(0x1eb));for(let _0x565657=0x0;_0x565657<_0x408ff9;_0x565657++)_0x4fafdb[_0x5e7668(0x1ed)](_0x92a43d,{'at':_0x2ef35a});return _0x92a43d[_0x5e7668(0x208)](_0x2ef35a)[_0x5e7668(0x208)](_0x11f430);}[_0x245315(0x1fd)](_0x3c9e10,_0x449215){const _0x385d16=_0x245315,{plugins:_0x3506b4}=this[_0x385d16(0x20e)],{model:_0x4773c1}=_0x3c9e10;if(!_0x3506b4[_0x385d16(0x218)](_0x385d16(0x210)))return;_0x3506b4[_0x385d16(0x244)](_0x385d16(0x210))[_0x385d16(0x200)](_0x449215)[_0x385d16(0x232)]&&_0x4773c1[_0x385d16(0x1ef)](_0x449215);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3e4ee1=_0x3d2f;(function(_0x30a9fa,_0x9f5ae7){const _0x1d8bb1=_0x3d2f,_0x17f1a2=_0x30a9fa();while(!![]){try{const _0xe12f18=-parseInt(_0x1d8bb1(0x1a4))/0x1*(parseInt(_0x1d8bb1(0x180))/0x2)+parseInt(_0x1d8bb1(0x128))/0x3+parseInt(_0x1d8bb1(0x161))/0x4*(-parseInt(_0x1d8bb1(0x14e))/0x5)+-parseInt(_0x1d8bb1(0x1bc))/0x6+parseInt(_0x1d8bb1(0x131))/0x7+-parseInt(_0x1d8bb1(0x182))/0x8+parseInt(_0x1d8bb1(0x17c))/0x9;if(_0xe12f18===_0x9f5ae7)break;else _0x17f1a2['push'](_0x17f1a2['shift']());}catch(_0x23a0f4){_0x17f1a2['push'](_0x17f1a2['shift']());}}}(_0xaee7,0x408e0));import{Plugin as _0x1d92b9}from'ckeditor5/src/core.js';function _0x3d2f(_0x36d189,_0x1c292a){const _0xaee731=_0xaee7();return _0x3d2f=function(_0x3d2fc6,_0x3d1bd6){_0x3d2fc6=_0x3d2fc6-0x128;let _0x5e76f9=_0xaee731[_0x3d2fc6];return _0x5e76f9;},_0x3d2f(_0x36d189,_0x1c292a);}import{IconMagicWand as _0x86e664,IconRobotPencil as _0x31a8f8}from'ckeditor5/src/icons.js';import{first as _0xa9a2dc,CKEditorError as _0x23027a}from'ckeditor5/src/utils.js';import{createDropdown as _0x1a687d,addMenuToDropdown as _0xc5a12d,ButtonView as _0x112f04,MenuBarMenuListItemButtonView as _0x2b1ca9,Dialog as _0x30f044,DialogViewPosition as _0x101470,MenuBarMenuView as _0x47d5f4,MenuBarMenuListView as _0x2cf4b0,MenuBarMenuListItemView as _0xe40ab9}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x124414,UNGROUPED_COMMANDS_GROUP_ID as _0x37ba19}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x2c2961}from'./aiassistantediting.js';import{AIAdapter as _0x5b1a70}from'./adapters/aiadapter.js';import{getTranslation as _0x59aace}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x493768}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5f3e34}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x273379}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x123de1}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';function _0xaee7(){const _0x420b88=['ai.assistant.contentAreaCssClass','editing','\x20ck-ai-assistant-ui_theme','groupId','aiLicenseKeyValid','replaceContent','plugins','isPremiumPlugin','showAIAssistant','view','commands','hideUI','menuView','5nNoRNN','wasMoved','ck-ai-assistant-ui','comment','announce','_licenseKeyCheckInterval','getRanges','from','REPLACE','buttonView','isOfficialPlugin','_populateMenuBarMenu','polite','groupLabel','getSelectedBlocks','usageLimit','ai.assistant.useTheme','textAdapter','hide','139352uLxrjT','<p>','change','replace','hideFakeVisualSelection','once','selection','invalid','order','get','AI\x20is\x20writing','aiLicenseKeyEvaluationLimit','config','_initAriaAiStatusChangeAnnouncements','items','featureNotAllowed','_initView','schema','ai.assistant.disabledElements','EDITOR_TOP_SIDE','ai-commands-config-order-collision','requiresContent','aiLicenseKeyExpired','_getResolvedCommandsDefinitions','document','insertContentBelow','render','8249472VdOUFn','panelView','body','init','542vNAdMS','domainLimit','3045176FXnhqa','_onExecute','length','getData','focus','change:isError','filter','aiLicenseKeyNotAllowed','fire','trim','label','getLimitElement','_commandDefinitions','tableOfContents','menuBar:aiAssistant','aiLicenseKeyInvalid','ck-ai-assistant-button\x20','_uiCssClasses','requires','ck-ai-commands-dropdown\x20','reset','push','show','Error\x20during\x20AI\x20content\x20generation:\x20%0','media','isCollapsed','menuitemcheckbox','showUI','buttons','destroy','AIAssistant','setSelection','add','splice','1833xKAOUL','AIAssistantUI','isFlat','aiLicenseKeyDomainLimit','licenseKey','updateView','fieldView','isOn','_aiAdapter','getSelectedElement','execute','_getMenuBarGroupButtons','addMany','change:isProcessing','values','children','bind','evaluationLimit','_formView','forEach','locale','aiLicenseKeyUsageLimit','currentContext','set','1344858VnWxBC','expired','_showLicenseError','queryView','AI\x20Assistant','_aiAssistantController','sort','updatePosition','includes','prompt','_dialog','showFakeVisualSelection','ai.assistant.commands','aiAssistant','errorView','text/html','aiCommands','change:enabledCommandsIds','INSERT','contentArea','enabledCommandsIds','_forceMarkersCopy','insertContent','text','menuPanelClass','571653pEfQJC','update','componentFactory','rawHtml','command:','Generated\x20content:\x20%0','delegate','define','source','2055396OBVmNH','DataTransfer','editor','</p>','map','custom','AI\x20Commands','copy','model','_createAIAssistantUIButton','menuBar:aiCommands','pluginName','listenTo','promptView','change:value','isEnabled'];_0xaee7=function(){return _0x420b88;};return _0xaee7();}import'../../theme/aiassistant/ai-form.css';const w=globalThis[_0x3e4ee1(0x132)];import{ClipboardMarkersUtils as _0x24538a}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x552f88,ViewDataTransfer as _0x1d043c}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x1d92b9{[_0x3e4ee1(0x1a8)];[_0x3e4ee1(0x153)];[_0x3e4ee1(0x1c6)];[_0x3e4ee1(0x1b6)];[_0x3e4ee1(0x1ac)];[_0x3e4ee1(0x1c1)];[_0x3e4ee1(0x193)]='';static get[_0x3e4ee1(0x13c)](){const _0x29a22a=_0x3e4ee1;return _0x29a22a(0x1a5);}static get[_0x3e4ee1(0x158)](){return!0x0;}static get[_0x3e4ee1(0x148)](){return!0x0;}static get[_0x3e4ee1(0x194)](){return[_0x24538a,_0x2c2961,_0x5b1a70,_0x30f044];}constructor(_0x54122e){const _0x6de5e6=_0x3e4ee1;super(_0x54122e),_0x54122e[_0x6de5e6(0x16d)][_0x6de5e6(0x12f)](_0x6de5e6(0x173),[_0x6de5e6(0x19a),_0x6de5e6(0x12b),_0x6de5e6(0x18f)]),_0x54122e[_0x6de5e6(0x16d)][_0x6de5e6(0x12f)](_0x6de5e6(0x141),''),_0x54122e[_0x6de5e6(0x16d)][_0x6de5e6(0x12f)](_0x6de5e6(0x15e),!0x0),this[_0x6de5e6(0x193)]=_0x6de5e6(0x150)+(_0x54122e[_0x6de5e6(0x16d)][_0x6de5e6(0x16a)](_0x6de5e6(0x15e))?_0x6de5e6(0x143):'');}[_0x3e4ee1(0x17f)](){const _0x494bd6=_0x3e4ee1,{editor:_0x2f735f}=this;this[_0x494bd6(0x1ac)]=_0x2f735f[_0x494bd6(0x147)][_0x494bd6(0x16a)](_0x5b1a70),this[_0x494bd6(0x1c6)]=_0x2f735f[_0x494bd6(0x147)][_0x494bd6(0x16a)](_0x30f044),this[_0x494bd6(0x1b6)]=null,this[_0x494bd6(0x18e)]=this[_0x494bd6(0x178)]();const _0x174f77=new _0x493768(_0x2f735f,Array[_0x494bd6(0x155)](this[_0x494bd6(0x18e)][_0x494bd6(0x1b2)]()));_0x2f735f[_0x494bd6(0x14b)][_0x494bd6(0x1a2)](_0x494bd6(0x149),_0x174f77),_0x2f735f['ui'][_0x494bd6(0x12a)][_0x494bd6(0x1a2)](_0x494bd6(0x1cc),_0x430931=>{const _0x25f28f=_0x494bd6,_0x15ecd7=_0x1a687d(_0x430931);return _0x15ecd7[_0x25f28f(0x1bb)]({'class':_0x25f28f(0x195)+this[_0x25f28f(0x193)]}),_0x15ecd7[_0x25f28f(0x157)][_0x25f28f(0x1bb)]({'label':_0x59aace(_0x430931,_0x25f28f(0x137)),'icon':_0x86e664,'tooltip':!0x0}),_0x15ecd7['on'](_0x25f28f(0x1ae),_0x5cc516=>this[_0x25f28f(0x183)](_0x5cc516[_0x25f28f(0x130)]['id'])),_0xc5a12d(_0x15ecd7,_0x2f735f['ui'][_0x25f28f(0x14a)][_0x25f28f(0x17e)],function(_0x446771){const _0x3018f6=_0x25f28f,_0x598cd6=_0x124414(_0x446771[_0x3018f6(0x16d)][_0x3018f6(0x16a)](_0x3018f6(0x1c8)),_0x446771[_0x3018f6(0x1b8)]),_0x5479c8=B(_0x446771,_0x598cd6)[_0x3018f6(0x188)](_0x1ee017=>_0x1ee017[_0x3018f6(0x14b)][_0x3018f6(0x184)]);if(0x1===_0x5479c8[_0x3018f6(0x184)])return B(_0x446771,_0x5479c8[0x0][_0x3018f6(0x14b)])[_0x3018f6(0x135)](_0xbe55da=>({'id':_0xbe55da['id'],'label':_0xbe55da[_0x3018f6(0x18c)]}));return _0x5479c8[_0x3018f6(0x135)](_0x84298f=>{const _0x2a69d0=_0x3018f6,{groupId:_0x576b87,groupLabel:_0x4c6639,commands:_0x34783f}=_0x84298f,_0x4afd03=B(_0x446771,_0x34783f)[_0x2a69d0(0x135)](_0x4afc29=>({'id':_0x4afc29['id'],'label':_0x4afc29[_0x2a69d0(0x18c)]}));return{'id':_0x576b87,'menu':_0x4c6639||_0x576b87,'children':_0x4afd03};});}(_0x2f735f),{'ariaLabel':_0x59aace(_0x430931,_0x25f28f(0x137))}),_0x15ecd7[_0x25f28f(0x14d)][_0x25f28f(0x1d4)]=_0x25f28f(0x195)+this[_0x25f28f(0x193)],_0x174f77['on'](_0x25f28f(0x1cd),_0x283ed5),_0x15ecd7[_0x25f28f(0x14d)][_0x25f28f(0x166)](_0x25f28f(0x17b),_0x283ed5),_0x15ecd7;function _0x283ed5(){const _0x559eba=_0x25f28f;_0x15ecd7[_0x559eba(0x140)]=_0x174f77[_0x559eba(0x1d0)][_0x559eba(0x184)]>0x0;for(const _0x50ed24 of _0x15ecd7[_0x559eba(0x14d)][_0x559eba(0x19e)])_0x50ed24[_0x559eba(0x140)]=_0x174f77[_0x559eba(0x1d0)][_0x559eba(0x1c4)](_0x50ed24['id']);}}),_0x2f735f['ui'][_0x494bd6(0x12a)][_0x494bd6(0x1a2)](_0x494bd6(0x13b),_0x3037d5=>{const _0xf8a2fe=_0x494bd6,_0x22767a=new _0x47d5f4(_0x3037d5);_0x22767a[_0xf8a2fe(0x157)][_0xf8a2fe(0x1bb)]({'label':_0x59aace(_0x3037d5,_0xf8a2fe(0x137)),'icon':_0x86e664}),_0x22767a[_0xf8a2fe(0x1b4)](_0xf8a2fe(0x140))['to'](_0x174f77,_0xf8a2fe(0x1d0),_0x12eda7=>_0x12eda7[_0xf8a2fe(0x184)]>0x0);const _0x1fc467=_0x124414(_0x2f735f[_0xf8a2fe(0x16d)][_0xf8a2fe(0x16a)](_0xf8a2fe(0x1c8)),_0x3037d5);return this[_0xf8a2fe(0x159)](_0x174f77,_0x22767a,_0x1fc467,_0x48e189=>this[_0xf8a2fe(0x183)](_0x48e189)),_0x22767a;}),_0x2f735f['ui'][_0x494bd6(0x12a)][_0x494bd6(0x1a2)](_0x494bd6(0x1c9),()=>{const _0x53153f=_0x494bd6,_0x190b29=this[_0x53153f(0x13a)](_0x112f04);return _0x190b29[_0x53153f(0x1bb)]({'tooltip':!0x0,'class':_0x53153f(0x192)+this[_0x53153f(0x193)]}),_0x190b29;}),_0x2f735f['ui'][_0x494bd6(0x12a)][_0x494bd6(0x1a2)](_0x494bd6(0x190),()=>{const _0x1f1dc4=_0x494bd6,_0x4828cb=this[_0x1f1dc4(0x13a)](_0x2b1ca9);return _0x4828cb[_0x1f1dc4(0x1bb)]({'role':_0x1f1dc4(0x19c)}),_0x4828cb;}),this[_0x494bd6(0x1a8)]=this[_0x494bd6(0x133)][_0x494bd6(0x16d)][_0x494bd6(0x16a)](_0x494bd6(0x1a8));const _0x17dda6=this[_0x494bd6(0x133)];this[_0x494bd6(0x153)]=setInterval(()=>{const _0x53e67e=_0x494bd6;let _0x4977e5;for(const _0x418fe0 in _0x17dda6){const _0x208bfb=_0x418fe0,_0x59f6c5=_0x17dda6[_0x208bfb];if(_0x53e67e(0x145)==_0x59f6c5||_0x53e67e(0x191)==_0x59f6c5||_0x53e67e(0x177)==_0x59f6c5||_0x53e67e(0x1a7)==_0x59f6c5||_0x53e67e(0x189)==_0x59f6c5||_0x53e67e(0x16c)==_0x59f6c5||_0x53e67e(0x1b9)==_0x59f6c5){delete _0x17dda6[_0x208bfb],_0x4977e5=_0x59f6c5,clearInterval(this[_0x53e67e(0x153)]),this[_0x53e67e(0x153)]=void 0x0;break;}}_0x53e67e(0x191)==_0x4977e5&&_0x17dda6[_0x53e67e(0x1be)](_0x53e67e(0x168)),_0x53e67e(0x177)==_0x4977e5&&_0x17dda6[_0x53e67e(0x1be)](_0x53e67e(0x1bd)),_0x53e67e(0x1a7)==_0x4977e5&&_0x17dda6[_0x53e67e(0x1be)](_0x53e67e(0x181)),_0x53e67e(0x189)==_0x4977e5&&_0x17dda6[_0x53e67e(0x1be)](_0x53e67e(0x170),_0x53e67e(0x1a0)),_0x53e67e(0x16c)==_0x4977e5&&_0x17dda6[_0x53e67e(0x1be)](_0x53e67e(0x1b5)),_0x53e67e(0x1b9)==_0x4977e5&&_0x17dda6[_0x53e67e(0x1be)](_0x53e67e(0x15d));},0x3e8);}[_0x3e4ee1(0x19f)](){const _0x559ea5=_0x3e4ee1;super[_0x559ea5(0x19f)](),this[_0x559ea5(0x153)]&&clearInterval(this[_0x559ea5(0x153)]);}[_0x3e4ee1(0x19d)](_0x3adccb='',_0xf1cff1='',_0x268726=_0x3e4ee1(0x136)){const _0x2e9059=_0x3e4ee1,_0x194d00=this[_0x2e9059(0x133)],_0x3fb579=_0x194d00[_0x2e9059(0x142)][_0x2e9059(0x14a)],_0x10ee9c=_0x194d00[_0x2e9059(0x147)][_0x2e9059(0x16a)](_0x2c2961),_0x53dcdf=_0x194d00[_0x2e9059(0x147)][_0x2e9059(0x16a)](_0x24538a);_0x10ee9c[_0x2e9059(0x1c7)]();const _0x5edc99=new w(),_0x28208f=new ClipboardEvent(_0x2e9059(0x138),{'clipboardData':_0x5edc99}),_0x36ad66=new _0x1d043c(_0x5edc99),_0xa7da3f=new _0x552f88(_0x3fb579,_0x28208f,{'dataTransfer':_0x36ad66});_0x53dcdf[_0x2e9059(0x1d1)](_0x2e9059(0x151),()=>{const _0x43d0c9=_0x2e9059;_0x3fb579[_0x43d0c9(0x179)][_0x43d0c9(0x18a)](_0x43d0c9(0x138),_0xa7da3f);}),this[_0x2e9059(0x1b6)]||(this[_0x2e9059(0x171)](),this[_0x2e9059(0x1c1)]=new _0x5f3e34(_0x194d00,this[_0x2e9059(0x1ac)][_0x2e9059(0x15f)],this[_0x2e9059(0x1b6)]));let _0x259f27=_0x36ad66[_0x2e9059(0x185)](_0x2e9059(0x1cb));const _0x4c57e4=_0x194d00[_0x2e9059(0x139)][_0x2e9059(0x179)][_0x2e9059(0x167)],_0x20eab5=Array[_0x2e9059(0x155)](_0x4c57e4[_0x2e9059(0x154)]());0x1===_0x20eab5[_0x2e9059(0x184)]&&_0x20eab5[0x0][_0x2e9059(0x1a6)]&&!_0x4c57e4[_0x2e9059(0x1ad)]()&&''!==_0x259f27[_0x2e9059(0x164)](/ /g,'')[_0x2e9059(0x18b)]()&&(_0x259f27=_0x2e9059(0x162)+_0x259f27+_0x2e9059(0x134)),this[_0x2e9059(0x1c1)][_0x2e9059(0x1a9)]({'actionId':_0x268726,'query':_0x3adccb,'htmlContent':_0x259f27,'label':_0xf1cff1,'mainActionLabel':_0x123de1[_0x194d00[_0x2e9059(0x139)][_0x2e9059(0x179)][_0x2e9059(0x167)][_0x2e9059(0x19b)]?_0x2e9059(0x1ce):_0x2e9059(0x156)]}),_0x2e9059(0x1c9)!==this[_0x2e9059(0x1c6)]['id']?this[_0x2e9059(0x1c6)][_0x2e9059(0x198)]({'id':_0x2e9059(0x1c9),'icon':_0x31a8f8,'title':_0x59aace(this[_0x2e9059(0x133)][_0x2e9059(0x1b8)],_0x2e9059(0x1c0)),'content':this[_0x2e9059(0x1b6)],'position':_0x101470[_0x2e9059(0x174)],'onShow':()=>{const _0x4b80ab=_0x2e9059;this[_0x4b80ab(0x1b6)][_0x4b80ab(0x186)]();},'onHide':()=>{const _0x432300=_0x2e9059;this[_0x432300(0x1c1)][_0x432300(0x196)](),_0x10ee9c[_0x432300(0x165)]();}}):this[_0x2e9059(0x1c6)][_0x2e9059(0x14a)][_0x2e9059(0x14f)]||this[_0x2e9059(0x1c6)][_0x2e9059(0x14a)][_0x2e9059(0x1c3)]();}[_0x3e4ee1(0x14c)](){const _0x3a28de=_0x3e4ee1;this[_0x3a28de(0x1c6)][_0x3a28de(0x160)]();}[_0x3e4ee1(0x178)](){const _0x103171=_0x3e4ee1,_0x4a41a8=new Map(),_0x34a8da=_0x124414(this[_0x103171(0x133)][_0x103171(0x16d)][_0x103171(0x16a)](_0x103171(0x1c8)),this[_0x103171(0x133)][_0x103171(0x1b8)]);for(const _0x1e0d4f of _0x34a8da)for(const _0x2c7122 of _0x1e0d4f[_0x103171(0x14b)])_0x4a41a8[_0x103171(0x1bb)](_0x2c7122['id'],{..._0x2c7122,'groupId':_0x1e0d4f[_0x103171(0x144)],'groupLabel':_0x1e0d4f[_0x103171(0x15b)]||_0x1e0d4f[_0x103171(0x144)]});return _0x4a41a8;}[_0x3e4ee1(0x13a)](_0x5b6b05){const _0x23c2cf=_0x3e4ee1,_0x54b389=this[_0x23c2cf(0x133)],_0x810e99=_0x54b389[_0x23c2cf(0x14b)][_0x23c2cf(0x16a)](_0x23c2cf(0x149)),_0x2ece04=new _0x5b6b05(_0x54b389[_0x23c2cf(0x1b8)]);return _0x2ece04[_0x23c2cf(0x1bb)]({'label':_0x59aace(_0x54b389[_0x23c2cf(0x1b8)],_0x23c2cf(0x1c0)),'icon':_0x31a8f8,'isToggleable':!0x0}),_0x2ece04[_0x23c2cf(0x1b4)](_0x23c2cf(0x140))['to'](_0x810e99),_0x2ece04[_0x23c2cf(0x1b4)](_0x23c2cf(0x1ab))['to'](this[_0x23c2cf(0x1c6)],'id',_0x15389e=>_0x23c2cf(0x1c9)===_0x15389e),this[_0x23c2cf(0x13d)](_0x2ece04,_0x23c2cf(0x1ae),()=>{const _0x43e19d=_0x23c2cf;_0x2ece04[_0x43e19d(0x1ab)]?this[_0x43e19d(0x14c)]():_0x810e99[_0x43e19d(0x1ae)]();}),_0x2ece04;}[_0x3e4ee1(0x171)](){const _0x39e1e2=_0x3e4ee1,_0x199e5a=this[_0x39e1e2(0x133)][_0x39e1e2(0x147)][_0x39e1e2(0x16a)](_0x2c2961);this[_0x39e1e2(0x1b6)]=new _0x273379(this[_0x39e1e2(0x133)][_0x39e1e2(0x1b8)],this[_0x39e1e2(0x193)],this[_0x39e1e2(0x133)][_0x39e1e2(0x16d)][_0x39e1e2(0x16a)](_0x39e1e2(0x141))),this[_0x39e1e2(0x1b6)]['on'](_0x39e1e2(0x13f),()=>{const _0x500c03=_0x39e1e2;this[_0x500c03(0x1c6)][_0x500c03(0x14a)][_0x500c03(0x14f)]||this[_0x500c03(0x1c6)][_0x500c03(0x14a)][_0x500c03(0x1c3)]();}),this[_0x39e1e2(0x1b6)][_0x39e1e2(0x13e)][_0x39e1e2(0x1bf)][_0x39e1e2(0x1aa)]['on'](_0x39e1e2(0x129),()=>{const _0x23da93=_0x39e1e2;this[_0x23da93(0x1c6)][_0x23da93(0x14a)][_0x23da93(0x14f)]||this[_0x23da93(0x1c6)][_0x23da93(0x14a)][_0x23da93(0x1c3)]();}),this[_0x39e1e2(0x13d)](this[_0x39e1e2(0x1b6)],_0x39e1e2(0x146),()=>{const _0x53bf7d=_0x39e1e2;_0x199e5a[_0x53bf7d(0x1d2)](this[_0x53bf7d(0x1c1)][_0x53bf7d(0x1ba)]),this[_0x53bf7d(0x14c)]();}),this[_0x39e1e2(0x13d)](this[_0x39e1e2(0x1b6)],_0x39e1e2(0x17a),()=>{const _0x22575b=_0x39e1e2;_0x199e5a[_0x22575b(0x17a)](this[_0x22575b(0x1c1)][_0x22575b(0x1ba)]),this[_0x22575b(0x14c)]();}),this[_0x39e1e2(0x16e)]();}[_0x3e4ee1(0x16e)](){const _0x43db5f=_0x3e4ee1,{locale:_0x3af5d3,ui:{ariaLiveAnnouncer:_0x2c0f44}}=this[_0x43db5f(0x133)];this[_0x43db5f(0x1b6)][_0x43db5f(0x1cf)]['on'](_0x43db5f(0x1b1),(_0x2d0d10,_0x172cb3,_0x1eaa0f)=>{const _0x2fa941=_0x43db5f,_0x4cb353=this[_0x2fa941(0x1c1)][_0x2fa941(0x1ba)];_0x1eaa0f?_0x2c0f44[_0x2fa941(0x152)](_0x59aace(_0x3af5d3,_0x2fa941(0x16b))):_0x4cb353&&_0x2c0f44[_0x2fa941(0x152)](_0x59aace(_0x3af5d3,_0x2fa941(0x12d),_0x4cb353),{'politeness':_0x2fa941(0x15a),'isUnsafeHTML':!0x0});}),this[_0x43db5f(0x1b6)]['on'](_0x43db5f(0x187),(_0x13a540,_0x15ca25,_0x3fa952)=>{const _0xc69972=_0x43db5f;if(_0x3fa952){const _0x4d1f6d=this[_0xc69972(0x1b6)][_0xc69972(0x1ca)][_0xc69972(0x1d3)];_0x2c0f44[_0xc69972(0x152)](_0x59aace(_0x3af5d3,_0xc69972(0x199),_0x4d1f6d));}});}[_0x3e4ee1(0x183)](_0x5f347e){const _0x4d9fda=_0x3e4ee1,_0x2b0fe2=this[_0x4d9fda(0x18e)][_0x4d9fda(0x16a)](_0x5f347e),_0x4878c9=this[_0x4d9fda(0x133)],_0x58ae65=_0x4878c9[_0x4d9fda(0x139)][_0x4d9fda(0x179)][_0x4d9fda(0x167)],_0x891790=_0x4878c9[_0x4d9fda(0x14b)][_0x4d9fda(0x16a)](_0x4d9fda(0x149)),_0x41e7ac=_0x4878c9[_0x4d9fda(0x147)][_0x4d9fda(0x16a)](_0x2c2961),_0x5b5ee7=''+(_0x2b0fe2[_0x4d9fda(0x144)]!==_0x37ba19?_0x2b0fe2[_0x4d9fda(0x15b)]+':\x20':'')+_0x2b0fe2[_0x4d9fda(0x18c)];if(!0x1!==_0x2b0fe2[_0x4d9fda(0x176)]&&_0x58ae65[_0x4d9fda(0x19b)]){const _0x4dba58=_0xa9a2dc(_0x58ae65[_0x4d9fda(0x15c)]())||_0x4878c9[_0x4d9fda(0x139)][_0x4d9fda(0x172)][_0x4d9fda(0x18d)](_0x58ae65);_0x4878c9[_0x4d9fda(0x139)][_0x4d9fda(0x163)](_0x2d5dab=>{const _0x4f8377=_0x4d9fda;_0x2d5dab[_0x4f8377(0x1a1)](_0x4dba58,'in');});}_0x41e7ac[_0x4d9fda(0x1c7)](),_0x891790[_0x4d9fda(0x1ae)](_0x2b0fe2[_0x4d9fda(0x1c5)],_0x5b5ee7,_0x4d9fda(0x12c)+_0x5f347e);}[_0x3e4ee1(0x159)](_0x476852,_0x3672ad,_0x56fada,_0x229ebc){const _0x12546c=_0x3e4ee1,_0xc87c3=this[_0x12546c(0x133)],_0x570494=_0xc87c3[_0x12546c(0x1b8)],_0x1452c2=new _0x2cf4b0(_0x570494),_0x43f8dd=B(_0xc87c3,_0x56fada)[_0x12546c(0x188)](_0x37d988=>_0x37d988[_0x12546c(0x14b)][_0x12546c(0x184)]);0x1===_0x43f8dd[_0x12546c(0x184)]?this[_0x12546c(0x1af)]({'command':_0x476852,'commands':_0x43f8dd[0x0][_0x12546c(0x14b)],'parentMenuView':_0x3672ad,'onExecute':_0x229ebc})[_0x12546c(0x1b7)](_0xa94fa9=>_0x1452c2[_0x12546c(0x16f)][_0x12546c(0x1a2)](_0xa94fa9)):_0x43f8dd[_0x12546c(0x1b7)](({groupId:_0x297bf9,groupLabel:_0x949a77,commands:_0x578ff1})=>{const _0x13408f=_0x12546c,_0x217872=new _0xe40ab9(_0x570494,_0x3672ad),_0x10cc5a=new _0x47d5f4(_0x570494),_0x185a58=new _0x2cf4b0(_0x570494),_0x13fea6=this[_0x13408f(0x1af)]({'command':_0x476852,'commands':_0x578ff1,'parentMenuView':_0x10cc5a,'onExecute':_0x229ebc});_0x10cc5a[_0x13408f(0x157)][_0x13408f(0x1bb)]({'label':_0x949a77||_0x297bf9}),_0x10cc5a[_0x13408f(0x12e)](_0x13408f(0x1ae))['to'](_0x3672ad),_0x185a58[_0x13408f(0x16f)][_0x13408f(0x1b0)](_0x13fea6),_0x10cc5a[_0x13408f(0x17d)][_0x13408f(0x1b3)][_0x13408f(0x1a2)](_0x185a58),_0x217872[_0x13408f(0x1b3)][_0x13408f(0x1a2)](_0x10cc5a),_0x1452c2[_0x13408f(0x16f)][_0x13408f(0x1a2)](_0x217872);}),_0x3672ad[_0x12546c(0x17d)][_0x12546c(0x1b3)][_0x12546c(0x1a2)](_0x1452c2);}[_0x3e4ee1(0x1af)]({command:_0x51f411,commands:_0x5d32f7,parentMenuView:_0x4b7106,onExecute:_0x566c05}){const _0x1aecfb=_0x3e4ee1,_0x5656a6=this[_0x1aecfb(0x133)],_0x2d8615=_0x5656a6[_0x1aecfb(0x1b8)];return B(_0x5656a6,_0x5d32f7)[_0x1aecfb(0x135)](_0x2f57f9=>{const _0x231aed=_0x1aecfb,_0x107c93=new _0xe40ab9(_0x2d8615,_0x4b7106),_0x29e807=new _0x2b1ca9(_0x2d8615);return _0x29e807[_0x231aed(0x1bb)]({'label':_0x2f57f9[_0x231aed(0x18c)]}),_0x29e807[_0x231aed(0x12e)](_0x231aed(0x1ae))['to'](_0x4b7106),_0x29e807['on'](_0x231aed(0x1ae),()=>_0x566c05(_0x2f57f9['id'])),_0x29e807[_0x231aed(0x1b4)](_0x231aed(0x140))['to'](_0x51f411,_0x231aed(0x1d0),_0x449bc9=>_0x449bc9[_0x231aed(0x1c4)](_0x2f57f9['id'])),_0x107c93[_0x231aed(0x1b3)][_0x231aed(0x1a2)](_0x29e807),_0x107c93;});}}function U(_0x5c74ca,_0x52c05b){const _0x4e7e83=_0x3e4ee1;return void 0x0!==_0x5c74ca[_0x4e7e83(0x169)]&&void 0x0===_0x52c05b[_0x4e7e83(0x169)]?0x1:void 0x0===_0x5c74ca[_0x4e7e83(0x169)]&&void 0x0!==_0x52c05b[_0x4e7e83(0x169)]?-0x1:void 0x0!==_0x5c74ca[_0x4e7e83(0x169)]&&void 0x0!==_0x52c05b[_0x4e7e83(0x169)]?_0x5c74ca[_0x4e7e83(0x169)]-_0x52c05b[_0x4e7e83(0x169)]:0x0;}function B(_0xc60616,_0x82e763){const _0x18740a=_0x3e4ee1;_0x82e763[_0x18740a(0x1c2)](U);const _0x555b50={},_0x5329fc=[];for(const _0x5a04b2 of _0x82e763)if(void 0x0!==_0x5a04b2[_0x18740a(0x169)]){if(_0x5a04b2[_0x18740a(0x169)]in _0x555b50)throw new _0x23027a(_0x18740a(0x175),_0xc60616,{'conflictingDefinitions':[_0x5a04b2,_0x555b50[_0x5a04b2[_0x18740a(0x169)]]]});_0x555b50[_0x5a04b2[_0x18740a(0x169)]]=_0x5a04b2,_0x5329fc[_0x18740a(0x1a3)](_0x5a04b2[_0x18740a(0x169)],0x0,_0x5a04b2);}else _0x5329fc[_0x18740a(0x197)](_0x5a04b2);return _0x5329fc;}
|
|
23
|
+
function _0x2ced(){const _0x58f157=['_aiAdapter','promptView','textAdapter','AI\x20is\x20writing','ck-ai-assistant-ui','get','_formView','componentFactory','menuPanelClass','config','getRanges','init','REPLACE','document','insertContentBelow','hide','editing','Generated\x20content:\x20%0','rawHtml','trim','4081524BwFqqE','addMany','AIAssistantUI','menuBar:aiAssistant','\x20ck-ai-assistant-ui_theme','updatePosition','currentContext','5IRpveb','getLimitElement','commands','show','render','selection','command:','aiAssistant','_showLicenseError','262716oOdkIl','body','order','8ZbShBF','sort','add','includes','queryView','2500603TTXuvQ','<p>','groupLabel','requires','_getResolvedCommandsDefinitions','requiresContent','aiLicenseKeyNotAllowed','isFlat','map','menuBar:aiCommands','media','aiLicenseKeyExpired','text/html','prompt','setSelection','execute','_uiCssClasses','DataTransfer','push','ai-commands-config-order-collision','aiLicenseKeyDomainLimit','aiCommands','getSelectedElement','ai.assistant.contentAreaCssClass','hideUI','_initAriaAiStatusChangeAnnouncements','fire','getData','change:isError','buttons','updateView','ai.assistant.commands','_getMenuBarGroupButtons','68BgHpcO','706699crfKet','change:isProcessing','invalid','change','licenseKey','from','contentArea','isEnabled','showFakeVisualSelection','20gSxHzJ','editor','AI\x20Commands','ck-ai-assistant-button\x20','update','locale','once','replace','aiLicenseKeyValid','_licenseKeyCheckInterval','replaceContent','fieldView','getSelectedBlocks','custom','_dialog','aiLicenseKeyEvaluationLimit','children','AI\x20Assistant','_initView','listenTo','model','destroy','delegate','text','usageLimit','insertContent','schema','isCollapsed','showAIAssistant','comment','groupId','</p>','_populateMenuBarMenu','isOn','aiLicenseKeyInvalid','showUI','length','announce','label','forEach','filter','copy','change:value','isOfficialPlugin','domainLimit','Error\x20during\x20AI\x20content\x20generation:\x20%0','items','10871820AlGkRX','tableOfContents','view','ck-ai-commands-dropdown\x20','focus','values','INSERT','enabledCommandsIds','source','wasMoved','buttonView','errorView','change:enabledCommandsIds','define','_forceMarkersCopy','80853sQULyS','_commandDefinitions','reset','11385583GQHgRl','pluginName','plugins','polite','ai.assistant.useTheme','_aiAssistantController','aiLicenseKeyUsageLimit','bind','AIAssistant','_createAIAssistantUIButton','expired','ai.assistant.disabledElements','set','_onExecute','menuView','splice','panelView','hideFakeVisualSelection','featureNotAllowed','evaluationLimit','menuitemcheckbox','EDITOR_TOP_SIDE','isPremiumPlugin'];_0x2ced=function(){return _0x58f157;};return _0x2ced();}const _0x5ed912=_0x189d;(function(_0x4402a5,_0x34e78d){const _0x589715=_0x189d,_0x1403c0=_0x4402a5();while(!![]){try{const _0x2a9cc7=parseInt(_0x589715(0x9c))/0x1+-parseInt(_0x589715(0x72))/0x2+-parseInt(_0x589715(0xe3))/0x3*(parseInt(_0x589715(0x9b))/0x4)+-parseInt(_0x589715(0x118))/0x5*(parseInt(_0x589715(0x111))/0x6)+-parseInt(_0x589715(0x7a))/0x7*(-parseInt(_0x589715(0x75))/0x8)+-parseInt(_0x589715(0xd4))/0x9+-parseInt(_0x589715(0xa5))/0xa*(-parseInt(_0x589715(0xe6))/0xb);if(_0x2a9cc7===_0x34e78d)break;else _0x1403c0['push'](_0x1403c0['shift']());}catch(_0x5d2b48){_0x1403c0['push'](_0x1403c0['shift']());}}}(_0x2ced,0xa0393));import{Plugin as _0x4ced43}from'ckeditor5/src/core.js';import{IconMagicWand as _0x33777d,IconRobotPencil as _0x336286}from'ckeditor5/src/icons.js';import{first as _0x531c67,CKEditorError as _0x124f42}from'ckeditor5/src/utils.js';import{createDropdown as _0x567f80,addMenuToDropdown as _0x3c61bc,ButtonView as _0x528ca6,MenuBarMenuListItemButtonView as _0x2d1e40,Dialog as _0x340a69,DialogViewPosition as _0x4822fd,MenuBarMenuView as _0x1fe0ca,MenuBarMenuListView as _0x1ac27b,MenuBarMenuListItemView as _0x3e39a1}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x45434c,UNGROUPED_COMMANDS_GROUP_ID as _0x2a6cc9}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x9fbbea}from'./aiassistantediting.js';import{AIAdapter as _0x4c14f7}from'./adapters/aiadapter.js';import{getTranslation as _0x49be93}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x183179}from'./ui/showaiassistantcommand.js';function _0x189d(_0x126d96,_0x1add6){const _0x2ced24=_0x2ced();return _0x189d=function(_0x189d23,_0x14e023){_0x189d23=_0x189d23-0x72;let _0x1432f0=_0x2ced24[_0x189d23];return _0x1432f0;},_0x189d(_0x126d96,_0x1add6);}import{AIAssistantController as _0x355a67}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x25dbbb}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x102df3}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const w=globalThis[_0x5ed912(0x8b)];import{ClipboardMarkersUtils as _0x513b6c}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x20180e,ViewDataTransfer as _0x1e8d5}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x4ced43{[_0x5ed912(0xa0)];[_0x5ed912(0xae)];[_0x5ed912(0xb3)];[_0x5ed912(0x103)];[_0x5ed912(0xfd)];[_0x5ed912(0xeb)];[_0x5ed912(0x8a)]='';static get[_0x5ed912(0xe7)](){const _0xf68eb9=_0x5ed912;return _0xf68eb9(0x113);}static get[_0x5ed912(0xd0)](){return!0x0;}static get[_0x5ed912(0xfc)](){return!0x0;}static get[_0x5ed912(0x7d)](){return[_0x513b6c,_0x9fbbea,_0x4c14f7,_0x340a69];}constructor(_0x3ca424){const _0x22dbd0=_0x5ed912;super(_0x3ca424),_0x3ca424[_0x22dbd0(0x106)][_0x22dbd0(0xe1)](_0x22dbd0(0xf1),[_0x22dbd0(0x84),_0x22dbd0(0x10f),_0x22dbd0(0xd5)]),_0x3ca424[_0x22dbd0(0x106)][_0x22dbd0(0xe1)](_0x22dbd0(0x91),''),_0x3ca424[_0x22dbd0(0x106)][_0x22dbd0(0xe1)](_0x22dbd0(0xea),!0x0),this[_0x22dbd0(0x8a)]=_0x22dbd0(0x101)+(_0x3ca424[_0x22dbd0(0x106)][_0x22dbd0(0x102)](_0x22dbd0(0xea))?_0x22dbd0(0x115):'');}[_0x5ed912(0x108)](){const _0x461a74=_0x5ed912,{editor:_0x18ed55}=this;this[_0x461a74(0xfd)]=_0x18ed55[_0x461a74(0xe8)][_0x461a74(0x102)](_0x4c14f7),this[_0x461a74(0xb3)]=_0x18ed55[_0x461a74(0xe8)][_0x461a74(0x102)](_0x340a69),this[_0x461a74(0x103)]=null,this[_0x461a74(0xe4)]=this[_0x461a74(0x7e)]();const _0x18cd63=new _0x183179(_0x18ed55,Array[_0x461a74(0xa1)](this[_0x461a74(0xe4)][_0x461a74(0xd9)]()));_0x18ed55[_0x461a74(0x11a)][_0x461a74(0x77)](_0x461a74(0xc1),_0x18cd63),_0x18ed55['ui'][_0x461a74(0x104)][_0x461a74(0x77)](_0x461a74(0x8f),_0x37e870=>{const _0x5f36bd=_0x461a74,_0x3b5a1f=_0x567f80(_0x37e870);return _0x3b5a1f[_0x5f36bd(0xf2)]({'class':_0x5f36bd(0xd7)+this[_0x5f36bd(0x8a)]}),_0x3b5a1f[_0x5f36bd(0xde)][_0x5f36bd(0xf2)]({'label':_0x49be93(_0x37e870,_0x5f36bd(0xa7)),'icon':_0x33777d,'tooltip':!0x0}),_0x3b5a1f['on'](_0x5f36bd(0x89),_0xcf62b2=>this[_0x5f36bd(0xf3)](_0xcf62b2[_0x5f36bd(0xdc)]['id'])),_0x3c61bc(_0x3b5a1f,_0x18ed55['ui'][_0x5f36bd(0xd6)][_0x5f36bd(0x73)],function(_0x320c31){const _0x516ad0=_0x5f36bd,_0x175bbb=_0x45434c(_0x320c31[_0x516ad0(0x106)][_0x516ad0(0x102)](_0x516ad0(0x99)),_0x320c31[_0x516ad0(0xaa)]),_0x4b8f0e=B(_0x320c31,_0x175bbb)[_0x516ad0(0xcd)](_0x53b96b=>_0x53b96b[_0x516ad0(0x11a)][_0x516ad0(0xc9)]);if(0x1===_0x4b8f0e[_0x516ad0(0xc9)])return B(_0x320c31,_0x4b8f0e[0x0][_0x516ad0(0x11a)])[_0x516ad0(0x82)](_0x4fbaa0=>({'id':_0x4fbaa0['id'],'label':_0x4fbaa0[_0x516ad0(0xcb)]}));return _0x4b8f0e[_0x516ad0(0x82)](_0x2f529b=>{const _0x32f31c=_0x516ad0,{groupId:_0x422896,groupLabel:_0x1f6385,commands:_0x398062}=_0x2f529b,_0x378d3a=B(_0x320c31,_0x398062)[_0x32f31c(0x82)](_0x5d934f=>({'id':_0x5d934f['id'],'label':_0x5d934f[_0x32f31c(0xcb)]}));return{'id':_0x422896,'menu':_0x1f6385||_0x422896,'children':_0x378d3a};});}(_0x18ed55),{'ariaLabel':_0x49be93(_0x37e870,_0x5f36bd(0xa7))}),_0x3b5a1f[_0x5f36bd(0xf4)][_0x5f36bd(0x105)]=_0x5f36bd(0xd7)+this[_0x5f36bd(0x8a)],_0x18cd63['on'](_0x5f36bd(0xe0),_0x2542a0),_0x3b5a1f[_0x5f36bd(0xf4)][_0x5f36bd(0xab)](_0x5f36bd(0x11c),_0x2542a0),_0x3b5a1f;function _0x2542a0(){const _0x2c56a4=_0x5f36bd;_0x3b5a1f[_0x2c56a4(0xa3)]=_0x18cd63[_0x2c56a4(0xdb)][_0x2c56a4(0xc9)]>0x0;for(const _0xd42339 of _0x3b5a1f[_0x2c56a4(0xf4)][_0x2c56a4(0x97)])_0xd42339[_0x2c56a4(0xa3)]=_0x18cd63[_0x2c56a4(0xdb)][_0x2c56a4(0x78)](_0xd42339['id']);}}),_0x18ed55['ui'][_0x461a74(0x104)][_0x461a74(0x77)](_0x461a74(0x83),_0x116692=>{const _0x44bc40=_0x461a74,_0xe31766=new _0x1fe0ca(_0x116692);_0xe31766[_0x44bc40(0xde)][_0x44bc40(0xf2)]({'label':_0x49be93(_0x116692,_0x44bc40(0xa7)),'icon':_0x33777d}),_0xe31766[_0x44bc40(0xed)](_0x44bc40(0xa3))['to'](_0x18cd63,_0x44bc40(0xdb),_0x3aa22c=>_0x3aa22c[_0x44bc40(0xc9)]>0x0);const _0x4dcbb0=_0x45434c(_0x18ed55[_0x44bc40(0x106)][_0x44bc40(0x102)](_0x44bc40(0x99)),_0x116692);return this[_0x44bc40(0xc5)](_0x18cd63,_0xe31766,_0x4dcbb0,_0x129db4=>this[_0x44bc40(0xf3)](_0x129db4)),_0xe31766;}),_0x18ed55['ui'][_0x461a74(0x104)][_0x461a74(0x77)](_0x461a74(0x11f),()=>{const _0x4fc0d0=_0x461a74,_0x221445=this[_0x4fc0d0(0xef)](_0x528ca6);return _0x221445[_0x4fc0d0(0xf2)]({'tooltip':!0x0,'class':_0x4fc0d0(0xa8)+this[_0x4fc0d0(0x8a)]}),_0x221445;}),_0x18ed55['ui'][_0x461a74(0x104)][_0x461a74(0x77)](_0x461a74(0x114),()=>{const _0x1437d1=_0x461a74,_0x5c6141=this[_0x1437d1(0xef)](_0x2d1e40);return _0x5c6141[_0x1437d1(0xf2)]({'role':_0x1437d1(0xfa)}),_0x5c6141;}),this[_0x461a74(0xa0)]=this[_0x461a74(0xa6)][_0x461a74(0x106)][_0x461a74(0x102)](_0x461a74(0xa0));const _0x1ebadc=this[_0x461a74(0xa6)];this[_0x461a74(0xae)]=setInterval(()=>{const _0x5d6733=_0x461a74;let _0x2aa148;for(const _0x4825ea in _0x1ebadc){const _0x51d120=_0x4825ea,_0x54bf41=_0x1ebadc[_0x51d120];if(_0x5d6733(0xad)==_0x54bf41||_0x5d6733(0xc7)==_0x54bf41||_0x5d6733(0x85)==_0x54bf41||_0x5d6733(0x8e)==_0x54bf41||_0x5d6733(0x80)==_0x54bf41||_0x5d6733(0xb4)==_0x54bf41||_0x5d6733(0xec)==_0x54bf41){delete _0x1ebadc[_0x51d120],_0x2aa148=_0x54bf41,clearInterval(this[_0x5d6733(0xae)]),this[_0x5d6733(0xae)]=void 0x0;break;}}_0x5d6733(0xc7)==_0x2aa148&&_0x1ebadc[_0x5d6733(0x120)](_0x5d6733(0x9e)),_0x5d6733(0x85)==_0x2aa148&&_0x1ebadc[_0x5d6733(0x120)](_0x5d6733(0xf0)),_0x5d6733(0x8e)==_0x2aa148&&_0x1ebadc[_0x5d6733(0x120)](_0x5d6733(0xd1)),_0x5d6733(0x80)==_0x2aa148&&_0x1ebadc[_0x5d6733(0x120)](_0x5d6733(0xf8),_0x5d6733(0xee)),_0x5d6733(0xb4)==_0x2aa148&&_0x1ebadc[_0x5d6733(0x120)](_0x5d6733(0xf9)),_0x5d6733(0xec)==_0x2aa148&&_0x1ebadc[_0x5d6733(0x120)](_0x5d6733(0xbd));},0x3e8);}[_0x5ed912(0xba)](){const _0x379595=_0x5ed912;super[_0x379595(0xba)](),this[_0x379595(0xae)]&&clearInterval(this[_0x379595(0xae)]);}[_0x5ed912(0xc8)](_0x369fb3='',_0x31fcd5='',_0x2b2857=_0x5ed912(0xb2)){const _0x53291d=_0x5ed912,_0x2da0dd=this[_0x53291d(0xa6)],_0x256478=_0x2da0dd[_0x53291d(0x10d)][_0x53291d(0xd6)],_0x225b80=_0x2da0dd[_0x53291d(0xe8)][_0x53291d(0x102)](_0x9fbbea),_0x35b2e0=_0x2da0dd[_0x53291d(0xe8)][_0x53291d(0x102)](_0x513b6c);_0x225b80[_0x53291d(0xa4)]();const _0x4a1ca0=new w(),_0x581197=new ClipboardEvent(_0x53291d(0xce),{'clipboardData':_0x4a1ca0}),_0x4d6e08=new _0x1e8d5(_0x4a1ca0),_0x4208d1=new _0x20180e(_0x256478,_0x581197,{'dataTransfer':_0x4d6e08});_0x35b2e0[_0x53291d(0xe2)](_0x53291d(0xc2),()=>{const _0x5f3d91=_0x53291d;_0x256478[_0x5f3d91(0x10a)][_0x5f3d91(0x94)](_0x5f3d91(0xce),_0x4208d1);}),this[_0x53291d(0x103)]||(this[_0x53291d(0xb7)](),this[_0x53291d(0xeb)]=new _0x355a67(_0x2da0dd,this[_0x53291d(0xfd)][_0x53291d(0xff)],this[_0x53291d(0x103)]));let _0x5a449e=_0x4d6e08[_0x53291d(0x95)](_0x53291d(0x86));const _0x26e8eb=_0x2da0dd[_0x53291d(0xb9)][_0x53291d(0x10a)][_0x53291d(0x11d)],_0x40afc8=Array[_0x53291d(0xa1)](_0x26e8eb[_0x53291d(0x107)]());0x1===_0x40afc8[_0x53291d(0xc9)]&&_0x40afc8[0x0][_0x53291d(0x81)]&&!_0x26e8eb[_0x53291d(0x90)]()&&''!==_0x5a449e[_0x53291d(0xac)](/ /g,'')[_0x53291d(0x110)]()&&(_0x5a449e=_0x53291d(0x7b)+_0x5a449e+_0x53291d(0xc4)),this[_0x53291d(0xeb)][_0x53291d(0x98)]({'actionId':_0x2b2857,'query':_0x369fb3,'htmlContent':_0x5a449e,'label':_0x31fcd5,'mainActionLabel':_0x102df3[_0x2da0dd[_0x53291d(0xb9)][_0x53291d(0x10a)][_0x53291d(0x11d)][_0x53291d(0xc0)]?_0x53291d(0xda):_0x53291d(0x109)]}),_0x53291d(0x11f)!==this[_0x53291d(0xb3)]['id']?this[_0x53291d(0xb3)][_0x53291d(0x11b)]({'id':_0x53291d(0x11f),'icon':_0x336286,'title':_0x49be93(this[_0x53291d(0xa6)][_0x53291d(0xaa)],_0x53291d(0xb6)),'content':this[_0x53291d(0x103)],'position':_0x4822fd[_0x53291d(0xfb)],'onShow':()=>{const _0x5bd909=_0x53291d;this[_0x5bd909(0x103)][_0x5bd909(0xd8)]();},'onHide':()=>{const _0x1200ac=_0x53291d;this[_0x1200ac(0xeb)][_0x1200ac(0xe5)](),_0x225b80[_0x1200ac(0xf7)]();}}):this[_0x53291d(0xb3)][_0x53291d(0xd6)][_0x53291d(0xdd)]||this[_0x53291d(0xb3)][_0x53291d(0xd6)][_0x53291d(0x116)]();}[_0x5ed912(0x92)](){const _0x1524d3=_0x5ed912;this[_0x1524d3(0xb3)][_0x1524d3(0x10c)]();}[_0x5ed912(0x7e)](){const _0x24839e=_0x5ed912,_0xaf413f=new Map(),_0x228fb6=_0x45434c(this[_0x24839e(0xa6)][_0x24839e(0x106)][_0x24839e(0x102)](_0x24839e(0x99)),this[_0x24839e(0xa6)][_0x24839e(0xaa)]);for(const _0x2f8176 of _0x228fb6)for(const _0x1c8508 of _0x2f8176[_0x24839e(0x11a)])_0xaf413f[_0x24839e(0xf2)](_0x1c8508['id'],{..._0x1c8508,'groupId':_0x2f8176[_0x24839e(0xc3)],'groupLabel':_0x2f8176[_0x24839e(0x7c)]||_0x2f8176[_0x24839e(0xc3)]});return _0xaf413f;}[_0x5ed912(0xef)](_0x1c83d4){const _0x5efd04=_0x5ed912,_0x497f2c=this[_0x5efd04(0xa6)],_0x14012a=_0x497f2c[_0x5efd04(0x11a)][_0x5efd04(0x102)](_0x5efd04(0xc1)),_0x4d8108=new _0x1c83d4(_0x497f2c[_0x5efd04(0xaa)]);return _0x4d8108[_0x5efd04(0xf2)]({'label':_0x49be93(_0x497f2c[_0x5efd04(0xaa)],_0x5efd04(0xb6)),'icon':_0x336286,'isToggleable':!0x0}),_0x4d8108[_0x5efd04(0xed)](_0x5efd04(0xa3))['to'](_0x14012a),_0x4d8108[_0x5efd04(0xed)](_0x5efd04(0xc6))['to'](this[_0x5efd04(0xb3)],'id',_0x5e5d04=>_0x5efd04(0x11f)===_0x5e5d04),this[_0x5efd04(0xb8)](_0x4d8108,_0x5efd04(0x89),()=>{const _0x1de647=_0x5efd04;_0x4d8108[_0x1de647(0xc6)]?this[_0x1de647(0x92)]():_0x14012a[_0x1de647(0x89)]();}),_0x4d8108;}[_0x5ed912(0xb7)](){const _0x29b887=_0x5ed912,_0x43c2a2=this[_0x29b887(0xa6)][_0x29b887(0xe8)][_0x29b887(0x102)](_0x9fbbea);this[_0x29b887(0x103)]=new _0x25dbbb(this[_0x29b887(0xa6)][_0x29b887(0xaa)],this[_0x29b887(0x8a)],this[_0x29b887(0xa6)][_0x29b887(0x106)][_0x29b887(0x102)](_0x29b887(0x91))),this[_0x29b887(0x103)]['on'](_0x29b887(0xcf),()=>{const _0x119db0=_0x29b887;this[_0x119db0(0xb3)][_0x119db0(0xd6)][_0x119db0(0xdd)]||this[_0x119db0(0xb3)][_0x119db0(0xd6)][_0x119db0(0x116)]();}),this[_0x29b887(0x103)][_0x29b887(0xfe)][_0x29b887(0x79)][_0x29b887(0xb0)]['on'](_0x29b887(0xa9),()=>{const _0x33acc8=_0x29b887;this[_0x33acc8(0xb3)][_0x33acc8(0xd6)][_0x33acc8(0xdd)]||this[_0x33acc8(0xb3)][_0x33acc8(0xd6)][_0x33acc8(0x116)]();}),this[_0x29b887(0xb8)](this[_0x29b887(0x103)],_0x29b887(0xaf),()=>{const _0x648dbe=_0x29b887;_0x43c2a2[_0x648dbe(0xbe)](this[_0x648dbe(0xeb)][_0x648dbe(0x117)]),this[_0x648dbe(0x92)]();}),this[_0x29b887(0xb8)](this[_0x29b887(0x103)],_0x29b887(0x10b),()=>{const _0x1e7907=_0x29b887;_0x43c2a2[_0x1e7907(0x10b)](this[_0x1e7907(0xeb)][_0x1e7907(0x117)]),this[_0x1e7907(0x92)]();}),this[_0x29b887(0x93)]();}[_0x5ed912(0x93)](){const _0x936435=_0x5ed912,{locale:_0xe11579,ui:{ariaLiveAnnouncer:_0x4eee34}}=this[_0x936435(0xa6)];this[_0x936435(0x103)][_0x936435(0xa2)]['on'](_0x936435(0x9d),(_0x4aa948,_0x1e9957,_0x3ba07)=>{const _0x285ae4=_0x936435,_0x444119=this[_0x285ae4(0xeb)][_0x285ae4(0x117)];_0x3ba07?_0x4eee34[_0x285ae4(0xca)](_0x49be93(_0xe11579,_0x285ae4(0x100))):_0x444119&&_0x4eee34[_0x285ae4(0xca)](_0x49be93(_0xe11579,_0x285ae4(0x10e),_0x444119),{'politeness':_0x285ae4(0xe9),'isUnsafeHTML':!0x0});}),this[_0x936435(0x103)]['on'](_0x936435(0x96),(_0xff1591,_0x34092c,_0x3b2c9f)=>{const _0x484dc3=_0x936435;if(_0x3b2c9f){const _0x418916=this[_0x484dc3(0x103)][_0x484dc3(0xdf)][_0x484dc3(0xbc)];_0x4eee34[_0x484dc3(0xca)](_0x49be93(_0xe11579,_0x484dc3(0xd2),_0x418916));}});}[_0x5ed912(0xf3)](_0x4d7657){const _0x4f9c8e=_0x5ed912,_0x137dc4=this[_0x4f9c8e(0xe4)][_0x4f9c8e(0x102)](_0x4d7657),_0x2ad9b2=this[_0x4f9c8e(0xa6)],_0x5733a1=_0x2ad9b2[_0x4f9c8e(0xb9)][_0x4f9c8e(0x10a)][_0x4f9c8e(0x11d)],_0x374a14=_0x2ad9b2[_0x4f9c8e(0x11a)][_0x4f9c8e(0x102)](_0x4f9c8e(0xc1)),_0x3e1e47=_0x2ad9b2[_0x4f9c8e(0xe8)][_0x4f9c8e(0x102)](_0x9fbbea),_0x3babab=''+(_0x137dc4[_0x4f9c8e(0xc3)]!==_0x2a6cc9?_0x137dc4[_0x4f9c8e(0x7c)]+':\x20':'')+_0x137dc4[_0x4f9c8e(0xcb)];if(!0x1!==_0x137dc4[_0x4f9c8e(0x7f)]&&_0x5733a1[_0x4f9c8e(0xc0)]){const _0x1b665d=_0x531c67(_0x5733a1[_0x4f9c8e(0xb1)]())||_0x2ad9b2[_0x4f9c8e(0xb9)][_0x4f9c8e(0xbf)][_0x4f9c8e(0x119)](_0x5733a1);_0x2ad9b2[_0x4f9c8e(0xb9)][_0x4f9c8e(0x9f)](_0x24dd3b=>{const _0x43fc14=_0x4f9c8e;_0x24dd3b[_0x43fc14(0x88)](_0x1b665d,'in');});}_0x3e1e47[_0x4f9c8e(0xa4)](),_0x374a14[_0x4f9c8e(0x89)](_0x137dc4[_0x4f9c8e(0x87)],_0x3babab,_0x4f9c8e(0x11e)+_0x4d7657);}[_0x5ed912(0xc5)](_0xda1db6,_0x31c1cc,_0x88a2b7,_0x2e86dc){const _0xbc3c7b=_0x5ed912,_0x1f8828=this[_0xbc3c7b(0xa6)],_0x13c042=_0x1f8828[_0xbc3c7b(0xaa)],_0x2594f0=new _0x1ac27b(_0x13c042),_0x285148=B(_0x1f8828,_0x88a2b7)[_0xbc3c7b(0xcd)](_0x1c2742=>_0x1c2742[_0xbc3c7b(0x11a)][_0xbc3c7b(0xc9)]);0x1===_0x285148[_0xbc3c7b(0xc9)]?this[_0xbc3c7b(0x9a)]({'command':_0xda1db6,'commands':_0x285148[0x0][_0xbc3c7b(0x11a)],'parentMenuView':_0x31c1cc,'onExecute':_0x2e86dc})[_0xbc3c7b(0xcc)](_0x18c243=>_0x2594f0[_0xbc3c7b(0xd3)][_0xbc3c7b(0x77)](_0x18c243)):_0x285148[_0xbc3c7b(0xcc)](({groupId:_0xdc1889,groupLabel:_0x24bfce,commands:_0x5cb60f})=>{const _0x721147=_0xbc3c7b,_0x5bac1e=new _0x3e39a1(_0x13c042,_0x31c1cc),_0x264ac3=new _0x1fe0ca(_0x13c042),_0x4067e3=new _0x1ac27b(_0x13c042),_0x25e6da=this[_0x721147(0x9a)]({'command':_0xda1db6,'commands':_0x5cb60f,'parentMenuView':_0x264ac3,'onExecute':_0x2e86dc});_0x264ac3[_0x721147(0xde)][_0x721147(0xf2)]({'label':_0x24bfce||_0xdc1889}),_0x264ac3[_0x721147(0xbb)](_0x721147(0x89))['to'](_0x31c1cc),_0x4067e3[_0x721147(0xd3)][_0x721147(0x112)](_0x25e6da),_0x264ac3[_0x721147(0xf6)][_0x721147(0xb5)][_0x721147(0x77)](_0x4067e3),_0x5bac1e[_0x721147(0xb5)][_0x721147(0x77)](_0x264ac3),_0x2594f0[_0x721147(0xd3)][_0x721147(0x77)](_0x5bac1e);}),_0x31c1cc[_0xbc3c7b(0xf6)][_0xbc3c7b(0xb5)][_0xbc3c7b(0x77)](_0x2594f0);}[_0x5ed912(0x9a)]({command:_0x1ce513,commands:_0x20b947,parentMenuView:_0x4af86e,onExecute:_0x229067}){const _0x79d08a=_0x5ed912,_0x526f9f=this[_0x79d08a(0xa6)],_0x282df4=_0x526f9f[_0x79d08a(0xaa)];return B(_0x526f9f,_0x20b947)[_0x79d08a(0x82)](_0x7c34c1=>{const _0x3c39ba=_0x79d08a,_0x318887=new _0x3e39a1(_0x282df4,_0x4af86e),_0x5c5c19=new _0x2d1e40(_0x282df4);return _0x5c5c19[_0x3c39ba(0xf2)]({'label':_0x7c34c1[_0x3c39ba(0xcb)]}),_0x5c5c19[_0x3c39ba(0xbb)](_0x3c39ba(0x89))['to'](_0x4af86e),_0x5c5c19['on'](_0x3c39ba(0x89),()=>_0x229067(_0x7c34c1['id'])),_0x5c5c19[_0x3c39ba(0xed)](_0x3c39ba(0xa3))['to'](_0x1ce513,_0x3c39ba(0xdb),_0x57fdb0=>_0x57fdb0[_0x3c39ba(0x78)](_0x7c34c1['id'])),_0x318887[_0x3c39ba(0xb5)][_0x3c39ba(0x77)](_0x5c5c19),_0x318887;});}}function U(_0x489318,_0x1998ba){const _0x2b3811=_0x5ed912;return void 0x0!==_0x489318[_0x2b3811(0x74)]&&void 0x0===_0x1998ba[_0x2b3811(0x74)]?0x1:void 0x0===_0x489318[_0x2b3811(0x74)]&&void 0x0!==_0x1998ba[_0x2b3811(0x74)]?-0x1:void 0x0!==_0x489318[_0x2b3811(0x74)]&&void 0x0!==_0x1998ba[_0x2b3811(0x74)]?_0x489318[_0x2b3811(0x74)]-_0x1998ba[_0x2b3811(0x74)]:0x0;}function B(_0x1f479b,_0x58b8fe){const _0x12950c=_0x5ed912;_0x58b8fe[_0x12950c(0x76)](U);const _0x195f44={},_0xea2b21=[];for(const _0x9209f3 of _0x58b8fe)if(void 0x0!==_0x9209f3[_0x12950c(0x74)]){if(_0x9209f3[_0x12950c(0x74)]in _0x195f44)throw new _0x124f42(_0x12950c(0x8d),_0x1f479b,{'conflictingDefinitions':[_0x9209f3,_0x195f44[_0x9209f3[_0x12950c(0x74)]]]});_0x195f44[_0x9209f3[_0x12950c(0x74)]]=_0x9209f3,_0xea2b21[_0x12950c(0xf5)](_0x9209f3[_0x12950c(0x74)],0x0,_0x9209f3);}else _0xea2b21[_0x12950c(0x8c)](_0x9209f3);return _0xea2b21;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x125e9f,_0x5169d7){var _0x1632ae=_0x29d5,_0x50e4df=_0x125e9f();while(!![]){try{var _0x521207=-parseInt(_0x1632ae(0x1cd))/0x1*(parseInt(_0x1632ae(0x1c5))/0x2)+parseInt(_0x1632ae(0x1c6))/0x3+parseInt(_0x1632ae(0x1c7))/0x4*(parseInt(_0x1632ae(0x1c9))/0x5)+-parseInt(_0x1632ae(0x1cc))/0x6*(-parseInt(_0x1632ae(0x1c3))/0x7)+parseInt(_0x1632ae(0x1ca))/0x8*(-parseInt(_0x1632ae(0x1c4))/0x9)+-parseInt(_0x1632ae(0x1c8))/0xa+parseInt(_0x1632ae(0x1cb))/0xb*(parseInt(_0x1632ae(0x1ce))/0xc);if(_0x521207===_0x5169d7)break;else _0x50e4df['push'](_0x50e4df['shift']());}catch(_0x25f83c){_0x50e4df['push'](_0x50e4df['shift']());}}}(_0x17b1,0x7172f));import{CKEditorError as _0xd50d64}from'ckeditor5/src/utils.js';function _0x29d5(_0x44926d,_0x1946c7){var _0x17b13f=_0x17b1();return _0x29d5=function(_0x29d5f1,_0x149276){_0x29d5f1=_0x29d5f1-0x1c3;var _0x4c408f=_0x17b13f[_0x29d5f1];return _0x4c408f;},_0x29d5(_0x44926d,_0x1946c7);}function _0x17b1(){var _0x319c08=['1VVCzgj','420rFFFNj','8925DSmKuE','14985BiBbQU','1392454OwaYMR','1444869JJFaew','4iZcUVQ','2584200JQNEkL','709755kpRjdA','1688mDUAOh','240295IrBcXJ','1800cRtNRp'];_0x17b1=function(){return _0x319c08;};return _0x17b1();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x43f0(_0x31751c,_0x269141){const _0x376982=_0x3769();return _0x43f0=function(_0x43f01e,_0x45a827){_0x43f01e=_0x43f01e-0x99;let _0x49bf75=_0x376982[_0x43f01e];return _0x49bf75;},_0x43f0(_0x31751c,_0x269141);}function _0x3769(){const _0x29c701=['_xmlSerializer','querySelector','startsWith','childNodes','72696lDPMDm','previousActionId','abort','stopListening','reset','setContentOf','clear','htmlProcessor','previousQuery','editor','updateView','handleError','isRendered','render','innerHTML','503144TuClEE','344965zJHhSL','parseFromString','reverse','_sanitizationContainer','stringify','startProcessing','currentResponse','domConverter','custom','```html','793629wYtSVk','finishProcessing','div','set:currentContext','match','document','from','then','catch','trim','initialContext','makeRequest','once','remove','_domParser','serializeToString','20784UPCiKe','push','stopProcessing','_stripMarkdownSyntax','prompt','_sanitizeHTML','39sgLTLF','_normalizeResponseHeadings','get','markers','listenTo','204216vdTFiJ','previousLabel','```','40FMLQuG','viewToDom','text/html','_isH1TagSupportEnabled','1780360rnUEWH','set','<h1></h1>','mainAction','toModel','config','tryAgainEvent','textAdapter','element','_handleQuery','length','message','value','editing','body','view','toView','currentContext','submitPrompt','data','name','createElement','destroy','processor','substring','ai.assistant.preserveComments','finally','nodeType','rename','exec','previousContext','isProcessing','ELEMENT_NODE','_parseAndNormalizeContent','endsWith','70LRIscr'];_0x3769=function(){return _0x29c701;};return _0x3769();}const _0x36c9a5=_0x43f0;(function(_0x2bf8e2,_0x2c5cfb){const _0x4d3777=_0x43f0,_0x3709a2=_0x2bf8e2();while(!![]){try{const _0x471298=parseInt(_0x4d3777(0xb9))/0x1+parseInt(_0x4d3777(0xf3))/0x2*(-parseInt(_0x4d3777(0xbf))/0x3)+parseInt(_0x4d3777(0xcb))/0x4+parseInt(_0x4d3777(0x9f))/0x5+parseInt(_0x4d3777(0xc4))/0x6+parseInt(_0x4d3777(0xee))/0x7*(parseInt(_0x4d3777(0x9e))/0x8)+-parseInt(_0x4d3777(0xa9))/0x9*(parseInt(_0x4d3777(0xc7))/0xa);if(_0x471298===_0x2c5cfb)break;else _0x3709a2['push'](_0x3709a2['shift']());}catch(_0x3c7694){_0x3709a2['push'](_0x3709a2['shift']());}}}(_0x3769,0x5af69));import{ObservableMixin as _0x12f9b0}from'ckeditor5/src/utils.js';import{AIRequestError as _0xafed62}from'../adapters/aiadapter.js';import{Matcher as _0x1ee175,ViewUpcastWriter as _0x1da947}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x12f9b0(){[_0x36c9a5(0xfc)];[_0x36c9a5(0xd2)];[_0x36c9a5(0xda)];[_0x36c9a5(0xa2)];[_0x36c9a5(0xb7)];[_0x36c9a5(0xef)];constructor(_0x5b3ef9,_0x301d3b,_0x500834){const _0x47f2d5=_0x36c9a5;super(),this[_0x47f2d5(0xfc)]=_0x5b3ef9,this[_0x47f2d5(0xd2)]=_0x301d3b,this[_0x47f2d5(0xa2)]=document[_0x47f2d5(0xe0)](_0x47f2d5(0xab)),this[_0x47f2d5(0xb7)]=new DOMParser(),this[_0x47f2d5(0xef)]=new XMLSerializer(),this[_0x47f2d5(0xda)]=_0x500834,this[_0x47f2d5(0xcc)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x47f2d5(0xac),(_0x1cecc0,_0x39b18b,_0x4e3019)=>{const _0x4334d6=_0x47f2d5;this[_0x4334d6(0xda)][_0x4334d6(0xd7)]=this[_0x4334d6(0xbe)](_0x4e3019);}),this[_0x47f2d5(0xc3)](this[_0x47f2d5(0xda)],_0x47f2d5(0xdd),(_0x374f59,_0x38c73d)=>{const _0x4fb40d=_0x47f2d5,_0x434263=this[_0x4fb40d(0xdc)]||this[_0x4fb40d(0xb3)];this[_0x4fb40d(0xd4)](_0x38c73d,_0x434263,_0x4fb40d(0xa7));}),this[_0x47f2d5(0xc3)](this[_0x47f2d5(0xda)],_0x47f2d5(0xd1),()=>{const _0x4b236c=_0x47f2d5;this[_0x4b236c(0xda)][_0x4b236c(0xbd)]=this[_0x4b236c(0xc5)],this[_0x4b236c(0xd4)](this[_0x4b236c(0xfb)],this[_0x4b236c(0xe9)],this[_0x4b236c(0xf4)],this[_0x4b236c(0xc5)]);}),this[_0x47f2d5(0xc3)](this[_0x47f2d5(0xda)],_0x47f2d5(0xbb),()=>{const _0x478942=_0x47f2d5;this[_0x478942(0xbb)]();});}[_0x36c9a5(0xe1)](){const _0x5aaf89=_0x36c9a5;this[_0x5aaf89(0xf6)]();}async[_0x36c9a5(0x99)]({actionId:_0x3e5f66,query:_0x114272,htmlContent:_0x2664a2,label:_0x258a2c,mainActionLabel:_0x1a285a}){const _0x50a5ac=_0x36c9a5;this[_0x50a5ac(0xda)][_0x50a5ac(0xbd)]=_0x258a2c,this[_0x50a5ac(0xda)][_0x50a5ac(0xce)]=_0x1a285a,this[_0x50a5ac(0xb3)]=_0x2664a2,_0x114272&&(this[_0x50a5ac(0xda)][_0x50a5ac(0x9b)]?this[_0x50a5ac(0xd4)](_0x114272,_0x2664a2,_0x3e5f66,_0x258a2c):this[_0x50a5ac(0xda)][_0x50a5ac(0xb5)](_0x50a5ac(0x9c),()=>{const _0x333a5e=_0x50a5ac;this[_0x333a5e(0xd4)](_0x114272,_0x2664a2,_0x3e5f66,_0x258a2c);}));}[_0x36c9a5(0xbb)](){const _0xcc97b6=_0x36c9a5;this[_0xcc97b6(0xea)]&&(this[_0xcc97b6(0xea)]=!0x1,this[_0xcc97b6(0xda)][_0xcc97b6(0xaa)](),this[_0xcc97b6(0xd2)][_0xcc97b6(0xf5)]());}[_0x36c9a5(0xf7)](){const _0x5068de=_0x36c9a5;this[_0x5068de(0xb3)]='',this[_0x5068de(0xdc)]='',this[_0x5068de(0xa5)]='',this[_0x5068de(0xe9)]='',this[_0x5068de(0xfb)]='',this[_0x5068de(0xc5)]='',this[_0x5068de(0xf4)]=void 0x0,this[_0x5068de(0xda)][_0x5068de(0xf7)](),this[_0x5068de(0xbb)]();}async[_0x36c9a5(0xd4)](_0x2ccf51,_0x366978,_0x2421a9,_0x2f23b4){const _0x41e37e=_0x36c9a5;return this[_0x41e37e(0xea)]=!0x0,this[_0x41e37e(0xda)][_0x41e37e(0xa4)](),this[_0x41e37e(0xe9)]=_0x366978,this[_0x41e37e(0xfb)]=_0x2ccf51,this[_0x41e37e(0xc5)]=_0x2f23b4||_0x2ccf51,this[_0x41e37e(0xf4)]=_0x2421a9,new Promise(_0x166590=>{const _0x20d2e8=_0x41e37e;this[_0x20d2e8(0xd2)][_0x20d2e8(0xb4)]({'query':_0x2ccf51,'context':_0x366978,'onData':_0xac8ccc=>{const _0x5c134a=_0x20d2e8;this[_0x5c134a(0xa5)]=_0xac8ccc,this[_0x5c134a(0xdc)]=this[_0x5c134a(0xec)](this[_0x5c134a(0xa5)]);},'actionId':_0x2421a9})[_0x20d2e8(0xb0)](()=>{const _0x25922f=_0x20d2e8;!this[_0x25922f(0xdc)]&&this[_0x25922f(0xa5)]&&(this[_0x25922f(0xdc)]=this[_0x25922f(0xec)](this[_0x25922f(0xa5)],!0x0));})[_0x20d2e8(0xb1)](_0x37efff=>{const _0x1cfe5e=_0x20d2e8;_0x37efff instanceof _0xafed62?this[_0x1cfe5e(0xda)][_0x1cfe5e(0x9a)](_0x37efff[_0x1cfe5e(0xd6)]):this[_0x1cfe5e(0xda)][_0x1cfe5e(0x9a)](),_0x166590();})[_0x20d2e8(0xe5)](()=>{const _0xeb21ae=_0x20d2e8;this[_0xeb21ae(0xbb)](),_0x166590();});});}[_0x36c9a5(0xec)](_0x57a66f,_0x251469=!0x1){const _0xd38b52=_0x36c9a5,_0x1f71d9=hs[_0xd38b52(0xe8)](_0x57a66f);_0x57a66f=_0x1f71d9?_0x57a66f[_0xd38b52(0xe3)](_0x1f71d9[0x1][_0xd38b52(0xd5)]):_0x57a66f[_0xd38b52(0xd5)]<0x64&&!_0x251469?'':this[_0xd38b52(0xbc)](_0x57a66f);const _0xffc350=this[_0xd38b52(0xb7)][_0xd38b52(0xa0)](_0x57a66f,_0xd38b52(0xc9));if(_0x1f71d9){const _0x1cb25d=Array[_0xd38b52(0xaf)](_0xffc350[_0xd38b52(0xd9)][_0xd38b52(0xf2)]);_0x1cb25d[_0xd38b52(0xa1)]();for(const _0x58b988 of _0x1cb25d){if(_0x58b988[_0xd38b52(0xe6)]==Node[_0xd38b52(0xeb)])break;_0x58b988[_0xd38b52(0xb6)]();}}const _0x5c2a79=this[_0xd38b52(0xfc)][_0xd38b52(0xde)][_0xd38b52(0xe2)][_0xd38b52(0xdb)](this[_0xd38b52(0xef)][_0xd38b52(0xb8)](_0xffc350[_0xd38b52(0xd9)]));this[_0xd38b52(0xca)]()||this[_0xd38b52(0xc0)](_0x5c2a79);const _0x3e54ee=this[_0xd38b52(0xfc)][_0xd38b52(0xd0)][_0xd38b52(0xc1)](_0xd38b52(0xe4)),_0x4f02aa=this[_0xd38b52(0xfc)][_0xd38b52(0xde)][_0xd38b52(0xcf)](_0x5c2a79);return _0x3e54ee||_0x4f02aa[_0xd38b52(0xc2)][_0xd38b52(0xf9)](),this[_0xd38b52(0xfc)][_0xd38b52(0xde)][_0xd38b52(0xa3)](_0x4f02aa);}[_0x36c9a5(0xc0)](_0x1f65cf){const _0x8013df=_0x36c9a5,_0x1e387e=new _0x1da947(this[_0x8013df(0xfc)][_0x8013df(0xd8)][_0x8013df(0xda)][_0x8013df(0xae)]),_0xbfb2f8=new _0x1ee175({'name':/^h[1-5]$/}),_0x55d33f=[];let _0x1fedd4=!0x1;for(const _0x104730 of _0x1f65cf)_0x104730['is'](_0x8013df(0xd3))&&_0xbfb2f8[_0x8013df(0xad)](_0x104730)&&(_0x55d33f[_0x8013df(0xba)](_0x104730),'h1'==_0x104730[_0x8013df(0xdf)]&&(_0x1fedd4=!0x0));if(_0x1fedd4){for(const _0x72b260 of _0x55d33f)_0x1e387e[_0x8013df(0xe7)]('h'+(parseInt(_0x72b260[_0x8013df(0xdf)][0x1])+0x1),_0x72b260);}}[_0x36c9a5(0xca)](){const _0x8e5e51=_0x36c9a5,{data:_0xde0a93,editing:_0x572c05}=this[_0x8e5e51(0xfc)],_0x2fe918=_0xde0a93[_0x8e5e51(0xfa)][_0x8e5e51(0xdb)](_0x8e5e51(0xcd)),_0x235ac7=_0xde0a93[_0x8e5e51(0xdb)](_0xde0a93[_0x8e5e51(0xcf)](_0x2fe918));return!!_0x572c05[_0x8e5e51(0xda)][_0x8e5e51(0xa6)][_0x8e5e51(0xc8)](_0x235ac7)[_0x8e5e51(0xf0)]('h1');}[_0x36c9a5(0xbe)](_0x4c2adc){const _0x3504b4=_0x36c9a5;return this[_0x3504b4(0xfc)][_0x3504b4(0xd8)][_0x3504b4(0xda)][_0x3504b4(0xa6)][_0x3504b4(0xf8)](this[_0x3504b4(0xa2)],_0x4c2adc),this[_0x3504b4(0xa2)][_0x3504b4(0x9d)];}[_0x36c9a5(0xbc)](_0x51dba1){const _0x366ff1=_0x36c9a5,_0x4e7cb4=_0x51dba1[_0x366ff1(0xb2)]();return _0x4e7cb4[_0x366ff1(0xf1)](_0x366ff1(0xa8))?_0x4e7cb4[_0x366ff1(0xed)](_0x366ff1(0xc6))?_0x4e7cb4[_0x366ff1(0xe3)](0x7,_0x4e7cb4[_0x366ff1(0xd5)]-0x3):_0x4e7cb4[_0x366ff1(0xe3)](0x7):_0x51dba1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x552f3f=_0x122f;(function(_0x7dc84f,_0x414c38){const _0x5b77dc=_0x122f,_0x16473d=_0x7dc84f();while(!![]){try{const _0x55a882=-parseInt(_0x5b77dc(0xb3))/0x1+parseInt(_0x5b77dc(0xe9))/0x2+parseInt(_0x5b77dc(0xca))/0x3*(-parseInt(_0x5b77dc(0xf6))/0x4)+parseInt(_0x5b77dc(0xe0))/0x5*(-parseInt(_0x5b77dc(0xf0))/0x6)+parseInt(_0x5b77dc(0xc0))/0x7*(parseInt(_0x5b77dc(0xdd))/0x8)+parseInt(_0x5b77dc(0xd3))/0x9+parseInt(_0x5b77dc(0xa5))/0xa;if(_0x55a882===_0x414c38)break;else _0x16473d['push'](_0x16473d['shift']());}catch(_0x2590f7){_0x16473d['push'](_0x16473d['shift']());}}}(_0x4d52,0xea475));import{global as _0x6e4c28}from'ckeditor5/src/utils.js';import{View as _0x35f0a2,ButtonView as _0x226523,SpinnerView as _0x5d8cea}from'ckeditor5/src/ui.js';import{IconCheck as _0x1b6d75,IconCopy as _0x3cfc45}from'ckeditor5/src/icons.js';import{getTranslation as _0x28ee9f}from'../../utils/common-translations.js';function _0x122f(_0x2433d9,_0x426953){const _0x4d52d4=_0x4d52();return _0x122f=function(_0x122fac,_0x585715){_0x122fac=_0x122fac-0xa3;let _0x52f70f=_0x4d52d4[_0x122fac];return _0x52f70f;},_0x122f(_0x2433d9,_0x426953);}export class AIFormContentArea extends _0x35f0a2{[_0x552f3f(0xa9)];[_0x552f3f(0xbc)];constructor(_0x1b26c1,_0x406edf=''){const _0x519737=_0x552f3f;super(_0x1b26c1),this[_0x519737(0xd7)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x468f1c=this[_0x519737(0xda)];this[_0x519737(0xa9)]=new ContentFieldView(_0x1b26c1,_0x406edf),this[_0x519737(0xbc)]=this[_0x519737(0xb1)](),this[_0x519737(0xed)]({'tag':_0x519737(0xc6),'attributes':{'class':['ck',_0x519737(0xb8),_0x468f1c['if'](_0x519737(0xd0),_0x519737(0xf1),_0x37b6f0=>!_0x37b6f0)],'tabindex':'-1'},'children':[{'tag':_0x519737(0xc6),'attributes':{'class':['ck',_0x519737(0xad),_0x468f1c['if'](_0x519737(0xbd),_0x519737(0xf2))]},'children':[this[_0x519737(0xa9)],{'tag':_0x519737(0xc6),'attributes':{'class':['ck',_0x519737(0xe8)]},'children':[this[_0x519737(0xbc)]]}]}]});}[_0x552f3f(0xec)](){const _0x45ffa2=_0x552f3f;super[_0x45ffa2(0xec)](),this[_0x45ffa2(0xa4)]&&this[_0x45ffa2(0xa9)][_0x45ffa2(0xc3)](this[_0x45ffa2(0xa4)]);let _0xcfbb24=!0x1;this['on'](_0x45ffa2(0xf7),(_0x1ecfb4,_0x13407c,_0x280376)=>{const _0x3ff17d=_0x45ffa2,_0x501f3f=!this[_0x3ff17d(0xa9)][_0x3ff17d(0xf5)][_0x3ff17d(0xbb)](_0x3ff17d(0xaa));this[_0x3ff17d(0xa9)][_0x3ff17d(0xc3)](_0x280376),this[_0x3ff17d(0xbd)]&&_0x501f3f&&!_0xcfbb24&&this[_0x3ff17d(0xf5)][_0x3ff17d(0xb7)]({'top':this[_0x3ff17d(0xf5)][_0x3ff17d(0xb0)],'behavior':_0x3ff17d(0xe7)});}),this['on'](_0x45ffa2(0xae),(_0x2b64d1,_0x40125f,_0x4f35bc)=>{const _0x1abc6b=_0x45ffa2;_0xcfbb24=!0x1,_0x4f35bc?(this[_0x1abc6b(0xa4)]=null,this[_0x1abc6b(0xa9)][_0x1abc6b(0xac)]()):this[_0x1abc6b(0xa4)]||this[_0x1abc6b(0xa9)][_0x1abc6b(0xc3)]('');}),this[_0x45ffa2(0xd5)](this[_0x45ffa2(0xf5)],_0x45ffa2(0xf3),()=>{_0xcfbb24=!0x0;}),this[_0x45ffa2(0xd5)](this[_0x45ffa2(0xf5)],_0x45ffa2(0xe6),()=>{_0xcfbb24=!0x0;});}[_0x552f3f(0xbe)](){const _0x4315f7=_0x552f3f;this[_0x4315f7(0xf5)][_0x4315f7(0xbe)]();}[_0x552f3f(0xb1)](){const _0x211f75=_0x552f3f,_0x184269=this[_0x211f75(0xe1)],_0xa10282=new _0x226523(this[_0x211f75(0xe1)]),_0x19ad2f=_0x211f75(0xd9);return _0xa10282[_0x211f75(0xd7)]({'label':_0x28ee9f(_0x184269,_0x211f75(0xab)),'icon':_0x3cfc45,'class':_0x19ad2f,'tooltip':!0x0}),_0xa10282[_0x211f75(0xd8)](_0x211f75(0xd0))['to'](this,_0x211f75(0xa4),_0x4828d1=>!!_0x4828d1),_0xa10282[_0x211f75(0xd8)](_0x211f75(0xeb))['to'](this,_0x211f75(0xbd),_0x383c80=>!_0x383c80),_0xa10282['on'](_0x211f75(0xc5),()=>{const _0x54c700=_0x211f75;this[_0x54c700(0xc7)](this[_0x54c700(0xa9)][_0x54c700(0xf5)]),_0xa10282[_0x54c700(0xb6)]=_0x1b6d75,_0xa10282[_0x54c700(0xe5)]=_0x19ad2f+_0x54c700(0xa6),this[_0x54c700(0xbe)](),setTimeout(()=>{const _0x2c47e3=_0x54c700;_0xa10282[_0x2c47e3(0xb6)]=_0x3cfc45,_0xa10282[_0x2c47e3(0xe5)]=_0x19ad2f;},0x3e8);}),_0xa10282;}[_0x552f3f(0xc7)](_0x4dedf5){const _0x5b0059=_0x552f3f,{window:_0x1d16ee,document:_0x9cdce4}=_0x6e4c28;if(_0x1d16ee[_0x5b0059(0xc2)]){const {Blob:_0x334652,ClipboardItem:_0x1b6d31}=_0x1d16ee,_0x34f074=[new _0x1b6d31({'text/html':new _0x334652([_0x4dedf5[_0x5b0059(0xdb)]],{'type':_0x5b0059(0xe3)}),'text/plain':new _0x334652([_0x4dedf5[_0x5b0059(0xdf)]||''],{'type':_0x5b0059(0xa8)})})];navigator[_0x5b0059(0xbf)][_0x5b0059(0xc8)](_0x34f074);}else{const _0x193aa6=_0x9cdce4[_0x5b0059(0xc4)](_0x5b0059(0xc6));_0x193aa6[_0x5b0059(0xef)][_0x5b0059(0xcc)]=_0x5b0059(0xf4),_0x193aa6[_0x5b0059(0xef)][_0x5b0059(0xd2)]=_0x5b0059(0xa7),_0x193aa6[_0x5b0059(0xdb)]=_0x5b0059(0xee)+_0x4dedf5[_0x5b0059(0xdb)]+_0x5b0059(0xe4),_0x9cdce4[_0x5b0059(0xea)][_0x5b0059(0xdc)](_0x193aa6);const _0xc1a771=_0x9cdce4[_0x5b0059(0xb5)]();_0xc1a771[_0x5b0059(0xcf)](_0x193aa6[_0x5b0059(0xcd)]),_0xc1a771[_0x5b0059(0xc1)](_0x193aa6[_0x5b0059(0xce)]);const _0x4d8df8=_0x1d16ee[_0x5b0059(0xd1)]();_0x4d8df8[_0x5b0059(0xcb)](),_0x4d8df8[_0x5b0059(0xaf)](_0xc1a771),_0x9cdce4[_0x5b0059(0xd6)](_0x5b0059(0xde)),_0x193aa6[_0x5b0059(0xba)]();}}}function _0x4d52(){const _0xd3dd6c=['1150946iAXKoE','body','isEnabled','render','setTemplate','<span>[</span>','style','6JusESI','ck-hidden','ck-ai-form__content-area--processing','wheel','absolute','element','38996yFhRLE','change:value','ck-ai-form__content-field','value','5713820maUUgV','\x20ck-ai-form__copy-button--copied','-9999px','text/plain','contentFieldView','.ck-ai-form__loader','Copy','appendLoader','ck-ai-form__content-area','change:isProcessing','addRange','scrollHeight','_createCopyButton','ck-content','203229ugjyQC','AI\x20is\x20writing...','createRange','icon','scrollTo','ck-ai-form__content-area-wrapper','loaderView','remove','querySelector','copyButtonView','isProcessing','focus','clipboard','12747924QULHzN','setEndBefore','ClipboardItem','setContent','createElement','execute','div','_copyHTMLToClipboard','write','ck-ai-form__loader','459tQcuaj','removeAllRanges','position','firstElementChild','lastElementChild','setStartAfter','isVisible','getSelection','left','9220221naHXtH','ck-reset_all-excluded','listenTo','execCommand','set','bind','ck-ai-form__copy-button','bindTemplate','innerHTML','appendChild','8BTdGNh','copy','textContent','6690125bevzbD','locale','_createLoader','text/html','<span>]</span>','class','mousedown','smooth','ck-ai-form__copy-button-wrapper'];_0x4d52=function(){return _0xd3dd6c;};return _0x4d52();}export class ContentFieldView extends _0x35f0a2{constructor(_0x9b89e8,_0x1ade67=''){const _0x6fb5ee=_0x552f3f;super(_0x9b89e8),this[_0x6fb5ee(0xb9)]=this[_0x6fb5ee(0xe2)](),this[_0x6fb5ee(0xed)]({'tag':_0x6fb5ee(0xc6),'attributes':{'class':['ck',_0x6fb5ee(0xb2),_0x1ade67,_0x6fb5ee(0xd4),_0x6fb5ee(0xa3)]}});}[_0x552f3f(0xc3)](_0x379109){const _0x29d901=_0x552f3f;this[_0x29d901(0xf5)][_0x29d901(0xdb)]=_0x379109;}[_0x552f3f(0xac)](){const _0x1d01cf=_0x552f3f;this[_0x1d01cf(0xf5)][_0x1d01cf(0xdc)](this[_0x1d01cf(0xb9)][_0x1d01cf(0xf5)]);}[_0x552f3f(0xe2)](){const _0x1fe2a7=_0x552f3f,_0x4e6752=new _0x35f0a2(),_0x78bbd5=this[_0x1fe2a7(0xe1)],_0x208347=new _0x5d8cea();return _0x208347[_0x1fe2a7(0xd0)]=!0x0,_0x4e6752[_0x1fe2a7(0xed)]({'tag':_0x1fe2a7(0xc6),'attributes':{'class':['ck',_0x1fe2a7(0xc9)]},'children':[_0x208347,{'text':_0x28ee9f(_0x78bbd5,_0x1fe2a7(0xb4))}]}),_0x4e6752[_0x1fe2a7(0xec)](),_0x4e6752;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5adb(){const _0x29ab30=['bindTemplate','657RpEiJc','div','593355qWHVLg','396384ZDhVcF','401440sjDesK','setTemplate','1550526vUbxpJ','5379031MJwmEM','content','set','ck-ai-form__error','2298ltLlpt','6460twHinF','text','33808BgtZcq'];_0x5adb=function(){return _0x29ab30;};return _0x5adb();}(function(_0x364ad8,_0x48a2e1){const _0x46c98a=_0x5d87,_0x26d608=_0x364ad8();while(!![]){try{const _0x4450fe=parseInt(_0x46c98a(0x183))/0x1+parseInt(_0x46c98a(0x174))/0x2+parseInt(_0x46c98a(0x177))/0x3+parseInt(_0x46c98a(0x175))/0x4+parseInt(_0x46c98a(0x17d))/0x5*(-parseInt(_0x46c98a(0x17c))/0x6)+-parseInt(_0x46c98a(0x178))/0x7+-parseInt(_0x46c98a(0x17f))/0x8*(-parseInt(_0x46c98a(0x181))/0x9);if(_0x4450fe===_0x48a2e1)break;else _0x26d608['push'](_0x26d608['shift']());}catch(_0x3a8c19){_0x26d608['push'](_0x26d608['shift']());}}}(_0x5adb,0x6ed5a));function _0x5d87(_0x101f0e,_0x19dad9){const _0x5adbc8=_0x5adb();return _0x5d87=function(_0x5d8775,_0x8a47e){_0x5d8775=_0x5d8775-0x174;let _0x469225=_0x5adbc8[_0x5d8775];return _0x469225;},_0x5d87(_0x101f0e,_0x19dad9);}import{IconError as _0x15665a}from'ckeditor5/src/icons.js';import{View as _0x27ac3b,IconView as _0x6c3a71}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x27ac3b{constructor(_0xf94f49,_0x5e02d0=''){const _0x9c1d82=_0x5d87;super(_0xf94f49);const _0x51a29b=new _0x6c3a71(),_0x25acc2=this[_0x9c1d82(0x180)];this[_0x9c1d82(0x17a)](_0x9c1d82(0x17e),_0x5e02d0),_0x51a29b[_0x9c1d82(0x179)]=_0x15665a,this[_0x9c1d82(0x176)]({'tag':_0x9c1d82(0x182),'attributes':{'class':['ck',_0x9c1d82(0x17b)]},'children':[_0x51a29b,{'text':_0x25acc2['to'](_0x9c1d82(0x17e))}]});}}
|