@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251123.0 → 0.0.0-nightly-20251125.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:()=>Q,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=y;function w(){const t=["isBlock","isEnabled","_getPositionToInsertFootnote","1129992vrrpMj","plugins","change","_moveSelectionToFootnoteDefinition","string","getItems","get","model","refresh","302724lqHQRZ","1740984lIxpIM","length","FootnotesEditing","end","editor","7436JCNDUl","footnoteId","getFirstRange","selection","256FRsTVb","document","28040EvPcxG","createElement","insert-footnote-command-executed-with-invalid-id","isObject","insertObject","test","34550AiyaHP","91DPsZKu","2037524pdqPxG","1zjGsUB","execute","checkChild","7481637uCAEMC","footnoteRef"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=433]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(533042===parseInt(e(457))/1*(parseInt(e(456))/2)+parseInt(e(437))/3+-parseInt(e(446))/4*(parseInt(e(448))/5)+-parseInt(e(436))/6*(-parseInt(e(455))/7)+parseInt(e(465))/8+parseInt(e(460))/9+parseInt(e(454))/10*(-parseInt(e(442))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(435)](){const t=g,e=this[t(441)][t(434)][t(447)][t(445)],o=this[t(464)](e);this[t(463)]=!!o}[g(458)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(447)],r=this[e(464)](s);if(!r)return;const a=o[e(466)][e(433)](e(439)),c=t?.[e(443)]??(0,i.uid)();!function(t){const o=e;return o(469)==typeof t&&t[o(438)]>0&&!/\s/[o(453)](t)&&!/^\d/[o(453)](t)}(c)?(0,i.logWarning)(e(450)):(n[e(467)](t=>{const o=e,i=t[o(449)](o(461),{footnoteId:c});n[o(452)](i,r,null)}),a[e(468)](c))}[g(464)](t){const e=g,{model:o}=this[e(441)],{schema:n}=o,i=t[e(444)]();for(const t of i[e(470)]())if(n[e(462)](t)||n[e(451)](t))return null;const s=i[e(440)];return n[e(459)](s,e(461))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1763856e3;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(P(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function P(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function E(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=D;function _(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),X=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=W(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();O()(X.A,q);X.A&&X.A.locals&&X.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,R.ButtonView)),e.add("menuBar:insertFootnote",J(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=Y;function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=151]})(t,e)}function $(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return($=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,G]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)],it=rt;function st(){const t=["23660XSoVHj","1339672NBmKTO","1486riuLgd","execute","change","2294946XxznRT","5721pXnGSs","value","1494EkdXgR","getAttribute","isEnabled","138094bUdUNa","3768PGlJot","includes","model","1396685FxsKTl","refresh","get","8Lfocwc","footnotesListStyle","14yKfebw","setAttribute","_updateFootnotesCounters","1211501erzdjH","getFootnotesDefinitionsObjectElement","plugins"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=386]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(762063===-parseInt(e(396))/1+parseInt(e(401))/2*(-parseInt(e(405))/3)+parseInt(e(391))/4*(parseInt(e(388))/5)+-parseInt(e(404))/6+parseInt(e(393))/7*(-parseInt(e(400))/8)+parseInt(e(407))/9*(-parseInt(e(399))/10)+parseInt(e(410))/11*(parseInt(e(411))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(389)](){const t=it,{editor:e}=this,o=e[t(398)][t(390)](d)[t(397)]();this[t(409)]=!!o,this[t(406)]=o?.[t(408)](t(392))??null}[it(402)]({value:t}){const e=it,{editor:o}=this,n=o[e(398)][e(390)](d),i=n[e(397)]();i&&nt[e(386)](t)&&o[e(387)][e(403)](o=>{const s=e;o[s(394)](s(392),t,i),n[s(395)](o)})}}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=338]})(t,e)}function ut(){const t=["execute","refresh","footnotesListStart","isEnabled","216979cKfRRJ","1883520pBeWXL","isInteger","model","change","get","getAttribute","29238ZVdirP","value","45ajTaqh","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","50412ysspsm","plugins","8nzMITh","71245nqXWyQ","setAttribute","230274eulUMK","421468TAfalu","20vWPaSU"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(130512===-parseInt(e(357))/1+-parseInt(e(361))/2*(-parseInt(e(354))/3)+-parseInt(e(360))/4+-parseInt(e(351))/5*(parseInt(e(349))/6)+parseInt(e(342))/7*(-parseInt(e(356))/8)+parseInt(e(359))/9+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(339)](){const t=ct,{editor:e}=this,o=e[t(355)][t(347)](d)[t(353)]();this[t(341)]=!!o,this[t(350)]=o?.[t(348)](t(340))??null}[ct(338)]({value:t}){const e=ct,{editor:o}=this,n=o[e(355)][e(347)](d),i=n[e(353)]();i&&Number[e(344)](t)&&o[e(345)][e(346)](o=>{const s=e;o[s(358)](s(340),t,i),n[s(352)](o)})}}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ft(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}const wt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function yt(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>A,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;!function(t){const e=c,o=t();for(;;)try{if(173866===-parseInt(e(507))/1*(-parseInt(e(511))/2)+parseInt(e(495))/3+-parseInt(e(472))/4+-parseInt(e(501))/5*(-parseInt(e(488))/6)+-parseInt(e(502))/7*(-parseInt(e(481))/8)+parseInt(e(505))/9*(-parseInt(e(496))/10)+parseInt(e(479))/11*(-parseInt(e(497))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(475)];[r(506)];[r(480)];[r(483)]=new Map;constructor(t,e){const o=r;this[o(475)]=t,this[o(506)]=e[o(508)],this[o(480)]=e[o(491)]}[r(494)](){const t=r;this[t(483)][t(509)]()}[r(499)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(473)===i[e(489)]&&e(470)!==i[e(510)]&&i[e(492)][e(482)]){const t=this[e(475)][e(474)](i[e(492)][e(482)]);for(const o of t[e(498)]()){if(!o.is(e(504),this[e(506)]))continue;const t=this[e(480)](o);n[e(503)](t)||n[e(468)](t,[]),n[e(487)](t)[e(466)](o)}}if(e(476)===i[e(489)]&&i[e(510)]===this[e(506)]){const t=this[e(480)]({getAttribute:t=>i[e(490)][e(487)](t)});o[e(493)](t)}}for(const[t,n]of this[e(483)])e(485)===n[e(467)][e(469)]&&o[e(493)](t);for(const t of o)this[e(483)][e(478)](t);for(const[t,o]of n)this[e(483)][e(468)](t,o[o[e(500)]-1]);const i=new Set;for(const[t,s]of n)o[e(503)](t)&&(i[e(493)](s[0]),s[e(500)]>1?n[e(468)](t,s[e(477)](1)):n[e(478)](t),o[e(478)](t));return{removed:Array[e(484)](o),inserted:Array[e(484)](n[e(486)]())[e(471)](),moved:Array[e(484)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=466]})(t,e)}function l(){const t=["nodeAfter","_trackedElements","from","$graveyard","values","get","42ftXvyU","type","attributes","getElementKey","position","add","reset","245118tYeiIg","22150hQXfME","12hxuvIY","getItems","getChanges","length","200095QyFqtq","7lGmIbL","has","element","729Ucyzoq","_elementName","2QqecYg","elementName","clear","name","44092pBUZiA","push","root","set","rootName","$text","flat","833288nrZDUc","insert","createRangeOn","_model","remove","slice","delete","1063161EUhKkB","_getElementKey","2018584SUJEVS"];return(l=function(){return t})()}const f=u;function u(t,e){const o=m();return(u=function(t,e){return o[t-=367]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(452711===parseInt(e(401))/1*(parseInt(e(387))/2)+-parseInt(e(451))/3+parseInt(e(411))/4*(-parseInt(e(386))/5)+parseInt(e(452))/6*(-parseInt(e(433))/7)+parseInt(e(444))/8+-parseInt(e(465))/9*(-parseInt(e(421))/10)+-parseInt(e(416))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[f(405)]=[];[f(368)]=null;[f(384)]=null;[f(374)];[f(389)];[f(420)];static get[f(392)](){return f(390)}static get[f(403)](){return!0}static get[f(463)](){return!0}constructor(t){const e=f;super(t),this[e(374)]=new a(this[e(456)][e(376)],{elementName:e(423),getElementKey:()=>e(377)}),this[e(389)]=new a(this[e(456)][e(376)],{elementName:e(453),getElementKey:t=>t[e(370)](e(457))}),this[e(420)]=new a(this[e(456)][e(376)],{elementName:e(447),getElementKey:t=>t[e(370)](e(457))})}[f(435)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(404)][t(382)](e=>{const n=t,i=o[n(404)][n(385)][n(422)]();let s=!1;return this[n(429)](e,i)&&(s=!0),this[n(388)](e,i)&&(s=!0),this[n(394)](e,i)&&(s=!0),this[n(454)](e)&&(s=!0),this[n(397)](e)&&(s=!0),this[n(369)](e)&&(s=!0),s}),this[t(426)](o[t(404)],t(373),()=>{const e=t;o[e(415)]({isUndoable:!1},t=>{this[e(468)](t)})},{priority:t(412)}),this[t(426)](n,t(407),()=>{const e=t;this[e(405)]=[],this[e(374)][e(375)](),this[e(389)][e(375)](),this[e(420)][e(375)]()},{priority:t(425)})}[f(417)](){return this[f(368)]}[f(409)](t){const e=f;return this[e(405)][e(455)](e=>e.id===t)||null}[f(458)](){const t=f;return Array[t(432)](this[t(405)])}[f(371)](){return this[f(384)]}[f(408)](t){this[f(384)]=t}[f(406)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(405)][o(448)];i++)this[o(381)](t,i)&&(n=!0);return n}[f(460)](t,e){const o=f,n=t[o(393)](o(423),{});return t[o(395)](n,e),this[o(368)]=n,n}[f(468)](t){const e=f;if(!this[e(405)][e(448)]||this[e(368)])return;const o=this[e(405)][0][e(379)][e(378)],n=this[e(460)](t,o);for(const o of this[e(405)])o[e(441)][e(399)]||t[e(459)](o[e(441)],n,e(396));this[e(406)](t)}[f(429)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(374)][o(422)](e);if(r[o(448)]&&(this[o(368)]=r[0]),i[o(448)])if(i[o(448)]>1||this[o(368)]&&i[o(418)](t=>t!==this[o(368)])){const e=t[o(393)](o(423),{}),s=[];this[o(368)]&&s[o(427)](this[o(368)]),s[o(427)](...i),t[o(459)](e,s[0],o(367));for(const n of s)t[o(437)](t[o(431)](n),t[o(414)](e,o(396))),t[o(430)](n);this[o(368)]=e,this[o(406)](t),n=!0}else this[o(368)]=i[0];if(s[o(448)]&&o(428)===this[o(368)]?.[o(378)][o(434)]){for(const e of this[o(405)])t[o(430)](e[o(379)]),n=!0;this[o(405)]=[],this[o(368)]=null}return n}[f(388)](t,e){const o=f;let n=!1;const i=this[o(456)][o(410)][o(449)](o(462)),{inserted:s,moved:r}=this[o(420)][o(422)](e);for(const e of[...r,...s]){const s=e[o(370)](o(457)),r=this[o(409)](s);r&&(r[o(441)]=e),h(t,i,e)&&(n=!0)}return n}[f(394)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(389)][o(422)](e);for(const e of i)this[o(466)](t,e)&&(n=!0);for(const e of s)this[o(424)](t,e)&&(n=!0);for(const e of r)this[o(413)](t,e)&&(n=!0);return n}[f(397)](t){const e=f;if(!this[e(368)])return!1;let o=!1;if(this[e(368)][e(402)]!==this[e(405)][e(448)]){const n=[];for(const t of this[e(368)][e(464)]()){const i=t[e(370)](e(457));this[e(409)](i)||(n[e(461)](t),o=!0)}for(const o of n)t[e(430)](o)}const n=new Set,i=[];for(const t of this[e(368)][e(464)]()){const s=t[e(370)](e(457));n[e(442)](s)?(i[e(461)](t),o=!0):n[e(439)](s)}for(const o of i)t[e(430)](o);return this[e(368)][e(402)]||(t[e(430)](this[e(368)]),this[e(368)]=null,o=!0),o}[f(424)](t,e){const o=f;if(this[o(405)][o(455)](t=>t[o(379)]===e))return!1;let n=!1;const i=e[o(370)](o(457)),s=this[o(405)][o(443)](t=>t.id===i);-1!==s&&(t[o(430)](this[o(405)][s][o(379)]),this[o(405)][o(419)](s,1),n=!0);let r=this[o(368)]?function(t,e){const n=o;for(const o of t[n(464)]())if(o[n(370)](n(457))===e)return o;return null}(this[o(368)],i):null;r||(r=t[o(393)](o(447),{footnoteId:i}),this[o(368)]&&(t[o(459)](r,this[o(368)],o(396)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(456)][o(376)],this[o(405)],e);this[o(405)][o(419)](c,0,a);let l=c;return-1!==s&&(l=Math[o(440)](c,s)),this[o(406)](t,l)&&(n=!0),n}[f(466)](t,e){const o=f,n=this[o(405)][o(443)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(405)][n];return o(428)!==s[o(441)][o(378)][o(434)]&&(t[o(430)](s[o(441)]),i=!0),this[o(405)][o(419)](n,1),this[o(406)](t,n)&&(i=!0),i}[f(413)](t,e){const o=f,n=e[o(370)](o(457)),i=this[o(405)][o(443)](t=>t.id===n),s=this[o(405)][i];let r=!1;s[o(379)]=e,this[o(405)][o(419)](i,1);const a=p(this[o(456)][o(376)],this[o(405)],e);return this[o(405)][o(419)](a,0,s),this[o(406)](t,Math[o(440)](i,a))&&(r=!0),r}[f(381)](t,e){const o=f;if(!this[o(368)])return!1;const n=this[o(405)][e];let i;return i=this[o(384)]?this[o(384)]({footnote:n,container:this[o(368)],digits:String(this[o(405)][o(448)])[o(448)],value:e+1}):String(e+1),n[o(379)][o(370)](o(436))!=i&&(t[o(383)](o(436),i,n[o(379)]),!0)}[f(369)](t){const e=f;if(!this[e(368)]||this[e(405)][e(448)]<2)return!1;if(function(t,o){const n=e;if(t[n(448)]!==o[n(448)])return!1;for(let e=0;e<t[n(448)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(405)][e(445)](t=>t.id),Array[e(432)](this[e(368)][e(464)]())[e(445)](t=>t[e(370)](e(457)))))return!1;let o=!1;for(let n=0;n<this[e(405)][e(448)];n++){const i=this[e(405)][n],s=t[e(438)](i[e(441)]),r=t[e(414)](this[e(368)],n);s[e(398)](r)||(t[e(437)](t[e(391)](i[e(441)]),r),o=!0)}return o}[f(454)](t){const e=f;if(!this[e(405)][e(448)])return!1;const{model:o}=this[e(456)];let n=!1;for(let i=0;i<this[e(405)][e(448)]-1;i++){const s=this[e(405)][i],r=this[e(405)][i+1],a=o[e(438)](s[e(379)]),c=o[e(438)](r[e(379)]);e(450)===a[e(372)](c)&&(this[e(413)](t,s[e(379)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(402)])return!1;const i=n(e?467:446);return t[n(459)](t[n(393)](i),o),!0}function p(t,e,o){const n=f;if(0===e[n(448)])return 0;const i=t[n(438)](o);for(let o=0;o<e[n(448)];o++){const s=e[o],r=t[n(438)](s[n(379)]);if(n(367)===i[n(372)](r))return o}const s=o[n(378)];let r=-1;for(let t=e[n(448)]-1;t>=0;t--)if(e[t][n(379)][n(378)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(404)][n(380)](),c=a[n(400)](s[n(434)]),l=a[c+1];if(l)for(let t=0;t<e[n(448)];t++)if(e[t][n(379)][n(378)][n(434)]===l)return t;return e[n(448)]}function m(){const t=["childCount","isOfficialPlugin","document","_footnotes","_updateFootnotesCounters","set","setFootnoteFormatter","getFootnote","config","6224luknnR","low","_handleMovedFootnoteReference","createPositionAt","enqueueChange","362230ZAXlQE","getFootnotesDefinitionsObjectElement","some","splice","_footnoteDefsTracker","10YcWWqb","getChanges","footnotesDefinitions","_handleInsertedFootnoteReference","high","listenTo","push","$graveyard","_handleFootnotesDefinitionsObjectChanges","remove","createRangeIn","from","260575PkYLUh","rootName","init","footnoteCounter","move","createPositionBefore","add","min","definition","has","findIndex","4596768hAMoZE","map","footnoteInlineContent","footnoteDefinition","length","get","after","919758FLUtpt","36VSqXHt","footnoteRef","_ensureFootnotesReferencesHaveProperOrder","find","editor","footnoteId","getFootnotes","insert","_insertEmptyFootnotesDefinitionsContainer","unshift","footnotes.multiBlock","isPremiumPlugin","getChildren","6145020UpKWZc","_handleRemoveFootnoteReferenceById","paragraph","_ensureFootnotesDefinitionsContainerExists","before","_footnotesDefinitions","_sortFootnoteDefinitions","getAttribute","getFootnotesFormatter","compareWith","change:data","_footnoteDefsContainerTracker","reset","model","singleton","root","reference","getRootNames","_updateFootnoteRefCounter","registerPostFixer","setAttribute","_footnoteFormatter","differ","1200uYHJLr","263282fjWrQB","_handleFootnoteDefinitionsChanges","_footnoteRefsTracker","FootnotesTracker","createRangeOn","pluginName","createElement","_handleFootnoteReferencesChanges","append","end","_handleFootnotesDefinitionsObjectSync","isEqual","parent","indexOf","1kwnpFD"];return(m=function(){return t})()}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=405]})(t,e)}function y(){const t=["isEnabled","4796912tKKqfH","end","584925ARRrcx","isObject","editor","_getPositionToInsertFootnote","10308dWehEj","getFirstRange","footnoteId","selection","isBlock","refresh","32311611yZqMde","footnoteRef","get","getItems","checkChild","FootnotesEditing","execute","2840GuEvhY","createElement","document","plugins","insert-footnote-command-executed-with-invalid-id","string","2372164RUtPxW","_moveSelectionToFootnoteDefinition","77523NSQETX","6575156GHRPEm","46pvatUY","model","length","test","insertObject","change"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(491810===-parseInt(e(420))/1+parseInt(e(411))/2*(parseInt(e(409))/3)+-parseInt(e(407))/4+parseInt(e(437))/5*(-parseInt(e(424))/6)+-parseInt(e(410))/7+-parseInt(e(418))/8+parseInt(e(430))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(429)](){const t=g,e=this[t(422)][t(412)][t(439)][t(427)],o=this[t(423)](e);this[t(417)]=!!o}[g(436)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(439)],r=this[e(423)](s);if(!r)return;const a=o[e(440)][e(432)](e(435)),c=t?.[e(426)]??(0,i.uid)();!function(t){const o=e;return o(406)==typeof t&&t[o(413)]>0&&!/\s/[o(414)](t)&&!/^\d/[o(414)](t)}(c)?(0,i.logWarning)(e(405)):(n[e(416)](t=>{const o=e,i=t[o(438)](o(431),{footnoteId:c});n[o(415)](i,r,null)}),a[e(408)](c))}[g(423)](t){const e=g,{model:o}=this[e(422)],{schema:n}=o,i=t[e(425)]();for(const t of i[e(433)]())if(n[e(428)](t)||n[e(421)](t))return null;const s=i[e(419)];return n[e(434)](s,e(431))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764028800;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(x(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function D(t,e){const o=_();return(D=function(t,e){return o[t-=250]})(t,e)}function _(){const t=["application/ckeditor5-footnotes","footnoteId","selection","toModel","entries","_defineClipboardIntegration","1078282DPjuHv","getFootnote","setAttribute","data","4283160QnLafW","parse","getFootnotes","createElement","editor","toData","sourceEditorId","contentInsertion","getFootnotesDefinitionsObjectElement","from","includes","setData","getRanges","create","init","requires","length","11616906KRlbLi","getFirstRange","11122951OXtukx","document","getAttribute","content","footnoteDefinition","insert","add","pluginName","outputTransformation","end","4738370oIXinX","change","flatMap","drop","clipboardInput","stringify","htmlProcessor","createRangeIn","isPremiumPlugin","footnoteRef","listenTo","29539352MCdbRm","_handlePasteFootnotesDefinitions","get","_insertEmptyFootnotesDefinitionsContainer","push","footnotesDefinitions","editing","method","dataTransfer","definition","toView","isOfficialPlugin","2879712WvrteV","FootnotesClipboard","8hreSEU","_handleCopyFootnotesDefinitions","element","getSelectedBlocks","remove","getData","append","root","find","reduce"];return(_=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(972205===-parseInt(e(266))/1+-parseInt(e(322))/2+parseInt(e(270))/3+parseInt(e(250))/4*(parseInt(e(299))/5)+-parseInt(e(287))/6+-parseInt(e(289))/7+parseInt(e(310))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class A extends t.Plugin{static get[T(296)](){return T(323)}static get[T(285)](){return[v,P.ClipboardPipeline]}static get[T(321)](){return!0}static get[T(307)](){return!0}[T(284)](){this[T(265)]()}[T(265)](){const t=T;this[t(251)](),this[t(311)]()}[T(251)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(312)](P.ClipboardPipeline),s=o[t(312)](d);this[t(309)](i,t(297),(o,i)=>{const r=t,a=L(n[r(306)](i[r(292)]));if(!a[r(286)])return;const c=s[r(272)](),l=a[r(259)]((t,o)=>{const n=r,i=c[n(258)](t=>t.id===o);if(i){const o=e[n(269)][n(320)](i[n(319)],{isClipboardPipeline:!0}),s=e[n(269)][n(305)][n(275)](o);t[i.id]=s}return t},Object[r(283)](null));i[r(318)][r(281)](r(260),JSON[r(304)](l))})}[T(311)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(316)],r=n[t(312)](P.ClipboardPipeline),a=n[t(312)](d);let c=null;this[t(309)](s[t(290)],t(303),(e,o)=>{const n=t,i=o[n(318)][n(255)](n(260));c=i?JSON[n(271)](i):null}),this[t(309)](r,t(277),(n,s)=>{const r=t,l=s[r(276)]===this[r(274)].id;l&&r(302)===s[r(317)]||o[r(300)](t=>{const n=r;let f=a[n(278)]();const u=!!f&&Array[n(279)](o[n(290)][n(262)][n(253)]())[n(280)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(306)](e))n.is(o(252),o(315))&&i[o(314)](n);for(const e of i)t[o(254)](e)}(t,s[n(292)]),!c)return;const{selection:d}=o[n(290)],h=d[n(288)]()[n(257)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(306)](e))if(n.is(o(252),o(315)))return n;return null}(t,s[n(292)]),f||=a[n(313)](t,h));const p=Array[n(279)](d[n(282)]())[n(301)](L),m=function(t,e,o){const s=n,r=Object[s(283)](null);for(const{item:n}of t[s(306)](e))if(n.is(s(252),s(308))){const e=n[s(291)](s(261));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(268)](s(261),r[e],n)}return r}(t,s[n(292)],t=>{const e=n;return!l||!!a[e(267)](t)&&!p[e(280)](t)});for(const[o,i]of Object[n(264)](c)){const s=m[o]||o,r=t[n(273)](n(293),{footnoteId:s}),a=e[n(269)][n(305)][n(320)](i),c=e[n(269)][n(263)](a,r);t[n(256)](c,r),t[n(294)](r,f,n(298))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(252),e(308))&&o[e(295)](n[e(291)](e(261)));return Array[e(279)](o)}var V=o(311),R=o(355),N=o(929),O=o.n(N),K=o(297),M=o.n(K),B=o(102),j=o.n(B),U=o(123),H=o.n(U),W=o(741),z=o.n(W),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=H(),X.insert=j().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=z();O()(q.A,X);q.A&&q.A.locals&&q.A.locals;class Y 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:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=161]})(t,e)}function $(){var t=["requires","1252041rbpfIS","7794996VpToSz","pluginName","213GVtKXz","isOfficialPlugin","isPremiumPlugin","113788quRwyU","49985388eWXERw","4896003sLkWoP","245Htvxox","23906hbnczN","Footnotes","12611048bLJakp"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(988431===parseInt(e(165))/1+-parseInt(e(161))/2*(parseInt(e(168))/3)+parseInt(e(171))/4*(-parseInt(e(174))/5)+-parseInt(e(166))/6+-parseInt(e(173))/7+-parseInt(e(163))/8+parseInt(e(172))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[Z(167)](){return Z(162)}static get[Z(164)](){return[v,A,Y]}static get[Z(169)](){return!0}static get[Z(170)](){return!0}}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=303]})(t,e)}const et=tt;function ot(){const t=["4ivnSEW","18sCzCwE","upper-roman","674482OHHEZI","decimal-leading-zero","decimal","upper-alpha","9418241GciTcm","751554DXtVPd","64193HQtGyp","upper-latin","1610751BKvQFZ","4663792CSoHaA","lower-latin","lower-roman","310YLBHjx","lower-alpha","2542205ajYxDu"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(887501===-parseInt(e(316))/1+-parseInt(e(310))/2+parseInt(e(318))/3*(-parseInt(e(307))/4)+parseInt(e(306))/5*(-parseInt(e(308))/6)+parseInt(e(314))/7+-parseInt(e(319))/8+-parseInt(e(315))/9*(-parseInt(e(304))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(312),et(311),et(320),et(317),et(305),et(313),et(303),et(309)],it=rt;function st(){const t=["21qzhnJu","plugins","_updateFootnotesCounters","962766rRwadq","getFootnotesDefinitionsObjectElement","value","4503888ZhxPfU","718267VkmRix","includes","55VlirsH","execute","274792ztMCOY","refresh","10OCByYv","7942059wBhZUc","12wzrfVc","559698hLOVRt","408568wFHYoy","model","setAttribute","getAttribute","3lglsuW","change","get","isEnabled","footnotesListStyle"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=336]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(545338===parseInt(e(341))/1+parseInt(e(340))/2*(parseInt(e(345))/3)+parseInt(e(361))/4*(parseInt(e(359))/5)+parseInt(e(353))/6*(parseInt(e(350))/7)+-parseInt(e(356))/8+-parseInt(e(338))/9*(parseInt(e(337))/10)+parseInt(e(357))/11*(parseInt(e(339))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(336)](){const t=it,{editor:e}=this,o=e[t(351)][t(347)](d)[t(354)]();this[t(348)]=!!o,this[t(355)]=o?.[t(344)](t(349))??null}[it(360)]({value:t}){const e=it,{editor:o}=this,n=o[e(351)][e(347)](d),i=n[e(354)]();i&&nt[e(358)](t)&&o[e(342)][e(346)](o=>{const s=e;o[s(343)](s(349),t,i),n[s(352)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=287]})(t,e)}function ft(){const t=["value","326691MTEGqp","40YMewEt","6173209JWDtyq","get","footnotesListStart","isEnabled","getFootnotesDefinitionsObjectElement","execute","8ZgUWnR","model","6TCqzeX","plugins","getAttribute","306843kGdHfC","106721FwhkFp","2263070gBfqzH","setAttribute","refresh","774350BDDKXz","6030717ytyAnE","isInteger","change","_updateFootnotesCounters","12SnsJTH"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(496725===-parseInt(e(290))/1*(parseInt(e(309))/2)+-parseInt(e(289))/3*(parseInt(e(299))/4)+-parseInt(e(294))/5+parseInt(e(311))/6*(parseInt(e(303))/7)+parseInt(e(302))/8*(parseInt(e(301))/9)+-parseInt(e(291))/10+parseInt(e(295))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(293)](){const t=ct,{editor:e}=this,o=e[t(287)][t(304)](d)[t(307)]();this[t(306)]=!!o,this[t(300)]=o?.[t(288)](t(305))??null}[ct(308)]({value:t}){const e=ct,{editor:o}=this,n=o[e(287)][e(304)](d),i=n[e(307)]();i&&Number[e(296)](t)&&o[e(310)][e(297)](o=>{const s=e;o[s(292)](s(305),t,i),n[s(298)](o)})}}function dt(){const t=["plugins","config","createRangeOn","isPremiumPlugin","footnotes-list","fromCharCode","footnotesStart","viewItem","12IzVGsH","editor","isOfficialPlugin","footnotesStyle","FootnotesPropertiesEditing","find","decimal","define","setStyle","from","parseInt","getItems","padStart","hasClass","consume","consumable","upper-latin","removeAttribute","downcast","floor","270126gJHBqd","element:ol","pluginName","_definePostfixer","getStyle","writer","differ","upcast","max","registerPostFixer","insert","_formatFootnoteListValue","removeStyle","744666tbTBnG","860671LWzEtx","attribute:footnotesListStart:footnotesDefinitions","_getDefaultStartIndex","$text","8TDKSix","add","upper-alpha","setAttribute","toViewElement","decimal-leading-zero","extend","_defineSchema","_getDefaultListStyle","getChildren","get","name","item","setFootnoteFormatter","lower-latin","document","footnotesDefinitions","isNaN","_defineConverters","schema","130THuDpM","lower-roman","getAttribute","mapper","footnotesListStyle","requires","getChanges","toUpperCase","300424nCuMAf","nodeAfter","start","attribute:footnotesListStyle:footnotesDefinitions","type","checkAttribute","upper-roman","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","1539138xIngDw","modelCursor","_defineFormatter","commands","footnotes.footnotesProperties.defaultListStyle","model","init","789020yLXbGP","position","hasAttribute","list-style-type","toLowerCase","footnotesListStart","_updateFootnotesCounters","for","parent","442473YYnwab","element"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=109]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(319421===-parseInt(e(147))/1+parseInt(e(190))/2+parseInt(e(131))/3+-parseInt(e(122))/4+-parseInt(e(138))/5*(parseInt(e(157))/6)+-parseInt(e(191))/7*(parseInt(e(195))/8)+parseInt(e(177))/9*(parseInt(e(114))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(179)](){return ht(161)}static get[ht(119)](){return[v,d]}static get[ht(159)](){return!0}static get[ht(152)](){return!0}[ht(137)](){const t=ht,{editor:e}=this;e[t(150)][t(164)](t(135),t(163)),e[t(150)][t(164)](t(130),1),e[t(134)][t(196)](t(160),new at(e)),e[t(134)][t(196)](t(155),new ut(e)),this[t(202)](),this[t(112)](),this[t(133)](),this[t(180)]()}[ht(202)](){const t=ht,{editor:e}=this,{schema:o}=e[t(136)];o[t(201)](t(110),{allowAttributes:[t(118),t(143)]})}[ht(112)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(145)](t(184))[t(196)](e=>{const o=t;e.on(o(178),(t,e,n)=>{const s=o,r=e[s(156)],a=e[s(132)]?.[s(146)];r[s(170)](s(153))&&a?.is(s(148),s(110))&&(function(t,e,o,n){const i=s;if(!n[i(127)](e,i(143)))return;let r=1;const a=o[i(172)][i(171)](t,{attributes:i(124)});if(a){const e=Number[i(167)](t[i(116)](i(124)),10);Number[i(111)](e)||(r=e)}!a&&e[i(140)](i(143))||o[i(182)][i(198)](i(143),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(127)](e,i(118)))return;let r=i(163),a=!1;if(o[i(172)][i(171)](t,{attributes:i(126)})){const e={1:i(163),a:i(129),A:i(197),i:i(115),I:i(128)}[t[i(116)](i(126))];e&&(r=e),a=!0}o[i(172)][i(171)](t,{styles:i(141)})&&(r=t[i(181)](i(141)),a=!0),!a&&e[i(140)](i(118))||o[i(182)][i(198)](i(118),r,e)}(r,a,n,i))})}),o[t(145)](t(175))[t(196)](e=>{const o=t;e.on(o(192),(t,e,n)=>{const i=o;if(!n[i(172)][i(171)](e[i(207)],t[i(206)]))return;const s=gt(e[i(207)],n[i(117)]),{attributeNewValue:r}=e;null==r||1===r?n[i(182)][i(174)](i(124),s):n[i(182)][i(198)](i(124),String(r),s)}),e.on(o(125),(t,e,n)=>{const i=o;if(!n[i(172)][i(171)](e[i(207)],t[i(206)]))return;const s=gt(e[i(207)],n[i(117)]),{attributeNewValue:r}=e;r&&i(163)!==r?n[i(182)][i(165)](i(141),r,s):n[i(182)][i(189)](i(141),s)})})}[ht(180)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(149)][t(205)](d),i=this[t(203)](),s=this[t(193)]();o[t(109)][t(186)](e=>{const r=t,a=o[r(109)][r(183)][r(120)]();let c=!1;for(const t of a){if(r(187)!==t[r(126)]||r(194)===t[r(206)])continue;const n=o[r(151)](t[r(139)][r(123)]);for(const t of n[r(168)]())t.is(r(148),r(110))&&(!t[r(140)](r(143))&&o[r(113)][r(127)](t,r(143))&&(e[r(198)](r(143),s,t),c=!0),!t[r(140)](r(118))&&o[r(113)][r(127)](t,r(118))&&(e[r(198)](r(118),i,t),c=!0))}return c&&n[r(144)](e),c})}[ht(133)](){const t=ht,{editor:e}=this;e[t(149)][t(205)](d)[t(208)](e=>this[t(188)](e))}[ht(203)](){const t=ht;return this[t(158)][t(150)][t(205)](t(135))}[ht(193)](){const t=ht;return this[t(158)][t(150)][t(205)](t(130))}[ht(188)]({container:t,value:e,digits:o}){const n=ht,i=t[n(116)](n(118)),s=t[n(116)](n(143)),r=Math[n(176)](e)+(s??1)-1;switch(i){case n(200):return function(t,e){const o=n;return String(t)[o(169)](e,"0")}(r,Math[n(185)](2,o));case n(129):case n(209):return wt(r,!1);case n(197):case n(173):return wt(r,!0);case n(115):return bt(r,!1);case n(128):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(199)](t);return Array[o(166)](n[o(204)]())[o(162)](t=>t.is(o(148),"ol")&&t[o(170)](o(153)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(154)](97+t)+n,i=Math[o(176)]((i-1)/26)}return e?n[o(121)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(142)]()}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=H(),kt.insert=j().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=z();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[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});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=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 Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=205]})(t,e)}function xt(){var t=["5mUDuRO","2784082VthJFZ","pluginName","13194477vXcakU","650512ECbPYR","8chPpwL","requires","914368PTdBGm","FootnotesProperties","isOfficialPlugin","4746448ADHvgh","isPremiumPlugin","4454511tiyVgS","763866LsUQrb"];return(xt=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(849131===-parseInt(e(211))/1+parseInt(e(208))/2+-parseInt(e(216))/3+parseInt(e(214))/4+parseInt(e(218))/5*(-parseInt(e(217))/6)+parseInt(e(205))/7+parseInt(e(209))/8*(parseInt(e(207))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class St extends t.Plugin{static get[Ft(206)](){return Ft(212)}static get[Ft(210)](){return[mt,Ct]}static get[Ft(213)](){return!0}static get[Ft(215)](){return!0}}function Pt(){var t=["8081896BInhVw","1869312mYmsMw","6pTSNLp","12176213UuTPHk","6714936FtBBSR","8624240VYNDoj","189509WwffNw","9efNoVq","4028571mWcZfl"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=420]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(994028===-parseInt(e(426))/1+-parseInt(e(421))/2+parseInt(e(428))/3+-parseInt(e(424))/4+parseInt(e(425))/5+-parseInt(e(422))/6*(-parseInt(e(423))/7)+-parseInt(e(420))/8*(parseInt(e(427))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();