@ckeditor/ckeditor5-footnotes 47.5.0 → 47.6.0-alpha.1
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-2026, 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 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:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>p,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=328]})(t,e)}const a=r;function c(){const t=["$graveyard","getItems","1133217EKDatj","length","6060780IgosgN","3XmApba","type","reset","74586ZWJhWd","add","insert","getElementKey","delete","653612qLgKpl","276268oGnKZp","15RAefZx","elementName","_model","45oohCQE","_elementName","nodeAfter","has","from","push","rootName","clear","_getElementKey","getChanges","22771524yMRZoq","1600072JJTgVq","$text","attributes","set","name","70ETZTiZ","root","flat","14ZiorMB","get","position","_trackedElements","element","values","slice","createRangeOn","remove"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(449254===parseInt(e(357))/1*(-parseInt(e(366))/2)+-parseInt(e(367))/3*(-parseInt(e(365))/4)+parseInt(e(370))/5*(parseInt(e(360))/6)+parseInt(e(343))/7*(parseInt(e(335))/8)+parseInt(e(354))/9*(parseInt(e(340))/10)+parseInt(e(356))/11+-parseInt(e(334))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(369)];[a(371)];[a(332)];[a(346)]=new Map;constructor(t,e){const o=a;this[o(369)]=t,this[o(371)]=e[o(368)],this[o(332)]=e[o(363)]}[a(359)](){const t=a;this[t(346)][t(331)]()}[a(333)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(358)]&&e(336)!==i[e(339)]&&i[e(345)][e(372)]){const t=this[e(369)][e(350)](i[e(345)][e(372)]);for(const o of t[e(353)]()){if(!o.is(e(347),this[e(371)]))continue;const t=this[e(332)](o);n[e(373)](t)||n[e(338)](t,[]),n[e(344)](t)[e(329)](o)}}if(e(351)===i[e(358)]&&i[e(339)]===this[e(371)]){const t=this[e(332)]({getAttribute:t=>i[e(337)][e(344)](t)});o[e(361)](t)}}for(const[t,n]of this[e(346)])e(352)===n[e(341)][e(330)]&&o[e(361)](t);for(const t of o)this[e(346)][e(364)](t);for(const[t,o]of n)this[e(346)][e(338)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(373)](t)&&(i[e(361)](s[0]),s[e(355)]>1?n[e(338)](t,s[e(349)](1)):n[e(364)](t),o[e(364)](t));return{removed:Array[e(328)](o),inserted:Array[e(328)](n[e(348)]())[e(342)](),moved:Array[e(328)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=353]})(t,e)}function d(){const t=["before","18yPBtso","createPositionAt","setAttribute","setFootnoteFormatter","low","footnoteCounter","compareWith","createRangeIn","createRangeOn","pluginName","2191pVPfYX","init","_footnoteDefsContainerTracker","_footnotes","high","has","push","rootName","_insertEmptyFootnotesDefinitionsContainer","getFootnotesDefinitionsObjectElement","_handleInsertedFootnoteReference","length","editor","51352yqpoCW","_footnotesDefinitions","some","getFootnote","min","isOfficialPlugin","get","_ensureFootnotesDefinitionsContainerExists","getAttribute","_footnoteDefsTracker","set","footnoteDefinition","_handleFootnotesDefinitionsObjectSync","_handleMovedFootnoteReference","getFootnotes","config","find","insert","findIndex","model","_handleFootnoteReferencesChanges","createElement","map","getFootnotesFormatter","document","change:data","reset","$graveyard","316564cKccQD","isPremiumPlugin","_handleFootnoteDefinitionsChanges","footnoteRef","83235XzVvdv","getChildren","getChanges","singleton","_handleRemoveFootnoteReferenceById","differ","_updateFootnoteRefCounter","enqueueChange","add","move","FootnotesTracker","paragraph","_footnoteFormatter","root","619060GOusut","indexOf","reference","_sortFootnoteDefinitions","footnoteId","from","parent","footnotes.multiBlock","registerPostFixer","listenTo","_handleFootnotesDefinitionsObjectChanges","append","footnotesDefinitions","3479110EDqIJX","footnoteInlineContent","createPositionBefore","_footnoteRefsTracker","8984CKsgYR","18gnbhln","after","remove","childCount","splice","unshift","_updateFootnotesCounters","isEqual","end","912948eJxMQO","getRootNames","definition","_ensureFootnotesReferencesHaveProperOrder"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(192244===-parseInt(e(390))/1+parseInt(e(426))/2*(-parseInt(e(394))/3)+-parseInt(e(362))/4+-parseInt(e(408))/5+-parseInt(e(435))/6+parseInt(e(450))/7*(parseInt(e(425))/8)+-parseInt(e(440))/9*(-parseInt(e(421))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[u(453)]=[];[u(363)]=null;[u(406)]=null;[u(452)];[u(424)];[u(371)];static get[u(449)](){return u(404)}static get[u(367)](){return!0}static get[u(391)](){return!0}constructor(t){const e=u;super(t),this[e(452)]=new l(this[e(361)][e(381)],{elementName:e(420),getElementKey:()=>e(397)}),this[e(424)]=new l(this[e(361)][e(381)],{elementName:e(393),getElementKey:t=>t[e(370)](e(412))}),this[e(371)]=new l(this[e(361)][e(381)],{elementName:e(373),getElementKey:t=>t[e(370)](e(412))})}[u(451)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(386)][t(416)](e=>{const n=t,i=o[n(386)][n(399)][n(396)]();let s=!1;return this[n(418)](e,i)&&(s=!0),this[n(392)](e,i)&&(s=!0),this[n(382)](e,i)&&(s=!0),this[n(438)](e)&&(s=!0),this[n(374)](e)&&(s=!0),this[n(411)](e)&&(s=!0),s}),this[t(417)](o[t(386)],t(387),()=>{const e=t;o[e(401)]({isUndoable:!1},t=>{this[e(369)](t)})},{priority:t(444)}),this[t(417)](n,t(372),()=>{const e=t;this[e(453)]=[],this[e(452)][e(388)](),this[e(424)][e(388)](),this[e(371)][e(388)]()},{priority:t(353)})}[u(358)](){return this[u(363)]}[u(365)](t){const e=u;return this[e(453)][e(378)](e=>e.id===t)||null}[u(376)](){const t=u;return Array[t(413)](this[t(453)])}[u(385)](){return this[u(406)]}[u(443)](t){this[u(406)]=t}[u(432)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(453)][o(360)];i++)this[o(400)](t,i)&&(n=!0);return n}[u(357)](t,e){const o=u,n=t[o(383)](o(420),{});return t[o(419)](n,e),this[o(363)]=n,n}[u(369)](t){const e=u;if(!this[e(453)][e(360)]||this[e(363)])return;const o=this[e(453)][0][e(410)][e(407)],n=this[e(357)](t,o);for(const o of this[e(453)])o[e(437)][e(414)]||t[e(379)](o[e(437)],n,e(434));this[e(432)](t)}[u(418)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(452)][o(396)](e);if(r[o(360)]&&(this[o(363)]=r[0]),i[o(360)])if(i[o(360)]>1||this[o(363)]&&i[o(364)](t=>t!==this[o(363)])){const e=t[o(383)](o(420),{}),s=[];this[o(363)]&&s[o(355)](this[o(363)]),s[o(355)](...i),t[o(379)](e,s[0],o(439));for(const n of s)t[o(403)](t[o(447)](n),t[o(441)](e,o(434))),t[o(428)](n);this[o(363)]=e,this[o(432)](t),n=!0}else this[o(363)]=i[0];if(s[o(360)]&&o(389)===this[o(363)]?.[o(407)][o(356)]){for(const e of this[o(453)])t[o(428)](e[o(410)]),n=!0;this[o(453)]=[],this[o(363)]=null}return n}[u(392)](t,e){const o=u;let n=!1;const i=this[o(361)][o(377)][o(368)](o(415)),{inserted:s,moved:r}=this[o(371)][o(396)](e);for(const e of[...r,...s]){const s=e[o(370)](o(412)),r=this[o(365)](s);r&&(r[o(437)]=e),h(t,i,e)&&(n=!0)}return n}[u(382)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(424)][o(396)](e);for(const e of i)this[o(398)](t,e)&&(n=!0);for(const e of s)this[o(359)](t,e)&&(n=!0);for(const e of r)this[o(375)](t,e)&&(n=!0);return n}[u(374)](t){const e=u;if(!this[e(363)])return!1;let o=!1;if(this[e(363)][e(429)]!==this[e(453)][e(360)]){const n=[];for(const t of this[e(363)][e(395)]()){const i=t[e(370)](e(412));this[e(365)](i)||(n[e(431)](t),o=!0)}for(const o of n)t[e(428)](o)}const n=new Set,i=[];for(const t of this[e(363)][e(395)]()){const s=t[e(370)](e(412));n[e(354)](s)?(i[e(431)](t),o=!0):n[e(402)](s)}for(const o of i)t[e(428)](o);return this[e(363)][e(429)]||(t[e(428)](this[e(363)]),this[e(363)]=null,o=!0),o}[u(359)](t,e){const o=u;if(this[o(453)][o(378)](t=>t[o(410)]===e))return!1;let n=!1;const i=e[o(370)](o(412)),s=this[o(453)][o(380)](t=>t.id===i);-1!==s&&(t[o(428)](this[o(453)][s][o(410)]),this[o(453)][o(430)](s,1),n=!0);let r=this[o(363)]?function(t,e){const n=o;for(const o of t[n(395)]())if(o[n(370)](n(412))===e)return o;return null}(this[o(363)],i):null;r||(r=t[o(383)](o(373),{footnoteId:i}),this[o(363)]&&(t[o(379)](r,this[o(363)],o(434)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(361)][o(381)],this[o(453)],e);this[o(453)][o(430)](c,0,a);let l=c;return-1!==s&&(l=Math[o(366)](c,s)),this[o(432)](t,l)&&(n=!0),n}[u(398)](t,e){const o=u,n=this[o(453)][o(380)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(453)][n];return o(389)!==s[o(437)][o(407)][o(356)]&&(t[o(428)](s[o(437)]),i=!0),this[o(453)][o(430)](n,1),this[o(432)](t,n)&&(i=!0),i}[u(375)](t,e){const o=u,n=e[o(370)](o(412)),i=this[o(453)][o(380)](t=>t.id===n),s=this[o(453)][i];let r=!1;s[o(410)]=e,this[o(453)][o(430)](i,1);const a=m(this[o(361)][o(381)],this[o(453)],e);return this[o(453)][o(430)](a,0,s),this[o(432)](t,Math[o(366)](i,a))&&(r=!0),r}[u(400)](t,e){const o=u;if(!this[o(363)])return!1;const n=this[o(453)][e];let i;return i=this[o(406)]?this[o(406)]({footnote:n,container:this[o(363)],digits:String(this[o(453)][o(360)])[o(360)],value:e+1}):String(e+1),n[o(410)][o(370)](o(445))!=i&&(t[o(442)](o(445),i,n[o(410)]),!0)}[u(411)](t){const e=u;if(!this[e(363)]||this[e(453)][e(360)]<2)return!1;if(function(t,o){const n=e;if(t[n(360)]!==o[n(360)])return!1;for(let e=0;e<t[n(360)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(453)][e(384)](t=>t.id),Array[e(413)](this[e(363)][e(395)]())[e(384)](t=>t[e(370)](e(412)))))return!1;let o=!1;for(let n=0;n<this[e(453)][e(360)];n++){const i=this[e(453)][n],s=t[e(423)](i[e(437)]),r=t[e(441)](this[e(363)],n);s[e(433)](r)||(t[e(403)](t[e(448)](i[e(437)]),r),o=!0)}return o}[u(438)](t){const e=u;if(!this[e(453)][e(360)])return!1;const{model:o}=this[e(361)];let n=!1;for(let i=0;i<this[e(453)][e(360)]-1;i++){const s=this[e(453)][i],r=this[e(453)][i+1],a=o[e(423)](s[e(410)]),c=o[e(423)](r[e(410)]);e(427)===a[e(446)](c)&&(this[e(375)](t,s[e(410)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(429)])return!1;const i=n(e?405:422);return t[n(379)](t[n(383)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(360)])return 0;const i=t[n(423)](o);for(let o=0;o<e[n(360)];o++){const s=e[o],r=t[n(423)](s[n(410)]);if(n(439)===i[n(446)](r))return o}const s=o[n(407)];let r=-1;for(let t=e[n(360)]-1;t>=0;t--)if(e[t][n(410)][n(407)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(386)][n(436)](),c=a[n(409)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(360)];t++)if(e[t][n(410)][n(407)][n(356)]===l)return t;return e[n(360)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=262]})(t,e)}const w=g;function y(){const t=["execute","document","model","getFirstRange","336782ATGMrB","length","end","40683vwVbij","1427028sAnujG","1467718qeDXdh","975915UXsWEG","_getPositionToInsertFootnote","selection","get","3970310dmtGUm","editor","FootnotesEditing","isBlock","3232LjrWFi","change","insertObject","1ziqoVb","checkChild","plugins","string","insert-footnote-command-executed-with-invalid-id","footnoteId","isObject","3681LnjxMH","isEnabled","92NjErkL","_moveSelectionToFootnoteDefinition","refresh","footnoteRef","createElement","getItems","test"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(166426===-parseInt(e(266))/1*(-parseInt(e(286))/2)+-parseInt(e(289))/3*(parseInt(e(275))/4)+parseInt(e(292))/5+-parseInt(e(290))/6+-parseInt(e(291))/7+parseInt(e(263))/8*(parseInt(e(273))/9)+parseInt(e(296))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(277)](){const t=w,e=this[t(297)][t(284)][t(283)][t(294)],o=this[t(293)](e);this[t(274)]=!!o}[w(282)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(283)],r=this[e(293)](s);if(!r)return;const a=o[e(268)][e(295)](e(298)),c=t?.[e(271)]??(0,i.uid)();!function(t){const o=e;return o(269)==typeof t&&t[o(287)]>0&&!/\s/[o(281)](t)&&!/^\d/[o(281)](t)}(c)?(0,i.logWarning)(e(270)):(n[e(264)](t=>{const o=e,i=t[o(279)](o(278),{footnoteId:c});n[o(265)](i,r,null)}),a[e(276)](c))}[w(293)](t){const e=w,{model:o}=this[e(297)],{schema:n}=o,i=t[e(285)]();for(const t of i[e(280)]())if(n[e(262)](t)||n[e(272)](t))return null;const s=i[e(288)];return n[e(267)](s,e(278))?s:null}}class v 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=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770768e3;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([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})=>x(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)(x(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})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(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})=>A(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>A(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 E(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 x(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 A(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 T=o(331);const D=S;function P(){const t=["isPremiumPlugin","footnoteRef","getFirstRange","_handleCopyFootnotesDefinitions","setData","requires","entries","init","append","5511176DIkNFA","createElement","8118061WsokfN","end","parse","remove","getFootnote","definition","keys","getRanges","application/ckeditor5-footnotes","2830530sVfoeO","setAttribute","getFootnotes","getSelectedBlocks","from","flatMap","getData","footnoteId","toView","footnotesDefinitions","219796LEyJmd","_defineClipboardIntegration","data","createRangeIn","config","hasAttribute","htmlProcessor","method","listenTo","includes","15ITSBiJ","find","242308hIklax","clipboardInput","dataTransfer","getFootnotesDefinitionsObjectElement","add","get","contentInsertion","change","selection","toData","document","root","cloneElement","getAttribute","element","27457056mpZnNq","sourceEditorId","pluginName","stringify","footnoteInlineContent","string","content","insert","drop","outputTransformation","footnoteDefinition","toModel","reduce","editor","_insertEmptyFootnotesDefinitionsContainer","editing","create","6KnSwtA","isOfficialPlugin","getChildren","push","FootnotesClipboard","length","331002uuWlnH","_handlePasteFootnotesDefinitions","footnotes.multiBlock"];return(P=function(){return t})()}function S(t,e){const o=P();return(S=function(t,e){return o[t-=135]})(t,e)}!function(t){const e=S,o=t();for(;;)try{if(633349===parseInt(e(140))/1+-parseInt(e(185))/2+-parseInt(e(163))/3+-parseInt(e(173))/4*(-parseInt(e(183))/5)+parseInt(e(217))/6*(-parseInt(e(154))/7)+-parseInt(e(152))/8+parseInt(e(200))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class _ extends t.Plugin{static get[D(202)](){return D(138)}static get[D(148)](){return[v,T.ClipboardPipeline]}static get[D(135)](){return!0}static get[D(143)](){return!0}[D(150)](){this[D(174)]()}[D(174)](){const t=D;this[t(146)](),this[t(141)]()}[D(146)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(190)](T.ClipboardPipeline),s=o[t(190)](p);this[t(181)](i,t(209),(o,i)=>{const r=t,a=V(n[r(176)](i[r(206)]));if(!a[r(139)])return;const c=s[r(165)](),l=a[r(212)]((t,o)=>{const n=r,i=c[n(184)](t=>t.id===o);if(i){const o=e[n(175)][n(171)](i[n(159)],{isClipboardPipeline:!0}),s=e[n(175)][n(179)][n(194)](o);t[i.id]=s}return t},Object[r(216)](null));i[r(187)][r(147)](r(162),JSON[r(203)](l))})}[D(141)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(215)],r=n[t(190)](T.ClipboardPipeline),a=n[t(190)](p),c=e[t(177)][t(190)](t(142));let l=null;this[t(181)](s[t(195)],t(186),(e,o)=>{const n=t,i=o[n(187)][n(169)](n(162));l=i?JSON[n(156)](i):null}),this[t(181)](r,t(191),(n,s)=>{const r=t,u=s[r(201)]===this[r(213)].id;u&&r(208)===s[r(180)]||o[r(192)](t=>{const n=r;let f=a[n(188)]();const d=!!f&&Array[n(167)](o[n(195)][n(193)][n(166)]())[n(182)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(199),e(144)))return!0;return!1}(o[n(176)](s[n(206)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(216)](null);for(const e of i[o(136)]())e.is(o(199),o(210))&&e[o(178)](o(170))&&(s[e[o(198)](o(170))]=t[o(197)](e,!0));return Object[o(160)](s)[o(139)]?s:null}(t,s[n(206)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(176)](e))n.is(o(199),o(172))&&i[o(137)](n);for(const e of i)t[o(157)](e)}(t,s[n(206)]),!l)return;const{selection:p}=o[n(195)],h=p[n(145)]()[n(196)];f&&!d||(f=L(t,s[n(206)]),f||=a[n(214)](t,h));const m=Array[n(167)](p[n(161)]())[n(168)](V),g=function(t,e,o){const s=n,r=Object[s(216)](null);for(const{item:n}of t[s(176)](e))if(n.is(s(199),s(144))){const e=n[s(198)](s(170));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(164)](s(170),r[e],n)}return r}(t,s[n(206)],t=>{const e=n;return!u||!!a[e(158)](t)&&!m[e(182)](t)});for(const[o,i]of Object[n(149)](l)){const s=g[o]||o;let r;if(n(205)!=typeof i)r=i,s!==o&&t[n(164)](n(170),s,r);else{r=t[n(153)](n(210),{footnoteId:s});const o=e[n(175)][n(179)][n(171)](i);let a;if(c)a=e[n(175)][n(211)](o,r);else{a=t[n(153)](n(204));const i=e[n(175)][n(211)](o,a);t[n(207)](i,a)}t[n(151)](a,r)}t[n(207)](r,f,n(155))}l=null})})}}function L(t,e){const o=D;for(const{item:n}of t[o(176)](e))if(n.is(o(199),o(172)))return n;return null}function V(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(199),e(144))&&o[e(189)](n[e(198)](e(170)));return Array[e(167)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),W=o(102),B=o.n(W),z=o(123),U=o.n(z),q=o(741),H=o.n(q),X=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=B().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=H();K()(X.A,J);X.A&&X.A.locals&&X.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",G(t,N.ButtonView)),e.add("menuBar:insertFootnote",G(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||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(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}}function Y(){var t=["requires","isPremiumPlugin","11153376YFKkkN","1734930GsDuCN","4818205odQWiY","Footnotes","12VrDKJz","1328190FWpjKo","231582XLuUWy","11orxEER","16BTTCVJ","pluginName","7471770UhiFPA","36CNqHHu","14708XKreBp","103TvqHFS","isOfficialPlugin"];return(Y=function(){return t})()}var Q=$;function $(t,e){var o=Y();return($=function(t,e){return o[t-=499]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(435886===parseInt(e(502))/1*(parseInt(e(501))/2)+-parseInt(e(512))/3*(-parseInt(e(500))/4)+-parseInt(e(511))/5*(parseInt(e(510))/6)+-parseInt(e(508))/7+-parseInt(e(514))/8*(-parseInt(e(507))/9)+-parseInt(e(499))/10*(-parseInt(e(513))/11)+-parseInt(e(506))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Q(515)](){return Q(509)}static get[Q(504)](){return[v,_,Z]}static get[Q(503)](){return!0}static get[Q(505)](){return!0}}const et=nt;function ot(){const t=["360eigmEc","decimal","lower-roman","decimal-leading-zero","70yvtcYc","lower-alpha","360896UTuGhV","13497DHfTBq","33834IIaBhv","1197508QWlfiQ","1150930xRPTHH","upper-roman","upper-latin","lower-latin","2746tbpJpt","273NRKqiq","9uqujhM","294469lOJzDL","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=450]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(155785===parseInt(e(461))/1+-parseInt(e(458))/2*(parseInt(e(459))/3)+-parseInt(e(453))/4+parseInt(e(454))/5+parseInt(e(452))/6*(parseInt(e(467))/7)+-parseInt(e(450))/8*(parseInt(e(460))/9)+parseInt(e(463))/10*(parseInt(e(451))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(464),et(466),et(457),et(456),et(468),et(462),et(465),et(455)];function st(){const t=["includes","execute","4fVWfHM","6410547FdTEnU","plugins","17954XInNXQ","setAttribute","248dXXhwT","getFootnotesDefinitionsObjectElement","isEnabled","getAttribute","51087VGwkJo","1213653NtQcIj","footnotesListStyle","20687480WOxusu","model","_updateFootnotesCounters","refresh","88ujXUIA","7926840sdzxbb","get","9828555MFumoS","change","value"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=488]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(997839===-parseInt(e(489))/1*(-parseInt(e(510))/2)+parseInt(e(495))/3*(parseInt(e(491))/4)+-parseInt(e(505))/5+parseInt(e(503))/6+parseInt(e(496))/7*(parseInt(e(502))/8)+parseInt(e(511))/9+-parseInt(e(498))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(501)](){const t=rt,{editor:e}=this,o=e[t(488)][t(504)](p)[t(492)]();this[t(493)]=!!o,this[t(507)]=o?.[t(494)](t(497))??null}[rt(509)]({value:t}){const e=rt,{editor:o}=this,n=o[e(488)][e(504)](p),i=n[e(492)]();i&&it[e(508)](t)&&o[e(499)][e(506)](o=>{const s=e;o[s(490)](s(497),t,i),n[s(500)](o)})}}const lt=ft;function ut(){const t=["1285800MUPWlc","646FXvnYY","7335180QBazaw","481tRknvC","50936qJIvag","change","366seXjDm","execute","get","footnotesListStart","getAttribute","getFootnotesDefinitionsObjectElement","50175Eqndbc","value","13XKpvcm","refresh","_updateFootnotesCounters","512AhNnjk","isEnabled","77jRzlyv","3411926WmeJKN","621YibfFP","setAttribute","plugins","4632eeRAHy","model","isInteger"];return(ut=function(){return t})()}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=476]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(498100===parseInt(e(482))/1*(-parseInt(e(480))/2)+-parseInt(e(476))/3*(parseInt(e(496))/4)+-parseInt(e(491))/5*(parseInt(e(485))/6)+-parseInt(e(499))/7+parseInt(e(483))/8*(parseInt(e(500))/9)+parseInt(e(479))/10*(parseInt(e(498))/11)+parseInt(e(481))/12*(parseInt(e(493))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(494)](){const t=lt,{editor:e}=this,o=e[t(502)][t(487)](p)[t(490)]();this[t(497)]=!!o,this[t(492)]=o?.[t(489)](t(488))??null}[lt(486)]({value:t}){const e=lt,{editor:o}=this,n=o[e(502)][e(487)](p),i=n[e(490)]();i&&Number[e(478)](t)&&o[e(477)][e(484)](o=>{const s=e;o[s(501)](s(488),t,i),n[s(495)](o)})}}function pt(){const t=["downcast","328349WJgUnQ","createRangeOn","item","element:ol","toLowerCase","checkAttribute","parent","extend","upper-roman","insert","decimal","footnotesListStart","modelCursor","consumable","add","7550715tmEtXO","694337EwDKbi","plugins","lower-latin","8786050KrEgNA","getChanges","decimal-leading-zero","16xLfaDj","attribute:footnotesListStyle:footnotesDefinitions","upper-latin","96219ePunUi","footnotesStyle","schema","type","_updateFootnotesCounters","writer","attribute:footnotesListStart:footnotesDefinitions","from","get","upcast","footnotes.footnotesProperties.defaultListStyle","element","isPremiumPlugin","hasAttribute","toViewElement","_defineFormatter","footnotesDefinitions","document","fromCharCode","define","_getDefaultStartIndex","lower-roman","FootnotesPropertiesEditing","hasClass","footnotes-list","config","toUpperCase","getStyle","_defineSchema","removeStyle","36UbcIjc","setStyle","footnotesStart","1472206ErdZfI","for","parseInt","position","nodeAfter","max","$text","commands","setFootnoteFormatter","footnotesListStyle","_definePostfixer","81hVAYQt","differ","init","removeAttribute","lower-alpha","21992iYwIDl","floor","editor","registerPostFixer","start","getChildren","_defineConverters","setAttribute","getAttribute","viewItem","isOfficialPlugin","padStart","model","consume","footnotes.footnotesProperties.defaultStartIndex","requires","mapper","find","_getDefaultListStyle","upper-alpha","pluginName","isNaN","getItems","list-style-type","name","_formatFootnoteListValue"];return(pt=function(){return t})()}const ht=wt;!function(t){const e=wt,o=t();for(;;)try{if(882183===-parseInt(e(194))/1+-parseInt(e(252))/2+-parseInt(e(219))/3*(-parseInt(e(216))/4)+parseInt(e(209))/5+-parseInt(e(249))/6*(parseInt(e(210))/7)+parseInt(e(268))/8*(parseInt(e(263))/9)+parseInt(e(213))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(187)](){return ht(241)}static get[ht(182)](){return[v,p]}static get[ht(177)](){return!0}static get[ht(231)](){return!0}[ht(265)](){const t=ht,{editor:e}=this;e[t(244)][t(238)](t(229),t(204)),e[t(244)][t(238)](t(181),1),e[t(259)][t(208)](t(220),new ct(e)),e[t(259)][t(208)](t(251),new dt(e)),this[t(247)](),this[t(274)](),this[t(234)](),this[t(262)]()}[ht(247)](){const t=ht,{editor:e}=this,{schema:o}=e[t(179)];o[t(201)](t(235),{allowAttributes:[t(261),t(205)]})}[ht(274)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(253)](t(228))[t(208)](e=>{const o=t;e.on(o(197),(t,e,n)=>{const s=o,r=e[s(176)],a=e[s(206)]?.[s(200)];r[s(242)](s(243))&&a?.is(s(230),s(235))&&(function(t,e,o,n){const i=s;if(!n[i(199)](e,i(205)))return;let r=1;const a=o[i(207)][i(180)](t,{attributes:i(272)});if(a){const e=Number[i(254)](t[i(175)](i(272)),10);Number[i(188)](e)||(r=e)}!a&&e[i(232)](i(205))||o[i(224)][i(275)](i(205),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(199)](e,i(261)))return;let r=i(204),a=!1;if(o[i(207)][i(180)](t,{attributes:i(222)})){const e={1:i(204),a:i(267),A:i(186),i:i(240),I:i(202)}[t[i(175)](i(222))];e&&(r=e),a=!0}o[i(207)][i(180)](t,{styles:i(190)})&&(r=function(t){const e=i;switch(t){case e(267):return e(212);case e(186):return e(218);default:return t}}(t[i(246)](i(190))),a=!0),!a&&e[i(232)](i(261))||o[i(224)][i(275)](i(261),r,e)}(r,a,n,i))})}),o[t(253)](t(193))[t(208)](e=>{const o=t;e.on(o(225),(t,e,n)=>{const i=o;if(!n[i(207)][i(180)](e[i(196)],t[i(191)]))return;const s=gt(e[i(196)],n[i(183)]),{attributeNewValue:r}=e;null==r||1===r?n[i(224)][i(266)](i(272),s):n[i(224)][i(275)](i(272),String(r),s)}),e.on(o(217),(t,e,n)=>{const i=o;if(!n[i(207)][i(180)](e[i(196)],t[i(191)]))return;const s=gt(e[i(196)],n[i(183)]),{attributeNewValue:r}=e;r&&i(204)!==r?n[i(224)][i(250)](i(190),r,s):n[i(224)][i(248)](i(190),s)})})}[ht(262)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(211)][t(227)](p),i=this[t(185)](),s=this[t(239)]();o[t(236)][t(271)](e=>{const r=t,a=o[r(236)][r(264)][r(214)]();let c=!1;for(const t of a){if(r(203)!==t[r(222)]||r(258)===t[r(191)])continue;const n=o[r(195)](t[r(255)][r(256)]);for(const t of n[r(189)]())t.is(r(230),r(235))&&(!t[r(232)](r(205))&&o[r(221)][r(199)](t,r(205))&&(e[r(275)](r(205),s,t),c=!0),!t[r(232)](r(261))&&o[r(221)][r(199)](t,r(261))&&(e[r(275)](r(261),i,t),c=!0))}return c&&n[r(223)](e),c})}[ht(234)](){const t=ht,{editor:e}=this;e[t(211)][t(227)](p)[t(260)](e=>this[t(192)](e))}[ht(185)](){const t=ht;return this[t(270)][t(244)][t(227)](t(229))}[ht(239)](){const t=ht;return this[t(270)][t(244)][t(227)](t(181))}[ht(192)]({container:t,value:e,digits:o}){const n=ht,i=t[n(175)](n(261)),s=t[n(175)](n(205)),r=Math[n(269)](e)+(s??1)-1;switch(i){case n(215):return function(t,e){const o=n;return String(t)[o(178)](e,"0")}(r,Math[n(257)](2,o));case n(267):case n(212):return yt(r,!1);case n(186):case n(218):return yt(r,!0);case n(240):return vt(r,!1);case n(202):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(233)](t);return Array[o(226)](n[o(273)]())[o(184)](t=>t.is(o(230),"ol")&&t[o(242)](o(243)))}function wt(t,e){const o=pt();return(wt=function(t,e){return o[t-=175]})(t,e)}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(237)](97+t)+n,i=Math[o(269)]((i-1)/26)}return e?n[o(245)]():n}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=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(198)]()}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=U(),Ct.insert=B().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();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 Et=xt;function xt(t,e){var o=At();return(xt=function(t,e){return o[t-=223]})(t,e)}function At(){var t=["requires","10ctaqKr","27OLPIIL","isPremiumPlugin","5844rtyamc","33416lrrtZE","isOfficialPlugin","FootnotesProperties","916497AOpCbO","46640ZtRVjz","968vUTHwz","14ZkDtCn","5656zzVWvx","356275UJPEpa","107ffomMA","815196uBzbNR","pluginName"];return(At=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(156822===parseInt(e(224))/1*(parseInt(e(239))/2)+parseInt(e(229))/3*(parseInt(e(232))/4)+parseInt(e(223))/5+-parseInt(e(225))/6+-parseInt(e(238))/7*(parseInt(e(236))/8)+parseInt(e(235))/9*(-parseInt(e(228))/10)+parseInt(e(237))/11*(-parseInt(e(231))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At);class Tt extends t.Plugin{static get[Et(226)](){return Et(234)}static get[Et(227)](){return[mt,Ft]}static get[Et(233)](){return!0}static get[Et(230)](){return!0}}function Dt(){var t=["5320458hHoWCr","18672488YeDpxf","1542578xHTLYs","4vBWqiR","2226088jWIsMD","4916555WybZzD","4195527cazEHV","5744665omWggA"];return(Dt=function(){return t})()}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=315]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(827293===parseInt(e(319))/1+-parseInt(e(321))/2+parseInt(e(315))/3+parseInt(e(320))/4*(parseInt(e(316))/5)+parseInt(e(317))/6+-parseInt(e(322))/7+-parseInt(e(318))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(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 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:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["_elementName","remove","39080HaFpXi","getItems","_trackedElements","_model","from","position","clear","slice","get","11580620ahtHKL","getChanges","set","add","name","rootName","402561URWJSK","$graveyard","root","54FIyvtP","1401224vgVUvC","flat","95132BnQGkt","length","push","2139809FfeTbk","nodeAfter","has","delete","_getElementKey","reset","elementName","insert","element","createRangeOn","7VuLqVA","values","type","$text","252YHmjVf","getElementKey","attributes","93634NiyfQp"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=312]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(293304===parseInt(e(353))/1*(parseInt(e(316))/2)+parseInt(e(337))/3*(-parseInt(e(340))/4)+-parseInt(e(319))/5*(parseInt(e(313))/6)+-parseInt(e(343))/7+-parseInt(e(338))/8+parseInt(e(334))/9+parseInt(e(328))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(322)];[r(317)];[r(347)];[r(321)]=new Map;constructor(t,e){const o=r;this[o(322)]=t,this[o(317)]=e[o(349)],this[o(347)]=e[o(314)]}[r(348)](){const t=r;this[t(321)][t(325)]()}[r(329)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(350)===i[e(355)]&&e(312)!==i[e(332)]&&i[e(324)][e(344)]){const t=this[e(322)][e(352)](i[e(324)][e(344)]);for(const o of t[e(320)]()){if(!o.is(e(351),this[e(317)]))continue;const t=this[e(347)](o);n[e(345)](t)||n[e(330)](t,[]),n[e(327)](t)[e(342)](o)}}if(e(318)===i[e(355)]&&i[e(332)]===this[e(317)]){const t=this[e(347)]({getAttribute:t=>i[e(315)][e(327)](t)});o[e(331)](t)}}for(const[t,n]of this[e(321)])e(335)===n[e(336)][e(333)]&&o[e(331)](t);for(const t of o)this[e(321)][e(346)](t);for(const[t,o]of n)this[e(321)][e(330)](t,o[o[e(341)]-1]);const i=new Set;for(const[t,s]of n)o[e(345)](t)&&(i[e(331)](s[0]),s[e(341)]>1?n[e(330)](t,s[e(326)](1)):n[e(346)](t),o[e(346)](t));return{removed:Array[e(323)](o),inserted:Array[e(323)](n[e(354)]())[e(339)](),moved:Array[e(323)](i)}}}const f=u;function u(t,e){const o=h();return(u=function(t,e){return o[t-=126]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(542639===-parseInt(e(126))/1*(-parseInt(e(196))/2)+-parseInt(e(199))/3*(parseInt(e(129))/4)+-parseInt(e(188))/5*(-parseInt(e(205))/6)+parseInt(e(227))/7*(-parseInt(e(187))/8)+parseInt(e(173))/9+-parseInt(e(180))/10+-parseInt(e(193))/11*(-parseInt(e(191))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(153)]=[];[f(169)]=null;[f(198)]=null;[f(149)];[f(160)];[f(192)];static get[f(208)](){return f(152)}static get[f(130)](){return!0}static get[f(211)](){return!0}constructor(t){const e=f;super(t),this[e(149)]=new l(this[e(166)][e(141)],{elementName:e(142),getElementKey:()=>e(203)}),this[e(160)]=new l(this[e(166)][e(141)],{elementName:e(159),getElementKey:t=>t[e(219)](e(223))}),this[e(192)]=new l(this[e(166)][e(141)],{elementName:e(184),getElementKey:t=>t[e(219)](e(223))})}[f(131)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(185)][t(147)](e=>{const n=t,i=o[n(185)][n(140)][n(217)]();let s=!1;return this[n(151)](e,i)&&(s=!0),this[n(163)](e,i)&&(s=!0),this[n(210)](e,i)&&(s=!0),this[n(170)](e)&&(s=!0),this[n(195)](e)&&(s=!0),this[n(204)](e)&&(s=!0),s}),this[t(136)](o[t(185)],t(133),()=>{const e=t;o[e(155)]({isUndoable:!1},t=>{this[e(157)](t)})},{priority:t(200)}),this[t(136)](n,t(175),()=>{const e=t;this[e(153)]=[],this[e(149)][e(182)](),this[e(160)][e(182)](),this[e(192)][e(182)]()},{priority:t(139)})}[f(186)](){return this[f(169)]}[f(162)](t){const e=f;return this[e(153)][e(226)](e=>e.id===t)||null}[f(206)](){const t=f;return Array[t(134)](this[t(153)])}[f(225)](){return this[f(198)]}[f(212)](t){this[f(198)]=t}[f(176)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(153)][o(221)];i++)this[o(178)](t,i)&&(n=!0);return n}[f(174)](t,e){const o=f,n=t[o(145)](o(142),{});return t[o(214)](n,e),this[o(169)]=n,n}[f(157)](t){const e=f;if(!this[e(153)][e(221)]||this[e(169)])return;const o=this[e(153)][0][e(127)][e(181)],n=this[e(174)](t,o);for(const o of this[e(153)])o[e(148)][e(164)]||t[e(143)](o[e(148)],n,e(216));this[e(176)](t)}[f(151)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(149)][o(217)](e);if(r[o(221)]&&(this[o(169)]=r[0]),i[o(221)])if(i[o(221)]>1||this[o(169)]&&i[o(150)](t=>t!==this[o(169)])){const e=t[o(145)](o(142),{}),s=[];this[o(169)]&&s[o(172)](this[o(169)]),s[o(172)](...i),t[o(143)](e,s[0],o(146));for(const n of s)t[o(207)](t[o(209)](n),t[o(135)](e,o(216))),t[o(194)](n);this[o(169)]=e,this[o(176)](t),n=!0}else this[o(169)]=i[0];if(s[o(221)]&&o(220)===this[o(169)]?.[o(181)][o(189)]){for(const e of this[o(153)])t[o(194)](e[o(127)]),n=!0;this[o(153)]=[],this[o(169)]=null}return n}[f(163)](t,e){const o=f;let n=!1;const i=this[o(166)][o(137)][o(138)](o(168)),{inserted:s,moved:r}=this[o(192)][o(217)](e);for(const e of[...r,...s]){const s=e[o(219)](o(223)),r=this[o(162)](s);r&&(r[o(148)]=e),p(t,i,e)&&(n=!0)}return n}[f(210)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(160)][o(217)](e);for(const e of i)this[o(167)](t,e)&&(n=!0);for(const e of s)this[o(201)](t,e)&&(n=!0);for(const e of r)this[o(161)](t,e)&&(n=!0);return n}[f(195)](t){const e=f;if(!this[e(169)])return!1;let o=!1;if(this[e(169)][e(190)]!==this[e(153)][e(221)]){const n=[];for(const t of this[e(169)][e(179)]()){const i=t[e(219)](e(223));this[e(162)](i)||(n[e(228)](t),o=!0)}for(const o of n)t[e(194)](o)}const n=new Set,i=[];for(const t of this[e(169)][e(179)]()){const s=t[e(219)](e(223));n[e(156)](s)?(i[e(228)](t),o=!0):n[e(154)](s)}for(const o of i)t[e(194)](o);return this[e(169)][e(190)]||(t[e(194)](this[e(169)]),this[e(169)]=null,o=!0),o}[f(201)](t,e){const o=f;if(this[o(153)][o(226)](t=>t[o(127)]===e))return!1;let n=!1;const i=e[o(219)](o(223)),s=this[o(153)][o(132)](t=>t.id===i);-1!==s&&(t[o(194)](this[o(153)][s][o(127)]),this[o(153)][o(213)](s,1),n=!0);let r=this[o(169)]?function(t,e){const n=o;for(const o of t[n(179)]())if(o[n(219)](n(223))===e)return o;return null}(this[o(169)],i):null;r||(r=t[o(145)](o(184),{footnoteId:i}),this[o(169)]&&(t[o(143)](r,this[o(169)],o(216)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(166)][o(141)],this[o(153)],e);this[o(153)][o(213)](c,0,a);let l=c;return-1!==s&&(l=Math[o(218)](c,s)),this[o(176)](t,l)&&(n=!0),n}[f(167)](t,e){const o=f,n=this[o(153)][o(132)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(153)][n];return o(220)!==s[o(148)][o(181)][o(189)]&&(t[o(194)](s[o(148)]),i=!0),this[o(153)][o(213)](n,1),this[o(176)](t,n)&&(i=!0),i}[f(161)](t,e){const o=f,n=e[o(219)](o(223)),i=this[o(153)][o(132)](t=>t.id===n),s=this[o(153)][i];let r=!1;s[o(127)]=e,this[o(153)][o(213)](i,1);const a=m(this[o(166)][o(141)],this[o(153)],e);return this[o(153)][o(213)](a,0,s),this[o(176)](t,Math[o(218)](i,a))&&(r=!0),r}[f(178)](t,e){const o=f;if(!this[o(169)])return!1;const n=this[o(153)][e];let i;return i=this[o(198)]?this[o(198)]({footnote:n,container:this[o(169)],digits:String(this[o(153)][o(221)])[o(221)],value:e+1}):String(e+1),n[o(127)][o(219)](o(215))!=i&&(t[o(177)](o(215),i,n[o(127)]),!0)}[f(204)](t){const e=f;if(!this[e(169)]||this[e(153)][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(153)][e(224)](t=>t.id),Array[e(134)](this[e(169)][e(179)]())[e(224)](t=>t[e(219)](e(223)))))return!1;let o=!1;for(let n=0;n<this[e(153)][e(221)];n++){const i=this[e(153)][n],s=t[e(144)](i[e(148)]),r=t[e(135)](this[e(169)],n);s[e(222)](r)||(t[e(207)](t[e(202)](i[e(148)]),r),o=!0)}return o}[f(170)](t){const e=f;if(!this[e(153)][e(221)])return!1;const{model:o}=this[e(166)];let n=!1;for(let i=0;i<this[e(153)][e(221)]-1;i++){const s=this[e(153)][i],r=this[e(153)][i+1],a=o[e(144)](s[e(127)]),c=o[e(144)](r[e(127)]);e(165)===a[e(197)](c)&&(this[e(161)](t,s[e(127)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(190)])return!1;const i=n(e?158:183);return t[n(143)](t[n(145)](i),o),!0}function h(){const t=["createRangeIn","_handleFootnoteReferencesChanges","isPremiumPlugin","setFootnoteFormatter","splice","append","footnoteCounter","end","getChanges","min","getAttribute","$graveyard","length","isEqual","footnoteId","map","getFootnotesFormatter","find","3759819TBQHGy","unshift","711TrEujE","reference","indexOf","1011848wFtVdk","isOfficialPlugin","init","findIndex","change:data","from","createPositionAt","listenTo","config","get","high","differ","model","footnotesDefinitions","insert","createPositionBefore","createElement","before","registerPostFixer","definition","_footnoteDefsContainerTracker","some","_handleFootnotesDefinitionsObjectChanges","FootnotesTracker","_footnotes","add","enqueueChange","has","_ensureFootnotesDefinitionsContainerExists","paragraph","footnoteRef","_footnoteRefsTracker","_handleMovedFootnoteReference","getFootnote","_handleFootnoteDefinitionsChanges","parent","after","editor","_handleRemoveFootnoteReferenceById","footnotes.multiBlock","_footnotesDefinitions","_ensureFootnotesReferencesHaveProperOrder","getRootNames","push","6102315iXRzAl","_insertEmptyFootnotesDefinitionsContainer","set","_updateFootnotesCounters","setAttribute","_updateFootnoteRefCounter","getChildren","10699180oFvtUQ","root","reset","footnoteInlineContent","footnoteDefinition","document","getFootnotesDefinitionsObjectElement","8kHsffQ","4955QxrCfG","rootName","childCount","708gMRqyl","_footnoteDefsTracker","190333xNAwfo","remove","_handleFootnotesDefinitionsObjectSync","146wKSGrh","compareWith","_footnoteFormatter","6MgUvqF","low","_handleInsertedFootnoteReference","createRangeOn","singleton","_sortFootnoteDefinitions","5478zVZKZm","getFootnotes","move","pluginName"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(221)])return 0;const i=t[n(144)](o);for(let o=0;o<e[n(221)];o++){const s=e[o],r=t[n(144)](s[n(127)]);if(n(146)===i[n(197)](r))return o}const s=o[n(181)];let r=-1;for(let t=e[n(221)]-1;t>=0;t--)if(e[t][n(127)][n(181)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(185)][n(171)](),c=a[n(128)](s[n(189)]),l=a[c+1];if(l)for(let t=0;t<e[n(221)];t++)if(e[t][n(127)][n(181)][n(189)]===l)return t;return e[n(221)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=150]})(t,e)}const w=g;function y(){const t=["136huISqa","FootnotesEditing","model","length","isObject","document","4587440JMfBKs","getItems","8rnTJxM","_moveSelectionToFootnoteDefinition","2ycdEzF","isBlock","footnoteId","232179nlhGWA","editor","isEnabled","end","1570pxNoGd","footnoteRef","182038iqJHfh","_getPositionToInsertFootnote","insert-footnote-command-executed-with-invalid-id","execute","get","test","43554cruoVT","710550ybHaDG","string","selection","refresh","checkChild","getFirstRange","17847IZEsfF","40999iGyxgH","plugins","change","insertObject","createElement"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(181315===-parseInt(e(157))/1*(-parseInt(e(166))/2)+parseInt(e(160))/3*(parseInt(e(155))/4)+-parseInt(e(173))/5+-parseInt(e(172))/6+-parseInt(e(180))/7*(-parseInt(e(185))/8)+parseInt(e(179))/9*(parseInt(e(164))/10)+-parseInt(e(153))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(176)](){const t=w,e=this[t(161)][t(187)][t(152)][t(175)],o=this[t(167)](e);this[t(162)]=!!o}[w(169)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(152)],r=this[e(167)](s);if(!r)return;const a=o[e(181)][e(170)](e(186)),c=t?.[e(159)]??(0,i.uid)();!function(t){const o=e;return o(174)==typeof t&&t[o(150)]>0&&!/\s/[o(171)](t)&&!/^\d/[o(171)](t)}(c)?(0,i.logWarning)(e(168)):(n[e(182)](t=>{const o=e,i=t[o(184)](o(165),{footnoteId:c});n[o(183)](i,r,null)}),a[e(156)](c))}[w(167)](t){const e=w,{model:o}=this[e(161)],{schema:n}=o,i=t[e(178)]();for(const t of i[e(154)]())if(n[e(158)](t)||n[e(151)](t))return null;const s=i[e(163)];return n[e(177)](s,e(165))?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=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1772064e3;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([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 P=o(331);const A=T;function T(t,e){const o=V();return(T=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(780076===parseInt(e(471))/1+-parseInt(e(475))/2+parseInt(e(531))/3+-parseInt(e(472))/4+parseInt(e(458))/5+-parseInt(e(463))/6+-parseInt(e(518))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(V);class D extends t.Plugin{static get[A(470)](){return A(521)}static get[A(515)](){return[v,P.ClipboardPipeline]}static get[A(497)](){return!0}static get[A(502)](){return!0}[A(466)](){this[A(488)]()}[A(488)](){const t=A;this[t(474)](),this[t(523)]()}[A(474)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(477)](P.ClipboardPipeline),s=o[t(477)](d);this[t(462)](i,t(479),(o,i)=>{const r=t,a=L(n[r(460)](i[r(534)]));if(!a[r(468)])return;const c=s[r(493)](),l=a[r(473)]((t,o)=>{const n=r,i=c[n(491)](t=>t.id===o);if(i){const o=e[n(459)][n(483)](i[n(511)],{isClipboardPipeline:!0}),s=e[n(459)][n(496)][n(489)](o);t[i.id]=s}return t},Object[r(464)](null));i[r(492)][r(457)](r(530),JSON[r(514)](l))})}[A(523)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(481)],r=n[t(477)](P.ClipboardPipeline),a=n[t(477)](d),c=e[t(482)][t(477)](t(519));let l=null;this[t(462)](s[t(480)],t(520),(e,o)=>{const n=t,i=o[n(492)][n(487)](n(530));l=i?JSON[n(469)](i):null}),this[t(462)](r,t(467),(n,s)=>{const r=t,f=s[r(494)]===this[r(499)].id;f&&r(506)===s[r(495)]||o[r(476)](t=>{const n=r;let u=a[n(485)]();const d=!!u&&Array[n(513)](o[n(480)][n(465)][n(525)]())[n(456)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(517),e(507)))return!0;return!1}(o[n(460)](s[n(534)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(464)](null);for(const e of i[o(509)]())e.is(o(517),o(533))&&e[o(535)](o(484))&&(s[e[o(510)](o(484))]=t[o(505)](e,!0));return Object[o(504)](s)[o(468)]?s:null}(t,s[n(534)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(460)](e))n.is(o(517),o(461))&&i[o(527)](n);for(const e of i)t[o(528)](e)}(t,s[n(534)]),!l)return;const{selection:p}=o[n(480)],h=p[n(455)]()[n(500)];u&&!d||(u=_(t,s[n(534)]),u||=a[n(512)](t,h));const m=Array[n(513)](p[n(490)]())[n(478)](L),g=function(t,e,o){const s=n,r=Object[s(464)](null);for(const{item:n}of t[s(460)](e))if(n.is(s(517),s(507))){const e=n[s(510)](s(484));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(522)](s(484),r[e],n)}return r}(t,s[n(534)],t=>{const e=n;return!f||!!a[e(501)](t)&&!m[e(456)](t)});for(const[o,i]of Object[n(498)](l)){const s=g[o]||o;let r;if(n(486)!=typeof i)r=i,s!==o&&t[n(522)](n(484),s,r);else{r=t[n(508)](n(533),{footnoteId:s});const o=e[n(459)][n(496)][n(483)](i);let a;if(c)a=e[n(459)][n(532)](o,r);else{a=t[n(508)](n(529));const i=e[n(459)][n(532)](o,a);t[n(526)](i,a)}t[n(503)](a,r)}t[n(526)](r,u,n(516))}l=null})})}}function _(t,e){const o=A;for(const{item:n}of t[o(460)](e))if(n.is(o(517),o(461)))return n;return null}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(517),e(507))&&o[e(524)](n[e(510)](e(484)));return Array[e(513)](o)}function V(){const t=["create","selection","init","contentInsertion","length","parse","pluginName","1283451SosMCl","1126892Biriic","reduce","_handleCopyFootnotesDefinitions","3040556oiEDdx","change","get","flatMap","outputTransformation","document","editing","config","toView","footnoteId","getFootnotesDefinitionsObjectElement","string","getData","_defineClipboardIntegration","toData","getRanges","find","dataTransfer","getFootnotes","sourceEditorId","method","htmlProcessor","isOfficialPlugin","entries","editor","root","getFootnote","isPremiumPlugin","append","keys","cloneElement","drop","footnoteRef","createElement","getChildren","getAttribute","definition","_insertEmptyFootnotesDefinitionsContainer","from","stringify","requires","end","element","3393362HodvHz","footnotes.multiBlock","clipboardInput","FootnotesClipboard","setAttribute","_handlePasteFootnotesDefinitions","add","getSelectedBlocks","insert","push","remove","footnoteInlineContent","application/ckeditor5-footnotes","4364817BoHprk","toModel","footnoteDefinition","content","hasAttribute","getFirstRange","includes","setData","7694465TVDyZp","data","createRangeIn","footnotesDefinitions","listenTo","7262640QyMskb"];return(V=function(){return t})()}var O=o(311),N=o(355),K=o(929),R=o.n(K),M=o(297),j=o.n(M),B=o(102),H=o.n(B),W=o(123),U=o.n(W),z=o(741),q=o.n(z),J=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=H().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=q();R()(J.A,G);J.A&&J.A.locals&&J.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",Q(t,O.ButtonView)),e.add("menuBar:insertFootnote",Q(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||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(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:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function Y(){var t=["30wMmxoi","requires","8fwWrVd","isOfficialPlugin","2033988fqQnLO","16875yqDFdL","267508YKWMkS","692880SKJfYk","pluginName","2514eXzVnZ","605304XoLeSu","991224tfmqwg","isPremiumPlugin","20vIyKik","Footnotes","3584TJtuyU"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=361]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(227379===-parseInt(e(369))/1*(parseInt(e(364))/2)+parseInt(e(374))/3+parseInt(e(370))/4*(parseInt(e(361))/5)+parseInt(e(373))/6*(-parseInt(e(363))/7)+parseInt(e(366))/8*(parseInt(e(375))/9)+-parseInt(e(371))/10+parseInt(e(368))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Z(372)](){return Z(362)}static get[Z(365)](){return[v,D,X]}static get[Z(367)](){return!0}static get[Z(376)](){return!0}}const et=nt;function ot(){const t=["lower-latin","6993905YAWNAp","4pMpVvB","6804900OXnEdy","5841GgPpAd","lower-roman","upper-latin","4426503wVSXRe","upper-roman","2788261jPHnFS","80364SaqAmN","lower-alpha","upper-alpha","8JxiwNi","68ZabEgK","decimal","30537OCvKSD","2740iGKFwQ","25463pHpQzu","decimal-leading-zero"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=293]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(914588===-parseInt(e(306))/1*(parseInt(e(302))/2)+-parseInt(e(295))/3*(-parseInt(e(310))/4)+parseInt(e(309))/5+parseInt(e(311))/6+-parseInt(e(297))/7*(-parseInt(e(301))/8)+parseInt(e(304))/9*(parseInt(e(305))/10)+-parseInt(e(312))/11*(parseInt(e(298))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(303),et(307),et(308),et(294),et(299),et(300),et(293),et(296)],st=at;function rt(){const t=["50IecqIv","3601864bMeyZP","setAttribute","6pFUmpD","204538UEbMOB","plugins","isEnabled","includes","get","24747JKBdeL","153152VnoyPO","model","value","304lieWKs","execute","footnotesListStyle","refresh","change","154845PBhFLC","20453330dvHhYa","590916YdRPYH","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","getAttribute"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=273]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(558437===-parseInt(e(275))/1+-parseInt(e(283))/2+-parseInt(e(288))/3+-parseInt(e(289))/4*(-parseInt(e(279))/5)+parseInt(e(282))/6*(-parseInt(e(280))/7)+parseInt(e(292))/8*(-parseInt(e(273))/9)+parseInt(e(274))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(295)](){const t=st,{editor:e}=this,o=e[t(284)][t(287)](d)[t(277)]();this[t(285)]=!!o,this[t(291)]=o?.[t(278)](t(294))??null}[st(293)]({value:t}){const e=st,{editor:o}=this,n=o[e(284)][e(287)](d),i=n[e(277)]();i&&it[e(286)](t)&&o[e(290)][e(296)](o=>{const s=e;o[s(281)](s(294),t,i),n[s(276)](o)})}}const lt=ut;function ft(){const t=["footnotesListStart","value","3919980qHlaHm","refresh","execute","isEnabled","10565YcdkUT","get","model","70OpTaRS","getFootnotesDefinitionsObjectElement","2152btWMLb","setAttribute","3958332QYBsZy","_updateFootnotesCounters","2914767EJlKQM","8895648EJddZL","change","plugins","90108GmWLvl","isInteger","158197XYQNan","getAttribute"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=470]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(632216===-parseInt(e(489))/1+parseInt(e(477))/2*(parseInt(e(487))/3)+-parseInt(e(479))/4*(parseInt(e(474))/5)+parseInt(e(470))/6+-parseInt(e(481))/7+parseInt(e(484))/8+-parseInt(e(483))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(471)](){const t=lt,{editor:e}=this,o=e[t(486)][t(475)](d)[t(478)]();this[t(473)]=!!o,this[t(492)]=o?.[t(490)](t(491))??null}[lt(472)]({value:t}){const e=lt,{editor:o}=this,n=o[e(486)][e(475)](d),i=n[e(478)]();i&&Number[e(488)](t)&&o[e(476)][e(485)](o=>{const s=e;o[s(480)](s(491),t,i),n[s(482)](o)})}}function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=334]})(t,e)}const ht=pt;function mt(){const t=["find","4878jULNXI","footnotesStyle","6jKDBib","consumable","writer","schema","model","removeAttribute","setStyle","name","downcast","2337712KXgnEw","footnotes-list","6paedOa","toLowerCase","_updateFootnotesCounters","differ","attribute:footnotesListStart:footnotesDefinitions","nodeAfter","setFootnoteFormatter","_formatFootnoteListValue","getChildren","isNaN","get","footnotesStart","1378500VvLODg","lower-latin","extend","from","isOfficialPlugin","decimal-leading-zero","parent","pluginName","lower-alpha","floor","insert","toViewElement","getItems","$text","editor","mapper","define","element","footnotes.footnotesProperties.defaultListStyle","_getDefaultListStyle","upper-latin","attribute:footnotesListStyle:footnotesDefinitions","_definePostfixer","hasClass","145568zcqyPx","config","upper-alpha","position","upcast","fromCharCode","requires","getChanges","getAttribute","FootnotesPropertiesEditing","_defineSchema","removeStyle","consume","footnotesDefinitions","lower-roman","955796JCybKJ","add","isPremiumPlugin","hasAttribute","type","item","registerPostFixer","parseInt","max","for","_defineConverters","viewItem","_getDefaultStartIndex","setAttribute","_defineFormatter","2364586mFVplF","padStart","plugins","createRangeOn","toUpperCase","element:ol","472585UDZNio","commands","upper-roman","checkAttribute","list-style-type","init","footnotesListStyle","getStyle","footnotesListStart","start","decimal","footnotes.footnotesProperties.defaultStartIndex","12860CYyCSi","document","modelCursor"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(308257===-parseInt(e(364))/1+parseInt(e(343))/2+parseInt(e(393))/3*(-parseInt(e(429))/4)+-parseInt(e(405))/5+-parseInt(e(382))/6*(parseInt(e(358))/7)+parseInt(e(391))/8+parseInt(e(380))/9*(parseInt(e(376))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(412)](){return ht(337)}static get[ht(334)](){return[v,d]}static get[ht(409)](){return!0}static get[ht(345)](){return!0}[ht(369)](){const t=ht,{editor:e}=this;e[t(430)][t(421)](t(423),t(374)),e[t(430)][t(421)](t(375),1),e[t(365)][t(344)](t(381),new ct(e)),e[t(365)][t(344)](t(404),new dt(e)),this[t(338)](),this[t(353)](),this[t(357)](),this[t(427)]()}[ht(338)](){const t=ht,{editor:e}=this,{schema:o}=e[t(386)];o[t(407)](t(341),{allowAttributes:[t(370),t(372)]})}[ht(353)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(352)](t(433))[t(344)](e=>{const o=t;e.on(o(363),(t,e,n)=>{const s=o,r=e[s(354)],a=e[s(378)]?.[s(411)];r[s(428)](s(392))&&a?.is(s(422),s(341))&&(function(t,e,o,n){const i=s;if(!n[i(367)](e,i(372)))return;let r=1;const a=o[i(383)][i(340)](t,{attributes:i(373)});if(a){const e=Number[i(350)](t[i(336)](i(373)),10);Number[i(402)](e)||(r=e)}!a&&e[i(346)](i(372))||o[i(384)][i(356)](i(372),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(367)](e,i(370)))return;let r=i(374),a=!1;if(o[i(383)][i(340)](t,{attributes:i(347)})){const e={1:i(374),a:i(413),A:i(431),i:i(342),I:i(366)}[t[i(336)](i(347))];e&&(r=e),a=!0}o[i(383)][i(340)](t,{styles:i(368)})&&(r=function(t){const e=i;switch(t){case e(413):return e(406);case e(431):return e(425);default:return t}}(t[i(371)](i(368))),a=!0),!a&&e[i(346)](i(370))||o[i(384)][i(356)](i(370),r,e)}(r,a,n,i))})}),o[t(352)](t(390))[t(344)](e=>{const o=t;e.on(o(397),(t,e,n)=>{const i=o;if(!n[i(383)][i(340)](e[i(348)],t[i(389)]))return;const s=wt(e[i(348)],n[i(420)]),{attributeNewValue:r}=e;null==r||1===r?n[i(384)][i(387)](i(373),s):n[i(384)][i(356)](i(373),String(r),s)}),e.on(o(426),(t,e,n)=>{const i=o;if(!n[i(383)][i(340)](e[i(348)],t[i(389)]))return;const s=wt(e[i(348)],n[i(420)]),{attributeNewValue:r}=e;r&&i(374)!==r?n[i(384)][i(388)](i(368),r,s):n[i(384)][i(339)](i(368),s)})})}[ht(427)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(360)][t(403)](d),i=this[t(424)](),s=this[t(355)]();o[t(377)][t(349)](e=>{const r=t,a=o[r(377)][r(396)][r(335)]();let c=!1;for(const t of a){if(r(415)!==t[r(347)]||r(418)===t[r(389)])continue;const n=o[r(361)](t[r(432)][r(398)]);for(const t of n[r(417)]())t.is(r(422),r(341))&&(!t[r(346)](r(372))&&o[r(385)][r(367)](t,r(372))&&(e[r(356)](r(372),s,t),c=!0),!t[r(346)](r(370))&&o[r(385)][r(367)](t,r(370))&&(e[r(356)](r(370),i,t),c=!0))}return c&&n[r(395)](e),c})}[ht(357)](){const t=ht,{editor:e}=this;e[t(360)][t(403)](d)[t(399)](e=>this[t(400)](e))}[ht(424)](){const t=ht;return this[t(419)][t(430)][t(403)](t(423))}[ht(355)](){const t=ht;return this[t(419)][t(430)][t(403)](t(375))}[ht(400)]({container:t,value:e,digits:o}){const n=ht,i=t[n(336)](n(370)),s=t[n(336)](n(372)),r=Math[n(414)](e)+(s??1)-1;switch(i){case n(410):return function(t,e){const o=n;return String(t)[o(359)](e,"0")}(r,Math[n(351)](2,o));case n(413):case n(406):return yt(r,!1);case n(431):case n(425):return yt(r,!0);case n(342):return vt(r,!1);case n(366):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(416)](t);return Array[o(408)](n[o(401)]())[o(379)](t=>t.is(o(422),"ol")&&t[o(428)](o(392)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(434)](97+t)+n,i=Math[o(414)]((i-1)/26)}return e?n[o(362)]():n}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=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(394)]()}class It 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=U(),Ct.insert=H().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();R()(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:N.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:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.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 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}=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=Et();return(xt=function(t,e){return o[t-=291]})(t,e)}function Et(){var t=["requires","pluginName","858308lHdRbj","1954295mRKfzj","6WnnXGD","60985GkxIwu","1189035isZKSt","8CLTbsz","384962AWuLkJ","94929DFNLUd","2IyyIJP","12jtBMgq","3993100oCXclL","72WIPEXM","isOfficialPlugin","FootnotesProperties","isPremiumPlugin"];return(Et=function(){return t})()}var St=xt;!function(t){for(var e=xt,o=t();;)try{if(199811===parseInt(e(294))/1*(parseInt(e(292))/2)+-parseInt(e(293))/3+-parseInt(e(297))/4*(parseInt(e(306))/5)+-parseInt(e(305))/6*(parseInt(e(304))/7)+parseInt(e(291))/8*(-parseInt(e(307))/9)+parseInt(e(296))/10+-parseInt(e(303))/11*(-parseInt(e(295))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[St(302)](){return St(299)}static get[St(301)](){return[gt,Ft]}static get[St(298)](){return!0}static get[St(300)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=283]})(t,e)}function Tt(){var t=["2660818wIWAvJ","3772680OAOCtC","7642050JHXjbj","661470VDfNmC","6025369zEwkxf","1959459MlIWms","5iWwruJ","16981592GbkbxM"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(833745===-parseInt(e(288))/1+-parseInt(e(285))/2+-parseInt(e(290))/3+parseInt(e(286))/4+parseInt(e(283))/5*(parseInt(e(287))/6)+-parseInt(e(289))/7+parseInt(e(284))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|