@ckeditor/ckeditor5-ai 47.0.0-alpha.7 → 47.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +2 -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/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 +93 -5
- package/dist/index.css +118 -5
- package/dist/index.js +4 -4
- 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/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +0 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +0 -30
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.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/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- 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/aiconfig.d.ts +47 -9
- package/src/aicore/aiconnector.d.ts +2 -3
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -0
- 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/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -2
- 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/index.js +1 -1
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aitrackchanges.css +13 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xaaf45d=_0x16e4;function _0x16e4(_0x1c05a4,_0x499886){const _0x1e2c49=_0x1e2c();return _0x16e4=function(_0x16e438,_0x392209){_0x16e438=_0x16e438-0x1b0;let _0x5f8c8d=_0x1e2c49[_0x16e438];return _0x5f8c8d;},_0x16e4(_0x1c05a4,_0x499886);}(function(_0x5362fc,_0x323b78){const _0x183ace=_0x16e4,_0x33b830=_0x5362fc();while(!![]){try{const _0x175ad2=parseInt(_0x183ace(0x1da))/0x1+-parseInt(_0x183ace(0x1ec))/0x2+parseInt(_0x183ace(0x1d1))/0x3+parseInt(_0x183ace(0x1b7))/0x4+parseInt(_0x183ace(0x1de))/0x5+-parseInt(_0x183ace(0x1c5))/0x6+-parseInt(_0x183ace(0x1b3))/0x7*(-parseInt(_0x183ace(0x1c9))/0x8);if(_0x175ad2===_0x323b78)break;else _0x33b830['push'](_0x33b830['shift']());}catch(_0x57ebfa){_0x33b830['push'](_0x33b830['shift']());}}}(_0x1e2c,0x769ca));function _0x1e2c(){const _0x19c7da=['reject','pluginName','prepareMessages','resolve','_cleanUpData','read','stream','_requestParameters','replace','filter','choices','Moderation','4563336CHVexE','_prepareRequestHeaders','signal','config','2841704yaVVWm','data:\x20','stringify','OpenAITextAdapter','context_length_exceeded','_prepareRequestParameters','locale','ai.assistant.adapter.openAI.requestHeaders','1611528NRcFdw','join','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','content','length','system','getReader','[DONE]','decode','240925fiKMgg','AI_ERROR_MODERATION','_requestHeaders','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.','172710vDLtKQ','sendRequest','Instruction:\x0a','abortController','body','parse','delta','includes','ai.assistant.adapter.openAI.apiUrl','map','_readStaticResponse','POST','user','define','1206116FZbNij','editor','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.','gpt-4o','https://api.openai.com/v1/chat/completions','_apiUrl','split','get','_readStreamableResponse','_isBufferIncomplete','AI_ERROR_CONTEXT_LENGTH','14oENqRo','ai.assistant.adapter.openAI.requestParameters','message','text','1305516mXIuLv','json'];_0x1e2c=function(){return _0x19c7da;};return _0x1e2c();}import{AITextAdapter as _0x1d21ea}from'./aitextadapter.js';import{AIRequestError as _0x473d2c}from'./aiadapter.js';import{getTranslation as _0x5688bd}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x1d21ea{[_0xaaf45d(0x1f1)];[_0xaaf45d(0x1dc)];[_0xaaf45d(0x1c0)];static get[_0xaaf45d(0x1ba)](){const _0x202766=_0xaaf45d;return _0x202766(0x1cc);}constructor(_0x51941a){const _0x3a74a=_0xaaf45d;super(_0x51941a),_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1eb)](_0x3a74a(0x1e6),_0x3a74a(0x1f0)),_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1b4))||_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1eb)](_0x3a74a(0x1b4),{'model':_0x3a74a(0x1ef),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3a74a(0x1f1)]=_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1e6)),this[_0x3a74a(0x1dc)]=_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1d0))||{},this[_0x3a74a(0x1c0)]=_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1b4));}async[_0xaaf45d(0x1df)]({query:_0x5c9954,context:_0x49c510,onData:_0x46d8eb,actionId:_0x2d660b}){const _0x4bacd9=_0xaaf45d,_0x466ceb=this[_0x4bacd9(0x1ed)][_0x4bacd9(0x1cf)],_0x59e1e9=await this[_0x4bacd9(0x1bb)](_0x5c9954,_0x49c510,_0x2d660b),_0x34759c=await this[_0x4bacd9(0x1c6)](this[_0x4bacd9(0x1dc)],_0x2d660b),_0x11869f=await this[_0x4bacd9(0x1ce)](this[_0x4bacd9(0x1c0)],_0x2d660b),_0x196142={'messages':_0x59e1e9,..._0x11869f},_0x13bd0d={'method':_0x4bacd9(0x1e9),'headers':_0x34759c,'body':JSON[_0x4bacd9(0x1cb)](_0x196142),'signal':this[_0x4bacd9(0x1e1)][_0x4bacd9(0x1c7)]},_0x1fca45=await fetch(this[_0x4bacd9(0x1f1)],_0x13bd0d);if(_0x1fca45['ok'])return _0x11869f[_0x4bacd9(0x1bf)]?await this[_0x4bacd9(0x1b0)](_0x1fca45,_0x46d8eb):await this[_0x4bacd9(0x1e8)](_0x1fca45,_0x46d8eb),Promise[_0x4bacd9(0x1bc)]();{const _0x498064=await _0x1fca45[_0x4bacd9(0x1b6)]();return _0x498064[_0x4bacd9(0x1e5)](_0x4bacd9(0x1cd))?Promise[_0x4bacd9(0x1b9)](new _0x473d2c(_0x5688bd(_0x466ceb,_0x4bacd9(0x1b2)))):_0x498064[_0x4bacd9(0x1e5)](_0x4bacd9(0x1c4))?Promise[_0x4bacd9(0x1b9)](new _0x473d2c(_0x5688bd(_0x466ceb,_0x4bacd9(0x1db)))):Promise[_0x4bacd9(0x1b9)](new Error(_0x498064));}}async[_0xaaf45d(0x1bb)](_0x2a0065,_0x2630ba,_0x307910){const _0x531620=_0xaaf45d;let _0x555e88,_0x21f1e9;return _0x2630ba?(_0x555e88=_0x531620(0x1dd),_0x21f1e9=_0x531620(0x1e0)+_0x2a0065+_0x531620(0x1d3)+_0x2630ba):(_0x555e88=_0x531620(0x1ee),_0x21f1e9=_0x2a0065),[{'role':_0x531620(0x1d6),'content':_0x555e88},{'role':_0x531620(0x1ea),'content':_0x21f1e9}];}async[_0xaaf45d(0x1b0)](_0x223d67,_0xbd5372){const _0x2421c8=_0xaaf45d,_0xf51792=_0x223d67[_0x2421c8(0x1e2)][_0x2421c8(0x1d7)](),_0x326a62=new TextDecoder();let _0x14aef4='',_0x7fdaac='',_0x36e044='',_0x3e870d=!0x1;for(;!_0x3e870d;){const {done:_0x16d8cc,value:_0x530299}=await _0xf51792[_0x2421c8(0x1be)](),_0x2c317d=_0x14aef4+_0x326a62[_0x2421c8(0x1d9)](_0x530299);let _0x88ce2c='';_0x3e870d=_0x16d8cc;try{_0x88ce2c=this[_0x2421c8(0x1bd)](_0x2c317d),_0x14aef4='';}catch{_0x14aef4=_0x2c317d;continue;}_0x7fdaac+=_0x88ce2c,!_0x3e870d&&this[_0x2421c8(0x1b1)](_0x7fdaac)||_0x7fdaac&&(_0x36e044+=_0x7fdaac,_0x7fdaac='',_0xbd5372(_0x36e044));}return Promise[_0x2421c8(0x1bc)]();}async[_0xaaf45d(0x1e8)](_0x4de94d,_0x59c47a){const _0x1ed4a1=_0xaaf45d;return _0x59c47a((await _0x4de94d[_0x1ed4a1(0x1b8)]())[_0x1ed4a1(0x1c3)][0x0][_0x1ed4a1(0x1b5)][_0x1ed4a1(0x1d4)]),Promise[_0x1ed4a1(0x1bc)]();}[_0xaaf45d(0x1b1)](_0x232bec){const _0xc603a4=_0xaaf45d,_0x4d9116=_0x232bec[_0xc603a4(0x1f2)]('<')[_0xc603a4(0x1d5)]!==_0x232bec[_0xc603a4(0x1f2)]('>')[_0xc603a4(0x1d5)],_0x48c515=_0x232bec[_0xc603a4(0x1d5)]<0x1e;return _0x4d9116&&_0x48c515;}[_0xaaf45d(0x1bd)](_0x2d71ec){const _0x2ba494=_0xaaf45d;return _0x2d71ec[_0x2ba494(0x1f2)](/\n(?![^{]*\})/g)[_0x2ba494(0x1e7)](_0x34db1d=>_0x34db1d[_0x2ba494(0x1c1)](_0x2ba494(0x1ca),''))[_0x2ba494(0x1c2)](_0xfd529=>_0xfd529&&_0xfd529[_0x2ba494(0x1d5)]>0x0&&_0x2ba494(0x1d8)!==_0xfd529)[_0x2ba494(0x1e7)](_0x1433ec=>{const _0x1ca1e6=_0x2ba494,{choices:_0x4bc92a}=JSON[_0x1ca1e6(0x1e3)](_0x1433ec);if(_0x4bc92a[0x0]?.[_0x1ca1e6(0x1e4)]?.[_0x1ca1e6(0x1d4)])return _0x4bc92a[0x0][_0x1ca1e6(0x1e4)][_0x1ca1e6(0x1d4)];})[_0x2ba494(0x1c2)](_0x2ee8f5=>_0x2ee8f5)[_0x2ba494(0x1d2)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x271780=_0x1e56;function _0x1ece(){const _0x44689b=['Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Business','Spanish','Poetic','ai.assistant.preserveComments','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','English','Improve\x20writing','changeTone','filter','Make\x20longer','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','groupId','13008lrNqMO','translateArabic','isPremiumPlugin','14115233pAMPxp','3ktCmUn','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','forEach','Translate\x20the\x20content\x20to\x20French\x20language.','10gsUWwn','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','locale','Make\x20shorter','Continue','Simplify\x20language','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','generate','requires','push','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Edit\x20or\x20review','find','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Simplified\x20Chinese','improveWriting','poetic','ai.assistant.removeCommands','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','German','makeLonger','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateHindi','French','confident','AIAssistant','business','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','6601480MBDwXD','includes','68426676xqfLvo','Change\x20style','get','concat','Legal','112012bmubaU','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20German\x20language.','define','translateFrench','editOrReview','direct','6CjOKUe','makeShorter','pluginName','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translateSpanish','commands','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','isOfficialPlugin','Translate','Hindi','Casual','translateChinese','Change\x20tone','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','9vVhReU','Portuguese','professional','translate','Direct','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Confident','friendly','9166375xXULrk','Friendly','Journalism','simplifyLanguage','Summarize','Professional','continue','6062jOGmBI','Arabic','translateEnglish','changeStyle','legal','summarize','casual','translateGerman','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','4752664iGIdlm','translatePortuguese','Translate\x20the\x20content\x20to\x20English\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','config','Generate\x20from\x20selection','set','ai.assistant.commands','journalism','ai.assistant.extraCommandGroups'];_0x1ece=function(){return _0x44689b;};return _0x1ece();}(function(_0xa4143f,_0x4fa9ef){const _0x3d4124=_0x1e56,_0x522d3e=_0xa4143f();while(!![]){try{const _0x4fc108=-parseInt(_0x3d4124(0x120))/0x1*(parseInt(_0x3d4124(0x119))/0x2)+parseInt(_0x3d4124(0x163))/0x3*(parseInt(_0x3d4124(0x148))/0x4)+parseInt(_0x3d4124(0x137))/0x5+parseInt(_0x3d4124(0x15f))/0x6*(parseInt(_0x3d4124(0x13e))/0x7)+parseInt(_0x3d4124(0x112))/0x8*(parseInt(_0x3d4124(0x12f))/0x9)+parseInt(_0x3d4124(0xf6))/0xa*(parseInt(_0x3d4124(0x162))/0xb)+-parseInt(_0x3d4124(0x114))/0xc;if(_0x4fc108===_0x4fa9ef)break;else _0x522d3e['push'](_0x522d3e['shift']());}catch(_0x1a1685){_0x522d3e['push'](_0x522d3e['shift']());}}}(_0x1ece,0xec962));function _0x1e56(_0x16b612,_0x3bee44){const _0x1ece12=_0x1ece();return _0x1e56=function(_0x1e56f8,_0x2978ad){_0x1e56f8=_0x1e56f8-0xf6;let _0x257871=_0x1ece12[_0x1e56f8];return _0x257871;},_0x1e56(_0x16b612,_0x3bee44);}import{Plugin as _0x36d784}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1f89a0}from'./aiassistantui.js';import{AIAssistantEditing as _0x22d613}from'./aiassistantediting.js';import{getTranslation as _0x195617}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x117eb0}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x36d784{static get[_0x271780(0xfe)](){return[_0x1f89a0,_0x22d613];}static get[_0x271780(0x122)](){const _0x18f4d2=_0x271780;return _0x18f4d2(0x10f);}static get[_0x271780(0x128)](){return!0x0;}static get[_0x271780(0x161)](){return!0x0;}constructor(_0x11e5ec){const _0x3090d3=_0x271780;super(_0x11e5ec);const _0x2fed0f=_0x11e5ec[_0x3090d3(0x14c)],_0x357063=_0x11e5ec[_0x3090d3(0xf8)];_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x156),!0x0),_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x14f),getDefaultAICommands(_0x357063)),_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x151),[]),_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x107),[]);let _0x2a5d2c=_0x117eb0(_0x2fed0f[_0x3090d3(0x116)](_0x3090d3(0x14f)),_0x357063);const _0x58b68a=_0x2fed0f[_0x3090d3(0x116)](_0x3090d3(0x151)),_0x155317=_0x2fed0f[_0x3090d3(0x116)](_0x3090d3(0x107));_0x58b68a[_0x3090d3(0x165)](_0x7c5c14=>{const _0x83422d=_0x3090d3,_0x336ad7=_0x2a5d2c[_0x83422d(0x102)](_0x58761c=>_0x58761c[_0x83422d(0x15e)]===_0x7c5c14[_0x83422d(0x15e)]);_0x336ad7?_0x336ad7[_0x83422d(0x125)]=_0x336ad7[_0x83422d(0x125)][_0x83422d(0x117)](_0x7c5c14[_0x83422d(0x125)]):_0x2a5d2c[_0x83422d(0xff)](_0x7c5c14);}),_0x2a5d2c=_0x2a5d2c[_0x3090d3(0x15b)](_0x201268=>!_0x155317[_0x3090d3(0x113)](_0x201268[_0x3090d3(0x15e)])),_0x2a5d2c[_0x3090d3(0x165)](_0x3b20fe=>{const _0x130639=_0x3090d3;_0x3b20fe[_0x130639(0x125)]=_0x3b20fe[_0x130639(0x125)][_0x130639(0x15b)](_0x4acbd6=>!_0x155317[_0x130639(0x113)](_0x4acbd6['id']));}),_0x2fed0f[_0x3090d3(0x14e)](_0x3090d3(0x14f),_0x2a5d2c);}}export function getDefaultAICommands(_0x28e2c4){const _0x95952=_0x271780;return[{'groupId':_0x95952(0x11e),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x101)),'commands':[{'id':_0x95952(0x105),'label':_0x195617(_0x28e2c4,_0x95952(0x159)),'prompt':_0x95952(0x157)},{'id':_0x95952(0x121),'label':_0x195617(_0x28e2c4,_0x95952(0xf9)),'prompt':_0x95952(0x134)},{'id':_0x95952(0x10a),'label':_0x195617(_0x28e2c4,_0x95952(0x15c)),'prompt':_0x95952(0x15d)},{'id':_0x95952(0x13a),'label':_0x195617(_0x28e2c4,_0x95952(0xfb)),'prompt':_0x95952(0x164)}]},{'groupId':_0x95952(0xfd),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x14d)),'commands':[{'id':_0x95952(0x143),'label':_0x195617(_0x28e2c4,_0x95952(0x13b)),'prompt':_0x95952(0x14b)},{'id':_0x95952(0x13d),'label':_0x195617(_0x28e2c4,_0x95952(0xfa)),'prompt':_0x95952(0x12e)}]},{'groupId':_0x95952(0x15a),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x12d)),'commands':[{'id':_0x95952(0x131),'label':_0x195617(_0x28e2c4,_0x95952(0x13c)),'prompt':_0x95952(0x146)},{'id':_0x95952(0x144),'label':_0x195617(_0x28e2c4,_0x95952(0x12b)),'prompt':_0x95952(0x152)},{'id':_0x95952(0x11f),'label':_0x195617(_0x28e2c4,_0x95952(0x133)),'prompt':_0x95952(0xfc)},{'id':_0x95952(0x10e),'label':_0x195617(_0x28e2c4,_0x95952(0x135)),'prompt':_0x95952(0x103)},{'id':_0x95952(0x136),'label':_0x195617(_0x28e2c4,_0x95952(0x138)),'prompt':_0x95952(0x123)}]},{'groupId':_0x95952(0x141),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x115)),'commands':[{'id':_0x95952(0x110),'label':_0x195617(_0x28e2c4,_0x95952(0x153)),'prompt':_0x95952(0x10b)},{'id':_0x95952(0x142),'label':_0x195617(_0x28e2c4,_0x95952(0x118)),'prompt':_0x95952(0xf7)},{'id':_0x95952(0x150),'label':_0x195617(_0x28e2c4,_0x95952(0x139)),'prompt':_0x95952(0x11a)},{'id':_0x95952(0x106),'label':_0x195617(_0x28e2c4,_0x95952(0x155)),'prompt':_0x95952(0x100)}]},{'groupId':_0x95952(0x132),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x129)),'commands':[{'id':_0x95952(0x140),'label':_0x195617(_0x28e2c4,_0x95952(0x158)),'prompt':_0x95952(0x14a)},{'id':_0x95952(0x124),'label':_0x195617(_0x28e2c4,_0x95952(0x154)),'prompt':_0x95952(0x126)},{'id':_0x95952(0x149),'label':_0x195617(_0x28e2c4,_0x95952(0x130)),'prompt':_0x95952(0x111)},{'id':_0x95952(0x145),'label':_0x195617(_0x28e2c4,_0x95952(0x109)),'prompt':_0x95952(0x11b)},{'id':_0x95952(0x11d),'label':_0x195617(_0x28e2c4,_0x95952(0x10d)),'prompt':_0x95952(0x166)},{'id':_0x95952(0x12c),'label':_0x195617(_0x28e2c4,_0x95952(0x104)),'prompt':_0x95952(0x108)},{'id':_0x95952(0x10c),'label':_0x195617(_0x28e2c4,_0x95952(0x12a)),'prompt':_0x95952(0x127)},{'id':_0x95952(0x160),'label':_0x195617(_0x28e2c4,_0x95952(0x13f)),'prompt':_0x95952(0x147)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x70adfb=_0x46e7;(function(_0x30e8d5,_0x137018){const _0x20597a=_0x46e7,_0x1c75d5=_0x30e8d5();while(!![]){try{const _0x692701=-parseInt(_0x20597a(0xdb))/0x1+parseInt(_0x20597a(0x117))/0x2*(parseInt(_0x20597a(0xf9))/0x3)+parseInt(_0x20597a(0xc7))/0x4*(parseInt(_0x20597a(0x126))/0x5)+parseInt(_0x20597a(0xf1))/0x6*(parseInt(_0x20597a(0xc1))/0x7)+parseInt(_0x20597a(0xdf))/0x8+-parseInt(_0x20597a(0xe0))/0x9*(-parseInt(_0x20597a(0xd5))/0xa)+-parseInt(_0x20597a(0x10e))/0xb*(parseInt(_0x20597a(0x127))/0xc);if(_0x692701===_0x137018)break;else _0x1c75d5['push'](_0x1c75d5['shift']());}catch(_0x51e2e3){_0x1c75d5['push'](_0x1c75d5['shift']());}}}(_0x1057,0x4c52e));import{uid as _0x5eded6}from'ckeditor5/src/utils.js';import{Plugin as _0x37bea0}from'ckeditor5/src/core.js';function _0x46e7(_0x740dbb,_0x970c79){const _0x10578b=_0x1057();return _0x46e7=function(_0x46e797,_0x98a93d){_0x46e797=_0x46e797-0xba;let _0x992358=_0x10578b[_0x46e797];return _0x992358;},_0x46e7(_0x740dbb,_0x970c79);}import{ClipboardPipeline as _0x1a5419}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xde72bc,ViewDataTransfer as _0x511870}from'ckeditor5/src/engine.js';const P=globalThis[_0x70adfb(0xd8)],B=_0x70adfb(0x11b);export class AIAssistantEditing extends _0x37bea0{static get[_0x70adfb(0xd9)](){const _0x9405d0=_0x70adfb;return _0x9405d0(0x107);}static get[_0x70adfb(0xdc)](){return!0x0;}static get[_0x70adfb(0x128)](){return!0x0;}[_0x70adfb(0xfd)](){const _0x135ea3=_0x70adfb,{editor:_0xa3e3b7}=this,_0x25856c=[_0x135ea3(0xf0)];_0xa3e3b7[_0x135ea3(0x10d)][_0x135ea3(0x101)](_0x135ea3(0x106))&&_0x25856c[_0x135ea3(0xba)](_0x135ea3(0xee)),_0xa3e3b7[_0x135ea3(0x109)][_0x135ea3(0xda)](_0x135ea3(0xc8))[_0x135ea3(0xf6)]({'model':B,'view':{'classes':_0x25856c,'priority':0xc}}),_0xa3e3b7[_0x135ea3(0x109)][_0x135ea3(0xda)](_0x135ea3(0xc8))[_0x135ea3(0xd1)]({'model':B,'view':(_0x233cd2,{writer:_0x4c7856})=>{const _0x6cad6a=_0x135ea3;if(!_0x233cd2[_0x6cad6a(0x113)][_0x6cad6a(0x115)])return null;const _0x45db28=_0x4c7856[_0x6cad6a(0xca)](_0x6cad6a(0xcd));return _0x4c7856[_0x6cad6a(0x11d)]([_0x6cad6a(0xf0),_0x6cad6a(0x100)],_0x45db28),_0x45db28;}});}[_0x70adfb(0xbe)](){!async function(_0x44b6bb){const _0x5e65b6=_0x431ef5([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]),_0x2e9efb=0x3dffc4e1,_0x3a5c02=0x3df8b039^_0x2e9efb,_0x154d89=window[_0x431ef5([0x44,0x61,0x74,0x65])][_0x431ef5([0x6e,0x6f,0x77])](),_0x308bbf=_0x44b6bb[_0x431ef5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4840ec=new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb267=>{_0x308bbf[_0x431ef5([0x6f,0x6e,0x63,0x65])](_0x431ef5([0x72,0x65,0x61,0x64,0x79]),_0x5eb267);}),_0x4f3d77={[_0x431ef5([0x6b,0x74,0x79])]:_0x431ef5([0x45,0x43]),[_0x431ef5([0x75,0x73,0x65])]:_0x431ef5([0x73,0x69,0x67]),[_0x431ef5([0x63,0x72,0x76])]:_0x431ef5([0x50,0x2d,0x32,0x35,0x36]),[_0x431ef5([0x78])]:_0x431ef5([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]),[_0x431ef5([0x79])]:_0x431ef5([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]),[_0x431ef5([0x61,0x6c,0x67])]:_0x431ef5([0x45,0x53,0x32,0x35,0x36])},_0x5528a7=_0x308bbf[_0x431ef5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x431ef5([0x67,0x65,0x74])](_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7e4c4b(){let _0x256970,_0x4130ae=null,_0x557d74=null;try{if(_0x5528a7==_0x431ef5([0x47,0x50,0x4c]))return _0x431ef5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x256970=_0x3b1abd(),!_0x256970)return _0x431ef5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x256970[_0x431ef5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x557d74=_0xb3cf47(_0x256970[_0x431ef5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x256970[_0x431ef5([0x6a,0x74,0x69])])),await _0x389479()?_0x481dbe()?_0x13cb66()?_0x431ef5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50de6f()?(_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431ef5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4130ae=_0x20db85(_0x431ef5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431ef5([0x74,0x72,0x69,0x61,0x6c])&&(_0x4130ae=_0x20db85(_0x431ef5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x274a6f()):_0x431ef5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x431ef5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x431ef5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x431ef5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13cb66(){const _0x15a246=[_0x431ef5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x431ef5([0x74,0x72,0x69,0x61,0x6c])][_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x154d89/0x3e8:0xe10*_0x3a5c02;return _0x256970[_0x431ef5([0x65,0x78,0x70])]<_0x15a246;}function _0x481dbe(){const _0x33d39c=_0x256970[_0x431ef5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x33d39c&&(!!_0x33d39c[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431ef5([0x2a]))||!!_0x33d39c[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431ef5([0x41,0x49])));}function _0x50de6f(){const _0xa4c1b0=_0x46e7,_0x2ee15a=_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ee15a||0x0==_0x2ee15a[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x147155}=new URL(window[_0x431ef5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa4c1b0(0xff)]);if(_0x2ee15a[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x147155))return!0x0;const _0x53c78b=_0x147155[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e]));return _0x2ee15a[_0x431ef5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3241c6=>_0x3241c6[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431ef5([0x2a])))[_0x431ef5([0x6d,0x61,0x70])](_0x454744=>_0x454744[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e])))[_0x431ef5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32669d=>_0x32669d[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53c78b[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431ef5([0x6d,0x61,0x70])](_0x3c58c2=>Array(_0x53c78b[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c58c2[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431ef5([0x66,0x69,0x6c,0x6c])](_0x3c58c2[0x0]===_0x431ef5([0x2a])?_0x431ef5([0x2a]):'')[_0x431ef5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c58c2))[_0x431ef5([0x73,0x6f,0x6d,0x65])](_0x474442=>_0x53c78b[_0x431ef5([0x65,0x76,0x65,0x72,0x79])]((_0x158441,_0x3f50d3)=>_0x474442[_0x3f50d3]===_0x158441||_0x474442[_0x3f50d3]===_0x431ef5([0x2a])));}function _0x274a6f(){return _0x4130ae&&_0x557d74?new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5329d9,_0x5d8e37)=>{_0x4130ae[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x5329d9,_0x5d8e37),_0x557d74[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x320a96=>{_0x320a96!=_0x431ef5([0x56,0x61,0x6c,0x69,0x64])&&_0x5329d9(_0x320a96);},_0x5d8e37);}):_0x4130ae||_0x557d74||_0x431ef5([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb3cf47(_0x14e794,_0x56a4aa){return new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d1777=>{if(_0x1f9b7a())return _0x4d1777(_0x431ef5([0x56,0x61,0x6c,0x69,0x64]));_0x274774(),_0x308bbf[_0x431ef5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x431ef5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d6f77=!0x1;const _0x30838b=_0x5eded6();function _0x480623(_0x2ca263){return!!_0x2ca263&&(typeof _0x2ca263===_0x431ef5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ca263===_0x431ef5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ca263[_0x431ef5([0x74,0x68,0x65,0x6e])]===_0x431ef5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ca263[_0x431ef5([0x63,0x61,0x74,0x63,0x68])]===_0x431ef5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fd2d2(_0x405ba0){_0x5e042d(_0x405ba0)[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x115603=>{if(!_0x115603||_0x115603[_0x431ef5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x431ef5([0x6f,0x6b]))return _0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a4e93(_0x856c7d(_0x30838b+_0x56a4aa))!=_0x115603[_0x431ef5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x431ef5([0x56,0x61,0x6c,0x69,0x64]);})[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x4f5bc7=>(_0x555428(),_0x4f5bc7),()=>{const _0x41698a=_0x20aef5();return null==_0x41698a?(_0x555428(),_0x431ef5([0x56,0x61,0x6c,0x69,0x64])):_0x431ef5(_0x154d89-_0x41698a>(0x19f340e1^_0x2e9efb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x4d1777)[_0x431ef5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d1777(_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe7f52a=0x3dc92a61^_0x2e9efb;function _0x555428(){const _0x50d34b=_0x431ef5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a4e93(_0x856c7d(_0x14e794)),_0x4a4d4c=_0x11625a(_0x4a4e93(window[_0x431ef5([0x4d,0x61,0x74,0x68])][_0x431ef5([0x63,0x65,0x69,0x6c])](_0x154d89/_0xe7f52a)));window[_0x431ef5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431ef5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50d34b,_0x4a4d4c);}function _0x20aef5(){const _0x2e0b26=_0x431ef5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a4e93(_0x856c7d(_0x14e794)),_0xa1ece7=window[_0x431ef5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431ef5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e0b26);return _0xa1ece7?window[_0x431ef5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11625a(_0xa1ece7),0x10)*_0xe7f52a:null;}function _0x5e042d(_0x4b2774){return new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29b88f,_0x4ca795)=>{_0x4b2774[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x29b88f,_0x4ca795),window[_0x431ef5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ca795,0x3dfe1021^_0x2e9efb);});}}_0x308bbf[_0x431ef5([0x6f,0x6e])](_0x431ef5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c3813,_0x5c9030)=>{if(_0x5c9030[0x0]!=_0x14e794)return _0x4d1777(_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c9030[0x1]={..._0x5c9030[0x1],[_0x431ef5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30838b};},{[_0x431ef5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431ef5([0x68,0x69,0x67,0x68])}),_0x308bbf[_0x431ef5([0x6f,0x6e])](_0x431ef5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d8775=>{_0x480623(_0x4d8775[_0x431ef5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d6f77=!0x0,_0x2fd2d2(_0x4d8775[_0x431ef5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x431ef5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431ef5([0x6c,0x6f,0x77])}),_0x4840ec[_0x431ef5([0x74,0x68,0x65,0x6e])](()=>{_0x4d6f77||_0x4d1777(_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f9b7a(){return _0x308bbf[_0x431ef5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431ef5([0x76,0x69,0x65,0x77])][_0x431ef5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x431ef5([0x61,0x75,0x74,0x6f]);}function _0x274774(){_0x308bbf[_0x431ef5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431ef5([0x76,0x69,0x65,0x77])][_0x431ef5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x431ef5([0x61,0x75,0x74,0x6f]);}}function _0x20db85(_0x70c8cb){const _0x594c31=[new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x72bdf0=>setTimeout(_0x72bdf0,0x3df6fa2d^_0x2e9efb)),_0x4840ec[_0x431ef5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359f55=>{let _0x22a1d9=0x0;_0x308bbf[_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c])][_0x431ef5([0x6f,0x6e])](_0x431ef5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58fd2c,_0x1d72d4)=>{_0x1d72d4[0x0][_0x431ef5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22a1d9++,_0x22a1d9==(0x3dffc519^_0x2e9efb)&&(_0x359f55(),_0x58fd2c[_0x431ef5([0x6f,0x66,0x66])]());});}))];return window[_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x431ef5([0x72,0x61,0x63,0x65])](_0x594c31)[_0x431ef5([0x74,0x68,0x65,0x6e])](()=>_0x70c8cb);}async function _0x569ef8(){await _0x4840ec,_0x308bbf[_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c])][_0x431ef5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55dc8c,_0x308bbf[_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c])][_0x431ef5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55dc8c,_0x308bbf[_0x431ef5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1663(_0x216dc9){const _0x1ba661=_0x38349f();_0x308bbf[_0x1ba661]=_0x431ef5([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x216dc9,_0x216dc9!=_0x431ef5([0x56,0x61,0x6c,0x69,0x64])&&_0x569ef8();}function _0x38349f(){const _0x492343=window[_0x431ef5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x431ef5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x431ef5([0x6e,0x6f,0x77])]())[_0x431ef5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x431ef5([0x2e]),'');let _0x4ec9d4=_0x431ef5([0x6e]);for(let _0x485119=0x0;_0x485119<_0x492343[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485119+=0x2){let _0x37b4be=window[_0x431ef5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492343[_0x431ef5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x485119,_0x485119+0x2));_0x37b4be>=_0x5e65b6[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37b4be-=_0x5e65b6[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ec9d4+=_0x5e65b6[_0x37b4be];}return _0x4ec9d4;}function _0x3b1abd(){const _0x55ed77=_0x5528a7[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e]));if(0x3!=_0x55ed77[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x144896(_0x55ed77[0x1]);function _0x144896(_0x436f99){const _0x5c66bf=_0x4dfd50(_0x436f99);return _0x5c66bf&&_0x44b809()?_0x5c66bf:null;function _0x44b809(){const _0x50c2ed=_0x5c66bf[_0x431ef5([0x6a,0x74,0x69])],_0x160d39=window[_0x431ef5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50c2ed[_0x431ef5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50c2ed[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x428cd6={..._0x5c66bf,[_0x431ef5([0x6a,0x74,0x69])]:_0x50c2ed[_0x431ef5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50c2ed[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x428cd6[_0x431ef5([0x76,0x63])],_0x856c7d(_0x428cd6)==_0x160d39;}}}async function _0x389479(){let _0x465c83=!0x0;try{const _0x579326=_0x5528a7[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e])),[_0x432239,_0x41887d,_0xa6464a]=_0x579326;return _0x45496a(_0x432239),await _0x22b86c(_0x432239,_0x41887d,_0xa6464a),_0x465c83;}catch{return!0x1;}function _0x45496a(_0x264d6c){const _0x5edf10=_0x4dfd50(_0x264d6c);_0x5edf10&&_0x5edf10[_0x431ef5([0x61,0x6c,0x67])]==_0x431ef5([0x45,0x53,0x32,0x35,0x36])||(_0x465c83=!0x1);}async function _0x22b86c(_0x183391,_0x645652,_0x31f3bd){const _0x1e9e30=window[_0x431ef5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x431ef5([0x66,0x72,0x6f,0x6d])](_0x120e0e(_0x31f3bd),_0x37bd53=>_0x37bd53[_0x431ef5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cb994=new window[(_0x431ef5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x431ef5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x183391+_0x431ef5([0x2e])+_0x645652),_0x10e2e5=window[_0x431ef5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x431ef5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10e2e5)return;const _0xee9318=await _0x10e2e5[_0x431ef5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x431ef5([0x6a,0x77,0x6b]),_0x4f3d77,{[_0x431ef5([0x6e,0x61,0x6d,0x65])]:_0x431ef5([0x45,0x43,0x44,0x53,0x41]),[_0x431ef5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x431ef5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x431ef5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10e2e5[_0x431ef5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x431ef5([0x6e,0x61,0x6d,0x65])]:_0x431ef5([0x45,0x43,0x44,0x53,0x41]),[_0x431ef5([0x68,0x61,0x73,0x68])]:{[_0x431ef5([0x6e,0x61,0x6d,0x65])]:_0x431ef5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xee9318,_0x1e9e30,_0x3cb994)||(_0x465c83=!0x1);}}function _0x4dfd50(_0x191708){return _0x191708[_0x431ef5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x431ef5([0x65,0x79]))?JSON[_0x431ef5([0x70,0x61,0x72,0x73,0x65])](_0x120e0e(_0x191708)):null;}function _0x120e0e(_0x51d835){return window[_0x431ef5([0x61,0x74,0x6f,0x62])](_0x51d835[_0x431ef5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x431ef5([0x2b]))[_0x431ef5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x431ef5([0x2f])));}function _0x856c7d(_0x1f71eb){let _0x421f73=0x1505;function _0x187bd3(_0x2978dc){for(let _0x27d7b2=0x0;_0x27d7b2<_0x2978dc[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27d7b2++){const _0x47520f=_0x2978dc[_0x431ef5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27d7b2);_0x421f73=(_0x421f73<<0x5)+_0x421f73+_0x47520f,_0x421f73&=_0x421f73;}}function _0x370a6e(_0x4b0045){Array[_0x431ef5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b0045)?_0x4b0045[_0x431ef5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x370a6e):_0x4b0045&&typeof _0x4b0045==_0x431ef5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x431ef5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b0045)[_0x431ef5([0x73,0x6f,0x72,0x74])]()[_0x431ef5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5502ad,_0x178041])=>{_0x187bd3(_0x5502ad),_0x370a6e(_0x178041);}):_0x187bd3(window[_0x431ef5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b0045));}return _0x370a6e(_0x1f71eb),_0x421f73>>>0x0;}function _0x4a4e93(_0x472553){return _0x472553[_0x431ef5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x431ef5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x431ef5([0x30]));}function _0x11625a(_0x562607){return _0x562607[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x431ef5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x431ef5([0x6a,0x6f,0x69,0x6e])]('');}function _0x55dc8c(){}function _0x431ef5(_0x223fb0){const _0x42b717=_0x46e7;return _0x223fb0[_0x42b717(0xd4)](_0x4de6b5=>String[_0x42b717(0xe9)](_0x4de6b5))[_0x42b717(0xfb)]('');}_0x4b1663(await _0x7e4c4b());}(this);}[_0x70adfb(0xed)](){const _0x82f3f0=_0x70adfb,_0x38c5c5=this[_0x82f3f0(0xbd)][_0x82f3f0(0xe7)];_0x38c5c5[_0x82f3f0(0xec)](_0x1d1772=>{const _0x32a123=_0x82f3f0,_0x1e43f9=_0x38c5c5[_0x32a123(0x105)][_0x32a123(0xcf)][_0x32a123(0x11c)]();let _0x1a333a=0x0;for(const _0x5928b3 of _0x1e43f9){const _0x43b560=B+':'+_0x1a333a;if(_0x38c5c5[_0x32a123(0x10b)][_0x32a123(0x10f)](_0x43b560))_0x1d1772[_0x32a123(0xd7)](_0x43b560,{'range':_0x5928b3});else{if(_0x5928b3[_0x32a123(0x110)][_0x32a123(0xc3)]){const _0x13ded1=_0x5928b3[_0x32a123(0x110)][_0x32a123(0x114)](({item:_0x26cd30})=>!_0x38c5c5[_0x32a123(0xe4)][_0x32a123(0xfa)](_0x26cd30),{'boundaries':_0x5928b3});_0x1d1772[_0x32a123(0x129)](_0x43b560,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1d1772[_0x32a123(0x11f)](_0x13ded1,_0x5928b3[_0x32a123(0x111)])});}else _0x1d1772[_0x32a123(0x129)](_0x43b560,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5928b3});}_0x1a333a++;}});}[_0x70adfb(0x123)](){const _0x5973db=_0x70adfb,_0x20f191=this[_0x5973db(0xbd)][_0x5973db(0xe7)],_0xc7a86c=Array[_0x5973db(0xef)](this[_0x5973db(0xbd)][_0x5973db(0xe7)][_0x5973db(0x10b)][_0x5973db(0xe5)](B));_0xc7a86c[_0x5973db(0xfc)]&&_0x20f191[_0x5973db(0xec)](_0x230629=>{const _0x10e4da=_0x5973db;_0xc7a86c[_0x10e4da(0x11e)](_0xbefad6=>{const _0x4280c2=_0x10e4da;_0x230629[_0x4280c2(0xbc)](_0xbefad6);});});}[_0x70adfb(0x10c)](_0x362dd5,_0x42b015){const _0x35554b=_0x70adfb,_0x280ca0=this[_0x35554b(0xc4)](),_0x415e6d=_0x42b015||_0x280ca0[_0x35554b(0xbb)]();this[_0x35554b(0xbd)][_0x35554b(0xe7)][_0x35554b(0x125)](_0x415e6d)&&this[_0x35554b(0xbd)][_0x35554b(0xe7)][_0x35554b(0xec)](_0x45f06a=>{const _0x48c5a7=_0x35554b;this[_0x48c5a7(0x123)](),_0x42b015||this[_0x48c5a7(0xf3)](_0x45f06a,_0x280ca0),this[_0x48c5a7(0xe2)]({'insertAt':_0x415e6d,'writer':_0x45f06a,'html':_0x362dd5});});}[_0x70adfb(0x103)](_0x369cb1){const _0x37ce22=_0x70adfb,{model:_0x2f4293}=this[_0x37ce22(0xbd)],_0x5bf1f8=this[_0x37ce22(0xc4)]();_0x2f4293[_0x37ce22(0xec)](()=>{const _0x1b69e4=_0x37ce22,_0x3a19e7=this[_0x1b69e4(0x112)](_0x369cb1,_0x5bf1f8)||this[_0x1b69e4(0x10a)](_0x5bf1f8);this[_0x1b69e4(0x10c)](_0x369cb1,_0x3a19e7);});}[_0x70adfb(0xc4)](){const _0x22f411=_0x70adfb,_0x4d3149=this[_0x22f411(0xbd)][_0x22f411(0xe7)],_0x3f995d=Array[_0x22f411(0xef)](_0x4d3149[_0x22f411(0x10b)][_0x22f411(0xe5)](B))[_0x22f411(0xd4)](_0x384065=>_0x384065[_0x22f411(0xe6)]());return _0x4d3149[_0x22f411(0x108)](_0x3f995d);}[_0x70adfb(0xe2)]({writer:_0xcae92,html:_0x3d1a33,insertAt:_0x171f98}){const _0x23b111=_0x70adfb,{view:_0x25e1da}=this[_0x23b111(0xbd)][_0x23b111(0xc6)],_0x32f1bf=this[_0x23b111(0xbd)][_0x23b111(0xcb)][_0x23b111(0x101)](_0x1a5419),_0x3c5f6b=new P();_0x3c5f6b[_0x23b111(0x124)](_0x23b111(0x116),_0x3d1a33);const _0xcdc338=new ClipboardEvent(_0x23b111(0xf7),{'clipboardData':_0x3c5f6b}),_0x2fb414=new _0xde72bc(_0x25e1da,_0xcdc338,{'dataTransfer':new _0x511870(_0x3c5f6b)});_0xcae92[_0x23b111(0xc9)](_0x171f98);const _0x2fc8e0=(_0x2fb8e5,_0x5945e0)=>{const _0x1326ce=_0x23b111;_0x5945e0[_0x1326ce(0x119)]&&_0xcae92[_0x1326ce(0xc9)](_0x5945e0[_0x1326ce(0x119)]);};_0x32f1bf[_0x23b111(0xe3)](_0x23b111(0xe1),_0x2fc8e0,{'priority':_0x23b111(0xf5)}),_0x25e1da[_0x23b111(0x105)][_0x23b111(0xea)](_0x23b111(0xf7),_0x2fb414),_0x32f1bf[_0x23b111(0xc2)](_0x23b111(0xe1),_0x2fc8e0);}[_0x70adfb(0x10a)](_0x1a2801){const _0x496a87=_0x70adfb,{model:_0x3dab95}=this[_0x496a87(0xbd)],_0x79e3eb=Array[_0x496a87(0xef)](_0x1a2801[_0x496a87(0xf2)]());return _0x79e3eb[_0x496a87(0xfc)]?_0x3dab95[_0x496a87(0xbf)](_0x79e3eb[_0x496a87(0x122)]()):_0x1a2801[_0x496a87(0x104)]();}[_0x70adfb(0x112)](_0x28b591,_0x4f8b7e){const _0x1c7e5f=_0x70adfb,{model:_0x5f054d,plugins:_0x16e88a}=this[_0x1c7e5f(0xbd)];if(_0x16e88a[_0x1c7e5f(0x10f)](_0x1c7e5f(0x11a))){const _0x1c1d20=_0x16e88a[_0x1c7e5f(0x101)](_0x1c7e5f(0x11a))[_0x1c7e5f(0xeb)](_0x4f8b7e);if(_0x1c1d20[_0x1c7e5f(0xfc)]){const _0x432609=this[_0x1c7e5f(0xcc)](_0x28b591),_0x327f31=this[_0x1c7e5f(0x102)](_0x1c1d20,_0x432609);return _0x5f054d[_0x1c7e5f(0xf4)](_0x327f31,0x0);}}return null;}[_0x70adfb(0xcc)](_0x476e9e){const _0x44e4af=_0x70adfb,_0x5544f7=this[_0x44e4af(0xbd)][_0x44e4af(0xcb)][_0x44e4af(0x101)](_0x44e4af(0x11a)),_0x34f8d6=this[_0x44e4af(0xbd)][_0x44e4af(0xde)][_0x44e4af(0xc0)](_0x476e9e),_0xee92b3=Array[_0x44e4af(0xef)](_0x34f8d6[_0x44e4af(0xc5)]())[_0x44e4af(0xdd)](_0x56dd38=>_0x56dd38['is'](_0x44e4af(0xd0),_0x44e4af(0x120)));let _0x2c74ec=0x0;return _0xee92b3[_0x44e4af(0x11e)](_0x392cab=>{const _0x47d82a=_0x44e4af;_0x2c74ec+=_0x5544f7[_0x47d82a(0xf8)](_0x392cab);}),_0x2c74ec;}[_0x70adfb(0x102)](_0xfafb6,_0x36c52c){const _0x46d810=_0x70adfb,_0x39ff74=this[_0x46d810(0xbd)][_0x46d810(0xcb)][_0x46d810(0x101)](_0x46d810(0x11a)),_0x522823=_0x39ff74[_0x46d810(0xfe)](_0xfafb6),_0xa6c84e=_0x39ff74[_0x46d810(0xce)](_0xfafb6),_0x55d8d3=_0x522823[_0x46d810(0xd2)]+0x1,_0x592b9f=_0xa6c84e[_0x46d810(0xd3)],_0x2db0c4=_0xfafb6[0x0][_0x46d810(0xe8)](_0x46d810(0x120));for(let _0x2960c0=0x0;_0x2960c0<_0x36c52c;_0x2960c0++)_0x39ff74[_0x46d810(0x121)](_0x2db0c4,{'at':_0x55d8d3});return _0x2db0c4[_0x46d810(0xd6)](_0x55d8d3)[_0x46d810(0xd6)](_0x592b9f);}[_0x70adfb(0xf3)](_0x548312,_0x4ad1ba){const _0x346731=_0x70adfb,{plugins:_0x23da04}=this[_0x346731(0xbd)],{model:_0x28d5fd}=_0x548312;if(!_0x23da04[_0x346731(0x10f)](_0x346731(0x11a)))return;_0x23da04[_0x346731(0x101)](_0x346731(0x11a))[_0x346731(0xeb)](_0x4ad1ba)[_0x346731(0xfc)]&&_0x28d5fd[_0x346731(0x118)](_0x4ad1ba);}}function _0x1057(){const _0x3fe0ce=['getRowIndexes','href','ck-fake-ai-selection_collapsed','get','_createEmptyTableRows','insertContentBelow','getLastPosition','document','ai.assistant.useTheme','AIAssistantEditing','createSelection','conversion','_getDefaultInsertBelowPosition','markers','insertContent','config','1111FhuEAN','has','start','end','_prepareTableInsertBelowPosition','markerRange','getLastMatchingPosition','isCollapsed','text/html','1074YZhpne','deleteContent','resultRange','TableUtils','ai-ui','getRanges','addClass','forEach','createRange','table','insertRows','pop','hideFakeVisualSelection','setData','canEditAt','369925OOsHDa','143196WXEmUJ','isPremiumPlugin','addMarker','push','getFirstRange','removeMarker','editor','afterInit','createPositionAfter','parse','1402261ojyzzZ','off','isAtEnd','_getAISelection','getChildren','editing','32mHxqFu','editingDowncast','setSelection','createUIElement','plugins','_getTableRowCountFromContent','span','getColumnIndexes','selection','element','markerToElement','last','first','map','90nuDBYA','getChild','updateMarker','DataTransfer','pluginName','for','248139fYaDSH','isOfficialPlugin','filter','data','1538328uMRmFe','611271JKQlfV','contentInsertion','_pasteHTMLUsingClipboard','once','schema','getMarkersGroup','getRange','model','findAncestor','fromCharCode','fire','getSelectedTableCells','change','showFakeVisualSelection','ck-ai-assistant-ui_theme','from','ck-fake-ai-selection','6aGrXMu','getSelectedBlocks','_resetContentOfSelectedTableCells','createPositionAt','lowest','markerToHighlight','paste','getRows','951tZeLKL','isContent','join','length','init'];_0x1057=function(){return _0x3fe0ce;};return _0x1057();}
|
|
23
|
+
const _0xce6e66=_0x9d60;(function(_0x142661,_0x455a84){const _0xe42548=_0x9d60,_0x108b33=_0x142661();while(!![]){try{const _0x506cb0=parseInt(_0xe42548(0x161))/0x1*(parseInt(_0xe42548(0x13d))/0x2)+parseInt(_0xe42548(0x130))/0x3+-parseInt(_0xe42548(0x12b))/0x4+-parseInt(_0xe42548(0x160))/0x5+parseInt(_0xe42548(0x175))/0x6*(parseInt(_0xe42548(0x138))/0x7)+-parseInt(_0xe42548(0x18d))/0x8*(parseInt(_0xe42548(0x173))/0x9)+parseInt(_0xe42548(0x12e))/0xa;if(_0x506cb0===_0x455a84)break;else _0x108b33['push'](_0x108b33['shift']());}catch(_0x57d5de){_0x108b33['push'](_0x108b33['shift']());}}}(_0x3760,0xa4fb3));function _0x3760(){const _0x4695d8=['getSelectedTableCells','fromCharCode','_resetContentOfSelectedTableCells','pop','editing','isCollapsed','AIAssistantEditing','data','createSelection','setSelection','length','addClass','last','markerToHighlight','contentInsertion','change','getChildren','forEach','editingDowncast','341008OvovOm','getLastPosition','editor','getMarkersGroup','ai.assistant.useTheme','getRange','_pasteHTMLUsingClipboard','hideFakeVisualSelection','insertContentBelow','href','join','insertRows','3290700yPipVY','push','lowest','3256740AeJLjg','pluginName','180396RIlisL','once','plugins','get','findAncestor','createUIElement','updateMarker','parse','106813QYwPOj','getRowIndexes','isAtEnd','conversion','_getTableRowCountFromContent','26niaVCY','start','ai-ui','TableUtils','span','createPositionAfter','init','markers','fire','off','_getAISelection','schema','addMarker','text/html','getColumnIndexes','config','model','_prepareTableInsertBelowPosition','showFakeVisualSelection','getSelectedBlocks','ck-ai-assistant-ui_theme','getRanges','deleteContent','ck-fake-ai-selection_collapsed','selection','_getDefaultInsertBelowPosition','for','isPremiumPlugin','afterInit','paste','createPositionAt','map','isContent','has','element','194685DmHPYx','60616VHEOmj','resultRange','setData','end','canEditAt','DataTransfer','getRows','getLastMatchingPosition','first','document','from','markerRange','isOfficialPlugin','createRange','getFirstRange','insertContent','markerToElement','filter','36mdepbc','_createEmptyTableRows','210MOXlCh','getChild','removeMarker','ck-fake-ai-selection','table'];_0x3760=function(){return _0x4695d8;};return _0x3760();}import{uid as _0x427194}from'ckeditor5/src/utils.js';import{Plugin as _0x3bef05}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x16ce8f}from'ckeditor5/src/clipboard.js';function _0x9d60(_0x2e753a,_0x366485){const _0x376024=_0x3760();return _0x9d60=function(_0x9d603d,_0x42ab23){_0x9d603d=_0x9d603d-0x122;let _0x236bcb=_0x376024[_0x9d603d];return _0x236bcb;},_0x9d60(_0x2e753a,_0x366485);}import{ViewDocumentDomEventData as _0x52e69b,ViewDataTransfer as _0x8904fc}from'ckeditor5/src/engine.js';const l=globalThis[_0xce6e66(0x166)],w=_0xce6e66(0x13f);export class AIAssistantEditing extends _0x3bef05{static get[_0xce6e66(0x12f)](){const _0x3570fd=_0xce6e66;return _0x3570fd(0x180);}static get[_0xce6e66(0x16d)](){return!0x0;}static get[_0xce6e66(0x158)](){return!0x0;}[_0xce6e66(0x143)](){const _0x50eb0b=_0xce6e66,{editor:_0x5bf5e7}=this,_0x287409=[_0x50eb0b(0x178)];_0x5bf5e7[_0x50eb0b(0x14c)][_0x50eb0b(0x133)](_0x50eb0b(0x123))&&_0x287409[_0x50eb0b(0x12c)](_0x50eb0b(0x151)),_0x5bf5e7[_0x50eb0b(0x13b)][_0x50eb0b(0x157)](_0x50eb0b(0x18c))[_0x50eb0b(0x187)]({'model':w,'view':{'classes':_0x287409,'priority':0xc}}),_0x5bf5e7[_0x50eb0b(0x13b)][_0x50eb0b(0x157)](_0x50eb0b(0x18c))[_0x50eb0b(0x171)]({'model':w,'view':(_0x18ca79,{writer:_0xdd12a8})=>{const _0x5dc93b=_0x50eb0b;if(!_0x18ca79[_0x5dc93b(0x16c)][_0x5dc93b(0x17f)])return null;const _0x1e16fa=_0xdd12a8[_0x5dc93b(0x135)](_0x5dc93b(0x141));return _0xdd12a8[_0x5dc93b(0x185)]([_0x5dc93b(0x178),_0x5dc93b(0x154)],_0x1e16fa),_0x1e16fa;}});}[_0xce6e66(0x159)](){!async function(_0x3e8390){const _0x390ebc=_0x5bf6a0([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]),_0xbf883a=0x3dffc4e1,_0x413740=0x3df8b011^_0xbf883a,_0x2864fc=window[_0x5bf6a0([0x44,0x61,0x74,0x65])][_0x5bf6a0([0x6e,0x6f,0x77])](),_0x23d162=_0x3e8390[_0x5bf6a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x362350=new window[(_0x5bf6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3065a5=>{_0x23d162[_0x5bf6a0([0x6f,0x6e,0x63,0x65])](_0x5bf6a0([0x72,0x65,0x61,0x64,0x79]),_0x3065a5);}),_0x450ba4={[_0x5bf6a0([0x6b,0x74,0x79])]:_0x5bf6a0([0x45,0x43]),[_0x5bf6a0([0x75,0x73,0x65])]:_0x5bf6a0([0x73,0x69,0x67]),[_0x5bf6a0([0x63,0x72,0x76])]:_0x5bf6a0([0x50,0x2d,0x32,0x35,0x36]),[_0x5bf6a0([0x78])]:_0x5bf6a0([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]),[_0x5bf6a0([0x79])]:_0x5bf6a0([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]),[_0x5bf6a0([0x61,0x6c,0x67])]:_0x5bf6a0([0x45,0x53,0x32,0x35,0x36])},_0x5fd205=_0x23d162[_0x5bf6a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5bf6a0([0x67,0x65,0x74])](_0x5bf6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57bec4(){let _0x239951,_0x22757b=null,_0x55dc57=null;try{if(_0x5fd205==_0x5bf6a0([0x47,0x50,0x4c]))return _0x5bf6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x239951=_0x4ccc77(),!_0x239951)return _0x5bf6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x239951[_0x5bf6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55dc57=_0x46a839(_0x239951[_0x5bf6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x239951[_0x5bf6a0([0x6a,0x74,0x69])])),await _0x8a6f5e()?_0x879ab8()?_0x7b18a8()?_0x5bf6a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d2a55()?(_0x239951[_0x5bf6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bf6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22757b=_0x4991da(_0x5bf6a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x239951[_0x5bf6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bf6a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x22757b=_0x4991da(_0x5bf6a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53ec51()):_0x5bf6a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5bf6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5bf6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5bf6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7b18a8(){const _0x13478=[_0x5bf6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5bf6a0([0x74,0x72,0x69,0x61,0x6c])][_0x5bf6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x239951[_0x5bf6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2864fc/0x3e8:0xe10*_0x413740;return _0x239951[_0x5bf6a0([0x65,0x78,0x70])]<_0x13478;}function _0x879ab8(){const _0x57895c=_0x239951[_0x5bf6a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57895c&&(!!_0x57895c[_0x5bf6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf6a0([0x2a]))||!!_0x57895c[_0x5bf6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf6a0([0x41,0x49])));}function _0x2d2a55(){const _0x50d78d=_0x9d60,_0x267185=_0x239951[_0x5bf6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x267185||0x0==_0x267185[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d8867}=new URL(window[_0x5bf6a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x50d78d(0x128)]);if(_0x267185[_0x5bf6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d8867))return!0x0;const _0x28980f=_0x5d8867[_0x5bf6a0([0x73,0x70,0x6c,0x69,0x74])](_0x5bf6a0([0x2e]));return _0x267185[_0x5bf6a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x330e9e=>_0x330e9e[_0x5bf6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf6a0([0x2a])))[_0x5bf6a0([0x6d,0x61,0x70])](_0x102089=>_0x102089[_0x5bf6a0([0x73,0x70,0x6c,0x69,0x74])](_0x5bf6a0([0x2e])))[_0x5bf6a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5702bf=>_0x5702bf[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28980f[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bf6a0([0x6d,0x61,0x70])](_0x4a5a54=>Array(_0x28980f[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4a5a54[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bf6a0([0x66,0x69,0x6c,0x6c])](_0x4a5a54[0x0]===_0x5bf6a0([0x2a])?_0x5bf6a0([0x2a]):'')[_0x5bf6a0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4a5a54))[_0x5bf6a0([0x73,0x6f,0x6d,0x65])](_0x1d0e2d=>_0x28980f[_0x5bf6a0([0x65,0x76,0x65,0x72,0x79])]((_0x4e01dc,_0x22e9ab)=>_0x1d0e2d[_0x22e9ab]===_0x4e01dc||_0x1d0e2d[_0x22e9ab]===_0x5bf6a0([0x2a])));}function _0x53ec51(){return _0x22757b&&_0x55dc57?new window[(_0x5bf6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ec930,_0x437577)=>{_0x22757b[_0x5bf6a0([0x74,0x68,0x65,0x6e])](_0x4ec930,_0x437577),_0x55dc57[_0x5bf6a0([0x74,0x68,0x65,0x6e])](_0x4ef5fd=>{_0x4ef5fd!=_0x5bf6a0([0x56,0x61,0x6c,0x69,0x64])&&_0x4ec930(_0x4ef5fd);},_0x437577);}):_0x22757b||_0x55dc57||_0x5bf6a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46a839(_0x6a49d3,_0x45d95b){return new window[(_0x5bf6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bdccd=>{if(_0x34612f())return _0x2bdccd(_0x5bf6a0([0x56,0x61,0x6c,0x69,0x64]));_0x501f73(),_0x23d162[_0x5bf6a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5bf6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d927a=!0x1;const _0x25bd34=_0x427194();function _0x4371a9(_0x5b9a03){return!!_0x5b9a03&&(typeof _0x5b9a03===_0x5bf6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b9a03===_0x5bf6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b9a03[_0x5bf6a0([0x74,0x68,0x65,0x6e])]===_0x5bf6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b9a03[_0x5bf6a0([0x63,0x61,0x74,0x63,0x68])]===_0x5bf6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1354df(_0x582109){_0x10463b(_0x582109)[_0x5bf6a0([0x74,0x68,0x65,0x6e])](_0xf12089=>{if(!_0xf12089||_0xf12089[_0x5bf6a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5bf6a0([0x6f,0x6b]))return _0x5bf6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b4458(_0x7021af(_0x25bd34+_0x45d95b))!=_0xf12089[_0x5bf6a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5bf6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5bf6a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5bf6a0([0x74,0x68,0x65,0x6e])](_0x577ec4=>(_0x5856e0(),_0x577ec4),()=>{const _0x4770ae=_0x4f520d();return null==_0x4770ae?(_0x5856e0(),_0x5bf6a0([0x56,0x61,0x6c,0x69,0x64])):_0x5bf6a0(_0x2864fc-_0x4770ae>(0x19f340e1^_0xbf883a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5bf6a0([0x74,0x68,0x65,0x6e])](_0x2bdccd)[_0x5bf6a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bdccd(_0x5bf6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a73d4=0x3dc92a61^_0xbf883a;function _0x5856e0(){const _0x13582b=_0x5bf6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b4458(_0x7021af(_0x6a49d3)),_0x375a77=_0x11ce6f(_0x2b4458(window[_0x5bf6a0([0x4d,0x61,0x74,0x68])][_0x5bf6a0([0x63,0x65,0x69,0x6c])](_0x2864fc/_0x4a73d4)));window[_0x5bf6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bf6a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13582b,_0x375a77);}function _0x4f520d(){const _0x38b0a3=_0x5bf6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b4458(_0x7021af(_0x6a49d3)),_0x597f52=window[_0x5bf6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bf6a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38b0a3);return _0x597f52?window[_0x5bf6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11ce6f(_0x597f52),0x10)*_0x4a73d4:null;}function _0x10463b(_0x29d459){return new window[(_0x5bf6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50c428,_0x3b49a0)=>{_0x29d459[_0x5bf6a0([0x74,0x68,0x65,0x6e])](_0x50c428,_0x3b49a0),window[_0x5bf6a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b49a0,0x3dfe1021^_0xbf883a);});}}_0x23d162[_0x5bf6a0([0x6f,0x6e])](_0x5bf6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cdac9,_0x513c99)=>{if(_0x513c99[0x0]!=_0x6a49d3)return _0x2bdccd(_0x5bf6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x513c99[0x1]={..._0x513c99[0x1],[_0x5bf6a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25bd34};},{[_0x5bf6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bf6a0([0x68,0x69,0x67,0x68])}),_0x23d162[_0x5bf6a0([0x6f,0x6e])](_0x5bf6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c7571=>{_0x4371a9(_0x2c7571[_0x5bf6a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d927a=!0x0,_0x1354df(_0x2c7571[_0x5bf6a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5bf6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bf6a0([0x6c,0x6f,0x77])}),_0x362350[_0x5bf6a0([0x74,0x68,0x65,0x6e])](()=>{_0x5d927a||_0x2bdccd(_0x5bf6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34612f(){return _0x23d162[_0x5bf6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bf6a0([0x76,0x69,0x65,0x77])][_0x5bf6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5bf6a0([0x61,0x75,0x74,0x6f]);}function _0x501f73(){_0x23d162[_0x5bf6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bf6a0([0x76,0x69,0x65,0x77])][_0x5bf6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5bf6a0([0x61,0x75,0x74,0x6f]);}}function _0x4991da(_0x22c529){const _0x484fe7=[new window[(_0x5bf6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee868=>setTimeout(_0x2ee868,0x3df6fa2d^_0xbf883a)),_0x362350[_0x5bf6a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5bf6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x205e7c=>{let _0x17139d=0x0;_0x23d162[_0x5bf6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bf6a0([0x6f,0x6e])](_0x5bf6a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bfe80,_0x376345)=>{_0x376345[0x0][_0x5bf6a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17139d++,_0x17139d==(0x3dffc519^_0xbf883a)&&(_0x205e7c(),_0x3bfe80[_0x5bf6a0([0x6f,0x66,0x66])]());});}))];return window[_0x5bf6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5bf6a0([0x72,0x61,0x63,0x65])](_0x484fe7)[_0x5bf6a0([0x74,0x68,0x65,0x6e])](()=>_0x22c529);}async function _0x530da6(){await _0x362350,_0x23d162[_0x5bf6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bf6a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ca1d6,_0x23d162[_0x5bf6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bf6a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ca1d6,_0x23d162[_0x5bf6a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5bf6a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd46eef(_0x20ed7b){const _0x3cbad1=_0x4dd22c();_0x23d162[_0x3cbad1]=_0x5bf6a0([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x20ed7b,_0x20ed7b!=_0x5bf6a0([0x56,0x61,0x6c,0x69,0x64])&&_0x530da6();}function _0x4dd22c(){const _0x5bf4a6=window[_0x5bf6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5bf6a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5bf6a0([0x6e,0x6f,0x77])]())[_0x5bf6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5bf6a0([0x2e]),'');let _0x14e0f3=_0x5bf6a0([0x6e]);for(let _0x130add=0x0;_0x130add<_0x5bf4a6[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x130add+=0x2){let _0x14a5cd=window[_0x5bf6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bf4a6[_0x5bf6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x130add,_0x130add+0x2));_0x14a5cd>=_0x390ebc[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14a5cd-=_0x390ebc[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14e0f3+=_0x390ebc[_0x14a5cd];}return _0x14e0f3;}function _0x4ccc77(){const _0x4f4edc=_0x5fd205[_0x5bf6a0([0x73,0x70,0x6c,0x69,0x74])](_0x5bf6a0([0x2e]));if(0x3!=_0x4f4edc[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48df86(_0x4f4edc[0x1]);function _0x48df86(_0x5b3866){const _0x3fd639=_0x4ccd71(_0x5b3866);return _0x3fd639&&_0x48e591()?_0x3fd639:null;function _0x48e591(){const _0xa8a990=_0x3fd639[_0x5bf6a0([0x6a,0x74,0x69])],_0x5456da=window[_0x5bf6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa8a990[_0x5bf6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa8a990[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45da95={..._0x3fd639,[_0x5bf6a0([0x6a,0x74,0x69])]:_0xa8a990[_0x5bf6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa8a990[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45da95[_0x5bf6a0([0x76,0x63])],_0x7021af(_0x45da95)==_0x5456da;}}}async function _0x8a6f5e(){let _0x48f4a7=!0x0;try{const _0x3201fb=_0x5fd205[_0x5bf6a0([0x73,0x70,0x6c,0x69,0x74])](_0x5bf6a0([0x2e])),[_0x23dcf1,_0xaaa392,_0x52b140]=_0x3201fb;return _0x1cc993(_0x23dcf1),await _0x48291c(_0x23dcf1,_0xaaa392,_0x52b140),_0x48f4a7;}catch{return!0x1;}function _0x1cc993(_0x1495bf){const _0xb700c0=_0x4ccd71(_0x1495bf);_0xb700c0&&_0xb700c0[_0x5bf6a0([0x61,0x6c,0x67])]==_0x5bf6a0([0x45,0x53,0x32,0x35,0x36])||(_0x48f4a7=!0x1);}async function _0x48291c(_0x4d6644,_0x2c8adc,_0x520c3d){const _0x4af100=window[_0x5bf6a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5bf6a0([0x66,0x72,0x6f,0x6d])](_0x171e8f(_0x520c3d),_0x4de5ba=>_0x4de5ba[_0x5bf6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9737e8=new window[(_0x5bf6a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5bf6a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d6644+_0x5bf6a0([0x2e])+_0x2c8adc),_0x3c2651=window[_0x5bf6a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5bf6a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c2651)return;const _0x283cc0=await _0x3c2651[_0x5bf6a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5bf6a0([0x6a,0x77,0x6b]),_0x450ba4,{[_0x5bf6a0([0x6e,0x61,0x6d,0x65])]:_0x5bf6a0([0x45,0x43,0x44,0x53,0x41]),[_0x5bf6a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5bf6a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5bf6a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c2651[_0x5bf6a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5bf6a0([0x6e,0x61,0x6d,0x65])]:_0x5bf6a0([0x45,0x43,0x44,0x53,0x41]),[_0x5bf6a0([0x68,0x61,0x73,0x68])]:{[_0x5bf6a0([0x6e,0x61,0x6d,0x65])]:_0x5bf6a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x283cc0,_0x4af100,_0x9737e8)||(_0x48f4a7=!0x1);}}function _0x4ccd71(_0x3a738c){return _0x3a738c[_0x5bf6a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5bf6a0([0x65,0x79]))?JSON[_0x5bf6a0([0x70,0x61,0x72,0x73,0x65])](_0x171e8f(_0x3a738c)):null;}function _0x171e8f(_0x271deb){return window[_0x5bf6a0([0x61,0x74,0x6f,0x62])](_0x271deb[_0x5bf6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5bf6a0([0x2b]))[_0x5bf6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5bf6a0([0x2f])));}function _0x7021af(_0x4db6c7){let _0x1e734d=0x1505;function _0x3564ba(_0x5bec6c){for(let _0x492314=0x0;_0x492314<_0x5bec6c[_0x5bf6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492314++){const _0x122574=_0x5bec6c[_0x5bf6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x492314);_0x1e734d=(_0x1e734d<<0x5)+_0x1e734d+_0x122574,_0x1e734d&=_0x1e734d;}}function _0x54d69b(_0x514c95){Array[_0x5bf6a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x514c95)?_0x514c95[_0x5bf6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54d69b):_0x514c95&&typeof _0x514c95==_0x5bf6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5bf6a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x514c95)[_0x5bf6a0([0x73,0x6f,0x72,0x74])]()[_0x5bf6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b1c7d,_0x401502])=>{_0x3564ba(_0x2b1c7d),_0x54d69b(_0x401502);}):_0x3564ba(window[_0x5bf6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x514c95));}return _0x54d69b(_0x4db6c7),_0x1e734d>>>0x0;}function _0x2b4458(_0x3462e6){return _0x3462e6[_0x5bf6a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5bf6a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5bf6a0([0x30]));}function _0x11ce6f(_0x5e1119){return _0x5e1119[_0x5bf6a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5bf6a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5bf6a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ca1d6(){}function _0x5bf6a0(_0x5e7dbf){const _0x110365=_0x9d60;return _0x5e7dbf[_0x110365(0x15c)](_0x541f64=>String[_0x110365(0x17b)](_0x541f64))[_0x110365(0x129)]('');}_0xd46eef(await _0x57bec4());}(this);}[_0xce6e66(0x14f)](){const _0x1e696c=_0xce6e66,_0x59af46=this[_0x1e696c(0x18f)][_0x1e696c(0x14d)];_0x59af46[_0x1e696c(0x189)](_0x1b94b7=>{const _0x2793a8=_0x1e696c,_0x489416=_0x59af46[_0x2793a8(0x16a)][_0x2793a8(0x155)][_0x2793a8(0x152)]();let _0x18626c=0x0;for(const _0x37fabf of _0x489416){const _0x17a646=w+':'+_0x18626c;if(_0x59af46[_0x2793a8(0x144)][_0x2793a8(0x15e)](_0x17a646))_0x1b94b7[_0x2793a8(0x136)](_0x17a646,{'range':_0x37fabf});else{if(_0x37fabf[_0x2793a8(0x13e)][_0x2793a8(0x13a)]){const _0x2b8f53=_0x37fabf[_0x2793a8(0x13e)][_0x2793a8(0x168)](({item:_0x18f6d5})=>!_0x59af46[_0x2793a8(0x148)][_0x2793a8(0x15d)](_0x18f6d5),{'boundaries':_0x37fabf});_0x1b94b7[_0x2793a8(0x149)](_0x17a646,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1b94b7[_0x2793a8(0x16e)](_0x2b8f53,_0x37fabf[_0x2793a8(0x164)])});}else _0x1b94b7[_0x2793a8(0x149)](_0x17a646,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x37fabf});}_0x18626c++;}});}[_0xce6e66(0x126)](){const _0x2dd9f3=_0xce6e66,_0x104a16=this[_0x2dd9f3(0x18f)][_0x2dd9f3(0x14d)],_0x4fc48a=Array[_0x2dd9f3(0x16b)](this[_0x2dd9f3(0x18f)][_0x2dd9f3(0x14d)][_0x2dd9f3(0x144)][_0x2dd9f3(0x122)](w));_0x4fc48a[_0x2dd9f3(0x184)]&&_0x104a16[_0x2dd9f3(0x189)](_0x75a842=>{const _0x32b3af=_0x2dd9f3;_0x4fc48a[_0x32b3af(0x18b)](_0x57cf53=>{const _0x4bf1e3=_0x32b3af;_0x75a842[_0x4bf1e3(0x177)](_0x57cf53);});});}[_0xce6e66(0x170)](_0x4be4ab,_0x45b725){const _0x1b3b8a=_0xce6e66,_0x565b82=this[_0x1b3b8a(0x147)](),_0x152393=_0x45b725||_0x565b82[_0x1b3b8a(0x16f)]();this[_0x1b3b8a(0x18f)][_0x1b3b8a(0x14d)][_0x1b3b8a(0x165)](_0x152393)&&this[_0x1b3b8a(0x18f)][_0x1b3b8a(0x14d)][_0x1b3b8a(0x189)](_0x48d690=>{const _0x3b412f=_0x1b3b8a;this[_0x3b412f(0x126)](),_0x45b725||this[_0x3b412f(0x17c)](_0x48d690,_0x565b82),this[_0x3b412f(0x125)]({'insertAt':_0x152393,'writer':_0x48d690,'html':_0x4be4ab});});}[_0xce6e66(0x127)](_0x37aa39){const _0x4d44ba=_0xce6e66,{model:_0x349aa6}=this[_0x4d44ba(0x18f)],_0x143dc6=this[_0x4d44ba(0x147)]();_0x349aa6[_0x4d44ba(0x189)](()=>{const _0x317c58=_0x4d44ba,_0x54f24e=this[_0x317c58(0x14e)](_0x37aa39,_0x143dc6)||this[_0x317c58(0x156)](_0x143dc6);this[_0x317c58(0x170)](_0x37aa39,_0x54f24e);});}[_0xce6e66(0x147)](){const _0x40909c=_0xce6e66,_0x2bfc82=this[_0x40909c(0x18f)][_0x40909c(0x14d)],_0x59c827=Array[_0x40909c(0x16b)](_0x2bfc82[_0x40909c(0x144)][_0x40909c(0x122)](w))[_0x40909c(0x15c)](_0x2f0ef6=>_0x2f0ef6[_0x40909c(0x124)]());return _0x2bfc82[_0x40909c(0x182)](_0x59c827);}[_0xce6e66(0x125)]({writer:_0x7d7ef4,html:_0x47bd68,insertAt:_0x2e48ef}){const _0x54abb8=_0xce6e66,{view:_0x53391c}=this[_0x54abb8(0x18f)][_0x54abb8(0x17e)],_0x5a12e=this[_0x54abb8(0x18f)][_0x54abb8(0x132)][_0x54abb8(0x133)](_0x16ce8f),_0x3a1085=new l();_0x3a1085[_0x54abb8(0x163)](_0x54abb8(0x14a),_0x47bd68);const _0x5d2082=new ClipboardEvent(_0x54abb8(0x15a),{'clipboardData':_0x3a1085}),_0x402444=new _0x52e69b(_0x53391c,_0x5d2082,{'dataTransfer':new _0x8904fc(_0x3a1085)});_0x7d7ef4[_0x54abb8(0x183)](_0x2e48ef);const _0x398136=(_0x344d65,_0x34d48c)=>{const _0x357c9b=_0x54abb8;_0x34d48c[_0x357c9b(0x162)]&&_0x7d7ef4[_0x357c9b(0x183)](_0x34d48c[_0x357c9b(0x162)]);};_0x5a12e[_0x54abb8(0x131)](_0x54abb8(0x188),_0x398136,{'priority':_0x54abb8(0x12d)}),_0x53391c[_0x54abb8(0x16a)][_0x54abb8(0x145)](_0x54abb8(0x15a),_0x402444),_0x5a12e[_0x54abb8(0x146)](_0x54abb8(0x188),_0x398136);}[_0xce6e66(0x156)](_0x15e22c){const _0x53f7bc=_0xce6e66,{model:_0x3c0176}=this[_0x53f7bc(0x18f)],_0x439762=Array[_0x53f7bc(0x16b)](_0x15e22c[_0x53f7bc(0x150)]());return _0x439762[_0x53f7bc(0x184)]?_0x3c0176[_0x53f7bc(0x142)](_0x439762[_0x53f7bc(0x17d)]()):_0x15e22c[_0x53f7bc(0x18e)]();}[_0xce6e66(0x14e)](_0x3f5681,_0xdf9611){const _0x10af83=_0xce6e66,{model:_0x50b562,plugins:_0x470ee7}=this[_0x10af83(0x18f)];if(_0x470ee7[_0x10af83(0x15e)](_0x10af83(0x140))){const _0x42a084=_0x470ee7[_0x10af83(0x133)](_0x10af83(0x140))[_0x10af83(0x17a)](_0xdf9611);if(_0x42a084[_0x10af83(0x184)]){const _0xaa9e5=this[_0x10af83(0x13c)](_0x3f5681),_0x3ea1fa=this[_0x10af83(0x174)](_0x42a084,_0xaa9e5);return _0x50b562[_0x10af83(0x15b)](_0x3ea1fa,0x0);}}return null;}[_0xce6e66(0x13c)](_0x2f0376){const _0x581fc5=_0xce6e66,_0x4d3626=this[_0x581fc5(0x18f)][_0x581fc5(0x132)][_0x581fc5(0x133)](_0x581fc5(0x140)),_0x1f4973=this[_0x581fc5(0x18f)][_0x581fc5(0x181)][_0x581fc5(0x137)](_0x2f0376),_0x398b51=Array[_0x581fc5(0x16b)](_0x1f4973[_0x581fc5(0x18a)]())[_0x581fc5(0x172)](_0x23d1da=>_0x23d1da['is'](_0x581fc5(0x15f),_0x581fc5(0x179)));let _0xbc11d3=0x0;return _0x398b51[_0x581fc5(0x18b)](_0x1e3e80=>{const _0xf658b7=_0x581fc5;_0xbc11d3+=_0x4d3626[_0xf658b7(0x167)](_0x1e3e80);}),_0xbc11d3;}[_0xce6e66(0x174)](_0x487a0c,_0x5db792){const _0x4e7990=_0xce6e66,_0x2a9525=this[_0x4e7990(0x18f)][_0x4e7990(0x132)][_0x4e7990(0x133)](_0x4e7990(0x140)),_0x2f8350=_0x2a9525[_0x4e7990(0x139)](_0x487a0c),_0x1ad266=_0x2a9525[_0x4e7990(0x14b)](_0x487a0c),_0xc887f7=_0x2f8350[_0x4e7990(0x186)]+0x1,_0x8788ca=_0x1ad266[_0x4e7990(0x169)],_0x123bde=_0x487a0c[0x0][_0x4e7990(0x134)](_0x4e7990(0x179));for(let _0x4d56bc=0x0;_0x4d56bc<_0x5db792;_0x4d56bc++)_0x2a9525[_0x4e7990(0x12a)](_0x123bde,{'at':_0xc887f7});return _0x123bde[_0x4e7990(0x176)](_0xc887f7)[_0x4e7990(0x176)](_0x8788ca);}[_0xce6e66(0x17c)](_0x5f4d18,_0x98dc1d){const _0x315784=_0xce6e66,{plugins:_0x2902a2}=this[_0x315784(0x18f)],{model:_0x481bf4}=_0x5f4d18;if(!_0x2902a2[_0x315784(0x15e)](_0x315784(0x140)))return;_0x2902a2[_0x315784(0x133)](_0x315784(0x140))[_0x315784(0x17a)](_0x98dc1d)[_0x315784(0x184)]&&_0x481bf4[_0x315784(0x153)](_0x98dc1d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x124b14=_0xd3f4;(function(_0x51e10e,_0x36e33f){const _0x439c05=_0xd3f4,_0x4de038=_0x51e10e();while(!![]){try{const _0x20610f=parseInt(_0x439c05(0x163))/0x1+parseInt(_0x439c05(0x147))/0x2*(-parseInt(_0x439c05(0x16b))/0x3)+parseInt(_0x439c05(0x158))/0x4+-parseInt(_0x439c05(0x172))/0x5+-parseInt(_0x439c05(0x187))/0x6*(-parseInt(_0x439c05(0x119))/0x7)+parseInt(_0x439c05(0x14f))/0x8*(-parseInt(_0x439c05(0x100))/0x9)+parseInt(_0x439c05(0x14a))/0xa;if(_0x20610f===_0x36e33f)break;else _0x4de038['push'](_0x4de038['shift']());}catch(_0x2f6ebc){_0x4de038['push'](_0x4de038['shift']());}}}(_0x4b8d,0xa32e7));import{Plugin as _0xd35726}from'ckeditor5/src/core.js';import{IconMagicWand as _0x3fa76f,IconRobotPencil as _0x46f9d9}from'ckeditor5/src/icons.js';import{first as _0x2c15f0,CKEditorError as _0x24ca44}from'ckeditor5/src/utils.js';import{createDropdown as _0x1ecba1,addMenuToDropdown as _0x47df5a,ButtonView as _0x20ead3,MenuBarMenuListItemButtonView as _0x5761f1,Dialog as _0x5a98ca,DialogViewPosition as _0xef1c83,MenuBarMenuView as _0x5e430c,MenuBarMenuListView as _0x5e8d02,MenuBarMenuListItemView as _0x3825de}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x7b9b42,UNGROUPED_COMMANDS_GROUP_ID as _0x5efa83}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x3bdfb0}from'./aiassistantediting.js';import{AIAdapter as _0x4702e8}from'./adapters/aiadapter.js';import{getTranslation as _0x3855bf}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x4b7453}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x30d01e}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x3562ca}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x5e25db}from'./ui/form/aiformtoolbarview.js';function _0xd3f4(_0x555fe9,_0x458e28){const _0x4b8db7=_0x4b8d();return _0xd3f4=function(_0xd3f476,_0x1099f3){_0xd3f476=_0xd3f476-0xea;let _0x224e1d=_0x4b8db7[_0xd3f476];return _0x224e1d;},_0xd3f4(_0x555fe9,_0x458e28);}import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';function _0x4b8d(){const _0x2f274e=['_getResolvedCommandsDefinitions','isOfficialPlugin','init','aiLicenseKeyExpired','show','replace','isPremiumPlugin','updatePosition','wasMoved','AI\x20Commands','domainLimit','_populateMenuBarMenu','insertContentBelow','ai.assistant.contentAreaCssClass','replaceContent','ai-commands-config-order-collision','listenTo','529484khrklu','includes','invalid','17740940xZXViF','commands','usageLimit','text/html','expired','9033544fxgBcV','label','config','view','isOn','aiAssistant','change','custom','ai.assistant.commands','2212184PkDNoP','enabledCommandsIds','showAIAssistant','map','getLimitElement','ai.assistant.useTheme','comment','DataTransfer','evaluationLimit','forEach','add','317609WjemCr','text','tableOfContents','Generated\x20content:\x20%0','showUI','menuBar:aiAssistant','aiLicenseKeyDomainLimit','ck-ai-assistant-ui','3loDvdO','ai.assistant.disabledElements','aiCommands','aiLicenseKeyEvaluationLimit','items','_aiAdapter','_commandDefinitions','5639640SJbJPR','push','media','textAdapter','hide','render','queryView','sort','setSelection','model','aiLicenseKeyTrialLimit','_dialog','polite','menuPanelClass','announce','destroy','hideFakeVisualSelection','plugins','update','schema','buttonView','1091010zxfQDA','command:','buttons','_licenseKeyCheckInterval','from','panelView','locale','delegate','_formView','execute','change:isError','fire','order','aiLicenseKeyNotAllowed','trialLimit','menuView','errorView','once','values','filter','menuBar:aiCommands','aiLicenseKeyValid','_onExecute','currentContext','\x20ck-ai-assistant-ui_theme','bind','get','groupLabel','requires','_initView','body','featureNotAllowed','_aiAssistantController','showFakeVisualSelection','EDITOR_TOP_SIDE','licenseKey','contentArea','INSERT','componentFactory','children','splice','9cZctOY','<p>','rawHtml','define','</p>','prompt','_createAIAssistantUIButton','_initAriaAiStatusChangeAnnouncements','isEnabled','AIAssistantUI','AI\x20Assistant','Error\x20during\x20AI\x20content\x20generation:\x20%0','length','_uiCssClasses','editing','_getMenuBarGroupButtons','REPLACE','set','getSelectedElement','change:enabledCommandsIds','focus','source','hideUI','_forceMarkersCopy','isFlat','21sOxNTR','selection','getData','isCollapsed','promptView','aiLicenseKeyUsageLimit','change:value','updateView','document','AIAssistant','getRanges','getSelectedBlocks','addMany','ck-ai-assistant-button\x20','aiLicenseKeyInvalid','change:isProcessing','menuitemcheckbox','_showLicenseError','requiresContent','copy','groupId','insertContent','fieldView','editor','AI\x20is\x20writing','ck-ai-commands-dropdown\x20','pluginName','reset','trim'];_0x4b8d=function(){return _0x2f274e;};return _0x4b8d();}import'../../theme/aiassistant/ai-form.css';const P=globalThis[_0x124b14(0x15f)];import{ClipboardMarkersUtils as _0x33521b}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x19da95,ViewDataTransfer as _0x5c581a}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0xd35726{[_0x124b14(0xfa)];[_0x124b14(0x18a)];[_0x124b14(0x17d)];[_0x124b14(0x18f)];[_0x124b14(0x170)];[_0x124b14(0xf7)];[_0x124b14(0x10d)]='';static get[_0x124b14(0x133)](){const _0x23a846=_0x124b14;return _0x23a846(0x109);}static get[_0x124b14(0x137)](){return!0x0;}static get[_0x124b14(0x13c)](){return!0x0;}static get[_0x124b14(0xf3)](){return[_0x33521b,_0x3bdfb0,_0x4702e8,_0x5a98ca];}constructor(_0x5197d6){const _0x248e08=_0x124b14;super(_0x5197d6),_0x5197d6[_0x248e08(0x151)][_0x248e08(0x103)](_0x248e08(0x16c),[_0x248e08(0x174),_0x248e08(0x102),_0x248e08(0x165)]),_0x5197d6[_0x248e08(0x151)][_0x248e08(0x103)](_0x248e08(0x143),''),_0x5197d6[_0x248e08(0x151)][_0x248e08(0x103)](_0x248e08(0x15d),!0x0),this[_0x248e08(0x10d)]=_0x248e08(0x16a)+(_0x5197d6[_0x248e08(0x151)][_0x248e08(0xf1)](_0x248e08(0x15d))?_0x248e08(0xef):'');}[_0x124b14(0x138)](){const _0x398abd=_0x124b14,{editor:_0x3e3b1a}=this;this[_0x398abd(0x170)]=_0x3e3b1a[_0x398abd(0x183)][_0x398abd(0xf1)](_0x4702e8),this[_0x398abd(0x17d)]=_0x3e3b1a[_0x398abd(0x183)][_0x398abd(0xf1)](_0x5a98ca),this[_0x398abd(0x18f)]=null,this[_0x398abd(0x171)]=this[_0x398abd(0x136)]();const _0x56b6d7=new _0x4b7453(_0x3e3b1a,Array[_0x398abd(0x18b)](this[_0x398abd(0x171)][_0x398abd(0x199)]()));_0x3e3b1a[_0x398abd(0x14b)][_0x398abd(0x162)](_0x398abd(0x15a),_0x56b6d7),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0x16d),_0x33f874=>{const _0x3e9f63=_0x398abd,_0x307864=_0x1ecba1(_0x33f874);return _0x307864[_0x3e9f63(0x111)]({'class':_0x3e9f63(0x132)+this[_0x3e9f63(0x10d)]}),_0x307864[_0x3e9f63(0x186)][_0x3e9f63(0x111)]({'label':_0x3855bf(_0x33f874,_0x3e9f63(0x13f)),'icon':_0x3fa76f,'tooltip':!0x0}),_0x307864['on'](_0x3e9f63(0x190),_0x51fe89=>this[_0x3e9f63(0xed)](_0x51fe89[_0x3e9f63(0x115)]['id'])),_0x47df5a(_0x307864,_0x3e3b1a['ui'][_0x3e9f63(0x152)][_0x3e9f63(0xf5)],function(_0x408021){const _0x4c14ae=_0x3e9f63,_0x30b632=_0x7b9b42(_0x408021[_0x4c14ae(0x151)][_0x4c14ae(0xf1)](_0x4c14ae(0x157)),_0x408021[_0x4c14ae(0x18d)]),_0x4a1695=ii(_0x408021,_0x30b632)[_0x4c14ae(0xea)](_0x9b5ca8=>_0x9b5ca8[_0x4c14ae(0x14b)][_0x4c14ae(0x10c)]);if(0x1===_0x4a1695[_0x4c14ae(0x10c)])return ii(_0x408021,_0x4a1695[0x0][_0x4c14ae(0x14b)])[_0x4c14ae(0x15b)](_0x4ba266=>({'id':_0x4ba266['id'],'label':_0x4ba266[_0x4c14ae(0x150)]}));return _0x4a1695[_0x4c14ae(0x15b)](_0x4c2f58=>{const _0x37a691=_0x4c14ae,{groupId:_0x2512f6,groupLabel:_0x3331c2,commands:_0x52b745}=_0x4c2f58,_0x28cb48=ii(_0x408021,_0x52b745)[_0x37a691(0x15b)](_0x2b1b73=>({'id':_0x2b1b73['id'],'label':_0x2b1b73[_0x37a691(0x150)]}));return{'id':_0x2512f6,'menu':_0x3331c2||_0x2512f6,'children':_0x28cb48};});}(_0x3e3b1a),{'ariaLabel':_0x3855bf(_0x33f874,_0x3e9f63(0x13f))}),_0x307864[_0x3e9f63(0x196)][_0x3e9f63(0x17f)]=_0x3e9f63(0x132)+this[_0x3e9f63(0x10d)],_0x56b6d7['on'](_0x3e9f63(0x113),_0x11493a),_0x307864[_0x3e9f63(0x196)][_0x3e9f63(0x198)](_0x3e9f63(0x177),_0x11493a),_0x307864;function _0x11493a(){const _0x6323e9=_0x3e9f63;_0x307864[_0x6323e9(0x108)]=_0x56b6d7[_0x6323e9(0x159)][_0x6323e9(0x10c)]>0x0;for(const _0x48a3fe of _0x307864[_0x6323e9(0x196)][_0x6323e9(0x189)])_0x48a3fe[_0x6323e9(0x108)]=_0x56b6d7[_0x6323e9(0x159)][_0x6323e9(0x148)](_0x48a3fe['id']);}}),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0xeb),_0x5ba636=>{const _0x54222f=_0x398abd,_0xd9112f=new _0x5e430c(_0x5ba636);_0xd9112f[_0x54222f(0x186)][_0x54222f(0x111)]({'label':_0x3855bf(_0x5ba636,_0x54222f(0x13f)),'icon':_0x3fa76f}),_0xd9112f[_0x54222f(0xf0)](_0x54222f(0x108))['to'](_0x56b6d7,_0x54222f(0x159),_0x9d5cc7=>_0x9d5cc7[_0x54222f(0x10c)]>0x0);const _0x8b0599=_0x7b9b42(_0x3e3b1a[_0x54222f(0x151)][_0x54222f(0xf1)](_0x54222f(0x157)),_0x5ba636);return this[_0x54222f(0x141)](_0x56b6d7,_0xd9112f,_0x8b0599,_0x38ac9e=>this[_0x54222f(0xed)](_0x38ac9e)),_0xd9112f;}),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0x154),()=>{const _0x2f13b5=_0x398abd,_0x192739=this[_0x2f13b5(0x106)](_0x20ead3);return _0x192739[_0x2f13b5(0x111)]({'tooltip':!0x0,'class':_0x2f13b5(0x126)+this[_0x2f13b5(0x10d)]}),_0x192739;}),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0x168),()=>{const _0x121f0e=_0x398abd,_0x5c3649=this[_0x121f0e(0x106)](_0x5761f1);return _0x5c3649[_0x121f0e(0x111)]({'role':_0x121f0e(0x129)}),_0x5c3649;}),this[_0x398abd(0xfa)]=this[_0x398abd(0x130)][_0x398abd(0x151)][_0x398abd(0xf1)](_0x398abd(0xfa));const _0x13169a=this[_0x398abd(0x130)];this[_0x398abd(0x18a)]=setInterval(()=>{const _0x340142=_0x398abd;let _0x2f57f6;for(const _0xa24277 in _0x13169a){const _0x19fe9a=_0xa24277,_0x1d0c37=_0x13169a[_0x19fe9a];if(_0x340142(0xec)==_0x1d0c37||_0x340142(0x127)==_0x1d0c37||_0x340142(0x139)==_0x1d0c37||_0x340142(0x169)==_0x1d0c37||_0x340142(0x194)==_0x1d0c37||_0x340142(0x16e)==_0x1d0c37||_0x340142(0x17c)==_0x1d0c37||_0x340142(0x11e)==_0x1d0c37){delete _0x13169a[_0x19fe9a],_0x2f57f6=_0x1d0c37,clearInterval(this[_0x340142(0x18a)]),this[_0x340142(0x18a)]=void 0x0;break;}}_0x340142(0x127)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x149)),_0x340142(0x139)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x14e)),_0x340142(0x169)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x140)),_0x340142(0x194)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0xf6),_0x340142(0x122)),_0x340142(0x16e)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x160)),_0x340142(0x17c)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x195)),_0x340142(0x11e)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x14c));},0x3e8);}[_0x124b14(0x181)](){const _0x512ea6=_0x124b14;super[_0x512ea6(0x181)](),this[_0x512ea6(0x18a)]&&clearInterval(this[_0x512ea6(0x18a)]);}[_0x124b14(0x167)](_0x2567d0='',_0x32cd42='',_0x4a74fc=_0x124b14(0x156)){const _0x3b318b=_0x124b14,_0xc99a8=this[_0x3b318b(0x130)],_0x2ce8a3=_0xc99a8[_0x3b318b(0x10e)][_0x3b318b(0x152)],_0x5e7dfe=_0xc99a8[_0x3b318b(0x183)][_0x3b318b(0xf1)](_0x3bdfb0),_0x293409=_0xc99a8[_0x3b318b(0x183)][_0x3b318b(0xf1)](_0x33521b);_0x5e7dfe[_0x3b318b(0xf8)]();const _0x425d82=new P(),_0x14d72a=new ClipboardEvent(_0x3b318b(0x12c),{'clipboardData':_0x425d82}),_0x41a7bf=new _0x5c581a(_0x425d82),_0x2519a2=new _0x19da95(_0x2ce8a3,_0x14d72a,{'dataTransfer':_0x41a7bf});_0x293409[_0x3b318b(0x117)](_0x3b318b(0x15e),()=>{const _0x20e4f8=_0x3b318b;_0x2ce8a3[_0x20e4f8(0x121)][_0x20e4f8(0x192)](_0x20e4f8(0x12c),_0x2519a2);}),this[_0x3b318b(0x18f)]||(this[_0x3b318b(0xf4)](),this[_0x3b318b(0xf7)]=new _0x30d01e(_0xc99a8,this[_0x3b318b(0x170)][_0x3b318b(0x175)],this[_0x3b318b(0x18f)]));let _0xfc1acf=_0x41a7bf[_0x3b318b(0x11b)](_0x3b318b(0x14d));const _0x1d03e9=_0xc99a8[_0x3b318b(0x17b)][_0x3b318b(0x121)][_0x3b318b(0x11a)],_0xc202e0=Array[_0x3b318b(0x18b)](_0x1d03e9[_0x3b318b(0x123)]());0x1===_0xc202e0[_0x3b318b(0x10c)]&&_0xc202e0[0x0][_0x3b318b(0x118)]&&!_0x1d03e9[_0x3b318b(0x112)]()&&''!==_0xfc1acf[_0x3b318b(0x13b)](/ /g,'')[_0x3b318b(0x135)]()&&(_0xfc1acf=_0x3b318b(0x101)+_0xfc1acf+_0x3b318b(0x104)),this[_0x3b318b(0xf7)][_0x3b318b(0x120)]({'actionId':_0x4a74fc,'query':_0x2567d0,'htmlContent':_0xfc1acf,'label':_0x32cd42,'mainActionLabel':_0x5e25db[_0xc99a8[_0x3b318b(0x17b)][_0x3b318b(0x121)][_0x3b318b(0x11a)][_0x3b318b(0x11c)]?_0x3b318b(0xfc):_0x3b318b(0x110)]}),_0x3b318b(0x154)!==this[_0x3b318b(0x17d)]['id']?this[_0x3b318b(0x17d)][_0x3b318b(0x13a)]({'id':_0x3b318b(0x154),'icon':_0x46f9d9,'title':_0x3855bf(this[_0x3b318b(0x130)][_0x3b318b(0x18d)],_0x3b318b(0x10a)),'content':this[_0x3b318b(0x18f)],'position':_0xef1c83[_0x3b318b(0xf9)],'onShow':()=>{const _0x3e358c=_0x3b318b;this[_0x3e358c(0x18f)][_0x3e358c(0x114)]();},'onHide':()=>{const _0x562fdb=_0x3b318b;this[_0x562fdb(0xf7)][_0x562fdb(0x134)](),_0x5e7dfe[_0x562fdb(0x182)]();}}):this[_0x3b318b(0x17d)][_0x3b318b(0x152)][_0x3b318b(0x13e)]||this[_0x3b318b(0x17d)][_0x3b318b(0x152)][_0x3b318b(0x13d)]();}[_0x124b14(0x116)](){const _0x703fbc=_0x124b14;this[_0x703fbc(0x17d)][_0x703fbc(0x176)]();}[_0x124b14(0x136)](){const _0x4682a0=_0x124b14,_0x548346=new Map(),_0x1dfba3=_0x7b9b42(this[_0x4682a0(0x130)][_0x4682a0(0x151)][_0x4682a0(0xf1)](_0x4682a0(0x157)),this[_0x4682a0(0x130)][_0x4682a0(0x18d)]);for(const _0x41e289 of _0x1dfba3)for(const _0x4b9084 of _0x41e289[_0x4682a0(0x14b)])_0x548346[_0x4682a0(0x111)](_0x4b9084['id'],{..._0x4b9084,'groupId':_0x41e289[_0x4682a0(0x12d)],'groupLabel':_0x41e289[_0x4682a0(0xf2)]||_0x41e289[_0x4682a0(0x12d)]});return _0x548346;}[_0x124b14(0x106)](_0x2759af){const _0xad154e=_0x124b14,_0x4207cc=this[_0xad154e(0x130)],_0x493b03=_0x4207cc[_0xad154e(0x14b)][_0xad154e(0xf1)](_0xad154e(0x15a)),_0x3f1257=new _0x2759af(_0x4207cc[_0xad154e(0x18d)]);return _0x3f1257[_0xad154e(0x111)]({'label':_0x3855bf(_0x4207cc[_0xad154e(0x18d)],_0xad154e(0x10a)),'icon':_0x46f9d9,'isToggleable':!0x0}),_0x3f1257[_0xad154e(0xf0)](_0xad154e(0x108))['to'](_0x493b03),_0x3f1257[_0xad154e(0xf0)](_0xad154e(0x153))['to'](this[_0xad154e(0x17d)],'id',_0x532fb6=>_0xad154e(0x154)===_0x532fb6),this[_0xad154e(0x146)](_0x3f1257,_0xad154e(0x190),()=>{const _0x47f1ff=_0xad154e;_0x3f1257[_0x47f1ff(0x153)]?this[_0x47f1ff(0x116)]():_0x493b03[_0x47f1ff(0x190)]();}),_0x3f1257;}[_0x124b14(0xf4)](){const _0x1e834c=_0x124b14,_0x525f7e=this[_0x1e834c(0x130)][_0x1e834c(0x183)][_0x1e834c(0xf1)](_0x3bdfb0);this[_0x1e834c(0x18f)]=new _0x3562ca(this[_0x1e834c(0x130)][_0x1e834c(0x18d)],this[_0x1e834c(0x10d)],this[_0x1e834c(0x130)][_0x1e834c(0x151)][_0x1e834c(0xf1)](_0x1e834c(0x143))),this[_0x1e834c(0x18f)]['on'](_0x1e834c(0x11f),()=>{const _0x5cd447=_0x1e834c;this[_0x5cd447(0x17d)][_0x5cd447(0x152)][_0x5cd447(0x13e)]||this[_0x5cd447(0x17d)][_0x5cd447(0x152)][_0x5cd447(0x13d)]();}),this[_0x1e834c(0x18f)][_0x1e834c(0x11d)][_0x1e834c(0x178)][_0x1e834c(0x12f)]['on'](_0x1e834c(0x184),()=>{const _0x3bdd6d=_0x1e834c;this[_0x3bdd6d(0x17d)][_0x3bdd6d(0x152)][_0x3bdd6d(0x13e)]||this[_0x3bdd6d(0x17d)][_0x3bdd6d(0x152)][_0x3bdd6d(0x13d)]();}),this[_0x1e834c(0x146)](this[_0x1e834c(0x18f)],_0x1e834c(0x144),()=>{const _0x1ede11=_0x1e834c;_0x525f7e[_0x1ede11(0x12e)](this[_0x1ede11(0xf7)][_0x1ede11(0xee)]),this[_0x1ede11(0x116)]();}),this[_0x1e834c(0x146)](this[_0x1e834c(0x18f)],_0x1e834c(0x142),()=>{const _0x41c45f=_0x1e834c;_0x525f7e[_0x41c45f(0x142)](this[_0x41c45f(0xf7)][_0x41c45f(0xee)]),this[_0x41c45f(0x116)]();}),this[_0x1e834c(0x107)]();}[_0x124b14(0x107)](){const _0x1c0a7e=_0x124b14,{locale:_0x35cda2,ui:{ariaLiveAnnouncer:_0x58eb8d}}=this[_0x1c0a7e(0x130)];this[_0x1c0a7e(0x18f)][_0x1c0a7e(0xfb)]['on'](_0x1c0a7e(0x128),(_0x34334f,_0x48fa8e,_0x27c45a)=>{const _0x1eff60=_0x1c0a7e,_0x404a87=this[_0x1eff60(0xf7)][_0x1eff60(0xee)];_0x27c45a?_0x58eb8d[_0x1eff60(0x180)](_0x3855bf(_0x35cda2,_0x1eff60(0x131))):_0x404a87&&_0x58eb8d[_0x1eff60(0x180)](_0x3855bf(_0x35cda2,_0x1eff60(0x166),_0x404a87),{'politeness':_0x1eff60(0x17e),'isUnsafeHTML':!0x0});}),this[_0x1c0a7e(0x18f)]['on'](_0x1c0a7e(0x191),(_0x3661e2,_0x57cb36,_0x81b772)=>{const _0x2e18ea=_0x1c0a7e;if(_0x81b772){const _0x4a6e24=this[_0x2e18ea(0x18f)][_0x2e18ea(0x197)][_0x2e18ea(0x164)];_0x58eb8d[_0x2e18ea(0x180)](_0x3855bf(_0x35cda2,_0x2e18ea(0x10b),_0x4a6e24));}});}[_0x124b14(0xed)](_0x3db373){const _0x25760a=_0x124b14,_0x1cf1e1=this[_0x25760a(0x171)][_0x25760a(0xf1)](_0x3db373),_0xc495d5=this[_0x25760a(0x130)],_0x50e1a7=_0xc495d5[_0x25760a(0x17b)][_0x25760a(0x121)][_0x25760a(0x11a)],_0xd55b54=_0xc495d5[_0x25760a(0x14b)][_0x25760a(0xf1)](_0x25760a(0x15a)),_0x14ef7b=_0xc495d5[_0x25760a(0x183)][_0x25760a(0xf1)](_0x3bdfb0),_0x2a22e7=''+(_0x1cf1e1[_0x25760a(0x12d)]!==_0x5efa83?_0x1cf1e1[_0x25760a(0xf2)]+':\x20':'')+_0x1cf1e1[_0x25760a(0x150)];if(!0x1!==_0x1cf1e1[_0x25760a(0x12b)]&&_0x50e1a7[_0x25760a(0x11c)]){const _0x21d2ac=_0x2c15f0(_0x50e1a7[_0x25760a(0x124)]())||_0xc495d5[_0x25760a(0x17b)][_0x25760a(0x185)][_0x25760a(0x15c)](_0x50e1a7);_0xc495d5[_0x25760a(0x17b)][_0x25760a(0x155)](_0x2c1b62=>{const _0x1d5b70=_0x25760a;_0x2c1b62[_0x1d5b70(0x17a)](_0x21d2ac,'in');});}_0x14ef7b[_0x25760a(0xf8)](),_0xd55b54[_0x25760a(0x190)](_0x1cf1e1[_0x25760a(0x105)],_0x2a22e7,_0x25760a(0x188)+_0x3db373);}[_0x124b14(0x141)](_0x3ac024,_0x2237fc,_0x14a4cc,_0x3feb31){const _0x6a03c6=_0x124b14,_0xa82768=this[_0x6a03c6(0x130)],_0x95baa4=_0xa82768[_0x6a03c6(0x18d)],_0x1b7968=new _0x5e8d02(_0x95baa4),_0x2d5649=ii(_0xa82768,_0x14a4cc)[_0x6a03c6(0xea)](_0x5d977b=>_0x5d977b[_0x6a03c6(0x14b)][_0x6a03c6(0x10c)]);0x1===_0x2d5649[_0x6a03c6(0x10c)]?this[_0x6a03c6(0x10f)]({'command':_0x3ac024,'commands':_0x2d5649[0x0][_0x6a03c6(0x14b)],'parentMenuView':_0x2237fc,'onExecute':_0x3feb31})[_0x6a03c6(0x161)](_0x49af77=>_0x1b7968[_0x6a03c6(0x16f)][_0x6a03c6(0x162)](_0x49af77)):_0x2d5649[_0x6a03c6(0x161)](({groupId:_0x3abba4,groupLabel:_0x15732c,commands:_0x3188b1})=>{const _0x13e626=_0x6a03c6,_0xcac3bd=new _0x3825de(_0x95baa4,_0x2237fc),_0x360550=new _0x5e430c(_0x95baa4),_0x5443f5=new _0x5e8d02(_0x95baa4),_0x588d6c=this[_0x13e626(0x10f)]({'command':_0x3ac024,'commands':_0x3188b1,'parentMenuView':_0x360550,'onExecute':_0x3feb31});_0x360550[_0x13e626(0x186)][_0x13e626(0x111)]({'label':_0x15732c||_0x3abba4}),_0x360550[_0x13e626(0x18e)](_0x13e626(0x190))['to'](_0x2237fc),_0x5443f5[_0x13e626(0x16f)][_0x13e626(0x125)](_0x588d6c),_0x360550[_0x13e626(0x18c)][_0x13e626(0xfe)][_0x13e626(0x162)](_0x5443f5),_0xcac3bd[_0x13e626(0xfe)][_0x13e626(0x162)](_0x360550),_0x1b7968[_0x13e626(0x16f)][_0x13e626(0x162)](_0xcac3bd);}),_0x2237fc[_0x6a03c6(0x18c)][_0x6a03c6(0xfe)][_0x6a03c6(0x162)](_0x1b7968);}[_0x124b14(0x10f)]({command:_0x5ed38,commands:_0x20c2e9,parentMenuView:_0x42280f,onExecute:_0x53dafb}){const _0xfa32e2=_0x124b14,_0x1607ec=this[_0xfa32e2(0x130)],_0xb7083b=_0x1607ec[_0xfa32e2(0x18d)];return ii(_0x1607ec,_0x20c2e9)[_0xfa32e2(0x15b)](_0x4860a=>{const _0x4bdb81=_0xfa32e2,_0x18bab0=new _0x3825de(_0xb7083b,_0x42280f),_0x5f40d6=new _0x5761f1(_0xb7083b);return _0x5f40d6[_0x4bdb81(0x111)]({'label':_0x4860a[_0x4bdb81(0x150)]}),_0x5f40d6[_0x4bdb81(0x18e)](_0x4bdb81(0x190))['to'](_0x42280f),_0x5f40d6['on'](_0x4bdb81(0x190),()=>_0x53dafb(_0x4860a['id'])),_0x5f40d6[_0x4bdb81(0xf0)](_0x4bdb81(0x108))['to'](_0x5ed38,_0x4bdb81(0x159),_0x5e6525=>_0x5e6525[_0x4bdb81(0x148)](_0x4860a['id'])),_0x18bab0[_0x4bdb81(0xfe)][_0x4bdb81(0x162)](_0x5f40d6),_0x18bab0;});}}function Z(_0x25c564,_0x109128){const _0x5a2831=_0x124b14;return void 0x0!==_0x25c564[_0x5a2831(0x193)]&&void 0x0===_0x109128[_0x5a2831(0x193)]?0x1:void 0x0===_0x25c564[_0x5a2831(0x193)]&&void 0x0!==_0x109128[_0x5a2831(0x193)]?-0x1:void 0x0!==_0x25c564[_0x5a2831(0x193)]&&void 0x0!==_0x109128[_0x5a2831(0x193)]?_0x25c564[_0x5a2831(0x193)]-_0x109128[_0x5a2831(0x193)]:0x0;}function ii(_0xb8dad,_0x318807){const _0x232ddd=_0x124b14;_0x318807[_0x232ddd(0x179)](Z);const _0x3b71f5={},_0x1d3d29=[];for(const _0x468d6d of _0x318807)if(void 0x0!==_0x468d6d[_0x232ddd(0x193)]){if(_0x468d6d[_0x232ddd(0x193)]in _0x3b71f5)throw new _0x24ca44(_0x232ddd(0x145),_0xb8dad,{'conflictingDefinitions':[_0x468d6d,_0x3b71f5[_0x468d6d[_0x232ddd(0x193)]]]});_0x3b71f5[_0x468d6d[_0x232ddd(0x193)]]=_0x468d6d,_0x1d3d29[_0x232ddd(0xff)](_0x468d6d[_0x232ddd(0x193)],0x0,_0x468d6d);}else _0x1d3d29[_0x232ddd(0x173)](_0x468d6d);return _0x1d3d29;}
|
|
23
|
+
const _0x235b76=_0x1e2d;(function(_0xf9fbf9,_0x2f249a){const _0x386adb=_0x1e2d,_0x2861a7=_0xf9fbf9();while(!![]){try{const _0x1883d8=-parseInt(_0x386adb(0x18f))/0x1*(-parseInt(_0x386adb(0x120))/0x2)+-parseInt(_0x386adb(0x141))/0x3*(-parseInt(_0x386adb(0x173))/0x4)+-parseInt(_0x386adb(0x1a0))/0x5+-parseInt(_0x386adb(0x156))/0x6*(-parseInt(_0x386adb(0x146))/0x7)+parseInt(_0x386adb(0x185))/0x8+parseInt(_0x386adb(0x174))/0x9*(parseInt(_0x386adb(0x163))/0xa)+-parseInt(_0x386adb(0x13c))/0xb;if(_0x1883d8===_0x2f249a)break;else _0x2861a7['push'](_0x2861a7['shift']());}catch(_0x3c33e6){_0x2861a7['push'](_0x2861a7['shift']());}}}(_0x2c15,0x19bcd));import{Plugin as _0x57dd6e}from'ckeditor5/src/core.js';function _0x2c15(){const _0x596c00=['announce','destroy','AI\x20is\x20writing','change:isProcessing','render','setSelection','_initView','insertContentBelow','copy','_dialog','aiLicenseKeyDomainLimit','contentArea','aiAssistant','Error\x20during\x20AI\x20content\x20generation:\x20%0','label','1062AkDlOb','from','tableOfContents','aiLicenseKeyValid','trim','wasMoved','licenseKey','REPLACE','usageLimit','menuPanelClass','change:isError','showAIAssistant','editor','10cewgJg','hide','view','_licenseKeyCheckInterval','includes','ck-ai-commands-dropdown\x20','showFakeVisualSelection','getSelectedElement','queryView','_getMenuBarGroupButtons','_createAIAssistantUIButton','config','_uiCssClasses','fieldView','AI\x20Commands','currentContext','68kTtsLh','886437vvBfvM','push','INSERT','custom','aiLicenseKeyInvalid','promptView','bind','change:enabledCommandsIds','\x20ck-ai-assistant-ui_theme','text','change','map','listenTo','insertContent','aiCommands','locale','Generated\x20content:\x20%0','340792SAtJBS','isEnabled','_aiAdapter','AI\x20Assistant','addMany','ai.assistant.disabledElements','textAdapter','order','show','isCollapsed','281EcaUtV','AIAssistantUI','menuBar:aiCommands','buttons','init','add','evaluationLimit','DataTransfer','menuView','reset','_formView','_forceMarkersCopy','groupId','expired','get','getData','body','480380srimZo','getLimitElement','document','fire','hideFakeVisualSelection','update','prompt','focus','_getResolvedCommandsDefinitions','invalid','AIAssistant','comment','isPremiumPlugin','media','menuitemcheckbox','_showLicenseError','editing','ai.assistant.commands','ai.assistant.contentAreaCssClass','ck-ai-assistant-ui','_populateMenuBarMenu','isOn','domainLimit','length','panelView','rawHtml','source','polite','aiLicenseKeyUsageLimit','model','EDITOR_TOP_SIDE','_commandDefinitions','pluginName','children','hideUI','replaceContent','define','getRanges','menuBar:aiAssistant','once','change:value','buttonView','isFlat','ck-ai-assistant-button\x20','errorView','componentFactory','forEach','_initAriaAiStatusChangeAnnouncements','splice','830odxoBw','replace','filter','_aiAssistantController','updateView','sort','delegate','aiLicenseKeyExpired','showUI','updatePosition','featureNotAllowed','set','</p>','text/html','execute','command:','_onExecute','selection','values','plugins','ai.assistant.useTheme','aiLicenseKeyTrialLimit','requiresContent','aiLicenseKeyEvaluationLimit','groupLabel','schema','aiLicenseKeyNotAllowed','isOfficialPlugin','1536150ehsnvU','items','commands','ai-commands-config-order-collision','enabledCommandsIds','8259jSScUf','getSelectedBlocks','requires','trialLimit','<p>','1449skepTw'];_0x2c15=function(){return _0x596c00;};return _0x2c15();}import{IconMagicWand as _0x1633eb,IconRobotPencil as _0x3b4bfa}from'ckeditor5/src/icons.js';import{first as _0x318b1e,CKEditorError as _0x4477dc}from'ckeditor5/src/utils.js';import{createDropdown as _0x44468e,addMenuToDropdown as _0x21dcd4,ButtonView as _0x300678,MenuBarMenuListItemButtonView as _0x28e8b6,Dialog as _0x238947,DialogViewPosition as _0x493b67,MenuBarMenuView as _0x5945ba,MenuBarMenuListView as _0x23710c,MenuBarMenuListItemView as _0x1687c0}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x34a7f2,UNGROUPED_COMMANDS_GROUP_ID as _0xc4944}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x54eb0a}from'./aiassistantediting.js';import{AIAdapter as _0x302b9a}from'./adapters/aiadapter.js';import{getTranslation as _0x5851c9}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x2939a8}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x3aa008}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x56a4cc}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x45301b}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const l=globalThis[_0x235b76(0x196)];import{ClipboardMarkersUtils as _0xa8bcd2}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x2e1147,ViewDataTransfer as _0xd0796b}from'ckeditor5/src/engine.js';function _0x1e2d(_0x1505c2,_0x222fff){const _0x2c15e2=_0x2c15();return _0x1e2d=function(_0x1e2d4c,_0x25e991){_0x1e2d4c=_0x1e2d4c-0x11f;let _0x26331f=_0x2c15e2[_0x1e2d4c];return _0x26331f;},_0x1e2d(_0x1505c2,_0x222fff);}export class AIAssistantUI extends _0x57dd6e{[_0x235b76(0x15c)];[_0x235b76(0x166)];[_0x235b76(0x150)];[_0x235b76(0x199)];[_0x235b76(0x187)];[_0x235b76(0x123)];[_0x235b76(0x16f)]='';static get[_0x235b76(0x1c0)](){const _0x129ae1=_0x235b76;return _0x129ae1(0x190);}static get[_0x235b76(0x13b)](){return!0x0;}static get[_0x235b76(0x1ac)](){return!0x0;}static get[_0x235b76(0x143)](){return[_0xa8bcd2,_0x54eb0a,_0x302b9a,_0x238947];}constructor(_0x1a37fe){const _0x36e032=_0x235b76;super(_0x1a37fe),_0x1a37fe[_0x36e032(0x16e)][_0x36e032(0x1c4)](_0x36e032(0x18a),[_0x36e032(0x1ad),_0x36e032(0x1b9),_0x36e032(0x158)]),_0x1a37fe[_0x36e032(0x16e)][_0x36e032(0x1c4)](_0x36e032(0x1b2),''),_0x1a37fe[_0x36e032(0x16e)][_0x36e032(0x1c4)](_0x36e032(0x134),!0x0),this[_0x36e032(0x16f)]=_0x36e032(0x1b3)+(_0x1a37fe[_0x36e032(0x16e)][_0x36e032(0x19d)](_0x36e032(0x134))?_0x36e032(0x17c):'');}[_0x235b76(0x193)](){const _0x31c418=_0x235b76,{editor:_0x3e278e}=this;this[_0x31c418(0x187)]=_0x3e278e[_0x31c418(0x133)][_0x31c418(0x19d)](_0x302b9a),this[_0x31c418(0x150)]=_0x3e278e[_0x31c418(0x133)][_0x31c418(0x19d)](_0x238947),this[_0x31c418(0x199)]=null,this[_0x31c418(0x1bf)]=this[_0x31c418(0x1a8)]();const _0x3c8eb9=new _0x2939a8(_0x3e278e,Array[_0x31c418(0x157)](this[_0x31c418(0x1bf)][_0x31c418(0x132)]()));_0x3e278e[_0x31c418(0x13e)][_0x31c418(0x194)](_0x31c418(0x161),_0x3c8eb9),_0x3e278e['ui'][_0x31c418(0x1cd)][_0x31c418(0x194)](_0x31c418(0x182),_0x9afb2=>{const _0xf551df=_0x31c418,_0x519b79=_0x44468e(_0x9afb2);return _0x519b79[_0xf551df(0x12b)]({'class':_0xf551df(0x168)+this[_0xf551df(0x16f)]}),_0x519b79[_0xf551df(0x1c9)][_0xf551df(0x12b)]({'label':_0x5851c9(_0x9afb2,_0xf551df(0x171)),'icon':_0x1633eb,'tooltip':!0x0}),_0x519b79['on'](_0xf551df(0x12e),_0x8c1097=>this[_0xf551df(0x130)](_0x8c1097[_0xf551df(0x1ba)]['id'])),_0x21dcd4(_0x519b79,_0x3e278e['ui'][_0xf551df(0x165)][_0xf551df(0x19f)],function(_0x8ecc0){const _0x2616bb=_0xf551df,_0x5a3eb1=_0x34a7f2(_0x8ecc0[_0x2616bb(0x16e)][_0x2616bb(0x19d)](_0x2616bb(0x1b1)),_0x8ecc0[_0x2616bb(0x183)]),_0x90b84a=U(_0x8ecc0,_0x5a3eb1)[_0x2616bb(0x122)](_0x830cc0=>_0x830cc0[_0x2616bb(0x13e)][_0x2616bb(0x1b7)]);if(0x1===_0x90b84a[_0x2616bb(0x1b7)])return U(_0x8ecc0,_0x90b84a[0x0][_0x2616bb(0x13e)])[_0x2616bb(0x17f)](_0x12f916=>({'id':_0x12f916['id'],'label':_0x12f916[_0x2616bb(0x155)]}));return _0x90b84a[_0x2616bb(0x17f)](_0x4b28fe=>{const _0x1b1f8c=_0x2616bb,{groupId:_0x412a16,groupLabel:_0x3ac855,commands:_0x45c3d5}=_0x4b28fe,_0x340ddb=U(_0x8ecc0,_0x45c3d5)[_0x1b1f8c(0x17f)](_0x4dd023=>({'id':_0x4dd023['id'],'label':_0x4dd023[_0x1b1f8c(0x155)]}));return{'id':_0x412a16,'menu':_0x3ac855||_0x412a16,'children':_0x340ddb};});}(_0x3e278e),{'ariaLabel':_0x5851c9(_0x9afb2,_0xf551df(0x171))}),_0x519b79[_0xf551df(0x197)][_0xf551df(0x15f)]=_0xf551df(0x168)+this[_0xf551df(0x16f)],_0x3c8eb9['on'](_0xf551df(0x17b),_0x619052),_0x519b79[_0xf551df(0x197)][_0xf551df(0x1c7)](_0xf551df(0x14b),_0x619052),_0x519b79;function _0x619052(){const _0x40e385=_0xf551df;_0x519b79[_0x40e385(0x186)]=_0x3c8eb9[_0x40e385(0x140)][_0x40e385(0x1b7)]>0x0;for(const _0x20845a of _0x519b79[_0x40e385(0x197)][_0x40e385(0x192)])_0x20845a[_0x40e385(0x186)]=_0x3c8eb9[_0x40e385(0x140)][_0x40e385(0x167)](_0x20845a['id']);}}),_0x3e278e['ui'][_0x31c418(0x1cd)][_0x31c418(0x194)](_0x31c418(0x191),_0x1718be=>{const _0x3d48d2=_0x31c418,_0x495c7e=new _0x5945ba(_0x1718be);_0x495c7e[_0x3d48d2(0x1c9)][_0x3d48d2(0x12b)]({'label':_0x5851c9(_0x1718be,_0x3d48d2(0x171)),'icon':_0x1633eb}),_0x495c7e[_0x3d48d2(0x17a)](_0x3d48d2(0x186))['to'](_0x3c8eb9,_0x3d48d2(0x140),_0x53f810=>_0x53f810[_0x3d48d2(0x1b7)]>0x0);const _0x4b4aa9=_0x34a7f2(_0x3e278e[_0x3d48d2(0x16e)][_0x3d48d2(0x19d)](_0x3d48d2(0x1b1)),_0x1718be);return this[_0x3d48d2(0x1b4)](_0x3c8eb9,_0x495c7e,_0x4b4aa9,_0x3f4bee=>this[_0x3d48d2(0x130)](_0x3f4bee)),_0x495c7e;}),_0x3e278e['ui'][_0x31c418(0x1cd)][_0x31c418(0x194)](_0x31c418(0x153),()=>{const _0x178363=_0x31c418,_0x330a23=this[_0x178363(0x16d)](_0x300678);return _0x330a23[_0x178363(0x12b)]({'tooltip':!0x0,'class':_0x178363(0x1cb)+this[_0x178363(0x16f)]}),_0x330a23;}),_0x3e278e['ui'][_0x31c418(0x1cd)][_0x31c418(0x194)](_0x31c418(0x1c6),()=>{const _0x36bfc4=_0x31c418,_0x4c01b3=this[_0x36bfc4(0x16d)](_0x28e8b6);return _0x4c01b3[_0x36bfc4(0x12b)]({'role':_0x36bfc4(0x1ae)}),_0x4c01b3;}),this[_0x31c418(0x15c)]=this[_0x31c418(0x162)][_0x31c418(0x16e)][_0x31c418(0x19d)](_0x31c418(0x15c));const _0x366862=this[_0x31c418(0x162)];this[_0x31c418(0x166)]=setInterval(()=>{const _0x17552d=_0x31c418;let _0x45e1af;for(const _0x24d9db in _0x366862){const _0x5ed996=_0x24d9db,_0x201984=_0x366862[_0x5ed996];if(_0x17552d(0x159)==_0x201984||_0x17552d(0x178)==_0x201984||_0x17552d(0x127)==_0x201984||_0x17552d(0x151)==_0x201984||_0x17552d(0x13a)==_0x201984||_0x17552d(0x137)==_0x201984||_0x17552d(0x135)==_0x201984||_0x17552d(0x1bc)==_0x201984){delete _0x366862[_0x5ed996],_0x45e1af=_0x201984,clearInterval(this[_0x17552d(0x166)]),this[_0x17552d(0x166)]=void 0x0;break;}}_0x17552d(0x178)==_0x45e1af&&_0x366862[_0x17552d(0x1af)](_0x17552d(0x1a9)),_0x17552d(0x127)==_0x45e1af&&_0x366862[_0x17552d(0x1af)](_0x17552d(0x19c)),_0x17552d(0x151)==_0x45e1af&&_0x366862[_0x17552d(0x1af)](_0x17552d(0x1b6)),_0x17552d(0x13a)==_0x45e1af&&_0x366862[_0x17552d(0x1af)](_0x17552d(0x12a),_0x17552d(0x1aa)),_0x17552d(0x137)==_0x45e1af&&_0x366862[_0x17552d(0x1af)](_0x17552d(0x195)),_0x17552d(0x135)==_0x45e1af&&_0x366862[_0x17552d(0x1af)](_0x17552d(0x144)),_0x17552d(0x1bc)==_0x45e1af&&_0x366862[_0x17552d(0x1af)](_0x17552d(0x15e));},0x3e8);}[_0x235b76(0x148)](){const _0xbc244c=_0x235b76;super[_0xbc244c(0x148)](),this[_0xbc244c(0x166)]&&clearInterval(this[_0xbc244c(0x166)]);}[_0x235b76(0x128)](_0x3c021d='',_0x2d840f='',_0x16bee1=_0x235b76(0x177)){const _0x2ecd1c=_0x235b76,_0x5e4803=this[_0x2ecd1c(0x162)],_0x577204=_0x5e4803[_0x2ecd1c(0x1b0)][_0x2ecd1c(0x165)],_0x34fc82=_0x5e4803[_0x2ecd1c(0x133)][_0x2ecd1c(0x19d)](_0x54eb0a),_0x26d46d=_0x5e4803[_0x2ecd1c(0x133)][_0x2ecd1c(0x19d)](_0xa8bcd2);_0x34fc82[_0x2ecd1c(0x169)]();const _0x403d12=new l(),_0x2874e2=new ClipboardEvent(_0x2ecd1c(0x14f),{'clipboardData':_0x403d12}),_0x4a954a=new _0xd0796b(_0x403d12),_0x5384e3=new _0x2e1147(_0x577204,_0x2874e2,{'dataTransfer':_0x4a954a});_0x26d46d[_0x2ecd1c(0x19a)](_0x2ecd1c(0x1ab),()=>{const _0x429d3d=_0x2ecd1c;_0x577204[_0x429d3d(0x1a2)][_0x429d3d(0x1a3)](_0x429d3d(0x14f),_0x5384e3);}),this[_0x2ecd1c(0x199)]||(this[_0x2ecd1c(0x14d)](),this[_0x2ecd1c(0x123)]=new _0x3aa008(_0x5e4803,this[_0x2ecd1c(0x187)][_0x2ecd1c(0x18b)],this[_0x2ecd1c(0x199)]));let _0x81c58f=_0x4a954a[_0x2ecd1c(0x19e)](_0x2ecd1c(0x12d));const _0x599b7f=_0x5e4803[_0x2ecd1c(0x1bd)][_0x2ecd1c(0x1a2)][_0x2ecd1c(0x131)],_0x1ea9ab=Array[_0x2ecd1c(0x157)](_0x599b7f[_0x2ecd1c(0x1c5)]());0x1===_0x1ea9ab[_0x2ecd1c(0x1b7)]&&_0x1ea9ab[0x0][_0x2ecd1c(0x1ca)]&&!_0x599b7f[_0x2ecd1c(0x16a)]()&&''!==_0x81c58f[_0x2ecd1c(0x121)](/ /g,'')[_0x2ecd1c(0x15a)]()&&(_0x81c58f=_0x2ecd1c(0x145)+_0x81c58f+_0x2ecd1c(0x12c)),this[_0x2ecd1c(0x123)][_0x2ecd1c(0x124)]({'actionId':_0x16bee1,'query':_0x3c021d,'htmlContent':_0x81c58f,'label':_0x2d840f,'mainActionLabel':_0x45301b[_0x5e4803[_0x2ecd1c(0x1bd)][_0x2ecd1c(0x1a2)][_0x2ecd1c(0x131)][_0x2ecd1c(0x18e)]?_0x2ecd1c(0x176):_0x2ecd1c(0x15d)]}),_0x2ecd1c(0x153)!==this[_0x2ecd1c(0x150)]['id']?this[_0x2ecd1c(0x150)][_0x2ecd1c(0x18d)]({'id':_0x2ecd1c(0x153),'icon':_0x3b4bfa,'title':_0x5851c9(this[_0x2ecd1c(0x162)][_0x2ecd1c(0x183)],_0x2ecd1c(0x188)),'content':this[_0x2ecd1c(0x199)],'position':_0x493b67[_0x2ecd1c(0x1be)],'onShow':()=>{const _0x4053ce=_0x2ecd1c;this[_0x4053ce(0x199)][_0x4053ce(0x1a7)]();},'onHide':()=>{const _0x7eb523=_0x2ecd1c;this[_0x7eb523(0x123)][_0x7eb523(0x198)](),_0x34fc82[_0x7eb523(0x1a4)]();}}):this[_0x2ecd1c(0x150)][_0x2ecd1c(0x165)][_0x2ecd1c(0x15b)]||this[_0x2ecd1c(0x150)][_0x2ecd1c(0x165)][_0x2ecd1c(0x129)]();}[_0x235b76(0x1c2)](){const _0x334f04=_0x235b76;this[_0x334f04(0x150)][_0x334f04(0x164)]();}[_0x235b76(0x1a8)](){const _0x4c5e1d=_0x235b76,_0x262d0d=new Map(),_0xbc70d7=_0x34a7f2(this[_0x4c5e1d(0x162)][_0x4c5e1d(0x16e)][_0x4c5e1d(0x19d)](_0x4c5e1d(0x1b1)),this[_0x4c5e1d(0x162)][_0x4c5e1d(0x183)]);for(const _0x441362 of _0xbc70d7)for(const _0x58576b of _0x441362[_0x4c5e1d(0x13e)])_0x262d0d[_0x4c5e1d(0x12b)](_0x58576b['id'],{..._0x58576b,'groupId':_0x441362[_0x4c5e1d(0x19b)],'groupLabel':_0x441362[_0x4c5e1d(0x138)]||_0x441362[_0x4c5e1d(0x19b)]});return _0x262d0d;}[_0x235b76(0x16d)](_0x39870f){const _0x2719e5=_0x235b76,_0x5ac9a0=this[_0x2719e5(0x162)],_0x47e5d3=_0x5ac9a0[_0x2719e5(0x13e)][_0x2719e5(0x19d)](_0x2719e5(0x161)),_0x350445=new _0x39870f(_0x5ac9a0[_0x2719e5(0x183)]);return _0x350445[_0x2719e5(0x12b)]({'label':_0x5851c9(_0x5ac9a0[_0x2719e5(0x183)],_0x2719e5(0x188)),'icon':_0x3b4bfa,'isToggleable':!0x0}),_0x350445[_0x2719e5(0x17a)](_0x2719e5(0x186))['to'](_0x47e5d3),_0x350445[_0x2719e5(0x17a)](_0x2719e5(0x1b5))['to'](this[_0x2719e5(0x150)],'id',_0xed0273=>_0x2719e5(0x153)===_0xed0273),this[_0x2719e5(0x180)](_0x350445,_0x2719e5(0x12e),()=>{const _0x181b4d=_0x2719e5;_0x350445[_0x181b4d(0x1b5)]?this[_0x181b4d(0x1c2)]():_0x47e5d3[_0x181b4d(0x12e)]();}),_0x350445;}[_0x235b76(0x14d)](){const _0x3ab44f=_0x235b76,_0x429a44=this[_0x3ab44f(0x162)][_0x3ab44f(0x133)][_0x3ab44f(0x19d)](_0x54eb0a);this[_0x3ab44f(0x199)]=new _0x56a4cc(this[_0x3ab44f(0x162)][_0x3ab44f(0x183)],this[_0x3ab44f(0x16f)],this[_0x3ab44f(0x162)][_0x3ab44f(0x16e)][_0x3ab44f(0x19d)](_0x3ab44f(0x1b2))),this[_0x3ab44f(0x199)]['on'](_0x3ab44f(0x1c8),()=>{const _0x4dcaba=_0x3ab44f;this[_0x4dcaba(0x150)][_0x4dcaba(0x165)][_0x4dcaba(0x15b)]||this[_0x4dcaba(0x150)][_0x4dcaba(0x165)][_0x4dcaba(0x129)]();}),this[_0x3ab44f(0x199)][_0x3ab44f(0x179)][_0x3ab44f(0x16b)][_0x3ab44f(0x170)]['on'](_0x3ab44f(0x1a5),()=>{const _0x1acfea=_0x3ab44f;this[_0x1acfea(0x150)][_0x1acfea(0x165)][_0x1acfea(0x15b)]||this[_0x1acfea(0x150)][_0x1acfea(0x165)][_0x1acfea(0x129)]();}),this[_0x3ab44f(0x180)](this[_0x3ab44f(0x199)],_0x3ab44f(0x1c3),()=>{const _0x5d0ad1=_0x3ab44f;_0x429a44[_0x5d0ad1(0x181)](this[_0x5d0ad1(0x123)][_0x5d0ad1(0x172)]),this[_0x5d0ad1(0x1c2)]();}),this[_0x3ab44f(0x180)](this[_0x3ab44f(0x199)],_0x3ab44f(0x14e),()=>{const _0x3cec09=_0x3ab44f;_0x429a44[_0x3cec09(0x14e)](this[_0x3cec09(0x123)][_0x3cec09(0x172)]),this[_0x3cec09(0x1c2)]();}),this[_0x3ab44f(0x1cf)]();}[_0x235b76(0x1cf)](){const _0x3cb29e=_0x235b76,{locale:_0x66ec7e,ui:{ariaLiveAnnouncer:_0x254788}}=this[_0x3cb29e(0x162)];this[_0x3cb29e(0x199)][_0x3cb29e(0x152)]['on'](_0x3cb29e(0x14a),(_0x3d919f,_0x105afe,_0x1c44a8)=>{const _0x26fb95=_0x3cb29e,_0xbd9211=this[_0x26fb95(0x123)][_0x26fb95(0x172)];_0x1c44a8?_0x254788[_0x26fb95(0x147)](_0x5851c9(_0x66ec7e,_0x26fb95(0x149))):_0xbd9211&&_0x254788[_0x26fb95(0x147)](_0x5851c9(_0x66ec7e,_0x26fb95(0x184),_0xbd9211),{'politeness':_0x26fb95(0x1bb),'isUnsafeHTML':!0x0});}),this[_0x3cb29e(0x199)]['on'](_0x3cb29e(0x160),(_0x174db9,_0x5f3636,_0xb96cf0)=>{const _0x34e047=_0x3cb29e;if(_0xb96cf0){const _0x3ab078=this[_0x34e047(0x199)][_0x34e047(0x1cc)][_0x34e047(0x17d)];_0x254788[_0x34e047(0x147)](_0x5851c9(_0x66ec7e,_0x34e047(0x154),_0x3ab078));}});}[_0x235b76(0x130)](_0x13a8a2){const _0x69acca=_0x235b76,_0x196676=this[_0x69acca(0x1bf)][_0x69acca(0x19d)](_0x13a8a2),_0x136ce0=this[_0x69acca(0x162)],_0x352af0=_0x136ce0[_0x69acca(0x1bd)][_0x69acca(0x1a2)][_0x69acca(0x131)],_0x3cba90=_0x136ce0[_0x69acca(0x13e)][_0x69acca(0x19d)](_0x69acca(0x161)),_0x3ef162=_0x136ce0[_0x69acca(0x133)][_0x69acca(0x19d)](_0x54eb0a),_0x2670ae=''+(_0x196676[_0x69acca(0x19b)]!==_0xc4944?_0x196676[_0x69acca(0x138)]+':\x20':'')+_0x196676[_0x69acca(0x155)];if(!0x1!==_0x196676[_0x69acca(0x136)]&&_0x352af0[_0x69acca(0x18e)]){const _0x4d203f=_0x318b1e(_0x352af0[_0x69acca(0x142)]())||_0x136ce0[_0x69acca(0x1bd)][_0x69acca(0x139)][_0x69acca(0x1a1)](_0x352af0);_0x136ce0[_0x69acca(0x1bd)][_0x69acca(0x17e)](_0x28a6bd=>{const _0x2f2a7b=_0x69acca;_0x28a6bd[_0x2f2a7b(0x14c)](_0x4d203f,'in');});}_0x3ef162[_0x69acca(0x169)](),_0x3cba90[_0x69acca(0x12e)](_0x196676[_0x69acca(0x1a6)],_0x2670ae,_0x69acca(0x12f)+_0x13a8a2);}[_0x235b76(0x1b4)](_0x3a0d01,_0x4e1b27,_0x138e10,_0xc52969){const _0x545187=_0x235b76,_0x5a3c44=this[_0x545187(0x162)],_0x790c46=_0x5a3c44[_0x545187(0x183)],_0x3d14c7=new _0x23710c(_0x790c46),_0x20c85d=U(_0x5a3c44,_0x138e10)[_0x545187(0x122)](_0x533e3c=>_0x533e3c[_0x545187(0x13e)][_0x545187(0x1b7)]);0x1===_0x20c85d[_0x545187(0x1b7)]?this[_0x545187(0x16c)]({'command':_0x3a0d01,'commands':_0x20c85d[0x0][_0x545187(0x13e)],'parentMenuView':_0x4e1b27,'onExecute':_0xc52969})[_0x545187(0x1ce)](_0x8461d4=>_0x3d14c7[_0x545187(0x13d)][_0x545187(0x194)](_0x8461d4)):_0x20c85d[_0x545187(0x1ce)](({groupId:_0x57df2e,groupLabel:_0x503a96,commands:_0xd4a98c})=>{const _0x1cf106=_0x545187,_0xed7022=new _0x1687c0(_0x790c46,_0x4e1b27),_0x2ef1fe=new _0x5945ba(_0x790c46),_0x22ab71=new _0x23710c(_0x790c46),_0x187282=this[_0x1cf106(0x16c)]({'command':_0x3a0d01,'commands':_0xd4a98c,'parentMenuView':_0x2ef1fe,'onExecute':_0xc52969});_0x2ef1fe[_0x1cf106(0x1c9)][_0x1cf106(0x12b)]({'label':_0x503a96||_0x57df2e}),_0x2ef1fe[_0x1cf106(0x126)](_0x1cf106(0x12e))['to'](_0x4e1b27),_0x22ab71[_0x1cf106(0x13d)][_0x1cf106(0x189)](_0x187282),_0x2ef1fe[_0x1cf106(0x1b8)][_0x1cf106(0x1c1)][_0x1cf106(0x194)](_0x22ab71),_0xed7022[_0x1cf106(0x1c1)][_0x1cf106(0x194)](_0x2ef1fe),_0x3d14c7[_0x1cf106(0x13d)][_0x1cf106(0x194)](_0xed7022);}),_0x4e1b27[_0x545187(0x1b8)][_0x545187(0x1c1)][_0x545187(0x194)](_0x3d14c7);}[_0x235b76(0x16c)]({command:_0x38ab84,commands:_0x4ee805,parentMenuView:_0x239b76,onExecute:_0x4fcced}){const _0x30dd10=_0x235b76,_0x26e73f=this[_0x30dd10(0x162)],_0x3adff3=_0x26e73f[_0x30dd10(0x183)];return U(_0x26e73f,_0x4ee805)[_0x30dd10(0x17f)](_0x238ba6=>{const _0x20ab04=_0x30dd10,_0x5887a3=new _0x1687c0(_0x3adff3,_0x239b76),_0x537a68=new _0x28e8b6(_0x3adff3);return _0x537a68[_0x20ab04(0x12b)]({'label':_0x238ba6[_0x20ab04(0x155)]}),_0x537a68[_0x20ab04(0x126)](_0x20ab04(0x12e))['to'](_0x239b76),_0x537a68['on'](_0x20ab04(0x12e),()=>_0x4fcced(_0x238ba6['id'])),_0x537a68[_0x20ab04(0x17a)](_0x20ab04(0x186))['to'](_0x38ab84,_0x20ab04(0x140),_0x15197=>_0x15197[_0x20ab04(0x167)](_0x238ba6['id'])),_0x5887a3[_0x20ab04(0x1c1)][_0x20ab04(0x194)](_0x537a68),_0x5887a3;});}}function T(_0x5d2476,_0xf2a4d){const _0x3c368f=_0x235b76;return void 0x0!==_0x5d2476[_0x3c368f(0x18c)]&&void 0x0===_0xf2a4d[_0x3c368f(0x18c)]?0x1:void 0x0===_0x5d2476[_0x3c368f(0x18c)]&&void 0x0!==_0xf2a4d[_0x3c368f(0x18c)]?-0x1:void 0x0!==_0x5d2476[_0x3c368f(0x18c)]&&void 0x0!==_0xf2a4d[_0x3c368f(0x18c)]?_0x5d2476[_0x3c368f(0x18c)]-_0xf2a4d[_0x3c368f(0x18c)]:0x0;}function U(_0x58c130,_0x3674de){const _0x1852f8=_0x235b76;_0x3674de[_0x1852f8(0x125)](T);const _0x12fe9a={},_0x31e991=[];for(const _0x4bc2a0 of _0x3674de)if(void 0x0!==_0x4bc2a0[_0x1852f8(0x18c)]){if(_0x4bc2a0[_0x1852f8(0x18c)]in _0x12fe9a)throw new _0x4477dc(_0x1852f8(0x13f),_0x58c130,{'conflictingDefinitions':[_0x4bc2a0,_0x12fe9a[_0x4bc2a0[_0x1852f8(0x18c)]]]});_0x12fe9a[_0x4bc2a0[_0x1852f8(0x18c)]]=_0x4bc2a0,_0x31e991[_0x1852f8(0x11f)](_0x4bc2a0[_0x1852f8(0x18c)],0x0,_0x4bc2a0);}else _0x31e991[_0x1852f8(0x175)](_0x4bc2a0);return _0x31e991;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x39d410,_0x264f79){var _0x37e7b1=_0x2777,_0x25e17d=_0x39d410();while(!![]){try{var _0xf106e9=parseInt(_0x37e7b1(0x85))/0x1*(-parseInt(_0x37e7b1(0x8c))/0x2)+parseInt(_0x37e7b1(0x88))/0x3+-parseInt(_0x37e7b1(0x8a))/0x4*(-parseInt(_0x37e7b1(0x89))/0x5)+parseInt(_0x37e7b1(0x84))/0x6+-parseInt(_0x37e7b1(0x87))/0x7+parseInt(_0x37e7b1(0x8b))/0x8*(parseInt(_0x37e7b1(0x86))/0x9)+parseInt(_0x37e7b1(0x8d))/0xa;if(_0xf106e9===_0x264f79)break;else _0x25e17d['push'](_0x25e17d['shift']());}catch(_0x36dd2a){_0x25e17d['push'](_0x25e17d['shift']());}}}(_0x5245,0xd8ab8));function _0x5245(){var _0x4972fc=['136IqisWc','334naUdzI','3704100IGOFKF','3238320FWTmRP','6393lUsQMb','388107WqdvBT','10348429cQUAcS','2192478dWZmeu','5NbwGea','4237644xjBsfX'];_0x5245=function(){return _0x4972fc;};return _0x5245();}function _0x2777(_0x294ca6,_0x124fcf){var _0x5245f4=_0x5245();return _0x2777=function(_0x277781,_0x4cc73d){_0x277781=_0x277781-0x84;var _0x29b02f=_0x5245f4[_0x277781];return _0x29b02f;},_0x2777(_0x294ca6,_0x124fcf);}import{CKEditorError as _0x730499}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x32c113=_0x1902;function _0x1902(_0x3253d6,_0x2875b8){const _0x40c965=_0x40c9();return _0x1902=function(_0x190234,_0x39c047){_0x190234=_0x190234-0x1c7;let _0x1193cd=_0x40c965[_0x190234];return _0x1193cd;},_0x1902(_0x3253d6,_0x2875b8);}(function(_0xf65781,_0x411062){const _0x4420cc=_0x1902,_0xeac1f=_0xf65781();while(!![]){try{const _0x3f3db5=-parseInt(_0x4420cc(0x1cd))/0x1*(-parseInt(_0x4420cc(0x1fd))/0x2)+parseInt(_0x4420cc(0x1ef))/0x3*(-parseInt(_0x4420cc(0x21e))/0x4)+-parseInt(_0x4420cc(0x206))/0x5+-parseInt(_0x4420cc(0x203))/0x6+-parseInt(_0x4420cc(0x1c7))/0x7*(parseInt(_0x4420cc(0x1ea))/0x8)+parseInt(_0x4420cc(0x20f))/0x9*(parseInt(_0x4420cc(0x218))/0xa)+parseInt(_0x4420cc(0x1d7))/0xb;if(_0x3f3db5===_0x411062)break;else _0xeac1f['push'](_0xeac1f['shift']());}catch(_0x17af0a){_0xeac1f['push'](_0xeac1f['shift']());}}}(_0x40c9,0x22143));import{ObservableMixin as _0x456cf8}from'ckeditor5/src/utils.js';function _0x40c9(){const _0x49ccb3=['from','_normalizeResponseHeadings','2vhtKQJ','trim','set','ELEMENT_NODE','custom','startsWith','42474JaLbfy','startProcessing','querySelector','221820CBgpfR','data','_parseAndNormalizeContent','get','clear','processor','setContentOf','_sanitizeHTML','remove','35559KLFsGk','nodeType','rename','htmlProcessor','match','<h1></h1>','_xmlSerializer','element','initialContext','610TEekuw','div','set:currentContext','_sanitizationContainer','text/html','```','20668cTvVJc','then','push','document','body','previousActionId','parseFromString','config','listenTo','once','render','mainAction','previousLabel','markers','137354WTpYno','currentResponse','message','finishProcessing','previousContext','```html','85802MFxWih','serializeToString','_stripMarkdownSyntax','viewToDom','childNodes','exec','abort','reverse','editor','createElement','1153328embMSa','toView','makeRequest','domConverter','ai.assistant.preserveComments','destroy','stopProcessing','_handleQuery','isRendered','catch','_domParser','name','view','tryAgainEvent','stringify','substring','length','previousQuery','submitPrompt','96gaDyXf','innerHTML','handleError','finally','prompt','3ofNItO','isProcessing','currentContext','toModel','reset','stopListening','updateView','textAdapter','value','endsWith','_isH1TagSupportEnabled','editing'];_0x40c9=function(){return _0x49ccb3;};return _0x40c9();}import{AIRequestError as _0x260194}from'../adapters/aiadapter.js';import{Matcher as _0x4fab25,ViewUpcastWriter as _0x550899}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x456cf8(){[_0x32c113(0x1d5)];[_0x32c113(0x1f6)];[_0x32c113(0x1e3)];[_0x32c113(0x21b)];[_0x32c113(0x1e1)];[_0x32c113(0x215)];constructor(_0x26563f,_0xd1b771,_0x567188){const _0x3221bf=_0x32c113;super(),this[_0x3221bf(0x1d5)]=_0x26563f,this[_0x3221bf(0x1f6)]=_0xd1b771,this[_0x3221bf(0x21b)]=document[_0x3221bf(0x1d6)](_0x3221bf(0x219)),this[_0x3221bf(0x1e1)]=new DOMParser(),this[_0x3221bf(0x215)]=new XMLSerializer(),this[_0x3221bf(0x1e3)]=_0x567188,this[_0x3221bf(0x1ff)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3221bf(0x21a),(_0x451bab,_0x5619c1,_0xbb8dfb)=>{const _0xb138c2=_0x3221bf;this[_0xb138c2(0x1e3)][_0xb138c2(0x1f7)]=this[_0xb138c2(0x20d)](_0xbb8dfb);}),this[_0x3221bf(0x226)](this[_0x3221bf(0x1e3)],_0x3221bf(0x1e9),(_0x2a4fb5,_0x5dff00)=>{const _0xa9aed1=_0x3221bf,_0x1df1c4=this[_0xa9aed1(0x1f1)]||this[_0xa9aed1(0x217)];this[_0xa9aed1(0x1de)](_0x5dff00,_0x1df1c4,_0xa9aed1(0x201));}),this[_0x3221bf(0x226)](this[_0x3221bf(0x1e3)],_0x3221bf(0x1e4),()=>{const _0x325a8b=_0x3221bf;this[_0x325a8b(0x1e3)][_0x325a8b(0x1ee)]=this[_0x325a8b(0x22a)],this[_0x325a8b(0x1de)](this[_0x325a8b(0x1e8)],this[_0x325a8b(0x1cb)],this[_0x325a8b(0x223)],this[_0x325a8b(0x22a)]);}),this[_0x3221bf(0x226)](this[_0x3221bf(0x1e3)],_0x3221bf(0x1dd),()=>{const _0x3f66fd=_0x3221bf;this[_0x3f66fd(0x1dd)]();});}[_0x32c113(0x1dc)](){const _0x3b1696=_0x32c113;this[_0x3b1696(0x1f4)]();}async[_0x32c113(0x1f5)]({actionId:_0x20ec19,query:_0x51f7f9,htmlContent:_0x57d6cd,label:_0x32ae9c,mainActionLabel:_0x46d3b9}){const _0xfc4cbc=_0x32c113;this[_0xfc4cbc(0x1e3)][_0xfc4cbc(0x1ee)]=_0x32ae9c,this[_0xfc4cbc(0x1e3)][_0xfc4cbc(0x229)]=_0x46d3b9,this[_0xfc4cbc(0x217)]=_0x57d6cd,_0x51f7f9&&(this[_0xfc4cbc(0x1e3)][_0xfc4cbc(0x1df)]?this[_0xfc4cbc(0x1de)](_0x51f7f9,_0x57d6cd,_0x20ec19,_0x32ae9c):this[_0xfc4cbc(0x1e3)][_0xfc4cbc(0x227)](_0xfc4cbc(0x228),()=>{const _0x1486c0=_0xfc4cbc;this[_0x1486c0(0x1de)](_0x51f7f9,_0x57d6cd,_0x20ec19,_0x32ae9c);}));}[_0x32c113(0x1dd)](){const _0x492650=_0x32c113;this[_0x492650(0x1f0)]&&(this[_0x492650(0x1f0)]=!0x1,this[_0x492650(0x1e3)][_0x492650(0x1ca)](),this[_0x492650(0x1f6)][_0x492650(0x1d3)]());}[_0x32c113(0x1f3)](){const _0x67090e=_0x32c113;this[_0x67090e(0x217)]='',this[_0x67090e(0x1f1)]='',this[_0x67090e(0x1c8)]='',this[_0x67090e(0x1cb)]='',this[_0x67090e(0x1e8)]='',this[_0x67090e(0x22a)]='',this[_0x67090e(0x223)]=void 0x0,this[_0x67090e(0x1e3)][_0x67090e(0x1f3)](),this[_0x67090e(0x1dd)]();}async[_0x32c113(0x1de)](_0x4feb4a,_0x544c68,_0x1cd59c,_0x724bda){const _0x3e930c=_0x32c113;return this[_0x3e930c(0x1f0)]=!0x0,this[_0x3e930c(0x1e3)][_0x3e930c(0x204)](),this[_0x3e930c(0x1cb)]=_0x544c68,this[_0x3e930c(0x1e8)]=_0x4feb4a,this[_0x3e930c(0x22a)]=_0x724bda||_0x4feb4a,this[_0x3e930c(0x223)]=_0x1cd59c,new Promise(_0x12fa07=>{const _0x14f92e=_0x3e930c;this[_0x14f92e(0x1f6)][_0x14f92e(0x1d9)]({'query':_0x4feb4a,'context':_0x544c68,'onData':_0x5e79de=>{const _0x3d6113=_0x14f92e;this[_0x3d6113(0x1c8)]=_0x5e79de,this[_0x3d6113(0x1f1)]=this[_0x3d6113(0x208)](this[_0x3d6113(0x1c8)]);},'actionId':_0x1cd59c})[_0x14f92e(0x21f)](()=>{const _0x1bc97a=_0x14f92e;!this[_0x1bc97a(0x1f1)]&&this[_0x1bc97a(0x1c8)]&&(this[_0x1bc97a(0x1f1)]=this[_0x1bc97a(0x208)](this[_0x1bc97a(0x1c8)],!0x0));})[_0x14f92e(0x1e0)](_0x29f642=>{const _0x33bcba=_0x14f92e;_0x29f642 instanceof _0x260194?this[_0x33bcba(0x1e3)][_0x33bcba(0x1ec)](_0x29f642[_0x33bcba(0x1c9)]):this[_0x33bcba(0x1e3)][_0x33bcba(0x1ec)](),_0x12fa07();})[_0x14f92e(0x1ed)](()=>{const _0x59c538=_0x14f92e;this[_0x59c538(0x1dd)](),_0x12fa07();});});}[_0x32c113(0x208)](_0x2377bb,_0x3b3882=!0x1){const _0x52ef82=_0x32c113,_0x5c806f=hs[_0x52ef82(0x1d2)](_0x2377bb);_0x2377bb=_0x5c806f?_0x2377bb[_0x52ef82(0x1e6)](_0x5c806f[0x1][_0x52ef82(0x1e7)]):_0x2377bb[_0x52ef82(0x1e7)]<0x64&&!_0x3b3882?'':this[_0x52ef82(0x1cf)](_0x2377bb);const _0x14f541=this[_0x52ef82(0x1e1)][_0x52ef82(0x224)](_0x2377bb,_0x52ef82(0x21c));if(_0x5c806f){const _0x338bd3=Array[_0x52ef82(0x1fb)](_0x14f541[_0x52ef82(0x222)][_0x52ef82(0x1d1)]);_0x338bd3[_0x52ef82(0x1d4)]();for(const _0x46872b of _0x338bd3){if(_0x46872b[_0x52ef82(0x210)]==Node[_0x52ef82(0x200)])break;_0x46872b[_0x52ef82(0x20e)]();}}const _0x4a31ba=this[_0x52ef82(0x1d5)][_0x52ef82(0x207)][_0x52ef82(0x20b)][_0x52ef82(0x1d8)](this[_0x52ef82(0x215)][_0x52ef82(0x1ce)](_0x14f541[_0x52ef82(0x222)]));this[_0x52ef82(0x1f9)]()||this[_0x52ef82(0x1fc)](_0x4a31ba);const _0xb9c1ea=this[_0x52ef82(0x1d5)][_0x52ef82(0x225)][_0x52ef82(0x209)](_0x52ef82(0x1db)),_0x21e549=this[_0x52ef82(0x1d5)][_0x52ef82(0x207)][_0x52ef82(0x1f2)](_0x4a31ba);return _0xb9c1ea||_0x21e549[_0x52ef82(0x22b)][_0x52ef82(0x20a)](),this[_0x52ef82(0x1d5)][_0x52ef82(0x207)][_0x52ef82(0x1e5)](_0x21e549);}[_0x32c113(0x1fc)](_0x652fd6){const _0x1808d9=_0x32c113,_0x3c290f=new _0x550899(this[_0x1808d9(0x1d5)][_0x1808d9(0x1fa)][_0x1808d9(0x1e3)][_0x1808d9(0x221)]),_0x25ebf8=new _0x4fab25({'name':/^h[1-5]$/}),_0x476482=[];let _0x4d2d16=!0x1;for(const _0x47ef14 of _0x652fd6)_0x47ef14['is'](_0x1808d9(0x216))&&_0x25ebf8[_0x1808d9(0x213)](_0x47ef14)&&(_0x476482[_0x1808d9(0x220)](_0x47ef14),'h1'==_0x47ef14[_0x1808d9(0x1e2)]&&(_0x4d2d16=!0x0));if(_0x4d2d16){for(const _0x5054bf of _0x476482)_0x3c290f[_0x1808d9(0x211)]('h'+(parseInt(_0x5054bf[_0x1808d9(0x1e2)][0x1])+0x1),_0x5054bf);}}[_0x32c113(0x1f9)](){const _0x16a1f8=_0x32c113,{data:_0x23a74d,editing:_0x548bd2}=this[_0x16a1f8(0x1d5)],_0x1d0e1c=_0x23a74d[_0x16a1f8(0x212)][_0x16a1f8(0x1d8)](_0x16a1f8(0x214)),_0x381737=_0x23a74d[_0x16a1f8(0x1d8)](_0x23a74d[_0x16a1f8(0x1f2)](_0x1d0e1c));return!!_0x548bd2[_0x16a1f8(0x1e3)][_0x16a1f8(0x1da)][_0x16a1f8(0x1d0)](_0x381737)[_0x16a1f8(0x205)]('h1');}[_0x32c113(0x20d)](_0x5b5464){const _0x308522=_0x32c113;return this[_0x308522(0x1d5)][_0x308522(0x1fa)][_0x308522(0x1e3)][_0x308522(0x1da)][_0x308522(0x20c)](this[_0x308522(0x21b)],_0x5b5464),this[_0x308522(0x21b)][_0x308522(0x1eb)];}[_0x32c113(0x1cf)](_0x31c247){const _0x38b81e=_0x32c113,_0x3df99e=_0x31c247[_0x38b81e(0x1fe)]();return _0x3df99e[_0x38b81e(0x202)](_0x38b81e(0x1cc))?_0x3df99e[_0x38b81e(0x1f8)](_0x38b81e(0x21d))?_0x3df99e[_0x38b81e(0x1e6)](0x7,_0x3df99e[_0x38b81e(0x1e7)]-0x3):_0x3df99e[_0x38b81e(0x1e6)](0x7):_0x31c247;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x17ef(_0x11f82e,_0x5e94a0){const _0x36faaa=_0x36fa();return _0x17ef=function(_0x17ef0f,_0xfb19d1){_0x17ef0f=_0x17ef0f-0x159;let _0x311f6b=_0x36faaa[_0x17ef0f];return _0x311f6b;},_0x17ef(_0x11f82e,_0x5e94a0);}const _0x4f6ed1=_0x17ef;(function(_0x4ac17d,_0x5492dd){const _0x4cc4ab=_0x17ef,_0xa9efd1=_0x4ac17d();while(!![]){try{const _0x57a997=-parseInt(_0x4cc4ab(0x171))/0x1*(-parseInt(_0x4cc4ab(0x17b))/0x2)+-parseInt(_0x4cc4ab(0x174))/0x3*(parseInt(_0x4cc4ab(0x1a0))/0x4)+parseInt(_0x4cc4ab(0x193))/0x5+-parseInt(_0x4cc4ab(0x16c))/0x6+parseInt(_0x4cc4ab(0x189))/0x7+parseInt(_0x4cc4ab(0x16a))/0x8+parseInt(_0x4cc4ab(0x180))/0x9*(parseInt(_0x4cc4ab(0x18c))/0xa);if(_0x57a997===_0x5492dd)break;else _0xa9efd1['push'](_0xa9efd1['shift']());}catch(_0x1eb6fe){_0xa9efd1['push'](_0xa9efd1['shift']());}}}(_0x36fa,0x5486a));import{global as _0x2548eb}from'ckeditor5/src/utils.js';import{View as _0x346f89,ButtonView as _0x3f09de,SpinnerView as _0x1f4cdc}from'ckeditor5/src/ui.js';import{IconCheck as _0x269855,IconCopy as _0x3ecc83}from'ckeditor5/src/icons.js';import{getTranslation as _0x47ecda}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x346f89{[_0x4f6ed1(0x15f)];[_0x4f6ed1(0x182)];constructor(_0x140ec0,_0x7f4dc9=''){const _0x4feb61=_0x4f6ed1;super(_0x140ec0),this[_0x4feb61(0x166)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x349186=this[_0x4feb61(0x172)];this[_0x4feb61(0x15f)]=new ContentFieldView(_0x140ec0,_0x7f4dc9),this[_0x4feb61(0x182)]=this[_0x4feb61(0x188)](),this[_0x4feb61(0x1a3)]({'tag':_0x4feb61(0x179),'attributes':{'class':['ck',_0x4feb61(0x15c),_0x349186['if'](_0x4feb61(0x165),_0x4feb61(0x15a),_0x4cb0b8=>!_0x4cb0b8)],'tabindex':'-1'},'children':[{'tag':_0x4feb61(0x179),'attributes':{'class':['ck',_0x4feb61(0x16f),_0x349186['if'](_0x4feb61(0x169),_0x4feb61(0x1a4))]},'children':[this[_0x4feb61(0x15f)],{'tag':_0x4feb61(0x179),'attributes':{'class':['ck',_0x4feb61(0x184)]},'children':[this[_0x4feb61(0x182)]]}]}]});}[_0x4f6ed1(0x161)](){const _0x2074fa=_0x4f6ed1;super[_0x2074fa(0x161)](),this[_0x2074fa(0x167)]&&this[_0x2074fa(0x15f)][_0x2074fa(0x168)](this[_0x2074fa(0x167)]);let _0x44c0bd=!0x1;this['on'](_0x2074fa(0x159),(_0x494df6,_0x3f219e,_0x209b6a)=>{const _0x3ae192=_0x2074fa,_0x362d01=!this[_0x3ae192(0x15f)][_0x3ae192(0x16d)][_0x3ae192(0x1a7)](_0x3ae192(0x186));this[_0x3ae192(0x15f)][_0x3ae192(0x168)](_0x209b6a),this[_0x3ae192(0x169)]&&_0x362d01&&!_0x44c0bd&&this[_0x3ae192(0x16d)][_0x3ae192(0x194)]({'top':this[_0x3ae192(0x16d)][_0x3ae192(0x175)],'behavior':_0x3ae192(0x178)});}),this['on'](_0x2074fa(0x1ac),(_0x2298fc,_0x4725f9,_0x46cbc0)=>{const _0x1cfd04=_0x2074fa;_0x44c0bd=!0x1,_0x46cbc0?(this[_0x1cfd04(0x167)]=null,this[_0x1cfd04(0x15f)][_0x1cfd04(0x16e)]()):this[_0x1cfd04(0x167)]||this[_0x1cfd04(0x15f)][_0x1cfd04(0x168)]('');}),this[_0x2074fa(0x162)](this[_0x2074fa(0x16d)],_0x2074fa(0x1a2),()=>{_0x44c0bd=!0x0;}),this[_0x2074fa(0x162)](this[_0x2074fa(0x16d)],_0x2074fa(0x164),()=>{_0x44c0bd=!0x0;});}[_0x4f6ed1(0x199)](){const _0xb49eb7=_0x4f6ed1;this[_0xb49eb7(0x16d)][_0xb49eb7(0x199)]();}[_0x4f6ed1(0x188)](){const _0x5cd7e1=_0x4f6ed1,_0x2da865=this[_0x5cd7e1(0x18b)],_0x39da26=new _0x3f09de(this[_0x5cd7e1(0x18b)]),_0x4fe967=_0x5cd7e1(0x19b);return _0x39da26[_0x5cd7e1(0x166)]({'label':_0x47ecda(_0x2da865,_0x5cd7e1(0x19c)),'icon':_0x3ecc83,'class':_0x4fe967,'tooltip':!0x0}),_0x39da26[_0x5cd7e1(0x190)](_0x5cd7e1(0x165))['to'](this,_0x5cd7e1(0x167),_0x3f0062=>!!_0x3f0062),_0x39da26[_0x5cd7e1(0x190)](_0x5cd7e1(0x1ab))['to'](this,_0x5cd7e1(0x169),_0x10826e=>!_0x10826e),_0x39da26['on'](_0x5cd7e1(0x176),()=>{const _0x2887eb=_0x5cd7e1;this[_0x2887eb(0x1aa)](this[_0x2887eb(0x15f)][_0x2887eb(0x16d)]),_0x39da26[_0x2887eb(0x19d)]=_0x269855,_0x39da26[_0x2887eb(0x187)]=_0x4fe967+_0x2887eb(0x196),this[_0x2887eb(0x199)](),setTimeout(()=>{const _0x164379=_0x2887eb;_0x39da26[_0x164379(0x19d)]=_0x3ecc83,_0x39da26[_0x164379(0x187)]=_0x4fe967;},0x3e8);}),_0x39da26;}[_0x4f6ed1(0x1aa)](_0x42ebfb){const _0x1126ad=_0x4f6ed1,{window:_0x135e90,document:_0x5e1526}=_0x2548eb;if(_0x135e90[_0x1126ad(0x19e)]){const {Blob:_0x130692,ClipboardItem:_0x3b8e62}=_0x135e90,_0x4ea538=[new _0x3b8e62({'text/html':new _0x130692([_0x42ebfb[_0x1126ad(0x18d)]],{'type':_0x1126ad(0x181)}),'text/plain':new _0x130692([_0x42ebfb[_0x1126ad(0x16b)]||''],{'type':_0x1126ad(0x19f)})})];navigator[_0x1126ad(0x1ad)][_0x1126ad(0x1a6)](_0x4ea538);}else{const _0x393ddb=_0x5e1526[_0x1126ad(0x177)](_0x1126ad(0x179));_0x393ddb[_0x1126ad(0x17d)][_0x1126ad(0x183)]=_0x1126ad(0x15d),_0x393ddb[_0x1126ad(0x17d)][_0x1126ad(0x18f)]=_0x1126ad(0x17f),_0x393ddb[_0x1126ad(0x18d)]=_0x1126ad(0x17a)+_0x42ebfb[_0x1126ad(0x18d)]+_0x1126ad(0x1a8),_0x5e1526[_0x1126ad(0x1a1)][_0x1126ad(0x15b)](_0x393ddb);const _0x1d7530=_0x5e1526[_0x1126ad(0x18a)]();_0x1d7530[_0x1126ad(0x163)](_0x393ddb[_0x1126ad(0x18e)]),_0x1d7530[_0x1126ad(0x17c)](_0x393ddb[_0x1126ad(0x1a5)]);const _0x32e638=_0x135e90[_0x1126ad(0x17e)]();_0x32e638[_0x1126ad(0x192)](),_0x32e638[_0x1126ad(0x19a)](_0x1d7530),_0x5e1526[_0x1126ad(0x185)](_0x1126ad(0x15e)),_0x393ddb[_0x1126ad(0x1a9)]();}}}function _0x36fa(){const _0x6accff=['1943824WOYftm','textContent','3707376zqdtDe','element','appendLoader','ck-ai-form__content-area','loaderView','4ZAXJkm','bindTemplate','_createLoader','1314546bzGyTI','scrollHeight','execute','createElement','smooth','div','<span>[</span>','222234lbjWak','setEndBefore','style','getSelection','-9999px','9ncahPt','text/html','copyButtonView','position','ck-ai-form__copy-button-wrapper','execCommand','.ck-ai-form__loader','class','_createCopyButton','87073FUHxzs','createRange','locale','3210070bnFwgB','innerHTML','firstElementChild','left','bind','ck-reset_all-excluded','removeAllRanges','1907020ajCiYD','scrollTo','ck-ai-form__content-field','\x20ck-ai-form__copy-button--copied','AI\x20is\x20writing...','ck-content','focus','addRange','ck-ai-form__copy-button','Copy','icon','ClipboardItem','text/plain','4VyHbSn','body','wheel','setTemplate','ck-ai-form__content-area--processing','lastElementChild','write','querySelector','<span>]</span>','remove','_copyHTMLToClipboard','isEnabled','change:isProcessing','clipboard','change:value','ck-hidden','appendChild','ck-ai-form__content-area-wrapper','absolute','copy','contentFieldView','ck-ai-form__loader','render','listenTo','setStartAfter','mousedown','isVisible','set','value','setContent','isProcessing'];_0x36fa=function(){return _0x6accff;};return _0x36fa();}export class ContentFieldView extends _0x346f89{constructor(_0x5f1b3d,_0x194119=''){const _0x49cacd=_0x4f6ed1;super(_0x5f1b3d),this[_0x49cacd(0x170)]=this[_0x49cacd(0x173)](),this[_0x49cacd(0x1a3)]({'tag':_0x49cacd(0x179),'attributes':{'class':['ck',_0x49cacd(0x198),_0x194119,_0x49cacd(0x191),_0x49cacd(0x195)]}});}[_0x4f6ed1(0x168)](_0x3cadbf){const _0x49e7c9=_0x4f6ed1;this[_0x49e7c9(0x16d)][_0x49e7c9(0x18d)]=_0x3cadbf;}[_0x4f6ed1(0x16e)](){const _0x27efdd=_0x4f6ed1;this[_0x27efdd(0x16d)][_0x27efdd(0x15b)](this[_0x27efdd(0x170)][_0x27efdd(0x16d)]);}[_0x4f6ed1(0x173)](){const _0x1168e2=_0x4f6ed1,_0x2cefb9=new _0x346f89(),_0x22250f=this[_0x1168e2(0x18b)],_0x2b5d74=new _0x1f4cdc();return _0x2b5d74[_0x1168e2(0x165)]=!0x0,_0x2cefb9[_0x1168e2(0x1a3)]({'tag':_0x1168e2(0x179),'attributes':{'class':['ck',_0x1168e2(0x160)]},'children':[_0x2b5d74,{'text':_0x47ecda(_0x22250f,_0x1168e2(0x197))}]}),_0x2cefb9[_0x1168e2(0x161)](),_0x2cefb9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4c5232,_0x2874d9){const _0x2d8d30=_0x22e4,_0x17b536=_0x4c5232();while(!![]){try{const _0x2ebe49=parseInt(_0x2d8d30(0x133))/0x1*(parseInt(_0x2d8d30(0x139))/0x2)+parseInt(_0x2d8d30(0x138))/0x3+-parseInt(_0x2d8d30(0x136))/0x4+-parseInt(_0x2d8d30(0x13a))/0x5+parseInt(_0x2d8d30(0x130))/0x6+-parseInt(_0x2d8d30(0x12f))/0x7+parseInt(_0x2d8d30(0x13b))/0x8*(parseInt(_0x2d8d30(0x13e))/0x9);if(_0x2ebe49===_0x2874d9)break;else _0x17b536['push'](_0x17b536['shift']());}catch(_0x570c06){_0x17b536['push'](_0x17b536['shift']());}}}(_0x3395,0x8bf6d));function _0x3395(){const _0xcf4ac8=['set','16599yJDlQN','div','ck-ai-form__error','1332668HaMGEW','content','730938XnVWOA','42pcqiMc','3912445dQtwyB','4592NUNkBW','bindTemplate','setTemplate','1566lNiWxZ','214648ZlhoZM','6165072rrkciC','text'];_0x3395=function(){return _0xcf4ac8;};return _0x3395();}function _0x22e4(_0x8653ea,_0x505579){const _0x3395de=_0x3395();return _0x22e4=function(_0x22e49c,_0x12dd7f){_0x22e49c=_0x22e49c-0x12f;let _0x2e0b18=_0x3395de[_0x22e49c];return _0x2e0b18;},_0x22e4(_0x8653ea,_0x505579);}import{IconError as _0x4203dd}from'ckeditor5/src/icons.js';import{View as _0x3084a8,IconView as _0x26dec8}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3084a8{constructor(_0x453f4e,_0x96e2a3=''){const _0x3843cc=_0x22e4;super(_0x453f4e);const _0x968bd8=new _0x26dec8(),_0x243143=this[_0x3843cc(0x13c)];this[_0x3843cc(0x132)](_0x3843cc(0x131),_0x96e2a3),_0x968bd8[_0x3843cc(0x137)]=_0x4203dd,this[_0x3843cc(0x13d)]({'tag':_0x3843cc(0x134),'attributes':{'class':['ck',_0x3843cc(0x135)]},'children':[_0x968bd8,{'text':_0x243143['to'](_0x3843cc(0x131))}]});}}
|