@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251120.0 → 0.0.0-nightly-20251122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:p,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:()=>Q,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["element","1153070xHahho","_model","4300210IdWqte","flat","name","length","type","2165994YGRSnB","get","_getElementKey","getChanges","reset","root","1063659RVrArh","remove","attributes","_trackedElements","2VKXTCT","values","set","$text","3164QPKaWp","createRangeOn","position","elementName","clear","_elementName","159500RRWtdE","has","insert","5742sXXyOc","push","from","$graveyard","getItems","getElementKey","add","rootName","delete","nodeAfter","314200fQfGda","slice","16VNnOEN"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=303]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(278986===-parseInt(e(345))/1+-parseInt(e(335))/2*(parseInt(e(331))/3)+parseInt(e(314))/4+parseInt(e(318))/5+parseInt(e(304))/6*(parseInt(e(339))/7)+parseInt(e(316))/8*(parseInt(e(325))/9)+-parseInt(e(320))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(319)];[a(344)];[a(327)];[a(334)]=new Map;constructor(t,e){const o=a;this[o(319)]=t,this[o(344)]=e[o(342)],this[o(327)]=e[o(309)]}[a(329)](){const t=a;this[t(334)][t(343)]()}[a(328)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(303)===i[e(324)]&&e(338)!==i[e(322)]&&i[e(341)][e(313)]){const t=this[e(319)][e(340)](i[e(341)][e(313)]);for(const o of t[e(308)]()){if(!o.is(e(317),this[e(344)]))continue;const t=this[e(327)](o);n[e(346)](t)||n[e(337)](t,[]),n[e(326)](t)[e(305)](o)}}if(e(332)===i[e(324)]&&i[e(322)]===this[e(344)]){const t=this[e(327)]({getAttribute:t=>i[e(333)][e(326)](t)});o[e(310)](t)}}for(const[t,n]of this[e(334)])e(307)===n[e(330)][e(311)]&&o[e(310)](t);for(const t of o)this[e(334)][e(312)](t);for(const[t,o]of n)this[e(334)][e(337)](t,o[o[e(323)]-1]);const i=new Set;for(const[t,s]of n)o[e(346)](t)&&(i[e(310)](s[0]),s[e(323)]>1?n[e(337)](t,s[e(315)](1)):n[e(312)](t),o[e(312)](t));return{removed:Array[e(306)](o),inserted:Array[e(306)](n[e(336)]())[e(321)](),moved:Array[e(306)](i)}}}function f(t,e){const o=d();return(f=function(t,e){return o[t-=466]})(t,e)}const u=f;function d(){const t=["getFootnotesDefinitionsObjectElement","footnotes.multiBlock","isEqual","35PranVG","singleton","indexOf","from","document","remove","parent","high","getAttribute","setAttribute","getChanges","_footnoteFormatter","createPositionBefore","createRangeOn","footnotesDefinitions","getFootnote","350151fKxtOm","length","model","reference","config","footnoteInlineContent","_updateFootnoteRefCounter","differ","registerPostFixer","unshift","find","_handleRemoveFootnoteReferenceById","createRangeIn","insert","FootnotesTracker","paragraph","set","listenTo","$graveyard","_ensureFootnotesDefinitionsContainerExists","_handleFootnotesDefinitionsObjectChanges","move","rootName","3CqqWwu","footnoteCounter","_footnoteDefsContainerTracker","_handleFootnoteDefinitionsChanges","childCount","reset","change:data","484LhLeck","29448ELJIAZ","get","44698FmMbJu","some","387LYoWKg","min","splice","init","after","getChildren","editor","_handleMovedFootnoteReference","_footnoteRefsTracker","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","pluginName","_footnotes","getFootnotesFormatter","_updateFootnotesCounters","_handleFootnotesDefinitionsObjectSync","21220ApTway","push","9162xuSLyk","getRootNames","1372YlrZsK","end","definition","before","_footnoteDefsTracker","_handleInsertedFootnoteReference","21HryyKI","isOfficialPlugin","low","getFootnotes","footnoteDefinition","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","createElement","_insertEmptyFootnotesDefinitionsContainer","append","enqueueChange","add","isPremiumPlugin","13jwuOOV","findIndex","has","createPositionAt","compareWith","footnoteId","map","footnoteRef","2210172Yyiiss","setFootnoteFormatter","root"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(114114===-parseInt(e(466))/1*(-parseInt(e(476))/2)+parseInt(e(547))/3+parseInt(e(498))/4*(parseInt(e(531))/5)+parseInt(e(496))/6*(-parseInt(e(504))/7)+-parseInt(e(474))/8*(parseInt(e(478))/9)+-parseInt(e(494))/10*(parseInt(e(473))/11)+parseInt(e(525))/12*(parseInt(e(517))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(490)]=[];[u(488)]=null;[u(542)]=null;[u(468)];[u(486)];[u(502)];static get[u(489)](){return u(561)}static get[u(505)](){return!0}static get[u(516)](){return!0}constructor(t){const e=u;super(t),this[e(468)]=new l(this[e(484)][e(549)],{elementName:e(545),getElementKey:()=>e(532)}),this[e(486)]=new l(this[e(484)][e(549)],{elementName:e(524),getElementKey:t=>t[e(539)](e(522))}),this[e(502)]=new l(this[e(484)][e(549)],{elementName:e(508),getElementKey:t=>t[e(539)](e(522))})}[u(481)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(535)][t(555)](e=>{const n=t,i=o[n(535)][n(554)][n(541)]();let s=!1;return this[n(567)](e,i)&&(s=!0),this[n(469)](e,i)&&(s=!0),this[n(509)](e,i)&&(s=!0),this[n(487)](e)&&(s=!0),this[n(493)](e)&&(s=!0),this[n(510)](e)&&(s=!0),s}),this[t(564)](o[t(535)],t(472),()=>{const e=t;o[e(514)]({isUndoable:!1},t=>{this[e(566)](t)})},{priority:t(506)}),this[t(564)](n,t(563),()=>{const e=t;this[e(490)]=[],this[e(468)][e(471)](),this[e(486)][e(471)](),this[e(502)][e(471)]()},{priority:t(538)})}[u(528)](){return this[u(488)]}[u(546)](t){const e=u;return this[e(490)][e(557)](e=>e.id===t)||null}[u(507)](){const t=u;return Array[t(534)](this[t(490)])}[u(491)](){return this[u(542)]}[u(526)](t){this[u(542)]=t}[u(492)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(490)][o(548)];i++)this[o(553)](t,i)&&(n=!0);return n}[u(512)](t,e){const o=u,n=t[o(511)](o(545),{});return t[o(513)](n,e),this[o(488)]=n,n}[u(566)](t){const e=u;if(!this[e(490)][e(548)]||this[e(488)])return;const o=this[e(490)][0][e(550)][e(527)],n=this[e(512)](t,o);for(const o of this[e(490)])o[e(500)][e(537)]||t[e(560)](o[e(500)],n,e(499));this[e(492)](t)}[u(567)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(468)][o(541)](e);if(r[o(548)]&&(this[o(488)]=r[0]),i[o(548)])if(i[o(548)]>1||this[o(488)]&&i[o(477)](t=>t!==this[o(488)])){const e=t[o(511)](o(545),{}),s=[];this[o(488)]&&s[o(495)](this[o(488)]),s[o(495)](...i),t[o(560)](e,s[0],o(501));for(const n of s)t[o(568)](t[o(559)](n),t[o(520)](e,o(499))),t[o(536)](n);this[o(488)]=e,this[o(492)](t),n=!0}else this[o(488)]=i[0];if(s[o(548)]&&o(565)===this[o(488)]?.[o(527)][o(569)]){for(const e of this[o(490)])t[o(536)](e[o(550)]),n=!0;this[o(490)]=[],this[o(488)]=null}return n}[u(469)](t,e){const o=u;let n=!1;const i=this[o(484)][o(551)][o(475)](o(529)),{inserted:s,moved:r}=this[o(502)][o(541)](e);for(const e of[...r,...s]){const s=e[o(539)](o(522)),r=this[o(546)](s);r&&(r[o(500)]=e),p(t,i,e)&&(n=!0)}return n}[u(509)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(486)][o(541)](e);for(const e of i)this[o(558)](t,e)&&(n=!0);for(const e of s)this[o(503)](t,e)&&(n=!0);for(const e of r)this[o(485)](t,e)&&(n=!0);return n}[u(493)](t){const e=u;if(!this[e(488)])return!1;let o=!1;if(this[e(488)][e(470)]!==this[e(490)][e(548)]){const n=[];for(const t of this[e(488)][e(483)]()){const i=t[e(539)](e(522));this[e(546)](i)||(n[e(556)](t),o=!0)}for(const o of n)t[e(536)](o)}const n=new Set,i=[];for(const t of this[e(488)][e(483)]()){const s=t[e(539)](e(522));n[e(519)](s)?(i[e(556)](t),o=!0):n[e(515)](s)}for(const o of i)t[e(536)](o);return this[e(488)][e(470)]||(t[e(536)](this[e(488)]),this[e(488)]=null,o=!0),o}[u(503)](t,e){const o=u;if(this[o(490)][o(557)](t=>t[o(550)]===e))return!1;let n=!1;const i=e[o(539)](o(522)),s=this[o(490)][o(518)](t=>t.id===i);-1!==s&&(t[o(536)](this[o(490)][s][o(550)]),this[o(490)][o(480)](s,1),n=!0);let r=this[o(488)]?function(t,e){const n=o;for(const o of t[n(483)]())if(o[n(539)](n(522))===e)return o;return null}(this[o(488)],i):null;r||(r=t[o(511)](o(508),{footnoteId:i}),this[o(488)]&&(t[o(560)](r,this[o(488)],o(499)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(484)][o(549)],this[o(490)],e);this[o(490)][o(480)](c,0,a);let l=c;return-1!==s&&(l=Math[o(479)](c,s)),this[o(492)](t,l)&&(n=!0),n}[u(558)](t,e){const o=u,n=this[o(490)][o(518)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(490)][n];return o(565)!==s[o(500)][o(527)][o(569)]&&(t[o(536)](s[o(500)]),i=!0),this[o(490)][o(480)](n,1),this[o(492)](t,n)&&(i=!0),i}[u(485)](t,e){const o=u,n=e[o(539)](o(522)),i=this[o(490)][o(518)](t=>t.id===n),s=this[o(490)][i];let r=!1;s[o(550)]=e,this[o(490)][o(480)](i,1);const a=m(this[o(484)][o(549)],this[o(490)],e);return this[o(490)][o(480)](a,0,s),this[o(492)](t,Math[o(479)](i,a))&&(r=!0),r}[u(553)](t,e){const o=u;if(!this[o(488)])return!1;const n=this[o(490)][e];let i;return i=this[o(542)]?this[o(542)]({footnote:n,container:this[o(488)],digits:String(this[o(490)][o(548)])[o(548)],value:e+1}):String(e+1),n[o(550)][o(539)](o(467))!=i&&(t[o(540)](o(467),i,n[o(550)]),!0)}[u(510)](t){const e=u;if(!this[e(488)]||this[e(490)][e(548)]<2)return!1;if(function(t,o){const n=e;if(t[n(548)]!==o[n(548)])return!1;for(let e=0;e<t[n(548)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(490)][e(523)](t=>t.id),Array[e(534)](this[e(488)][e(483)]())[e(523)](t=>t[e(539)](e(522)))))return!1;let o=!1;for(let n=0;n<this[e(490)][e(548)];n++){const i=this[e(490)][n],s=t[e(543)](i[e(500)]),r=t[e(520)](this[e(488)],n);s[e(530)](r)||(t[e(568)](t[e(544)](i[e(500)]),r),o=!0)}return o}[u(487)](t){const e=u;if(!this[e(490)][e(548)])return!1;const{model:o}=this[e(484)];let n=!1;for(let i=0;i<this[e(490)][e(548)]-1;i++){const s=this[e(490)][i],r=this[e(490)][i+1],a=o[e(543)](s[e(550)]),c=o[e(543)](r[e(550)]);e(482)===a[e(521)](c)&&(this[e(485)](t,s[e(550)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(470)])return!1;const i=n(e?562:552);return t[n(560)](t[n(511)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(548)])return 0;const i=t[n(543)](o);for(let o=0;o<e[n(548)];o++){const s=e[o],r=t[n(543)](s[n(550)]);if(n(501)===i[n(521)](r))return o}const s=o[n(527)];let r=-1;for(let t=e[n(548)]-1;t>=0;t--)if(e[t][n(550)][n(527)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(535)][n(497)](),c=a[n(533)](s[n(569)]),l=a[c+1];if(l)for(let t=0;t<e[n(548)];t++)if(e[t][n(550)][n(527)][n(569)]===l)return t;return e[n(548)]}function g(){const t=["476442AAADmL","75QIvKxI","FootnotesEditing","model","get","createElement","isObject","getItems","9215016xVeSgM","execute","153fbhZjO","editor","end","string","footnoteRef","change","353572LcAFNg","30224620vrAWXi","_moveSelectionToFootnoteDefinition","getFirstRange","checkChild","selection","footnoteId","refresh","14GMRoBP","3377124UwxXsS","_getPositionToInsertFootnote","length","insert-footnote-command-executed-with-invalid-id","document","test","isBlock","insertObject","plugins","13826vJWgXN","10620018CjhMvJ","isEnabled"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=443]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(666613===parseInt(e(464))/1+-parseInt(e(461))/2*(parseInt(e(474))/3)+-parseInt(e(443))/4*(parseInt(e(465))/5)+parseInt(e(452))/6*(-parseInt(e(451))/7)+parseInt(e(472))/8+-parseInt(e(462))/9+parseInt(e(444))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(450)](){const t=w,e=this[t(475)][t(467)][t(456)][t(448)],o=this[t(453)](e);this[t(463)]=!!o}[w(473)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(456)],r=this[e(453)](s);if(!r)return;const a=o[e(460)][e(468)](e(466)),c=t?.[e(449)]??(0,i.uid)();!function(t){const o=e;return o(477)==typeof t&&t[o(454)]>0&&!/\s/[o(457)](t)&&!/^\d/[o(457)](t)}(c)?(0,i.logWarning)(e(455)):(n[e(479)](t=>{const o=e,i=t[o(469)](o(478),{footnoteId:c});n[o(459)](i,r,null)}),a[e(445)](c))}[w(453)](t){const e=w,{model:o}=this[e(475)],{schema:n}=o,i=t[e(446)]();for(const t of i[e(471)]())if(n[e(458)](t)||n[e(470)](t))return null;const s=i[e(476)];return n[e(447)](s,e(478))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1763596800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).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(h).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})=>P(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)(P(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 P(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 E=o(331);const T=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=195]})(t,e)}function _(){const t=["outputTransformation","reduce","insert","listenTo","4619079ahZVti","definition","1146175HZtabL","push","42lBISpw","setData","getFootnote","find","footnotesDefinitions","toModel","from","_insertEmptyFootnotesDefinitionsContainer","drop","data","editor","6620560SXwEDg","append","add","footnoteDefinition","4476568UXofYT","getAttribute","application/ckeditor5-footnotes","selection","document","end","dataTransfer","requires","footnoteId","element","setAttribute","65271WmSUIO","sourceEditorId","FootnotesClipboard","688354dmfQDJ","change","content","contentInsertion","getData","331456WCgCcO","create","7PNbKor","createRangeIn","footnoteRef","includes","method","toView","remove","toData","clipboardInput","isPremiumPlugin","_defineClipboardIntegration","entries","editing","pluginName","parse","getFootnotes","root","htmlProcessor","getFootnotesDefinitionsObjectElement","getSelectedBlocks","_handleCopyFootnotesDefinitions","stringify","createElement","_handlePasteFootnotesDefinitions","get","flatMap","getFirstRange","init","getRanges","length","isOfficialPlugin"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(846262===-parseInt(e(205))/1+parseInt(e(200))/2+-parseInt(e(197))/3+parseInt(e(261))/4+-parseInt(e(244))/5*(parseInt(e(246))/6)+-parseInt(e(207))/7*(-parseInt(e(257))/8)+parseInt(e(242))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[T(220)](){return T(199)}static get[T(268)](){return[v,E.ClipboardPipeline]}static get[T(237)](){return!0}static get[T(216)](){return!0}[T(234)](){this[T(217)]()}[T(217)](){const t=T;this[t(227)](),this[t(230)]()}[T(227)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(231)](E.ClipboardPipeline),s=o[t(231)](h);this[t(241)](i,t(238),(o,i)=>{const r=t,a=L(n[r(208)](i[r(202)]));if(!a[r(236)])return;const c=s[r(222)](),l=a[r(239)]((t,o)=>{const n=r,i=c[n(249)](t=>t.id===o);if(i){const o=e[n(255)][n(212)](i[n(243)],{isClipboardPipeline:!0}),s=e[n(255)][n(224)][n(214)](o);t[i.id]=s}return t},Object[r(206)](null));i[r(267)][r(247)](r(263),JSON[r(228)](l))})}[T(230)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(219)],r=n[t(231)](E.ClipboardPipeline),a=n[t(231)](h);let c=null;this[t(241)](s[t(265)],t(215),(e,o)=>{const n=t,i=o[n(267)][n(204)](n(263));c=i?JSON[n(221)](i):null}),this[t(241)](r,t(203),(n,s)=>{const r=t,l=s[r(198)]===this[r(256)].id;l&&r(254)===s[r(211)]||o[r(201)](t=>{const n=r;let f=a[n(225)]();const u=!!f&&Array[n(252)](o[n(265)][n(264)][n(226)]())[n(210)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(208)](e))n.is(o(195),o(250))&&i[o(245)](n);for(const e of i)t[o(213)](e)}(t,s[n(202)]),!c)return;const{selection:d}=o[n(265)],h=d[n(233)]()[n(223)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(208)](e))if(n.is(o(195),o(250)))return n;return null}(t,s[n(202)]),f||=a[n(253)](t,h));const p=Array[n(252)](d[n(235)]())[n(232)](L),m=function(t,e,o){const s=n,r=Object[s(206)](null);for(const{item:n}of t[s(208)](e))if(n.is(s(195),s(209))){const e=n[s(262)](s(269));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(196)](s(269),r[e],n)}return r}(t,s[n(202)],t=>{const e=n;return!l||!!a[e(248)](t)&&!p[e(210)](t)});for(const[o,i]of Object[n(218)](c)){const s=m[o]||o,r=t[n(229)](n(260),{footnoteId:s}),a=e[n(255)][n(224)][n(212)](i),c=e[n(255)][n(251)](a,r);t[n(258)](c,r),t[n(240)](r,f,n(266))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(195),e(209))&&o[e(259)](n[e(262)](e(269)));return Array[e(252)](o)}var O=o(311),V=o(355),N=o(929),R=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),U=o(123),W=o.n(U),q=o(741),H=o.n(q),z=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=W(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=H();R()(z.A,J);z.A&&z.A.locals&&z.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,O.ButtonView)),e.add("menuBar:insertFootnote",Z(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(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:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=$;function Y(){var t=["308210TlHZUC","requires","Footnotes","isOfficialPlugin","117063oGPqHC","pluginName","2384690GqowWW","14gNqtkJ","401910QqtCjS","isPremiumPlugin","7301784rqZwmJ","1860376fgsqTF","928530cCwsvO"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=399]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(301395===-parseInt(e(407))/1+-parseInt(e(406))/2+parseInt(e(411))/3+parseInt(e(405))/4+-parseInt(e(400))/5+-parseInt(e(402))/6*(-parseInt(e(401))/7)+parseInt(e(404))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class Q extends t.Plugin{static get[G(399)](){return G(409)}static get[G(408)](){return[v,D,X]}static get[G(410)](){return!0}static get[G(403)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(283632===parseInt(e(222))/1+parseInt(e(235))/2*(-parseInt(e(225))/3)+-parseInt(e(219))/4+parseInt(e(233))/5*(parseInt(e(230))/6)+parseInt(e(234))/7*(-parseInt(e(223))/8)+parseInt(e(226))/9+parseInt(e(224))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(218),tt(229),tt(227),tt(220),tt(231),tt(228),tt(232),tt(221)];function nt(){const t=["807324wFPFRP","upper-latin","upper-roman","556546AgDwbN","3888ryBySU","2602100YOTilR","690981FpZKTp","2653884bfpKQN","lower-latin","upper-alpha","decimal-leading-zero","951882VNhVHR","lower-alpha","lower-roman","5vtHZeb","4669OBYvmV","4ojTmef","decimal"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=248]})(t,e)}function rt(){const t=["7691460TZqnFb","2880468yJpyPk","288832ZgOgiM","35PBAFek","5oocxVp","getFootnotesDefinitionsObjectElement","refresh","footnotesListStyle","model","_updateFootnotesCounters","822627VcPtTo","isEnabled","value","includes","18094390Uoatra","1538627lsgUJy","setAttribute","getAttribute","plugins","change","execute","14656482ZOkKkV","6bCquHP","get"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(900430===-parseInt(e(265))/1+-parseInt(e(248))/2*(-parseInt(e(260))/3)+-parseInt(e(251))/4*(parseInt(e(254))/5)+-parseInt(e(250))/6+-parseInt(e(253))/7*(-parseInt(e(252))/8)+parseInt(e(271))/9+parseInt(e(264))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(256)](){const t=it,{editor:e}=this,o=e[t(268)][t(249)](h)[t(255)]();this[t(261)]=!!o,this[t(262)]=o?.[t(267)](t(257))??null}[it(270)]({value:t}){const e=it,{editor:o}=this,n=o[e(268)][e(249)](h),i=n[e(255)]();i&&ot[e(263)](t)&&o[e(258)][e(269)](o=>{const s=e;o[s(266)](s(257),t,i),n[s(259)](o)})}}const ct=ft;function lt(){const t=["891153Ldwslp","936279PcfACa","get","1982376iifoGG","model","value","plugins","962DECkQJ","1950606recPiD","refresh","154716JIUYFx","24MoffrU","getAttribute","5MeyhlS","execute","change","88drVdmF","getFootnotesDefinitionsObjectElement","isInteger","50790OIgFDa","footnotesListStart","isEnabled","2inPetz","_updateFootnotesCounters","198236ugxlRn","setAttribute","6UTynoK"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=100]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(285606===-parseInt(e(106))/1*(-parseInt(e(104))/2)+-parseInt(e(110))/3+-parseInt(e(112))/4*(parseInt(e(122))/5)+-parseInt(e(108))/6*(-parseInt(e(117))/7)+-parseInt(e(120))/8*(parseInt(e(109))/9)+-parseInt(e(101))/10*(parseInt(e(125))/11)+parseInt(e(119))/12*(parseInt(e(116))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(118)](){const t=ct,{editor:e}=this,o=e[t(115)][t(111)](h)[t(126)]();this[t(103)]=!!o,this[t(114)]=o?.[t(121)](t(102))??null}[ct(123)]({value:t}){const e=ct,{editor:o}=this,n=o[e(115)][e(111)](h),i=n[e(126)]();i&&Number[e(100)](t)&&o[e(113)][e(124)](o=>{const s=e;o[s(107)](s(102),t,i),n[s(105)](o)})}}const dt=pt;function ht(){const t=["commands","differ","start","setAttribute","3054RZopKe","getChanges","_getDefaultStartIndex","writer","_updateFootnotesCounters","getAttribute","viewItem","lower-latin","fromCharCode","element","attribute:footnotesListStart:footnotesDefinitions","type","registerPostFixer","element:ol","218073arCBKs","add","requires","attribute:footnotesListStyle:footnotesDefinitions","parent","consumable","floor","FootnotesPropertiesEditing","document","toUpperCase","footnotes-list","list-style-type","decimal","find","extend","decimal-leading-zero","insert","hasAttribute","_definePostfixer","init","item","lower-alpha","config","_defineConverters","pluginName","createRangeOn","nodeAfter","footnotesDefinitions","2NpXaHh","_defineFormatter","500883sBznSn","setStyle","for","toLowerCase","name","get","setFootnoteFormatter","969130jkHsPF","plugins","footnotesStart","parseInt","footnotes.footnotesProperties.defaultStartIndex","633208hsChoa","isPremiumPlugin","removeAttribute","getStyle","toViewElement","hasClass","getItems","mapper","checkAttribute","footnotes.footnotesProperties.defaultListStyle","upper-roman","downcast","position","footnotesListStart","_getDefaultListStyle","$text","footnotesListStyle","consume","modelCursor","editor","from","upcast","max","padStart","getChildren","removeStyle","1911877LnjLPX","8NqwZhc","upper-alpha","footnotesStyle","define","isNaN","lower-roman","schema","36sqmDhu","isOfficialPlugin","_defineSchema","390610FfJjSb","_formatFootnoteListValue","upper-latin","model","3864JXhPty"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=424]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(261532===parseInt(e(490))/1+parseInt(e(518))/2*(-parseInt(e(520))/3)+-parseInt(e(457))/4*(-parseInt(e(425))/5)+parseInt(e(476))/6*(-parseInt(e(471))/7)+parseInt(e(430))/8*(parseInt(e(464))/9)+-parseInt(e(467))/10+-parseInt(e(456))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(514)](){return dt(497)}static get[dt(492)](){return[v,h]}static get[dt(465)](){return!0}static get[dt(431)](){return!0}[dt(509)](){const t=dt,{editor:e}=this;e[t(512)][t(460)](t(439),t(502)),e[t(512)][t(460)](t(429),1),e[t(472)][t(491)](t(459),new at(e)),e[t(472)][t(491)](t(427),new ut(e)),this[t(466)](),this[t(513)](),this[t(519)](),this[t(508)]()}[dt(466)](){const t=dt,{editor:e}=this,{schema:o}=e[t(470)];o[t(504)](t(517),{allowAttributes:[t(446),t(443)]})}[dt(513)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(522)](t(451))[t(491)](e=>{const o=t;e.on(o(489),(t,e,n)=>{const s=o,r=e[s(482)],a=e[s(448)]?.[s(494)];r[s(435)](s(500))&&a?.is(s(485),s(517))&&(function(t,e,o,n){const i=s;if(!n[i(438)](e,i(443)))return;let r=1;const a=o[i(495)][i(447)](t,{attributes:i(474)});if(a){const e=Number[i(428)](t[i(481)](i(474)),10);Number[i(461)](e)||(r=e)}!a&&e[i(507)](i(443))||o[i(479)][i(475)](i(443),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(438)](e,i(446)))return;let r=i(502),a=!1;if(o[i(495)][i(447)](t,{attributes:i(487)})){const e={1:i(502),a:i(511),A:i(458),i:i(462),I:i(440)}[t[i(481)](i(487))];e&&(r=e),a=!0}o[i(495)][i(447)](t,{styles:i(501)})&&(r=t[i(433)](i(501)),a=!0),!a&&e[i(507)](i(446))||o[i(479)][i(475)](i(446),r,e)}(r,a,n,i))})}),o[t(522)](t(441))[t(491)](e=>{const o=t;e.on(o(486),(t,e,n)=>{const i=o;if(!n[i(495)][i(447)](e[i(510)],t[i(524)]))return;const s=gt(e[i(510)],n[i(437)]),{attributeNewValue:r}=e;null==r||1===r?n[i(479)][i(432)](i(474),s):n[i(479)][i(475)](i(474),String(r),s)}),e.on(o(493),(t,e,n)=>{const i=o;if(!n[i(495)][i(447)](e[i(510)],t[i(524)]))return;const s=gt(e[i(510)],n[i(437)]),{attributeNewValue:r}=e;r&&i(502)!==r?n[i(479)][i(521)](i(501),r,s):n[i(479)][i(455)](i(501),s)})})}[dt(508)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(426)][t(525)](h),i=this[t(444)](),s=this[t(478)]();o[t(498)][t(488)](e=>{const r=t,a=o[r(498)][r(473)][r(477)]();let c=!1;for(const t of a){if(r(506)!==t[r(487)]||r(445)===t[r(524)])continue;const n=o[r(515)](t[r(442)][r(516)]);for(const t of n[r(436)]())t.is(r(485),r(517))&&(!t[r(507)](r(443))&&o[r(463)][r(438)](t,r(443))&&(e[r(475)](r(443),s,t),c=!0),!t[r(507)](r(446))&&o[r(463)][r(438)](t,r(446))&&(e[r(475)](r(446),i,t),c=!0))}return c&&n[r(480)](e),c})}[dt(519)](){const t=dt,{editor:e}=this;e[t(426)][t(525)](h)[t(424)](e=>this[t(468)](e))}[dt(444)](){const t=dt;return this[t(449)][t(512)][t(525)](t(439))}[dt(478)](){const t=dt;return this[t(449)][t(512)][t(525)](t(429))}[dt(468)]({container:t,value:e,digits:o}){const n=dt,i=t[n(481)](n(446)),s=t[n(481)](n(443)),r=Math[n(496)](e)+(s??1)-1;switch(i){case n(505):return function(t,e){const o=n;return String(t)[o(453)](e,"0")}(r,Math[n(452)](2,o));case n(511):case n(483):return wt(r,!1);case n(458):case n(469):return wt(r,!0);case n(462):return bt(r,!1);case n(440):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(434)](t);return Array[o(450)](n[o(454)]())[o(503)](t=>t.is(o(485),"ol")&&t[o(435)](o(500)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(484)](97+t)+n,i=Math[o(496)]((i-1)/26)}return e?n[o(499)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(523)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct 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:V.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:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),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 Ft(){var t=["4730RrmiuO","FootnotesProperties","1586210cgMlDe","2506670PgwSKQ","99PjlJNV","requires","759776tnPWjB","63nYMIBw","isPremiumPlugin","1141WOVYJn","4437660msjexM","222741epLZpy","3186NAQoEV","isOfficialPlugin","48OxiqeN","pluginName","1Bucwjc"];return(Ft=function(){return t})()}var xt=Pt;function Pt(t,e){var o=Ft();return(Pt=function(t,e){return o[t-=328]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(564118===parseInt(e(343))/1*(-parseInt(e(329))/2)+parseInt(e(338))/3*(-parseInt(e(341))/4)+-parseInt(e(330))/5+-parseInt(e(339))/6*(-parseInt(e(336))/7)+parseInt(e(333))/8*(-parseInt(e(334))/9)+-parseInt(e(344))/10+parseInt(e(331))/11*(parseInt(e(337))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Ft);class St extends t.Plugin{static get[xt(342)](){return xt(328)}static get[xt(332)](){return[mt,Ct]}static get[xt(340)](){return!0}static get[xt(335)](){return!0}}function Et(){var t=["6049880RwNegB","2898zcToaf","14973bBsWTi","546374nXwmUr","1554154ohBtTO","5110890uYosnN","5427890SOODcj","9kMmmva","46832152jUdTXv"];return(Et=function(){return t})()}function Tt(t,e){var o=Et();return(Tt=function(t,e){return o[t-=484]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(863019===-parseInt(e(488))/1+-parseInt(e(487))/2+-parseInt(e(489))/3+-parseInt(e(484))/4+parseInt(e(490))/5+-parseInt(e(485))/6*(parseInt(e(486))/7)+parseInt(e(492))/8*(parseInt(e(491))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,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=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=323]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","selection","getFirstRange","isBlock","insert-footnote-command-executed-with-invalid-id","5cAuSzW","createElement","1658448bNgimd","FootnotesEditing","366777xsiNhf","string","footnoteId","getItems","length","test","editor","change","plugins","3108252MDpblI","368DAQpUP","7216530wFFjSa","document","655304WflGWV","footnoteRef","3124962dPLitI","execute","3219416foHJqU","refresh","end","isEnabled","model","insertObject","get","isObject","checkChild","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(605409===parseInt(e(341))/1+parseInt(e(326))/2+parseInt(e(343))/3+-parseInt(e(345))/4*(parseInt(e(324))/5)+parseInt(e(339))/6+-parseInt(e(337))/7+-parseInt(e(338))/8*(parseInt(e(328))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(346)](){const t=g,e=this[t(334)][t(349)][t(340)][t(356)],o=this[t(355)](e);this[t(348)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(340)],r=this[e(355)](s);if(!r)return;const a=o[e(336)][e(351)](e(327)),c=t?.[e(330)]??(0,i.uid)();!function(t){const o=e;return o(329)==typeof t&&t[o(332)]>0&&!/\s/[o(333)](t)&&!/^\d/[o(333)](t)}(c)?(0,i.logWarning)(e(323)):(n[e(335)](t=>{const o=e,i=t[o(325)](o(342),{footnoteId:c});n[o(350)](i,r,null)}),a[e(354)](c))}[g(355)](t){const e=g,{model:o}=this[e(334)],{schema:n}=o,i=t[e(357)]();for(const t of i[e(331)]())if(n[e(358)](t)||n[e(352)](t))return null;const s=i[e(347)];return n[e(353)](s,e(342))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1763769600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(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)(P(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function P(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 E(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 S=o(331);const T=_;function D(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var N=o(311),R=o(355),V=o(929),O=o.n(V),K=o(297),M=o.n(K),j=o(102),B=o.n(j),W=o(123),U=o.n(W),z=o(741),H=o.n(z),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();O()(X.A,G);X.A&&X.A.locals&&X.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",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=151]})(t,e)}function Q(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return(Q=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,q]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)];function it(t,e){const o=st();return(it=function(t,e){return o[t-=106]})(t,e)}function st(){const t=["isEnabled","refresh","104sYTRrG","7126IZPxMm","plugins","getFootnotesDefinitionsObjectElement","value","34MZtWrA","model","17970glyhcN","1027638cBhQnQ","913CXwmLX","getAttribute","_updateFootnotesCounters","12474DugpQl","206616zNdINu","20LluYrG","execute","774486dhShGB","footnotesListStyle","98128cZQqmN","includes","change","get","setAttribute"];return(st=function(){return t})()}const rt=it;!function(t){const e=it,o=t();for(;;)try{if(157999===-parseInt(e(114))/1*(parseInt(e(121))/2)+parseInt(e(125))/3+-parseInt(e(127))/4*(-parseInt(e(123))/5)+-parseInt(e(122))/6+parseInt(e(110))/7*(parseInt(e(109))/8)+-parseInt(e(117))/9+parseInt(e(116))/10*(parseInt(e(118))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[rt(108)](){const t=rt,{editor:e}=this,o=e[t(111)][t(130)](d)[t(112)]();this[t(107)]=!!o,this[t(113)]=o?.[t(119)](t(126))??null}[rt(124)]({value:t}){const e=rt,{editor:o}=this,n=o[e(111)][e(130)](d),i=n[e(112)]();i&&nt[e(128)](t)&&o[e(115)][e(129)](o=>{const s=e;o[s(106)](s(126),t,i),n[s(120)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(803346===parseInt(e(267))/1*(-parseInt(e(277))/2)+-parseInt(e(280))/3+parseInt(e(273))/4+parseInt(e(274))/5*(parseInt(e(278))/6)+parseInt(e(265))/7*(parseInt(e(268))/8)+-parseInt(e(282))/9*(parseInt(e(262))/10)+parseInt(e(276))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(266)](){const t=ct,{editor:e}=this,o=e[t(275)][t(279)](d)[t(271)]();this[t(272)]=!!o,this[t(286)]=o?.[t(263)](t(285))??null}[ct(283)]({value:t}){const e=ct,{editor:o}=this,n=o[e(275)][e(279)](d),i=n[e(271)]();i&&Number[e(269)](t)&&o[e(281)][e(270)](o=>{const s=e;o[s(284)](s(285),t,i),n[s(264)](o)})}}function ft(){const t=["1405dIhzFL","plugins","8356128WLTKIT","194kXFLNk","32196SaTFfw","get","1556442Rjigcm","model","1179WdtugJ","execute","setAttribute","footnotesListStart","value","73760AQUnXD","getAttribute","_updateFootnotesCounters","3389603FMVuJG","refresh","7127DufNnN","8xhIIcW","isInteger","change","getFootnotesDefinitionsObjectElement","isEnabled","912048PMHnrM"];return(ft=function(){return t})()}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ut(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}const wt=[{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 yt(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();