@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251204.0 → 0.0.0-nightly-20251206.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:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,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=["nodeAfter","_model","element","push","7VzOgjY","1148408kHyYRU","type","delete","clear","values","_elementName","_trackedElements","root","remove","getItems","rootName","6215658GaYfqT","81Bbxxyo","$graveyard","12zYygBB","length","has","_getElementKey","set","getElementKey","getChanges","from","position","get","15RQAjbw","136926ZiQTuc","attributes","$text","createRangeOn","478304zXcZlo","653956dfuSqG","name","add","elementName","flat","14096830LQoHiD","insert","slice","reset","42698403VTWBfS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=352]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(713168===parseInt(e(352))/1+parseInt(e(392))/2*(parseInt(e(381))/3)+parseInt(e(396))/4*(-parseInt(e(391))/5)+parseInt(e(378))/6*(-parseInt(e(366))/7)+parseInt(e(367))/8*(-parseInt(e(379))/9)+-parseInt(e(357))/10+parseInt(e(361))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(363)];[a(372)];[a(384)];[a(373)]=new Map;constructor(t,e){const o=a;this[o(363)]=t,this[o(372)]=e[o(355)],this[o(384)]=e[o(386)]}[a(360)](){const t=a;this[t(373)][t(370)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(358)===i[e(368)]&&e(394)!==i[e(353)]&&i[e(389)][e(362)]){const t=this[e(363)][e(395)](i[e(389)][e(362)]);for(const o of t[e(376)]()){if(!o.is(e(364),this[e(372)]))continue;const t=this[e(384)](o);n[e(383)](t)||n[e(385)](t,[]),n[e(390)](t)[e(365)](o)}}if(e(375)===i[e(368)]&&i[e(353)]===this[e(372)]){const t=this[e(384)]({getAttribute:t=>i[e(393)][e(390)](t)});o[e(354)](t)}}for(const[t,n]of this[e(373)])e(380)===n[e(374)][e(377)]&&o[e(354)](t);for(const t of o)this[e(373)][e(369)](t);for(const[t,o]of n)this[e(373)][e(385)](t,o[o[e(382)]-1]);const i=new Set;for(const[t,s]of n)o[e(383)](t)&&(i[e(354)](s[0]),s[e(382)]>1?n[e(385)](t,s[e(359)](1)):n[e(369)](t),o[e(369)](t));return{removed:Array[e(388)](o),inserted:Array[e(388)](n[e(371)]())[e(356)](),moved:Array[e(388)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=378]})(t,e)}function d(){const t=["_updateFootnotesCounters","enqueueChange","splice","get","model","min","_ensureFootnotesReferencesHaveProperOrder","move","childCount","change:data","setFootnoteFormatter","isPremiumPlugin","footnoteInlineContent","remove","end","add","isOfficialPlugin","_footnoteRefsTracker","_footnotesDefinitions","getChanges","low","_footnoteDefsTracker","_handleFootnoteDefinitionsChanges","376368xaGwMR","compareWith","createRangeOn","_updateFootnoteRefCounter","unshift","_footnotes","_handleFootnotesDefinitionsObjectSync","set","getChildren","$graveyard","273510AVrheI","document","footnotes.multiBlock","push","reset","definition","_handleFootnoteReferencesChanges","createElement","parent","before","differ","815400ZsHGhz","after","getFootnotes","high","getFootnotesDefinitionsObjectElement","createPositionAt","_handleInsertedFootnoteReference","footnoteId","_ensureFootnotesDefinitionsContainerExists","getFootnote","_footnoteFormatter","footnoteRef","1931258ZUdIhW","_handleRemoveFootnoteReferenceById","append","singleton","24zFcthq","config","footnotesDefinitions","FootnotesTracker","map","from","isEqual","insert","createPositionBefore","_footnoteDefsContainerTracker","300027ZPzLxp","_handleMovedFootnoteReference","8fAPUKk","setAttribute","editor","getFootnotesFormatter","_handleFootnotesDefinitionsObjectChanges","193985ycmBbl","createRangeIn","getAttribute","root","paragraph","reference","getRootNames","length","registerPostFixer","rootName","init","some","_sortFootnoteDefinitions","_insertEmptyFootnotesDefinitionsContainer","1115172zkRJbD","pluginName","footnoteDefinition","has","indexOf","footnoteCounter","listenTo","findIndex","find"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(449104===parseInt(e(437))/1+parseInt(e(383))/2+-parseInt(e(430))/3+-parseInt(e(404))/4+parseInt(e(393))/5*(parseInt(e(420))/6)+-parseInt(e(416))/7*(-parseInt(e(432))/8)+-parseInt(e(451))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(388)]=[];[f(378)]=null;[f(414)]=null;[f(429)];[f(477)];[f(381)];static get[f(452)](){return f(423)}static get[f(476)](){return!0}static get[f(471)](){return!0}constructor(t){const e=f;super(t),this[e(429)]=new l(this[e(434)][e(464)],{elementName:e(422),getElementKey:()=>e(419)}),this[e(477)]=new l(this[e(434)][e(464)],{elementName:e(415),getElementKey:t=>t[e(439)](e(411))}),this[e(381)]=new l(this[e(434)][e(464)],{elementName:e(453),getElementKey:t=>t[e(439)](e(411))})}[f(447)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(394)][t(445)](e=>{const n=t,i=o[n(394)][n(403)][n(379)]();let s=!1;return this[n(436)](e,i)&&(s=!0),this[n(382)](e,i)&&(s=!0),this[n(399)](e,i)&&(s=!0),this[n(466)](e)&&(s=!0),this[n(389)](e)&&(s=!0),this[n(449)](e)&&(s=!0),s}),this[t(457)](o[t(394)],t(469),()=>{const e=t;o[e(461)]({isUndoable:!1},t=>{this[e(412)](t)})},{priority:t(380)}),this[t(457)](n,t(390),()=>{const e=t;this[e(388)]=[],this[e(429)][e(397)](),this[e(477)][e(397)](),this[e(381)][e(397)]()},{priority:t(407)})}[f(408)](){return this[f(378)]}[f(413)](t){const e=f;return this[e(388)][e(459)](e=>e.id===t)||null}[f(406)](){const t=f;return Array[t(425)](this[t(388)])}[f(435)](){return this[f(414)]}[f(470)](t){this[f(414)]=t}[f(460)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(388)][o(444)];i++)this[o(386)](t,i)&&(n=!0);return n}[f(450)](t,e){const o=f,n=t[o(400)](o(422),{});return t[o(418)](n,e),this[o(378)]=n,n}[f(412)](t){const e=f;if(!this[e(388)][e(444)]||this[e(378)])return;const o=this[e(388)][0][e(442)][e(440)],n=this[e(450)](t,o);for(const o of this[e(388)])o[e(398)][e(401)]||t[e(427)](o[e(398)],n,e(474));this[e(460)](t)}[f(436)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(429)][o(379)](e);if(r[o(444)]&&(this[o(378)]=r[0]),i[o(444)])if(i[o(444)]>1||this[o(378)]&&i[o(448)](t=>t!==this[o(378)])){const e=t[o(400)](o(422),{}),s=[];this[o(378)]&&s[o(396)](this[o(378)]),s[o(396)](...i),t[o(427)](e,s[0],o(402));for(const n of s)t[o(467)](t[o(438)](n),t[o(409)](e,o(474))),t[o(473)](n);this[o(378)]=e,this[o(460)](t),n=!0}else this[o(378)]=i[0];if(s[o(444)]&&o(392)===this[o(378)]?.[o(440)][o(446)]){for(const e of this[o(388)])t[o(473)](e[o(442)]),n=!0;this[o(388)]=[],this[o(378)]=null}return n}[f(382)](t,e){const o=f;let n=!1;const i=this[o(434)][o(421)][o(463)](o(395)),{inserted:s,moved:r}=this[o(381)][o(379)](e);for(const e of[...r,...s]){const s=e[o(439)](o(411)),r=this[o(413)](s);r&&(r[o(398)]=e),p(t,i,e)&&(n=!0)}return n}[f(399)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(477)][o(379)](e);for(const e of i)this[o(417)](t,e)&&(n=!0);for(const e of s)this[o(410)](t,e)&&(n=!0);for(const e of r)this[o(431)](t,e)&&(n=!0);return n}[f(389)](t){const e=f;if(!this[e(378)])return!1;let o=!1;if(this[e(378)][e(468)]!==this[e(388)][e(444)]){const n=[];for(const t of this[e(378)][e(391)]()){const i=t[e(439)](e(411));this[e(413)](i)||(n[e(387)](t),o=!0)}for(const o of n)t[e(473)](o)}const n=new Set,i=[];for(const t of this[e(378)][e(391)]()){const s=t[e(439)](e(411));n[e(454)](s)?(i[e(387)](t),o=!0):n[e(475)](s)}for(const o of i)t[e(473)](o);return this[e(378)][e(468)]||(t[e(473)](this[e(378)]),this[e(378)]=null,o=!0),o}[f(410)](t,e){const o=f;if(this[o(388)][o(459)](t=>t[o(442)]===e))return!1;let n=!1;const i=e[o(439)](o(411)),s=this[o(388)][o(458)](t=>t.id===i);-1!==s&&(t[o(473)](this[o(388)][s][o(442)]),this[o(388)][o(462)](s,1),n=!0);let r=this[o(378)]?function(t,e){const n=o;for(const o of t[n(391)]())if(o[n(439)](n(411))===e)return o;return null}(this[o(378)],i):null;r||(r=t[o(400)](o(453),{footnoteId:i}),this[o(378)]&&(t[o(427)](r,this[o(378)],o(474)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(434)][o(464)],this[o(388)],e);this[o(388)][o(462)](c,0,a);let l=c;return-1!==s&&(l=Math[o(465)](c,s)),this[o(460)](t,l)&&(n=!0),n}[f(417)](t,e){const o=f,n=this[o(388)][o(458)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(388)][n];return o(392)!==s[o(398)][o(440)][o(446)]&&(t[o(473)](s[o(398)]),i=!0),this[o(388)][o(462)](n,1),this[o(460)](t,n)&&(i=!0),i}[f(431)](t,e){const o=f,n=e[o(439)](o(411)),i=this[o(388)][o(458)](t=>t.id===n),s=this[o(388)][i];let r=!1;s[o(442)]=e,this[o(388)][o(462)](i,1);const a=m(this[o(434)][o(464)],this[o(388)],e);return this[o(388)][o(462)](a,0,s),this[o(460)](t,Math[o(465)](i,a))&&(r=!0),r}[f(386)](t,e){const o=f;if(!this[o(378)])return!1;const n=this[o(388)][e];let i;return i=this[o(414)]?this[o(414)]({footnote:n,container:this[o(378)],digits:String(this[o(388)][o(444)])[o(444)],value:e+1}):String(e+1),n[o(442)][o(439)](o(456))!=i&&(t[o(433)](o(456),i,n[o(442)]),!0)}[f(449)](t){const e=f;if(!this[e(378)]||this[e(388)][e(444)]<2)return!1;if(function(t,o){const n=e;if(t[n(444)]!==o[n(444)])return!1;for(let e=0;e<t[n(444)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(388)][e(424)](t=>t.id),Array[e(425)](this[e(378)][e(391)]())[e(424)](t=>t[e(439)](e(411)))))return!1;let o=!1;for(let n=0;n<this[e(388)][e(444)];n++){const i=this[e(388)][n],s=t[e(428)](i[e(398)]),r=t[e(409)](this[e(378)],n);s[e(426)](r)||(t[e(467)](t[e(385)](i[e(398)]),r),o=!0)}return o}[f(466)](t){const e=f;if(!this[e(388)][e(444)])return!1;const{model:o}=this[e(434)];let n=!1;for(let i=0;i<this[e(388)][e(444)]-1;i++){const s=this[e(388)][i],r=this[e(388)][i+1],a=o[e(428)](s[e(442)]),c=o[e(428)](r[e(442)]);e(405)===a[e(384)](c)&&(this[e(431)](t,s[e(442)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(468)])return!1;const i=n(e?441:472);return t[n(427)](t[n(400)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(444)])return 0;const i=t[n(428)](o);for(let o=0;o<e[n(444)];o++){const s=e[o],r=t[n(428)](s[n(442)]);if(n(402)===i[n(384)](r))return o}const s=o[n(440)];let r=-1;for(let t=e[n(444)]-1;t>=0;t--)if(e[t][n(442)][n(440)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(394)][n(443)](),c=a[n(455)](s[n(446)]),l=a[c+1];if(l)for(let t=0;t<e[n(444)];t++)if(e[t][n(442)][n(440)][n(446)]===l)return t;return e[n(444)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=412]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","footnoteId","49GnmOrT","insertObject","insert-footnote-command-executed-with-invalid-id","checkChild","model","getFirstRange","editor","string","document","change","37800vUbpNP","length","_moveSelectionToFootnoteDefinition","plugins","refresh","isObject","5853555QklSpI","FootnotesEditing","1228088NvfwaA","isEnabled","529333ZGRHfA","footnoteRef","4499joGpdL","execute","56IUdHST","921040IcMlPH","createElement","end","getItems","6ooTCkv","33718ZTsAQu","selection","test","6198zJTPsh","isBlock","get","3965vRSRcK"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(470300===-parseInt(e(439))/1*(parseInt(e(430))/2)+-parseInt(e(429))/3*(-parseInt(e(418))/4)+-parseInt(e(436))/5*(parseInt(e(433))/6)+parseInt(e(420))/7*(-parseInt(e(424))/8)+parseInt(e(416))/9+parseInt(e(425))/10+parseInt(e(422))/11*(parseInt(e(449))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(414)](){const t=g,e=this[t(445)][t(443)][t(447)][t(431)],o=this[t(437)](e);this[t(419)]=!!o}[g(423)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(447)],r=this[e(437)](s);if(!r)return;const a=o[e(413)][e(435)](e(417)),c=t?.[e(438)]??(0,i.uid)();!function(t){const o=e;return o(446)==typeof t&&t[o(450)]>0&&!/\s/[o(432)](t)&&!/^\d/[o(432)](t)}(c)?(0,i.logWarning)(e(441)):(n[e(448)](t=>{const o=e,i=t[o(426)](o(421),{footnoteId:c});n[o(440)](i,r,null)}),a[e(412)](c))}[g(437)](t){const e=g,{model:o}=this[e(445)],{schema:n}=o,i=t[e(444)]();for(const t of i[e(428)]())if(n[e(434)](t)||n[e(415)](t))return null;const s=i[e(427)];return n[e(442)](s,e(421))?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:1764806400;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})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=A;function A(t,e){const o=L();return(A=function(t,e){return o[t-=128]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(490476===-parseInt(e(136))/1+-parseInt(e(162))/2*(parseInt(e(131))/3)+-parseInt(e(165))/4+parseInt(e(160))/5+parseInt(e(161))/6+-parseInt(e(163))/7*(-parseInt(e(200))/8)+-parseInt(e(180))/9*(parseInt(e(175))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(L);class _ extends t.Plugin{static get[T(141)](){return T(185)}static get[T(177)](){return[v,P.ClipboardPipeline]}static get[T(167)](){return!0}static get[T(181)](){return!0}[T(135)](){this[T(143)]()}[T(143)](){const t=T;this[t(171)](),this[t(140)]()}[T(171)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(133)](P.ClipboardPipeline),s=o[t(133)](h);this[t(148)](i,t(147),(o,i)=>{const r=t,a=D(n[r(137)](i[r(158)]));if(!a[r(155)])return;const c=s[r(168)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(196)](t=>t.id===o);if(i){const o=e[n(144)][n(186)](i[n(195)],{isClipboardPipeline:!0}),s=e[n(144)][n(203)][n(164)](o);t[i.id]=s}return t},Object[r(187)](null));i[r(205)][r(169)](r(152),JSON[r(173)](l))})}[T(140)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(194)],r=n[t(133)](P.ClipboardPipeline),a=n[t(133)](h),c=e[t(142)][t(133)](t(157));let l=null;this[t(148)](s[t(178)],t(150),(e,o)=>{const n=t,i=o[n(205)][n(192)](n(152));l=i?JSON[n(153)](i):null}),this[t(148)](r,t(146),(n,s)=>{const r=t,f=s[r(189)]===this[r(204)].id;f&&r(156)===s[r(138)]||o[r(145)](t=>{const n=r;let u=a[n(182)]();const d=!!u&&Array[n(179)](o[n(178)][n(190)][n(129)]())[n(174)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(137)](e))n.is(o(166),o(198))&&i[o(188)](n);for(const e of i)t[o(199)](e)}(t,s[n(158)]),!l)return;const{selection:h}=o[n(178)],p=h[n(197)]()[n(130)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(137)](e))if(n.is(o(166),o(198)))return n;return null}(t,s[n(158)]),u||=a[n(191)](t,p));const m=Array[n(179)](h[n(151)]())[n(170)](D),g=function(t,e,o){const s=n,r=Object[s(187)](null);for(const{item:n}of t[s(137)](e))if(n.is(s(166),s(154))){const e=n[s(128)](s(176));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(159)](s(176),r[e],n)}return r}(t,s[n(158)],t=>{const e=n;return!f||!!a[e(132)](t)&&!m[e(174)](t)});for(const[o,i]of Object[n(134)](l)){const s=g[o]||o,r=t[n(193)](n(206),{footnoteId:s}),a=e[n(144)][n(203)][n(186)](i);let l;if(c)l=e[n(144)][n(139)](a,r);else{l=t[n(193)](n(202));const o=e[n(144)][n(139)](a,l);t[n(149)](o,l)}t[n(172)](l,r),t[n(149)](r,u,n(183))}l=null})})}}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(166),e(154))&&o[e(201)](n[e(128)](e(176)));return Array[e(179)](o)}function L(){const t=["htmlProcessor","editor","dataTransfer","footnoteDefinition","getAttribute","getSelectedBlocks","root","36969PxvGMG","getFootnote","get","entries","init","957794hYSnhP","createRangeIn","method","toModel","_handlePasteFootnotesDefinitions","pluginName","config","_defineClipboardIntegration","data","change","contentInsertion","outputTransformation","listenTo","insert","clipboardInput","getRanges","application/ckeditor5-footnotes","parse","footnoteRef","length","drop","footnotes.multiBlock","content","setAttribute","4896740ScGAXE","5119512OLGOal","82dSADsY","14VRFkma","toData","125256suFFUD","element","isOfficialPlugin","getFootnotes","setData","flatMap","_handleCopyFootnotesDefinitions","append","stringify","includes","70xCeEOQ","footnoteId","requires","document","from","1006569pasxHx","isPremiumPlugin","getFootnotesDefinitionsObjectElement","end","reduce","FootnotesClipboard","toView","create","push","sourceEditorId","selection","_insertEmptyFootnotesDefinitionsContainer","getData","createElement","editing","definition","find","getFirstRange","footnotesDefinitions","remove","3740456hTSnFb","add","footnoteInlineContent"];return(L=function(){return t})()}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),U=o(123),z=o.n(U),H=o(741),W=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=W();O()(q.A,G);q.A&&q.A.locals&&q.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,R.ButtonView)),e.add("menuBar:insertFootnote",Z(t,R.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 R.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}}function Q(){var t=["isOfficialPlugin","10IlCjdw","pluginName","6whKXVL","1006040wolHlV","4759876ROBHio","isPremiumPlugin","9WQXlRD","requires","3360378nLBulU","1396664kCPRAF","6GRsgPZ","Footnotes","325792fKsvJZ","529830fRBoRf","2865845xgjqgn"];return(Q=function(){return t})()}var J=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=131]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(610484===-parseInt(e(132))/1+-parseInt(e(131))/2*(-parseInt(e(145))/3)+parseInt(e(144))/4+-parseInt(e(133))/5*(parseInt(e(137))/6)+parseInt(e(143))/7+parseInt(e(138))/8*(parseInt(e(141))/9)+-parseInt(e(135))/10*(-parseInt(e(139))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[J(136)](){return J(146)}static get[J(142)](){return[v,_,X]}static get[J(134)](){return!0}static get[J(140)](){return!0}}const tt=ot;!function(t){const e=ot,o=t();for(;;)try{if(446983===-parseInt(e(144))/1+parseInt(e(141))/2*(-parseInt(e(148))/3)+-parseInt(e(154))/4+-parseInt(e(138))/5*(-parseInt(e(147))/6)+parseInt(e(140))/7*(parseInt(e(142))/8)+-parseInt(e(137))/9+parseInt(e(139))/10*(parseInt(e(155))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const et=[tt(153),tt(143),tt(152),tt(146),tt(151),tt(149),tt(150),tt(145)];function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=137]})(t,e)}function nt(){const t=["upper-latin","6zcfKNg","162129gGhewY","upper-alpha","lower-roman","lower-alpha","lower-latin","decimal","716040oKiEST","11ctwHNL","398655glnZXV","475890NDVjJc","3075040MklXFl","7EMEECU","6cfMrIC","5027448KPxEHL","decimal-leading-zero","198696zFUqMP","upper-roman"];return(nt=function(){return t})()}function it(){const t=["plugins","266464xxlQCr","value","execute","get","1569115RtJbng","558ICXvtH","412116yatSix","refresh","model","getFootnotesDefinitionsObjectElement","footnotesListStyle","58648CPwvdY","includes","2069424tJlhqO","218212NqsXVv","12UWZwjN","change","isEnabled","_updateFootnotesCounters","308946nSxWcX","setAttribute","getAttribute"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=it();return(rt=function(t,e){return o[t-=428]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(223694===parseInt(e(429))/1+parseInt(e(446))/2+-parseInt(e(438))/3*(parseInt(e(437))/4)+-parseInt(e(450))/5+parseInt(e(442))/6+-parseInt(e(436))/7+parseInt(e(434))/8*(parseInt(e(428))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class at extends t.Command{[st(430)](){const t=st,{editor:e}=this,o=e[t(445)][t(449)](h)[t(432)]();this[t(440)]=!!o,this[t(447)]=o?.[t(444)](t(433))??null}[st(448)]({value:t}){const e=st,{editor:o}=this,n=o[e(445)][e(449)](h),i=n[e(432)]();i&&et[e(435)](t)&&o[e(431)][e(439)](o=>{const s=e;o[s(443)](s(433),t,i),n[s(441)](o)})}}function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=244]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(872796===-parseInt(e(250))/1+-parseInt(e(253))/2+parseInt(e(266))/3*(-parseInt(e(256))/4)+parseInt(e(245))/5+parseInt(e(265))/6+-parseInt(e(255))/7*(-parseInt(e(264))/8)+parseInt(e(258))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[lt(260)](){const t=lt,{editor:e}=this,o=e[t(249)][t(259)](h)[t(257)]();this[t(263)]=!!o,this[t(262)]=o?.[t(251)](t(244))??null}[lt(247)]({value:t}){const e=lt,{editor:o}=this,n=o[e(249)][e(259)](h),i=n[e(257)]();i&&Number[e(246)](t)&&o[e(248)][e(254)](o=>{const s=e;o[s(252)](s(244),t,i),n[s(261)](o)})}}function ut(){const t=["isEnabled","32TmfobF","5651124wSOUta","75auItPR","footnotesListStart","4444735niCjCL","isInteger","execute","model","plugins","452768jRJUtz","getAttribute","setAttribute","628966LkawRr","change","333648XtnAxe","144836vWdDLn","getFootnotesDefinitionsObjectElement","4714335EPLETQ","get","refresh","_updateFootnotesCounters","value"];return(ut=function(){return t})()}function dt(){const t=["document","setAttribute","$text","registerPostFixer","decimal-leading-zero","setStyle","FootnotesPropertiesEditing","3915680avDasZ","find","getChanges","for","floor","nodeAfter","consumable","extend","checkAttribute","attribute:footnotesListStyle:footnotesDefinitions","parent","init","add","_updateFootnotesCounters","5520vOFUNu","toLowerCase","pluginName","toViewElement","footnotes-list","item","viewItem","hasAttribute","removeAttribute","upcast","get","isOfficialPlugin","getAttribute","start","from","type","upper-roman","consume","_formatFootnoteListValue","list-style-type","footnotesDefinitions","parseInt","2321718zWXQjF","_defineFormatter","104vBhxnC","_defineSchema","footnotesListStyle","34256DebALz","upper-alpha","footnotes.footnotesProperties.defaultListStyle","insert","isNaN","decimal","define","removeStyle","element","toUpperCase","schema","position","1565160BPBCfB","element:ol","attribute:footnotesListStart:footnotesDefinitions","downcast","config","padStart","_defineConverters","lower-roman","mapper","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","editor","_getDefaultStartIndex","isPremiumPlugin","19223UgdHGr","getItems","hasClass","footnotesStart","686MZhEbd","writer","34ENgHtg","commands","_definePostfixer","9072297qlDyIE","setFootnoteFormatter","footnotesStyle","name","differ","model","requires","modelCursor","plugins","upper-latin","max","_getDefaultListStyle","getStyle","lower-alpha","lower-latin","getChildren","fromCharCode","createRangeOn"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=445]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(522183===parseInt(e(542))/1*(-parseInt(e(447))/2)+-parseInt(e(489))/3*(parseInt(e(513))/4)+parseInt(e(528))/5+parseInt(e(511))/6+-parseInt(e(445))/7*(parseInt(e(516))/8)+parseInt(e(450))/9+-parseInt(e(475))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(491)](){return ht(474)}static get[ht(456)](){return[v,h]}static get[ht(500)](){return!0}static get[ht(541)](){return!0}[ht(486)](){const t=ht,{editor:e}=this;e[t(532)][t(522)](t(518),t(521)),e[t(532)][t(522)](t(537),1),e[t(448)][t(487)](t(452),new at(e)),e[t(448)][t(487)](t(545),new ft(e)),this[t(514)](),this[t(534)](),this[t(512)](),this[t(449)]()}[ht(514)](){const t=ht,{editor:e}=this,{schema:o}=e[t(455)];o[t(482)](t(509),{allowAttributes:[t(515),t(538)]})}[ht(534)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(478)](t(498))[t(487)](e=>{const o=t;e.on(o(529),(t,e,n)=>{const s=o,r=e[s(495)],a=e[s(457)]?.[s(485)];r[s(544)](s(493))&&a?.is(s(524),s(509))&&(function(t,e,o,n){const i=s;if(!n[i(483)](e,i(538)))return;let r=1;const a=o[i(481)][i(506)](t,{attributes:i(502)});if(a){const e=Number[i(510)](t[i(501)](i(502)),10);Number[i(520)](e)||(r=e)}!a&&e[i(496)](i(538))||o[i(446)][i(469)](i(538),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(483)](e,i(515)))return;let r=i(521),a=!1;if(o[i(481)][i(506)](t,{attributes:i(504)})){const e={1:i(521),a:i(463),A:i(517),i:i(535),I:i(505)}[t[i(501)](i(504))];e&&(r=e),a=!0}o[i(481)][i(506)](t,{styles:i(508)})&&(r=function(t){const e=i;switch(t){case e(463):return e(464);case e(517):return e(459);default:return t}}(t[i(462)](i(508))),a=!0),!a&&e[i(496)](i(515))||o[i(446)][i(469)](i(515),r,e)}(r,a,n,i))})}),o[t(478)](t(531))[t(487)](e=>{const o=t;e.on(o(530),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;null==r||1===r?n[i(446)][i(497)](i(502),s):n[i(446)][i(469)](i(502),String(r),s)}),e.on(o(484),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;r&&i(521)!==r?n[i(446)][i(473)](i(508),r,s):n[i(446)][i(523)](i(508),s)})})}[ht(449)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(458)][t(499)](h),i=this[t(461)](),s=this[t(540)]();o[t(468)][t(471)](e=>{const r=t,a=o[r(468)][r(454)][r(477)]();let c=!1;for(const t of a){if(r(519)!==t[r(504)]||r(470)===t[r(453)])continue;const n=o[r(467)](t[r(527)][r(480)]);for(const t of n[r(543)]())t.is(r(524),r(509))&&(!t[r(496)](r(538))&&o[r(526)][r(483)](t,r(538))&&(e[r(469)](r(538),s,t),c=!0),!t[r(496)](r(515))&&o[r(526)][r(483)](t,r(515))&&(e[r(469)](r(515),i,t),c=!0))}return c&&n[r(488)](e),c})}[ht(512)](){const t=ht,{editor:e}=this;e[t(458)][t(499)](h)[t(451)](e=>this[t(507)](e))}[ht(461)](){const t=ht;return this[t(539)][t(532)][t(499)](t(518))}[ht(540)](){const t=ht;return this[t(539)][t(532)][t(499)](t(537))}[ht(507)]({container:t,value:e,digits:o}){const n=ht,i=t[n(501)](n(515)),s=t[n(501)](n(538)),r=Math[n(479)](e)+(s??1)-1;switch(i){case n(472):return function(t,e){const o=n;return String(t)[o(533)](e,"0")}(r,Math[n(460)](2,o));case n(463):case n(464):return wt(r,!1);case n(517):case n(459):return wt(r,!0);case n(535):return bt(r,!1);case n(505):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(492)](t);return Array[o(503)](n[o(465)]())[o(476)](t=>t.is(o(524),"ol")&&t[o(544)](o(493)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(466)](97+t)+n,i=Math[o(479)]((i-1)/26)}return e?n[o(525)]():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=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(490)]()}class vt extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.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,R.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 R.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 R.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 R.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 R.LabeledFieldView(this.locale,R.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=z(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();O()(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[R.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,R.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 R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.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=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=495]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(753354===-parseInt(e(507))/1*(parseInt(e(504))/2)+parseInt(e(505))/3+parseInt(e(496))/4+-parseInt(e(497))/5+parseInt(e(501))/6+parseInt(e(503))/7+-parseInt(e(502))/8*(parseInt(e(506))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Et extends t.Plugin{static get[Ft(508)](){return Ft(495)}static get[Ft(498)](){return[mt,Ct]}static get[Ft(500)](){return!0}static get[Ft(499)](){return!0}}function St(){var t=["22045800JXSfSX","5278679LxRyBx","171388kIPrgF","3070182NtGQJD","9TzWvUm","6QqoYlu","pluginName","FootnotesProperties","5087808qMxiaF","1648130kYAysX","requires","isPremiumPlugin","isOfficialPlugin","7820556sextcu"];return(St=function(){return t})()}function Pt(){var t=["771534Knnmdl","10kQVHGc","10456pfUHCz","119aQTbzm","68394qPuuFA","379140foYYWa","2mSmZNe","3201048AoTzDG","1044644nMXNfp","3875690edmvxU"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=340]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(309323===-parseInt(e(340))/1*(-parseInt(e(348))/2)+parseInt(e(349))/3+-parseInt(e(342))/4*(parseInt(e(345))/5)+-parseInt(e(344))/6+parseInt(e(347))/7*(parseInt(e(346))/8)+parseInt(e(341))/9+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(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:()=>G,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,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);function r(t,e){const o=c();return(r=function(t,e){return o[t-=347]})(t,e)}const a=r;function c(){const t=["add","delete","3342qAODIW","name","get","6429jBKEmY","1089315CAUIBQ","394yPgTmS","_trackedElements","from","values","1820742cEzUuD","$graveyard","_model","reset","84485loxulI","_getElementKey","length","type","clear","1910292fBBots","getChanges","50IXNNoB","has","createRangeOn","push","element","56hGAxQu","flat","rootName","root","elementName","_elementName","set","$text","getElementKey","slice","position","473788QcUrqg","430vntlia","attributes","nodeAfter","getItems","insert","remove"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(308158===-parseInt(e(379))/1+parseInt(e(371))/2*(-parseInt(e(369))/3)+-parseInt(e(384))/4+parseInt(e(358))/5*(parseInt(e(366))/6)+parseInt(e(357))/7*(parseInt(e(391))/8)+parseInt(e(370))/9*(parseInt(e(386))/10)+parseInt(e(375))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(377)];[a(351)];[a(380)];[a(372)]=new Map;constructor(t,e){const o=a;this[o(377)]=t,this[o(351)]=e[o(350)],this[o(380)]=e[o(354)]}[a(378)](){const t=a;this[t(372)][t(383)]()}[a(385)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(382)]&&e(353)!==i[e(367)]&&i[e(356)][e(360)]){const t=this[e(377)][e(388)](i[e(356)][e(360)]);for(const o of t[e(361)]()){if(!o.is(e(390),this[e(351)]))continue;const t=this[e(380)](o);n[e(387)](t)||n[e(352)](t,[]),n[e(368)](t)[e(389)](o)}}if(e(363)===i[e(382)]&&i[e(367)]===this[e(351)]){const t=this[e(380)]({getAttribute:t=>i[e(359)][e(368)](t)});o[e(364)](t)}}for(const[t,n]of this[e(372)])e(376)===n[e(349)][e(348)]&&o[e(364)](t);for(const t of o)this[e(372)][e(365)](t);for(const[t,o]of n)this[e(372)][e(352)](t,o[o[e(381)]-1]);const i=new Set;for(const[t,s]of n)o[e(387)](t)&&(i[e(364)](s[0]),s[e(381)]>1?n[e(352)](t,s[e(355)](1)):n[e(365)](t),o[e(365)](t));return{removed:Array[e(373)](o),inserted:Array[e(373)](n[e(374)]())[e(347)](),moved:Array[e(373)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=212]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(655678===-parseInt(e(279))/1*(parseInt(e(271))/2)+parseInt(e(262))/3+parseInt(e(272))/4*(-parseInt(e(246))/5)+-parseInt(e(232))/6+-parseInt(e(250))/7*(-parseInt(e(254))/8)+-parseInt(e(223))/9*(-parseInt(e(273))/10)+parseInt(e(280))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(305)]=[];[u(236)]=null;[u(302)]=null;[u(291)];[u(218)];[u(264)];static get[u(233)](){return u(313)}static get[u(297)](){return!0}static get[u(213)](){return!0}constructor(t){const e=u;super(t),this[e(291)]=new l(this[e(308)][e(231)],{elementName:e(235),getElementKey:()=>e(277)}),this[e(218)]=new l(this[e(308)][e(231)],{elementName:e(307),getElementKey:t=>t[e(237)](e(229))}),this[e(264)]=new l(this[e(308)][e(231)],{elementName:e(274),getElementKey:t=>t[e(237)](e(229))})}[u(265)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(228)](e=>{const n=t,i=o[n(243)][n(294)][n(306)]();let s=!1;return this[n(212)](e,i)&&(s=!0),this[n(225)](e,i)&&(s=!0),this[n(263)](e,i)&&(s=!0),this[n(299)](e)&&(s=!0),this[n(278)](e)&&(s=!0),this[n(258)](e)&&(s=!0),s}),this[t(270)](o[t(243)],t(300),()=>{const e=t;o[e(304)]({isUndoable:!1},t=>{this[e(292)](t)})},{priority:t(303)}),this[t(270)](n,t(216),()=>{const e=t;this[e(305)]=[],this[e(291)][e(275)](),this[e(218)][e(275)](),this[e(264)][e(275)]()},{priority:t(252)})}[u(230)](){return this[u(236)]}[u(257)](t){const e=u;return this[e(305)][e(247)](e=>e.id===t)||null}[u(287)](){const t=u;return Array[t(284)](this[t(305)])}[u(298)](){return this[u(302)]}[u(221)](t){this[u(302)]=t}[u(220)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(305)][o(214)];i++)this[o(224)](t,i)&&(n=!0);return n}[u(296)](t,e){const o=u,n=t[o(259)](o(235),{});return t[o(283)](n,e),this[o(236)]=n,n}[u(292)](t){const e=u;if(!this[e(305)][e(214)]||this[e(236)])return;const o=this[e(305)][0][e(248)][e(267)],n=this[e(296)](t,o);for(const o of this[e(305)])o[e(217)][e(276)]||t[e(286)](o[e(217)],n,e(222));this[e(220)](t)}[u(212)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(291)][o(306)](e);if(r[o(214)]&&(this[o(236)]=r[0]),i[o(214)])if(i[o(214)]>1||this[o(236)]&&i[o(311)](t=>t!==this[o(236)])){const e=t[o(259)](o(235),{}),s=[];this[o(236)]&&s[o(293)](this[o(236)]),s[o(293)](...i),t[o(286)](e,s[0],o(240));for(const n of s)t[o(309)](t[o(285)](n),t[o(261)](e,o(222))),t[o(310)](n);this[o(236)]=e,this[o(220)](t),n=!0}else this[o(236)]=i[0];if(s[o(214)]&&o(290)===this[o(236)]?.[o(267)][o(234)]){for(const e of this[o(305)])t[o(310)](e[o(248)]),n=!0;this[o(305)]=[],this[o(236)]=null}return n}[u(225)](t,e){const o=u;let n=!1;const i=this[o(308)][o(226)][o(242)](o(266)),{inserted:s,moved:r}=this[o(264)][o(306)](e);for(const e of[...r,...s]){const s=e[o(237)](o(229)),r=this[o(257)](s);r&&(r[o(217)]=e),p(t,i,e)&&(n=!0)}return n}[u(263)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(218)][o(306)](e);for(const e of i)this[o(255)](t,e)&&(n=!0);for(const e of s)this[o(269)](t,e)&&(n=!0);for(const e of r)this[o(288)](t,e)&&(n=!0);return n}[u(278)](t){const e=u;if(!this[e(236)])return!1;let o=!1;if(this[e(236)][e(227)]!==this[e(305)][e(214)]){const n=[];for(const t of this[e(236)][e(289)]()){const i=t[e(237)](e(229));this[e(257)](i)||(n[e(241)](t),o=!0)}for(const o of n)t[e(310)](o)}const n=new Set,i=[];for(const t of this[e(236)][e(289)]()){const s=t[e(237)](e(229));n[e(244)](s)?(i[e(241)](t),o=!0):n[e(282)](s)}for(const o of i)t[e(310)](o);return this[e(236)][e(227)]||(t[e(310)](this[e(236)]),this[e(236)]=null,o=!0),o}[u(269)](t,e){const o=u;if(this[o(305)][o(247)](t=>t[o(248)]===e))return!1;let n=!1;const i=e[o(237)](o(229)),s=this[o(305)][o(215)](t=>t.id===i);-1!==s&&(t[o(310)](this[o(305)][s][o(248)]),this[o(305)][o(238)](s,1),n=!0);let r=this[o(236)]?function(t,e){const n=o;for(const o of t[n(289)]())if(o[n(237)](n(229))===e)return o;return null}(this[o(236)],i):null;r||(r=t[o(259)](o(274),{footnoteId:i}),this[o(236)]&&(t[o(286)](r,this[o(236)],o(222)),n=!0));const a={id:i,reference:e,definition:r},c=h(this[o(308)][o(231)],this[o(305)],e);this[o(305)][o(238)](c,0,a);let l=c;return-1!==s&&(l=Math[o(301)](c,s)),this[o(220)](t,l)&&(n=!0),n}[u(255)](t,e){const o=u,n=this[o(305)][o(215)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(305)][n];return o(290)!==s[o(217)][o(267)][o(234)]&&(t[o(310)](s[o(217)]),i=!0),this[o(305)][o(238)](n,1),this[o(220)](t,n)&&(i=!0),i}[u(288)](t,e){const o=u,n=e[o(237)](o(229)),i=this[o(305)][o(215)](t=>t.id===n),s=this[o(305)][i];let r=!1;s[o(248)]=e,this[o(305)][o(238)](i,1);const a=h(this[o(308)][o(231)],this[o(305)],e);return this[o(305)][o(238)](a,0,s),this[o(220)](t,Math[o(301)](i,a))&&(r=!0),r}[u(224)](t,e){const o=u;if(!this[o(236)])return!1;const n=this[o(305)][e];let i;return i=this[o(302)]?this[o(302)]({footnote:n,container:this[o(236)],digits:String(this[o(305)][o(214)])[o(214)],value:e+1}):String(e+1),n[o(248)][o(237)](o(239))!=i&&(t[o(253)](o(239),i,n[o(248)]),!0)}[u(258)](t){const e=u;if(!this[e(236)]||this[e(305)][e(214)]<2)return!1;if(function(t,o){const n=e;if(t[n(214)]!==o[n(214)])return!1;for(let e=0;e<t[n(214)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(305)][e(251)](t=>t.id),Array[e(284)](this[e(236)][e(289)]())[e(251)](t=>t[e(237)](e(229)))))return!1;let o=!1;for(let n=0;n<this[e(305)][e(214)];n++){const i=this[e(305)][n],s=t[e(312)](i[e(217)]),r=t[e(261)](this[e(236)],n);s[e(219)](r)||(t[e(309)](t[e(256)](i[e(217)]),r),o=!0)}return o}[u(299)](t){const e=u;if(!this[e(305)][e(214)])return!1;const{model:o}=this[e(308)];let n=!1;for(let i=0;i<this[e(305)][e(214)]-1;i++){const s=this[e(305)][i],r=this[e(305)][i+1],a=o[e(312)](s[e(248)]),c=o[e(312)](r[e(248)]);e(281)===a[e(245)](c)&&(this[e(288)](t,s[e(248)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(227)])return!1;const i=n(e?249:268);return t[n(286)](t[n(259)](i),o),!0}function h(t,e,o){const n=u;if(0===e[n(214)])return 0;const i=t[n(312)](o);for(let o=0;o<e[n(214)];o++){const s=e[o],r=t[n(312)](s[n(248)]);if(n(240)===i[n(245)](r))return o}const s=o[n(267)];let r=-1;for(let t=e[n(214)]-1;t>=0;t--)if(e[t][n(248)][n(267)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(295)](),c=a[n(260)](s[n(234)]),l=a[c+1];if(l)for(let t=0;t<e[n(214)];t++)if(e[t][n(248)][n(267)][n(234)]===l)return t;return e[n(214)]}function m(){const t=["10838784dFrDcm","after","add","append","from","createRangeIn","insert","getFootnotes","_handleMovedFootnoteReference","getChildren","$graveyard","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","push","differ","getRootNames","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","getFootnotesFormatter","_ensureFootnotesReferencesHaveProperOrder","change:data","min","_footnoteFormatter","low","enqueueChange","_footnotes","getChanges","footnoteRef","editor","move","remove","some","createPositionBefore","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","isPremiumPlugin","length","findIndex","set","definition","_footnoteRefsTracker","isEqual","_updateFootnotesCounters","setFootnoteFormatter","end","2237328MrDUrA","_updateFootnoteRefCounter","_handleFootnoteDefinitionsChanges","config","childCount","registerPostFixer","footnoteId","getFootnotesDefinitionsObjectElement","model","5107854NclYTz","pluginName","rootName","footnotesDefinitions","_footnotesDefinitions","getAttribute","splice","footnoteCounter","before","unshift","get","document","has","compareWith","5wxQOTT","find","reference","paragraph","91YNHZdR","map","high","setAttribute","657128iUlZNt","_handleRemoveFootnoteReferenceById","createRangeOn","getFootnote","_sortFootnoteDefinitions","createElement","indexOf","createPositionAt","1958943cDDkgz","_handleFootnoteReferencesChanges","_footnoteDefsTracker","init","footnotes.multiBlock","root","footnoteInlineContent","_handleInsertedFootnoteReference","listenTo","12DmiLhQ","5156108LyBWcX","50fzwDJi","footnoteDefinition","reset","parent","singleton","_handleFootnotesDefinitionsObjectSync","192184OckteC"];return(m=function(){return t})()}const g=y;function w(){const t=["string","261zjspjd","test","document","isBlock","2679477QDMVLR","isEnabled","FootnotesEditing","get","selection","createElement","change","getItems","plugins","8xpBGyU","3498486bHniUK","checkChild","157760XAwNDX","footnoteId","20302ZfreIL","end","refresh","length","isObject","footnoteRef","execute","editor","_moveSelectionToFootnoteDefinition","insert-footnote-command-executed-with-invalid-id","model","7642850dmXZzR","_getPositionToInsertFootnote","4366320QIUbre","43RCbvHf","insertObject","getFirstRange","1745080vRoZnU"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(474450===parseInt(e(156))/1*(parseInt(e(142))/2)+-parseInt(e(128))/3+parseInt(e(137))/4*(parseInt(e(122))/5)+-parseInt(e(138))/6+parseInt(e(155))/7+-parseInt(e(140))/8*(parseInt(e(124))/9)+parseInt(e(153))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(144)](){const t=g,e=this[t(149)][t(152)][t(126)][t(132)],o=this[t(154)](e);this[t(129)]=!!o}[g(148)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(126)],r=this[e(154)](s);if(!r)return;const a=o[e(136)][e(131)](e(130)),c=t?.[e(141)]??(0,i.uid)();!function(t){const o=e;return o(123)==typeof t&&t[o(145)]>0&&!/\s/[o(125)](t)&&!/^\d/[o(125)](t)}(c)?(0,i.logWarning)(e(151)):(n[e(134)](t=>{const o=e,i=t[o(133)](o(147),{footnoteId:c});n[o(157)](i,r,null)}),a[e(150)](c))}[g(154)](t){const e=g,{model:o}=this[e(149)],{schema:n}=o,i=t[e(121)]();for(const t of i[e(135)]())if(n[e(127)](t)||n[e(146)](t))return null;const s=i[e(143)];return n[e(139)](s,e(147))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,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:1764979200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(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 D=o(331);const S=A;function A(t,e){const o=P();return(A=function(t,e){return o[t-=111]})(t,e)}function P(){const t=["drop","selection","footnoteRef","editor","get","FootnotesClipboard","getSelectedBlocks","380osOmYr","createElement","create","outputTransformation","end","footnotes.multiBlock","createRangeIn","pluginName","insert","application/ckeditor5-footnotes","toView","_defineClipboardIntegration","reduce","append","_handlePasteFootnotesDefinitions","length","contentInsertion","find","remove","toData","push","isOfficialPlugin","15193780SJhreg","footnotesDefinitions","520971upFJQr","editing","getFootnotesDefinitionsObjectElement","2410050DLedMm","getFootnote","22841kgiRdT","element","setData","change","1616ixkMOH","getData","footnoteId","from","getRanges","data","51416wRDPLf","init","isPremiumPlugin","includes","toModel","document","getFootnotes","add","requires","clipboardInput","3006288CRvuoN","_handleCopyFootnotesDefinitions","footnoteInlineContent","getFirstRange","method","root","setAttribute","htmlProcessor","entries","parse","flatMap","footnoteDefinition","_insertEmptyFootnotesDefinitionsContainer","15dqKnVq","dataTransfer","content","definition","listenTo","sourceEditorId","config","342586oFkpYA","stringify","getAttribute"];return(P=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(527363===-parseInt(e(168))/1+-parseInt(e(134))/2*(parseInt(e(127))/3)+-parseInt(e(183))/4*(-parseInt(e(144))/5)+parseInt(e(171))/6+parseInt(e(173))/7*(-parseInt(e(177))/8)+-parseInt(e(114))/9+parseInt(e(166))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class L extends t.Plugin{static get[S(151)](){return S(142)}static get[S(112)](){return[v,D.ClipboardPipeline]}static get[S(165)](){return!0}static get[S(185)](){return!0}[S(184)](){this[S(155)]()}[S(155)](){const t=S;this[t(115)](),this[t(158)]()}[S(115)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(141)](D.ClipboardPipeline),s=o[t(141)](d);this[t(131)](i,t(147),(o,i)=>{const r=t,a=_(n[r(150)](i[r(129)]));if(!a[r(159)])return;const c=s[r(189)](),l=a[r(156)]((t,o)=>{const n=r,i=c[n(161)](t=>t.id===o);if(i){const o=e[n(182)][n(154)](i[n(130)],{isClipboardPipeline:!0}),s=e[n(182)][n(121)][n(163)](o);t[i.id]=s}return t},Object[r(146)](null));i[r(128)][r(175)](r(153),JSON[r(135)](l))})}[S(158)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(169)],r=n[t(141)](D.ClipboardPipeline),a=n[t(141)](d),c=e[t(133)][t(141)](t(149));let l=null;this[t(131)](s[t(188)],t(113),(e,o)=>{const n=t,i=o[n(128)][n(178)](n(153));l=i?JSON[n(123)](i):null}),this[t(131)](r,t(160),(n,s)=>{const r=t,u=s[r(132)]===this[r(140)].id;u&&r(137)===s[r(118)]||o[r(176)](t=>{const n=r;let f=a[n(170)]();const d=!!f&&Array[n(180)](o[n(188)][n(138)][n(143)]())[n(186)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(150)](e))n.is(o(174),o(167))&&i[o(164)](n);for(const e of i)t[o(162)](e)}(t,s[n(129)]),!l)return;const{selection:p}=o[n(188)],h=p[n(117)]()[n(119)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(150)](e))if(n.is(o(174),o(167)))return n;return null}(t,s[n(129)]),f||=a[n(126)](t,h));const m=Array[n(180)](p[n(181)]())[n(124)](_),g=function(t,e,o){const s=n,r=Object[s(146)](null);for(const{item:n}of t[s(150)](e))if(n.is(s(174),s(139))){const e=n[s(136)](s(179));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(120)](s(179),r[e],n)}return r}(t,s[n(129)],t=>{const e=n;return!u||!!a[e(172)](t)&&!m[e(186)](t)});for(const[o,i]of Object[n(122)](l)){const s=g[o]||o,r=t[n(145)](n(125),{footnoteId:s}),a=e[n(182)][n(121)][n(154)](i);let l;if(c)l=e[n(182)][n(187)](a,r);else{l=t[n(145)](n(116));const o=e[n(182)][n(187)](a,l);t[n(152)](o,l)}t[n(157)](l,r),t[n(152)](r,f,n(148))}l=null})})}}function _(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(174),e(139))&&o[e(111)](n[e(136)](e(179)));return Array[e(180)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),H=o(741),z=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=z();R()(J.A,X);J.A&&J.A.locals&&J.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",Q(t,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=$;function Z(){var t=["34635807ynWCcQ","pluginName","requires","isPremiumPlugin","8234100jwiyvb","1044127IWtDnF","614464iowmqQ","1414FCYqwX","Footnotes","2MOOulP","27606TsrTUv","2507200eKpJmL","3653601NRJopV","isOfficialPlugin"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=167]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(830009===parseInt(e(176))/1+-parseInt(e(180))/2*(-parseInt(e(169))/3)+parseInt(e(177))/4+parseInt(e(175))/5+-parseInt(e(167))/6*(-parseInt(e(178))/7)+-parseInt(e(168))/8+-parseInt(e(171))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class G extends t.Plugin{static get[Y(172)](){return Y(179)}static get[Y(173)](){return[v,L,q]}static get[Y(170)](){return!0}static get[Y(174)](){return!0}}function tt(){const t=["decimal","10yTFJcW","decimal-leading-zero","888WZpogb","67075VPxNNE","upper-roman","lower-roman","71832YJcbOQ","upper-alpha","2hzULph","135885zGnUdm","1834857rtiAdV","lower-alpha","30331vCneXy","19115217yWtlmR","3612305civPks","6OTpqWZ","upper-latin","lower-latin"];return(tt=function(){return t})()}const et=ot;function ot(t,e){const o=tt();return(ot=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(460778===parseInt(e(124))/1*(parseInt(e(129))/2)+parseInt(e(130))/3+parseInt(e(127))/4+-parseInt(e(135))/5*(parseInt(e(136))/6)+-parseInt(e(133))/7*(parseInt(e(123))/8)+-parseInt(e(131))/9*(parseInt(e(121))/10)+parseInt(e(134))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[et(120),et(122),et(138),et(137),et(132),et(128),et(126),et(125)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=261]})(t,e)}function rt(){const t=["plugins","298049wvisPe","change","getAttribute","refresh","getFootnotesDefinitionsObjectElement","setAttribute","isEnabled","2HbMFHk","1954998xPcFrA","272715DLvqXi","126468tfetBF","footnotesListStyle","21zJNsfl","includes","710DmasjW","value","execute","8417431nJsgdt","get","_updateFootnotesCounters","50EIYCVF","model","444kgBUmu","480824HZdMCP"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(215897===-parseInt(e(279))/1*(-parseInt(e(261))/2)+parseInt(e(263))/3+parseInt(e(276))/4*(parseInt(e(268))/5)+parseInt(e(262))/6+parseInt(e(266))/7*(parseInt(e(277))/8)+-parseInt(e(264))/9*(-parseInt(e(274))/10)+-parseInt(e(271))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(282)](){const t=it,{editor:e}=this,o=e[t(278)][t(272)](d)[t(283)]();this[t(285)]=!!o,this[t(269)]=o?.[t(281)](t(265))??null}[it(270)]({value:t}){const e=it,{editor:o}=this,n=o[e(278)][e(272)](d),i=n[e(283)]();i&&nt[e(267)](t)&&o[e(275)][e(280)](o=>{const s=e;o[s(284)](s(265),t,i),n[s(273)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(171042===-parseInt(e(237))/1+-parseInt(e(236))/2*(-parseInt(e(226))/3)+parseInt(e(223))/4+parseInt(e(217))/5+-parseInt(e(214))/6*(parseInt(e(221))/7)+-parseInt(e(233))/8+-parseInt(e(230))/9*(-parseInt(e(228))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(229)](){const t=ct,{editor:e}=this,o=e[t(232)][t(227)](d)[t(224)]();this[t(234)]=!!o,this[t(218)]=o?.[t(220)](t(231))??null}[ct(216)]({value:t}){const e=ct,{editor:o}=this,n=o[e(232)][e(227)](d),i=n[e(224)]();i&&Number[e(219)](t)&&o[e(225)][e(235)](o=>{const s=e;o[s(215)](s(231),t,i),n[s(222)](o)})}}function ft(){const t=["2610agEMhx","refresh","1746wQSMLY","footnotesListStart","plugins","587480YNRTTV","isEnabled","change","2ZHRYUT","281775UtpbBV","18qprAcF","setAttribute","execute","1056825jYaHNL","value","isInteger","getAttribute","135443ICErvs","_updateFootnotesCounters","1222268gKWlnm","getFootnotesDefinitionsObjectElement","model","50199SsZsHJ","get"];return(ft=function(){return t})()}const dt=pt;function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=138]})(t,e)}function ht(){const t=["downcast","toViewElement","element:ol","8544216MuLckH","getItems","upper-alpha","lower-latin","$text","isPremiumPlugin","init","add","start","isNaN","_definePostfixer","isOfficialPlugin","removeAttribute","564heScHV","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","getAttribute","hasAttribute","upper-latin","upcast","for","_updateFootnotesCounters","element","config","626095uALuTN","lower-roman","toUpperCase","attribute:footnotesListStart:footnotesDefinitions","modelCursor","footnotesDefinitions","footnotesListStyle","187vbvjVa","parseInt","name","getChanges","setAttribute","type","hasClass","setStyle","checkAttribute","_getDefaultStartIndex","padStart","FootnotesPropertiesEditing","footnotesStart","lower-alpha","insert","requires","document","define","from","model","get","upper-roman","getChildren","viewItem","find","427884BfPxXu","extend","list-style-type","decimal","registerPostFixer","editor","3148MEYZdI","parent","3QwTpaA","footnotesListStart","9LjlKZc","761BApDtQ","_defineConverters","consume","setFootnoteFormatter","commands","getStyle","floor","footnotesStyle","_defineFormatter","toLowerCase","writer","pluginName","consumable","createRangeOn","212484llZJzi","attribute:footnotesListStyle:footnotesDefinitions","item","max","footnotes.footnotesProperties.defaultStartIndex","removeStyle","10661650MiLpOi","91483CaWgML","differ","nodeAfter","fromCharCode","_formatFootnoteListValue","footnotes-list","position","mapper","schema","plugins","_defineSchema"];return(ht=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(970375===-parseInt(e(188))/1*(-parseInt(e(183))/2)+parseInt(e(185))/3*(-parseInt(e(202))/4)+parseInt(e(145))/5+parseInt(e(236))/6*(parseInt(e(209))/7)+parseInt(e(223))/8*(-parseInt(e(187))/9)+-parseInt(e(208))/10+-parseInt(e(152))/11*(-parseInt(e(177))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(199)](){return dt(163)}static get[dt(167)](){return[v,d]}static get[dt(234)](){return!0}static get[dt(228)](){return!0}[dt(229)](){const t=dt,{editor:e}=this;e[t(144)][t(169)](t(238),t(180)),e[t(144)][t(169)](t(206),1),e[t(192)][t(230)](t(195),new at(e)),e[t(192)][t(230)](t(164),new ut(e)),this[t(219)](),this[t(189)](),this[t(196)](),this[t(233)]()}[dt(219)](){const t=dt,{editor:e}=this,{schema:o}=e[t(171)];o[t(178)](t(150),{allowAttributes:[t(151),t(186)]})}[dt(189)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(141)](t(140))[t(230)](e=>{const o=t;e.on(o(222),(t,e,n)=>{const s=o,r=e[s(175)],a=e[s(149)]?.[s(184)];r[s(158)](s(214))&&a?.is(s(143),s(150))&&(function(t,e,o,n){const i=s;if(!n[i(160)](e,i(186)))return;let r=1;const a=o[i(200)][i(190)](t,{attributes:i(231)});if(a){const e=Number[i(153)](t[i(240)](i(231)),10);Number[i(232)](e)||(r=e)}!a&&e[i(138)](i(186))||o[i(198)][i(156)](i(186),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(160)](e,i(151)))return;let r=i(180),a=!1;if(o[i(200)][i(190)](t,{attributes:i(157)})){const e={1:i(180),a:i(165),A:i(225),i:i(146),I:i(173)}[t[i(240)](i(157))];e&&(r=e),a=!0}o[i(200)][i(190)](t,{styles:i(179)})&&(r=function(t){const e=i;switch(t){case e(165):return e(226);case e(225):return e(139);default:return t}}(t[i(193)](i(179))),a=!0),!a&&e[i(138)](i(151))||o[i(198)][i(156)](i(151),r,e)}(r,a,n,i))})}),o[t(141)](t(220))[t(230)](e=>{const o=t;e.on(o(148),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;null==r||1===r?n[i(198)][i(235)](i(231),s):n[i(198)][i(156)](i(231),String(r),s)}),e.on(o(203),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;r&&i(180)!==r?n[i(198)][i(159)](i(179),r,s):n[i(198)][i(207)](i(179),s)})})}[dt(233)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(218)][t(172)](d),i=this[t(237)](),s=this[t(161)]();o[t(168)][t(181)](e=>{const r=t,a=o[r(168)][r(210)][r(155)]();let c=!1;for(const t of a){if(r(166)!==t[r(157)]||r(227)===t[r(154)])continue;const n=o[r(201)](t[r(215)][r(211)]);for(const t of n[r(224)]())t.is(r(143),r(150))&&(!t[r(138)](r(186))&&o[r(217)][r(160)](t,r(186))&&(e[r(156)](r(186),s,t),c=!0),!t[r(138)](r(151))&&o[r(217)][r(160)](t,r(151))&&(e[r(156)](r(151),i,t),c=!0))}return c&&n[r(142)](e),c})}[dt(196)](){const t=dt,{editor:e}=this;e[t(218)][t(172)](d)[t(191)](e=>this[t(213)](e))}[dt(237)](){const t=dt;return this[t(182)][t(144)][t(172)](t(238))}[dt(161)](){const t=dt;return this[t(182)][t(144)][t(172)](t(206))}[dt(213)]({container:t,value:e,digits:o}){const n=dt,i=t[n(240)](n(151)),s=t[n(240)](n(186)),r=Math[n(194)](e)+(s??1)-1;switch(i){case n(239):return function(t,e){const o=n;return String(t)[o(162)](e,"0")}(r,Math[n(205)](2,o));case n(165):case n(226):return wt(r,!1);case n(225):case n(139):return wt(r,!0);case n(146):return bt(r,!1);case n(173):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(221)](t);return Array[o(170)](n[o(174)]())[o(176)](t=>t.is(o(143),"ol")&&t[o(158)](o(214)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(212)](97+t)+n,i=Math[o(194)]((i-1)/26)}return e?n[o(147)]():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(197)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=z();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[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=219]})(t,e)}var xt=Ft;function Et(){var t=["7458552CHyHXO","28528VbKaNx","848640hOJAdB","requires","FootnotesProperties","488578CUJXmG","1169jkRWRS","392TXUbZS","pluginName","6IHlbxd","isPremiumPlugin","64680yLVxyn","1141641XwJckf","isOfficialPlugin","4955160JvgOBt"];return(Et=function(){return t})()}!function(t){for(var e=Ft,o=t();;)try{if(769823===parseInt(e(225))/1*(-parseInt(e(229))/2)+parseInt(e(232))/3+parseInt(e(227))/4*(parseInt(e(231))/5)+-parseInt(e(222))/6+parseInt(e(226))/7*(-parseInt(e(221))/8)+parseInt(e(220))/9+parseInt(e(219))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Tt extends t.Plugin{static get[xt(228)](){return xt(224)}static get[xt(223)](){return[mt,Ct]}static get[xt(233)](){return!0}static get[xt(230)](){return!0}}function Dt(t,e){var o=St();return(Dt=function(t,e){return o[t-=364]})(t,e)}function St(){var t=["410166eDQyDu","335020CrOWNL","5tiYijC","1417004InYyin","57AbehcL","1838648JCspQX","7JJfHPD","999018SYctLX","12942420CauXLD","37646oQyduJ"];return(St=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(196866===-parseInt(e(366))/1+-parseInt(e(364))/2*(parseInt(e(369))/3)+-parseInt(e(368))/4+parseInt(e(367))/5*(parseInt(e(365))/6)+-parseInt(e(371))/7*(parseInt(e(370))/8)+parseInt(e(372))/9+parseInt(e(373))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();