@ckeditor/ckeditor5-footnotes 47.6.0-alpha.4 → 47.6.0-alpha.6

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.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -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),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,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:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["_trackedElements","delete","reset","has","element","26657026eNaoSY","$text","insert","add","length","getElementKey","root","70LRZwev","1075398GZdzYj","4987890uSYxfO","attributes","_elementName","$graveyard","10JlLpwZ","rootName","type","42fAGDuN","flat","clear","3300600VMQBMH","get","slice","remove","name","set","10LhCuJy","createRangeOn","elementName","getChanges","nodeAfter","getItems","from","values","position","push","840342oAetQt","674607crZWwJ","174132IjIYoA","_getElementKey","_model"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=190]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(974042===parseInt(e(207))/1+parseInt(e(224))/2*(parseInt(e(190))/3)+parseInt(e(191))/4*(-parseInt(e(206))/5)+-parseInt(e(234))/6*(-parseInt(e(215))/7)+parseInt(e(218))/8+parseInt(e(208))/9+parseInt(e(212))/10*(-parseInt(e(199))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(193)];[c(210)];[c(192)];[c(194)]=new Map;constructor(t,e){const o=c;this[o(193)]=t,this[o(210)]=e[o(226)],this[o(192)]=e[o(204)]}[c(196)](){const t=c;this[t(194)][t(217)]()}[c(227)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(201)===i[e(214)]&&e(200)!==i[e(222)]&&i[e(232)][e(228)]){const t=this[e(193)][e(225)](i[e(232)][e(228)]);for(const o of t[e(229)]()){if(!o.is(e(198),this[e(210)]))continue;const t=this[e(192)](o);n[e(197)](t)||n[e(223)](t,[]),n[e(219)](t)[e(233)](o)}}if(e(221)===i[e(214)]&&i[e(222)]===this[e(210)]){const t=this[e(192)]({getAttribute:t=>i[e(209)][e(219)](t)});o[e(202)](t)}}for(const[t,n]of this[e(194)])e(211)===n[e(205)][e(213)]&&o[e(202)](t);for(const t of o)this[e(194)][e(195)](t);for(const[t,o]of n)this[e(194)][e(223)](t,o[o[e(203)]-1]);const i=new Set;for(const[t,s]of n)o[e(197)](t)&&(i[e(202)](s[0]),s[e(203)]>1?n[e(223)](t,s[e(220)](1)):n[e(195)](t),o[e(195)](t));return{removed:Array[e(230)](o),inserted:Array[e(230)](n[e(231)]())[e(216)](),moved:Array[e(230)](i)}}}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=244]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(543919===parseInt(e(254))/1*(parseInt(e(253))/2)+parseInt(e(303))/3+-parseInt(e(316))/4+parseInt(e(292))/5+-parseInt(e(301))/6*(-parseInt(e(323))/7)+-parseInt(e(327))/8+parseInt(e(258))/9*(parseInt(e(297))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(276)]=[];[u(296)]=null;[u(283)]=null;[u(307)];[u(289)];[u(272)];static get[u(284)](){return u(277)}static get[u(336)](){return!0}static get[u(261)](){return!0}constructor(t){const e=u;super(t),this[e(307)]=new l(this[e(331)][e(310)],{elementName:e(280),getElementKey:()=>e(281)}),this[e(289)]=new l(this[e(331)][e(310)],{elementName:e(304),getElementKey:t=>t[e(256)](e(299))}),this[e(272)]=new l(this[e(331)][e(310)],{elementName:e(247),getElementKey:t=>t[e(256)](e(299))})}[u(278)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(264)][t(262)](e=>{const n=t,i=o[n(264)][n(265)][n(315)]();let s=!1;return this[n(244)](e,i)&&(s=!0),this[n(286)](e,i)&&(s=!0),this[n(302)](e,i)&&(s=!0),this[n(332)](e)&&(s=!0),this[n(328)](e)&&(s=!0),this[n(311)](e)&&(s=!0),s}),this[t(268)](o[t(264)],t(318),()=>{const e=t;o[e(330)]({isUndoable:!1},t=>{this[e(251)](t)})},{priority:t(274)}),this[t(268)](n,t(312),()=>{const e=t;this[e(276)]=[],this[e(307)][e(337)](),this[e(289)][e(337)](),this[e(272)][e(337)]()},{priority:t(335)})}[u(249)](){return this[u(296)]}[u(250)](t){const e=u;return this[e(276)][e(300)](e=>e.id===t)||null}[u(344)](){const t=u;return Array[t(308)](this[t(276)])}[u(305)](){return this[u(283)]}[u(259)](t){this[u(283)]=t}[u(255)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(276)][o(314)];i++)this[o(334)](t,i)&&(n=!0);return n}[u(340)](t,e){const o=u,n=t[o(339)](o(280),{});return t[o(290)](n,e),this[o(296)]=n,n}[u(251)](t){const e=u;if(!this[e(276)][e(314)]||this[e(296)])return;const o=this[e(276)][0][e(291)][e(293)],n=this[e(340)](t,o);for(const o of this[e(276)])o[e(317)][e(248)]||t[e(298)](o[e(317)],n,e(319));this[e(255)](t)}[u(244)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(307)][o(315)](e);if(r[o(314)]&&(this[o(296)]=r[0]),i[o(314)])if(i[o(314)]>1||this[o(296)]&&i[o(245)](t=>t!==this[o(296)])){const e=t[o(339)](o(280),{}),s=[];this[o(296)]&&s[o(282)](this[o(296)]),s[o(282)](...i),t[o(298)](e,s[0],o(279));for(const n of s)t[o(329)](t[o(288)](n),t[o(294)](e,o(319))),t[o(338)](n);this[o(296)]=e,this[o(255)](t),n=!0}else this[o(296)]=i[0];if(s[o(314)]&&o(266)===this[o(296)]?.[o(293)][o(269)]){for(const e of this[o(276)])t[o(338)](e[o(291)]),n=!0;this[o(276)]=[],this[o(296)]=null}return n}[u(286)](t,e){const o=u;let n=!1;const i=this[o(331)][o(326)][o(341)](o(333)),{inserted:s,moved:r}=this[o(272)][o(315)](e);for(const e of[...r,...s]){const s=e[o(256)](o(299)),r=this[o(250)](s);r&&(r[o(317)]=e),p(t,i,e)&&(n=!0)}return n}[u(302)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(289)][o(315)](e);for(const e of i)this[o(306)](t,e)&&(n=!0);for(const e of s)this[o(260)](t,e)&&(n=!0);for(const e of r)this[o(343)](t,e)&&(n=!0);return n}[u(328)](t){const e=u;if(!this[e(296)])return!1;let o=!1;if(this[e(296)][e(313)]!==this[e(276)][e(314)]){const n=[];for(const t of this[e(296)][e(295)]()){const i=t[e(256)](e(299));this[e(250)](i)||(n[e(287)](t),o=!0)}for(const o of n)t[e(338)](o)}const n=new Set,i=[];for(const t of this[e(296)][e(295)]()){const s=t[e(256)](e(299));n[e(325)](s)?(i[e(287)](t),o=!0):n[e(322)](s)}for(const o of i)t[e(338)](o);return this[e(296)][e(313)]||(t[e(338)](this[e(296)]),this[e(296)]=null,o=!0),o}[u(260)](t,e){const o=u;if(this[o(276)][o(300)](t=>t[o(291)]===e))return!1;let n=!1;const i=e[o(256)](o(299)),s=this[o(276)][o(320)](t=>t.id===i);-1!==s&&(t[o(338)](this[o(276)][s][o(291)]),this[o(276)][o(257)](s,1),n=!0);let r=this[o(296)]?function(t,e){const n=o;for(const o of t[n(295)]())if(o[n(256)](n(299))===e)return o;return null}(this[o(296)],i):null;r||(r=t[o(339)](o(247),{footnoteId:i}),this[o(296)]&&(t[o(298)](r,this[o(296)],o(319)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(331)][o(310)],this[o(276)],e);this[o(276)][o(257)](c,0,a);let l=c;return-1!==s&&(l=Math[o(270)](c,s)),this[o(255)](t,l)&&(n=!0),n}[u(306)](t,e){const o=u,n=this[o(276)][o(320)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(276)][n];return o(266)!==s[o(317)][o(293)][o(269)]&&(t[o(338)](s[o(317)]),i=!0),this[o(276)][o(257)](n,1),this[o(255)](t,n)&&(i=!0),i}[u(343)](t,e){const o=u,n=e[o(256)](o(299)),i=this[o(276)][o(320)](t=>t.id===n),s=this[o(276)][i];let r=!1;s[o(291)]=e,this[o(276)][o(257)](i,1);const a=m(this[o(331)][o(310)],this[o(276)],e);return this[o(276)][o(257)](a,0,s),this[o(255)](t,Math[o(270)](i,a))&&(r=!0),r}[u(334)](t,e){const o=u;if(!this[o(296)])return!1;const n=this[o(276)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(296)],digits:String(this[o(276)][o(314)])[o(314)],value:e+1}):String(e+1),n[o(291)][o(256)](o(263))!=i&&(t[o(275)](o(263),i,n[o(291)]),!0)}[u(311)](t){const e=u;if(!this[e(296)]||this[e(276)][e(314)]<2)return!1;if(function(t,o){const n=e;if(t[n(314)]!==o[n(314)])return!1;for(let e=0;e<t[n(314)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(276)][e(267)](t=>t.id),Array[e(308)](this[e(296)][e(295)]())[e(267)](t=>t[e(256)](e(299)))))return!1;let o=!1;for(let n=0;n<this[e(276)][e(314)];n++){const i=this[e(276)][n],s=t[e(271)](i[e(317)]),r=t[e(294)](this[e(296)],n);s[e(252)](r)||(t[e(329)](t[e(309)](i[e(317)]),r),o=!0)}return o}[u(332)](t){const e=u;if(!this[e(276)][e(314)])return!1;const{model:o}=this[e(331)];let n=!1;for(let i=0;i<this[e(276)][e(314)]-1;i++){const s=this[e(276)][i],r=this[e(276)][i+1],a=o[e(271)](s[e(291)]),c=o[e(271)](r[e(291)]);e(285)===a[e(342)](c)&&(this[e(343)](t,s[e(291)]),i=-1,n=!0)}return n}}function h(){const t=["8Hvtkde","_updateFootnotesCounters","getAttribute","splice","2932830XREEHR","setFootnoteFormatter","_handleInsertedFootnoteReference","isPremiumPlugin","registerPostFixer","footnoteCounter","document","differ","$graveyard","map","listenTo","rootName","min","createPositionBefore","_footnoteDefsTracker","paragraph","low","setAttribute","_footnotes","FootnotesTracker","init","before","footnotesDefinitions","singleton","push","_footnoteFormatter","pluginName","after","_handleFootnoteDefinitionsChanges","unshift","createRangeIn","_footnoteRefsTracker","append","reference","590625mLCTHM","root","createPositionAt","getChildren","_footnotesDefinitions","10skAdOa","insert","footnoteId","find","64902gsbPmk","_handleFootnoteReferencesChanges","1239021REBQPO","footnoteRef","getFootnotesFormatter","_handleRemoveFootnoteReferenceById","_footnoteDefsContainerTracker","from","createRangeOn","model","_sortFootnoteDefinitions","set","childCount","length","getChanges","2065736TiTxrR","definition","change:data","end","findIndex","indexOf","add","427thQkui","footnoteInlineContent","has","config","5655472ilAePx","_handleFootnotesDefinitionsObjectSync","move","enqueueChange","editor","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","_updateFootnoteRefCounter","high","isOfficialPlugin","reset","remove","createElement","_insertEmptyFootnotesDefinitionsContainer","get","compareWith","_handleMovedFootnoteReference","getFootnotes","_handleFootnotesDefinitionsObjectChanges","some","getRootNames","footnoteDefinition","parent","getFootnotesDefinitionsObjectElement","getFootnote","_ensureFootnotesDefinitionsContainerExists","isEqual","62612mAhJMo"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(313)])return!1;const i=n(e?273:324);return t[n(298)](t[n(339)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(314)])return 0;const i=t[n(271)](o);for(let o=0;o<e[n(314)];o++){const s=e[o],r=t[n(271)](s[n(291)]);if(n(279)===i[n(342)](r))return o}const s=o[n(293)];let r=-1;for(let t=e[n(314)]-1;t>=0;t--)if(e[t][n(291)][n(293)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(264)][n(246)](),c=a[n(321)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(314)];t++)if(e[t][n(291)][n(293)][n(269)]===l)return t;return e[n(314)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=216]})(t,e)}function y(){const t=["getItems","test","675075GuuSlg","insert-footnote-command-executed-with-invalid-id","getFirstRange","end","checkChild","3116190yGrvWl","3960330EenCgX","16TnBWle","refresh","change","length","footnoteRef","string","model","isObject","2565670IGubNu","864304nDmtev","editor","execute","isEnabled","plugins","1107005hcVLBQ","insertObject","isBlock","get","_moveSelectionToFootnoteDefinition","document","footnoteId","createElement","3298683JDTHgp","FootnotesEditing","selection","64qYSjpc","18aUdSOu","_getPositionToInsertFootnote"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(854476===-parseInt(e(250))/1+parseInt(e(218))/2+-parseInt(e(242))/3+parseInt(e(220))/4*(parseInt(e(234))/5)+parseInt(e(219))/6+-parseInt(e(229))/7*(parseInt(e(245))/8)+-parseInt(e(246))/9*(-parseInt(e(228))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(221)](){const t=g,e=this[t(230)][t(226)][t(239)][t(244)],o=this[t(247)](e);this[t(232)]=!!o}[g(231)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(239)],r=this[e(247)](s);if(!r)return;const a=o[e(233)][e(237)](e(243)),c=t?.[e(240)]??(0,i.uid)();!function(t){const o=e;return o(225)==typeof t&&t[o(223)]>0&&!/\s/[o(249)](t)&&!/^\d/[o(249)](t)}(c)?(0,i.logWarning)(e(251)):(n[e(222)](t=>{const o=e,i=t[o(241)](o(224),{footnoteId:c});n[o(235)](i,r,null)}),a[e(238)](c))}[g(247)](t){const e=g,{model:o}=this[e(230)],{schema:n}=o,i=t[e(252)]();for(const t of i[e(248)]())if(n[e(236)](t)||n[e(227)](t))return null;const s=i[e(216)];return n[e(217)](s,e(224))?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=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([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[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([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[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1772323200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([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})=>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})=>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 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 S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);function P(t,e){const o=D();return(P=function(t,e){return o[t-=294]})(t,e)}const T=P;function D(){const t=["content","footnoteInlineContent","push","toModel","2EDYLWs","document","createRangeIn","isOfficialPlugin","contentInsertion","429864AdMdEc","from","keys","getData","28xKrWQz","_defineClipboardIntegration","footnotesDefinitions","length","createElement","find","insert","getRanges","change","568364gvXbzZ","_insertEmptyFootnotesDefinitionsContainer","getChildren","_handlePasteFootnotesDefinitions","string","dataTransfer","2845856VQhbth","pluginName","listenTo","_handleCopyFootnotesDefinitions","get","setData","selection","setAttribute","getFirstRange","htmlProcessor","init","stringify","end","335crPnKc","remove","121JkmEql","element","getFootnotesDefinitionsObjectElement","footnoteId","9lXtGPF","drop","getFootnote","hasAttribute","append","application/ckeditor5-footnotes","config","parse","toView","add","clipboardInput","getAttribute","footnoteRef","requires","entries","footnotes.multiBlock","isPremiumPlugin","7518lerKAh","FootnotesClipboard","cloneElement","getFootnotes","includes","1215945TfnBOj","flatMap","getSelectedBlocks","editor","reduce","create","1882490WGlFQM","definition","sourceEditorId","root","toData","data","footnoteDefinition","method","outputTransformation","1114428svukjF","editing"];return(D=function(){return t})()}!function(t){const e=P,o=t();for(;;)try{if(415876===parseInt(e(344))/1+-parseInt(e(326))/2*(parseInt(e(305))/3)+-parseInt(e(350))/4+-parseInt(e(363))/5*(parseInt(e(300))/6)+parseInt(e(335))/7*(parseInt(e(331))/8)+parseInt(e(369))/9*(-parseInt(e(311))/10)+parseInt(e(365))/11*(parseInt(e(320))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(351)](){return T(301)}static get[T(296)](){return[v,A.ClipboardPipeline]}static get[T(329)](){return!0}static get[T(299)](){return!0}[T(360)](){this[T(336)]()}[T(336)](){const t=T;this[t(353)](),this[t(347)]()}[T(353)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(354)](A.ClipboardPipeline),s=o[t(354)](d);this[t(352)](i,t(319),(o,i)=>{const r=t,a=V(n[r(328)](i[r(322)]));if(!a[r(338)])return;const c=s[r(303)](),l=a[r(309)]((t,o)=>{const n=r,i=c[n(340)](t=>t.id===o);if(i){const o=e[n(316)][n(377)](i[n(312)],{isClipboardPipeline:!0}),s=e[n(316)][n(359)][n(315)](o);t[i.id]=s}return t},Object[r(310)](null));i[r(349)][r(355)](r(374),JSON[r(361)](l))})}[T(347)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(321)],r=n[t(354)](A.ClipboardPipeline),a=n[t(354)](d),c=e[t(375)][t(354)](t(298));let l=null;this[t(352)](s[t(327)],t(379),(e,o)=>{const n=t,i=o[n(349)][n(334)](n(374));l=i?JSON[n(376)](i):null}),this[t(352)](r,t(330),(n,s)=>{const r=t,u=s[r(313)]===this[r(308)].id;u&&r(370)===s[r(318)]||o[r(343)](t=>{const n=r;let f=a[n(367)]();const d=!!f&&Array[n(332)](o[n(327)][n(356)][n(307)]())[n(304)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(366),e(295)))return!0;return!1}(o[n(328)](s[n(322)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(310)](null);for(const e of i[o(346)]())e.is(o(366),o(317))&&e[o(372)](o(368))&&(s[e[o(294)](o(368))]=t[o(302)](e,!0));return Object[o(333)](s)[o(338)]?s:null}(t,s[n(322)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(328)](e))n.is(o(366),o(337))&&i[o(324)](n);for(const e of i)t[o(364)](e)}(t,s[n(322)]),!l)return;const{selection:h}=o[n(327)],p=h[n(358)]()[n(314)];f&&!d||(f=L(t,s[n(322)]),f||=a[n(345)](t,p));const m=Array[n(332)](h[n(342)]())[n(306)](V),g=function(t,e,o){const s=n,r=Object[s(310)](null);for(const{item:n}of t[s(328)](e))if(n.is(s(366),s(295))){const e=n[s(294)](s(368));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(357)](s(368),r[e],n)}return r}(t,s[n(322)],t=>{const e=n;return!u||!!a[e(371)](t)&&!m[e(304)](t)});for(const[o,i]of Object[n(297)](l)){const s=g[o]||o;let r;if(n(348)!=typeof i)r=i,s!==o&&t[n(357)](n(368),s,r);else{r=t[n(339)](n(317),{footnoteId:s});const o=e[n(316)][n(359)][n(377)](i);let a;if(c)a=e[n(316)][n(325)](o,r);else{a=t[n(339)](n(323));const i=e[n(316)][n(325)](o,a);t[n(341)](i,a)}t[n(373)](a,r)}t[n(341)](r,f,n(362))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(328)](e))if(n.is(o(366),o(337)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(366),e(295))&&o[e(378)](n[e(294)](e(368)));return Array[e(332)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),W=o(123),z=o.n(W),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=U().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class 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",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:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=$;function Y(){var t=["860WWxRBT","pluginName","isPremiumPlugin","5505615WBlxtD","10546542ERWagz","57770XkmAeR","154oAdsLk","isOfficialPlugin","33875QfqTDU","requires","240954VyCLYk","Footnotes","9128250HDvDMX","1711558SoGbXd","8AUWlAa"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=146]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(918742===parseInt(e(149))/1+-parseInt(e(156))/2+parseInt(e(154))/3+parseInt(e(151))/4*(-parseInt(e(159))/5)+-parseInt(e(146))/6*(parseInt(e(157))/7)+parseInt(e(150))/8*(-parseInt(e(155))/9)+parseInt(e(148))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[X(152)](){return X(147)}static get[X(160)](){return[v,_,Z]}static get[X(158)](){return!0}static get[X(153)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=310]})(t,e)}function nt(){const t=["21fyPkfE","52416870ShsNrK","1108626yVhrBJ","upper-alpha","decimal","lower-roman","3406794SLiQPx","upper-latin","7300960uBlTsl","lower-alpha","9jezgnj","332onvwLS","3542901psKJuJ","upper-roman","lower-latin","decimal-leading-zero","1811345PGcHJW","104575fbOnHM"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(965790===parseInt(e(321))/1+-parseInt(e(311))/2+-parseInt(e(317))/3+parseInt(e(316))/4*(-parseInt(e(322))/5)+parseInt(e(325))/6*(-parseInt(e(323))/7)+-parseInt(e(313))/8+parseInt(e(315))/9*(parseInt(e(324))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(327),et(320),et(319),et(312),et(314),et(326),et(310),et(318)];function st(t,e){const o=at();return(st=function(t,e){return o[t-=439]})(t,e)}const rt=st;function at(){const t=["11VmqNRw","execute","setAttribute","477rYhBFu","getFootnotesDefinitionsObjectElement","get","5607826thKDFb","89224yyMqep","includes","model","_updateFootnotesCounters","getAttribute","isEnabled","value","plugins","200210zCHDKF","6pSuqHe","2505292ZBRHPm","839710oSnYfF","change","refresh","5dADnMw","footnotesListStyle","25820364RUKirZ","133143ZwLdpA","3tgvCAf"];return(at=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(439880===-parseInt(e(444))/1+-parseInt(e(464))/2*(-parseInt(e(445))/3)+parseInt(e(463))/4*(-parseInt(e(441))/5)+-parseInt(e(462))/6*(parseInt(e(452))/7)+-parseInt(e(453))/8*(parseInt(e(449))/9)+-parseInt(e(461))/10*(-parseInt(e(446))/11)+parseInt(e(443))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[rt(440)](){const t=rt,{editor:e}=this,o=e[t(460)][t(451)](d)[t(450)]();this[t(458)]=!!o,this[t(459)]=o?.[t(457)](t(442))??null}[rt(447)]({value:t}){const e=rt,{editor:o}=this,n=o[e(460)][e(451)](d),i=n[e(450)]();i&&it[e(454)](t)&&o[e(455)][e(439)](o=>{const s=e;o[s(448)](s(442),t,i),n[s(456)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(854384===-parseInt(e(121))/1+parseInt(e(130))/2+-parseInt(e(120))/3+parseInt(e(124))/4*(-parseInt(e(122))/5)+parseInt(e(137))/6+parseInt(e(128))/7*(parseInt(e(117))/8)+parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(132)](){const t=lt,{editor:e}=this,o=e[t(127)][t(125)](d)[t(126)]();this[t(118)]=!!o,this[t(123)]=o?.[t(131)](t(136))??null}[lt(135)]({value:t}){const e=lt,{editor:o}=this,n=o[e(127)][e(125)](d),i=n[e(126)]();i&&Number[e(133)](t)&&o[e(116)][e(119)](o=>{const s=e;o[s(129)](s(136),t,i),n[s(138)](o)})}}function dt(){const t=["2551545CuXvLA","value","8iUHZHa","get","getFootnotesDefinitionsObjectElement","plugins","5642CvNgIw","setAttribute","1245530kbaSMI","getAttribute","refresh","isInteger","5997609ThQOHI","execute","footnotesListStart","1158438FXFQyr","_updateFootnotesCounters","model","11576SuyjzE","isEnabled","change","1399131bGFIZO","307142RudAhX"];return(dt=function(){return t})()}function ht(t,e){const o=wt();return(ht=function(t,e){return o[t-=286]})(t,e)}const pt=ht;!function(t){const e=ht,o=t();for(;;)try{if(874350===parseInt(e(302))/1+-parseInt(e(301))/2*(-parseInt(e(383))/3)+-parseInt(e(373))/4+parseInt(e(328))/5+parseInt(e(299))/6+-parseInt(e(313))/7+parseInt(e(305))/8*(parseInt(e(327))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(wt);class mt extends t.Plugin{static get[pt(317)](){return pt(286)}static get[pt(294)](){return[v,d]}static get[pt(293)](){return!0}static get[pt(308)](){return!0}[pt(380)](){const t=pt,{editor:e}=this;e[t(289)][t(320)](t(345),t(343)),e[t(289)][t(320)](t(312),1),e[t(352)][t(307)](t(356),new ct(e)),e[t(352)][t(307)](t(338),new ft(e)),this[t(318)](),this[t(337)](),this[t(329)](),this[t(335)]()}[pt(318)](){const t=pt,{editor:e}=this,{schema:o}=e[t(363)];o[t(330)](t(369),{allowAttributes:[t(357),t(315)]})}[pt(337)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(322)](t(385))[t(307)](e=>{const o=t;e.on(o(377),(t,e,n)=>{const s=o,r=e[s(334)],a=e[s(333)]?.[s(370)];r[s(292)](s(378))&&a?.is(s(368),s(369))&&(function(t,e,o,n){const i=s;if(!n[i(326)](e,i(315)))return;let r=1;const a=o[i(382)][i(349)](t,{attributes:i(365)});if(a){const e=Number[i(324)](t[i(287)](i(365)),10);Number[i(344)](e)||(r=e)}!a&&e[i(304)](i(315))||o[i(372)][i(381)](i(315),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(326)](e,i(357)))return;let r=i(343),a=!1;if(o[i(382)][i(349)](t,{attributes:i(288)})){const e={1:i(343),a:i(342),A:i(291),i:i(350),I:i(375)}[t[i(287)](i(288))];e&&(r=e),a=!0}o[i(382)][i(349)](t,{styles:i(323)})&&(r=function(t){const e=i;switch(t){case e(342):return e(353);case e(291):return e(297);default:return t}}(t[i(336)](i(323))),a=!0),!a&&e[i(304)](i(357))||o[i(372)][i(381)](i(357),r,e)}(r,a,n,i))})}),o[t(322)](t(340))[t(307)](e=>{const o=t;e.on(o(354),(t,e,n)=>{const i=o;if(!n[i(382)][i(349)](e[i(303)],t[i(310)]))return;const s=gt(e[i(303)],n[i(296)]),{attributeNewValue:r}=e;null==r||1===r?n[i(372)][i(358)](i(365),s):n[i(372)][i(381)](i(365),String(r),s)}),e.on(o(306),(t,e,n)=>{const i=o;if(!n[i(382)][i(349)](e[i(303)],t[i(310)]))return;const s=gt(e[i(303)],n[i(296)]),{attributeNewValue:r}=e;r&&i(343)!==r?n[i(372)][i(376)](i(323),r,s):n[i(372)][i(359)](i(323),s)})})}[pt(335)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(331)][t(325)](d),i=this[t(295)](),s=this[t(311)]();o[t(347)][t(366)](e=>{const r=t,a=o[r(347)][r(321)][r(341)]();let c=!1;for(const t of a){if(r(364)!==t[r(288)]||r(374)===t[r(310)])continue;const n=o[r(360)](t[r(379)][r(346)]);for(const t of n[r(348)]())t.is(r(368),r(369))&&(!t[r(304)](r(315))&&o[r(290)][r(326)](t,r(315))&&(e[r(381)](r(315),s,t),c=!0),!t[r(304)](r(357))&&o[r(290)][r(326)](t,r(357))&&(e[r(381)](r(357),i,t),c=!0))}return c&&n[r(355)](e),c})}[pt(329)](){const t=pt,{editor:e}=this;e[t(331)][t(325)](d)[t(371)](e=>this[t(314)](e))}[pt(295)](){const t=pt;return this[t(298)][t(289)][t(325)](t(345))}[pt(311)](){const t=pt;return this[t(298)][t(289)][t(325)](t(312))}[pt(314)]({container:t,value:e,digits:o}){const n=pt,i=t[n(287)](n(357)),s=t[n(287)](n(315)),r=Math[n(309)](e)+(s??1)-1;switch(i){case n(332):return function(t,e){const o=n;return String(t)[o(339)](e,"0")}(r,Math[n(362)](2,o));case n(342):case n(353):return yt(r,!1);case n(291):case n(297):return yt(r,!0);case n(350):return vt(r,!1);case n(375):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(319)](t);return Array[o(351)](n[o(316)]())[o(361)](t=>t.is(o(368),"ol")&&t[o(292)](o(378)))}function wt(){const t=["_updateFootnotesCounters","footnotesStyle","footnotesListStyle","removeAttribute","removeStyle","createRangeOn","find","max","model","insert","start","registerPostFixer","toUpperCase","element","footnotesDefinitions","parent","setFootnoteFormatter","writer","6679404GELUOx","$text","upper-roman","setStyle","element:ol","footnotes-list","position","init","setAttribute","consumable","537oRdPcq","toLowerCase","upcast","FootnotesPropertiesEditing","getAttribute","type","config","schema","upper-alpha","hasClass","isOfficialPlugin","requires","_getDefaultListStyle","mapper","upper-latin","editor","521286iwUdCn","fromCharCode","2962ZGKRIK","1585250CQUCuj","item","hasAttribute","24swaEkh","attribute:footnotesListStyle:footnotesDefinitions","add","isPremiumPlugin","floor","name","_getDefaultStartIndex","footnotes.footnotesProperties.defaultStartIndex","3588242pbjcKE","_formatFootnoteListValue","footnotesListStart","getChildren","pluginName","_defineSchema","toViewElement","define","differ","for","list-style-type","parseInt","get","checkAttribute","1327761SrnMVT","3384950SZwuFr","_defineFormatter","extend","plugins","decimal-leading-zero","modelCursor","viewItem","_definePostfixer","getStyle","_defineConverters","footnotesStart","padStart","downcast","getChanges","lower-alpha","decimal","isNaN","footnotes.footnotesProperties.defaultListStyle","nodeAfter","document","getItems","consume","lower-roman","from","commands","lower-latin","attribute:footnotesListStart:footnotesDefinitions"];return(wt=function(){return t})()}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(300)](97+t)+n,i=Math[o(309)]((i-1)/26)}return e?n[o(367)]():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=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(384)]()}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=z(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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 Et(t,e){var o=St();return(Et=function(t,e){return o[t-=340]})(t,e)}var xt=Et;function St(){var t=["462759wFZmaB","7886bgBhrG","isOfficialPlugin","9eUJdEl","811730RcfKCj","requires","3882760EumNma","416480iCGBEq","680jYBSvj","10196qrGkdP","isPremiumPlugin","1757682Zzpqug","FootnotesProperties","pluginName","17lAnieu"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(358e3===parseInt(e(351))/1*(-parseInt(e(353))/2)+-parseInt(e(352))/3+parseInt(e(346))/4*(parseInt(e(345))/5)+-parseInt(e(348))/6+parseInt(e(343))/7+parseInt(e(344))/8+-parseInt(e(340))/9*(parseInt(e(341))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(350)](){return xt(349)}static get[xt(342)](){return[mt,Ft]}static get[xt(354)](){return!0}static get[xt(347)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=302]})(t,e)}function Tt(){var t=["569229qajeSJ","1578353MDLaJe","36wFtYUM","669379IMNqyp","32viAwJl","20xNBOew","7701318CIQTDK","11754193MZJcom","2149560aSAckS","5206488sPlzrL","2eaIDxy"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(768268===parseInt(e(306))/1*(parseInt(e(302))/2)+-parseInt(e(303))/3*(-parseInt(e(307))/4)+-parseInt(e(311))/5+-parseInt(e(305))/6*(-parseInt(e(304))/7)+parseInt(e(312))/8+-parseInt(e(309))/9+parseInt(e(308))/10*(-parseInt(e(310))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["elementName","set","values","14hOoPtG","type","slice","31854746QWRtuf","_getElementKey","10NZBNDt","rootName","remove","delete","_trackedElements","push","3652752WBpRAR","from","8222526wSZZfs","createRangeOn","nodeAfter","get","getChanges","$text","getElementKey","length","flat","7118UbOzfl","6694900NwOfvU","root","$graveyard","153LuMFIW","reset","name","insert","18498dVFJFt","_model","add","element","has","clear","_elementName","attributes","16LvYCms","position","1893666NsGBYf","getItems"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=192]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(461625===-parseInt(e(199))/1*(parseInt(e(195))/2)+-parseInt(e(203))/3*(parseInt(e(211))/4)+-parseInt(e(223))/5*(-parseInt(e(213))/6)+-parseInt(e(218))/7*(parseInt(e(229))/8)+-parseInt(e(231))/9+-parseInt(e(196))/10+parseInt(e(221))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(204)];[r(209)];[r(222)];[r(227)]=new Map;constructor(t,e){const o=r;this[o(204)]=t,this[o(209)]=e[o(215)],this[o(222)]=e[o(192)]}[r(200)](){const t=r;this[t(227)][t(208)]()}[r(235)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(202)===i[e(219)]&&e(236)!==i[e(201)]&&i[e(212)][e(233)]){const t=this[e(204)][e(232)](i[e(212)][e(233)]);for(const o of t[e(214)]()){if(!o.is(e(206),this[e(209)]))continue;const t=this[e(222)](o);n[e(207)](t)||n[e(216)](t,[]),n[e(234)](t)[e(228)](o)}}if(e(225)===i[e(219)]&&i[e(201)]===this[e(209)]){const t=this[e(222)]({getAttribute:t=>i[e(210)][e(234)](t)});o[e(205)](t)}}for(const[t,n]of this[e(227)])e(198)===n[e(197)][e(224)]&&o[e(205)](t);for(const t of o)this[e(227)][e(226)](t);for(const[t,o]of n)this[e(227)][e(216)](t,o[o[e(193)]-1]);const i=new Set;for(const[t,s]of n)o[e(207)](t)&&(i[e(205)](s[0]),s[e(193)]>1?n[e(216)](t,s[e(220)](1)):n[e(226)](t),o[e(226)](t));return{removed:Array[e(230)](o),inserted:Array[e(230)](n[e(217)]())[e(194)](),moved:Array[e(230)](i)}}}function f(t,e){const o=h();return(f=function(t,e){return o[t-=119]})(t,e)}const u=f;!function(t){const e=f,o=t();for(;;)try{if(813003===parseInt(e(136))/1+-parseInt(e(217))/2*(parseInt(e(212))/3)+parseInt(e(199))/4*(parseInt(e(204))/5)+-parseInt(e(176))/6+parseInt(e(180))/7+-parseInt(e(153))/8+-parseInt(e(145))/9*(-parseInt(e(205))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(166)]=[];[u(187)]=null;[u(192)]=null;[u(135)];[u(207)];[u(211)];static get[u(171)](){return u(133)}static get[u(149)](){return!0}static get[u(121)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(144)][e(160)],{elementName:e(167),getElementKey:()=>e(150)}),this[e(207)]=new l(this[e(144)][e(160)],{elementName:e(177),getElementKey:t=>t[e(129)](e(175))}),this[e(211)]=new l(this[e(144)][e(160)],{elementName:e(131),getElementKey:t=>t[e(129)](e(175))})}[u(155)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(142)][t(190)](e=>{const n=t,i=o[n(142)][n(141)][n(169)]();let s=!1;return this[n(178)](e,i)&&(s=!0),this[n(172)](e,i)&&(s=!0),this[n(124)](e,i)&&(s=!0),this[n(216)](e)&&(s=!0),this[n(123)](e)&&(s=!0),this[n(203)](e)&&(s=!0),s}),this[t(120)](o[t(142)],t(208),()=>{const e=t;o[e(201)]({isUndoable:!1},t=>{this[e(134)](t)})},{priority:t(139)}),this[t(120)](n,t(195),()=>{const e=t;this[e(166)]=[],this[e(135)][e(185)](),this[e(207)][e(185)](),this[e(211)][e(185)]()},{priority:t(152)})}[u(132)](){return this[u(187)]}[u(191)](t){const e=u;return this[e(166)][e(174)](e=>e.id===t)||null}[u(140)](){const t=u;return Array[t(198)](this[t(166)])}[u(219)](){return this[u(192)]}[u(154)](t){this[u(192)]=t}[u(137)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(166)][o(206)];i++)this[o(143)](t,i)&&(n=!0);return n}[u(165)](t,e){const o=u,n=t[o(218)](o(167),{});return t[o(156)](n,e),this[o(187)]=n,n}[u(134)](t){const e=u;if(!this[e(166)][e(206)]||this[e(187)])return;const o=this[e(166)][0][e(162)][e(193)],n=this[e(165)](t,o);for(const o of this[e(166)])o[e(184)][e(127)]||t[e(183)](o[e(184)],n,e(122));this[e(137)](t)}[u(178)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(169)](e);if(r[o(206)]&&(this[o(187)]=r[0]),i[o(206)])if(i[o(206)]>1||this[o(187)]&&i[o(202)](t=>t!==this[o(187)])){const e=t[o(218)](o(167),{}),s=[];this[o(187)]&&s[o(119)](this[o(187)]),s[o(119)](...i),t[o(183)](e,s[0],o(170));for(const n of s)t[o(197)](t[o(163)](n),t[o(181)](e,o(122))),t[o(200)](n);this[o(187)]=e,this[o(137)](t),n=!0}else this[o(187)]=i[0];if(s[o(206)]&&o(126)===this[o(187)]?.[o(193)][o(209)]){for(const e of this[o(166)])t[o(200)](e[o(162)]),n=!0;this[o(166)]=[],this[o(187)]=null}return n}[u(172)](t,e){const o=u;let n=!1;const i=this[o(144)][o(189)][o(147)](o(128)),{inserted:s,moved:r}=this[o(211)][o(169)](e);for(const e of[...r,...s]){const s=e[o(129)](o(175)),r=this[o(191)](s);r&&(r[o(184)]=e),p(t,i,e)&&(n=!0)}return n}[u(124)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(207)][o(169)](e);for(const e of i)this[o(214)](t,e)&&(n=!0);for(const e of s)this[o(130)](t,e)&&(n=!0);for(const e of r)this[o(215)](t,e)&&(n=!0);return n}[u(123)](t){const e=u;if(!this[e(187)])return!1;let o=!1;if(this[e(187)][e(151)]!==this[e(166)][e(206)]){const n=[];for(const t of this[e(187)][e(168)]()){const i=t[e(129)](e(175));this[e(191)](i)||(n[e(148)](t),o=!0)}for(const o of n)t[e(200)](o)}const n=new Set,i=[];for(const t of this[e(187)][e(168)]()){const s=t[e(129)](e(175));n[e(138)](s)?(i[e(148)](t),o=!0):n[e(196)](s)}for(const o of i)t[e(200)](o);return this[e(187)][e(151)]||(t[e(200)](this[e(187)]),this[e(187)]=null,o=!0),o}[u(130)](t,e){const o=u;if(this[o(166)][o(174)](t=>t[o(162)]===e))return!1;let n=!1;const i=e[o(129)](o(175)),s=this[o(166)][o(213)](t=>t.id===i);-1!==s&&(t[o(200)](this[o(166)][s][o(162)]),this[o(166)][o(125)](s,1),n=!0);let r=this[o(187)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(129)](n(175))===e)return o;return null}(this[o(187)],i):null;r||(r=t[o(218)](o(131),{footnoteId:i}),this[o(187)]&&(t[o(183)](r,this[o(187)],o(122)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(144)][o(160)],this[o(166)],e);this[o(166)][o(125)](c,0,a);let l=c;return-1!==s&&(l=Math[o(210)](c,s)),this[o(137)](t,l)&&(n=!0),n}[u(214)](t,e){const o=u,n=this[o(166)][o(213)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(166)][n];return o(126)!==s[o(184)][o(193)][o(209)]&&(t[o(200)](s[o(184)]),i=!0),this[o(166)][o(125)](n,1),this[o(137)](t,n)&&(i=!0),i}[u(215)](t,e){const o=u,n=e[o(129)](o(175)),i=this[o(166)][o(213)](t=>t.id===n),s=this[o(166)][i];let r=!1;s[o(162)]=e,this[o(166)][o(125)](i,1);const a=m(this[o(144)][o(160)],this[o(166)],e);return this[o(166)][o(125)](a,0,s),this[o(137)](t,Math[o(210)](i,a))&&(r=!0),r}[u(143)](t,e){const o=u;if(!this[o(187)])return!1;const n=this[o(166)][e];let i;return i=this[o(192)]?this[o(192)]({footnote:n,container:this[o(187)],digits:String(this[o(166)][o(206)])[o(206)],value:e+1}):String(e+1),n[o(162)][o(129)](o(164))!=i&&(t[o(194)](o(164),i,n[o(162)]),!0)}[u(203)](t){const e=u;if(!this[e(187)]||this[e(166)][e(206)]<2)return!1;if(function(t,o){const n=e;if(t[n(206)]!==o[n(206)])return!1;for(let e=0;e<t[n(206)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(166)][e(179)](t=>t.id),Array[e(198)](this[e(187)][e(168)]())[e(179)](t=>t[e(129)](e(175)))))return!1;let o=!1;for(let n=0;n<this[e(166)][e(206)];n++){const i=this[e(166)][n],s=t[e(161)](i[e(184)]),r=t[e(181)](this[e(187)],n);s[e(186)](r)||(t[e(197)](t[e(157)](i[e(184)]),r),o=!0)}return o}[u(216)](t){const e=u;if(!this[e(166)][e(206)])return!1;const{model:o}=this[e(144)];let n=!1;for(let i=0;i<this[e(166)][e(206)]-1;i++){const s=this[e(166)][i],r=this[e(166)][i+1],a=o[e(161)](s[e(162)]),c=o[e(161)](r[e(162)]);e(158)===a[e(182)](c)&&(this[e(215)](t,s[e(162)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(151)])return!1;const i=n(e?159:188);return t[n(183)](t[n(218)](i),o),!0}function h(){const t=["_updateFootnoteRefCounter","editor","18wlvbQB","getRootNames","get","unshift","isOfficialPlugin","singleton","childCount","high","11194696NmLxRw","setFootnoteFormatter","init","append","createRangeOn","after","paragraph","model","createPositionBefore","reference","createRangeIn","footnoteCounter","_insertEmptyFootnotesDefinitionsContainer","_footnotes","footnotesDefinitions","getChildren","getChanges","before","pluginName","_handleFootnoteDefinitionsChanges","indexOf","find","footnoteId","4281222xDLNBL","footnoteRef","_handleFootnotesDefinitionsObjectChanges","map","355327PZNIYx","createPositionAt","compareWith","insert","definition","reset","isEqual","_footnotesDefinitions","footnoteInlineContent","config","registerPostFixer","getFootnote","_footnoteFormatter","root","setAttribute","set","add","move","from","1156240uqUyvy","remove","enqueueChange","some","_sortFootnoteDefinitions","20VmSWXZ","11832110zjxyfj","length","_footnoteRefsTracker","change:data","rootName","min","_footnoteDefsTracker","3cWlaAu","findIndex","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","_ensureFootnotesReferencesHaveProperOrder","1642722nPoqRy","createElement","getFootnotesFormatter","push","listenTo","isPremiumPlugin","end","_handleFootnotesDefinitionsObjectSync","_handleFootnoteReferencesChanges","splice","$graveyard","parent","footnotes.multiBlock","getAttribute","_handleInsertedFootnoteReference","footnoteDefinition","getFootnotesDefinitionsObjectElement","FootnotesTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsContainerTracker","173815cClpYT","_updateFootnotesCounters","has","low","getFootnotes","differ","document"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(206)])return 0;const i=t[n(161)](o);for(let o=0;o<e[n(206)];o++){const s=e[o],r=t[n(161)](s[n(162)]);if(n(170)===i[n(182)](r))return o}const s=o[n(193)];let r=-1;for(let t=e[n(206)]-1;t>=0;t--)if(e[t][n(162)][n(193)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(142)][n(146)](),c=a[n(173)](s[n(209)]),l=a[c+1];if(l)for(let t=0;t<e[n(206)];t++)if(e[t][n(162)][n(193)][n(209)]===l)return t;return e[n(206)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=238]})(t,e)}function y(){const t=["insertObject","model","28829lXspNb","143742mTdLPS","726186GDVxBo","length","editor","document","footnoteRef","307304VWkMaY","execute","279KpbMjU","_moveSelectionToFootnoteDefinition","FootnotesEditing","end","isEnabled","test","plugins","_getPositionToInsertFootnote","footnoteId","selection","change","62gmKWec","isBlock","string","getItems","createElement","35MwcVDr","get","insert-footnote-command-executed-with-invalid-id","getFirstRange","isObject","checkChild","1150675kZwUDs","5674620MWpNWc","refresh","4040696WOTjwI"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(638578===parseInt(e(240))/1*(parseInt(e(260))/2)+parseInt(e(242))/3+-parseInt(e(274))/4+-parseInt(e(271))/5+parseInt(e(241))/6*(parseInt(e(265))/7)+parseInt(e(247))/8*(parseInt(e(249))/9)+-parseInt(e(272))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(273)](){const t=g,e=this[t(244)][t(239)][t(245)][t(258)],o=this[t(256)](e);this[t(253)]=!!o}[g(248)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(245)],r=this[e(256)](s);if(!r)return;const a=o[e(255)][e(266)](e(251)),c=t?.[e(257)]??(0,i.uid)();!function(t){const o=e;return o(262)==typeof t&&t[o(243)]>0&&!/\s/[o(254)](t)&&!/^\d/[o(254)](t)}(c)?(0,i.logWarning)(e(267)):(n[e(259)](t=>{const o=e,i=t[o(264)](o(246),{footnoteId:c});n[o(238)](i,r,null)}),a[e(250)](c))}[g(256)](t){const e=g,{model:o}=this[e(244)],{schema:n}=o,i=t[e(268)]();for(const t of i[e(263)]())if(n[e(261)](t)||n[e(269)](t))return null;const s=i[e(252)];return n[e(270)](s,e(246))?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:1772496e3;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 T=A;function D(){const t=["document","toModel","footnoteDefinition","cloneElement","method","597554EWHvKx","get","append","contentInsertion","getChildren","selection","1484010JhYQzl","3084416pbslYc","setData","footnoteRef","clipboardInput","init","51YfVwhQ","1187207QYjCtS","keys","application/ckeditor5-footnotes","editor","dataTransfer","editing","remove","setAttribute","listenTo","FootnotesClipboard","length","includes","outputTransformation","htmlProcessor","change","createElement","footnoteId","getSelectedBlocks","getFootnotesDefinitionsObjectElement","createRangeIn","create","hasAttribute","parse","push","end","add","getAttribute","toData","getFootnotes","element","config","content","pluginName","_defineClipboardIntegration","getData","52436IQmiUC","_handleCopyFootnotesDefinitions","definition","string","stringify","_handlePasteFootnotesDefinitions","flatMap","isOfficialPlugin","find","reduce","2BfETfx","getFootnote","insert","toView","drop","getRanges","entries","requires","16113141KLmhEQ","footnoteInlineContent","from","sourceEditorId","3465318AcpBfD","getFirstRange","footnotes.multiBlock","root","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","footnotesDefinitions","data"];return(D=function(){return t})()}function A(t,e){const o=D();return(A=function(t,e){return o[t-=394]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(311538===parseInt(e(408))/1*(-parseInt(e(466))/2)+parseInt(e(420))/3*(-parseInt(e(456))/4)+-parseInt(e(414))/5+-parseInt(e(395))/6+-parseInt(e(421))/7+parseInt(e(415))/8+parseInt(e(474))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(453)](){return T(430)}static get[T(473)](){return[v,P.ClipboardPipeline]}static get[T(463)](){return!0}static get[T(399)](){return!0}[T(419)](){this[T(454)]()}[T(454)](){const t=T;this[t(457)](),this[t(461)]()}[T(457)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(409)](P.ClipboardPipeline),s=o[t(409)](d);this[t(429)](i,t(433),(o,i)=>{const r=t,a=O(n[r(440)](i[r(452)]));if(!a[r(431)])return;const c=s[r(449)](),l=a[r(465)]((t,o)=>{const n=r,i=c[n(464)](t=>t.id===o);if(i){const o=e[n(402)][n(469)](i[n(458)],{isClipboardPipeline:!0}),s=e[n(402)][n(434)][n(448)](o);t[i.id]=s}return t},Object[r(441)](null));i[r(425)][r(416)](r(423),JSON[r(460)](l))})}[T(461)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(426)],r=n[t(409)](P.ClipboardPipeline),a=n[t(409)](d),c=e[t(451)][t(409)](t(397));let l=null;this[t(429)](s[t(403)],t(418),(e,o)=>{const n=t,i=o[n(425)][n(455)](n(423));l=i?JSON[n(443)](i):null}),this[t(429)](r,t(411),(n,s)=>{const r=t,f=s[r(394)]===this[r(424)].id;f&&r(470)===s[r(407)]||o[r(435)](t=>{const n=r;let u=a[n(439)]();const d=!!u&&Array[n(476)](o[n(403)][n(413)][n(438)]())[n(432)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(450),e(417)))return!0;return!1}(o[n(440)](s[n(452)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(441)](null);for(const e of i[o(412)]())e.is(o(450),o(405))&&e[o(442)](o(437))&&(s[e[o(447)](o(437))]=t[o(406)](e,!0));return Object[o(422)](s)[o(431)]?s:null}(t,s[n(452)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(440)](e))n.is(o(450),o(401))&&i[o(444)](n);for(const e of i)t[o(427)](e)}(t,s[n(452)]),!l)return;const{selection:p}=o[n(403)],h=p[n(396)]()[n(398)];u&&!d||(u=L(t,s[n(452)]),u||=a[n(400)](t,h));const m=Array[n(476)](p[n(471)]())[n(462)](O),g=function(t,e,o){const s=n,r=Object[s(441)](null);for(const{item:n}of t[s(440)](e))if(n.is(s(450),s(417))){const e=n[s(447)](s(437));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(428)](s(437),r[e],n)}return r}(t,s[n(452)],t=>{const e=n;return!f||!!a[e(467)](t)&&!m[e(432)](t)});for(const[o,i]of Object[n(472)](l)){const s=g[o]||o;let r;if(n(459)!=typeof i)r=i,s!==o&&t[n(428)](n(437),s,r);else{r=t[n(436)](n(405),{footnoteId:s});const o=e[n(402)][n(434)][n(469)](i);let a;if(c)a=e[n(402)][n(404)](o,r);else{a=t[n(436)](n(475));const i=e[n(402)][n(404)](o,a);t[n(468)](i,a)}t[n(410)](a,r)}t[n(468)](r,u,n(445))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(440)](e))if(n.is(o(450),o(401)))return n;return null}function O(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(450),e(417))&&o[e(446)](n[e(447)](e(437)));return Array[e(476)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),B=o.n(j),M=o(102),W=o.n(M),U=o(123),z=o.n(U),H=o(741),q=o.n(H),Y=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=W().bind(null,"head"),X.domAPI=B(),X.insertStyleElement=q();K()(Y.A,X);Y.A&&Y.A.locals&&Y.A.locals;class Q 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",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.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 Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.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 G=J;function $(){var t=["45071ZzTigP","17265nXismb","1610292FqffDE","isOfficialPlugin","Footnotes","requires","2675092YWraCc","pluginName","56ewrHAO","107146UnAYgf","900225BJjhWx","12AlasWe","855965oDffBj","isPremiumPlugin"];return($=function(){return t})()}function J(t,e){var o=$();return(J=function(t,e){return o[t-=226]})(t,e)}!function(t){for(var e=J,o=t();;)try{if(212067===-parseInt(e(236))/1+parseInt(e(231))/2+-parseInt(e(237))/3*(parseInt(e(233))/4)+parseInt(e(234))/5+-parseInt(e(238))/6+-parseInt(e(228))/7+-parseInt(e(230))/8*(-parseInt(e(232))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(229)](){return G(226)}static get[G(227)](){return[v,_,Q]}static get[G(239)](){return!0}static get[G(235)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=437]})(t,e)}function nt(){const t=["618170rYoajm","decimal-leading-zero","10UBOHnp","decimal","38124mwjdko","upper-latin","64373htYVLb","150777MAzOBc","lower-alpha","172172mULuIx","45CFzKjM","upper-roman","upper-alpha","8ORatjE","968VaToUO","lower-latin","lower-roman","1450809FUKmcd","792vDmEsu"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(166282===-parseInt(e(441))/1+parseInt(e(454))/2+parseInt(e(453))/3*(parseInt(e(449))/4)+parseInt(e(445))/5*(parseInt(e(439))/6)+-parseInt(e(444))/7+-parseInt(e(448))/8*(parseInt(e(452))/9)+parseInt(e(437))/10*(-parseInt(e(442))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(438),et(455),et(450),et(440),et(443),et(447),et(451),et(446)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=495]})(t,e)}function at(){const t=["plugins","model","1292206MqaOvb","value","236036ZQOfXa","includes","getFootnotesDefinitionsObjectElement","get","4913955PhCWBo","execute","footnotesListStyle","setAttribute","isEnabled","6654kbwdeK","4425120FPXvRI","3sYNBmU","20KIlaXj","3887088dQGect","2548700eYWYap","change","_updateFootnotesCounters","getAttribute","refresh","1LoVQhA"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(392367===-parseInt(e(501))/1*(-parseInt(e(504))/2)+parseInt(e(517))/3*(parseInt(e(506))/4)+parseInt(e(518))/5*(parseInt(e(515))/6)+-parseInt(e(516))/7+-parseInt(e(495))/8+parseInt(e(510))/9+parseInt(e(496))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(500)](){const t=st,{editor:e}=this,o=e[t(502)][t(509)](d)[t(508)]();this[t(514)]=!!o,this[t(505)]=o?.[t(499)](t(512))??null}[st(511)]({value:t}){const e=st,{editor:o}=this,n=o[e(502)][e(509)](d),i=n[e(508)]();i&&it[e(507)](t)&&o[e(503)][e(497)](o=>{const s=e;o[s(513)](s(512),t,i),n[s(498)](o)})}}function lt(){const t=["13179720vIYKWX","7048735zHxksC","setAttribute","getAttribute","isEnabled","4074kCwVtQ","isInteger","18992ByGMkd","193038KIVtyU","change","_updateFootnotesCounters","plugins","value","8352144QOpSuZ","footnotesListStart","10tIWjuO","execute","model","refresh","413194RUMrdg","get","22eRxLtS","1512004ozsTPg","6nOyOwW","getFootnotesDefinitionsObjectElement"];return(lt=function(){return t})()}const ft=ut;function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(726564===-parseInt(e(236))/1+parseInt(e(232))/2*(-parseInt(e(225))/3)+parseInt(e(214))/4+parseInt(e(218))/5*(parseInt(e(215))/6)+parseInt(e(222))/7*(parseInt(e(224))/8)+parseInt(e(230))/9+parseInt(e(217))/10*(-parseInt(e(238))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class dt extends t.Command{[ft(235)](){const t=ft,{editor:e}=this,o=e[t(228)][t(237)](d)[t(216)]();this[t(221)]=!!o,this[t(229)]=o?.[t(220)](t(231))??null}[ft(233)]({value:t}){const e=ft,{editor:o}=this,n=o[e(228)][e(237)](d),i=n[e(216)]();i&&Number[e(223)](t)&&o[e(234)][e(226)](o=>{const s=e;o[s(219)](s(231),t,i),n[s(227)](o)})}}const pt=mt;function ht(){const t=["fromCharCode","checkAttribute","_updateFootnotesCounters","position","lower-latin","18yxCgQG","upper-latin","110033QWvDMe","define","for","removeAttribute","getChildren","_defineConverters","_defineFormatter","toViewElement","schema","footnotes.footnotesProperties.defaultListStyle","add","$text","411728vWUgVO","parseInt","downcast","get","config","getStyle","name","start","requires","135456QHsEEx","isOfficialPlugin","model","find","footnotesStyle","footnotes.footnotesProperties.defaultStartIndex","init","_formatFootnoteListValue","type","pluginName","footnotes-list","attribute:footnotesListStyle:footnotesDefinitions","lower-alpha","isPremiumPlugin","list-style-type","_getDefaultListStyle","insert","max","nodeAfter","14984hiKElc","document","from","_getDefaultStartIndex","viewItem","commands","hasClass","getChanges","padStart","66MzylIo","footnotesListStart","element:ol","setAttribute","differ","lower-roman","element","modelCursor","removeStyle","getItems","3050010wSPXHT","upper-alpha","consume","item","writer","getAttribute","isNaN","setStyle","attribute:footnotesListStart:footnotesDefinitions","toLowerCase","footnotesListStyle","upper-roman","5914776pEyGwk","_definePostfixer","mapper","decimal","consumable","1112865RRsdLp","registerPostFixer","FootnotesPropertiesEditing","plugins","decimal-leading-zero","editor","extend","createRangeOn","hasAttribute","_defineSchema","floor","parent","toUpperCase","footnotesStart","upcast","footnotesDefinitions","setFootnoteFormatter"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=433]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(605279===-parseInt(e(462))/1+-parseInt(e(481))/2*(parseInt(e(439))/3)+parseInt(e(453))/4+-parseInt(e(517))/5+-parseInt(e(490))/6*(parseInt(e(441))/7)+parseInt(e(512))/8+parseInt(e(500))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[pt(471)](){return pt(519)}static get[pt(461)](){return[v,d]}static get[pt(463)](){return!0}static get[pt(475)](){return!0}[pt(468)](){const t=pt,{editor:e}=this;e[t(457)][t(442)](t(450),t(515)),e[t(457)][t(442)](t(467),1),e[t(486)][t(451)](t(466),new ct(e)),e[t(486)][t(451)](t(530),new dt(e)),this[t(526)](),this[t(446)](),this[t(447)](),this[t(513)]()}[pt(526)](){const t=pt,{editor:e}=this,{schema:o}=e[t(464)];o[t(523)](t(532),{allowAttributes:[t(510),t(491)]})}[pt(446)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(443)](t(531))[t(451)](e=>{const o=t;e.on(o(492),(t,e,n)=>{const s=o,r=e[s(485)],a=e[s(497)]?.[s(528)];r[s(487)](s(472))&&a?.is(s(496),s(532))&&(function(t,e,o,n){const i=s;if(!n[i(435)](e,i(491)))return;let r=1;const a=o[i(516)][i(502)](t,{attributes:i(460)});if(a){const e=Number[i(454)](t[i(505)](i(460)),10);Number[i(506)](e)||(r=e)}!a&&e[i(525)](i(491))||o[i(504)][i(493)](i(491),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(435)](e,i(510)))return;let r=i(515),a=!1;if(o[i(516)][i(502)](t,{attributes:i(470)})){const e={1:i(515),a:i(474),A:i(501),i:i(495),I:i(511)}[t[i(505)](i(470))];e&&(r=e),a=!0}o[i(516)][i(502)](t,{styles:i(476)})&&(r=function(t){const e=i;switch(t){case e(474):return e(438);case e(501):return e(440);default:return t}}(t[i(458)](i(476))),a=!0),!a&&e[i(525)](i(510))||o[i(504)][i(493)](i(510),r,e)}(r,a,n,i))})}),o[t(443)](t(455))[t(451)](e=>{const o=t;e.on(o(508),(t,e,n)=>{const i=o;if(!n[i(516)][i(502)](e[i(503)],t[i(459)]))return;const s=wt(e[i(503)],n[i(514)]),{attributeNewValue:r}=e;null==r||1===r?n[i(504)][i(444)](i(460),s):n[i(504)][i(493)](i(460),String(r),s)}),e.on(o(473),(t,e,n)=>{const i=o;if(!n[i(516)][i(502)](e[i(503)],t[i(459)]))return;const s=wt(e[i(503)],n[i(514)]),{attributeNewValue:r}=e;r&&i(515)!==r?n[i(504)][i(507)](i(476),r,s):n[i(504)][i(498)](i(476),s)})})}[pt(513)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(520)][t(456)](d),i=this[t(477)](),s=this[t(484)]();o[t(482)][t(518)](e=>{const r=t,a=o[r(482)][r(494)][r(488)]();let c=!1;for(const t of a){if(r(478)!==t[r(470)]||r(452)===t[r(459)])continue;const n=o[r(524)](t[r(437)][r(480)]);for(const t of n[r(499)]())t.is(r(496),r(532))&&(!t[r(525)](r(491))&&o[r(449)][r(435)](t,r(491))&&(e[r(493)](r(491),s,t),c=!0),!t[r(525)](r(510))&&o[r(449)][r(435)](t,r(510))&&(e[r(493)](r(510),i,t),c=!0))}return c&&n[r(436)](e),c})}[pt(447)](){const t=pt,{editor:e}=this;e[t(520)][t(456)](d)[t(433)](e=>this[t(469)](e))}[pt(477)](){const t=pt;return this[t(522)][t(457)][t(456)](t(450))}[pt(484)](){const t=pt;return this[t(522)][t(457)][t(456)](t(467))}[pt(469)]({container:t,value:e,digits:o}){const n=pt,i=t[n(505)](n(510)),s=t[n(505)](n(491)),r=Math[n(527)](e)+(s??1)-1;switch(i){case n(521):return function(t,e){const o=n;return String(t)[o(489)](e,"0")}(r,Math[n(479)](2,o));case n(474):case n(438):return yt(r,!1);case n(501):case n(440):return yt(r,!0);case n(495):return vt(r,!1);case n(511):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(448)](t);return Array[o(483)](n[o(445)]())[o(465)](t=>t.is(o(496),"ol")&&t[o(487)](o(472)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(434)](97+t)+n,i=Math[o(527)]((i-1)/26)}return e?n[o(529)]():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=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(509)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.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,V.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 V.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 V.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 V.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 V.LabeledFieldView(this.locale,V.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=z(),Ct.insert=W().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.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,V.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 V.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}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=304]})(t,e)}function St(){var t=["1485gjDNSB","2004294JjLdBL","356PcIQgF","26943NgqIsW","requires","pluginName","1271840ZXeSvi","1896510iIuTgZ","2736643Hamncm","95rNxFyx","isPremiumPlugin","isOfficialPlugin","38470zXcEoR","634ZPEcHc","FootnotesProperties","5zwiFDL"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(516899===parseInt(e(311))/1*(-parseInt(e(315))/2)+-parseInt(e(305))/3*(parseInt(e(304))/4)+-parseInt(e(317))/5*(-parseInt(e(319))/6)+parseInt(e(310))/7+parseInt(e(308))/8+-parseInt(e(318))/9*(-parseInt(e(314))/10)+-parseInt(e(309))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(307)](){return xt(316)}static get[xt(306)](){return[gt,Ft]}static get[xt(313)](){return!0}static get[xt(312)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=258]})(t,e)}function Dt(){var t=["3101895PDvdPT","8444zOgnnH","2Lxqpxu","3515XYyDzK","1839756zBSrRM","6886852qxiIva","472KByXLT","718858XpdvHG","46962rjxUFU","36348230qOawqV"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(867573===parseInt(e(264))/1*(-parseInt(e(259))/2)+parseInt(e(262))/3+-parseInt(e(263))/4*(parseInt(e(265))/5)+-parseInt(e(266))/6+-parseInt(e(267))/7+-parseInt(e(258))/8*(parseInt(e(260))/9)+parseInt(e(261))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();