@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251222.0 → 0.0.0-nightly-20251223.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>D,FootnotesEditing:()=>I,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=472]})(t,e)}function c(){const t=["length","position","_elementName","_model","12qgtnFh","flat","3195756atQJob","3006bhNaxd","push","$graveyard","175360KujckF","add","9976884yuUozj","has","1544LuZtHA","74367QUcJLp","251DfUkJX","_getElementKey","nodeAfter","root","13gMdBIr","name","3786167jSFfwu","set","getChanges","from","reset","getElementKey","insert","element","elementName","type","createRangeOn","22iwdhnO","$text","_trackedElements","get","rootName","slice","2972xCCRMM","5baUqLC","remove","getItems","clear","delete","attributes","values"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(276265===parseInt(e(516))/1*(-parseInt(e(492))/2)+parseInt(e(515))/3*(-parseInt(e(504))/4)+-parseInt(e(493))/5*(-parseInt(e(506))/6)+-parseInt(e(475))/7+parseInt(e(514))/8*(-parseInt(e(507))/9)+parseInt(e(510))/10*(-parseInt(e(486))/11)+-parseInt(e(512))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(503)];[r(502)];[r(517)];[r(488)]=new Map;constructor(t,e){const o=r;this[o(503)]=t,this[o(502)]=e[o(483)],this[o(517)]=e[o(480)]}[r(479)](){const t=r;this[t(488)][t(496)]()}[r(477)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(481)===i[e(484)]&&e(487)!==i[e(474)]&&i[e(501)][e(518)]){const t=this[e(503)][e(485)](i[e(501)][e(518)]);for(const o of t[e(495)]()){if(!o.is(e(482),this[e(502)]))continue;const t=this[e(517)](o);n[e(513)](t)||n[e(476)](t,[]),n[e(489)](t)[e(508)](o)}}if(e(494)===i[e(484)]&&i[e(474)]===this[e(502)]){const t=this[e(517)]({getAttribute:t=>i[e(498)][e(489)](t)});o[e(511)](t)}}for(const[t,n]of this[e(488)])e(509)===n[e(472)][e(490)]&&o[e(511)](t);for(const t of o)this[e(488)][e(497)](t);for(const[t,o]of n)this[e(488)][e(476)](t,o[o[e(500)]-1]);const i=new Set;for(const[t,s]of n)o[e(513)](t)&&(i[e(511)](s[0]),s[e(500)]>1?n[e(476)](t,s[e(491)](1)):n[e(497)](t),o[e(497)](t));return{removed:Array[e(478)](o),inserted:Array[e(478)](n[e(499)]())[e(505)](),moved:Array[e(478)](i)}}}function f(){const t=["createRangeOn","low","_footnoteDefsContainerTracker","before","map","reference","1903592EkCGCB","setAttribute","footnoteId","init","config","isOfficialPlugin","has","get","_ensureFootnotesReferencesHaveProperOrder","_handleFootnoteDefinitionsChanges","createRangeIn","getFootnotesDefinitionsObjectElement","isEqual","7hqWtJw","getFootnotes","length","getChanges","isPremiumPlugin","getRootNames","getAttribute","getFootnote","childCount","root","_footnoteDefsTracker","createPositionAt","min","_handleRemoveFootnoteReferenceById","setFootnoteFormatter","parent","FootnotesTracker","footnoteInlineContent","footnotesDefinitions","footnoteRef","pluginName","enqueueChange","12fsXECj","findIndex","add","indexOf","model","remove","_updateFootnoteRefCounter","_ensureFootnotesDefinitionsContainerExists","_updateFootnotesCounters","_footnotes","_footnotesDefinitions","footnoteDefinition","getChildren","_handleInsertedFootnoteReference","85407mDFVnq","createPositionBefore","_footnoteRefsTracker","5072QvNVxr","splice","_footnoteFormatter","insert","_handleFootnotesDefinitionsObjectChanges","document","append","_sortFootnoteDefinitions","151314poXLel","footnoteCounter","getFootnotesFormatter","listenTo","push","_handleFootnoteReferencesChanges","change:data","30dNgOGp","footnotes.multiBlock","definition","1790074nnRUrz","end","paragraph","set","singleton","compareWith","from","151921JwpSXc","2959650QEZcwR","createElement","40srkllL","some","_handleMovedFootnoteReference","unshift","find","_insertEmptyFootnotesDefinitionsContainer","editor","reset","$graveyard","high","move","16fCcdaL","differ","_handleFootnotesDefinitionsObjectSync","rootName","after","registerPostFixer","15HnTYpI"];return(f=function(){return t})()}const u=d;function d(t,e){const o=f();return(d=function(t,e){return o[t-=363]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(181939===-parseInt(e(388))/1*(-parseInt(e(464))/2)+-parseInt(e(461))/3*(parseInt(e(399))/4)+-parseInt(e(405))/5*(parseInt(e(368))/6)+parseInt(e(425))/7*(-parseInt(e(412))/8)+parseInt(e(386))/9+parseInt(e(375))/10*(parseInt(e(385))/11)+parseInt(e(447))/12*(parseInt(e(378))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class p extends t.Plugin{[u(456)]=[];[u(457)]=null;[u(466)]=null;[u(408)];[u(463)];[u(435)];static get[u(445)](){return u(441)}static get[u(417)](){return!0}static get[u(429)](){return!0}constructor(t){const e=u;super(t),this[e(408)]=new l(this[e(394)][e(451)],{elementName:e(443),getElementKey:()=>e(382)}),this[e(463)]=new l(this[e(394)][e(451)],{elementName:e(444),getElementKey:t=>t[e(431)](e(414))}),this[e(435)]=new l(this[e(394)][e(451)],{elementName:e(458),getElementKey:t=>t[e(431)](e(414))})}[u(415)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(365)][t(404)](e=>{const n=t,i=o[n(365)][n(400)][n(428)]();let s=!1;return this[n(364)](e,i)&&(s=!0),this[n(421)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(420)](e)&&(s=!0),this[n(401)](e)&&(s=!0),this[n(367)](e)&&(s=!0),s}),this[t(371)](o[t(365)],t(374),()=>{const e=t;o[e(446)]({isUndoable:!1},t=>{this[e(454)](t)})},{priority:t(407)}),this[t(371)](n,t(381),()=>{const e=t;this[e(456)]=[],this[e(408)][e(395)](),this[e(463)][e(395)](),this[e(435)][e(395)]()},{priority:t(397)})}[u(423)](){return this[u(457)]}[u(432)](t){const e=u;return this[e(456)][e(392)](e=>e.id===t)||null}[u(426)](){const t=u;return Array[t(384)](this[t(456)])}[u(370)](){return this[u(466)]}[u(439)](t){this[u(466)]=t}[u(455)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(456)][o(427)];i++)this[o(453)](t,i)&&(n=!0);return n}[u(393)](t,e){const o=u,n=t[o(387)](o(443),{});return t[o(366)](n,e),this[o(457)]=n,n}[u(454)](t){const e=u;if(!this[e(456)][e(427)]||this[e(457)])return;const o=this[e(456)][0][e(411)][e(434)],n=this[e(393)](t,o);for(const o of this[e(456)])o[e(377)][e(440)]||t[e(363)](o[e(377)],n,e(379));this[e(455)](t)}[u(364)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(408)][o(428)](e);if(r[o(427)]&&(this[o(457)]=r[0]),i[o(427)])if(i[o(427)]>1||this[o(457)]&&i[o(389)](t=>t!==this[o(457)])){const e=t[o(387)](o(443),{}),s=[];this[o(457)]&&s[o(372)](this[o(457)]),s[o(372)](...i),t[o(363)](e,s[0],o(409));for(const n of s)t[o(398)](t[o(422)](n),t[o(436)](e,o(379))),t[o(452)](n);this[o(457)]=e,this[o(455)](t),n=!0}else this[o(457)]=i[0];if(s[o(427)]&&o(396)===this[o(457)]?.[o(434)][o(402)]){for(const e of this[o(456)])t[o(452)](e[o(411)]),n=!0;this[o(456)]=[],this[o(457)]=null}return n}[u(421)](t,e){const o=u;let n=!1;const i=this[o(394)][o(416)][o(419)](o(376)),{inserted:s,moved:r}=this[o(435)][o(428)](e);for(const e of[...r,...s]){const s=e[o(431)](o(414)),r=this[o(432)](s);r&&(r[o(377)]=e),h(t,i,e)&&(n=!0)}return n}[u(373)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(428)](e);for(const e of i)this[o(438)](t,e)&&(n=!0);for(const e of s)this[o(460)](t,e)&&(n=!0);for(const e of r)this[o(390)](t,e)&&(n=!0);return n}[u(401)](t){const e=u;if(!this[e(457)])return!1;let o=!1;if(this[e(457)][e(433)]!==this[e(456)][e(427)]){const n=[];for(const t of this[e(457)][e(459)]()){const i=t[e(431)](e(414));this[e(432)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(452)](o)}const n=new Set,i=[];for(const t of this[e(457)][e(459)]()){const s=t[e(431)](e(414));n[e(418)](s)?(i[e(391)](t),o=!0):n[e(449)](s)}for(const o of i)t[e(452)](o);return this[e(457)][e(433)]||(t[e(452)](this[e(457)]),this[e(457)]=null,o=!0),o}[u(460)](t,e){const o=u;if(this[o(456)][o(392)](t=>t[o(411)]===e))return!1;let n=!1;const i=e[o(431)](o(414)),s=this[o(456)][o(448)](t=>t.id===i);-1!==s&&(t[o(452)](this[o(456)][s][o(411)]),this[o(456)][o(465)](s,1),n=!0);let r=this[o(457)]?function(t,e){const n=o;for(const o of t[n(459)]())if(o[n(431)](n(414))===e)return o;return null}(this[o(457)],i):null;r||(r=t[o(387)](o(458),{footnoteId:i}),this[o(457)]&&(t[o(363)](r,this[o(457)],o(379)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(394)][o(451)],this[o(456)],e);this[o(456)][o(465)](c,0,a);let l=c;return-1!==s&&(l=Math[o(437)](c,s)),this[o(455)](t,l)&&(n=!0),n}[u(438)](t,e){const o=u,n=this[o(456)][o(448)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(456)][n];return o(396)!==s[o(377)][o(434)][o(402)]&&(t[o(452)](s[o(377)]),i=!0),this[o(456)][o(465)](n,1),this[o(455)](t,n)&&(i=!0),i}[u(390)](t,e){const o=u,n=e[o(431)](o(414)),i=this[o(456)][o(448)](t=>t.id===n),s=this[o(456)][i];let r=!1;s[o(411)]=e,this[o(456)][o(465)](i,1);const a=m(this[o(394)][o(451)],this[o(456)],e);return this[o(456)][o(465)](a,0,s),this[o(455)](t,Math[o(437)](i,a))&&(r=!0),r}[u(453)](t,e){const o=u;if(!this[o(457)])return!1;const n=this[o(456)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(457)],digits:String(this[o(456)][o(427)])[o(427)],value:e+1}):String(e+1),n[o(411)][o(431)](o(369))!=i&&(t[o(413)](o(369),i,n[o(411)]),!0)}[u(367)](t){const e=u;if(!this[e(457)]||this[e(456)][e(427)]<2)return!1;if(function(t,o){const n=e;if(t[n(427)]!==o[n(427)])return!1;for(let e=0;e<t[n(427)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(456)][e(410)](t=>t.id),Array[e(384)](this[e(457)][e(459)]())[e(410)](t=>t[e(431)](e(414)))))return!1;let o=!1;for(let n=0;n<this[e(456)][e(427)];n++){const i=this[e(456)][n],s=t[e(462)](i[e(377)]),r=t[e(436)](this[e(457)],n);s[e(424)](r)||(t[e(398)](t[e(406)](i[e(377)]),r),o=!0)}return o}[u(420)](t){const e=u;if(!this[e(456)][e(427)])return!1;const{model:o}=this[e(394)];let n=!1;for(let i=0;i<this[e(456)][e(427)]-1;i++){const s=this[e(456)][i],r=this[e(456)][i+1],a=o[e(462)](s[e(411)]),c=o[e(462)](r[e(411)]);e(403)===a[e(383)](c)&&(this[e(390)](t,s[e(411)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(433)])return!1;const i=n(e?380:442);return t[n(363)](t[n(387)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(427)])return 0;const i=t[n(462)](o);for(let o=0;o<e[n(427)];o++){const s=e[o],r=t[n(462)](s[n(411)]);if(n(409)===i[n(383)](r))return o}const s=o[n(434)];let r=-1;for(let t=e[n(427)]-1;t>=0;t--)if(e[t][n(411)][n(434)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(365)][n(430)](),c=a[n(450)](s[n(402)]),l=a[c+1];if(l)for(let t=0;t<e[n(427)];t++)if(e[t][n(411)][n(434)][n(402)]===l)return t;return e[n(427)]}const g=y;function w(){const t=["change","7263585ObxJRR","2871PxVvSC","getItems","footnoteId","_getPositionToInsertFootnote","selection","editor","createElement","1119522TatFJt","FootnotesEditing","execute","length","isObject","2762469VhMoFE","getFirstRange","checkChild","refresh","insert-footnote-command-executed-with-invalid-id","insertObject","plugins","end","footnoteRef","116140buYLxW","_moveSelectionToFootnoteDefinition","754383FjRfDd","8WtcfgK","isEnabled","isBlock","773417eaktsg","test","2665260YjOJGr","2SolYlr","get","model","8EIpCSr","document","string"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=271]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(962224===-parseInt(e(302))/1*(-parseInt(e(305))/2)+-parseInt(e(282))/3*(parseInt(e(308))/4)+-parseInt(e(274))/5+-parseInt(e(304))/6+parseInt(e(298))/7+parseInt(e(299))/8*(-parseInt(e(287))/9)+parseInt(e(296))/10*(parseInt(e(275))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(290)](){const t=g,e=this[t(280)][t(307)][t(271)][t(279)],o=this[t(278)](e);this[t(300)]=!!o}[g(284)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(271)],r=this[e(278)](s);if(!r)return;const a=o[e(293)][e(306)](e(283)),c=t?.[e(277)]??(0,i.uid)();!function(t){const o=e;return o(272)==typeof t&&t[o(285)]>0&&!/\s/[o(303)](t)&&!/^\d/[o(303)](t)}(c)?(0,i.logWarning)(e(291)):(n[e(273)](t=>{const o=e,i=t[o(281)](o(295),{footnoteId:c});n[o(292)](i,r,null)}),a[e(297)](c))}[g(278)](t){const e=g,{model:o}=this[e(280)],{schema:n}=o,i=t[e(288)]();for(const t of i[e(276)]())if(n[e(301)](t)||n[e(286)](t))return null;const s=i[e(294)];return n[e(289)](s,e(295))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766361600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const P=_;function T(){const t=["_handlePasteFootnotesDefinitions","insert","getFirstRange","end","1236676uRBdMv","createElement","23736ECozZR","cloneElement","getRanges","contentInsertion","root","pluginName","append","element","88660PWReUg","toView","string","definition","1140732yzOwlN","clipboardInput","dataTransfer","footnotes.multiBlock","init","footnoteDefinition","method","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","18Xspmkh","push","application/ckeditor5-footnotes","isOfficialPlugin","get","340368DPiDqE","448wlJqpm","stringify","toModel","footnoteId","getFootnotesDefinitionsObjectElement","731042ucGlON","requires","data","find","_handleCopyFootnotesDefinitions","setAttribute","sourceEditorId","getFootnote","getChildren","includes","document","entries","FootnotesClipboard","getFootnotes","getSelectedBlocks","add","getData","listenTo","outputTransformation","from","selection","drop","config","toData","editing","footnotesDefinitions","content","createRangeIn","hasAttribute","change","create","remove","parse","length","keys","footnoteRef","isPremiumPlugin","htmlProcessor","flatMap","868100VNKdaX","1JWIVQY","footnoteInlineContent","setData","reduce","editor","getAttribute"];return(T=function(){return t})()}function _(t,e){const o=T();return(_=function(t,e){return o[t-=437]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(281226===parseInt(e(454))/1*(-parseInt(e(498))/2)+parseInt(e(492))/3+parseInt(e(464))/4+parseInt(e(474))/5+parseInt(e(478))/6+-parseInt(e(493))/7*(-parseInt(e(466))/8)+parseInt(e(487))/9*(-parseInt(e(453))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class D extends t.Plugin{static get[P(471)](){return P(510)}static get[P(499)](){return[I,A.ClipboardPipeline]}static get[P(490)](){return!0}static get[P(450)](){return!0}[P(482)](){this[P(486)]()}[P(486)](){const t=P;this[t(502)](),this[t(460)]()}[P(502)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(491)](A.ClipboardPipeline),s=o[t(491)](p);this[t(515)](i,t(516),(o,i)=>{const r=t,a=V(n[r(441)](i[r(440)]));if(!a[r(447)])return;const c=s[r(511)](),l=a[r(457)]((t,o)=>{const n=r,i=c[n(501)](t=>t.id===o);if(i){const o=e[n(500)][n(475)](i[n(477)],{isClipboardPipeline:!0}),s=e[n(500)][n(451)][n(437)](o);t[i.id]=s}return t},Object[r(444)](null));i[r(480)][r(456)](r(489),JSON[r(494)](l))})}[P(460)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(438)],r=n[t(491)](A.ClipboardPipeline),a=n[t(491)](p),c=e[t(520)][t(491)](t(481));let l=null;this[t(515)](s[t(508)],t(479),(e,o)=>{const n=t,i=o[n(480)][n(514)](n(489));l=i?JSON[n(446)](i):null}),this[t(515)](r,t(469),(n,s)=>{const r=t,f=s[r(504)]===this[r(458)].id;f&&r(519)===s[r(484)]||o[r(443)](t=>{const n=r;let u=a[n(497)]();const d=!!u&&Array[n(517)](o[n(508)][n(518)][n(512)]())[n(507)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(473),e(449)))return!0;return!1}(o[n(441)](s[n(440)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(444)](null);for(const e of i[o(506)]())e.is(o(473),o(483))&&e[o(442)](o(496))&&(s[e[o(459)](o(496))]=t[o(467)](e,!0));return Object[o(448)](s)[o(447)]?s:null}(t,s[n(440)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(441)](e))n.is(o(473),o(439))&&i[o(488)](n);for(const e of i)t[o(445)](e)}(t,s[n(440)]),!l)return;const{selection:p}=o[n(508)],h=p[n(462)]()[n(470)];u&&!d||(u=L(t,s[n(440)]),u||=a[n(485)](t,h));const m=Array[n(517)](p[n(468)]())[n(452)](V),g=function(t,e,o){const s=n,r=Object[s(444)](null);for(const{item:n}of t[s(441)](e))if(n.is(s(473),s(449))){const e=n[s(459)](s(496));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(503)](s(496),r[e],n)}return r}(t,s[n(440)],t=>{const e=n;return!f||!!a[e(505)](t)&&!m[e(507)](t)});for(const[o,i]of Object[n(509)](l)){const s=g[o]||o;let r;if(n(476)!=typeof i)r=i,s!==o&&t[n(503)](n(496),s,r);else{r=t[n(465)](n(483),{footnoteId:s});const o=e[n(500)][n(451)][n(475)](i);let a;if(c)a=e[n(500)][n(495)](o,r);else{a=t[n(465)](n(455));const i=e[n(500)][n(495)](o,a);t[n(461)](i,a)}t[n(472)](a,r)}t[n(461)](r,u,n(463))}l=null})})}}function L(t,e){const o=P;for(const{item:n}of t[o(441)](e))if(n.is(o(473),o(439)))return n;return null}function V(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(473),e(449))&&o[e(513)](n[e(459)](e(496)));return Array[e(517)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=W(),J.insert=U().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,O.ButtonView)),e.add("menuBar:insertFootnote",Y(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function $(){var t=["282372XufIGR","671fSxGIJ","requires","Footnotes","pluginName","81VVCDwO","452470knqbKb","44zYbxzg","isPremiumPlugin","isOfficialPlugin","892984QWuAHm","348787KNAfpK","2281600TPselH","47595GwbOkO","3921470XxtCGy","85SMhref"];return($=function(){return t})()}var Q=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=234]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(571332===-parseInt(e(243))/1+parseInt(e(244))/2+parseInt(e(245))/3*(parseInt(e(239))/4)+parseInt(e(247))/5*(parseInt(e(248))/6)+parseInt(e(246))/7+-parseInt(e(242))/8*(-parseInt(e(237))/9)+parseInt(e(238))/10*(-parseInt(e(249))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(236)](){return Q(235)}static get[Q(234)](){return[I,D,X]}static get[Q(241)](){return!0}static get[Q(240)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=355]})(t,e)}function nt(){const t=["lower-alpha","upper-roman","9121VowbAS","1395392iWOISb","decimal-leading-zero","lower-latin","2898ngPbSZ","decimal","326294sCONfs","40615FaRYdj","47786DkIrSM","upper-alpha","2612592zCKCzz","100ZUObXG","upper-latin","1614CVZMaA","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(298837===parseInt(e(363))/1+parseInt(e(361))/2+-parseInt(e(359))/3+parseInt(e(366))/4*(parseInt(e(362))/5)+parseInt(e(368))/6*(parseInt(e(355))/7)+-parseInt(e(356))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(360),et(357),et(358),et(367),et(370),et(364),et(369),et(371)],st=at;!function(t){const e=at,o=t();for(;;)try{if(574703===-parseInt(e(380))/1*(parseInt(e(399))/2)+-parseInt(e(390))/3*(-parseInt(e(379))/4)+parseInt(e(388))/5+-parseInt(e(384))/6+parseInt(e(395))/7*(parseInt(e(397))/8)+parseInt(e(378))/9*(parseInt(e(387))/10)+-parseInt(e(377))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class rt extends t.Command{[st(396)](){const t=st,{editor:e}=this,o=e[t(400)][t(386)](p)[t(381)]();this[t(401)]=!!o,this[t(392)]=o?.[t(389)](t(394))??null}[st(382)]({value:t}){const e=st,{editor:o}=this,n=o[e(400)][e(386)](p),i=n[e(381)]();i&&it[e(398)](t)&&o[e(393)][e(383)](o=>{const s=e;o[s(391)](s(394),t,i),n[s(385)](o)})}}function at(t,e){const o=ct();return(at=function(t,e){return o[t-=377]})(t,e)}function ct(){const t=["plugins","isEnabled","3242888jfgSiF","1377cwhXof","58556ERRFAo","7spahYh","getFootnotesDefinitionsObjectElement","execute","change","5069034BJfCCs","_updateFootnotesCounters","get","56060CWMwEd","5364385fUfoXk","getAttribute","39BmIkQj","setAttribute","value","model","footnotesListStyle","497BxAZDs","refresh","51528hctzzl","includes","246818ZCisdg"];return(ct=function(){return t})()}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=372]})(t,e)}const ft=lt;function ut(){const t=["5677392boHozO","execute","get","2YRiipF","plugins","isEnabled","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","149916aikipf","1883175nonmMy","20gknsfi","getAttribute","change","4296924MLUjJJ","isInteger","model","23242690ucYAiL","value","setAttribute","refresh","1289750UfVLsg","28UCKuWh","footnotesListStart","1212184pCXCBA"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(806618===parseInt(e(380))/1*(-parseInt(e(385))/2)+-parseInt(e(386))/3+-parseInt(e(387))/4*(-parseInt(e(373))/5)+-parseInt(e(377))/6+parseInt(e(374))/7*(-parseInt(e(376))/8)+-parseInt(e(390))/9+parseInt(e(393))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(372)](){const t=ft,{editor:e}=this,o=e[t(381)][t(379)](p)[t(384)]();this[t(382)]=!!o,this[t(394)]=o?.[t(388)](t(375))??null}[ft(378)]({value:t}){const e=ft,{editor:o}=this,n=o[e(381)][e(379)](p),i=n[e(384)]();i&&Number[e(391)](t)&&o[e(392)][e(389)](o=>{const s=e;o[s(395)](s(375),t,i),n[s(383)](o)})}}const pt=ht;function ht(t,e){const o=bt();return(ht=function(t,e){return o[t-=162]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(410913===parseInt(e(225))/1*(-parseInt(e(173))/2)+-parseInt(e(177))/3*(-parseInt(e(171))/4)+-parseInt(e(223))/5*(parseInt(e(256))/6)+-parseInt(e(183))/7+parseInt(e(213))/8+-parseInt(e(240))/9+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[pt(187)](){return pt(237)}static get[pt(182)](){return[I,p]}static get[pt(248)](){return!0}static get[pt(217)](){return!0}[pt(172)](){const t=pt,{editor:e}=this;e[t(221)][t(246)](t(262),t(203)),e[t(221)][t(246)](t(186),1),e[t(176)][t(205)](t(180),new rt(e)),e[t(176)][t(205)](t(179),new dt(e)),this[t(231)](),this[t(207)](),this[t(245)](),this[t(234)]()}[pt(231)](){const t=pt,{editor:e}=this,{schema:o}=e[t(197)];o[t(257)](t(189),{allowAttributes:[t(178),t(253)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(218)](t(192))[t(205)](e=>{const o=t;e.on(o(202),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(214)]?.[s(251)];r[s(242)](s(229))&&a?.is(s(162),s(189))&&(function(t,e,o,n){const i=s;if(!n[i(167)](e,i(253)))return;let r=1;const a=o[i(215)][i(236)](t,{attributes:i(260)});if(a){const e=Number[i(204)](t[i(209)](i(260)),10);Number[i(201)](e)||(r=e)}!a&&e[i(198)](i(253))||o[i(259)][i(216)](i(253),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(167)](e,i(178)))return;let r=i(203),a=!1;if(o[i(215)][i(236)](t,{attributes:i(222)})){const e={1:i(203),a:i(191),A:i(261),i:i(224),I:i(200)}[t[i(209)](i(222))];e&&(r=e),a=!0}o[i(215)][i(236)](t,{styles:i(199)})&&(r=function(t){const e=i;switch(t){case e(191):return e(188);case e(261):return e(164);default:return t}}(t[i(190)](i(199))),a=!0),!a&&e[i(198)](i(178))||o[i(259)][i(216)](i(178),r,e)}(r,a,n,i))})}),o[t(218)](t(249))[t(205)](e=>{const o=t;e.on(o(184),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;null==r||1===r?n[i(259)][i(169)](i(260),s):n[i(259)][i(216)](i(260),String(r),s)}),e.on(o(208),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;r&&i(203)!==r?n[i(259)][i(254)](i(199),r,s):n[i(259)][i(232)](i(199),s)})})}[pt(234)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(196)][t(163)](p),i=this[t(239)](),s=this[t(193)]();o[t(185)][t(174)](e=>{const r=t,a=o[r(185)][r(244)][r(241)]();let c=!1;for(const t of a){if(r(243)!==t[r(222)]||r(258)===t[r(226)])continue;const n=o[r(250)](t[r(227)][r(219)]);for(const t of n[r(170)]())t.is(r(162),r(189))&&(!t[r(198)](r(253))&&o[r(206)][r(167)](t,r(253))&&(e[r(216)](r(253),s,t),c=!0),!t[r(198)](r(178))&&o[r(206)][r(167)](t,r(178))&&(e[r(216)](r(178),i,t),c=!0))}return c&&n[r(235)](e),c})}[pt(245)](){const t=pt,{editor:e}=this;e[t(196)][t(163)](p)[t(165)](e=>this[t(195)](e))}[pt(239)](){const t=pt;return this[t(255)][t(221)][t(163)](t(262))}[pt(193)](){const t=pt;return this[t(255)][t(221)][t(163)](t(186))}[pt(195)]({container:t,value:e,digits:o}){const n=pt,i=t[n(209)](n(178)),s=t[n(209)](n(253)),r=Math[n(168)](e)+(s??1)-1;switch(i){case n(233):return function(t,e){const o=n;return String(t)[o(212)](e,"0")}(r,Math[n(194)](2,o));case n(191):case n(188):return wt(r,!1);case n(261):case n(164):return wt(r,!0);case n(224):return It(r,!1);case n(200):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(211)](t);return Array[o(252)](n[o(210)]())[o(166)](t=>t.is(o(162),"ol")&&t[o(242)](o(229)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(247)](97+t)+n,i=Math[o(168)]((i-1)/26)}return e?n[o(220)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(){const t=["getChildren","toViewElement","padStart","6345040kMvlTk","modelCursor","consumable","setAttribute","isPremiumPlugin","for","nodeAfter","toUpperCase","config","type","25XKxJpn","lower-roman","1fGATxK","name","position","item","footnotes-list","12534680BWcERA","_defineSchema","removeStyle","decimal-leading-zero","_definePostfixer","_updateFootnotesCounters","consume","FootnotesPropertiesEditing","toLowerCase","_getDefaultListStyle","5324355eChYIt","getChanges","hasClass","insert","differ","_defineFormatter","define","fromCharCode","isOfficialPlugin","downcast","createRangeOn","parent","from","footnotesListStart","setStyle","editor","715806FDETvs","extend","$text","writer","start","upper-alpha","footnotes.footnotesProperties.defaultListStyle","element","get","upper-latin","setFootnoteFormatter","find","checkAttribute","floor","removeAttribute","getItems","848228kDfmkC","init","1138226LGxxWb","registerPostFixer","mapper","commands","3VdeYoD","footnotesListStyle","footnotesStart","footnotesStyle","viewItem","requires","633703XUssmv","attribute:footnotesListStart:footnotesDefinitions","document","footnotes.footnotesProperties.defaultStartIndex","pluginName","lower-latin","footnotesDefinitions","getStyle","lower-alpha","upcast","_getDefaultStartIndex","max","_formatFootnoteListValue","plugins","model","hasAttribute","list-style-type","upper-roman","isNaN","element:ol","decimal","parseInt","add","schema","_defineConverters","attribute:footnotesListStyle:footnotesDefinitions","getAttribute"];return(bt=function(){return t})()}function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(238)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=245]})(t,e)}var Et=xt;function St(){var t=["3322360qhbRQY","2675940eSyvkc","FootnotesProperties","requires","isPremiumPlugin","pluginName","133dzGFHO","4030782GCvMlU","2977265uWBpho","12747320eygUYV","7979461gNGENL","isOfficialPlugin","21784BoYPLB"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(769387===parseInt(e(254))/1*(parseInt(e(247))/2)+-parseInt(e(255))/3+-parseInt(e(248))/4+parseInt(e(256))/5+parseInt(e(249))/6+-parseInt(e(245))/7+parseInt(e(257))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[Et(253)](){return Et(250)}static get[Et(251)](){return[mt,Ft]}static get[Et(246)](){return!0}static get[Et(252)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=395]})(t,e)}function Tt(){var t=["152madaxy","30501qSHgcF","61407pTHlVz","44nhPRUc","1360403VVRuaN","5faIKAN","1zHoqHi","13ZGEQgK","162626JYoVKF","13122NHbceW","530EScDWG","4924380qAmHfx","37261rtfQVT"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(204401===-parseInt(e(398))/1*(parseInt(e(400))/2)+parseInt(e(406))/3*(parseInt(e(395))/4)+-parseInt(e(397))/5*(parseInt(e(401))/6)+-parseInt(e(404))/7*(-parseInt(e(405))/8)+-parseInt(e(407))/9*(-parseInt(e(402))/10)+parseInt(e(396))/11+parseInt(e(403))/12*(-parseInt(e(399))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=227]})(t,e)}function c(){const t=["clear","add","root","position","16393gCIjWy","reset","3519MwVrwJ","element","10084GFzrrn","type","_getElementKey","from","attributes","_trackedElements","getItems","get","length","has","16040KfDnei","10388TOWttf","flat","2561964ubcjLl","564FozGMi","slice","$graveyard","push","1OhvMFQ","delete","50KNChyp","set","nodeAfter","createRangeOn","$text","values","remove","getChanges","insert","rootName","1243473CEUiMd","name","getElementKey","elementName","_elementName","6afyPYU","_model","4462129NjvvpQ","1085mpquJE"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(501439===parseInt(e(253))/1*(-parseInt(e(235))/2)+-parseInt(e(248))/3+-parseInt(e(246))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(272))/7)+-parseInt(e(245))/8*(-parseInt(e(233))/9)+parseInt(e(255))/10*(-parseInt(e(265))/11)+-parseInt(e(249))/12*(parseInt(e(231))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(271)];[r(269)];[r(237)];[r(240)]=new Map;constructor(t,e){const o=r;this[o(271)]=t,this[o(269)]=e[o(268)],this[o(237)]=e[o(267)]}[r(232)](){const t=r;this[t(240)][t(227)]()}[r(262)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(263)===i[e(236)]&&e(259)!==i[e(266)]&&i[e(230)][e(257)]){const t=this[e(271)][e(258)](i[e(230)][e(257)]);for(const o of t[e(241)]()){if(!o.is(e(234),this[e(269)]))continue;const t=this[e(237)](o);n[e(244)](t)||n[e(256)](t,[]),n[e(242)](t)[e(252)](o)}}if(e(261)===i[e(236)]&&i[e(266)]===this[e(269)]){const t=this[e(237)]({getAttribute:t=>i[e(239)][e(242)](t)});o[e(228)](t)}}for(const[t,n]of this[e(240)])e(251)===n[e(229)][e(264)]&&o[e(228)](t);for(const t of o)this[e(240)][e(254)](t);for(const[t,o]of n)this[e(240)][e(256)](t,o[o[e(243)]-1]);const i=new Set;for(const[t,s]of n)o[e(244)](t)&&(i[e(228)](s[0]),s[e(243)]>1?n[e(256)](t,s[e(250)](1)):n[e(254)](t),o[e(254)](t));return{removed:Array[e(238)](o),inserted:Array[e(238)](n[e(260)]())[e(247)](),moved:Array[e(238)](i)}}}const u=f;function f(t,e){const o=p();return(f=function(t,e){return o[t-=151]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(548188===-parseInt(e(151))/1+parseInt(e(224))/2+-parseInt(e(235))/3+parseInt(e(160))/4+parseInt(e(219))/5*(parseInt(e(211))/6)+parseInt(e(231))/7*(parseInt(e(227))/8)+parseInt(e(192))/9*(-parseInt(e(246))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[u(228)]=[];[u(207)]=null;[u(187)]=null;[u(208)];[u(161)];[u(238)];static get[u(240)](){return u(245)}static get[u(216)](){return!0}static get[u(242)](){return!0}constructor(t){const e=u;super(t),this[e(208)]=new l(this[e(248)][e(165)],{elementName:e(164),getElementKey:()=>e(226)}),this[e(161)]=new l(this[e(248)][e(165)],{elementName:e(174),getElementKey:t=>t[e(209)](e(183))}),this[e(238)]=new l(this[e(248)][e(165)],{elementName:e(249),getElementKey:t=>t[e(209)](e(183))})}[u(176)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(179)][t(157)](e=>{const n=t,i=o[n(179)][n(250)][n(225)]();let s=!1;return this[n(199)](e,i)&&(s=!0),this[n(170)](e,i)&&(s=!0),this[n(190)](e,i)&&(s=!0),this[n(251)](e)&&(s=!0),this[n(167)](e)&&(s=!0),this[n(244)](e)&&(s=!0),s}),this[t(177)](o[t(179)],t(185),()=>{const e=t;o[e(197)]({isUndoable:!1},t=>{this[e(223)](t)})},{priority:t(234)}),this[t(177)](n,t(194),()=>{const e=t;this[e(228)]=[],this[e(208)][e(229)](),this[e(161)][e(229)](),this[e(238)][e(229)]()},{priority:t(184)})}[u(198)](){return this[u(207)]}[u(222)](t){const e=u;return this[e(228)][e(155)](e=>e.id===t)||null}[u(220)](){const t=u;return Array[t(218)](this[t(228)])}[u(204)](){return this[u(187)]}[u(202)](t){this[u(187)]=t}[u(153)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(228)][o(221)];i++)this[o(214)](t,i)&&(n=!0);return n}[u(169)](t,e){const o=u,n=t[o(230)](o(164),{});return t[o(241)](n,e),this[o(207)]=n,n}[u(223)](t){const e=u;if(!this[e(228)][e(221)]||this[e(207)])return;const o=this[e(228)][0][e(171)][e(201)],n=this[e(169)](t,o);for(const o of this[e(228)])o[e(189)][e(236)]||t[e(215)](o[e(189)],n,e(186));this[e(153)](t)}[u(199)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(208)][o(225)](e);if(r[o(221)]&&(this[o(207)]=r[0]),i[o(221)])if(i[o(221)]>1||this[o(207)]&&i[o(162)](t=>t!==this[o(207)])){const e=t[o(230)](o(164),{}),s=[];this[o(207)]&&s[o(154)](this[o(207)]),s[o(154)](...i),t[o(215)](e,s[0],o(232));for(const n of s)t[o(158)](t[o(239)](n),t[o(210)](e,o(186))),t[o(203)](n);this[o(207)]=e,this[o(153)](t),n=!0}else this[o(207)]=i[0];if(s[o(221)]&&o(237)===this[o(207)]?.[o(201)][o(195)]){for(const e of this[o(228)])t[o(203)](e[o(171)]),n=!0;this[o(228)]=[],this[o(207)]=null}return n}[u(170)](t,e){const o=u;let n=!1;const i=this[o(248)][o(188)][o(233)](o(196)),{inserted:s,moved:r}=this[o(238)][o(225)](e);for(const e of[...r,...s]){const s=e[o(209)](o(183)),r=this[o(222)](s);r&&(r[o(189)]=e),h(t,i,e)&&(n=!0)}return n}[u(190)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(161)][o(225)](e);for(const e of i)this[o(213)](t,e)&&(n=!0);for(const e of s)this[o(163)](t,e)&&(n=!0);for(const e of r)this[o(173)](t,e)&&(n=!0);return n}[u(167)](t){const e=u;if(!this[e(207)])return!1;let o=!1;if(this[e(207)][e(166)]!==this[e(228)][e(221)]){const n=[];for(const t of this[e(207)][e(193)]()){const i=t[e(209)](e(183));this[e(222)](i)||(n[e(243)](t),o=!0)}for(const o of n)t[e(203)](o)}const n=new Set,i=[];for(const t of this[e(207)][e(193)]()){const s=t[e(209)](e(183));n[e(159)](s)?(i[e(243)](t),o=!0):n[e(156)](s)}for(const o of i)t[e(203)](o);return this[e(207)][e(166)]||(t[e(203)](this[e(207)]),this[e(207)]=null,o=!0),o}[u(163)](t,e){const o=u;if(this[o(228)][o(155)](t=>t[o(171)]===e))return!1;let n=!1;const i=e[o(209)](o(183)),s=this[o(228)][o(152)](t=>t.id===i);-1!==s&&(t[o(203)](this[o(228)][s][o(171)]),this[o(228)][o(217)](s,1),n=!0);let r=this[o(207)]?function(t,e){const n=o;for(const o of t[n(193)]())if(o[n(209)](n(183))===e)return o;return null}(this[o(207)],i):null;r||(r=t[o(230)](o(249),{footnoteId:i}),this[o(207)]&&(t[o(215)](r,this[o(207)],o(186)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(248)][o(165)],this[o(228)],e);this[o(228)][o(217)](c,0,a);let l=c;return-1!==s&&(l=Math[o(212)](c,s)),this[o(153)](t,l)&&(n=!0),n}[u(213)](t,e){const o=u,n=this[o(228)][o(152)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(228)][n];return o(237)!==s[o(189)][o(201)][o(195)]&&(t[o(203)](s[o(189)]),i=!0),this[o(228)][o(217)](n,1),this[o(153)](t,n)&&(i=!0),i}[u(173)](t,e){const o=u,n=e[o(209)](o(183)),i=this[o(228)][o(152)](t=>t.id===n),s=this[o(228)][i];let r=!1;s[o(171)]=e,this[o(228)][o(217)](i,1);const a=m(this[o(248)][o(165)],this[o(228)],e);return this[o(228)][o(217)](a,0,s),this[o(153)](t,Math[o(212)](i,a))&&(r=!0),r}[u(214)](t,e){const o=u;if(!this[o(207)])return!1;const n=this[o(228)][e];let i;return i=this[o(187)]?this[o(187)]({footnote:n,container:this[o(207)],digits:String(this[o(228)][o(221)])[o(221)],value:e+1}):String(e+1),n[o(171)][o(209)](o(180))!=i&&(t[o(206)](o(180),i,n[o(171)]),!0)}[u(244)](t){const e=u;if(!this[e(207)]||this[e(228)][e(221)]<2)return!1;if(function(t,o){const n=e;if(t[n(221)]!==o[n(221)])return!1;for(let e=0;e<t[n(221)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(228)][e(168)](t=>t.id),Array[e(218)](this[e(207)][e(193)]())[e(168)](t=>t[e(209)](e(183)))))return!1;let o=!1;for(let n=0;n<this[e(228)][e(221)];n++){const i=this[e(228)][n],s=t[e(200)](i[e(189)]),r=t[e(210)](this[e(207)],n);s[e(182)](r)||(t[e(158)](t[e(181)](i[e(189)]),r),o=!0)}return o}[u(251)](t){const e=u;if(!this[e(228)][e(221)])return!1;const{model:o}=this[e(248)];let n=!1;for(let i=0;i<this[e(228)][e(221)]-1;i++){const s=this[e(228)][i],r=this[e(228)][i+1],a=o[e(200)](s[e(171)]),c=o[e(200)](r[e(171)]);e(205)===a[e(175)](c)&&(this[e(173)](t,s[e(171)]),i=-1,n=!0)}return n}}function p(){const t=["parent","$graveyard","_footnoteDefsTracker","createRangeIn","pluginName","append","isPremiumPlugin","unshift","_sortFootnoteDefinitions","FootnotesTracker","120wFwEin","indexOf","editor","footnoteDefinition","differ","_ensureFootnotesReferencesHaveProperOrder","178396OMZjbv","findIndex","_updateFootnotesCounters","push","find","add","registerPostFixer","move","has","1074292xZQhAt","_footnoteRefsTracker","some","_handleInsertedFootnoteReference","footnotesDefinitions","model","childCount","_handleFootnotesDefinitionsObjectSync","map","_insertEmptyFootnotesDefinitionsContainer","_handleFootnoteDefinitionsChanges","reference","getRootNames","_handleMovedFootnoteReference","footnoteRef","compareWith","init","listenTo","paragraph","document","footnoteCounter","createRangeOn","isEqual","footnoteId","high","change:data","end","_footnoteFormatter","config","definition","_handleFootnoteReferencesChanges","footnoteInlineContent","885483ZtrHMi","getChildren","set","rootName","footnotes.multiBlock","enqueueChange","getFootnotesDefinitionsObjectElement","_handleFootnotesDefinitionsObjectChanges","createPositionBefore","root","setFootnoteFormatter","remove","getFootnotesFormatter","after","setAttribute","_footnotesDefinitions","_footnoteDefsContainerTracker","getAttribute","createPositionAt","6120924DtJCuP","min","_handleRemoveFootnoteReferenceById","_updateFootnoteRefCounter","insert","isOfficialPlugin","splice","from","5QiAMuN","getFootnotes","length","getFootnote","_ensureFootnotesDefinitionsContainerExists","121600Vcfkkw","getChanges","singleton","2456LGVUAf","_footnotes","reset","createElement","16170PmKloX","before","get","low","454407TViKvN"];return(p=function(){return t})()}function h(t,e,o){const n=u;if(o[n(166)])return!1;const i=n(e?178:191);return t[n(215)](t[n(230)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(221)])return 0;const i=t[n(200)](o);for(let o=0;o<e[n(221)];o++){const s=e[o],r=t[n(200)](s[n(171)]);if(n(232)===i[n(175)](r))return o}const s=o[n(201)];let r=-1;for(let t=e[n(221)]-1;t>=0;t--)if(e[t][n(171)][n(201)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(179)][n(172)](),c=a[n(247)](s[n(195)]),l=a[c+1];if(l)for(let t=0;t<e[n(221)];t++)if(e[t][n(171)][n(201)][n(195)]===l)return t;return e[n(221)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=210]})(t,e)}function y(){const t=["121005JKWMpK","footnoteRef","isEnabled","string","insertObject","FootnotesEditing","change","105352WoGtrx","164QtZhgA","refresh","insert-footnote-command-executed-with-invalid-id","end","editor","1232590JGLJKZ","plugins","363385BwGbVl","test","model","3160InStbX","checkChild","document","_getPositionToInsertFootnote","isBlock","2454NPMIjM","getItems","719VUAvQl","execute","length","105qBwqCl","_moveSelectionToFootnoteDefinition","footnoteId","27LccbkG","12ZEBFts","isObject","selection","get","createElement","getFirstRange","1839444AReaiZ"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(299681===-parseInt(e(240))/1*(parseInt(e(223))/2)+-parseInt(e(215))/3+-parseInt(e(214))/4+-parseInt(e(233))/5*(-parseInt(e(238))/6)+parseInt(e(243))/7*(parseInt(e(222))/8)+-parseInt(e(246))/9*(-parseInt(e(228))/10)+-parseInt(e(230))/11*(-parseInt(e(247))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(224)](){const t=g,e=this[t(227)][t(232)][t(235)][t(210)],o=this[t(236)](e);this[t(217)]=!!o}[g(241)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(235)],r=this[e(236)](s);if(!r)return;const a=o[e(229)][e(211)](e(220)),c=t?.[e(245)]??(0,i.uid)();!function(t){const o=e;return o(218)==typeof t&&t[o(242)]>0&&!/\s/[o(231)](t)&&!/^\d/[o(231)](t)}(c)?(0,i.logWarning)(e(225)):(n[e(221)](t=>{const o=e,i=t[o(212)](o(216),{footnoteId:c});n[o(219)](i,r,null)}),a[e(244)](c))}[g(236)](t){const e=g,{model:o}=this[e(227)],{schema:n}=o,i=t[e(213)]();for(const t of i[e(239)]())if(n[e(237)](t)||n[e(248)](t))return null;const s=i[e(226)];return n[e(234)](s,e(216))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766448e3;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const T=P;function P(t,e){const o=_();return(P=function(t,e){return o[t-=183]})(t,e)}function _(){const t=["_defineClipboardIntegration","remove","hasAttribute","add","drop","definition","getFirstRange","create","getChildren","isOfficialPlugin","find","selection","isPremiumPlugin","8707303qaidok","editor","sourceEditorId","6886376LuVLXr","keys","getFootnotesDefinitionsObjectElement","content","push","from","init","FootnotesClipboard","_insertEmptyFootnotesDefinitionsContainer","change","toData","16SmEjGq","5689854AGqEOL","footnoteId","string","footnoteDefinition","htmlProcessor","_handlePasteFootnotesDefinitions","setData","reduce","241069VaRlZY","footnoteInlineContent","10gUZwpU","element","config","7lVEbdu","footnotesDefinitions","toView","get","footnotes.multiBlock","createElement","dataTransfer","cloneElement","stringify","5266475DhZYxU","root","getAttribute","method","8kuRaZK","createRangeIn","flatMap","listenTo","footnoteRef","length","append","pluginName","getFootnotes","parse","_handleCopyFootnotesDefinitions","requires","setAttribute","outputTransformation","getRanges","getSelectedBlocks","includes","insert","getData","application/ckeditor5-footnotes","getFootnote","document","16820874zqlQzT","clipboardInput","data","5997126LvMMgJ","editing","toModel","contentInsertion","entries","end"];return(_=function(){return t})()}!function(t){const e=P,o=t();for(;;)try{if(972389===parseInt(e(196))/1*(parseInt(e(187))/2)+parseInt(e(188))/3+-parseInt(e(261))/4+-parseInt(e(210))/5+-parseInt(e(239))/6*(-parseInt(e(201))/7)+parseInt(e(214))/8*(-parseInt(e(236))/9)+parseInt(e(198))/10*(parseInt(e(258))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[T(221)](){return T(183)}static get[T(225)](){return[v,A.ClipboardPipeline]}static get[T(254)](){return!0}static get[T(257)](){return!0}[T(267)](){this[T(245)]()}[T(245)](){const t=T;this[t(224)](),this[t(193)]()}[T(224)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(204)](A.ClipboardPipeline),s=o[t(204)](d);this[t(217)](i,t(227),(o,i)=>{const r=t,a=V(n[r(215)](i[r(264)]));if(!a[r(219)])return;const c=s[r(222)](),l=a[r(195)]((t,o)=>{const n=r,i=c[n(255)](t=>t.id===o);if(i){const o=e[n(238)][n(203)](i[n(250)],{isClipboardPipeline:!0}),s=e[n(238)][n(192)][n(186)](o);t[i.id]=s}return t},Object[r(252)](null));i[r(207)][r(194)](r(233),JSON[r(209)](l))})}[T(193)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(240)],r=n[t(204)](A.ClipboardPipeline),a=n[t(204)](d),c=e[t(200)][t(204)](t(205));let l=null;this[t(217)](s[t(235)],t(237),(e,o)=>{const n=t,i=o[n(207)][n(232)](n(233));l=i?JSON[n(223)](i):null}),this[t(217)](r,t(242),(n,s)=>{const r=t,u=s[r(260)]===this[r(259)].id;u&&r(249)===s[r(213)]||o[r(185)](t=>{const n=r;let f=a[n(263)]();const d=!!f&&Array[n(266)](o[n(235)][n(256)][n(229)]())[n(230)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(199),e(218)))return!0;return!1}(o[n(215)](s[n(264)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(252)](null);for(const e of i[o(253)]())e.is(o(199),o(191))&&e[o(247)](o(189))&&(s[e[o(212)](o(189))]=t[o(208)](e,!0));return Object[o(262)](s)[o(219)]?s:null}(t,s[n(264)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(215)](e))n.is(o(199),o(202))&&i[o(265)](n);for(const e of i)t[o(246)](e)}(t,s[n(264)]),!l)return;const{selection:p}=o[n(235)],h=p[n(251)]()[n(211)];f&&!d||(f=L(t,s[n(264)]),f||=a[n(184)](t,h));const m=Array[n(266)](p[n(228)]())[n(216)](V),g=function(t,e,o){const s=n,r=Object[s(252)](null);for(const{item:n}of t[s(215)](e))if(n.is(s(199),s(218))){const e=n[s(212)](s(189));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(226)](s(189),r[e],n)}return r}(t,s[n(264)],t=>{const e=n;return!u||!!a[e(234)](t)&&!m[e(230)](t)});for(const[o,i]of Object[n(243)](l)){const s=g[o]||o;let r;if(n(190)!=typeof i)r=i,s!==o&&t[n(226)](n(189),s,r);else{r=t[n(206)](n(191),{footnoteId:s});const o=e[n(238)][n(192)][n(203)](i);let a;if(c)a=e[n(238)][n(241)](o,r);else{a=t[n(206)](n(197));const i=e[n(238)][n(241)](o,a);t[n(231)](i,a)}t[n(220)](a,r)}t[n(231)](r,f,n(244))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(215)](e))if(n.is(o(199),o(202)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(199),e(218))&&o[e(248)](n[e(212)](e(189)));return Array[e(266)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),U=o.n(B),z=o(123),G=o.n(z),W=o(741),q=o.n(W),H=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=G(),Q.insert=U().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=q();K()(H.A,Q);H.A&&H.A.locals&&H.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=$;function J(){var t=["pluginName","2967309FXXcwR","requires","Footnotes","1400AXGDQN","1691922GdVqmG","isOfficialPlugin","1015264WbHcVH","8SzPZDT","isPremiumPlugin","40HENLYp","75053OnyGVp","3joVqzK","1hMHcTU","743790gnCBic","6216679XHzUiT","12497520PpayXP"];return(J=function(){return t})()}function $(t,e){var o=J();return($=function(t,e){return o[t-=334]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(670825===-parseInt(e(344))/1*(parseInt(e(336))/2)+parseInt(e(343))/3*(-parseInt(e(338))/4)+parseInt(e(341))/5*(parseInt(e(345))/6)+-parseInt(e(346))/7+-parseInt(e(339))/8*(parseInt(e(349))/9)+parseInt(e(335))/10*(parseInt(e(342))/11)+parseInt(e(347))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class tt extends t.Plugin{static get[Y(348)](){return Y(334)}static get[Y(350)](){return[v,D,Z]}static get[Y(337)](){return!0}static get[Y(340)](){return!0}}function et(t,e){const o=it();return(et=function(t,e){return o[t-=321]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(965920===-parseInt(e(324))/1+parseInt(e(337))/2+-parseInt(e(332))/3+-parseInt(e(333))/4*(-parseInt(e(322))/5)+parseInt(e(329))/6*(-parseInt(e(331))/7)+-parseInt(e(327))/8*(parseInt(e(323))/9)+parseInt(e(338))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[ot(326),ot(334),ot(330),ot(328),ot(336),ot(321),ot(335),ot(325)];function it(){const t=["decimal-leading-zero","lower-roman","lower-alpha","1392660YYtiDi","14616290lfYssL","upper-alpha","55UjVfEs","4103937GbaMMg","1737680ApyKWl","upper-roman","decimal","8ZQBuWf","upper-latin","1267212uzdBfM","lower-latin","7kooQdG","1621791qQqAdV","637612bSozzw"];return(it=function(){return t})()}function st(t,e){const o=at();return(st=function(t,e){return o[t-=480]})(t,e)}const rt=st;function at(){const t=["isEnabled","getFootnotesDefinitionsObjectElement","40thciuy","plugins","836436GpWsCL","model","setAttribute","getAttribute","27qSssox","get","203557uDmtRN","106WPrGqG","57123zBYOsQ","change","footnotesListStyle","execute","4644269rzofIX","13835150ckMZYQ","value","4423500iHqxgi","includes","_updateFootnotesCounters","1466288YucefZ","refresh"];return(at=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(992798===-parseInt(e(491))/1+parseInt(e(492))/2*(-parseInt(e(493))/3)+parseInt(e(485))/4*(parseInt(e(483))/5)+-parseInt(e(500))/6+-parseInt(e(497))/7+-parseInt(e(503))/8*(-parseInt(e(489))/9)+parseInt(e(498))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[rt(480)](){const t=rt,{editor:e}=this,o=e[t(484)][t(490)](d)[t(482)]();this[t(481)]=!!o,this[t(499)]=o?.[t(488)](t(495))??null}[rt(496)]({value:t}){const e=rt,{editor:o}=this,n=o[e(484)][e(490)](d),i=n[e(482)]();i&&nt[e(501)](t)&&o[e(486)][e(494)](o=>{const s=e;o[s(487)](s(495),t,i),n[s(502)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=318]})(t,e)}function ft(){const t=["2497005fGEUvn","change","46075NGmPVb","2378673OsNyQs","getFootnotesDefinitionsObjectElement","5812389VISTRZ","get","1QsyfoJ","footnotesListStart","setAttribute","execute","model","6TvAmBk","741124wkmwZs","isEnabled","11431088wUltvb","306gaBHxo","value","_updateFootnotesCounters","isInteger","30TGntMM","getAttribute","plugins","1824620woRXXo","refresh"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(735896===parseInt(e(321))/1*(parseInt(e(327))/2)+parseInt(e(326))/3*(-parseInt(e(337))/4)+-parseInt(e(341))/5*(-parseInt(e(330))/6)+-parseInt(e(339))/7+parseInt(e(329))/8+parseInt(e(342))/9*(-parseInt(e(334))/10)+parseInt(e(319))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(338)](){const t=lt,{editor:e}=this,o=e[t(336)][t(320)](d)[t(318)]();this[t(328)]=!!o,this[t(331)]=o?.[t(335)](t(322))??null}[lt(324)]({value:t}){const e=lt,{editor:o}=this,n=o[e(336)][e(320)](d),i=n[e(318)]();i&&Number[e(333)](t)&&o[e(325)][e(340)](o=>{const s=e;o[s(323)](s(322),t,i),n[s(332)](o)})}}const pt=yt;function ht(){const t=["_getDefaultListStyle","21gXIAOS","footnotesListStart","getStyle","init","_getDefaultStartIndex","3729376yfiIur","floor","removeStyle","footnotes-list","downcast","isPremiumPlugin","define","extend","pluginName","_defineFormatter","7292936pADTTc","1094328CastFF","attribute:footnotesListStart:footnotesDefinitions","hasClass","editor","setAttribute","parseInt","footnotesStart","upper-alpha","consume","name","model","find","writer","270970AeWdQf","397781zNIYgz","requires","footnotesListStyle","_definePostfixer","padStart","1179xJLskY","getItems","footnotes.footnotesProperties.defaultListStyle","element","registerPostFixer","start","commands","toViewElement","plugins","5USRkWG","$text","toUpperCase","get","createRangeOn","fromCharCode","consumable","parent","upcast","isNaN","schema","list-style-type","attribute:footnotesListStyle:footnotesDefinitions","getAttribute","decimal-leading-zero","position","from","footnotesStyle","item","_formatFootnoteListValue","toLowerCase","max","7702350MsTNFv","hasAttribute","lower-alpha","isOfficialPlugin","_updateFootnotesCounters","upper-latin","for","add","footnotes.footnotesProperties.defaultStartIndex","_defineSchema","FootnotesPropertiesEditing","insert","getChanges","removeAttribute","376118roXmOk","viewItem","upper-roman","lower-roman","setFootnoteFormatter","lower-latin","modelCursor","element:ol","mapper","type","setStyle","footnotesDefinitions","getChildren","decimal","nodeAfter","_defineConverters","config","differ","checkAttribute","document"];return(ht=function(){return t})()}!function(t){const e=yt,o=t();for(;;)try{if(853882===-parseInt(e(233))/1+-parseInt(e(182))/2*(parseInt(e(203))/3)+-parseInt(e(219))/4+-parseInt(e(146))/5*(parseInt(e(168))/6)+parseInt(e(218))/7+-parseInt(e(208))/8+-parseInt(e(238))/9*(-parseInt(e(232))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(216)](){return pt(178)}static get[pt(234)](){return[v,d]}static get[pt(171)](){return!0}static get[pt(213)](){return!0}[pt(206)](){const t=pt,{editor:e}=this;e[t(198)][t(214)](t(240),t(195)),e[t(198)][t(214)](t(176),1),e[t(244)][t(175)](t(163),new ct(e)),e[t(244)][t(175)](t(225),new dt(e)),this[t(177)](),this[t(197)](),this[t(217)](),this[t(236)]()}[pt(177)](){const t=pt,{editor:e}=this,{schema:o}=e[t(229)];o[t(215)](t(193),{allowAttributes:[t(235),t(204)]})}[pt(197)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(174)](t(154))[t(175)](e=>{const o=t;e.on(o(189),(t,e,n)=>{const s=o,r=e[s(183)],a=e[s(188)]?.[s(153)];r[s(221)](s(211))&&a?.is(s(241),s(193))&&(function(t,e,o,n){const i=s;if(!n[i(200)](e,i(204)))return;let r=1;const a=o[i(152)][i(227)](t,{attributes:i(243)});if(a){const e=Number[i(224)](t[i(159)](i(243)),10);Number[i(155)](e)||(r=e)}!a&&e[i(169)](i(204))||o[i(231)][i(223)](i(204),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(200)](e,i(235)))return;let r=i(195),a=!1;if(o[i(152)][i(227)](t,{attributes:i(191)})){const e={1:i(195),a:i(170),A:i(226),i:i(185),I:i(184)}[t[i(159)](i(191))];e&&(r=e),a=!0}o[i(152)][i(227)](t,{styles:i(157)})&&(r=function(t){const e=i;switch(t){case e(170):return e(187);case e(226):return e(173);default:return t}}(t[i(205)](i(157))),a=!0),!a&&e[i(169)](i(235))||o[i(231)][i(223)](i(235),r,e)}(r,a,n,i))})}),o[t(174)](t(212))[t(175)](e=>{const o=t;e.on(o(220),(t,e,n)=>{const i=o;if(!n[i(152)][i(227)](e[i(164)],t[i(228)]))return;const s=gt(e[i(164)],n[i(190)]),{attributeNewValue:r}=e;null==r||1===r?n[i(231)][i(181)](i(243),s):n[i(231)][i(223)](i(243),String(r),s)}),e.on(o(158),(t,e,n)=>{const i=o;if(!n[i(152)][i(227)](e[i(164)],t[i(228)]))return;const s=gt(e[i(164)],n[i(190)]),{attributeNewValue:r}=e;r&&i(195)!==r?n[i(231)][i(192)](i(157),r,s):n[i(231)][i(210)](i(157),s)})})}[pt(236)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(145)][t(149)](d),i=this[t(202)](),s=this[t(207)]();o[t(201)][t(242)](e=>{const r=t,a=o[r(201)][r(199)][r(180)]();let c=!1;for(const t of a){if(r(179)!==t[r(191)]||r(147)===t[r(228)])continue;const n=o[r(150)](t[r(161)][r(196)]);for(const t of n[r(239)]())t.is(r(241),r(193))&&(!t[r(169)](r(204))&&o[r(156)][r(200)](t,r(204))&&(e[r(223)](r(204),s,t),c=!0),!t[r(169)](r(235))&&o[r(156)][r(200)](t,r(235))&&(e[r(223)](r(235),i,t),c=!0))}return c&&n[r(172)](e),c})}[pt(217)](){const t=pt,{editor:e}=this;e[t(145)][t(149)](d)[t(186)](e=>this[t(165)](e))}[pt(202)](){const t=pt;return this[t(222)][t(198)][t(149)](t(240))}[pt(207)](){const t=pt;return this[t(222)][t(198)][t(149)](t(176))}[pt(165)]({container:t,value:e,digits:o}){const n=pt,i=t[n(159)](n(235)),s=t[n(159)](n(204)),r=Math[n(209)](e)+(s??1)-1;switch(i){case n(160):return function(t,e){const o=n;return String(t)[o(237)](e,"0")}(r,Math[n(167)](2,o));case n(170):case n(187):return wt(r,!1);case n(226):case n(173):return wt(r,!0);case n(185):return vt(r,!1);case n(184):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(245)](t);return Array[o(162)](n[o(194)]())[o(230)](t=>t.is(o(241),"ol")&&t[o(221)](o(211)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(151)](97+t)+n,i=Math[o(209)]((i-1)/26)}return e?n[o(148)]():n}function yt(t,e){const o=ht();return(yt=function(t,e){return o[t-=145]})(t,e)}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(166)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=G(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["126130XxQdXF","isPremiumPlugin","355364GUcArt","10988604aBKFGJ","FootnotesProperties","3556pSPdlE","196HHvLQn","372REbhzb","20qaOTRt","pluginName","isOfficialPlugin","15hYLluv","4366868plWiCv","13688uuHICu","11109180pQqhQs","5957RDsKaZ","requires"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=148]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(874635===-parseInt(e(149))/1*(parseInt(e(148))/2)+parseInt(e(154))/3*(-parseInt(e(162))/4)+-parseInt(e(160))/5*(-parseInt(e(150))/6)+-parseInt(e(158))/7*(-parseInt(e(156))/8)+-parseInt(e(163))/9+-parseInt(e(151))/10*(-parseInt(e(155))/11)+-parseInt(e(157))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class At extends t.Plugin{static get[xt(152)](){return xt(164)}static get[xt(159)](){return[mt,Ft]}static get[xt(153)](){return!0}static get[xt(161)](){return!0}}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=238]})(t,e)}function Pt(){var t=["3620676JWkpPQ","2641356YtrDdq","10oVlFBG","2998266SyhGQM","10571lgLVhj","8kyVycb","21KLlFeS","12607857ZYVKii","11MGrpwr","220UiDvzC","1360855beFnGj","11241864dUQhcr"];return(Pt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(782388===-parseInt(e(247))/1*(-parseInt(e(240))/2)+parseInt(e(244))/3+-parseInt(e(248))/4*(-parseInt(e(241))/5)+parseInt(e(246))/6*(-parseInt(e(249))/7)+-parseInt(e(242))/8+parseInt(e(238))/9*(parseInt(e(245))/10)+-parseInt(e(239))/11*(parseInt(e(243))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|