@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251217.0 → 0.0.0-nightly-next-20251218.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 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:()=>Y,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=128]})(t,e)}function c(){const t=["nodeAfter","attributes","remove","elementName","6975MpwHKi","name","getItems","push","getChanges","values","_getElementKey","length","getElementKey","root","type","714696fzTohL","createRangeOn","_model","delete","get","252MNRnoM","clear","$text","add","position","5868331vNygOG","rootName","slice","element","insert","1251618vqqlFq","280964sKlivg","3280050RsCBRo","has","set","4811875PsEQAK","_trackedElements","reset","_elementName","from","99RTLHRz","$graveyard","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(493174===parseInt(e(155))/1+parseInt(e(154))/2+-parseInt(e(128))/3*(-parseInt(e(144))/4)+-parseInt(e(159))/5+parseInt(e(156))/6+parseInt(e(149))/7+parseInt(e(139))/8*(-parseInt(e(164))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(141)];[r(162)];[r(134)];[r(160)]=new Map;constructor(t,e){const o=r;this[o(141)]=t,this[o(162)]=e[o(170)],this[o(134)]=e[o(136)]}[r(161)](){const t=r;this[t(160)][t(145)]()}[r(132)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(153)===i[e(138)]&&e(146)!==i[e(129)]&&i[e(148)][e(167)]){const t=this[e(141)][e(140)](i[e(148)][e(167)]);for(const o of t[e(130)]()){if(!o.is(e(152),this[e(162)]))continue;const t=this[e(134)](o);n[e(157)](t)||n[e(158)](t,[]),n[e(143)](t)[e(131)](o)}}if(e(169)===i[e(138)]&&i[e(129)]===this[e(162)]){const t=this[e(134)]({getAttribute:t=>i[e(168)][e(143)](t)});o[e(147)](t)}}for(const[t,n]of this[e(160)])e(165)===n[e(137)][e(150)]&&o[e(147)](t);for(const t of o)this[e(160)][e(142)](t);for(const[t,o]of n)this[e(160)][e(158)](t,o[o[e(135)]-1]);const i=new Set;for(const[t,s]of n)o[e(157)](t)&&(i[e(147)](s[0]),s[e(135)]>1?n[e(158)](t,s[e(151)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(163)](o),inserted:Array[e(163)](n[e(133)]())[e(166)](),moved:Array[e(163)](i)}}}function u(t,e){const o=d();return(u=function(t,e){return o[t-=339]})(t,e)}const f=u;function d(){const t=["_footnoteDefsTracker","definition","footnoteRef","add","8TIOaDq","_handleFootnotesDefinitionsObjectSync","_insertEmptyFootnotesDefinitionsContainer","footnoteId","setAttribute","reference","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","has","getChanges","set","compareWith","parent","footnotesDefinitions","before","footnoteCounter","move","getChildren","singleton","model","getFootnotesDefinitionsObjectElement","after","push","high","getFootnotes","11464SlreoC","_footnotes","_sortFootnoteDefinitions","document","$graveyard","2270073GBgXFN","listenTo","rootName","getFootnote","createPositionAt","find","editor","enqueueChange","isOfficialPlugin","reset","get","1770DYdHfZ","change:data","_handleFootnoteReferencesChanges","insert","remove","root","_updateFootnotesCounters","splice","registerPostFixer","findIndex","3085068eENmct","_ensureFootnotesDefinitionsContainerExists","footnoteInlineContent","append","unshift","footnoteDefinition","pluginName","indexOf","_footnoteDefsContainerTracker","config","low","createPositionBefore","some","_updateFootnoteRefCounter","paragraph","min","isEqual","isPremiumPlugin","createRangeIn","length","_footnoteFormatter","setFootnoteFormatter","from","getRootNames","43838rlRmVd","71598wTgjGI","5670yzNeKq","_handleMovedFootnoteReference","getFootnotesFormatter","1195388wuDlaK","_handleFootnotesDefinitionsObjectChanges","init","getAttribute","footnotes.multiBlock","_handleInsertedFootnoteReference","differ","_handleRemoveFootnoteReferenceById","createRangeOn","childCount","_handleFootnoteDefinitionsChanges","475wwMjzT","26576UGIIUR","createElement","FootnotesTracker","end","map","_footnoteRefsTracker"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(593379===parseInt(e(438))/1*(parseInt(e(411))/2)+parseInt(e(366))/3+parseInt(e(416))/4+parseInt(e(427))/5*(parseInt(e(412))/6)+-parseInt(e(387))/7+parseInt(e(361))/8*(-parseInt(e(413))/9)+parseInt(e(377))/10*(-parseInt(e(428))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[f(362)]=[];[f(343)]=null;[f(407)]=null;[f(395)];[f(433)];[f(434)];static get[f(393)](){return f(430)}static get[f(374)](){return!0}static get[f(404)](){return!0}constructor(t){const e=f;super(t),this[e(395)]=new l(this[e(372)][e(355)],{elementName:e(349),getElementKey:()=>e(354)}),this[e(433)]=new l(this[e(372)][e(355)],{elementName:e(436),getElementKey:t=>t[e(419)](e(339))}),this[e(434)]=new l(this[e(372)][e(355)],{elementName:e(392),getElementKey:t=>t[e(419)](e(339))})}[f(418)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(364)][t(385)](e=>{const n=t,i=o[n(364)][n(422)][n(345)]();let s=!1;return this[n(417)](e,i)&&(s=!0),this[n(426)](e,i)&&(s=!0),this[n(379)](e,i)&&(s=!0),this[n(342)](e)&&(s=!0),this[n(439)](e)&&(s=!0),this[n(363)](e)&&(s=!0),s}),this[t(367)](o[t(364)],t(378),()=>{const e=t;o[e(373)]({isUndoable:!1},t=>{this[e(388)](t)})},{priority:t(397)}),this[t(367)](n,t(346),()=>{const e=t;this[e(362)]=[],this[e(395)][e(375)](),this[e(433)][e(375)](),this[e(434)][e(375)]()},{priority:t(359)})}[f(356)](){return this[f(343)]}[f(369)](t){const e=f;return this[e(362)][e(371)](e=>e.id===t)||null}[f(360)](){const t=f;return Array[t(409)](this[t(362)])}[f(415)](){return this[f(407)]}[f(408)](t){this[f(407)]=t}[f(383)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(362)][o(406)];i++)this[o(400)](t,i)&&(n=!0);return n}[f(440)](t,e){const o=f,n=t[o(429)](o(349),{});return t[o(390)](n,e),this[o(343)]=n,n}[f(388)](t){const e=f;if(!this[e(362)][e(406)]||this[e(343)])return;const o=this[e(362)][0][e(341)][e(382)],n=this[e(440)](t,o);for(const o of this[e(362)])o[e(435)][e(348)]||t[e(380)](o[e(435)],n,e(431));this[e(383)](t)}[f(417)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(395)][o(345)](e);if(r[o(406)]&&(this[o(343)]=r[0]),i[o(406)])if(i[o(406)]>1||this[o(343)]&&i[o(399)](t=>t!==this[o(343)])){const e=t[o(429)](o(349),{}),s=[];this[o(343)]&&s[o(358)](this[o(343)]),s[o(358)](...i),t[o(380)](e,s[0],o(350));for(const n of s)t[o(352)](t[o(405)](n),t[o(370)](e,o(431))),t[o(381)](n);this[o(343)]=e,this[o(383)](t),n=!0}else this[o(343)]=i[0];if(s[o(406)]&&o(365)===this[o(343)]?.[o(382)][o(368)]){for(const e of this[o(362)])t[o(381)](e[o(341)]),n=!0;this[o(362)]=[],this[o(343)]=null}return n}[f(426)](t,e){const o=f;let n=!1;const i=this[o(372)][o(396)][o(376)](o(420)),{inserted:s,moved:r}=this[o(434)][o(345)](e);for(const e of[...r,...s]){const s=e[o(419)](o(339)),r=this[o(369)](s);r&&(r[o(435)]=e),h(t,i,e)&&(n=!0)}return n}[f(379)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(433)][o(345)](e);for(const e of i)this[o(423)](t,e)&&(n=!0);for(const e of s)this[o(421)](t,e)&&(n=!0);for(const e of r)this[o(414)](t,e)&&(n=!0);return n}[f(439)](t){const e=f;if(!this[e(343)])return!1;let o=!1;if(this[e(343)][e(425)]!==this[e(362)][e(406)]){const n=[];for(const t of this[e(343)][e(353)]()){const i=t[e(419)](e(339));this[e(369)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(381)](o)}const n=new Set,i=[];for(const t of this[e(343)][e(353)]()){const s=t[e(419)](e(339));n[e(344)](s)?(i[e(391)](t),o=!0):n[e(437)](s)}for(const o of i)t[e(381)](o);return this[e(343)][e(425)]||(t[e(381)](this[e(343)]),this[e(343)]=null,o=!0),o}[f(421)](t,e){const o=f;if(this[o(362)][o(371)](t=>t[o(341)]===e))return!1;let n=!1;const i=e[o(419)](o(339)),s=this[o(362)][o(386)](t=>t.id===i);-1!==s&&(t[o(381)](this[o(362)][s][o(341)]),this[o(362)][o(384)](s,1),n=!0);let r=this[o(343)]?function(t,e){const n=o;for(const o of t[n(353)]())if(o[n(419)](n(339))===e)return o;return null}(this[o(343)],i):null;r||(r=t[o(429)](o(392),{footnoteId:i}),this[o(343)]&&(t[o(380)](r,this[o(343)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(372)][o(355)],this[o(362)],e);this[o(362)][o(384)](c,0,a);let l=c;return-1!==s&&(l=Math[o(402)](c,s)),this[o(383)](t,l)&&(n=!0),n}[f(423)](t,e){const o=f,n=this[o(362)][o(386)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(362)][n];return o(365)!==s[o(435)][o(382)][o(368)]&&(t[o(381)](s[o(435)]),i=!0),this[o(362)][o(384)](n,1),this[o(383)](t,n)&&(i=!0),i}[f(414)](t,e){const o=f,n=e[o(419)](o(339)),i=this[o(362)][o(386)](t=>t.id===n),s=this[o(362)][i];let r=!1;s[o(341)]=e,this[o(362)][o(384)](i,1);const a=m(this[o(372)][o(355)],this[o(362)],e);return this[o(362)][o(384)](a,0,s),this[o(383)](t,Math[o(402)](i,a))&&(r=!0),r}[f(400)](t,e){const o=f;if(!this[o(343)])return!1;const n=this[o(362)][e];let i;return i=this[o(407)]?this[o(407)]({footnote:n,container:this[o(343)],digits:String(this[o(362)][o(406)])[o(406)],value:e+1}):String(e+1),n[o(341)][o(419)](o(351))!=i&&(t[o(340)](o(351),i,n[o(341)]),!0)}[f(363)](t){const e=f;if(!this[e(343)]||this[e(362)][e(406)]<2)return!1;if(function(t,o){const n=e;if(t[n(406)]!==o[n(406)])return!1;for(let e=0;e<t[n(406)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(362)][e(432)](t=>t.id),Array[e(409)](this[e(343)][e(353)]())[e(432)](t=>t[e(419)](e(339)))))return!1;let o=!1;for(let n=0;n<this[e(362)][e(406)];n++){const i=this[e(362)][n],s=t[e(398)](i[e(435)]),r=t[e(370)](this[e(343)],n);s[e(403)](r)||(t[e(352)](t[e(424)](i[e(435)]),r),o=!0)}return o}[f(342)](t){const e=f;if(!this[e(362)][e(406)])return!1;const{model:o}=this[e(372)];let n=!1;for(let i=0;i<this[e(362)][e(406)]-1;i++){const s=this[e(362)][i],r=this[e(362)][i+1],a=o[e(398)](s[e(341)]),c=o[e(398)](r[e(341)]);e(357)===a[e(347)](c)&&(this[e(414)](t,s[e(341)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(425)])return!1;const i=n(e?401:389);return t[n(380)](t[n(429)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(406)])return 0;const i=t[n(398)](o);for(let o=0;o<e[n(406)];o++){const s=e[o],r=t[n(398)](s[n(341)]);if(n(350)===i[n(347)](r))return o}const s=o[n(382)];let r=-1;for(let t=e[n(406)]-1;t>=0;t--)if(e[t][n(341)][n(382)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(364)][n(410)](),c=a[n(394)](s[n(368)]),l=a[c+1];if(l)for(let t=0;t<e[n(406)];t++)if(e[t][n(341)][n(382)][n(368)]===l)return t;return e[n(406)]}const g=y;function w(){const t=["get","FootnotesEditing","selection","881054jeZxxe","460272kIPmLx","test","470bKkwPB","model","isBlock","4011JgOOxr","execute","footnoteId","10OqEiZJ","change","9817587TStEwB","end","footnoteRef","2234280QsuHKq","258zpcDSZ","insertObject","insert-footnote-command-executed-with-invalid-id","2440395XCjgOW","_moveSelectionToFootnoteDefinition","getItems","checkChild","refresh","_getPositionToInsertFootnote","plugins","3608LomfDH","getFirstRange","length","string","isObject","isEnabled","editor","createElement","document"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=493]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(466981===parseInt(e(509))/1+-parseInt(e(508))/2+-parseInt(e(526))/3+parseInt(e(496))/4*(-parseInt(e(511))/5)+-parseInt(e(523))/6*(parseInt(e(514))/7)+parseInt(e(522))/8+parseInt(e(519))/9*(parseInt(e(517))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(493)](){const t=g,e=this[t(502)][t(512)][t(504)][t(507)],o=this[t(494)](e);this[t(501)]=!!o}[g(515)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(504)],r=this[e(494)](s);if(!r)return;const a=o[e(495)][e(505)](e(506)),c=t?.[e(516)]??(0,i.uid)();!function(t){const o=e;return o(499)==typeof t&&t[o(498)]>0&&!/\s/[o(510)](t)&&!/^\d/[o(510)](t)}(c)?(0,i.logWarning)(e(525)):(n[e(518)](t=>{const o=e,i=t[o(503)](o(521),{footnoteId:c});n[o(524)](i,r,null)}),a[e(527)](c))}[g(494)](t){const e=g,{model:o}=this[e(502)],{schema:n}=o,i=t[e(497)]();for(const t of i[e(528)]())if(n[e(513)](t)||n[e(500)](t))return null;const s=i[e(520)];return n[e(529)](s,e(521))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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:1765929600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>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 S=o(331);const P=_;function D(){const t=["_handleCopyFootnotesDefinitions","element","footnoteId","1155AurLuB","getRanges","createRangeIn","7flhFqG","append","insert","sourceEditorId","root","end","selection","editor","definition","footnoteInlineContent","getData","remove","6yYJSaV","226kuzqTg","data","footnoteDefinition","3688QuRCWa","from","footnotes.multiBlock","isOfficialPlugin","editing","3944560vWTCwF","footnotesDefinitions","requires","add","content","flatMap","_handlePasteFootnotesDefinitions","config","find","getFirstRange","181317aSNgnz","1282915FZlsIr","getFootnotesDefinitionsObjectElement","70pZHrbC","921947yEbRsx","FootnotesClipboard","method","length","outputTransformation","10KajHns","setAttribute","listenTo","dataTransfer","htmlProcessor","12SLTYDa","getAttribute","push","create","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","toView","application/ckeditor5-footnotes","reduce","includes","createElement","init","entries","setData","drop","295155tTaJou","stringify","footnoteRef","toModel","get","contentInsertion","document","isPremiumPlugin","10596skDquK","parse","getFootnotes","toData","getFootnote","clipboardInput","getSelectedBlocks","change","pluginName"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=203]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(293615===parseInt(e(237))/1*(parseInt(e(234))/2)+parseInt(e(252))/3*(-parseInt(e(266))/4)+parseInt(e(253))/5*(parseInt(e(233))/6)+-parseInt(e(221))/7*(parseInt(e(242))/8)+parseInt(e(281))/9*(parseInt(e(261))/10)+parseInt(e(218))/11*(-parseInt(e(206))/12)+-parseInt(e(256))/13*(-parseInt(e(255))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class L extends t.Plugin{static get[P(214)](){return P(257)}static get[P(244)](){return[v,S.ClipboardPipeline]}static get[P(240)](){return!0}static get[P(205)](){return!0}[P(277)](){this[P(271)]()}[P(271)](){const t=P;this[t(215)](),this[t(248)]()}[P(215)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(285)](S.ClipboardPipeline),s=o[t(285)](p);this[t(263)](i,t(260),(o,i)=>{const r=t,a=A(n[r(220)](i[r(246)]));if(!a[r(259)])return;const c=s[r(208)](),l=a[r(274)]((t,o)=>{const n=r,i=c[n(250)](t=>t.id===o);if(i){const o=e[n(235)][n(272)](i[n(229)],{isClipboardPipeline:!0}),s=e[n(235)][n(265)][n(209)](o);t[i.id]=s}return t},Object[r(269)](null));i[r(264)][r(279)](r(273),JSON[r(282)](l))})}[P(248)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(241)],r=n[t(285)](S.ClipboardPipeline),a=n[t(285)](p),c=e[t(249)][t(285)](t(239));let l=null;this[t(263)](s[t(204)],t(211),(e,o)=>{const n=t,i=o[n(264)][n(231)](n(273));l=i?JSON[n(207)](i):null}),this[t(263)](r,t(203),(n,s)=>{const r=t,u=s[r(224)]===this[r(228)].id;u&&r(280)===s[r(258)]||o[r(213)](t=>{const n=r;let f=a[n(254)]();const d=!!f&&Array[n(238)](o[n(204)][n(227)][n(212)]())[n(275)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(220)](e))n.is(o(216),o(243))&&i[o(268)](n);for(const e of i)t[o(232)](e)}(t,s[n(246)]),!l)return;const{selection:p}=o[n(204)],h=p[n(251)]()[n(225)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(220)](e))if(n.is(o(216),o(243)))return n;return null}(t,s[n(246)]),f||=a[n(270)](t,h));const m=Array[n(238)](p[n(219)]())[n(247)](A),g=function(t,e,o){const s=n,r=Object[s(269)](null);for(const{item:n}of t[s(220)](e))if(n.is(s(216),s(283))){const e=n[s(267)](s(217));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(262)](s(217),r[e],n)}return r}(t,s[n(246)],t=>{const e=n;return!u||!!a[e(210)](t)&&!m[e(275)](t)});for(const[o,i]of Object[n(278)](l)){const s=g[o]||o,r=t[n(276)](n(236),{footnoteId:s}),a=e[n(235)][n(265)][n(272)](i);let l;if(c)l=e[n(235)][n(284)](a,r);else{l=t[n(276)](n(230));const o=e[n(235)][n(284)](a,l);t[n(223)](o,l)}t[n(222)](l,r),t[n(223)](r,f,n(226))}l=null})})}}function A(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(216),e(283))&&o[e(245)](n[e(267)](e(217)));return Array[e(238)](o)}var V=o(311),R=o(355),O=o(929),N=o.n(O),K=o(297),j=o.n(K),M=o(102),B=o.n(M),z=o(123),q=o.n(z),H=o(741),U=o.n(H),W=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=q(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=U();N()(W.A,G);W.A&&W.A.locals&&W.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,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function J(){var t=["1YrPFyF","338040VnmSJo","3811540OymbRz","2557318JJFPeW","3391731cQIMbt","pluginName","9241477vzqvTB","8ljiRMX","3890610nPokaf","isPremiumPlugin","Footnotes","requires","33fHsMLE","35234859sBBadG","isOfficialPlugin","12CtsBVw"];return(J=function(){return t})()}var $=Q;function Q(t,e){var o=J();return(Q=function(t,e){return o[t-=270]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(802697===parseInt(e(271))/1*(-parseInt(e(274))/2)+-parseInt(e(283))/3*(parseInt(e(272))/4)+parseInt(e(273))/5*(-parseInt(e(270))/6)+-parseInt(e(277))/7*(-parseInt(e(278))/8)+-parseInt(e(275))/9+parseInt(e(279))/10+parseInt(e(284))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class Y extends t.Plugin{static get[$(276)](){return $(281)}static get[$(282)](){return[v,L,X]}static get[$(285)](){return!0}static get[$(280)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=189]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(574090===parseInt(e(203))/1+parseInt(e(200))/2+-parseInt(e(191))/3*(-parseInt(e(192))/4)+-parseInt(e(198))/5+parseInt(e(190))/6+parseInt(e(205))/7+parseInt(e(195))/8*(-parseInt(e(196))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(189),tt(197),tt(194),tt(201),tt(199),tt(202),tt(193),tt(204)];function nt(){const t=["lower-alpha","78660lTzFcD","upper-latin","upper-alpha","1137926Kknzkq","upper-roman","3738735AgkVmh","decimal","4226538elDnzv","3GxvpRs","1167736BbjVSF","lower-roman","lower-latin","323368hunbwO","288VTzIhE","decimal-leading-zero","4200780HoofkX"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=238]})(t,e)}function rt(){const t=["get","refresh","524972GwWFFp","14197779uyOhtm","change","2183236xUwevM","value","3465910pmZLEv","3505071wbmZIF","model","6BPOOqf","188312IdmWsZ","103478imeMCj","getFootnotesDefinitionsObjectElement","execute","includes","plugins","footnotesListStyle","22nURosR","_updateFootnotesCounters","getAttribute","isEnabled","setAttribute"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(633168===-parseInt(e(259))/1*(-parseInt(e(242))/2)+parseInt(e(255))/3+parseInt(e(252))/4+-parseInt(e(254))/5+parseInt(e(257))/6*(parseInt(e(249))/7)+-parseInt(e(258))/8+-parseInt(e(250))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(248)](){const t=it,{editor:e}=this,o=e[t(240)][t(247)](p)[t(260)]();this[t(245)]=!!o,this[t(253)]=o?.[t(244)](t(241))??null}[it(238)]({value:t}){const e=it,{editor:o}=this,n=o[e(240)][e(247)](p),i=n[e(260)]();i&&ot[e(239)](t)&&o[e(256)][e(251)](o=>{const s=e;o[s(246)](s(241),t,i),n[s(243)](o)})}}const ct=ut;function lt(){const t=["1992624wjEhpp","plugins","refresh","value","footnotesListStart","isEnabled","9864LCqryI","getFootnotesDefinitionsObjectElement","change","setAttribute","2363097IdsHjd","26jSwppy","4361tmYXnZ","_updateFootnotesCounters","getAttribute","12251DHFEzy","20LTuSRC","isInteger","model","91gpYTcI","3818488BEqiaJ","10vGRgmL","6285818XkZEtD","9ExsoXz","execute","663540XPpwMa","get"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=331]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(627175===-parseInt(e(355))/1*(parseInt(e(351))/2)+-parseInt(e(350))/3+parseInt(e(356))/4*(parseInt(e(338))/5)+parseInt(e(346))/6*(parseInt(e(352))/7)+-parseInt(e(333))/8*(-parseInt(e(336))/9)+parseInt(e(334))/10*(parseInt(e(335))/11)+parseInt(e(340))/12*(-parseInt(e(332))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ct(342)](){const t=ct,{editor:e}=this,o=e[t(341)][t(339)](p)[t(347)]();this[t(345)]=!!o,this[t(343)]=o?.[t(354)](t(344))??null}[ct(337)]({value:t}){const e=ct,{editor:o}=this,n=o[e(341)][e(339)](p),i=n[e(347)]();i&&Number[e(357)](t)&&o[e(331)][e(348)](o=>{const s=e;o[s(349)](s(344),t,i),n[s(353)](o)})}}const dt=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=468]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(572642===parseInt(e(493))/1+-parseInt(e(501))/2*(parseInt(e(499))/3)+parseInt(e(566))/4+-parseInt(e(533))/5+parseInt(e(557))/6+-parseInt(e(468))/7+parseInt(e(505))/8*(parseInt(e(470))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class ht extends t.Plugin{static get[dt(479)](){return dt(565)}static get[dt(487)](){return[v,p]}static get[dt(503)](){return!0}static get[dt(546)](){return!0}[dt(494)](){const t=dt,{editor:e}=this;e[t(537)][t(516)](t(481),t(495)),e[t(537)][t(516)](t(508),1),e[t(559)][t(523)](t(560),new at(e)),e[t(559)][t(523)](t(483),new ft(e)),this[t(480)](),this[t(522)](),this[t(540)](),this[t(564)]()}[dt(480)](){const t=dt,{editor:e}=this,{schema:o}=e[t(485)];o[t(475)](t(498),{allowAttributes:[t(491),t(473)]})}[dt(522)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(492)](t(488))[t(523)](e=>{const o=t;e.on(o(513),(t,e,n)=>{const s=o,r=e[s(507)],a=e[s(504)]?.[s(550)];r[s(545)](s(484))&&a?.is(s(529),s(498))&&(function(t,e,o,n){const i=s;if(!n[i(497)](e,i(473)))return;let r=1;const a=o[i(555)][i(556)](t,{attributes:i(518)});if(a){const e=Number[i(553)](t[i(496)](i(518)),10);Number[i(535)](e)||(r=e)}!a&&e[i(539)](i(473))||o[i(561)][i(528)](i(473),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(497)](e,i(491)))return;let r=i(495),a=!1;if(o[i(555)][i(556)](t,{attributes:i(543)})){const e={1:i(495),a:i(472),A:i(476),i:i(489),I:i(510)}[t[i(496)](i(543))];e&&(r=e),a=!0}o[i(555)][i(556)](t,{styles:i(536)})&&(r=function(t){const e=i;switch(t){case e(472):return e(471);case e(476):return e(502);default:return t}}(t[i(527)](i(536))),a=!0),!a&&e[i(539)](i(491))||o[i(561)][i(528)](i(491),r,e)}(r,a,n,i))})}),o[t(492)](t(469))[t(523)](e=>{const o=t;e.on(o(519),(t,e,n)=>{const i=o;if(!n[i(555)][i(556)](e[i(531)],t[i(538)]))return;const s=gt(e[i(531)],n[i(520)]),{attributeNewValue:r}=e;null==r||1===r?n[i(561)][i(477)](i(518),s):n[i(561)][i(528)](i(518),String(r),s)}),e.on(o(524),(t,e,n)=>{const i=o;if(!n[i(555)][i(556)](e[i(531)],t[i(538)]))return;const s=gt(e[i(531)],n[i(520)]),{attributeNewValue:r}=e;r&&i(495)!==r?n[i(561)][i(542)](i(536),r,s):n[i(561)][i(506)](i(536),s)})})}[dt(564)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(525)][t(515)](p),i=this[t(509)](),s=this[t(521)]();o[t(551)][t(534)](e=>{const r=t,a=o[r(551)][r(526)][r(490)]();let c=!1;for(const t of a){if(r(562)!==t[r(543)]||r(563)===t[r(538)])continue;const n=o[r(486)](t[r(512)][r(530)]);for(const t of n[r(517)]())t.is(r(529),r(498))&&(!t[r(539)](r(473))&&o[r(532)][r(497)](t,r(473))&&(e[r(528)](r(473),s,t),c=!0),!t[r(539)](r(491))&&o[r(532)][r(497)](t,r(491))&&(e[r(528)](r(491),i,t),c=!0))}return c&&n[r(500)](e),c})}[dt(540)](){const t=dt,{editor:e}=this;e[t(525)][t(515)](p)[t(511)](e=>this[t(541)](e))}[dt(509)](){const t=dt;return this[t(547)][t(537)][t(515)](t(481))}[dt(521)](){const t=dt;return this[t(547)][t(537)][t(515)](t(508))}[dt(541)]({container:t,value:e,digits:o}){const n=dt,i=t[n(496)](n(491)),s=t[n(496)](n(473)),r=Math[n(567)](e)+(s??1)-1;switch(i){case n(558):return function(t,e){const o=n;return String(t)[o(478)](e,"0")}(r,Math[n(544)](2,o));case n(472):case n(471):return wt(r,!1);case n(476):case n(502):return wt(r,!0);case n(489):return bt(r,!1);case n(510):return bt(r,!0);default:return String(r)}}}function mt(){const t=["registerPostFixer","isNaN","list-style-type","config","name","hasAttribute","_defineFormatter","_formatFootnoteListValue","setStyle","type","max","hasClass","isPremiumPlugin","editor","toUpperCase","getChildren","parent","document","fromCharCode","parseInt","find","consumable","consume","2019474cIIkbM","decimal-leading-zero","commands","footnotesStyle","writer","insert","$text","_definePostfixer","FootnotesPropertiesEditing","2800280QZdTBz","floor","5274122lZtXmJ","downcast","9JzghBG","lower-latin","lower-alpha","footnotesListStart","toLowerCase","extend","upper-alpha","removeAttribute","padStart","pluginName","_defineSchema","footnotes.footnotesProperties.defaultListStyle","toViewElement","footnotesStart","footnotes-list","model","createRangeOn","requires","upcast","lower-roman","getChanges","footnotesListStyle","for","134929PGMWZf","init","decimal","getAttribute","checkAttribute","footnotesDefinitions","1584333GtxhVw","_updateFootnotesCounters","2nwbPDI","upper-latin","isOfficialPlugin","modelCursor","12179200MDZQKu","removeStyle","viewItem","footnotes.footnotesProperties.defaultStartIndex","_getDefaultListStyle","upper-roman","setFootnoteFormatter","position","element:ol","from","get","define","getItems","start","attribute:footnotesListStart:footnotesDefinitions","mapper","_getDefaultStartIndex","_defineConverters","add","attribute:footnotesListStyle:footnotesDefinitions","plugins","differ","getStyle","setAttribute","element","nodeAfter","item","schema","4198895LcZrSj"];return(mt=function(){return t})()}function gt(t,e){const o=dt,n=e[o(482)](t);return Array[o(514)](n[o(549)]())[o(554)](t=>t.is(o(529),"ol")&&t[o(545)](o(484)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(552)](97+t)+n,i=Math[o(567)]((i-1)/26)}return e?n[o(548)]():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(474)]()}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=q(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=U();N()(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:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new 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]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=103]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(459567===parseInt(e(107))/1+parseInt(e(105))/2+-parseInt(e(117))/3*(-parseInt(e(114))/4)+parseInt(e(113))/5*(parseInt(e(115))/6)+parseInt(e(109))/7*(-parseInt(e(111))/8)+parseInt(e(116))/9+-parseInt(e(104))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(103)](){return Ft(108)}static get[Ft(106)](){return[ht,Ct]}static get[Ft(112)](){return!0}static get[Ft(110)](){return!0}}function Tt(){var t=["FootnotesProperties","168RKiQCx","isPremiumPlugin","215984GxeERg","isOfficialPlugin","4575VhtsDI","284XQzdUY","4848wDmyir","4943673DExaXa","31047vlxbqy","pluginName","14733060xEgxmo","933562OxXTWf","requires","90648yuFZlV"];return(Tt=function(){return t})()}function St(){var t=["972zlaCwO","527787UZNzkp","132494tIjavd","345023OekXgA","1053afbgXb","10bLmdsi","23459FQuqUV","46590GwDvGG","80KQVczb","75760HXBHPK"];return(St=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=398]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(102303===-parseInt(e(407))/1+parseInt(e(403))/2+parseInt(e(405))/3*(parseInt(e(401))/4)+parseInt(e(399))/5*(-parseInt(e(398))/6)+parseInt(e(404))/7+-parseInt(e(400))/8+parseInt(e(402))/9*(parseInt(e(406))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(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),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>f,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["6066632OYgXRO","type","slice","root","length","$text","from","name","getElementKey","_elementName","createRangeOn","1395108cDoplU","reset","get","add","attributes","flat","1258453iOgKGw","rootName","element","nodeAfter","4551306VTYQrl","3931480gaXcuG","getItems","insert","34hWXBqE","3358910JboGuv","clear","has","_trackedElements","values","remove","delete","4301hArhDe","elementName","position","getChanges","push","$graveyard","_model","set","_getElementKey"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=457]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(634094===-parseInt(e(493))/1*(-parseInt(e(485))/2)+-parseInt(e(471))/3+-parseInt(e(482))/4+parseInt(e(486))/5+parseInt(e(481))/6+-parseInt(e(477))/7+parseInt(e(460))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(457)];[a(469)];[a(459)];[a(489)]=new Map;constructor(t,e){const o=a;this[o(457)]=t,this[o(469)]=e[o(494)],this[o(459)]=e[o(468)]}[a(472)](){const t=a;this[t(489)][t(487)]()}[a(496)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(484)===i[e(461)]&&e(465)!==i[e(467)]&&i[e(495)][e(480)]){const t=this[e(457)][e(470)](i[e(495)][e(480)]);for(const o of t[e(483)]()){if(!o.is(e(479),this[e(469)]))continue;const t=this[e(459)](o);n[e(488)](t)||n[e(458)](t,[]),n[e(473)](t)[e(497)](o)}}if(e(491)===i[e(461)]&&i[e(467)]===this[e(469)]){const t=this[e(459)]({getAttribute:t=>i[e(475)][e(473)](t)});o[e(474)](t)}}for(const[t,n]of this[e(489)])e(498)===n[e(463)][e(478)]&&o[e(474)](t);for(const t of o)this[e(489)][e(492)](t);for(const[t,o]of n)this[e(489)][e(458)](t,o[o[e(464)]-1]);const i=new Set;for(const[t,s]of n)o[e(488)](t)&&(i[e(474)](s[0]),s[e(464)]>1?n[e(458)](t,s[e(462)](1)):n[e(492)](t),o[e(492)](t));return{removed:Array[e(466)](o),inserted:Array[e(466)](n[e(490)]())[e(476)](),moved:Array[e(466)](i)}}}const u=d;!function(t){const e=d,o=t();for(;;)try{if(408685===-parseInt(e(300))/1+-parseInt(e(335))/2+-parseInt(e(369))/3+parseInt(e(352))/4+parseInt(e(314))/5+parseInt(e(370))/6+parseInt(e(336))/7*(parseInt(e(321))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class f extends t.Plugin{[u(376)]=[];[u(323)]=null;[u(325)]=null;[u(359)];[u(310)];[u(301)];static get[u(343)](){return u(297)}static get[u(360)](){return!0}static get[u(373)](){return!0}constructor(t){const e=u;super(t),this[e(359)]=new l(this[e(347)][e(354)],{elementName:e(371),getElementKey:()=>e(346)}),this[e(310)]=new l(this[e(347)][e(354)],{elementName:e(349),getElementKey:t=>t[e(285)](e(362))}),this[e(301)]=new l(this[e(347)][e(354)],{elementName:e(302),getElementKey:t=>t[e(285)](e(362))})}[u(333)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(356)][t(291)](e=>{const n=t,i=o[n(356)][n(311)][n(355)]();let s=!1;return this[n(294)](e,i)&&(s=!0),this[n(320)](e,i)&&(s=!0),this[n(293)](e,i)&&(s=!0),this[n(329)](e)&&(s=!0),this[n(289)](e)&&(s=!0),this[n(366)](e)&&(s=!0),s}),this[t(313)](o[t(356)],t(331),()=>{const e=t;o[e(344)]({isUndoable:!1},t=>{this[e(350)](t)})},{priority:t(367)}),this[t(313)](n,t(292),()=>{const e=t;this[e(376)]=[],this[e(359)][e(328)](),this[e(310)][e(328)](),this[e(301)][e(328)]()},{priority:t(290)})}[u(315)](){return this[u(323)]}[u(341)](t){const e=u;return this[e(376)][e(298)](e=>e.id===t)||null}[u(316)](){const t=u;return Array[t(287)](this[t(376)])}[u(345)](){return this[u(325)]}[u(309)](t){this[u(325)]=t}[u(305)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(376)][o(286)];i++)this[o(296)](t,i)&&(n=!0);return n}[u(339)](t,e){const o=u,n=t[o(332)](o(371),{});return t[o(304)](n,e),this[o(323)]=n,n}[u(350)](t){const e=u;if(!this[e(376)][e(286)]||this[e(323)])return;const o=this[e(376)][0][e(312)][e(363)],n=this[e(339)](t,o);for(const o of this[e(376)])o[e(372)][e(278)]||t[e(368)](o[e(372)],n,e(284));this[e(305)](t)}[u(294)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(359)][o(355)](e);if(r[o(286)]&&(this[o(323)]=r[0]),i[o(286)])if(i[o(286)]>1||this[o(323)]&&i[o(365)](t=>t!==this[o(323)])){const e=t[o(332)](o(371),{}),s=[];this[o(323)]&&s[o(334)](this[o(323)]),s[o(334)](...i),t[o(368)](e,s[0],o(364));for(const n of s)t[o(279)](t[o(374)](n),t[o(326)](e,o(284))),t[o(318)](n);this[o(323)]=e,this[o(305)](t),n=!0}else this[o(323)]=i[0];if(s[o(286)]&&o(322)===this[o(323)]?.[o(363)][o(283)]){for(const e of this[o(376)])t[o(318)](e[o(312)]),n=!0;this[o(376)]=[],this[o(323)]=null}return n}[u(320)](t,e){const o=u;let n=!1;const i=this[o(347)][o(282)][o(327)](o(306)),{inserted:s,moved:r}=this[o(301)][o(355)](e);for(const e of[...r,...s]){const s=e[o(285)](o(362)),r=this[o(341)](s);r&&(r[o(372)]=e),h(t,i,e)&&(n=!0)}return n}[u(293)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(310)][o(355)](e);for(const e of i)this[o(340)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(358)](t,e)&&(n=!0);return n}[u(289)](t){const e=u;if(!this[e(323)])return!1;let o=!1;if(this[e(323)][e(348)]!==this[e(376)][e(286)]){const n=[];for(const t of this[e(323)][e(338)]()){const i=t[e(285)](e(362));this[e(341)](i)||(n[e(299)](t),o=!0)}for(const o of n)t[e(318)](o)}const n=new Set,i=[];for(const t of this[e(323)][e(338)]()){const s=t[e(285)](e(362));n[e(353)](s)?(i[e(299)](t),o=!0):n[e(280)](s)}for(const o of i)t[e(318)](o);return this[e(323)][e(348)]||(t[e(318)](this[e(323)]),this[e(323)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(376)][o(298)](t=>t[o(312)]===e))return!1;let n=!1;const i=e[o(285)](o(362)),s=this[o(376)][o(288)](t=>t.id===i);-1!==s&&(t[o(318)](this[o(376)][s][o(312)]),this[o(376)][o(375)](s,1),n=!0);let r=this[o(323)]?function(t,e){const n=o;for(const o of t[n(338)]())if(o[n(285)](n(362))===e)return o;return null}(this[o(323)],i):null;r||(r=t[o(332)](o(302),{footnoteId:i}),this[o(323)]&&(t[o(368)](r,this[o(323)],o(284)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(347)][o(354)],this[o(376)],e);this[o(376)][o(375)](c,0,a);let l=c;return-1!==s&&(l=Math[o(330)](c,s)),this[o(305)](t,l)&&(n=!0),n}[u(340)](t,e){const o=u,n=this[o(376)][o(288)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(376)][n];return o(322)!==s[o(372)][o(363)][o(283)]&&(t[o(318)](s[o(372)]),i=!0),this[o(376)][o(375)](n,1),this[o(305)](t,n)&&(i=!0),i}[u(358)](t,e){const o=u,n=e[o(285)](o(362)),i=this[o(376)][o(288)](t=>t.id===n),s=this[o(376)][i];let r=!1;s[o(312)]=e,this[o(376)][o(375)](i,1);const a=p(this[o(347)][o(354)],this[o(376)],e);return this[o(376)][o(375)](a,0,s),this[o(305)](t,Math[o(330)](i,a))&&(r=!0),r}[u(296)](t,e){const o=u;if(!this[o(323)])return!1;const n=this[o(376)][e];let i;return i=this[o(325)]?this[o(325)]({footnote:n,container:this[o(323)],digits:String(this[o(376)][o(286)])[o(286)],value:e+1}):String(e+1),n[o(312)][o(285)](o(295))!=i&&(t[o(307)](o(295),i,n[o(312)]),!0)}[u(366)](t){const e=u;if(!this[e(323)]||this[e(376)][e(286)]<2)return!1;if(function(t,o){const n=e;if(t[n(286)]!==o[n(286)])return!1;for(let e=0;e<t[n(286)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(376)][e(281)](t=>t.id),Array[e(287)](this[e(323)][e(338)]())[e(281)](t=>t[e(285)](e(362)))))return!1;let o=!1;for(let n=0;n<this[e(376)][e(286)];n++){const i=this[e(376)][n],s=t[e(337)](i[e(372)]),r=t[e(326)](this[e(323)],n);s[e(342)](r)||(t[e(279)](t[e(317)](i[e(372)]),r),o=!0)}return o}[u(329)](t){const e=u;if(!this[e(376)][e(286)])return!1;const{model:o}=this[e(347)];let n=!1;for(let i=0;i<this[e(376)][e(286)]-1;i++){const s=this[e(376)][i],r=this[e(376)][i+1],a=o[e(337)](s[e(312)]),c=o[e(337)](r[e(312)]);e(303)===a[e(324)](c)&&(this[e(358)](t,s[e(312)]),i=-1,n=!0)}return n}}function d(t,e){const o=m();return(d=function(t,e){return o[t-=278]})(t,e)}function h(t,e,o){const n=u;if(o[n(348)])return!1;const i=n(e?308:357);return t[n(368)](t[n(332)](i),o),!0}function p(t,e,o){const n=u;if(0===e[n(286)])return 0;const i=t[n(337)](o);for(let o=0;o<e[n(286)];o++){const s=e[o],r=t[n(337)](s[n(312)]);if(n(364)===i[n(324)](r))return o}const s=o[n(363)];let r=-1;for(let t=e[n(286)]-1;t>=0;t--)if(e[t][n(312)][n(363)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(356)][n(351)](),c=a[n(361)](s[n(283)]),l=a[c+1];if(l)for(let t=0;t<e[n(286)];t++)if(e[t][n(312)][n(363)][n(283)]===l)return t;return e[n(286)]}function m(){const t=["1202222uXsaMI","createPositionBefore","getChildren","_insertEmptyFootnotesDefinitionsContainer","_handleRemoveFootnoteReferenceById","getFootnote","isEqual","pluginName","enqueueChange","getFootnotesFormatter","singleton","editor","childCount","footnoteRef","_ensureFootnotesDefinitionsContainerExists","getRootNames","893528yyVkDF","has","model","getChanges","document","footnoteInlineContent","_handleMovedFootnoteReference","_footnoteDefsContainerTracker","isOfficialPlugin","indexOf","footnoteId","root","before","some","_sortFootnoteDefinitions","low","insert","1925922lccUIs","248760mDTgoO","footnotesDefinitions","definition","isPremiumPlugin","createRangeIn","splice","_footnotes","parent","move","add","map","config","rootName","end","getAttribute","length","from","findIndex","_handleFootnotesDefinitionsObjectSync","high","registerPostFixer","set","_handleFootnoteReferencesChanges","_handleFootnotesDefinitionsObjectChanges","footnoteCounter","_updateFootnoteRefCounter","FootnotesTracker","find","unshift","778614ytvJuO","_footnoteDefsTracker","footnoteDefinition","after","append","_updateFootnotesCounters","footnotes.multiBlock","setAttribute","paragraph","setFootnoteFormatter","_footnoteRefsTracker","differ","reference","listenTo","384750DzojVl","getFootnotesDefinitionsObjectElement","getFootnotes","createRangeOn","remove","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","96eykRXs","$graveyard","_footnotesDefinitions","compareWith","_footnoteFormatter","createPositionAt","get","reset","_ensureFootnotesReferencesHaveProperOrder","min","change:data","createElement","init","push","1146942YheiAn"];return(m=function(){return t})()}const g=y;function w(){const t=["5YECVvy","editor","2373inMexJ","change","test","3170oIQOTf","30364581claeJm","footnoteId","isEnabled","checkChild","string","30465DaJyih","document","selection","getItems","getFirstRange","119034dBIEWG","85686zPCvpF","execute","insert-footnote-command-executed-with-invalid-id","_moveSelectionToFootnoteDefinition","4zQSssr","5485182wJesge","model","end","plugins","6512zJktgX","2544lmoCbk","refresh","isObject","84EuHMlP","footnoteRef","length","get","_getPositionToInsertFootnote","insertObject","38247WUfoJx","isBlock","createElement","FootnotesEditing"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=275]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(950553===parseInt(e(281))/1*(parseInt(e(286))/2)+parseInt(e(282))/3*(parseInt(e(295))/4)+-parseInt(e(305))/5*(-parseInt(e(287))/6)+-parseInt(e(307))/7*(parseInt(e(291))/8)+-parseInt(e(276))/9*(-parseInt(e(310))/10)+-parseInt(e(301))/11*(-parseInt(e(292))/12)+-parseInt(e(311))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(293)](){const t=g,e=this[t(306)][t(288)][t(277)][t(278)],o=this[t(299)](e);this[t(313)]=!!o}[g(283)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(277)],r=this[e(299)](s);if(!r)return;const a=o[e(290)][e(298)](e(304)),c=t?.[e(312)]??(0,i.uid)();!function(t){const o=e;return o(275)==typeof t&&t[o(297)]>0&&!/\s/[o(309)](t)&&!/^\d/[o(309)](t)}(c)?(0,i.logWarning)(e(284)):(n[e(308)](t=>{const o=e,i=t[o(303)](o(296),{footnoteId:c});n[o(300)](i,r,null)}),a[e(285)](c))}[g(299)](t){const e=g,{model:o}=this[e(306)],{schema:n}=o,i=t[e(280)]();for(const t of i[e(279)]())if(n[e(302)](t)||n[e(294)](t))return null;const s=i[e(289)];return n[e(314)](s,e(296))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}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 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])],f(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 u=(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(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=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(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])](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])]: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=>{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])](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:1766016e3;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(f).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(f).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=D;function _(){const t=["create","includes","getAttribute","getFootnotesDefinitionsObjectElement","entries","setAttribute","isPremiumPlugin","end","reduce","toModel","isOfficialPlugin","pluginName","htmlProcessor","_insertEmptyFootnotesDefinitionsContainer","setData","get","100sbklJS","toView","definition","remove","getData","footnoteId","getSelectedBlocks","length","find","1738308DBPQsN","selection","contentInsertion","content","data","outputTransformation","createRangeIn","add","toData","getFirstRange","626170OUXQyZ","sourceEditorId","config","footnoteDefinition","footnoteRef","document","flatMap","footnoteInlineContent","root","_handleCopyFootnotesDefinitions","drop","7263gECopY","654712XQDGCi","stringify","element","editor","1630otLLnk","createElement","1226022ssIVqw","1282620qrZakW","method","dataTransfer","clipboardInput","getRanges","FootnotesClipboard","footnotesDefinitions","listenTo","from","parse","push","init","application/ckeditor5-footnotes","48123ytJPOE","_handlePasteFootnotesDefinitions","1EawsBy","_defineClipboardIntegration","append","editing","insert","change","requires","getFootnotes","getFootnote","footnotes.multiBlock"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=144]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(166066===parseInt(e(187))/1*(-parseInt(e(153))/2)+-parseInt(e(164))/3*(-parseInt(e(213))/4)+-parseInt(e(172))/5+-parseInt(e(222))/6+parseInt(e(171))/7+-parseInt(e(165))/8+parseInt(e(185))/9*(parseInt(e(169))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class A extends t.Plugin{static get[T(208)](){return T(177)}static get[T(193)](){return[v,P.ClipboardPipeline]}static get[T(207)](){return!0}static get[T(203)](){return!0}[T(183)](){this[T(188)]()}[T(188)](){const t=T;this[t(162)](),this[t(186)]()}[T(162)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(212)](P.ClipboardPipeline),s=o[t(212)](f);this[t(179)](i,t(148),(o,i)=>{const r=t,a=L(n[r(149)](i[r(146)]));if(!a[r(220)])return;const c=s[r(194)](),l=a[r(205)]((t,o)=>{const n=r,i=c[n(221)](t=>t.id===o);if(i){const o=e[n(147)][n(214)](i[n(215)],{isClipboardPipeline:!0}),s=e[n(147)][n(209)][n(151)](o);t[i.id]=s}return t},Object[r(197)](null));i[r(174)][r(211)](r(184),JSON[r(166)](l))})}[T(186)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(190)],r=n[t(212)](P.ClipboardPipeline),a=n[t(212)](f),c=e[t(155)][t(212)](t(196));let l=null;this[t(179)](s[t(158)],t(175),(e,o)=>{const n=t,i=o[n(174)][n(217)](n(184));l=i?JSON[n(181)](i):null}),this[t(179)](r,t(145),(n,s)=>{const r=t,u=s[r(154)]===this[r(168)].id;u&&r(163)===s[r(173)]||o[r(192)](t=>{const n=r;let f=a[n(200)]();const d=!!f&&Array[n(180)](o[n(158)][n(144)][n(219)]())[n(198)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(149)](e))n.is(o(167),o(178))&&i[o(182)](n);for(const e of i)t[o(216)](e)}(t,s[n(146)]),!l)return;const{selection:h}=o[n(158)],p=h[n(152)]()[n(161)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(149)](e))if(n.is(o(167),o(178)))return n;return null}(t,s[n(146)]),f||=a[n(210)](t,p));const m=Array[n(180)](h[n(176)]())[n(159)](L),g=function(t,e,o){const s=n,r=Object[s(197)](null);for(const{item:n}of t[s(149)](e))if(n.is(s(167),s(157))){const e=n[s(199)](s(218));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(202)](s(218),r[e],n)}return r}(t,s[n(146)],t=>{const e=n;return!u||!!a[e(195)](t)&&!m[e(198)](t)});for(const[o,i]of Object[n(201)](l)){const s=g[o]||o,r=t[n(170)](n(156),{footnoteId:s}),a=e[n(147)][n(209)][n(214)](i);let l;if(c)l=e[n(147)][n(206)](a,r);else{l=t[n(170)](n(160));const o=e[n(147)][n(206)](a,l);t[n(191)](o,l)}t[n(189)](l,r),t[n(191)](r,f,n(204))}l=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(167),e(157))&&o[e(150)](n[e(199)](e(218)));return Array[e(180)](o)}var V=o(311),O=o(355),N=o(929),R=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),W=o(123),z=o.n(W),U=o(741),q=o.n(U),H=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();R()(H.A,J);H.A&&H.A.locals&&H.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",G(t,V.ButtonView)),e.add("menuBar:insertFootnote",G(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 G(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:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Q;function Q(t,e){var o=Z();return(Q=function(t,e){return o[t-=348]})(t,e)}function Z(){var t=["10lTrWet","742506oJcgMn","pluginName","3pqTkbh","5961538bYmGWn","1696356HTpbAl","4068500bDTbCE","433236mnnnWu","7181307tWlXzq","18RXEgXJ","8axOEIV","Footnotes","requires","3067864xiGqdG","isPremiumPlugin","isOfficialPlugin"];return(Z=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(565085===parseInt(e(353))/1*(-parseInt(e(357))/2)+-parseInt(e(351))/3*(-parseInt(e(360))/4)+-parseInt(e(356))/5+parseInt(e(355))/6+parseInt(e(358))/7+parseInt(e(363))/8*(parseInt(e(359))/9)+-parseInt(e(350))/10*(parseInt(e(354))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[Y(352)](){return Y(361)}static get[Y(362)](){return[v,A,X]}static get[Y(349)](){return!0}static get[Y(348)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=382]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(384715===parseInt(e(393))/1+parseInt(e(389))/2+-parseInt(e(391))/3*(parseInt(e(382))/4)+-parseInt(e(397))/5*(-parseInt(e(388))/6)+parseInt(e(384))/7+-parseInt(e(392))/8+-parseInt(e(395))/9*(-parseInt(e(386))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(399),tt(390),tt(383),tt(398),tt(396),tt(394),tt(385),tt(387)];function nt(){const t=["lower-latin","602133lSDHiC","lower-roman","130xANZwy","upper-roman","36huJfIh","378450aLwNKw","decimal-leading-zero","5127romfta","2265536omKyZu","230120jULLVV","upper-alpha","7254nQTbAs","lower-alpha","222140bskdti","upper-latin","decimal","268bCNniq"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=370]})(t,e)}function rt(){const t=["isEnabled","224SpBjeE","footnotesListStyle","execute","getFootnotesDefinitionsObjectElement","getAttribute","9TyYRVM","153056qPQuOG","3494955QuxUUW","refresh","change","_updateFootnotesCounters","plugins","7hFeybb","121118FuDgaj","216927yvBeNt","includes","value","model","get","setAttribute","1342112gXBGZb","2986020ljlkRR","5111570OZHgxr"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(408462===-parseInt(e(390))/1*(parseInt(e(391))/2)+parseInt(e(392))/3+-parseInt(e(374))/4+parseInt(e(385))/5+parseInt(e(375))/6+parseInt(e(378))/7*(-parseInt(e(384))/8)+parseInt(e(383))/9*(parseInt(e(376))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(386)](){const t=it,{editor:e}=this,o=e[t(389)][t(372)](f)[t(381)]();this[t(377)]=!!o,this[t(370)]=o?.[t(382)](t(379))??null}[it(380)]({value:t}){const e=it,{editor:o}=this,n=o[e(389)][e(372)](f),i=n[e(381)]();i&&ot[e(393)](t)&&o[e(371)][e(387)](o=>{const s=e;o[s(373)](s(379),t,i),n[s(388)](o)})}}const ct=ut;function lt(){const t=["217081jZxMyE","getAttribute","execute","isInteger","4lxFHKo","7saHxqy","refresh","plugins","5231946PhCqsN","setAttribute","getFootnotesDefinitionsObjectElement","8mPjwNh","2259hkcjhA","footnotesListStart","15460BVlZFj","model","3401645JbOMor","7058799ezoVkl","get","2915280ELTuss","change","isEnabled","2613608oqKGBl","value","_updateFootnotesCounters"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=269]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(492138===-parseInt(e(280))/1*(parseInt(e(291))/2)+parseInt(e(274))/3+-parseInt(e(284))/4*(-parseInt(e(271))/5)+-parseInt(e(288))/6+parseInt(e(285))/7*(parseInt(e(277))/8)+parseInt(e(292))/9*(-parseInt(e(269))/10)+parseInt(e(272))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ct(286)](){const t=ct,{editor:e}=this,o=e[t(287)][t(273)](f)[t(290)]();this[t(276)]=!!o,this[t(278)]=o?.[t(281)](t(293))??null}[ct(282)]({value:t}){const e=ct,{editor:o}=this,n=o[e(287)][e(273)](f),i=n[e(290)]();i&&Number[e(283)](t)&&o[e(270)][e(275)](o=>{const s=e;o[s(289)](s(293),t,i),n[s(279)](o)})}}const dt=wt;function ht(){const t=["lower-alpha","from","item","1856485EWahtj","fromCharCode","1418091RuctGc","consume","footnotesStyle","start","upper-latin","_getDefaultListStyle","_definePostfixer","element","585ThtzgY","isOfficialPlugin","floor","name","upper-alpha","element:ol","extend","hasClass","$text","list-style-type","attribute:footnotesListStyle:footnotesDefinitions","setAttribute","attribute:footnotesListStart:footnotesDefinitions","differ","_defineSchema","downcast","decimal","_formatFootnoteListValue","64200oJOZFv","setStyle","plugins","define","lower-latin","checkAttribute","isPremiumPlugin","document","footnotesListStart","footnotes-list","commands","mapper","schema","footnotesDefinitions","type","421600rYxzcX","parent","footnotesStart","footnotesListStyle","nodeAfter","insert","init","consumable","footnotes.footnotesProperties.defaultStartIndex","_defineConverters","max","get","2213352lJNEPe","toLowerCase","FootnotesPropertiesEditing","toViewElement","config","parseInt","registerPostFixer","decimal-leading-zero","setFootnoteFormatter","21YSrYLm","_updateFootnotesCounters","requires","upcast","_defineFormatter","hasAttribute","viewItem","lower-roman","pluginName","writer","getItems","modelCursor","createRangeOn","add","getChildren","find","getStyle","removeStyle","isNaN","getChanges","upper-roman","2DRkKiZ","padStart","model","removeAttribute","for","editor","getAttribute","1516888ivWFbg","position","footnotes.footnotesProperties.defaultListStyle","1017224zmMRcx","toUpperCase","_getDefaultStartIndex"];return(ht=function(){return t})()}!function(t){const e=wt,o=t();for(;;)try{if(294689===parseInt(e(376))/1+parseInt(e(418))/2*(-parseInt(e(436))/3)+parseInt(e(425))/4+parseInt(e(434))/5+-parseInt(e(388))/6+parseInt(e(397))/7*(parseInt(e(428))/8)+-parseInt(e(444))/9*(parseInt(e(361))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class pt extends t.Plugin{static get[dt(405)](){return dt(390)}static get[dt(399)](){return[v,f]}static get[dt(445)](){return!0}static get[dt(367)](){return!0}[dt(382)](){const t=dt,{editor:e}=this;e[t(392)][t(364)](t(427),t(460)),e[t(392)][t(364)](t(384),1),e[t(371)][t(410)](t(438),new at(e)),e[t(371)][t(410)](t(378),new ft(e)),this[t(458)](),this[t(385)](),this[t(401)](),this[t(442)]()}[dt(458)](){const t=dt,{editor:e}=this,{schema:o}=e[t(420)];o[t(450)](t(374),{allowAttributes:[t(379),t(369)]})}[dt(385)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(422)](t(400))[t(410)](e=>{const o=t;e.on(o(449),(t,e,n)=>{const s=o,r=e[s(403)],a=e[s(408)]?.[s(377)];r[s(451)](s(370))&&a?.is(s(443),s(374))&&(function(t,e,o,n){const i=s;if(!n[i(366)](e,i(369)))return;let r=1;const a=o[i(383)][i(437)](t,{attributes:i(439)});if(a){const e=Number[i(393)](t[i(424)](i(439)),10);Number[i(415)](e)||(r=e)}!a&&e[i(402)](i(369))||o[i(406)][i(455)](i(369),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(366)](e,i(379)))return;let r=i(460),a=!1;if(o[i(383)][i(437)](t,{attributes:i(375)})){const e={1:i(460),a:i(431),A:i(448),i:i(404),I:i(417)}[t[i(424)](i(375))];e&&(r=e),a=!0}o[i(383)][i(437)](t,{styles:i(453)})&&(r=function(t){const e=i;switch(t){case e(431):return e(365);case e(448):return e(440);default:return t}}(t[i(413)](i(453))),a=!0),!a&&e[i(402)](i(379))||o[i(406)][i(455)](i(379),r,e)}(r,a,n,i))})}),o[t(422)](t(459))[t(410)](e=>{const o=t;e.on(o(456),(t,e,n)=>{const i=o;if(!n[i(383)][i(437)](e[i(433)],t[i(447)]))return;const s=mt(e[i(433)],n[i(372)]),{attributeNewValue:r}=e;null==r||1===r?n[i(406)][i(421)](i(439),s):n[i(406)][i(455)](i(439),String(r),s)}),e.on(o(454),(t,e,n)=>{const i=o;if(!n[i(383)][i(437)](e[i(433)],t[i(447)]))return;const s=mt(e[i(433)],n[i(372)]),{attributeNewValue:r}=e;r&&i(460)!==r?n[i(406)][i(362)](i(453),r,s):n[i(406)][i(414)](i(453),s)})})}[dt(442)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(363)][t(387)](f),i=this[t(441)](),s=this[t(430)]();o[t(368)][t(394)](e=>{const r=t,a=o[r(368)][r(457)][r(416)]();let c=!1;for(const t of a){if(r(381)!==t[r(375)]||r(452)===t[r(447)])continue;const n=o[r(409)](t[r(426)][r(380)]);for(const t of n[r(407)]())t.is(r(443),r(374))&&(!t[r(402)](r(369))&&o[r(373)][r(366)](t,r(369))&&(e[r(455)](r(369),s,t),c=!0),!t[r(402)](r(379))&&o[r(373)][r(366)](t,r(379))&&(e[r(455)](r(379),i,t),c=!0))}return c&&n[r(398)](e),c})}[dt(401)](){const t=dt,{editor:e}=this;e[t(363)][t(387)](f)[t(396)](e=>this[t(360)](e))}[dt(441)](){const t=dt;return this[t(423)][t(392)][t(387)](t(427))}[dt(430)](){const t=dt;return this[t(423)][t(392)][t(387)](t(384))}[dt(360)]({container:t,value:e,digits:o}){const n=dt,i=t[n(424)](n(379)),s=t[n(424)](n(369)),r=Math[n(446)](e)+(s??1)-1;switch(i){case n(395):return function(t,e){const o=n;return String(t)[o(419)](e,"0")}(r,Math[n(386)](2,o));case n(431):case n(365):return gt(r,!1);case n(448):case n(440):return gt(r,!0);case n(404):return bt(r,!1);case n(417):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(391)](t);return Array[o(432)](n[o(411)]())[o(412)](t=>t.is(o(443),"ol")&&t[o(451)](o(370)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(435)](97+t)+n,i=Math[o(446)]((i-1)/26)}return e?n[o(429)]():n}function wt(t,e){const o=ht();return(wt=function(t,e){return o[t-=360]})(t,e)}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(389)]()}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=z(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=q();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:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new 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]})}}var Ft=Et;function xt(){var t=["requires","5618862RyYYdE","pluginName","80MvzSCL","isOfficialPlugin","96664roorAm","104022jwgkfO","6tqnUYI","FootnotesProperties","1456416psWhgL","1068564rbIbLE","377762QPxiUQ","isPremiumPlugin","3334580GaPIyp","40EkMpdp"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=212]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(694010===parseInt(e(218))/1+-parseInt(e(221))/2*(parseInt(e(213))/3)+-parseInt(e(212))/4*(-parseInt(e(225))/5)+-parseInt(e(214))/6*(parseInt(e(217))/7)+-parseInt(e(216))/8+parseInt(e(223))/9+parseInt(e(220))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class St extends t.Plugin{static get[Ft(224)](){return Ft(215)}static get[Ft(222)](){return[pt,Ct]}static get[Ft(226)](){return!0}static get[Ft(219)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=185]})(t,e)}function Tt(){var t=["1107729MacHEu","110XfeewY","5095170vbmozp","7832rpiukB","4437966BclnQS","5071545OqWSiA","1786605caQoqF","59620BONxih","210eUeVKi","24LCNNlr"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(635119===-parseInt(e(188))/1*(parseInt(e(190))/2)+-parseInt(e(193))/3+parseInt(e(194))/4*(-parseInt(e(185))/5)+parseInt(e(191))/6+-parseInt(e(187))/7*(-parseInt(e(186))/8)+parseInt(e(192))/9+parseInt(e(189))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();