@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251214.0 → 0.0.0-nightly-next-20251215.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.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Y,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=a();return(r=function(t,e){return o[t-=398]})(t,e)}function a(){const t=["attributes","rootName","nodeAfter","15180dEHoXE","position","getItems","push","get","$text","length","set","clear","4696wGfXmJ","slice","getElementKey","elementName","name","flat","24770746SXwdyF","125pVsGNA","from","1689eHtykk","root","values","183486IOJrOy","9794650TjrkQa","451064uACOBl","_elementName","add","has","6330086FmHKfj","_model","$graveyard","reset","insert","createRangeOn","91GFEgiX","remove","144iUvJHM","type","_getElementKey","delete","getChanges","element","_trackedElements"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(539794===-parseInt(e(412))/1*(-parseInt(e(424))/2)+-parseInt(e(442))/3*(parseInt(e(433))/4)+-parseInt(e(440))/5*(parseInt(e(400))/6)+parseInt(e(406))/7+parseInt(e(402))/8*(-parseInt(e(414))/9)+-parseInt(e(401))/10+parseInt(e(439))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(407)];[c(403)];[c(416)];[c(420)]=new Map;constructor(t,e){const o=c;this[o(407)]=t,this[o(403)]=e[o(436)],this[o(416)]=e[o(435)]}[c(409)](){const t=c;this[t(420)][t(432)]()}[c(418)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(410)===i[e(415)]&&e(429)!==i[e(437)]&&i[e(425)][e(423)]){const t=this[e(407)][e(411)](i[e(425)][e(423)]);for(const o of t[e(426)]()){if(!o.is(e(419),this[e(403)]))continue;const t=this[e(416)](o);n[e(405)](t)||n[e(431)](t,[]),n[e(428)](t)[e(427)](o)}}if(e(413)===i[e(415)]&&i[e(437)]===this[e(403)]){const t=this[e(416)]({getAttribute:t=>i[e(421)][e(428)](t)});o[e(404)](t)}}for(const[t,n]of this[e(420)])e(408)===n[e(398)][e(422)]&&o[e(404)](t);for(const t of o)this[e(420)][e(417)](t);for(const[t,o]of n)this[e(420)][e(431)](t,o[o[e(430)]-1]);const i=new Set;for(const[t,s]of n)o[e(405)](t)&&(i[e(404)](s[0]),s[e(430)]>1?n[e(431)](t,s[e(434)](1)):n[e(417)](t),o[e(417)](t));return{removed:Array[e(441)](o),inserted:Array[e(441)](n[e(399)]())[e(438)](),moved:Array[e(441)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=310]})(t,e)}function d(){const t=["reset","has","before","remove","footnotesDefinitions","_sortFootnoteDefinitions","splice","_insertEmptyFootnotesDefinitionsContainer","unshift","getChildren","_updateFootnoteRefCounter","indexOf","_handleFootnoteReferencesChanges","rootName","footnoteInlineContent","1867zeKbrQ","insert","_updateFootnotesCounters","differ","591552gLvZza","length","enqueueChange","some","getFootnote","low","compareWith","_footnoteDefsTracker","isPremiumPlugin","after","getAttribute","footnoteCounter","1266gBzoiX","21CoNbIn","_ensureFootnotesDefinitionsContainerExists","listenTo","change:data","isEqual","push","FootnotesTracker","_ensureFootnotesReferencesHaveProperOrder","$graveyard","childCount","_footnotesDefinitions","min","singleton","338646nJzERi","getChanges","root","createRangeOn","set","getFootnotesDefinitionsObjectElement","setAttribute","definition","pluginName","isOfficialPlugin","1640BdLMph","init","34038AfZNKZ","from","_handleInsertedFootnoteReference","_footnoteFormatter","move","createPositionAt","find","301560BumUzn","footnoteDefinition","3224288wBuezS","paragraph","_handleFootnotesDefinitionsObjectSync","_handleRemoveFootnoteReferenceById","_footnoteDefsContainerTracker","5773360jGvlGg","setFootnoteFormatter","385dMNNAw","_handleFootnoteDefinitionsChanges","parent","footnoteRef","getRootNames","get","createRangeIn","editor","reference","getFootnotes","getFootnotesFormatter","findIndex","125BAOzbY","registerPostFixer","footnotes.multiBlock","document","append","config","createPositionBefore","model","_handleFootnotesDefinitionsObjectChanges","high","map","add","createElement","end","_handleMovedFootnoteReference","_footnoteRefsTracker","footnoteId","_footnotes"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(726252===parseInt(e(361))/1*(parseInt(e(377))/2)+-parseInt(e(365))/3+parseInt(e(314))/4+parseInt(e(328))/5*(-parseInt(e(391))/6)+parseInt(e(378))/7*(parseInt(e(412))/8)+parseInt(e(403))/9*(-parseInt(e(401))/10)+parseInt(e(316))/11*(-parseInt(e(410))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(345)]=[];[f(388)]=null;[f(406)]=null;[f(313)];[f(343)];[f(372)];static get[f(399)](){return f(384)}static get[f(400)](){return!0}static get[f(373)](){return!0}constructor(t){const e=f;super(t),this[e(313)]=new l(this[e(323)][e(335)],{elementName:e(350),getElementKey:()=>e(390)}),this[e(343)]=new l(this[e(323)][e(335)],{elementName:e(319),getElementKey:t=>t[e(375)](e(344))}),this[e(372)]=new l(this[e(323)][e(335)],{elementName:e(411),getElementKey:t=>t[e(375)](e(344))})}[f(402)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(331)][t(329)](e=>{const n=t,i=o[n(331)][n(364)][n(392)]();let s=!1;return this[n(336)](e,i)&&(s=!0),this[n(317)](e,i)&&(s=!0),this[n(358)](e,i)&&(s=!0),this[n(385)](e)&&(s=!0),this[n(311)](e)&&(s=!0),this[n(351)](e)&&(s=!0),s}),this[t(380)](o[t(331)],t(381),()=>{const e=t;o[e(367)]({isUndoable:!1},t=>{this[e(379)](t)})},{priority:t(370)}),this[t(380)](n,t(395),()=>{const e=t;this[e(345)]=[],this[e(313)][e(346)](),this[e(343)][e(346)](),this[e(372)][e(346)]()},{priority:t(337)})}[f(396)](){return this[f(388)]}[f(369)](t){const e=f;return this[e(345)][e(409)](e=>e.id===t)||null}[f(325)](){const t=f;return Array[t(404)](this[t(345)])}[f(326)](){return this[f(406)]}[f(315)](t){this[f(406)]=t}[f(363)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(345)][o(366)];i++)this[o(356)](t,i)&&(n=!0);return n}[f(353)](t,e){const o=f,n=t[o(340)](o(350),{});return t[o(332)](n,e),this[o(388)]=n,n}[f(379)](t){const e=f;if(!this[e(345)][e(366)]||this[e(388)])return;const o=this[e(345)][0][e(324)][e(393)],n=this[e(353)](t,o);for(const o of this[e(345)])o[e(398)][e(318)]||t[e(362)](o[e(398)],n,e(341));this[e(363)](t)}[f(336)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(313)][o(392)](e);if(r[o(366)]&&(this[o(388)]=r[0]),i[o(366)])if(i[o(366)]>1||this[o(388)]&&i[o(368)](t=>t!==this[o(388)])){const e=t[o(340)](o(350),{}),s=[];this[o(388)]&&s[o(383)](this[o(388)]),s[o(383)](...i),t[o(362)](e,s[0],o(348));for(const n of s)t[o(407)](t[o(322)](n),t[o(408)](e,o(341))),t[o(349)](n);this[o(388)]=e,this[o(363)](t),n=!0}else this[o(388)]=i[0];if(s[o(366)]&&o(386)===this[o(388)]?.[o(393)][o(359)]){for(const e of this[o(345)])t[o(349)](e[o(324)]),n=!0;this[o(345)]=[],this[o(388)]=null}return n}[f(317)](t,e){const o=f;let n=!1;const i=this[o(323)][o(333)][o(321)](o(330)),{inserted:s,moved:r}=this[o(372)][o(392)](e);for(const e of[...r,...s]){const s=e[o(375)](o(344)),r=this[o(369)](s);r&&(r[o(398)]=e),p(t,i,e)&&(n=!0)}return n}[f(358)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(343)][o(392)](e);for(const e of i)this[o(312)](t,e)&&(n=!0);for(const e of s)this[o(405)](t,e)&&(n=!0);for(const e of r)this[o(342)](t,e)&&(n=!0);return n}[f(311)](t){const e=f;if(!this[e(388)])return!1;let o=!1;if(this[e(388)][e(387)]!==this[e(345)][e(366)]){const n=[];for(const t of this[e(388)][e(355)]()){const i=t[e(375)](e(344));this[e(369)](i)||(n[e(354)](t),o=!0)}for(const o of n)t[e(349)](o)}const n=new Set,i=[];for(const t of this[e(388)][e(355)]()){const s=t[e(375)](e(344));n[e(347)](s)?(i[e(354)](t),o=!0):n[e(339)](s)}for(const o of i)t[e(349)](o);return this[e(388)][e(387)]||(t[e(349)](this[e(388)]),this[e(388)]=null,o=!0),o}[f(405)](t,e){const o=f;if(this[o(345)][o(409)](t=>t[o(324)]===e))return!1;let n=!1;const i=e[o(375)](o(344)),s=this[o(345)][o(327)](t=>t.id===i);-1!==s&&(t[o(349)](this[o(345)][s][o(324)]),this[o(345)][o(352)](s,1),n=!0);let r=this[o(388)]?function(t,e){const n=o;for(const o of t[n(355)]())if(o[n(375)](n(344))===e)return o;return null}(this[o(388)],i):null;r||(r=t[o(340)](o(411),{footnoteId:i}),this[o(388)]&&(t[o(362)](r,this[o(388)],o(341)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(323)][o(335)],this[o(345)],e);this[o(345)][o(352)](c,0,a);let l=c;return-1!==s&&(l=Math[o(389)](c,s)),this[o(363)](t,l)&&(n=!0),n}[f(312)](t,e){const o=f,n=this[o(345)][o(327)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(345)][n];return o(386)!==s[o(398)][o(393)][o(359)]&&(t[o(349)](s[o(398)]),i=!0),this[o(345)][o(352)](n,1),this[o(363)](t,n)&&(i=!0),i}[f(342)](t,e){const o=f,n=e[o(375)](o(344)),i=this[o(345)][o(327)](t=>t.id===n),s=this[o(345)][i];let r=!1;s[o(324)]=e,this[o(345)][o(352)](i,1);const a=m(this[o(323)][o(335)],this[o(345)],e);return this[o(345)][o(352)](a,0,s),this[o(363)](t,Math[o(389)](i,a))&&(r=!0),r}[f(356)](t,e){const o=f;if(!this[o(388)])return!1;const n=this[o(345)][e];let i;return i=this[o(406)]?this[o(406)]({footnote:n,container:this[o(388)],digits:String(this[o(345)][o(366)])[o(366)],value:e+1}):String(e+1),n[o(324)][o(375)](o(376))!=i&&(t[o(397)](o(376),i,n[o(324)]),!0)}[f(351)](t){const e=f;if(!this[e(388)]||this[e(345)][e(366)]<2)return!1;if(function(t,o){const n=e;if(t[n(366)]!==o[n(366)])return!1;for(let e=0;e<t[n(366)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(345)][e(338)](t=>t.id),Array[e(404)](this[e(388)][e(355)]())[e(338)](t=>t[e(375)](e(344)))))return!1;let o=!1;for(let n=0;n<this[e(345)][e(366)];n++){const i=this[e(345)][n],s=t[e(334)](i[e(398)]),r=t[e(408)](this[e(388)],n);s[e(382)](r)||(t[e(407)](t[e(394)](i[e(398)]),r),o=!0)}return o}[f(385)](t){const e=f;if(!this[e(345)][e(366)])return!1;const{model:o}=this[e(323)];let n=!1;for(let i=0;i<this[e(345)][e(366)]-1;i++){const s=this[e(345)][i],r=this[e(345)][i+1],a=o[e(334)](s[e(324)]),c=o[e(334)](r[e(324)]);e(374)===a[e(371)](c)&&(this[e(342)](t,s[e(324)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(387)])return!1;const i=n(e?310:360);return t[n(362)](t[n(340)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(366)])return 0;const i=t[n(334)](o);for(let o=0;o<e[n(366)];o++){const s=e[o],r=t[n(334)](s[n(324)]);if(n(348)===i[n(371)](r))return o}const s=o[n(393)];let r=-1;for(let t=e[n(366)]-1;t>=0;t--)if(e[t][n(324)][n(393)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(331)][n(320)](),c=a[n(357)](s[n(359)]),l=a[c+1];if(l)for(let t=0;t<e[n(366)];t++)if(e[t][n(324)][n(393)][n(359)]===l)return t;return e[n(366)]}function g(){const t=["end","520TJQWOT","getItems","333630azNRTs","test","isBlock","refresh","insert-footnote-command-executed-with-invalid-id","getFirstRange","5ojFxIM","_getPositionToInsertFootnote","49608qHGxIF","execute","selection","createElement","FootnotesEditing","string","editor","get","11SZdJvJ","9ZefBoI","isEnabled","4360860JuytdM","length","change","1089346Lcnhmh","811662eKvtvL","insertObject","plugins","checkChild","2110800FbyeYX","_moveSelectionToFootnoteDefinition","98VPUWwV","footnoteId","document","model","footnoteRef","9709350xuSizf","isObject"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=220]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(713423===parseInt(e(221))/1+-parseInt(e(222))/2*(parseInt(e(255))/3)+parseInt(e(257))/4*(-parseInt(e(244))/5)+parseInt(e(238))/6*(parseInt(e(228))/7)+parseInt(e(236))/8*(parseInt(e(246))/9)+parseInt(e(233))/10+parseInt(e(254))/11*(-parseInt(e(226))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(241)](){const t=w,e=this[t(252)][t(231)][t(230)][t(248)],o=this[t(245)](e);this[t(256)]=!!o}[w(247)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(230)],r=this[e(245)](s);if(!r)return;const a=o[e(224)][e(253)](e(250)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(251)==typeof t&&t[o(258)]>0&&!/\s/[o(239)](t)&&!/^\d/[o(239)](t)}(c)?(0,i.logWarning)(e(242)):(n[e(220)](t=>{const o=e,i=t[o(249)](o(232),{footnoteId:c});n[o(223)](i,r,null)}),a[e(227)](c))}[w(245)](t){const e=w,{model:o}=this[e(252)],{schema:n}=o,i=t[e(243)]();for(const t of i[e(237)]())if(n[e(240)](t)||n[e(234)](t))return null;const s=i[e(235)];return n[e(225)](s,e(232))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765670400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const P=_;function A(){const t=["2632244QKutsR","push","footnoteInlineContent","8142480SNGgmy","isPremiumPlugin","footnoteRef","init","stringify","footnoteDefinition","createRangeIn","editor","getSelectedBlocks","reduce","entries","includes","10EhjlPy","1kgTfdM","requires","htmlProcessor","outputTransformation","setData","_handlePasteFootnotesDefinitions","parse","root","toView","selection","flatMap","method","42563950iJQULC","_handleCopyFootnotesDefinitions","79128KVqUuV","_defineClipboardIntegration","remove","FootnotesClipboard","dataTransfer","getRanges","length","clipboardInput","append","data","application/ckeditor5-footnotes","1179FGeDZj","get","getFootnote","footnotesDefinitions","createElement","getData","sourceEditorId","getAttribute","284973cLZcoU","create","listenTo","pluginName","drop","find","getFootnotes","toModel","from","definition","insert","setAttribute","getFootnotesDefinitionsObjectElement","2550800FYFKNp","change","contentInsertion","element","editing","toData","document","isOfficialPlugin","footnotes.multiBlock","getFirstRange","config","footnoteId","content","end","_insertEmptyFootnotesDefinitionsContainer","1324396SiXQON","add"];return(A=function(){return t})()}function _(t,e){const o=A();return(_=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(680261===-parseInt(e(292))/1*(parseInt(e(276))/2)+parseInt(e(246))/3+-parseInt(e(274))/4*(-parseInt(e(291))/5)+-parseInt(e(279))/6+-parseInt(e(259))/7+-parseInt(e(227))/8*(parseInt(e(238))/9)+parseInt(e(225))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[P(249)](){return P(230)}static get[P(214)](){return[v,S.ClipboardPipeline]}static get[P(266)](){return!0}static get[P(280)](){return!0}[P(282)](){this[P(228)]()}[P(228)](){const t=P;this[t(226)](),this[t(218)]()}[P(226)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(239)](S.ClipboardPipeline),s=o[t(239)](h);this[t(248)](i,t(216),(o,i)=>{const r=t,a=L(n[r(285)](i[r(271)]));if(!a[r(233)])return;const c=s[r(252)](),l=a[r(288)]((t,o)=>{const n=r,i=c[n(251)](t=>t.id===o);if(i){const o=e[n(236)][n(221)](i[n(255)],{isClipboardPipeline:!0}),s=e[n(236)][n(215)][n(264)](o);t[i.id]=s}return t},Object[r(247)](null));i[r(231)][r(217)](r(237),JSON[r(283)](l))})}[P(218)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(263)],r=n[t(239)](S.ClipboardPipeline),a=n[t(239)](h),c=e[t(269)][t(239)](t(267));let l=null;this[t(248)](s[t(265)],t(234),(e,o)=>{const n=t,i=o[n(231)][n(243)](n(237));l=i?JSON[n(219)](i):null}),this[t(248)](r,t(261),(n,s)=>{const r=t,f=s[r(244)]===this[r(286)].id;f&&r(250)===s[r(224)]||o[r(260)](t=>{const n=r;let u=a[n(258)]();const d=!!u&&Array[n(254)](o[n(265)][n(222)][n(287)]())[n(290)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(285)](e))n.is(o(262),o(241))&&i[o(277)](n);for(const e of i)t[o(229)](e)}(t,s[n(271)]),!l)return;const{selection:h}=o[n(265)],p=h[n(268)]()[n(220)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(285)](e))if(n.is(o(262),o(241)))return n;return null}(t,s[n(271)]),u||=a[n(273)](t,p));const m=Array[n(254)](h[n(232)]())[n(223)](L),g=function(t,e,o){const s=n,r=Object[s(247)](null);for(const{item:n}of t[s(285)](e))if(n.is(s(262),s(281))){const e=n[s(245)](s(270));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(257)](s(270),r[e],n)}return r}(t,s[n(271)],t=>{const e=n;return!f||!!a[e(240)](t)&&!m[e(290)](t)});for(const[o,i]of Object[n(289)](l)){const s=g[o]||o,r=t[n(242)](n(284),{footnoteId:s}),a=e[n(236)][n(215)][n(221)](i);let l;if(c)l=e[n(236)][n(253)](a,r);else{l=t[n(242)](n(278));const o=e[n(236)][n(253)](a,l);t[n(256)](o,l)}t[n(235)](l,r),t[n(256)](r,u,n(272))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(262),e(281))&&o[e(275)](n[e(245)](e(270)));return Array[e(254)](o)}var N=o(311),V=o(355),O=o(929),R=o.n(O),K=o(297),j=o.n(K),M=o(102),B=o.n(M),z=o(123),U=o.n(z),W=o(741),H=o.n(W),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=H();R()(X.A,G);X.A&&X.A.locals&&X.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",q(t,N.ButtonView)),e.add("menuBar:insertFootnote",q(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function J(t,e){var o=$();return(J=function(t,e){return o[t-=405]})(t,e)}var Q=J;function $(){var t=["requires","597513dIkORH","isPremiumPlugin","180366kZAcjX","pluginName","391014VjaqTZ","10vUGxls","12918004LWwTbf","Footnotes","5894307qaHlrw","14119yhhORm","isOfficialPlugin","5ngXUbQ","75fxxKIN","197556nVzGCx","2104YwGbnx"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(698868===parseInt(e(418))/1+parseInt(e(406))/2+-parseInt(e(414))/3*(-parseInt(e(415))/4)+parseInt(e(413))/5*(-parseInt(e(420))/6)+-parseInt(e(411))/7*(-parseInt(e(416))/8)+-parseInt(e(410))/9+-parseInt(e(407))/10*(parseInt(e(408))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Y extends t.Plugin{static get[Q(405)](){return Q(409)}static get[Q(417)](){return[v,D,Z]}static get[Q(412)](){return!0}static get[Q(419)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=110]})(t,e)}function ot(){const t=["5315520poMgev","4fDZNsu","302658ISPmxV","lower-roman","25pcGOvw","decimal","3221030uaDgOa","upper-latin","lower-latin","upper-alpha","122648CDVMRV","3005547BGCsms","lower-alpha","upper-roman","485896FqWUzy","946908fckZEN","decimal-leading-zero","81TNpvFa"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(548586===-parseInt(e(121))/1+-parseInt(e(126))/2+parseInt(e(122))/3*(parseInt(e(112))/4)+parseInt(e(115))/5*(parseInt(e(113))/6)+parseInt(e(111))/7+parseInt(e(125))/8*(-parseInt(e(110))/9)+-parseInt(e(117))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(116),tt(127),tt(119),tt(118),tt(123),tt(120),tt(114),tt(124)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=344]})(t,e)}function rt(){const t=["6096560vvhnNC","isEnabled","plugins","includes","refresh","53349arEBrX","1467935NuVvXU","value","12826ZRcDfx","5080516wrWTAf","get","model","getFootnotesDefinitionsObjectElement","footnotesListStyle","1575810yeMnfR","getAttribute","98MmEYEP","setAttribute","56oEsctK","312165mucPXU","92qTDifL","execute","_updateFootnotesCounters","change"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(377080===-parseInt(e(345))/1*(-parseInt(e(361))/2)+-parseInt(e(358))/3*(parseInt(e(349))/4)+parseInt(e(359))/5+-parseInt(e(367))/6+-parseInt(e(362))/7+parseInt(e(347))/8*(parseInt(e(348))/9)+parseInt(e(353))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(357)](){const t=it,{editor:e}=this,o=e[t(355)][t(363)](h)[t(365)]();this[t(354)]=!!o,this[t(360)]=o?.[t(344)](t(366))??null}[it(350)]({value:t}){const e=it,{editor:o}=this,n=o[e(355)][e(363)](h),i=n[e(365)]();i&&nt[e(356)](t)&&o[e(364)][e(352)](o=>{const s=e;o[s(346)](s(366),t,i),n[s(351)](o)})}}function ct(t,e){const o=lt();return(ct=function(t,e){return o[t-=464]})(t,e)}function lt(){const t=["6087OaZRfV","752288ojsOcj","setAttribute","get","8376685ibvfTo","20HWrzLg","45Zkrsjf","model","isEnabled","plugins","footnotesListStart","isInteger","200235ZAeeFR","value","62611410XrcTGI","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","16klxujb","9942793bCnSdy","7917372IAodTg","refresh","execute","change","getAttribute"];return(lt=function(){return t})()}const ft=ct;!function(t){const e=ct,o=t();for(;;)try{if(993242===parseInt(e(477))/1*(-parseInt(e(470))/2)+-parseInt(e(465))/3*(parseInt(e(482))/4)+-parseInt(e(481))/5+-parseInt(e(472))/6+-parseInt(e(471))/7+-parseInt(e(478))/8*(parseInt(e(483))/9)+parseInt(e(467))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ft(473)](){const t=ft,{editor:e}=this,o=e[t(486)][t(480)](h)[t(468)]();this[t(485)]=!!o,this[t(466)]=o?.[t(476)](t(487))??null}[ft(474)]({value:t}){const e=ft,{editor:o}=this,n=o[e(486)][e(480)](h),i=n[e(468)]();i&&Number[e(464)](t)&&o[e(484)][e(475)](o=>{const s=e;o[s(479)](s(487),t,i),n[s(469)](o)})}}const dt=wt;function ht(){const t=["footnotesDefinitions","commands","registerPostFixer","differ","for","setFootnoteFormatter","decimal-leading-zero","_getDefaultListStyle","_defineSchema","decimal","lower-roman","nodeAfter","6628STLNHk","viewItem","_formatFootnoteListValue","868896gEaMiJ","position","6847848iNTffg","footnotes-list","_definePostfixer","extend","_getDefaultStartIndex","hasAttribute","init","model","upcast","consumable","removeAttribute","mapper","define","getAttribute","isOfficialPlugin","modelCursor","removeStyle","type","requires","lower-alpha","hasClass","item","checkAttribute","element","FootnotesPropertiesEditing","setAttribute","upper-alpha","writer","insert","toUpperCase","find","downcast","getItems","config","plugins","lower-latin","name","upper-roman","_updateFootnotesCounters","from","4504230DBkjhZ","padStart","max","1024938TbBILA","toLowerCase","parent","document","1443XPGduW","footnotesStart","$text","pluginName","getStyle","consume","parseInt","toViewElement","footnotesStyle","element:ol","footnotes.footnotesProperties.defaultListStyle","add","schema","list-style-type","footnotesListStart","7230630PRyKNM","getChildren","floor","_defineConverters","isNaN","get","footnotes.footnotesProperties.defaultStartIndex","48kDkkLh","footnotesListStyle","start","isPremiumPlugin","editor","attribute:footnotesListStart:footnotesDefinitions","898261mqkMCv","setStyle","fromCharCode","_defineFormatter","attribute:footnotesListStyle:footnotesDefinitions","createRangeOn","getChanges","upper-latin"];return(ht=function(){return t})()}!function(t){const e=wt,o=t();for(;;)try{if(960341===-parseInt(e(565))/1+parseInt(e(533))/2+-parseInt(e(537))/3*(-parseInt(e(585))/4)+parseInt(e(552))/5+-parseInt(e(590))/6+-parseInt(e(588))/7*(-parseInt(e(559))/8)+-parseInt(e(530))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class pt extends t.Plugin{static get[dt(540)](){return dt(514)}static get[dt(508)](){return[v,h]}static get[dt(504)](){return!0}static get[dt(562)](){return!0}[dt(596)](){const t=dt,{editor:e}=this;e[t(523)][t(502)](t(547),t(582)),e[t(523)][t(502)](t(558),1),e[t(574)][t(548)](t(545),new at(e)),e[t(574)][t(548)](t(538),new ut(e)),this[t(581)](),this[t(555)](),this[t(568)](),this[t(592)]()}[dt(581)](){const t=dt,{editor:e}=this,{schema:o}=e[t(597)];o[t(593)](t(573),{allowAttributes:[t(560),t(551)]})}[dt(555)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(577)](t(598))[t(548)](e=>{const o=t;e.on(o(546),(t,e,n)=>{const s=o,r=e[s(586)],a=e[s(505)]?.[s(535)];r[s(510)](s(591))&&a?.is(s(513),s(573))&&(function(t,e,o,n){const i=s;if(!n[i(512)](e,i(551)))return;let r=1;const a=o[i(599)][i(542)](t,{attributes:i(561)});if(a){const e=Number[i(543)](t[i(503)](i(561)),10);Number[i(556)](e)||(r=e)}!a&&e[i(595)](i(551))||o[i(517)][i(515)](i(551),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(512)](e,i(560)))return;let r=i(582),a=!1;if(o[i(599)][i(542)](t,{attributes:i(507)})){const e={1:i(582),a:i(509),A:i(516),i:i(583),I:i(527)}[t[i(503)](i(507))];e&&(r=e),a=!0}o[i(599)][i(542)](t,{styles:i(550)})&&(r=function(t){const e=i;switch(t){case e(509):return e(525);case e(516):return e(572);default:return t}}(t[i(541)](i(550))),a=!0),!a&&e[i(595)](i(560))||o[i(517)][i(515)](i(560),r,e)}(r,a,n,i))})}),o[t(577)](t(521))[t(548)](e=>{const o=t;e.on(o(564),(t,e,n)=>{const i=o;if(!n[i(599)][i(542)](e[i(511)],t[i(526)]))return;const s=mt(e[i(511)],n[i(501)]),{attributeNewValue:r}=e;null==r||1===r?n[i(517)][i(500)](i(561),s):n[i(517)][i(515)](i(561),String(r),s)}),e.on(o(569),(t,e,n)=>{const i=o;if(!n[i(599)][i(542)](e[i(511)],t[i(526)]))return;const s=mt(e[i(511)],n[i(501)]),{attributeNewValue:r}=e;r&&i(582)!==r?n[i(517)][i(566)](i(550),r,s):n[i(517)][i(506)](i(550),s)})})}[dt(592)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(524)][t(557)](h),i=this[t(580)](),s=this[t(594)]();o[t(536)][t(575)](e=>{const r=t,a=o[r(536)][r(576)][r(571)]();let c=!1;for(const t of a){if(r(518)!==t[r(507)]||r(539)===t[r(526)])continue;const n=o[r(570)](t[r(589)][r(584)]);for(const t of n[r(522)]())t.is(r(513),r(573))&&(!t[r(595)](r(551))&&o[r(549)][r(512)](t,r(551))&&(e[r(515)](r(551),s,t),c=!0),!t[r(595)](r(560))&&o[r(549)][r(512)](t,r(560))&&(e[r(515)](r(560),i,t),c=!0))}return c&&n[r(528)](e),c})}[dt(568)](){const t=dt,{editor:e}=this;e[t(524)][t(557)](h)[t(578)](e=>this[t(587)](e))}[dt(580)](){const t=dt;return this[t(563)][t(523)][t(557)](t(547))}[dt(594)](){const t=dt;return this[t(563)][t(523)][t(557)](t(558))}[dt(587)]({container:t,value:e,digits:o}){const n=dt,i=t[n(503)](n(560)),s=t[n(503)](n(551)),r=Math[n(554)](e)+(s??1)-1;switch(i){case n(579):return function(t,e){const o=n;return String(t)[o(531)](e,"0")}(r,Math[n(532)](2,o));case n(509):case n(525):return gt(r,!1);case n(516):case n(572):return gt(r,!0);case n(583):return bt(r,!1);case n(527):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(544)](t);return Array[o(529)](n[o(553)]())[o(520)](t=>t.is(o(513),"ol")&&t[o(510)](o(591)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(567)](97+t)+n,i=Math[o(554)]((i-1)/26)}return e?n[o(519)]():n}function wt(t,e){const o=ht();return(wt=function(t,e){return o[t-=500]})(t,e)}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(534)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=285]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(720963===-parseInt(e(293))/1+-parseInt(e(297))/2*(-parseInt(e(295))/3)+-parseInt(e(291))/4+parseInt(e(289))/5*(parseInt(e(292))/6)+-parseInt(e(298))/7+parseInt(e(287))/8*(parseInt(e(296))/9)+parseInt(e(299))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(285)](){return Ft(294)}static get[Ft(288)](){return[pt,Ct]}static get[Ft(290)](){return!0}static get[Ft(286)](){return!0}}function Tt(){var t=["22511100fIiDvm","pluginName","isPremiumPlugin","19472YZQsTl","requires","80CfHoyR","isOfficialPlugin","2409884RYvWPd","295698sbHBpr","1156541XFdDmU","FootnotesProperties","3ckyWXZ","72kahpIe","658132inKzYh","6357407PztiLh"];return(Tt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=445]})(t,e)}function Pt(){var t=["3jIwGsa","88958gQqRtX","8514725LPawJI","37ptNTtk","4619504CQZiGy","11991186rqAZOs","48584170zWnNzp","8610640lGzwXn","21TytQRo","3860694NWHyKv"];return(Pt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(990302===-parseInt(e(449))/1*(parseInt(e(447))/2)+parseInt(e(446))/3*(parseInt(e(450))/4)+-parseInt(e(448))/5+parseInt(e(445))/6*(-parseInt(e(454))/7)+-parseInt(e(453))/8+parseInt(e(451))/9+parseInt(e(452))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Y,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=a();return(r=function(t,e){return o[t-=398]})(t,e)}function a(){const t=["attributes","rootName","nodeAfter","15180dEHoXE","position","getItems","push","get","$text","length","set","clear","4696wGfXmJ","slice","getElementKey","elementName","name","flat","24770746SXwdyF","125pVsGNA","from","1689eHtykk","root","values","183486IOJrOy","9794650TjrkQa","451064uACOBl","_elementName","add","has","6330086FmHKfj","_model","$graveyard","reset","insert","createRangeOn","91GFEgiX","remove","144iUvJHM","type","_getElementKey","delete","getChanges","element","_trackedElements"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(539794===-parseInt(e(412))/1*(-parseInt(e(424))/2)+-parseInt(e(442))/3*(parseInt(e(433))/4)+-parseInt(e(440))/5*(parseInt(e(400))/6)+parseInt(e(406))/7+parseInt(e(402))/8*(-parseInt(e(414))/9)+-parseInt(e(401))/10+parseInt(e(439))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(407)];[c(403)];[c(416)];[c(420)]=new Map;constructor(t,e){const o=c;this[o(407)]=t,this[o(403)]=e[o(436)],this[o(416)]=e[o(435)]}[c(409)](){const t=c;this[t(420)][t(432)]()}[c(418)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(410)===i[e(415)]&&e(429)!==i[e(437)]&&i[e(425)][e(423)]){const t=this[e(407)][e(411)](i[e(425)][e(423)]);for(const o of t[e(426)]()){if(!o.is(e(419),this[e(403)]))continue;const t=this[e(416)](o);n[e(405)](t)||n[e(431)](t,[]),n[e(428)](t)[e(427)](o)}}if(e(413)===i[e(415)]&&i[e(437)]===this[e(403)]){const t=this[e(416)]({getAttribute:t=>i[e(421)][e(428)](t)});o[e(404)](t)}}for(const[t,n]of this[e(420)])e(408)===n[e(398)][e(422)]&&o[e(404)](t);for(const t of o)this[e(420)][e(417)](t);for(const[t,o]of n)this[e(420)][e(431)](t,o[o[e(430)]-1]);const i=new Set;for(const[t,s]of n)o[e(405)](t)&&(i[e(404)](s[0]),s[e(430)]>1?n[e(431)](t,s[e(434)](1)):n[e(417)](t),o[e(417)](t));return{removed:Array[e(441)](o),inserted:Array[e(441)](n[e(399)]())[e(438)](),moved:Array[e(441)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=310]})(t,e)}function d(){const t=["reset","has","before","remove","footnotesDefinitions","_sortFootnoteDefinitions","splice","_insertEmptyFootnotesDefinitionsContainer","unshift","getChildren","_updateFootnoteRefCounter","indexOf","_handleFootnoteReferencesChanges","rootName","footnoteInlineContent","1867zeKbrQ","insert","_updateFootnotesCounters","differ","591552gLvZza","length","enqueueChange","some","getFootnote","low","compareWith","_footnoteDefsTracker","isPremiumPlugin","after","getAttribute","footnoteCounter","1266gBzoiX","21CoNbIn","_ensureFootnotesDefinitionsContainerExists","listenTo","change:data","isEqual","push","FootnotesTracker","_ensureFootnotesReferencesHaveProperOrder","$graveyard","childCount","_footnotesDefinitions","min","singleton","338646nJzERi","getChanges","root","createRangeOn","set","getFootnotesDefinitionsObjectElement","setAttribute","definition","pluginName","isOfficialPlugin","1640BdLMph","init","34038AfZNKZ","from","_handleInsertedFootnoteReference","_footnoteFormatter","move","createPositionAt","find","301560BumUzn","footnoteDefinition","3224288wBuezS","paragraph","_handleFootnotesDefinitionsObjectSync","_handleRemoveFootnoteReferenceById","_footnoteDefsContainerTracker","5773360jGvlGg","setFootnoteFormatter","385dMNNAw","_handleFootnoteDefinitionsChanges","parent","footnoteRef","getRootNames","get","createRangeIn","editor","reference","getFootnotes","getFootnotesFormatter","findIndex","125BAOzbY","registerPostFixer","footnotes.multiBlock","document","append","config","createPositionBefore","model","_handleFootnotesDefinitionsObjectChanges","high","map","add","createElement","end","_handleMovedFootnoteReference","_footnoteRefsTracker","footnoteId","_footnotes"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(726252===parseInt(e(361))/1*(parseInt(e(377))/2)+-parseInt(e(365))/3+parseInt(e(314))/4+parseInt(e(328))/5*(-parseInt(e(391))/6)+parseInt(e(378))/7*(parseInt(e(412))/8)+parseInt(e(403))/9*(-parseInt(e(401))/10)+parseInt(e(316))/11*(-parseInt(e(410))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[f(345)]=[];[f(388)]=null;[f(406)]=null;[f(313)];[f(343)];[f(372)];static get[f(399)](){return f(384)}static get[f(400)](){return!0}static get[f(373)](){return!0}constructor(t){const e=f;super(t),this[e(313)]=new l(this[e(323)][e(335)],{elementName:e(350),getElementKey:()=>e(390)}),this[e(343)]=new l(this[e(323)][e(335)],{elementName:e(319),getElementKey:t=>t[e(375)](e(344))}),this[e(372)]=new l(this[e(323)][e(335)],{elementName:e(411),getElementKey:t=>t[e(375)](e(344))})}[f(402)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(331)][t(329)](e=>{const n=t,i=o[n(331)][n(364)][n(392)]();let s=!1;return this[n(336)](e,i)&&(s=!0),this[n(317)](e,i)&&(s=!0),this[n(358)](e,i)&&(s=!0),this[n(385)](e)&&(s=!0),this[n(311)](e)&&(s=!0),this[n(351)](e)&&(s=!0),s}),this[t(380)](o[t(331)],t(381),()=>{const e=t;o[e(367)]({isUndoable:!1},t=>{this[e(379)](t)})},{priority:t(370)}),this[t(380)](n,t(395),()=>{const e=t;this[e(345)]=[],this[e(313)][e(346)](),this[e(343)][e(346)](),this[e(372)][e(346)]()},{priority:t(337)})}[f(396)](){return this[f(388)]}[f(369)](t){const e=f;return this[e(345)][e(409)](e=>e.id===t)||null}[f(325)](){const t=f;return Array[t(404)](this[t(345)])}[f(326)](){return this[f(406)]}[f(315)](t){this[f(406)]=t}[f(363)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(345)][o(366)];i++)this[o(356)](t,i)&&(n=!0);return n}[f(353)](t,e){const o=f,n=t[o(340)](o(350),{});return t[o(332)](n,e),this[o(388)]=n,n}[f(379)](t){const e=f;if(!this[e(345)][e(366)]||this[e(388)])return;const o=this[e(345)][0][e(324)][e(393)],n=this[e(353)](t,o);for(const o of this[e(345)])o[e(398)][e(318)]||t[e(362)](o[e(398)],n,e(341));this[e(363)](t)}[f(336)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(313)][o(392)](e);if(r[o(366)]&&(this[o(388)]=r[0]),i[o(366)])if(i[o(366)]>1||this[o(388)]&&i[o(368)](t=>t!==this[o(388)])){const e=t[o(340)](o(350),{}),s=[];this[o(388)]&&s[o(383)](this[o(388)]),s[o(383)](...i),t[o(362)](e,s[0],o(348));for(const n of s)t[o(407)](t[o(322)](n),t[o(408)](e,o(341))),t[o(349)](n);this[o(388)]=e,this[o(363)](t),n=!0}else this[o(388)]=i[0];if(s[o(366)]&&o(386)===this[o(388)]?.[o(393)][o(359)]){for(const e of this[o(345)])t[o(349)](e[o(324)]),n=!0;this[o(345)]=[],this[o(388)]=null}return n}[f(317)](t,e){const o=f;let n=!1;const i=this[o(323)][o(333)][o(321)](o(330)),{inserted:s,moved:r}=this[o(372)][o(392)](e);for(const e of[...r,...s]){const s=e[o(375)](o(344)),r=this[o(369)](s);r&&(r[o(398)]=e),h(t,i,e)&&(n=!0)}return n}[f(358)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(343)][o(392)](e);for(const e of i)this[o(312)](t,e)&&(n=!0);for(const e of s)this[o(405)](t,e)&&(n=!0);for(const e of r)this[o(342)](t,e)&&(n=!0);return n}[f(311)](t){const e=f;if(!this[e(388)])return!1;let o=!1;if(this[e(388)][e(387)]!==this[e(345)][e(366)]){const n=[];for(const t of this[e(388)][e(355)]()){const i=t[e(375)](e(344));this[e(369)](i)||(n[e(354)](t),o=!0)}for(const o of n)t[e(349)](o)}const n=new Set,i=[];for(const t of this[e(388)][e(355)]()){const s=t[e(375)](e(344));n[e(347)](s)?(i[e(354)](t),o=!0):n[e(339)](s)}for(const o of i)t[e(349)](o);return this[e(388)][e(387)]||(t[e(349)](this[e(388)]),this[e(388)]=null,o=!0),o}[f(405)](t,e){const o=f;if(this[o(345)][o(409)](t=>t[o(324)]===e))return!1;let n=!1;const i=e[o(375)](o(344)),s=this[o(345)][o(327)](t=>t.id===i);-1!==s&&(t[o(349)](this[o(345)][s][o(324)]),this[o(345)][o(352)](s,1),n=!0);let r=this[o(388)]?function(t,e){const n=o;for(const o of t[n(355)]())if(o[n(375)](n(344))===e)return o;return null}(this[o(388)],i):null;r||(r=t[o(340)](o(411),{footnoteId:i}),this[o(388)]&&(t[o(362)](r,this[o(388)],o(341)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(323)][o(335)],this[o(345)],e);this[o(345)][o(352)](c,0,a);let l=c;return-1!==s&&(l=Math[o(389)](c,s)),this[o(363)](t,l)&&(n=!0),n}[f(312)](t,e){const o=f,n=this[o(345)][o(327)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(345)][n];return o(386)!==s[o(398)][o(393)][o(359)]&&(t[o(349)](s[o(398)]),i=!0),this[o(345)][o(352)](n,1),this[o(363)](t,n)&&(i=!0),i}[f(342)](t,e){const o=f,n=e[o(375)](o(344)),i=this[o(345)][o(327)](t=>t.id===n),s=this[o(345)][i];let r=!1;s[o(324)]=e,this[o(345)][o(352)](i,1);const a=m(this[o(323)][o(335)],this[o(345)],e);return this[o(345)][o(352)](a,0,s),this[o(363)](t,Math[o(389)](i,a))&&(r=!0),r}[f(356)](t,e){const o=f;if(!this[o(388)])return!1;const n=this[o(345)][e];let i;return i=this[o(406)]?this[o(406)]({footnote:n,container:this[o(388)],digits:String(this[o(345)][o(366)])[o(366)],value:e+1}):String(e+1),n[o(324)][o(375)](o(376))!=i&&(t[o(397)](o(376),i,n[o(324)]),!0)}[f(351)](t){const e=f;if(!this[e(388)]||this[e(345)][e(366)]<2)return!1;if(function(t,o){const n=e;if(t[n(366)]!==o[n(366)])return!1;for(let e=0;e<t[n(366)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(345)][e(338)](t=>t.id),Array[e(404)](this[e(388)][e(355)]())[e(338)](t=>t[e(375)](e(344)))))return!1;let o=!1;for(let n=0;n<this[e(345)][e(366)];n++){const i=this[e(345)][n],s=t[e(334)](i[e(398)]),r=t[e(408)](this[e(388)],n);s[e(382)](r)||(t[e(407)](t[e(394)](i[e(398)]),r),o=!0)}return o}[f(385)](t){const e=f;if(!this[e(345)][e(366)])return!1;const{model:o}=this[e(323)];let n=!1;for(let i=0;i<this[e(345)][e(366)]-1;i++){const s=this[e(345)][i],r=this[e(345)][i+1],a=o[e(334)](s[e(324)]),c=o[e(334)](r[e(324)]);e(374)===a[e(371)](c)&&(this[e(342)](t,s[e(324)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(387)])return!1;const i=n(e?310:360);return t[n(362)](t[n(340)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(366)])return 0;const i=t[n(334)](o);for(let o=0;o<e[n(366)];o++){const s=e[o],r=t[n(334)](s[n(324)]);if(n(348)===i[n(371)](r))return o}const s=o[n(393)];let r=-1;for(let t=e[n(366)]-1;t>=0;t--)if(e[t][n(324)][n(393)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(331)][n(320)](),c=a[n(357)](s[n(359)]),l=a[c+1];if(l)for(let t=0;t<e[n(366)];t++)if(e[t][n(324)][n(393)][n(359)]===l)return t;return e[n(366)]}const g=y;function w(){const t=["5878568lIiPnP","isBlock","getItems","148994trvKmu","1304zeMgFi","insertObject","footnoteRef","isEnabled","footnoteId","length","FootnotesEditing","end","createElement","refresh","change","356526yaFrQl","string","editor","execute","15KLNaRN","5OswEtm","2799375RhumVA","2043588gOgfhS","isObject","308zLPWZi","document","217431ksPpId","insert-footnote-command-executed-with-invalid-id","test","_moveSelectionToFootnoteDefinition","model","selection","get","32123bNCydN","checkChild","_getPositionToInsertFootnote","getFirstRange","plugins","160quVoaV"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=463]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(827266===-parseInt(e(498))/1*(parseInt(e(482))/2)+-parseInt(e(500))/3+-parseInt(e(479))/4*(parseInt(e(499))/5)+-parseInt(e(494))/6+parseInt(e(473))/7*(-parseInt(e(483))/8)+parseInt(e(466))/9*(parseInt(e(478))/10)+parseInt(e(464))/11*(parseInt(e(501))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(492)](){const t=g,e=this[t(496)][t(470)][t(465)][t(471)],o=this[t(475)](e);this[t(486)]=!!o}[g(497)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(465)],r=this[e(475)](s);if(!r)return;const a=o[e(477)][e(472)](e(489)),c=t?.[e(487)]??(0,i.uid)();!function(t){const o=e;return o(495)==typeof t&&t[o(488)]>0&&!/\s/[o(468)](t)&&!/^\d/[o(468)](t)}(c)?(0,i.logWarning)(e(467)):(n[e(493)](t=>{const o=e,i=t[o(491)](o(485),{footnoteId:c});n[o(484)](i,r,null)}),a[e(469)](c))}[g(475)](t){const e=g,{model:o}=this[e(496)],{schema:n}=o,i=t[e(476)]();for(const t of i[e(481)]())if(n[e(480)](t)||n[e(463)](t))return null;const s=i[e(490)];return n[e(474)](s,e(485))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](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 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])],u(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 f=(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(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=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(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])](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])]: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=>{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])](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:1765756800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const S=_;function A(){const t=["2632244QKutsR","push","footnoteInlineContent","8142480SNGgmy","isPremiumPlugin","footnoteRef","init","stringify","footnoteDefinition","createRangeIn","editor","getSelectedBlocks","reduce","entries","includes","10EhjlPy","1kgTfdM","requires","htmlProcessor","outputTransformation","setData","_handlePasteFootnotesDefinitions","parse","root","toView","selection","flatMap","method","42563950iJQULC","_handleCopyFootnotesDefinitions","79128KVqUuV","_defineClipboardIntegration","remove","FootnotesClipboard","dataTransfer","getRanges","length","clipboardInput","append","data","application/ckeditor5-footnotes","1179FGeDZj","get","getFootnote","footnotesDefinitions","createElement","getData","sourceEditorId","getAttribute","284973cLZcoU","create","listenTo","pluginName","drop","find","getFootnotes","toModel","from","definition","insert","setAttribute","getFootnotesDefinitionsObjectElement","2550800FYFKNp","change","contentInsertion","element","editing","toData","document","isOfficialPlugin","footnotes.multiBlock","getFirstRange","config","footnoteId","content","end","_insertEmptyFootnotesDefinitionsContainer","1324396SiXQON","add"];return(A=function(){return t})()}function _(t,e){const o=A();return(_=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(680261===-parseInt(e(292))/1*(parseInt(e(276))/2)+parseInt(e(246))/3+-parseInt(e(274))/4*(-parseInt(e(291))/5)+-parseInt(e(279))/6+-parseInt(e(259))/7+-parseInt(e(227))/8*(parseInt(e(238))/9)+parseInt(e(225))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[S(249)](){return S(230)}static get[S(214)](){return[v,P.ClipboardPipeline]}static get[S(266)](){return!0}static get[S(280)](){return!0}[S(282)](){this[S(228)]()}[S(228)](){const t=S;this[t(226)](),this[t(218)]()}[S(226)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(239)](P.ClipboardPipeline),s=o[t(239)](p);this[t(248)](i,t(216),(o,i)=>{const r=t,a=L(n[r(285)](i[r(271)]));if(!a[r(233)])return;const c=s[r(252)](),l=a[r(288)]((t,o)=>{const n=r,i=c[n(251)](t=>t.id===o);if(i){const o=e[n(236)][n(221)](i[n(255)],{isClipboardPipeline:!0}),s=e[n(236)][n(215)][n(264)](o);t[i.id]=s}return t},Object[r(247)](null));i[r(231)][r(217)](r(237),JSON[r(283)](l))})}[S(218)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(263)],r=n[t(239)](P.ClipboardPipeline),a=n[t(239)](p),c=e[t(269)][t(239)](t(267));let l=null;this[t(248)](s[t(265)],t(234),(e,o)=>{const n=t,i=o[n(231)][n(243)](n(237));l=i?JSON[n(219)](i):null}),this[t(248)](r,t(261),(n,s)=>{const r=t,f=s[r(244)]===this[r(286)].id;f&&r(250)===s[r(224)]||o[r(260)](t=>{const n=r;let u=a[n(258)]();const d=!!u&&Array[n(254)](o[n(265)][n(222)][n(287)]())[n(290)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(285)](e))n.is(o(262),o(241))&&i[o(277)](n);for(const e of i)t[o(229)](e)}(t,s[n(271)]),!l)return;const{selection:p}=o[n(265)],h=p[n(268)]()[n(220)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(285)](e))if(n.is(o(262),o(241)))return n;return null}(t,s[n(271)]),u||=a[n(273)](t,h));const m=Array[n(254)](p[n(232)]())[n(223)](L),g=function(t,e,o){const s=n,r=Object[s(247)](null);for(const{item:n}of t[s(285)](e))if(n.is(s(262),s(281))){const e=n[s(245)](s(270));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(257)](s(270),r[e],n)}return r}(t,s[n(271)],t=>{const e=n;return!f||!!a[e(240)](t)&&!m[e(290)](t)});for(const[o,i]of Object[n(289)](l)){const s=g[o]||o,r=t[n(242)](n(284),{footnoteId:s}),a=e[n(236)][n(215)][n(221)](i);let l;if(c)l=e[n(236)][n(253)](a,r);else{l=t[n(242)](n(278));const o=e[n(236)][n(253)](a,l);t[n(256)](o,l)}t[n(235)](l,r),t[n(256)](r,u,n(272))}l=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(262),e(281))&&o[e(275)](n[e(245)](e(270)));return Array[e(254)](o)}var N=o(311),V=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),z=o(123),U=o.n(z),W=o(741),H=o.n(W),G=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=U(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();R()(G.A,q);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(t,e){var o=J();return(Q=function(t,e){return o[t-=405]})(t,e)}var $=Q;function J(){var t=["requires","597513dIkORH","isPremiumPlugin","180366kZAcjX","pluginName","391014VjaqTZ","10vUGxls","12918004LWwTbf","Footnotes","5894307qaHlrw","14119yhhORm","isOfficialPlugin","5ngXUbQ","75fxxKIN","197556nVzGCx","2104YwGbnx"];return(J=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(698868===parseInt(e(418))/1+parseInt(e(406))/2+-parseInt(e(414))/3*(-parseInt(e(415))/4)+parseInt(e(413))/5*(-parseInt(e(420))/6)+-parseInt(e(411))/7*(-parseInt(e(416))/8)+-parseInt(e(410))/9+-parseInt(e(407))/10*(parseInt(e(408))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class Y extends t.Plugin{static get[$(405)](){return $(409)}static get[$(417)](){return[v,D,X]}static get[$(412)](){return!0}static get[$(419)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=110]})(t,e)}function ot(){const t=["5315520poMgev","4fDZNsu","302658ISPmxV","lower-roman","25pcGOvw","decimal","3221030uaDgOa","upper-latin","lower-latin","upper-alpha","122648CDVMRV","3005547BGCsms","lower-alpha","upper-roman","485896FqWUzy","946908fckZEN","decimal-leading-zero","81TNpvFa"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(548586===-parseInt(e(121))/1+-parseInt(e(126))/2+parseInt(e(122))/3*(parseInt(e(112))/4)+parseInt(e(115))/5*(parseInt(e(113))/6)+parseInt(e(111))/7+parseInt(e(125))/8*(-parseInt(e(110))/9)+-parseInt(e(117))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(116),tt(127),tt(119),tt(118),tt(123),tt(120),tt(114),tt(124)];function it(t,e){const o=rt();return(it=function(t,e){return o[t-=254]})(t,e)}const st=it;function rt(){const t=["plugins","getFootnotesDefinitionsObjectElement","model","includes","129342PriaYl","59922TsWpcS","2421cchefb","5365200aMLukW","9476lVHxRU","_updateFootnotesCounters","footnotesListStyle","getAttribute","refresh","value","25jOWTxT","308xDkktW","1650RtuMnj","47039432vzwUda","change","914016Lpidzc","get","setAttribute","execute","42220AfuuWy","isEnabled"];return(rt=function(){return t})()}!function(t){const e=it,o=t();for(;;)try{if(976993===parseInt(e(259))/1*(-parseInt(e(268))/2)+parseInt(e(276))/3*(-parseInt(e(278))/4)+parseInt(e(277))/5+-parseInt(e(274))/6*(parseInt(e(260))/7)+parseInt(e(264))/8+-parseInt(e(275))/9*(parseInt(e(261))/10)+parseInt(e(262))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[st(257)](){const t=st,{editor:e}=this,o=e[t(270)][t(265)](p)[t(271)]();this[t(269)]=!!o,this[t(258)]=o?.[t(256)](t(255))??null}[st(267)]({value:t}){const e=st,{editor:o}=this,n=o[e(270)][e(265)](p),i=n[e(271)]();i&&nt[e(273)](t)&&o[e(272)][e(263)](o=>{const s=e;o[s(266)](s(255),t,i),n[s(254)](o)})}}const ct=ft;function lt(){const t=["model","601857Trufjo","plugins","9pAIHWi","12520490BSGctZ","isEnabled","36dRmmVh","execute","value","22oPeTKo","setAttribute","173214hCDyRB","getAttribute","5407479aKiMxI","getFootnotesDefinitionsObjectElement","3376084DmMiCT","isInteger","889315yFzlxm","241862cfLhEU","footnotesListStart","change","_updateFootnotesCounters","120yIFpoc","refresh","get"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=137]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(551880===-parseInt(e(144))/1+-parseInt(e(151))/2*(-parseInt(e(161))/3)+-parseInt(e(148))/4+parseInt(e(150))/5*(-parseInt(e(139))/6)+parseInt(e(146))/7+parseInt(e(155))/8*(-parseInt(e(159))/9)+parseInt(e(137))/10*(parseInt(e(142))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(156)](){const t=ct,{editor:e}=this,o=e[t(160)][t(157)](p)[t(147)]();this[t(138)]=!!o,this[t(141)]=o?.[t(145)](t(152))??null}[ct(140)]({value:t}){const e=ct,{editor:o}=this,n=o[e(160)][e(157)](p),i=n[e(147)]();i&&Number[e(149)](t)&&o[e(158)][e(153)](o=>{const s=e;o[s(143)](s(152),t,i),n[s(154)](o)})}}const dt=wt;function pt(){const t=["footnotesDefinitions","commands","registerPostFixer","differ","for","setFootnoteFormatter","decimal-leading-zero","_getDefaultListStyle","_defineSchema","decimal","lower-roman","nodeAfter","6628STLNHk","viewItem","_formatFootnoteListValue","868896gEaMiJ","position","6847848iNTffg","footnotes-list","_definePostfixer","extend","_getDefaultStartIndex","hasAttribute","init","model","upcast","consumable","removeAttribute","mapper","define","getAttribute","isOfficialPlugin","modelCursor","removeStyle","type","requires","lower-alpha","hasClass","item","checkAttribute","element","FootnotesPropertiesEditing","setAttribute","upper-alpha","writer","insert","toUpperCase","find","downcast","getItems","config","plugins","lower-latin","name","upper-roman","_updateFootnotesCounters","from","4504230DBkjhZ","padStart","max","1024938TbBILA","toLowerCase","parent","document","1443XPGduW","footnotesStart","$text","pluginName","getStyle","consume","parseInt","toViewElement","footnotesStyle","element:ol","footnotes.footnotesProperties.defaultListStyle","add","schema","list-style-type","footnotesListStart","7230630PRyKNM","getChildren","floor","_defineConverters","isNaN","get","footnotes.footnotesProperties.defaultStartIndex","48kDkkLh","footnotesListStyle","start","isPremiumPlugin","editor","attribute:footnotesListStart:footnotesDefinitions","898261mqkMCv","setStyle","fromCharCode","_defineFormatter","attribute:footnotesListStyle:footnotesDefinitions","createRangeOn","getChanges","upper-latin"];return(pt=function(){return t})()}!function(t){const e=wt,o=t();for(;;)try{if(960341===-parseInt(e(565))/1+parseInt(e(533))/2+-parseInt(e(537))/3*(-parseInt(e(585))/4)+parseInt(e(552))/5+-parseInt(e(590))/6+-parseInt(e(588))/7*(-parseInt(e(559))/8)+-parseInt(e(530))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class ht extends t.Plugin{static get[dt(540)](){return dt(514)}static get[dt(508)](){return[v,p]}static get[dt(504)](){return!0}static get[dt(562)](){return!0}[dt(596)](){const t=dt,{editor:e}=this;e[t(523)][t(502)](t(547),t(582)),e[t(523)][t(502)](t(558),1),e[t(574)][t(548)](t(545),new at(e)),e[t(574)][t(548)](t(538),new ut(e)),this[t(581)](),this[t(555)](),this[t(568)](),this[t(592)]()}[dt(581)](){const t=dt,{editor:e}=this,{schema:o}=e[t(597)];o[t(593)](t(573),{allowAttributes:[t(560),t(551)]})}[dt(555)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(577)](t(598))[t(548)](e=>{const o=t;e.on(o(546),(t,e,n)=>{const s=o,r=e[s(586)],a=e[s(505)]?.[s(535)];r[s(510)](s(591))&&a?.is(s(513),s(573))&&(function(t,e,o,n){const i=s;if(!n[i(512)](e,i(551)))return;let r=1;const a=o[i(599)][i(542)](t,{attributes:i(561)});if(a){const e=Number[i(543)](t[i(503)](i(561)),10);Number[i(556)](e)||(r=e)}!a&&e[i(595)](i(551))||o[i(517)][i(515)](i(551),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(512)](e,i(560)))return;let r=i(582),a=!1;if(o[i(599)][i(542)](t,{attributes:i(507)})){const e={1:i(582),a:i(509),A:i(516),i:i(583),I:i(527)}[t[i(503)](i(507))];e&&(r=e),a=!0}o[i(599)][i(542)](t,{styles:i(550)})&&(r=function(t){const e=i;switch(t){case e(509):return e(525);case e(516):return e(572);default:return t}}(t[i(541)](i(550))),a=!0),!a&&e[i(595)](i(560))||o[i(517)][i(515)](i(560),r,e)}(r,a,n,i))})}),o[t(577)](t(521))[t(548)](e=>{const o=t;e.on(o(564),(t,e,n)=>{const i=o;if(!n[i(599)][i(542)](e[i(511)],t[i(526)]))return;const s=mt(e[i(511)],n[i(501)]),{attributeNewValue:r}=e;null==r||1===r?n[i(517)][i(500)](i(561),s):n[i(517)][i(515)](i(561),String(r),s)}),e.on(o(569),(t,e,n)=>{const i=o;if(!n[i(599)][i(542)](e[i(511)],t[i(526)]))return;const s=mt(e[i(511)],n[i(501)]),{attributeNewValue:r}=e;r&&i(582)!==r?n[i(517)][i(566)](i(550),r,s):n[i(517)][i(506)](i(550),s)})})}[dt(592)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(524)][t(557)](p),i=this[t(580)](),s=this[t(594)]();o[t(536)][t(575)](e=>{const r=t,a=o[r(536)][r(576)][r(571)]();let c=!1;for(const t of a){if(r(518)!==t[r(507)]||r(539)===t[r(526)])continue;const n=o[r(570)](t[r(589)][r(584)]);for(const t of n[r(522)]())t.is(r(513),r(573))&&(!t[r(595)](r(551))&&o[r(549)][r(512)](t,r(551))&&(e[r(515)](r(551),s,t),c=!0),!t[r(595)](r(560))&&o[r(549)][r(512)](t,r(560))&&(e[r(515)](r(560),i,t),c=!0))}return c&&n[r(528)](e),c})}[dt(568)](){const t=dt,{editor:e}=this;e[t(524)][t(557)](p)[t(578)](e=>this[t(587)](e))}[dt(580)](){const t=dt;return this[t(563)][t(523)][t(557)](t(547))}[dt(594)](){const t=dt;return this[t(563)][t(523)][t(557)](t(558))}[dt(587)]({container:t,value:e,digits:o}){const n=dt,i=t[n(503)](n(560)),s=t[n(503)](n(551)),r=Math[n(554)](e)+(s??1)-1;switch(i){case n(579):return function(t,e){const o=n;return String(t)[o(531)](e,"0")}(r,Math[n(532)](2,o));case n(509):case n(525):return gt(r,!1);case n(516):case n(572):return gt(r,!0);case n(583):return bt(r,!1);case n(527):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(544)](t);return Array[o(529)](n[o(553)]())[o(520)](t=>t.is(o(513),"ol")&&t[o(510)](o(591)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(567)](97+t)+n,i=Math[o(554)]((i-1)/26)}return e?n[o(519)]():n}function wt(t,e){const o=pt();return(wt=function(t,e){return o[t-=500]})(t,e)}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(534)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=285]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(720963===-parseInt(e(293))/1+-parseInt(e(297))/2*(-parseInt(e(295))/3)+-parseInt(e(291))/4+parseInt(e(289))/5*(parseInt(e(292))/6)+-parseInt(e(298))/7+parseInt(e(287))/8*(parseInt(e(296))/9)+parseInt(e(299))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(285)](){return Ft(294)}static get[Ft(288)](){return[ht,Ct]}static get[Ft(290)](){return!0}static get[Ft(286)](){return!0}}function Tt(){var t=["22511100fIiDvm","pluginName","isPremiumPlugin","19472YZQsTl","requires","80CfHoyR","isOfficialPlugin","2409884RYvWPd","295698sbHBpr","1156541XFdDmU","FootnotesProperties","3ckyWXZ","72kahpIe","658132inKzYh","6357407PztiLh"];return(Tt=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=445]})(t,e)}function St(){var t=["3jIwGsa","88958gQqRtX","8514725LPawJI","37ptNTtk","4619504CQZiGy","11991186rqAZOs","48584170zWnNzp","8610640lGzwXn","21TytQRo","3860694NWHyKv"];return(St=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(990302===-parseInt(e(449))/1*(parseInt(e(447))/2)+parseInt(e(446))/3*(parseInt(e(450))/4)+-parseInt(e(448))/5+parseInt(e(445))/6*(-parseInt(e(454))/7)+-parseInt(e(453))/8+parseInt(e(451))/9+parseInt(e(452))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x56f755,Command as _0x5cbedc}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1ae3d7,isWidget as _0x1354e5,toWidgetEditable as _0xdf9362,WidgetToolbarRepository as _0x26f573}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x9f4eff,logWarning as _0x511487,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x468f33,ClickObserver as _0xa90dc3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xdebdec}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x115d65,ButtonView as _0x297bbb,View as _0x2b1c96,ViewCollection as _0x97749b,FocusCycler as _0x16e0b0,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x5e54d2,BalloonPanelView as _0x4acb7f,createDropdown as _0x1c24fb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x37fcf8,IconListStyleDecimal as _0x55286d,IconListStyleDecimalLeadingZero as _0xba6b5f,IconListStyleLowerRoman as _0x43aafc,IconListStyleUpperRoman as _0x2cfe7b,IconListStyleLowerLatin as _0x59e6dd,IconListStyleUpperLatin as _0x30c252}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4357d5,_0x3461e3){this['_model']=_0x4357d5,this['_elementName']=_0x3461e3['elementName'],this['_getElementKey']=_0x3461e3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x6ff467){const _0x514aa5=new Set(),_0x246678=new Map();for(const _0x415f82 of _0x6ff467){if('insert'===_0x415f82['type']&&'$text'!==_0x415f82['name']&&_0x415f82['position']['nodeAfter']){const _0x1aa9ab=this['_model']['createRangeOn'](_0x415f82['position']['nodeAfter']);for(const _0x3fcd10 of _0x1aa9ab['getItems']()){if(!_0x3fcd10['is']('element',this['_elementName']))continue;const _0xd740c1=this['_getElementKey'](_0x3fcd10);_0x246678['has'](_0xd740c1)||_0x246678['set'](_0xd740c1,[]),_0x246678['get'](_0xd740c1)['push'](_0x3fcd10);}}if('remove'===_0x415f82['type']&&_0x415f82['name']===this['_elementName']){const _0x1599a9=this['_getElementKey']({'getAttribute':_0x3bec22=>_0x415f82['attributes']['get'](_0x3bec22)});_0x514aa5['add'](_0x1599a9);}}for(const [_0x219e59,_0x52057c]of this['_trackedElements'])'$graveyard'===_0x52057c['root']['rootName']&&_0x514aa5['add'](_0x219e59);for(const _0x3ec0da of _0x514aa5)this['_trackedElements']['delete'](_0x3ec0da);for(const [_0x4ea3e8,_0x3c8d7b]of _0x246678)this['_trackedElements']['set'](_0x4ea3e8,_0x3c8d7b[_0x3c8d7b['length']-0x1]);const _0x3bae72=new Set();for(const [_0x3b4ff0,_0x276d70]of _0x246678)_0x514aa5['has'](_0x3b4ff0)&&(_0x3bae72['add'](_0x276d70[0x0]),_0x276d70['length']>0x1?_0x246678['set'](_0x3b4ff0,_0x276d70['slice'](0x1)):_0x246678['delete'](_0x3b4ff0),_0x514aa5['delete'](_0x3b4ff0));return{'removed':Array['from'](_0x514aa5),'inserted':Array['from'](_0x246678['values']())['flat'](),'moved':Array['from'](_0x3bae72)};}}class f extends _0x56f755{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x341566){super(_0x341566),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1239e3=>_0x1239e3['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5fbc95=>_0x5fbc95['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1e771f}=this,{model:_0x4b3c28,data:_0x38995a}=_0x1e771f;_0x4b3c28['document']['registerPostFixer'](_0x55367c=>{const _0x60e1b5=_0x4b3c28['document']['differ']['getChanges']();let _0x17f3f6=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x55367c,_0x60e1b5)&&(_0x17f3f6=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x55367c,_0x60e1b5)&&(_0x17f3f6=!0x0),this['_handleFootnoteReferencesChanges'](_0x55367c,_0x60e1b5)&&(_0x17f3f6=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x55367c)&&(_0x17f3f6=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x55367c)&&(_0x17f3f6=!0x0),this['_sortFootnoteDefinitions'](_0x55367c)&&(_0x17f3f6=!0x0),_0x17f3f6;}),this['listenTo'](_0x4b3c28['document'],'change:data',()=>{_0x4b3c28['enqueueChange']({'isUndoable':!0x1},_0x426591=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x426591);});},{'priority':'low'}),this['listenTo'](_0x38995a,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x41d0c5){return this['_footnotes']['find'](_0xf74299=>_0xf74299['id']===_0x41d0c5)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x27eb38){this['_footnoteFormatter']=_0x27eb38;}['_updateFootnotesCounters'](_0x455e22,_0x1c4702=0x0){let _0x24a746=!0x1;for(let _0x32270f=_0x1c4702;_0x32270f<this['_footnotes']['length'];_0x32270f++)this['_updateFootnoteRefCounter'](_0x455e22,_0x32270f)&&(_0x24a746=!0x0);return _0x24a746;}['_insertEmptyFootnotesDefinitionsContainer'](_0x54cfb8,_0x5eeadb){const _0x15d3fc=_0x54cfb8['createElement']('footnotesDefinitions',{});return _0x54cfb8['append'](_0x15d3fc,_0x5eeadb),this['_footnotesDefinitions']=_0x15d3fc,_0x15d3fc;}['_ensureFootnotesDefinitionsContainerExists'](_0x49a1e0){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x12a6f1=this['_footnotes'][0x0]['reference']['root'],_0x1623f1=this['_insertEmptyFootnotesDefinitionsContainer'](_0x49a1e0,_0x12a6f1);for(const _0x2663ef of this['_footnotes'])_0x2663ef['definition']['parent']||_0x49a1e0['insert'](_0x2663ef['definition'],_0x1623f1,'end');this['_updateFootnotesCounters'](_0x49a1e0);}['_handleFootnotesDefinitionsObjectChanges'](_0x2b83c4,_0x489a9f){let _0x1bc520=!0x1;const {inserted:_0x5f3321,removed:_0x467111,moved:_0x254494}=this['_footnoteDefsContainerTracker']['getChanges'](_0x489a9f);if(_0x254494['length']&&(this['_footnotesDefinitions']=_0x254494[0x0]),_0x5f3321['length']){if(_0x5f3321['length']>0x1||this['_footnotesDefinitions']&&_0x5f3321['some'](_0x1a59c1=>_0x1a59c1!==this['_footnotesDefinitions'])){const _0x497a94=_0x2b83c4['createElement']('footnotesDefinitions',{}),_0x3c5a83=[];this['_footnotesDefinitions']&&_0x3c5a83['push'](this['_footnotesDefinitions']),_0x3c5a83['push'](..._0x5f3321),_0x2b83c4['insert'](_0x497a94,_0x3c5a83[0x0],'before');for(const _0xfd64c3 of _0x3c5a83)_0x2b83c4['move'](_0x2b83c4['createRangeIn'](_0xfd64c3),_0x2b83c4['createPositionAt'](_0x497a94,'end')),_0x2b83c4['remove'](_0xfd64c3);this['_footnotesDefinitions']=_0x497a94,this['_updateFootnotesCounters'](_0x2b83c4),_0x1bc520=!0x0;}else this['_footnotesDefinitions']=_0x5f3321[0x0];}if(_0x467111['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x214949 of this['_footnotes'])_0x2b83c4['remove'](_0x214949['reference']),_0x1bc520=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1bc520;}['_handleFootnoteDefinitionsChanges'](_0x13a578,_0x23b531){let _0x15365f=!0x1;const _0x309adb=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x68b79a,moved:_0x320957}=this['_footnoteDefsTracker']['getChanges'](_0x23b531);for(const _0x20f782 of[..._0x320957,..._0x68b79a]){const _0x3effff=_0x20f782['getAttribute']('footnoteId'),_0x116b4a=this['getFootnote'](_0x3effff);_0x116b4a&&(_0x116b4a['definition']=_0x20f782),_(_0x13a578,_0x309adb,_0x20f782)&&(_0x15365f=!0x0);}return _0x15365f;}['_handleFootnoteReferencesChanges'](_0x1bb66d,_0x22c2bd){let _0xbcabfd=!0x1;const {removed:_0x407d1c,inserted:_0x3c3a2b,moved:_0x2dda66}=this['_footnoteRefsTracker']['getChanges'](_0x22c2bd);for(const _0x978350 of _0x407d1c)this['_handleRemoveFootnoteReferenceById'](_0x1bb66d,_0x978350)&&(_0xbcabfd=!0x0);for(const _0x78d5d1 of _0x3c3a2b)this['_handleInsertedFootnoteReference'](_0x1bb66d,_0x78d5d1)&&(_0xbcabfd=!0x0);for(const _0x490878 of _0x2dda66)this['_handleMovedFootnoteReference'](_0x1bb66d,_0x490878)&&(_0xbcabfd=!0x0);return _0xbcabfd;}['_handleFootnotesDefinitionsObjectSync'](_0x47732d){if(!this['_footnotesDefinitions'])return!0x1;let _0x1ca57f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1527b6=[];for(const _0x4e790f of this['_footnotesDefinitions']['getChildren']()){const _0x58506c=_0x4e790f['getAttribute']('footnoteId');this['getFootnote'](_0x58506c)||(_0x1527b6['unshift'](_0x4e790f),_0x1ca57f=!0x0);}for(const _0x4d27fb of _0x1527b6)_0x47732d['remove'](_0x4d27fb);}const _0x3f28a8=new Set(),_0x3bc8a5=[];for(const _0x372290 of this['_footnotesDefinitions']['getChildren']()){const _0x210af1=_0x372290['getAttribute']('footnoteId');_0x3f28a8['has'](_0x210af1)?(_0x3bc8a5['unshift'](_0x372290),_0x1ca57f=!0x0):_0x3f28a8['add'](_0x210af1);}for(const _0x46d3db of _0x3bc8a5)_0x47732d['remove'](_0x46d3db);return this['_footnotesDefinitions']['childCount']||(_0x47732d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1ca57f=!0x0),_0x1ca57f;}['_handleInsertedFootnoteReference'](_0x444d7e,_0x5c46cc){if(this['_footnotes']['find'](_0x153bdf=>_0x153bdf['reference']===_0x5c46cc))return!0x1;let _0x431a92=!0x1;const _0x350028=_0x5c46cc['getAttribute']('footnoteId'),_0x398176=this['_footnotes']['findIndex'](_0x2dec2b=>_0x2dec2b['id']===_0x350028);-0x1!==_0x398176&&(_0x444d7e['remove'](this['_footnotes'][_0x398176]['reference']),this['_footnotes']['splice'](_0x398176,0x1),_0x431a92=!0x0);let _0x208905=this['_footnotesDefinitions']?function(_0x574aac,_0x119144){for(const _0x412c1a of _0x574aac['getChildren']())if(_0x412c1a['getAttribute']('footnoteId')===_0x119144)return _0x412c1a;return null;}(this['_footnotesDefinitions'],_0x350028):null;_0x208905||(_0x208905=_0x444d7e['createElement']('footnoteDefinition',{'footnoteId':_0x350028}),this['_footnotesDefinitions']&&(_0x444d7e['insert'](_0x208905,this['_footnotesDefinitions'],'end'),_0x431a92=!0x0));const _0x5a0fad={'id':_0x350028,'reference':_0x5c46cc,'definition':_0x208905},_0x1832fb=I(this['editor']['model'],this['_footnotes'],_0x5c46cc);this['_footnotes']['splice'](_0x1832fb,0x0,_0x5a0fad);let _0x352e34=_0x1832fb;return-0x1!==_0x398176&&(_0x352e34=Math['min'](_0x1832fb,_0x398176)),this['_updateFootnotesCounters'](_0x444d7e,_0x352e34)&&(_0x431a92=!0x0),_0x431a92;}['_handleRemoveFootnoteReferenceById'](_0xaac795,_0x551b46){const _0x1bca05=this['_footnotes']['findIndex'](_0x3c25ae=>_0x3c25ae['id']===_0x551b46);if(-0x1===_0x1bca05)return!0x1;let _0x1613f1=!0x1;const _0x5b5a31=this['_footnotes'][_0x1bca05];return'$graveyard'!==_0x5b5a31['definition']['root']['rootName']&&(_0xaac795['remove'](_0x5b5a31['definition']),_0x1613f1=!0x0),this['_footnotes']['splice'](_0x1bca05,0x1),this['_updateFootnotesCounters'](_0xaac795,_0x1bca05)&&(_0x1613f1=!0x0),_0x1613f1;}['_handleMovedFootnoteReference'](_0x2577f8,_0x564d7b){const _0x5082b9=_0x564d7b['getAttribute']('footnoteId'),_0x1d5782=this['_footnotes']['findIndex'](_0x501110=>_0x501110['id']===_0x5082b9),_0x4d87dc=this['_footnotes'][_0x1d5782];let _0x50181a=!0x1;_0x4d87dc['reference']=_0x564d7b,this['_footnotes']['splice'](_0x1d5782,0x1);const _0x3385b3=I(this['editor']['model'],this['_footnotes'],_0x564d7b);return this['_footnotes']['splice'](_0x3385b3,0x0,_0x4d87dc),this['_updateFootnotesCounters'](_0x2577f8,Math['min'](_0x1d5782,_0x3385b3))&&(_0x50181a=!0x0),_0x50181a;}['_updateFootnoteRefCounter'](_0xd9dcd,_0x39c781){if(!this['_footnotesDefinitions'])return!0x1;const _0x3efb01=this['_footnotes'][_0x39c781];let _0x235a0f;return _0x235a0f=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3efb01,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x39c781+0x1}):String(_0x39c781+0x1),_0x3efb01['reference']['getAttribute']('footnoteCounter')!=_0x235a0f&&(_0xd9dcd['setAttribute']('footnoteCounter',_0x235a0f,_0x3efb01['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x596af6){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x4f1dcb,_0x4e8905){if(_0x4f1dcb['length']!==_0x4e8905['length'])return!0x1;for(let _0x1a11f6=0x0;_0x1a11f6<_0x4f1dcb['length'];_0x1a11f6++)if(_0x4f1dcb[_0x1a11f6]!==_0x4e8905[_0x1a11f6])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1736b2=>_0x1736b2['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x24c283=>_0x24c283['getAttribute']('footnoteId'))))return!0x1;let _0x538f1d=!0x1;for(let _0x51fc74=0x0;_0x51fc74<this['_footnotes']['length'];_0x51fc74++){const _0x283766=this['_footnotes'][_0x51fc74],_0x59d80f=_0x596af6['createPositionBefore'](_0x283766['definition']),_0x3d4ff9=_0x596af6['createPositionAt'](this['_footnotesDefinitions'],_0x51fc74);_0x59d80f['isEqual'](_0x3d4ff9)||(_0x596af6['move'](_0x596af6['createRangeOn'](_0x283766['definition']),_0x3d4ff9),_0x538f1d=!0x0);}return _0x538f1d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x45d647){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1bb096}=this['editor'];let _0x3afb5b=!0x1;for(let _0x980e20=0x0;_0x980e20<this['_footnotes']['length']-0x1;_0x980e20++){const _0x304c2e=this['_footnotes'][_0x980e20],_0x3bf69c=this['_footnotes'][_0x980e20+0x1],_0xccded0=_0x1bb096['createPositionBefore'](_0x304c2e['reference']),_0x3f301c=_0x1bb096['createPositionBefore'](_0x3bf69c['reference']);'after'===_0xccded0['compareWith'](_0x3f301c)&&(this['_handleMovedFootnoteReference'](_0x45d647,_0x304c2e['reference']),_0x980e20=-0x1,_0x3afb5b=!0x0);}return _0x3afb5b;}}function _(_0x4501d9,_0x5b332a,_0x3b2373){if(_0x3b2373['childCount'])return!0x1;const _0x222c65=_0x5b332a?'paragraph':'footnoteInlineContent';return _0x4501d9['insert'](_0x4501d9['createElement'](_0x222c65),_0x3b2373),!0x0;}function I(_0x851ad6,_0x4e2526,_0x382ab8){if(0x0===_0x4e2526['length'])return 0x0;const _0x3db751=_0x851ad6['createPositionBefore'](_0x382ab8);for(let _0x336fbb=0x0;_0x336fbb<_0x4e2526['length'];_0x336fbb++){const _0x148e02=_0x4e2526[_0x336fbb],_0x357aad=_0x851ad6['createPositionBefore'](_0x148e02['reference']);if('before'===_0x3db751['compareWith'](_0x357aad))return _0x336fbb;}const _0x5623be=_0x382ab8['root'];let _0x1ba2ec=-0x1;for(let _0x5bd342=_0x4e2526['length']-0x1;_0x5bd342>=0x0;_0x5bd342--)if(_0x4e2526[_0x5bd342]['reference']['root']===_0x5623be){_0x1ba2ec=_0x5bd342;break;}if(-0x1!==_0x1ba2ec)return _0x1ba2ec+0x1;const _0xb0f1f8=_0x851ad6['document']['getRootNames'](),_0x3a7ced=_0xb0f1f8['indexOf'](_0x5623be['rootName']),_0x50fe52=_0xb0f1f8[_0x3a7ced+0x1];if(_0x50fe52){for(let _0x173a76=0x0;_0x173a76<_0x4e2526['length'];_0x173a76++)if(_0x4e2526[_0x173a76]['reference']['root']['rootName']===_0x50fe52)return _0x173a76;}return _0x4e2526['length'];}class m extends _0x5cbedc{['refresh'](){const _0x563075=this['editor']['model']['document']['selection'],_0x2089b9=this['_getPositionToInsertFootnote'](_0x563075);this['isEnabled']=!!_0x2089b9;}['execute'](_0x5f0024){const {editor:_0x3bf7c5}=this,{model:_0x24bbf9}=_0x3bf7c5,{selection:_0x1af703}=_0x24bbf9['document'],_0x519f12=this['_getPositionToInsertFootnote'](_0x1af703);if(!_0x519f12)return;const _0x3553d9=_0x3bf7c5['plugins']['get']('FootnotesEditing'),_0x5debfe=_0x5f0024?.['footnoteId']??_0x9f4eff();!function(_0x5abdce){return'string'==typeof _0x5abdce&&_0x5abdce['length']>0x0&&!/\s/['test'](_0x5abdce)&&!/^\d/['test'](_0x5abdce);}(_0x5debfe)?_0x511487('insert-footnote-command-executed-with-invalid-id'):(_0x24bbf9['change'](_0xd625a7=>{const _0x27a54f=_0xd625a7['createElement']('footnoteRef',{'footnoteId':_0x5debfe});_0x24bbf9['insertObject'](_0x27a54f,_0x519f12,null);}),_0x3553d9['_moveSelectionToFootnoteDefinition'](_0x5debfe));}['_getPositionToInsertFootnote'](_0x19b64d){const {model:_0x61aeae}=this['editor'],{schema:_0x2056fd}=_0x61aeae,_0x3feae3=_0x19b64d['getFirstRange']();for(const _0x454879 of _0x3feae3['getItems']())if(_0x2056fd['isBlock'](_0x454879)||_0x2056fd['isObject'](_0x454879))return null;const _0x5851d0=_0x3feae3['end'];return _0x2056fd['checkChild'](_0x5851d0,'footnoteRef')?_0x5851d0:null;}}class r extends _0x56f755{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e573b}=this;_0x5e573b['config']['define']('footnotes.multiBlock',!0x0),_0x5e573b['commands']['add']('insertFootnote',new m(_0x5e573b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x132907){const _0x253398=_0x49b466([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x1d5fac=0x47a28506,_0x2254ca=0x47a5fee6^_0x1d5fac,_0x11a571=window[_0x49b466([0x44,0x61,0x74,0x65])][_0x49b466([0x6e,0x6f,0x77])](),_0x2fc2e5=_0x132907[_0x49b466([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30e203=new window[(_0x49b466([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ea1f4=>{_0x2fc2e5[_0x49b466([0x6f,0x6e,0x63,0x65])](_0x49b466([0x72,0x65,0x61,0x64,0x79]),_0x5ea1f4);}),_0x4a959d={[_0x49b466([0x6b,0x74,0x79])]:_0x49b466([0x45,0x43]),[_0x49b466([0x75,0x73,0x65])]:_0x49b466([0x73,0x69,0x67]),[_0x49b466([0x63,0x72,0x76])]:_0x49b466([0x50,0x2d,0x32,0x35,0x36]),[_0x49b466([0x78])]:_0x49b466([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x49b466([0x79])]:_0x49b466([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x49b466([0x61,0x6c,0x67])]:_0x49b466([0x45,0x53,0x32,0x35,0x36])},_0x3493e8=_0x2fc2e5[_0x49b466([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49b466([0x67,0x65,0x74])](_0x49b466([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42ae53(){let _0x16791b,_0x72953f=null,_0x17a2d8=null;try{if(_0x3493e8==_0x49b466([0x47,0x50,0x4c]))return _0x49b466([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16791b=_0x5eac41(),!_0x16791b)return _0x49b466([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16791b[_0x49b466([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17a2d8=_0x445183(_0x16791b[_0x49b466([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16791b[_0x49b466([0x6a,0x74,0x69])])),await _0x3118db()?_0x385e32()?_0x58a223()?_0x49b466([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2109ef()?(_0x16791b[_0x49b466([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b466([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x72953f=_0xea5d37(_0x49b466([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16791b[_0x49b466([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b466([0x74,0x72,0x69,0x61,0x6c])&&(_0x72953f=_0xea5d37(_0x49b466([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f799d()):_0x49b466([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49b466([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49b466([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49b466([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58a223(){const _0xffad14=[_0x49b466([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49b466([0x74,0x72,0x69,0x61,0x6c])][_0x49b466([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16791b[_0x49b466([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11a571/0x3e8:0xe10*_0x2254ca;return _0x16791b[_0x49b466([0x65,0x78,0x70])]<_0xffad14;}function _0x385e32(){const _0x21a7e7=_0x16791b[_0x49b466([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21a7e7&&(!!_0x21a7e7[_0x49b466([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b466([0x2a]))||!!_0x21a7e7[_0x49b466([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b466([0x46,0x4f,0x4f])));}function _0x2109ef(){const _0x5733d2=_0x16791b[_0x49b466([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5733d2||0x0==_0x5733d2[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cbb3e}=new URL(window[_0x49b466([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5733d2[_0x49b466([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cbb3e))return!0x0;const _0x3c8976=_0x5cbb3e[_0x49b466([0x73,0x70,0x6c,0x69,0x74])](_0x49b466([0x2e]));return _0x5733d2[_0x49b466([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x137e52=>_0x137e52[_0x49b466([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b466([0x2a])))[_0x49b466([0x6d,0x61,0x70])](_0x388134=>_0x388134[_0x49b466([0x73,0x70,0x6c,0x69,0x74])](_0x49b466([0x2e])))[_0x49b466([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20cd01=>_0x20cd01[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c8976[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49b466([0x6d,0x61,0x70])](_0x1c81fb=>Array(_0x3c8976[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1c81fb[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49b466([0x66,0x69,0x6c,0x6c])](_0x1c81fb[0x0]===_0x49b466([0x2a])?_0x49b466([0x2a]):'')[_0x49b466([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1c81fb))[_0x49b466([0x73,0x6f,0x6d,0x65])](_0x4f0f28=>_0x3c8976[_0x49b466([0x65,0x76,0x65,0x72,0x79])]((_0x2ad3e3,_0x3c396f)=>_0x4f0f28[_0x3c396f]===_0x2ad3e3||_0x4f0f28[_0x3c396f]===_0x49b466([0x2a])));}function _0x1f799d(){return _0x72953f&&_0x17a2d8?new window[(_0x49b466([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a1c4d,_0x135f24)=>{_0x72953f[_0x49b466([0x74,0x68,0x65,0x6e])](_0x2a1c4d,_0x135f24),_0x17a2d8[_0x49b466([0x74,0x68,0x65,0x6e])](_0x5b3c8c=>{_0x5b3c8c!=_0x49b466([0x56,0x61,0x6c,0x69,0x64])&&_0x2a1c4d(_0x5b3c8c);},_0x135f24);}):_0x72953f||_0x17a2d8||_0x49b466([0x56,0x61,0x6c,0x69,0x64]);}}function _0x445183(_0x19d3e1,_0x3a5290){return new window[(_0x49b466([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x301ea6=>{if(_0x3d86b6())return _0x301ea6(_0x49b466([0x56,0x61,0x6c,0x69,0x64]));_0x587e3d(),_0x2fc2e5[_0x49b466([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49b466([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3266d=!0x1;const _0x1a466b=_0x9f4eff();function _0x3fe8c6(_0x1aff44){return!!_0x1aff44&&(typeof _0x1aff44===_0x49b466([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1aff44===_0x49b466([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1aff44[_0x49b466([0x74,0x68,0x65,0x6e])]===_0x49b466([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1aff44[_0x49b466([0x63,0x61,0x74,0x63,0x68])]===_0x49b466([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33226e(_0x35ce52){_0x47301a(_0x35ce52)[_0x49b466([0x74,0x68,0x65,0x6e])](_0x213373=>{if(!_0x213373||_0x213373[_0x49b466([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49b466([0x6f,0x6b]))return _0x49b466([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x582265(_0x1fc5a1(_0x1a466b+_0x3a5290))!=_0x213373[_0x49b466([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49b466([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49b466([0x56,0x61,0x6c,0x69,0x64]);})[_0x49b466([0x74,0x68,0x65,0x6e])](_0x5a8861=>(_0x40369a(),_0x5a8861),()=>{const _0x22a67d=_0x564538();return null==_0x22a67d?(_0x40369a(),_0x49b466([0x56,0x61,0x6c,0x69,0x64])):_0x49b466(_0x11a571-_0x22a67d>(0x63ae0106^_0x1d5fac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49b466([0x74,0x68,0x65,0x6e])](_0x301ea6)[_0x49b466([0x63,0x61,0x74,0x63,0x68])](()=>{_0x301ea6(_0x49b466([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29a4df=0x47946b86^_0x1d5fac;function _0x40369a(){const _0x5e00f2=_0x49b466([0x6c,0x6c,0x63,0x74,0x2d])+_0x582265(_0x1fc5a1(_0x19d3e1)),_0x4c071c=_0x4b7cdc(_0x582265(window[_0x49b466([0x4d,0x61,0x74,0x68])][_0x49b466([0x63,0x65,0x69,0x6c])](_0x11a571/_0x29a4df)));window[_0x49b466([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b466([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e00f2,_0x4c071c);}function _0x564538(){const _0xf57f8a=_0x49b466([0x6c,0x6c,0x63,0x74,0x2d])+_0x582265(_0x1fc5a1(_0x19d3e1)),_0x1559fc=window[_0x49b466([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b466([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf57f8a);return _0x1559fc?window[_0x49b466([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b7cdc(_0x1559fc),0x10)*_0x29a4df:null;}function _0x47301a(_0x2d4e07){return new window[(_0x49b466([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53bb97,_0x267611)=>{_0x2d4e07[_0x49b466([0x74,0x68,0x65,0x6e])](_0x53bb97,_0x267611),window[_0x49b466([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x267611,0x47a351c6^_0x1d5fac);});}}_0x2fc2e5[_0x49b466([0x6f,0x6e])](_0x49b466([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d95be,_0x3ff640)=>{if(_0x3ff640[0x0]!=_0x19d3e1)return _0x301ea6(_0x49b466([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ff640[0x1]={..._0x3ff640[0x1],[_0x49b466([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a466b};},{[_0x49b466([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b466([0x68,0x69,0x67,0x68])}),_0x2fc2e5[_0x49b466([0x6f,0x6e])](_0x49b466([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2dc0ac=>{_0x3fe8c6(_0x2dc0ac[_0x49b466([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3266d=!0x0,_0x33226e(_0x2dc0ac[_0x49b466([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49b466([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b466([0x6c,0x6f,0x77])}),_0x30e203[_0x49b466([0x74,0x68,0x65,0x6e])](()=>{_0x3266d||_0x301ea6(_0x49b466([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d86b6(){return _0x2fc2e5[_0x49b466([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b466([0x76,0x69,0x65,0x77])][_0x49b466([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49b466([0x61,0x75,0x74,0x6f]);}function _0x587e3d(){_0x2fc2e5[_0x49b466([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b466([0x76,0x69,0x65,0x77])][_0x49b466([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49b466([0x61,0x75,0x74,0x6f]);}}function _0xea5d37(_0x2e3a61){const _0xfbb8fd=[new window[(_0x49b466([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f722c=>setTimeout(_0x1f722c,0x47abbbca^_0x1d5fac)),_0x30e203[_0x49b466([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49b466([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26b2a0=>{let _0x1b42bb=0x0;_0x2fc2e5[_0x49b466([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b466([0x6f,0x6e])](_0x49b466([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b385a,_0x2cf2cf)=>{_0x2cf2cf[0x0][_0x49b466([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b42bb++,_0x1b42bb==(0x47a284fe^_0x1d5fac)&&(_0x26b2a0(),_0x1b385a[_0x49b466([0x6f,0x66,0x66])]());});}))];return window[_0x49b466([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49b466([0x72,0x61,0x63,0x65])](_0xfbb8fd)[_0x49b466([0x74,0x68,0x65,0x6e])](()=>_0x2e3a61);}async function _0x1403b7(){await _0x30e203,_0x2fc2e5[_0x49b466([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b466([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2762fc,_0x2fc2e5[_0x49b466([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b466([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2762fc,_0x2fc2e5[_0x49b466([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49b466([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x146884(_0x5211ee){const _0x27486f=_0x490bfb();_0x2fc2e5[_0x27486f]=_0x49b466([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5211ee,_0x5211ee!=_0x49b466([0x56,0x61,0x6c,0x69,0x64])&&_0x1403b7();}function _0x490bfb(){const _0x1d7ba5=window[_0x49b466([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49b466([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49b466([0x6e,0x6f,0x77])]())[_0x49b466([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49b466([0x2e]),'');let _0x3b08fc=_0x49b466([0x75]);for(let _0x1e47df=0x0;_0x1e47df<_0x1d7ba5[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e47df+=0x2){let _0x64dda9=window[_0x49b466([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d7ba5[_0x49b466([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e47df,_0x1e47df+0x2));_0x64dda9>=_0x253398[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x64dda9-=_0x253398[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b08fc+=_0x253398[_0x64dda9];}return _0x3b08fc;}function _0x5eac41(){const _0x36ad91=_0x3493e8[_0x49b466([0x73,0x70,0x6c,0x69,0x74])](_0x49b466([0x2e]));if(0x3!=_0x36ad91[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38b0a1(_0x36ad91[0x1]);function _0x38b0a1(_0x205c81){const _0x4cd7bb=_0x42ba26(_0x205c81);return _0x4cd7bb&&_0x2c64ad()?_0x4cd7bb:null;function _0x2c64ad(){const _0x3e1467=_0x4cd7bb[_0x49b466([0x6a,0x74,0x69])],_0x2946d5=window[_0x49b466([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1467[_0x49b466([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e1467[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23c12b={..._0x4cd7bb,[_0x49b466([0x6a,0x74,0x69])]:_0x3e1467[_0x49b466([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e1467[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23c12b[_0x49b466([0x76,0x63])],_0x1fc5a1(_0x23c12b)==_0x2946d5;}}}async function _0x3118db(){let _0x44213=!0x0;try{const _0x28b504=_0x3493e8[_0x49b466([0x73,0x70,0x6c,0x69,0x74])](_0x49b466([0x2e])),[_0x23ba47,_0x415630,_0x83f521]=_0x28b504;return _0x2a494b(_0x23ba47),await _0x2513fd(_0x23ba47,_0x415630,_0x83f521),_0x44213;}catch{return!0x1;}function _0x2a494b(_0x417d69){const _0x2eae7e=_0x42ba26(_0x417d69);_0x2eae7e&&_0x2eae7e[_0x49b466([0x61,0x6c,0x67])]==_0x49b466([0x45,0x53,0x32,0x35,0x36])||(_0x44213=!0x1);}async function _0x2513fd(_0x252ab1,_0x4c715a,_0x5f2dd8){const _0x5e101a=window[_0x49b466([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49b466([0x66,0x72,0x6f,0x6d])](_0x1110e(_0x5f2dd8),_0x35a072=>_0x35a072[_0x49b466([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10e179=new window[(_0x49b466([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49b466([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x252ab1+_0x49b466([0x2e])+_0x4c715a),_0x2d7ce1=window[_0x49b466([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49b466([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d7ce1)return;const _0x4a7f6f=await _0x2d7ce1[_0x49b466([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49b466([0x6a,0x77,0x6b]),_0x4a959d,{[_0x49b466([0x6e,0x61,0x6d,0x65])]:_0x49b466([0x45,0x43,0x44,0x53,0x41]),[_0x49b466([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49b466([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49b466([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d7ce1[_0x49b466([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49b466([0x6e,0x61,0x6d,0x65])]:_0x49b466([0x45,0x43,0x44,0x53,0x41]),[_0x49b466([0x68,0x61,0x73,0x68])]:{[_0x49b466([0x6e,0x61,0x6d,0x65])]:_0x49b466([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a7f6f,_0x5e101a,_0x10e179)||(_0x44213=!0x1);}}function _0x42ba26(_0x5d16e3){return _0x5d16e3[_0x49b466([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49b466([0x65,0x79]))?JSON[_0x49b466([0x70,0x61,0x72,0x73,0x65])](_0x1110e(_0x5d16e3)):null;}function _0x1110e(_0x4b7786){return window[_0x49b466([0x61,0x74,0x6f,0x62])](_0x4b7786[_0x49b466([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49b466([0x2b]))[_0x49b466([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49b466([0x2f])));}function _0x1fc5a1(_0x53a248){let _0x282a99=0x1505;function _0x46c055(_0x2c6322){for(let _0x28141d=0x0;_0x28141d<_0x2c6322[_0x49b466([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28141d++){const _0x13b877=_0x2c6322[_0x49b466([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28141d);_0x282a99=(_0x282a99<<0x5)+_0x282a99+_0x13b877,_0x282a99&=_0x282a99;}}function _0x4ca279(_0x4aa631){Array[_0x49b466([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4aa631)?_0x4aa631[_0x49b466([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ca279):_0x4aa631&&typeof _0x4aa631==_0x49b466([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49b466([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4aa631)[_0x49b466([0x73,0x6f,0x72,0x74])]()[_0x49b466([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15dd3b,_0x27e01b])=>{_0x46c055(_0x15dd3b),_0x4ca279(_0x27e01b);}):_0x46c055(window[_0x49b466([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4aa631));}return _0x4ca279(_0x53a248),_0x282a99>>>0x0;}function _0x582265(_0x4fa5d9){return _0x4fa5d9[_0x49b466([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49b466([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49b466([0x30]));}function _0x4b7cdc(_0x4d2cd4){return _0x4d2cd4[_0x49b466([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49b466([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49b466([0x6a,0x6f,0x69,0x6e])]('');}function _0x2762fc(){}function _0x49b466(_0x2afbc2){return _0x2afbc2['map'](_0x1d3b6d=>String['fromCharCode'](_0x1d3b6d))['join']('');}_0x146884(await _0x42ae53());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3bcc40){const {plugins:_0x5d6b3b,editing:_0x44b2b1,model:_0x26b78b}=this['editor'],_0x5a0425=_0x5d6b3b['get'](f)['getFootnote'](_0x3bcc40);return!!_0x5a0425&&(_0x26b78b['change'](_0x1f87a6=>{_0x1f87a6['setSelection'](_0x1f87a6['createPositionAt'](_0x5a0425['definition'],'end'));}),_0x44b2b1['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x827160){const {plugins:_0x4c97fb,editing:_0x44c3c1,model:_0x4ddd53}=this['editor'],_0x5bd368=_0x4c97fb['get'](f)['getFootnote'](_0x827160);return!!_0x5bd368&&(_0x4ddd53['change'](_0x319c99=>{_0x319c99['setSelection'](_0x5bd368['reference'],'on');}),_0x44c3c1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x495230}=this['editor']['model'],_0x4e9acc=this['editor']['config']['get']('footnotes.multiBlock');_0x495230['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x495230['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x495230['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4e9acc?_0x495230['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x495230['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x495230['addChildCheck'](_0x4e34cf=>{for(const _0x383348 of _0x4e34cf)if('footnoteDefinition'===_0x383348['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x478bd5}=this,{conversion:_0x399b71,editing:_0x1fb3fd}=_0x478bd5,{t:t}=_0x478bd5['locale'];_0x399b71['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x164062,{writer:_0x56ae4d,consumable:_0x4c4cd3})=>{const _0x24ee81=_0x164062['getChild'](0x0);if(!_0x24ee81||!_0x24ee81['is']('element','a'))return null;const _0x305013=_0x24ee81['getAttribute']('href')||'';if(!_0x305013['startsWith']('#'))return null;const _0x181e3f=_0x305013['replace'](/^#/,'');if(!_0x181e3f)return null;_0x4c4cd3['consume'](_0x24ee81,{'name':!0x0,'attributes':['href']});for(const {item:_0x263eb1}of _0x1fb3fd['view']['createRangeIn'](_0x24ee81))_0x263eb1['is']('$textProxy')?_0x4c4cd3['consume'](_0x263eb1['textNode'],{'name':!0x0}):_0x263eb1['is']('element')&&_0x4c4cd3['consume'](_0x263eb1,{'name':!0x0});return _0x56ae4d['createElement']('footnoteRef',{'footnoteId':_0x181e3f});}}),_0x399b71['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x39fe9f,{writer:_0x262596})=>D(_0x39fe9f,_0x262596)}),_0x399b71['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2fdb6e,{writer:_0x294380})=>{const _0x280625=_0x2fdb6e['getAttribute']('footnoteCounter');return _0x1ae3d7(D(_0x2fdb6e,_0x294380),_0x294380,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x280625)});}});}['_defineDefinitionsConverters'](){const {editor:_0x969b89}=this,{t:t}=_0x969b89['locale'],{conversion:_0x4ff30c}=_0x969b89;_0x4ff30c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4ff30c['for']('upcast')['add'](_0x2f31d9=>{_0x2f31d9['on']('element:ol',(_0x1798e1,_0x409aaf,_0x1cde9f)=>{const _0x1bd333=_0x409aaf['viewItem'];if(!_0x1bd333['hasClass']('footnotes-list')||!_0x409aaf['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1cde9f['consumable']['consume'](_0x1bd333,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x106b3c,modelCursor:_0x28242c}=_0x1cde9f['convertChildren'](_0x409aaf['viewItem'],_0x409aaf['modelCursor']);_0x409aaf['modelRange']=_0x106b3c,_0x409aaf['modelCursor']=_0x28242c;}),_0x2f31d9['on']('element:hr',(_0x5e8038,_0x1fb3f1,_0x43c15e)=>{const _0x4b7136=_0x1fb3f1['viewItem'];_0x4b7136['hasClass']('footnotes-divider')&&_0x1fb3f1['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x43c15e['consumable']['consume'](_0x4b7136,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4ff30c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x25cd88,{writer:_0x1a7204})=>v(_0x1a7204)}),_0x4ff30c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3df2e5,{writer:_0xfd2ee9})=>{const _0x2e51f0=v(_0xfd2ee9,{'data-footnotes-list-label':t('Footnotes')}),_0x2f356b=_0x1ae3d7(_0x2e51f0,_0xfd2ee9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xfd2ee9['setCustomProperty']('footnotesDefinitions',!0x0,_0x2f356b),_0x2f356b;}});}['_defineDefinitionConverters'](){const {editor:_0x6d10bf}=this,{conversion:_0x6aaf98,locale:_0x25384}=_0x6d10bf,_0x1d5add=_0x6d10bf['config']['get']('footnotes.multiBlock');_0x6aaf98['for']('upcast')['add'](_0x2c9e03=>{_0x2c9e03['on']('element:li',(_0x37ee18,_0x27dd81,_0xe966)=>{const _0x17cdf0=_0x27dd81['viewItem'];if(!_0x17cdf0['hasClass']('footnote-definition')||!_0x17cdf0['getAttribute']('id'))return;const _0xfb494f=_0x17cdf0['parent'];if(!_0xfb494f['is']('element','ol')||!_0xfb494f['hasClass']('footnotes-list'))return;if(!_0xe966['consumable']['test'](_0x17cdf0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x288857=_0xe966['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x17cdf0['getAttribute']('id')});if(!_0xe966['safeInsert'](_0x288857,_0x27dd81['modelCursor']))return;_0xe966['consumable']['consume'](_0x17cdf0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x46b1e4=Array['from'](_0x17cdf0['getChildren']())['find'](_0x1477d9=>_0x1477d9['is']('element')&&_0x1477d9['hasClass']('footnote-content'));for(const _0x40498f of _0x17cdf0['getChildren']())_0x40498f['is']('element')&&(_0xe966['consumable']['consume'](_0x40498f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xe966['consumable']['consume'](_0x40498f,{'name':!0x0,'classes':'footnote-content'}));if(_0x46b1e4){if(_0x1d5add)_0xe966['convertChildren'](_0x46b1e4,_0x288857);else{const _0x8b7947=_0xe966['writer']['createElement']('footnoteInlineContent');_0xe966['writer']['insert'](_0x8b7947,_0x288857),_0xe966['convertChildren'](_0x46b1e4,_0x8b7947);}}_0xe966['updateConversionResult'](_0x288857,_0x27dd81);});}),_0x6aaf98['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1b305b,{writer:_0x55d00b})=>b(_0x1b305b,_0x55d00b,_0x25384,{'dataPipeline':!0x0})}),_0x6aaf98['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x12e371,{writer:_0x23c123})=>b(_0x12e371,_0x23c123,_0x25384)});}['_defineBogusParagraphConverters'](){const {editor:_0x1e1d86}=this,{conversion:_0x53e803}=_0x1e1d86;_0x1e1d86['config']['get']('footnotes.multiBlock')?(_0x53e803['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x53e803['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1e1d86['model']['document'],'change:data',()=>{!function(_0x13e45c,_0x16f42c){const _0x58fd29=_0x13e45c['document']['differ'],_0x58ba2c=new Set();for(const _0x5495c9 of _0x58fd29['getChanges']()){const _0x4ef481='attribute'==_0x5495c9['type']?_0x5495c9['range']['start']['parent']:_0x5495c9['position']['parent'];_0x4ef481['is']('element','footnoteDefinition')&&_0x58ba2c['add'](_0x4ef481);}for(const _0x201d3d of _0x58ba2c['values']()){const _0x33d490=Array['from'](_0x201d3d['getChildren']())['filter'](_0x190f26=>g(_0x190f26,_0x16f42c['mapper']));for(const _0x1438cd of _0x33d490)_0x16f42c['reconvertItem'](_0x1438cd);}}(_0x1e1d86['model'],_0x1e1d86['editing']);})):(_0x53e803['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x53e803['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4e8457,{writer:_0x1b5f4f})=>{const _0x52cf62=_0x1b5f4f['createContainerElement']('span');return _0x1b5f4f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x52cf62),_0x52cf62;}}));}['_defineKeyboardHandlers'](){const {editor:_0x281e2a}=this,{editing:_0x186074,t:t}=_0x281e2a,_0x5b6c3c=_0x281e2a['model']['document']['selection'];_0x281e2a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x281e2a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x186074['view']['document'],'enter',(_0x3af577,_0x4b12d9)=>{const _0x66ba5b=function(_0x3d533f){const _0x4f5363=_0x3d533f['getSelectedElement']();if(_0x4f5363?.['is']('element','footnoteRef'))return _0x4f5363;return null;}(_0x5b6c3c);if(_0x66ba5b){const _0x5e3bbe=_0x66ba5b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5e3bbe),_0x4b12d9['preventDefault'](),_0x3af577['stop']();}},{'context':_0x1354e5});}['_defineClickHandlers'](){const {editor:_0x5f3dad}=this,{editing:_0x1398b4}=_0x5f3dad;_0x5f3dad['editing']['view']['addObserver'](_0x468f33),_0x5f3dad['editing']['view']['addObserver'](_0xa90dc3);let _0x15ed41=!0x1;this['listenTo'](_0x1398b4['view']['document'],'pointerdown',(_0x44464d,_0x5766d8)=>{const {target:_0x263851}=_0x5766d8,_0x12b9d2=_0x1398b4['view']['document']['selection'];_0x15ed41=!!(_0x263851?.['is']('element','a')&&_0x263851['parent']?.['is']('element','sup')&&_0x263851['parent']['hasClass']('footnote'))&&_0x12b9d2['getSelectedElement']()===_0x263851['parent'];},{'priority':'high'}),this['listenTo'](_0x1398b4['view']['document'],'click',(_0x2ff2eb,_0x5183bc)=>{const {target:_0x34aa3c}=_0x5183bc;if(!_0x34aa3c?.['is']('element','a'))return;if(_0x34aa3c['parent']?.['is']('element','sup')&&_0x34aa3c['parent']['hasClass']('footnote')&&!_0x15ed41)return void _0x5183bc['preventDefault']();let _0x39dbdb=_0x34aa3c['getAttribute']('href');if(!_0x39dbdb?.['startsWith']('#'))return;_0x39dbdb=_0x39dbdb['slice'](0x1);let _0x14404c=!0x1;(_0x39dbdb['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x39dbdb['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x39dbdb))&&(_0x14404c=!0x0),_0x14404c&&(_0x5183bc['preventDefault'](),_0x2ff2eb['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x34bed0}={}){return(_0x350971,{writer:_0x553323})=>{if(!p(_0x350971))return null;if(!_0x34bed0)return _0x553323['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3b8764=_0x553323['createContainerElement']('p');return _0x553323['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3b8764),_0x3b8764;};}function p(_0x13887b){const {parent:_0x33a5cf}=_0x13887b;if(!_0x33a5cf?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x33a5cf['childCount'])return!0x1;for(const _0x327f04 of _0x13887b['getAttributeKeys']())if(!_0x327f04['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x327f04)return!0x1;return!0x0;}function g(_0x56775f,_0x1e9e7e){if(!_0x56775f['is']('element','paragraph'))return!0x1;const _0x5b52f5=_0x1e9e7e['toViewElement'](_0x56775f);return!!_0x5b52f5&&p(_0x56775f)!==_0x5b52f5['is']('element','span');}function J(_0x33911f){return _0x1354e5(_0x33911f)&&_0x33911f['is']('containerElement')&&!!_0x33911f['getCustomProperty']('footnotesDefinitions');}function v(_0x4f191b,_0x35c246={}){const _0x5553c5=_0x4f191b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x345304=_0x4f191b['createContainerElement']('ol',{'class':'footnotes-list'},_0x4f191b['createSlot']());return _0x4f191b['createContainerElement']('div',{'class':'footnotes',..._0x35c246},[_0x5553c5,_0x345304]);}function D(_0x52d514,_0xfd962a){const _0x437a4f=_0x52d514['getAttribute']('footnoteId'),_0xe4545d=_0x52d514['getAttribute']('footnoteCounter'),_0x25de88=_0xfd962a['createUIElement']('a',{'href':'#'+_0x437a4f},function(_0x3caed0){const _0x5f59b4=this['toDomElement'](_0x3caed0);return _0x5f59b4['textContent']=_0xe4545d,_0x5f59b4;}),_0x3aed19=_0xfd962a['createContainerElement']('sup',{'id':'ref-'+_0x437a4f,'class':'footnote'},[_0x25de88]);return _0x3aed19['getFillerOffset']=()=>null,_0x3aed19;}function b(_0xfb90c3,_0x4005db,_0x54b052,{dataPipeline:_0x2a4db6}={}){const {t:t}=_0x54b052,_0x42a49c=_0xfb90c3['getAttribute']('footnoteId'),_0x52d40d=_0x4005db['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x42a49c},function(_0x5931ed){const _0x5da1d1=this['toDomElement'](_0x5931ed);return _0x5da1d1['innerText']='^',_0x5da1d1;}),_0x1b85f3=_0x2a4db6?_0x4005db['createContainerElement']('div',{'class':'footnote-content'}):_0xdf9362(_0x4005db['createEditableElement']('div',{'class':'footnote-content'}),_0x4005db,{'label':t('Footnote\x20content.')});return _0x4005db['insert'](_0x4005db['createPositionAt'](_0x1b85f3,0x0),_0x4005db['createSlot']()),_0x4005db['createContainerElement']('li',{'class':'footnote-definition','id':_0x42a49c},[_0x52d40d,_0x1b85f3]);}class e extends _0x56f755{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xdebdec];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x45881b}=this,{plugins:_0x4c799c,model:_0x2483e5}=_0x45881b,_0x193610=_0x4c799c['get'](_0xdebdec),_0x53c934=_0x4c799c['get'](f);this['listenTo'](_0x193610,'outputTransformation',(_0x282ecc,_0x4b6d02)=>{const _0x500fef=c(_0x2483e5['createRangeIn'](_0x4b6d02['content']));if(!_0x500fef['length'])return;const _0x45906b=_0x53c934['getFootnotes'](),_0x50ca01=_0x500fef['reduce']((_0x336211,_0x4506a2)=>{const _0x45adea=_0x45906b['find'](_0x5b1a3c=>_0x5b1a3c['id']===_0x4506a2);if(_0x45adea){const _0x15e3fe=_0x45881b['data']['toView'](_0x45adea['definition'],{'isClipboardPipeline':!0x0}),_0x2c543a=_0x45881b['data']['htmlProcessor']['toData'](_0x15e3fe);_0x336211[_0x45adea['id']]=_0x2c543a;}return _0x336211;},Object['create'](null));_0x4b6d02['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x50ca01));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3712cf}=this,{model:_0x2fdf7c,plugins:_0x472e21}=_0x3712cf,{view:_0x5b2e83}=_0x3712cf['editing'],_0x1040a2=_0x472e21['get'](_0xdebdec),_0x43c700=_0x472e21['get'](f),_0x5602a0=_0x3712cf['config']['get']('footnotes.multiBlock');let _0x460c77=null;this['listenTo'](_0x5b2e83['document'],'clipboardInput',(_0x55f935,_0x59f23c)=>{const _0x2d4e02=_0x59f23c['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x460c77=_0x2d4e02?JSON['parse'](_0x2d4e02):null;}),this['listenTo'](_0x1040a2,'contentInsertion',(_0x374cf5,_0x585380)=>{const _0x475105=_0x585380['sourceEditorId']===this['editor']['id'];_0x475105&&'drop'===_0x585380['method']||_0x2fdf7c['change'](_0x56a140=>{let _0x3cdbd4=_0x43c700['getFootnotesDefinitionsObjectElement']();const _0x15dfbd=!!_0x3cdbd4&&Array['from'](_0x2fdf7c['document']['selection']['getSelectedBlocks']())['includes'](_0x3cdbd4);if((_0x3cdbd4&&!_0x15dfbd||!_0x3cdbd4&&!_0x460c77)&&function(_0xceda1a,_0x233b93){const _0x416970=[];for(const {item:_0x1abcbd}of _0xceda1a['createRangeIn'](_0x233b93))_0x1abcbd['is']('element','footnotesDefinitions')&&_0x416970['push'](_0x1abcbd);for(const _0x55eadc of _0x416970)_0xceda1a['remove'](_0x55eadc);}(_0x56a140,_0x585380['content']),!_0x460c77)return;const {selection:_0x444e70}=_0x2fdf7c['document'],_0x42f9c4=_0x444e70['getFirstRange']()['root'];_0x3cdbd4&&!_0x15dfbd||(_0x3cdbd4=function(_0x2eec28,_0x479f78){for(const {item:_0xbd7aa6}of _0x2eec28['createRangeIn'](_0x479f78))if(_0xbd7aa6['is']('element','footnotesDefinitions'))return _0xbd7aa6;return null;}(_0x56a140,_0x585380['content']),_0x3cdbd4||=_0x43c700['_insertEmptyFootnotesDefinitionsContainer'](_0x56a140,_0x42f9c4));const _0x4cf058=Array['from'](_0x444e70['getRanges']())['flatMap'](c),_0x5c121c=function(_0x276a87,_0x5e6398,_0x479024){const _0xf42e3d=Object['create'](null);for(const {item:_0x4d6c80}of _0x276a87['createRangeIn'](_0x5e6398))if(_0x4d6c80['is']('element','footnoteRef')){const _0x4bfe56=_0x4d6c80['getAttribute']('footnoteId');if(!_0x479024(_0x4bfe56))continue;_0xf42e3d[_0x4bfe56]||(_0xf42e3d[_0x4bfe56]=_0x9f4eff()),_0x276a87['setAttribute']('footnoteId',_0xf42e3d[_0x4bfe56],_0x4d6c80);}return _0xf42e3d;}(_0x56a140,_0x585380['content'],_0x22f929=>{if(!_0x475105)return!0x0;return!!_0x43c700['getFootnote'](_0x22f929)&&!_0x4cf058['includes'](_0x22f929);});for(const [_0x280caa,_0x3572cb]of Object['entries'](_0x460c77)){const _0x45d996=_0x5c121c[_0x280caa]||_0x280caa,_0x4520e1=_0x56a140['createElement']('footnoteDefinition',{'footnoteId':_0x45d996}),_0x565f6f=_0x3712cf['data']['htmlProcessor']['toView'](_0x3572cb);let _0x4f2619;if(_0x5602a0)_0x4f2619=_0x3712cf['data']['toModel'](_0x565f6f,_0x4520e1);else{_0x4f2619=_0x56a140['createElement']('footnoteInlineContent');const _0x26133b=_0x3712cf['data']['toModel'](_0x565f6f,_0x4f2619);_0x56a140['insert'](_0x26133b,_0x4f2619);}_0x56a140['append'](_0x4f2619,_0x4520e1),_0x56a140['insert'](_0x4520e1,_0x3cdbd4,'end');}_0x460c77=null;});});}}function c(_0x34aea7){const _0x1a7d8a=new Set();for(const {item:_0x262fda}of _0x34aea7)_0x262fda['is']('element','footnoteRef')&&_0x1a7d8a['add'](_0x262fda['getAttribute']('footnoteId'));return Array['from'](_0x1a7d8a);}class i extends _0x56f755{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x47ad77}=this,{componentFactory:_0x5f1e90}=_0x47ad77['ui'];_0x5f1e90['add']('insertFootnote',x(_0x47ad77,_0x297bbb)),_0x5f1e90['add']('menuBar:insertFootnote',x(_0x47ad77,_0x115d65)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x23ec6e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17b144;for(const _0x8fcc6e in _0x23ec6e){const _0x22779c=_0x8fcc6e,_0x3045f0=_0x23ec6e[_0x22779c];if('footnotesLicenseKeyValid'==_0x3045f0||'footnotesLicenseKeyInvalid'==_0x3045f0||'footnotesLicenseKeyExpired'==_0x3045f0||'footnotesLicenseKeyDomainLimit'==_0x3045f0||'footnotesLicenseKeyNotAllowed'==_0x3045f0||'footnotesLicenseKeyEvaluationLimit'==_0x3045f0||'footnotesLicenseKeyTrialLimit'==_0x3045f0||'footnotesLicenseKeyUsageLimit'==_0x3045f0){delete _0x23ec6e[_0x22779c],_0x17b144=_0x3045f0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x17b144&&_0x23ec6e['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x17b144&&_0x23ec6e['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x17b144&&_0x23ec6e['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x17b144&&_0x23ec6e['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x17b144&&_0x23ec6e['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x17b144&&_0x23ec6e['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x17b144&&_0x23ec6e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x183725,_0x48d651){const _0x236cfd=_0x183725['commands']['get']('insertFootnote');return _0x250b7a=>{const {t:t}=_0x250b7a,_0x5dac3d=new _0x48d651(_0x250b7a),_0x501c16=_0x5dac3d instanceof _0x115d65;return _0x5dac3d['bind']('isEnabled')['to'](_0x236cfd,'isEnabled'),_0x5dac3d['set']({'label':t(_0x501c16?'Footnote':'Insert\x20footnote'),'icon':_0x37fcf8,'tooltip':!0x0}),_0x5dac3d['on']('execute',()=>{_0x236cfd['execute'](),_0x183725['editing']['view']['focus']();}),_0x5dac3d;};}class lt extends _0x56f755{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5cbedc{['refresh'](){const {editor:_0x30b05c}=this,_0x176d25=_0x30b05c['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x176d25,this['value']=_0x176d25?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xf09b11}){const {editor:_0xdd4166}=this,_0x115fb2=_0xdd4166['plugins']['get'](f),_0x3ea372=_0x115fb2['getFootnotesDefinitionsObjectElement']();_0x3ea372&&Q['includes'](_0xf09b11)&&_0xdd4166['model']['change'](_0x511620=>{_0x511620['setAttribute']('footnotesListStyle',_0xf09b11,_0x3ea372),_0x115fb2['_updateFootnotesCounters'](_0x511620);});}}class C extends _0x5cbedc{['refresh'](){const {editor:_0x5c5b57}=this,_0x1f0637=_0x5c5b57['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1f0637,this['value']=_0x1f0637?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x145ba5}){const {editor:_0x3d8b74}=this,_0x34388e=_0x3d8b74['plugins']['get'](f),_0x2cb12c=_0x34388e['getFootnotesDefinitionsObjectElement']();_0x2cb12c&&Number['isInteger'](_0x145ba5)&&_0x3d8b74['model']['change'](_0x16533a=>{_0x16533a['setAttribute']('footnotesListStart',_0x145ba5,_0x2cb12c),_0x34388e['_updateFootnotesCounters'](_0x16533a);});}}class P extends _0x56f755{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2dfbbe}=this;_0x2dfbbe['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2dfbbe['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2dfbbe['commands']['add']('footnotesStyle',new S(_0x2dfbbe)),_0x2dfbbe['commands']['add']('footnotesStart',new C(_0x2dfbbe)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3dee27}=this,{schema:_0x4163a6}=_0x3dee27['model'];_0x4163a6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x55a332}=this,{conversion:_0x2e37a8,model:_0x207ea4}=_0x55a332,{schema:_0x69ce70}=_0x207ea4;_0x2e37a8['for']('upcast')['add'](_0x43e159=>{_0x43e159['on']('element:ol',(_0x267af5,_0x56db1e,_0x357704)=>{const _0x41cdc2=_0x56db1e['viewItem'],_0x4f7097=_0x56db1e['modelCursor']?.['parent'];_0x41cdc2['hasClass']('footnotes-list')&&_0x4f7097?.['is']('element','footnotesDefinitions')&&(function(_0x437f80,_0x228476,_0x55506f,_0x358c7e){if(!_0x358c7e['checkAttribute'](_0x228476,'footnotesListStart'))return;let _0x253649=0x1;const _0x4617f1=_0x55506f['consumable']['consume'](_0x437f80,{'attributes':'start'});if(_0x4617f1){const _0x966c7b=Number['parseInt'](_0x437f80['getAttribute']('start'),0xa);Number['isNaN'](_0x966c7b)||(_0x253649=_0x966c7b);}!_0x4617f1&&_0x228476['hasAttribute']('footnotesListStart')||_0x55506f['writer']['setAttribute']('footnotesListStart',_0x253649,_0x228476);}(_0x41cdc2,_0x4f7097,_0x357704,_0x69ce70),function(_0x5f011a,_0x57c048,_0x2a53b1,_0x5c1395){if(!_0x5c1395['checkAttribute'](_0x57c048,'footnotesListStyle'))return;let _0x1520dd='decimal',_0x3378fe=!0x1;if(_0x2a53b1['consumable']['consume'](_0x5f011a,{'attributes':'type'})){const _0x2ca469={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5f011a['getAttribute']('type')];_0x2ca469&&(_0x1520dd=_0x2ca469),_0x3378fe=!0x0;}_0x2a53b1['consumable']['consume'](_0x5f011a,{'styles':'list-style-type'})&&(_0x1520dd=function(_0x24a65f){switch(_0x24a65f){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x24a65f;}}(_0x5f011a['getStyle']('list-style-type')),_0x3378fe=!0x0),!_0x3378fe&&_0x57c048['hasAttribute']('footnotesListStyle')||_0x2a53b1['writer']['setAttribute']('footnotesListStyle',_0x1520dd,_0x57c048);}(_0x41cdc2,_0x4f7097,_0x357704,_0x69ce70));});}),_0x2e37a8['for']('downcast')['add'](_0xb4d7db=>{_0xb4d7db['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xd23465,_0x5deebd,_0x3006a6)=>{if(!_0x3006a6['consumable']['consume'](_0x5deebd['item'],_0xd23465['name']))return;const _0x82f65a=M(_0x5deebd['item'],_0x3006a6['mapper']),{attributeNewValue:_0x448546}=_0x5deebd;null==_0x448546||0x1===_0x448546?_0x3006a6['writer']['removeAttribute']('start',_0x82f65a):_0x3006a6['writer']['setAttribute']('start',String(_0x448546),_0x82f65a);}),_0xb4d7db['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xf140ba,_0x55073f,_0x236176)=>{if(!_0x236176['consumable']['consume'](_0x55073f['item'],_0xf140ba['name']))return;const _0x508142=M(_0x55073f['item'],_0x236176['mapper']),{attributeNewValue:_0x396b4b}=_0x55073f;_0x396b4b&&'decimal'!==_0x396b4b?_0x236176['writer']['setStyle']('list-style-type',_0x396b4b,_0x508142):_0x236176['writer']['removeStyle']('list-style-type',_0x508142);});});}['_definePostfixer'](){const {editor:_0x4e3c07}=this,{model:_0xfa3973}=_0x4e3c07,_0x4a2dca=_0x4e3c07['plugins']['get'](f),_0x3b73b6=this['_getDefaultListStyle'](),_0x3e6bd1=this['_getDefaultStartIndex']();_0xfa3973['document']['registerPostFixer'](_0x1685f1=>{const _0x43f9cf=_0xfa3973['document']['differ']['getChanges']();let _0x2c335b=!0x1;for(const _0x3faee3 of _0x43f9cf){if('insert'!==_0x3faee3['type']||'$text'===_0x3faee3['name'])continue;const _0x3d6414=_0xfa3973['createRangeOn'](_0x3faee3['position']['nodeAfter']);for(const _0x125041 of _0x3d6414['getItems']())_0x125041['is']('element','footnotesDefinitions')&&(!_0x125041['hasAttribute']('footnotesListStart')&&_0xfa3973['schema']['checkAttribute'](_0x125041,'footnotesListStart')&&(_0x1685f1['setAttribute']('footnotesListStart',_0x3e6bd1,_0x125041),_0x2c335b=!0x0),!_0x125041['hasAttribute']('footnotesListStyle')&&_0xfa3973['schema']['checkAttribute'](_0x125041,'footnotesListStyle')&&(_0x1685f1['setAttribute']('footnotesListStyle',_0x3b73b6,_0x125041),_0x2c335b=!0x0));}return _0x2c335b&&_0x4a2dca['_updateFootnotesCounters'](_0x1685f1),_0x2c335b;});}['_defineFormatter'](){const {editor:_0x403657}=this;_0x403657['plugins']['get'](f)['setFootnoteFormatter'](_0x1a896b=>this['_formatFootnoteListValue'](_0x1a896b));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xbf7c31,value:_0x4926c0,digits:_0x4af70d}){const _0x49c301=_0xbf7c31['getAttribute']('footnotesListStyle'),_0x2dc89f=_0xbf7c31['getAttribute']('footnotesListStart'),_0x5c258a=Math['floor'](_0x4926c0)+(_0x2dc89f??0x1)-0x1;switch(_0x49c301){case'decimal-leading-zero':return function(_0x4e7e29,_0x87aa25){return String(_0x4e7e29)['padStart'](_0x87aa25,'0');}(_0x5c258a,Math['max'](0x2,_0x4af70d));case'lower-alpha':case'lower-latin':return N(_0x5c258a,!0x1);case'upper-alpha':case'upper-latin':return N(_0x5c258a,!0x0);case'lower-roman':return X(_0x5c258a,!0x1);case'upper-roman':return X(_0x5c258a,!0x0);default:return String(_0x5c258a);}}}function M(_0x4764b1,_0x38ca8f){const _0x5839e5=_0x38ca8f['toViewElement'](_0x4764b1);return Array['from'](_0x5839e5['getChildren']())['find'](_0x39dbf8=>_0x39dbf8['is']('element','ol')&&_0x39dbf8['hasClass']('footnotes-list'));}function N(_0x2d321f,_0x4d2e34){let _0x8eb5d6='',_0x3a1319=_0x2d321f;for(;_0x3a1319>0x0;){const _0x15e8e8=(_0x3a1319-0x1)%0x1a;_0x8eb5d6=String['fromCharCode'](0x61+_0x15e8e8)+_0x8eb5d6,_0x3a1319=Math['floor']((_0x3a1319-0x1)/0x1a);}return _0x4d2e34?_0x8eb5d6['toUpperCase']():_0x8eb5d6;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x3840a8,_0x362dde){let _0x4a1033='',_0x1d79d9=_0x3840a8;for(const {value:_0x57aeeb,numeral:_0x1c0ea0}of V)for(;_0x1d79d9>=_0x57aeeb;)_0x4a1033+=_0x1c0ea0,_0x1d79d9-=_0x57aeeb;return _0x362dde?_0x4a1033:_0x4a1033['toLowerCase']();}class H extends _0x2b1c96{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x97749b();['focusCycler'];constructor(_0x2ed959,{styleButtonViews:_0x52f795,styleGridAriaLabel:_0x207ea2}){super(_0x2ed959),(this['focusCycler']=new _0x16e0b0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x52f795,_0x207ea2),[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 _0x5ea8eb of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5ea8eb['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x6ca15a=_0x4f2cef=>_0x4f2cef['stopPropagation']();this['keystrokes']['set']('arrowright',_0x6ca15a),this['keystrokes']['set']('arrowleft',_0x6ca15a),this['keystrokes']['set']('arrowup',_0x6ca15a),this['keystrokes']['set']('arrowdown',_0x6ca15a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x251003,_0x4a9c38){const _0x54a69b=new _0x2b1c96(this['locale']);return _0x54a69b['children']=_0x54a69b['createCollection'](),_0x54a69b['children']['addMany'](_0x251003),_0x54a69b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4a9c38,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x54a69b['children']}),_0x54a69b['children']['delegate']('execute')['to'](this),_0x54a69b['focus']=function(){for(const _0x24ac51 of this['children'])if(_0x24ac51 instanceof _0x297bbb&&_0x24ac51['isOn'])return void _0x24ac51['focus']();this['children']['first']['focus']();},_0x54a69b['focusTracker']=new ot(),_0x54a69b['keystrokes']=new rt(),_0x54a69b['render'](),_0x54a69b['keystrokes']['listenTo'](_0x54a69b['element']),this['children']['add'](_0x54a69b),_0x54a69b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3efe1a=this['_createStartIndexPropertyView'](),_0x1141bd=[_0x3efe1a],_0x2b8a15=new st(this['locale'],_0x1141bd);return _0x2b8a15['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2b8a15['buttonView']['bind']('isEnabled')['toMany'](_0x1141bd,'isEnabled',(..._0x488520)=>_0x488520['some'](_0x58a427=>_0x58a427)),_0x2b8a15['buttonView']['on']('change:isEnabled',(_0x8dce54,_0x441ef1,_0xd0e987)=>{_0xd0e987||(_0x2b8a15['isCollapsed']=!0x0);}),this['children']['add'](_0x2b8a15),[_0x3efe1a,_0x2b8a15];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5b9845=new it(this['locale'],et);return _0x5b9845['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5b9845['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5b9845['fieldView']['on']('input',()=>{const _0xfc8f6b=_0x5b9845['fieldView']['element'],_0x42eaa8=_0xfc8f6b['valueAsNumber'];Number['isNaN'](_0x42eaa8)?_0x5b9845['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0xfc8f6b['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x42eaa8}):_0x5b9845['errorText']=t(_0x42eaa8<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5b9845;}}class j extends _0x56f755{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5e54d2,_0x26f573];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x169e6b}=this,{componentFactory:_0x14e7f6}=_0x169e6b['ui'];_0x169e6b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x14e7f6['add']('footnotesStyle',function(_0x559f5b){return _0x472930=>{const {t:t}=_0x472930,_0x5d7e0d=_0x559f5b['commands']['get']('footnotesStyle'),_0x138433=_0x1c24fb(_0x472930),{buttonView:_0x1f4c16}=_0x138433;return _0x138433['class']='ck-footnotes-styles-dropdown',_0x138433['bind']('isEnabled')['to'](_0x5d7e0d,'isEnabled'),_0x1f4c16['set']({'label':t('Footnotes\x20style'),'icon':_0x37fcf8,'tooltip':!0x0}),_0x138433['once']('change:isOpen',()=>{const _0x54e337=function({editor:_0x474cff,dropdownView:_0x2b4aa2}){const {t:t}=_0x474cff['locale'],_0x562683=t('Footnotes\x20definitions\x20styles'),_0x483a0a=function(_0x539a72){const t=_0x539a72['locale']['t'],_0x3c784e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x55286d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xba6b5f},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x43aafc},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2cfe7b},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x59e6dd},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x30c252}];return _0x3c784e['map'](function(_0x521bc6){const _0x4cf362=_0x521bc6['locale'];return({label:_0x4d21b6,icon:_0x35b450,tooltip:_0xf1bebb,style:_0x2ab072})=>{const _0x12af1c=_0x521bc6['commands']['get']('footnotesStyle'),_0x5f11d2=new _0x297bbb(_0x4cf362);return _0x5f11d2['set']({'label':_0x4d21b6,'icon':_0x35b450,'tooltip':_0xf1bebb}),_0x5f11d2['bind']('isOn')['to'](_0x12af1c,'value',_0x56089f=>_0x56089f===_0x2ab072),_0x5f11d2['bind']('isEnabled')['to'](_0x12af1c,'isEnabled'),_0x5f11d2['on']('execute',()=>{_0x521bc6['execute']('footnotesStyle',{'value':_0x2ab072}),_0x521bc6['editing']['view']['focus']();}),_0x5f11d2;};}(_0x539a72));}(_0x474cff),_0x2dc340=new H(_0x474cff['locale'],{'styleGridAriaLabel':_0x562683,'styleButtonViews':_0x483a0a}),_0x5b60cc=_0x474cff['commands']['get']('footnotesStart');return _0x2dc340['startIndexFieldView']['bind']('isEnabled')['to'](_0x5b60cc),_0x2dc340['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5b60cc),_0x2dc340['on']('footnotesListStart',(_0x429836,_0x5452c1)=>{_0x474cff['execute']('footnotesStart',{'value':_0x5452c1['startIndex']});}),_0x2dc340['delegate']('execute')['to'](_0x2b4aa2),_0x2dc340;}({'editor':_0x559f5b,'dropdownView':_0x138433});_0x138433['panelView']['children']['add'](_0x54e337);}),_0x138433;};}(_0x169e6b));}['afterInit'](){const {editor:_0x3ab95c}=this,{t:t}=_0x3ab95c['locale'],_0x22797e=_0x3ab95c['plugins']['get'](_0x26f573),{defaultPositions:_0x8c54ba}=_0x4acb7f;_0x22797e['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3ab95c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x312beb=>{let _0x7a2f8=_0x312beb['getFirstPosition']()?.['parent'];return _0x7a2f8?.['is']('$text')&&(_0x7a2f8=_0x7a2f8['parent']),_0x7a2f8?.['is']('element')?_0x7a2f8['findAncestor'](J):null;},'positions':[_0x8c54ba['southArrowNorth'],_0x8c54ba['southArrowNorthMiddleWest'],_0x8c54ba['southArrowNorthMiddleEast'],_0x8c54ba['southArrowNorthWest'],_0x8c54ba['southArrowNorthEast'],_0x8c54ba['northArrowSouth'],_0x8c54ba['northArrowSouthMiddleWest'],_0x8c54ba['northArrowSouthMiddleEast'],_0x8c54ba['northArrowSouthWest'],_0x8c54ba['northArrowSouthEast'],_0x8c54ba['viewportStickyNorth']]});}}class ft extends _0x56f755{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
23
+ import{Plugin as _0x16e913,Command as _0x46f982}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4291b2,isWidget as _0x4dff1c,toWidgetEditable as _0x55569e,WidgetToolbarRepository as _0x2ace2d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5e02bd,logWarning as _0x4c506d,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x19f1a4,ClickObserver as _0x414ec7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1f2f22}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5f2a03,ButtonView as _0xdec2b2,View as _0xdc60b2,ViewCollection as _0x5dbd42,FocusCycler as _0x32fe1b,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x391c59,BalloonPanelView as _0x53c9f7,createDropdown as _0x1c99f7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x14184b,IconListStyleDecimal as _0x3b4c67,IconListStyleDecimalLeadingZero as _0x109565,IconListStyleLowerRoman as _0x63078d,IconListStyleUpperRoman as _0x492eea,IconListStyleLowerLatin as _0x4f0672,IconListStyleUpperLatin as _0x3adbd4}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x10bd36,_0x2a4f3a){this['_model']=_0x10bd36,this['_elementName']=_0x2a4f3a['elementName'],this['_getElementKey']=_0x2a4f3a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1e63a0){const _0x1fc72e=new Set(),_0x4bb176=new Map();for(const _0x3c3079 of _0x1e63a0){if('insert'===_0x3c3079['type']&&'$text'!==_0x3c3079['name']&&_0x3c3079['position']['nodeAfter']){const _0x2f21d8=this['_model']['createRangeOn'](_0x3c3079['position']['nodeAfter']);for(const _0x146cd6 of _0x2f21d8['getItems']()){if(!_0x146cd6['is']('element',this['_elementName']))continue;const _0x67dfa8=this['_getElementKey'](_0x146cd6);_0x4bb176['has'](_0x67dfa8)||_0x4bb176['set'](_0x67dfa8,[]),_0x4bb176['get'](_0x67dfa8)['push'](_0x146cd6);}}if('remove'===_0x3c3079['type']&&_0x3c3079['name']===this['_elementName']){const _0x2e7e43=this['_getElementKey']({'getAttribute':_0x29c799=>_0x3c3079['attributes']['get'](_0x29c799)});_0x1fc72e['add'](_0x2e7e43);}}for(const [_0x5562de,_0x16567f]of this['_trackedElements'])'$graveyard'===_0x16567f['root']['rootName']&&_0x1fc72e['add'](_0x5562de);for(const _0x530867 of _0x1fc72e)this['_trackedElements']['delete'](_0x530867);for(const [_0x4f3eeb,_0xe9e1f1]of _0x4bb176)this['_trackedElements']['set'](_0x4f3eeb,_0xe9e1f1[_0xe9e1f1['length']-0x1]);const _0x613e2e=new Set();for(const [_0xedf777,_0x220082]of _0x4bb176)_0x1fc72e['has'](_0xedf777)&&(_0x613e2e['add'](_0x220082[0x0]),_0x220082['length']>0x1?_0x4bb176['set'](_0xedf777,_0x220082['slice'](0x1)):_0x4bb176['delete'](_0xedf777),_0x1fc72e['delete'](_0xedf777));return{'removed':Array['from'](_0x1fc72e),'inserted':Array['from'](_0x4bb176['values']())['flat'](),'moved':Array['from'](_0x613e2e)};}}class f extends _0x16e913{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a9ef8){super(_0x2a9ef8),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x52c5ef=>_0x52c5ef['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x57d7f9=>_0x57d7f9['getAttribute']('footnoteId')});}['init'](){const {editor:_0x475c98}=this,{model:_0x2d1f7b,data:_0x4f7bce}=_0x475c98;_0x2d1f7b['document']['registerPostFixer'](_0x36f58a=>{const _0xac2acf=_0x2d1f7b['document']['differ']['getChanges']();let _0x534c05=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x36f58a,_0xac2acf)&&(_0x534c05=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x36f58a,_0xac2acf)&&(_0x534c05=!0x0),this['_handleFootnoteReferencesChanges'](_0x36f58a,_0xac2acf)&&(_0x534c05=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x36f58a)&&(_0x534c05=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x36f58a)&&(_0x534c05=!0x0),this['_sortFootnoteDefinitions'](_0x36f58a)&&(_0x534c05=!0x0),_0x534c05;}),this['listenTo'](_0x2d1f7b['document'],'change:data',()=>{_0x2d1f7b['enqueueChange']({'isUndoable':!0x1},_0x1b35bc=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1b35bc);});},{'priority':'low'}),this['listenTo'](_0x4f7bce,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x167da5){return this['_footnotes']['find'](_0x154658=>_0x154658['id']===_0x167da5)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x8acc4){this['_footnoteFormatter']=_0x8acc4;}['_updateFootnotesCounters'](_0x4186b9,_0x45703d=0x0){let _0x19ab3d=!0x1;for(let _0x2eb6e1=_0x45703d;_0x2eb6e1<this['_footnotes']['length'];_0x2eb6e1++)this['_updateFootnoteRefCounter'](_0x4186b9,_0x2eb6e1)&&(_0x19ab3d=!0x0);return _0x19ab3d;}['_insertEmptyFootnotesDefinitionsContainer'](_0xf99902,_0x5e7cac){const _0x4cc09d=_0xf99902['createElement']('footnotesDefinitions',{});return _0xf99902['append'](_0x4cc09d,_0x5e7cac),this['_footnotesDefinitions']=_0x4cc09d,_0x4cc09d;}['_ensureFootnotesDefinitionsContainerExists'](_0x5d6c58){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x106861=this['_footnotes'][0x0]['reference']['root'],_0x4407f6=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5d6c58,_0x106861);for(const _0x1c4ff5 of this['_footnotes'])_0x1c4ff5['definition']['parent']||_0x5d6c58['insert'](_0x1c4ff5['definition'],_0x4407f6,'end');this['_updateFootnotesCounters'](_0x5d6c58);}['_handleFootnotesDefinitionsObjectChanges'](_0x16a36e,_0x1d343f){let _0x44d93a=!0x1;const {inserted:_0x497ecf,removed:_0x3f99ff,moved:_0x517355}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1d343f);if(_0x517355['length']&&(this['_footnotesDefinitions']=_0x517355[0x0]),_0x497ecf['length']){if(_0x497ecf['length']>0x1||this['_footnotesDefinitions']&&_0x497ecf['some'](_0x224188=>_0x224188!==this['_footnotesDefinitions'])){const _0x17393f=_0x16a36e['createElement']('footnotesDefinitions',{}),_0x321fa4=[];this['_footnotesDefinitions']&&_0x321fa4['push'](this['_footnotesDefinitions']),_0x321fa4['push'](..._0x497ecf),_0x16a36e['insert'](_0x17393f,_0x321fa4[0x0],'before');for(const _0x199f8d of _0x321fa4)_0x16a36e['move'](_0x16a36e['createRangeIn'](_0x199f8d),_0x16a36e['createPositionAt'](_0x17393f,'end')),_0x16a36e['remove'](_0x199f8d);this['_footnotesDefinitions']=_0x17393f,this['_updateFootnotesCounters'](_0x16a36e),_0x44d93a=!0x0;}else this['_footnotesDefinitions']=_0x497ecf[0x0];}if(_0x3f99ff['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x58adef of this['_footnotes'])_0x16a36e['remove'](_0x58adef['reference']),_0x44d93a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x44d93a;}['_handleFootnoteDefinitionsChanges'](_0xb72195,_0x49bd2c){let _0x5387e7=!0x1;const _0x51acbb=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x92c418,moved:_0x232447}=this['_footnoteDefsTracker']['getChanges'](_0x49bd2c);for(const _0x494b17 of[..._0x232447,..._0x92c418]){const _0x42d74e=_0x494b17['getAttribute']('footnoteId'),_0x400603=this['getFootnote'](_0x42d74e);_0x400603&&(_0x400603['definition']=_0x494b17),_(_0xb72195,_0x51acbb,_0x494b17)&&(_0x5387e7=!0x0);}return _0x5387e7;}['_handleFootnoteReferencesChanges'](_0x2df71b,_0x35861b){let _0x501121=!0x1;const {removed:_0x654f97,inserted:_0x5cd9f5,moved:_0x2e55b7}=this['_footnoteRefsTracker']['getChanges'](_0x35861b);for(const _0x5b6a39 of _0x654f97)this['_handleRemoveFootnoteReferenceById'](_0x2df71b,_0x5b6a39)&&(_0x501121=!0x0);for(const _0xce5d58 of _0x5cd9f5)this['_handleInsertedFootnoteReference'](_0x2df71b,_0xce5d58)&&(_0x501121=!0x0);for(const _0x2622b4 of _0x2e55b7)this['_handleMovedFootnoteReference'](_0x2df71b,_0x2622b4)&&(_0x501121=!0x0);return _0x501121;}['_handleFootnotesDefinitionsObjectSync'](_0x5a1d79){if(!this['_footnotesDefinitions'])return!0x1;let _0xc695e0=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x400912=[];for(const _0x24762f of this['_footnotesDefinitions']['getChildren']()){const _0x411de0=_0x24762f['getAttribute']('footnoteId');this['getFootnote'](_0x411de0)||(_0x400912['unshift'](_0x24762f),_0xc695e0=!0x0);}for(const _0x439794 of _0x400912)_0x5a1d79['remove'](_0x439794);}const _0x446b4a=new Set(),_0x49d709=[];for(const _0x5d6992 of this['_footnotesDefinitions']['getChildren']()){const _0x1b51d9=_0x5d6992['getAttribute']('footnoteId');_0x446b4a['has'](_0x1b51d9)?(_0x49d709['unshift'](_0x5d6992),_0xc695e0=!0x0):_0x446b4a['add'](_0x1b51d9);}for(const _0x54e91e of _0x49d709)_0x5a1d79['remove'](_0x54e91e);return this['_footnotesDefinitions']['childCount']||(_0x5a1d79['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xc695e0=!0x0),_0xc695e0;}['_handleInsertedFootnoteReference'](_0x23eb6a,_0x1fd81e){if(this['_footnotes']['find'](_0xccd48a=>_0xccd48a['reference']===_0x1fd81e))return!0x1;let _0x4cbbb9=!0x1;const _0x13ae90=_0x1fd81e['getAttribute']('footnoteId'),_0x45237d=this['_footnotes']['findIndex'](_0x2724ad=>_0x2724ad['id']===_0x13ae90);-0x1!==_0x45237d&&(_0x23eb6a['remove'](this['_footnotes'][_0x45237d]['reference']),this['_footnotes']['splice'](_0x45237d,0x1),_0x4cbbb9=!0x0);let _0x8690b=this['_footnotesDefinitions']?function(_0x351070,_0x5ccf35){for(const _0x3440b1 of _0x351070['getChildren']())if(_0x3440b1['getAttribute']('footnoteId')===_0x5ccf35)return _0x3440b1;return null;}(this['_footnotesDefinitions'],_0x13ae90):null;_0x8690b||(_0x8690b=_0x23eb6a['createElement']('footnoteDefinition',{'footnoteId':_0x13ae90}),this['_footnotesDefinitions']&&(_0x23eb6a['insert'](_0x8690b,this['_footnotesDefinitions'],'end'),_0x4cbbb9=!0x0));const _0x223b7d={'id':_0x13ae90,'reference':_0x1fd81e,'definition':_0x8690b},_0x18180d=I(this['editor']['model'],this['_footnotes'],_0x1fd81e);this['_footnotes']['splice'](_0x18180d,0x0,_0x223b7d);let _0x341724=_0x18180d;return-0x1!==_0x45237d&&(_0x341724=Math['min'](_0x18180d,_0x45237d)),this['_updateFootnotesCounters'](_0x23eb6a,_0x341724)&&(_0x4cbbb9=!0x0),_0x4cbbb9;}['_handleRemoveFootnoteReferenceById'](_0x30d6ab,_0x2f442e){const _0x450626=this['_footnotes']['findIndex'](_0x3058ec=>_0x3058ec['id']===_0x2f442e);if(-0x1===_0x450626)return!0x1;let _0x537331=!0x1;const _0x3943d0=this['_footnotes'][_0x450626];return'$graveyard'!==_0x3943d0['definition']['root']['rootName']&&(_0x30d6ab['remove'](_0x3943d0['definition']),_0x537331=!0x0),this['_footnotes']['splice'](_0x450626,0x1),this['_updateFootnotesCounters'](_0x30d6ab,_0x450626)&&(_0x537331=!0x0),_0x537331;}['_handleMovedFootnoteReference'](_0x5a0ff0,_0x29093e){const _0x3f33ed=_0x29093e['getAttribute']('footnoteId'),_0x1716fd=this['_footnotes']['findIndex'](_0x571ce7=>_0x571ce7['id']===_0x3f33ed),_0x2454b0=this['_footnotes'][_0x1716fd];let _0x3cf7ff=!0x1;_0x2454b0['reference']=_0x29093e,this['_footnotes']['splice'](_0x1716fd,0x1);const _0x4de948=I(this['editor']['model'],this['_footnotes'],_0x29093e);return this['_footnotes']['splice'](_0x4de948,0x0,_0x2454b0),this['_updateFootnotesCounters'](_0x5a0ff0,Math['min'](_0x1716fd,_0x4de948))&&(_0x3cf7ff=!0x0),_0x3cf7ff;}['_updateFootnoteRefCounter'](_0x5b06c0,_0x3d4c69){if(!this['_footnotesDefinitions'])return!0x1;const _0x36c3e2=this['_footnotes'][_0x3d4c69];let _0xe62714;return _0xe62714=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x36c3e2,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3d4c69+0x1}):String(_0x3d4c69+0x1),_0x36c3e2['reference']['getAttribute']('footnoteCounter')!=_0xe62714&&(_0x5b06c0['setAttribute']('footnoteCounter',_0xe62714,_0x36c3e2['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x1fdfde){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5a18d9,_0x5c179f){if(_0x5a18d9['length']!==_0x5c179f['length'])return!0x1;for(let _0x26e16e=0x0;_0x26e16e<_0x5a18d9['length'];_0x26e16e++)if(_0x5a18d9[_0x26e16e]!==_0x5c179f[_0x26e16e])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x579d2b=>_0x579d2b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5707df=>_0x5707df['getAttribute']('footnoteId'))))return!0x1;let _0x149b5c=!0x1;for(let _0x53e7b6=0x0;_0x53e7b6<this['_footnotes']['length'];_0x53e7b6++){const _0x16367b=this['_footnotes'][_0x53e7b6],_0x4305e5=_0x1fdfde['createPositionBefore'](_0x16367b['definition']),_0x4aa6b1=_0x1fdfde['createPositionAt'](this['_footnotesDefinitions'],_0x53e7b6);_0x4305e5['isEqual'](_0x4aa6b1)||(_0x1fdfde['move'](_0x1fdfde['createRangeOn'](_0x16367b['definition']),_0x4aa6b1),_0x149b5c=!0x0);}return _0x149b5c;}['_ensureFootnotesReferencesHaveProperOrder'](_0x23bfbf){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3ea2f5}=this['editor'];let _0x3c4931=!0x1;for(let _0x5e87d2=0x0;_0x5e87d2<this['_footnotes']['length']-0x1;_0x5e87d2++){const _0x5bd3a3=this['_footnotes'][_0x5e87d2],_0x1c6788=this['_footnotes'][_0x5e87d2+0x1],_0x55cf68=_0x3ea2f5['createPositionBefore'](_0x5bd3a3['reference']),_0x6f976b=_0x3ea2f5['createPositionBefore'](_0x1c6788['reference']);'after'===_0x55cf68['compareWith'](_0x6f976b)&&(this['_handleMovedFootnoteReference'](_0x23bfbf,_0x5bd3a3['reference']),_0x5e87d2=-0x1,_0x3c4931=!0x0);}return _0x3c4931;}}function _(_0x489023,_0x45d92d,_0x470507){if(_0x470507['childCount'])return!0x1;const _0x54a49b=_0x45d92d?'paragraph':'footnoteInlineContent';return _0x489023['insert'](_0x489023['createElement'](_0x54a49b),_0x470507),!0x0;}function I(_0x497039,_0x2ab987,_0x1d6ec4){if(0x0===_0x2ab987['length'])return 0x0;const _0x723bd8=_0x497039['createPositionBefore'](_0x1d6ec4);for(let _0x1680a0=0x0;_0x1680a0<_0x2ab987['length'];_0x1680a0++){const _0x5d0887=_0x2ab987[_0x1680a0],_0x15d97a=_0x497039['createPositionBefore'](_0x5d0887['reference']);if('before'===_0x723bd8['compareWith'](_0x15d97a))return _0x1680a0;}const _0x534c43=_0x1d6ec4['root'];let _0x976838=-0x1;for(let _0x1ac248=_0x2ab987['length']-0x1;_0x1ac248>=0x0;_0x1ac248--)if(_0x2ab987[_0x1ac248]['reference']['root']===_0x534c43){_0x976838=_0x1ac248;break;}if(-0x1!==_0x976838)return _0x976838+0x1;const _0x4b390e=_0x497039['document']['getRootNames'](),_0xcacfd1=_0x4b390e['indexOf'](_0x534c43['rootName']),_0x568a7c=_0x4b390e[_0xcacfd1+0x1];if(_0x568a7c){for(let _0x4915b2=0x0;_0x4915b2<_0x2ab987['length'];_0x4915b2++)if(_0x2ab987[_0x4915b2]['reference']['root']['rootName']===_0x568a7c)return _0x4915b2;}return _0x2ab987['length'];}class m extends _0x46f982{['refresh'](){const _0x116d9a=this['editor']['model']['document']['selection'],_0x40b716=this['_getPositionToInsertFootnote'](_0x116d9a);this['isEnabled']=!!_0x40b716;}['execute'](_0x3e01d1){const {editor:_0xd93bf3}=this,{model:_0x3f03d1}=_0xd93bf3,{selection:_0x549334}=_0x3f03d1['document'],_0x570854=this['_getPositionToInsertFootnote'](_0x549334);if(!_0x570854)return;const _0x101c5f=_0xd93bf3['plugins']['get']('FootnotesEditing'),_0x40ac2f=_0x3e01d1?.['footnoteId']??_0x5e02bd();!function(_0x434d1){return'string'==typeof _0x434d1&&_0x434d1['length']>0x0&&!/\s/['test'](_0x434d1)&&!/^\d/['test'](_0x434d1);}(_0x40ac2f)?_0x4c506d('insert-footnote-command-executed-with-invalid-id'):(_0x3f03d1['change'](_0x102156=>{const _0x59d119=_0x102156['createElement']('footnoteRef',{'footnoteId':_0x40ac2f});_0x3f03d1['insertObject'](_0x59d119,_0x570854,null);}),_0x101c5f['_moveSelectionToFootnoteDefinition'](_0x40ac2f));}['_getPositionToInsertFootnote'](_0x1de372){const {model:_0x30b730}=this['editor'],{schema:_0x78aa64}=_0x30b730,_0x14a7f0=_0x1de372['getFirstRange']();for(const _0x5974f1 of _0x14a7f0['getItems']())if(_0x78aa64['isBlock'](_0x5974f1)||_0x78aa64['isObject'](_0x5974f1))return null;const _0xe6a71c=_0x14a7f0['end'];return _0x78aa64['checkChild'](_0xe6a71c,'footnoteRef')?_0xe6a71c:null;}}class r extends _0x16e913{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x593768}=this;_0x593768['config']['define']('footnotes.multiBlock',!0x0),_0x593768['commands']['add']('insertFootnote',new m(_0x593768)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x39eb28){const _0x44908c=_0x4c9739([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x4bfbc2=0x47a28506,_0x45cf41=0x47a5fefe^_0x4bfbc2,_0x14ed8d=window[_0x4c9739([0x44,0x61,0x74,0x65])][_0x4c9739([0x6e,0x6f,0x77])](),_0x322be6=_0x39eb28[_0x4c9739([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36ba89=new window[(_0x4c9739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b85bb=>{_0x322be6[_0x4c9739([0x6f,0x6e,0x63,0x65])](_0x4c9739([0x72,0x65,0x61,0x64,0x79]),_0x2b85bb);}),_0x2abfb1={[_0x4c9739([0x6b,0x74,0x79])]:_0x4c9739([0x45,0x43]),[_0x4c9739([0x75,0x73,0x65])]:_0x4c9739([0x73,0x69,0x67]),[_0x4c9739([0x63,0x72,0x76])]:_0x4c9739([0x50,0x2d,0x32,0x35,0x36]),[_0x4c9739([0x78])]:_0x4c9739([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4c9739([0x79])]:_0x4c9739([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4c9739([0x61,0x6c,0x67])]:_0x4c9739([0x45,0x53,0x32,0x35,0x36])},_0x5a7951=_0x322be6[_0x4c9739([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c9739([0x67,0x65,0x74])](_0x4c9739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb43279(){let _0x54dff2,_0x5b5ef4=null,_0x3c781f=null;try{if(_0x5a7951==_0x4c9739([0x47,0x50,0x4c]))return _0x4c9739([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54dff2=_0x13003a(),!_0x54dff2)return _0x4c9739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54dff2[_0x4c9739([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c781f=_0x171d72(_0x54dff2[_0x4c9739([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54dff2[_0x4c9739([0x6a,0x74,0x69])])),await _0x491125()?_0x55053e()?_0x29cc4c()?_0x4c9739([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x574d65()?(_0x54dff2[_0x4c9739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9739([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b5ef4=_0x14d012(_0x4c9739([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54dff2[_0x4c9739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9739([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b5ef4=_0x14d012(_0x4c9739([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3849d5()):_0x4c9739([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9739([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c9739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c9739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29cc4c(){const _0x3fc477=[_0x4c9739([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c9739([0x74,0x72,0x69,0x61,0x6c])][_0x4c9739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dff2[_0x4c9739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14ed8d/0x3e8:0xe10*_0x45cf41;return _0x54dff2[_0x4c9739([0x65,0x78,0x70])]<_0x3fc477;}function _0x55053e(){const _0x3ca616=_0x54dff2[_0x4c9739([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ca616&&(!!_0x3ca616[_0x4c9739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9739([0x2a]))||!!_0x3ca616[_0x4c9739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9739([0x46,0x4f,0x4f])));}function _0x574d65(){const _0x5ef42e=_0x54dff2[_0x4c9739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ef42e||0x0==_0x5ef42e[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x632c3b}=new URL(window[_0x4c9739([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ef42e[_0x4c9739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x632c3b))return!0x0;const _0x43101e=_0x632c3b[_0x4c9739([0x73,0x70,0x6c,0x69,0x74])](_0x4c9739([0x2e]));return _0x5ef42e[_0x4c9739([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a4719=>_0x4a4719[_0x4c9739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9739([0x2a])))[_0x4c9739([0x6d,0x61,0x70])](_0x42d5a0=>_0x42d5a0[_0x4c9739([0x73,0x70,0x6c,0x69,0x74])](_0x4c9739([0x2e])))[_0x4c9739([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43d888=>_0x43d888[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43101e[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9739([0x6d,0x61,0x70])](_0x20440c=>Array(_0x43101e[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20440c[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9739([0x66,0x69,0x6c,0x6c])](_0x20440c[0x0]===_0x4c9739([0x2a])?_0x4c9739([0x2a]):'')[_0x4c9739([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20440c))[_0x4c9739([0x73,0x6f,0x6d,0x65])](_0x3d65c0=>_0x43101e[_0x4c9739([0x65,0x76,0x65,0x72,0x79])]((_0x1f06cd,_0x970f65)=>_0x3d65c0[_0x970f65]===_0x1f06cd||_0x3d65c0[_0x970f65]===_0x4c9739([0x2a])));}function _0x3849d5(){return _0x5b5ef4&&_0x3c781f?new window[(_0x4c9739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bd375,_0x502e2c)=>{_0x5b5ef4[_0x4c9739([0x74,0x68,0x65,0x6e])](_0x2bd375,_0x502e2c),_0x3c781f[_0x4c9739([0x74,0x68,0x65,0x6e])](_0x539c0b=>{_0x539c0b!=_0x4c9739([0x56,0x61,0x6c,0x69,0x64])&&_0x2bd375(_0x539c0b);},_0x502e2c);}):_0x5b5ef4||_0x3c781f||_0x4c9739([0x56,0x61,0x6c,0x69,0x64]);}}function _0x171d72(_0x4dfaa0,_0xcfbd68){return new window[(_0x4c9739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e5183=>{if(_0x44a0e3())return _0x5e5183(_0x4c9739([0x56,0x61,0x6c,0x69,0x64]));_0x8ecba9(),_0x322be6[_0x4c9739([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c9739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39820a=!0x1;const _0x424991=_0x5e02bd();function _0x388080(_0x322234){return!!_0x322234&&(typeof _0x322234===_0x4c9739([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x322234===_0x4c9739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x322234[_0x4c9739([0x74,0x68,0x65,0x6e])]===_0x4c9739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x322234[_0x4c9739([0x63,0x61,0x74,0x63,0x68])]===_0x4c9739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x123f70(_0x3f182f){_0x4a58aa(_0x3f182f)[_0x4c9739([0x74,0x68,0x65,0x6e])](_0x10f283=>{if(!_0x10f283||_0x10f283[_0x4c9739([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c9739([0x6f,0x6b]))return _0x4c9739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d31ac(_0x2a98bf(_0x424991+_0xcfbd68))!=_0x10f283[_0x4c9739([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c9739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9739([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9739([0x74,0x68,0x65,0x6e])](_0x48d3b3=>(_0x163dcb(),_0x48d3b3),()=>{const _0x576da6=_0x40eb91();return null==_0x576da6?(_0x163dcb(),_0x4c9739([0x56,0x61,0x6c,0x69,0x64])):_0x4c9739(_0x14ed8d-_0x576da6>(0x63ae0106^_0x4bfbc2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9739([0x74,0x68,0x65,0x6e])](_0x5e5183)[_0x4c9739([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e5183(_0x4c9739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33c6c1=0x47946b86^_0x4bfbc2;function _0x163dcb(){const _0x29f44f=_0x4c9739([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d31ac(_0x2a98bf(_0x4dfaa0)),_0x237c92=_0x2ebdb4(_0x2d31ac(window[_0x4c9739([0x4d,0x61,0x74,0x68])][_0x4c9739([0x63,0x65,0x69,0x6c])](_0x14ed8d/_0x33c6c1)));window[_0x4c9739([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9739([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29f44f,_0x237c92);}function _0x40eb91(){const _0xb885ae=_0x4c9739([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d31ac(_0x2a98bf(_0x4dfaa0)),_0xd9df38=window[_0x4c9739([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9739([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb885ae);return _0xd9df38?window[_0x4c9739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ebdb4(_0xd9df38),0x10)*_0x33c6c1:null;}function _0x4a58aa(_0x4e61c9){return new window[(_0x4c9739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54ff89,_0x704ec5)=>{_0x4e61c9[_0x4c9739([0x74,0x68,0x65,0x6e])](_0x54ff89,_0x704ec5),window[_0x4c9739([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x704ec5,0x47a351c6^_0x4bfbc2);});}}_0x322be6[_0x4c9739([0x6f,0x6e])](_0x4c9739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ae9a1,_0x5175ef)=>{if(_0x5175ef[0x0]!=_0x4dfaa0)return _0x5e5183(_0x4c9739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5175ef[0x1]={..._0x5175ef[0x1],[_0x4c9739([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x424991};},{[_0x4c9739([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9739([0x68,0x69,0x67,0x68])}),_0x322be6[_0x4c9739([0x6f,0x6e])](_0x4c9739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x112890=>{_0x388080(_0x112890[_0x4c9739([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39820a=!0x0,_0x123f70(_0x112890[_0x4c9739([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c9739([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9739([0x6c,0x6f,0x77])}),_0x36ba89[_0x4c9739([0x74,0x68,0x65,0x6e])](()=>{_0x39820a||_0x5e5183(_0x4c9739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44a0e3(){return _0x322be6[_0x4c9739([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9739([0x76,0x69,0x65,0x77])][_0x4c9739([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c9739([0x61,0x75,0x74,0x6f]);}function _0x8ecba9(){_0x322be6[_0x4c9739([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9739([0x76,0x69,0x65,0x77])][_0x4c9739([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c9739([0x61,0x75,0x74,0x6f]);}}function _0x14d012(_0x54b8b4){const _0x5c5a63=[new window[(_0x4c9739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17ffad=>setTimeout(_0x17ffad,0x47abbbca^_0x4bfbc2)),_0x36ba89[_0x4c9739([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c9739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6b5f=>{let _0x5a55bb=0x0;_0x322be6[_0x4c9739([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9739([0x6f,0x6e])](_0x4c9739([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e32ba,_0x38aa02)=>{_0x38aa02[0x0][_0x4c9739([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a55bb++,_0x5a55bb==(0x47a284fe^_0x4bfbc2)&&(_0x4b6b5f(),_0x5e32ba[_0x4c9739([0x6f,0x66,0x66])]());});}))];return window[_0x4c9739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c9739([0x72,0x61,0x63,0x65])](_0x5c5a63)[_0x4c9739([0x74,0x68,0x65,0x6e])](()=>_0x54b8b4);}async function _0xeb2d99(){await _0x36ba89,_0x322be6[_0x4c9739([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9739([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ac305,_0x322be6[_0x4c9739([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9739([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ac305,_0x322be6[_0x4c9739([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c9739([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x169df5(_0x560e61){const _0x4b05e0=_0x385885();_0x322be6[_0x4b05e0]=_0x4c9739([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x560e61,_0x560e61!=_0x4c9739([0x56,0x61,0x6c,0x69,0x64])&&_0xeb2d99();}function _0x385885(){const _0x393661=window[_0x4c9739([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c9739([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c9739([0x6e,0x6f,0x77])]())[_0x4c9739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c9739([0x2e]),'');let _0x201aee=_0x4c9739([0x75]);for(let _0x46cbb6=0x0;_0x46cbb6<_0x393661[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46cbb6+=0x2){let _0xb2421a=window[_0x4c9739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x393661[_0x4c9739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46cbb6,_0x46cbb6+0x2));_0xb2421a>=_0x44908c[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb2421a-=_0x44908c[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x201aee+=_0x44908c[_0xb2421a];}return _0x201aee;}function _0x13003a(){const _0x1265b1=_0x5a7951[_0x4c9739([0x73,0x70,0x6c,0x69,0x74])](_0x4c9739([0x2e]));if(0x3!=_0x1265b1[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59cc01(_0x1265b1[0x1]);function _0x59cc01(_0x442736){const _0x14d3b5=_0x3aa394(_0x442736);return _0x14d3b5&&_0x1607ac()?_0x14d3b5:null;function _0x1607ac(){const _0x148f5c=_0x14d3b5[_0x4c9739([0x6a,0x74,0x69])],_0x525c17=window[_0x4c9739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148f5c[_0x4c9739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x148f5c[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f2b74={..._0x14d3b5,[_0x4c9739([0x6a,0x74,0x69])]:_0x148f5c[_0x4c9739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x148f5c[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f2b74[_0x4c9739([0x76,0x63])],_0x2a98bf(_0x5f2b74)==_0x525c17;}}}async function _0x491125(){let _0x499105=!0x0;try{const _0x49d098=_0x5a7951[_0x4c9739([0x73,0x70,0x6c,0x69,0x74])](_0x4c9739([0x2e])),[_0xdadf06,_0x52f009,_0x174eb0]=_0x49d098;return _0x297306(_0xdadf06),await _0x26df63(_0xdadf06,_0x52f009,_0x174eb0),_0x499105;}catch{return!0x1;}function _0x297306(_0x4b9281){const _0x48d7fa=_0x3aa394(_0x4b9281);_0x48d7fa&&_0x48d7fa[_0x4c9739([0x61,0x6c,0x67])]==_0x4c9739([0x45,0x53,0x32,0x35,0x36])||(_0x499105=!0x1);}async function _0x26df63(_0x1a668d,_0x3f5d69,_0x542e1e){const _0x431aeb=window[_0x4c9739([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c9739([0x66,0x72,0x6f,0x6d])](_0x1cb5cd(_0x542e1e),_0x19ef0f=>_0x19ef0f[_0x4c9739([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118765=new window[(_0x4c9739([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c9739([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a668d+_0x4c9739([0x2e])+_0x3f5d69),_0x54d8f9=window[_0x4c9739([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c9739([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54d8f9)return;const _0x517e15=await _0x54d8f9[_0x4c9739([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c9739([0x6a,0x77,0x6b]),_0x2abfb1,{[_0x4c9739([0x6e,0x61,0x6d,0x65])]:_0x4c9739([0x45,0x43,0x44,0x53,0x41]),[_0x4c9739([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c9739([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c9739([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54d8f9[_0x4c9739([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c9739([0x6e,0x61,0x6d,0x65])]:_0x4c9739([0x45,0x43,0x44,0x53,0x41]),[_0x4c9739([0x68,0x61,0x73,0x68])]:{[_0x4c9739([0x6e,0x61,0x6d,0x65])]:_0x4c9739([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x517e15,_0x431aeb,_0x118765)||(_0x499105=!0x1);}}function _0x3aa394(_0x1ebbb1){return _0x1ebbb1[_0x4c9739([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c9739([0x65,0x79]))?JSON[_0x4c9739([0x70,0x61,0x72,0x73,0x65])](_0x1cb5cd(_0x1ebbb1)):null;}function _0x1cb5cd(_0x120166){return window[_0x4c9739([0x61,0x74,0x6f,0x62])](_0x120166[_0x4c9739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c9739([0x2b]))[_0x4c9739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c9739([0x2f])));}function _0x2a98bf(_0x52036e){let _0x481e54=0x1505;function _0x1dbc2c(_0x10595f){for(let _0x32bb9e=0x0;_0x32bb9e<_0x10595f[_0x4c9739([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32bb9e++){const _0x69f46b=_0x10595f[_0x4c9739([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32bb9e);_0x481e54=(_0x481e54<<0x5)+_0x481e54+_0x69f46b,_0x481e54&=_0x481e54;}}function _0x3658ba(_0x1cbbed){Array[_0x4c9739([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cbbed)?_0x1cbbed[_0x4c9739([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3658ba):_0x1cbbed&&typeof _0x1cbbed==_0x4c9739([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c9739([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cbbed)[_0x4c9739([0x73,0x6f,0x72,0x74])]()[_0x4c9739([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5532ee,_0x55ff80])=>{_0x1dbc2c(_0x5532ee),_0x3658ba(_0x55ff80);}):_0x1dbc2c(window[_0x4c9739([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cbbed));}return _0x3658ba(_0x52036e),_0x481e54>>>0x0;}function _0x2d31ac(_0x3302b4){return _0x3302b4[_0x4c9739([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c9739([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c9739([0x30]));}function _0x2ebdb4(_0x2330c7){return _0x2330c7[_0x4c9739([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c9739([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c9739([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ac305(){}function _0x4c9739(_0x5d965b){return _0x5d965b['map'](_0x428bb2=>String['fromCharCode'](_0x428bb2))['join']('');}_0x169df5(await _0xb43279());}(this);}['_moveSelectionToFootnoteDefinition'](_0x995cc3){const {plugins:_0x1501d0,editing:_0x394672,model:_0x216b23}=this['editor'],_0x556e68=_0x1501d0['get'](f)['getFootnote'](_0x995cc3);return!!_0x556e68&&(_0x216b23['change'](_0x83841b=>{_0x83841b['setSelection'](_0x83841b['createPositionAt'](_0x556e68['definition'],'end'));}),_0x394672['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x36c9aa){const {plugins:_0x5ee97e,editing:_0x183d94,model:_0x48e8b9}=this['editor'],_0x53bf4b=_0x5ee97e['get'](f)['getFootnote'](_0x36c9aa);return!!_0x53bf4b&&(_0x48e8b9['change'](_0xa2b1be=>{_0xa2b1be['setSelection'](_0x53bf4b['reference'],'on');}),_0x183d94['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x16b62f}=this['editor']['model'],_0xfb5408=this['editor']['config']['get']('footnotes.multiBlock');_0x16b62f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x16b62f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x16b62f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xfb5408?_0x16b62f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x16b62f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x16b62f['addChildCheck'](_0x5f37a0=>{for(const _0x51ed31 of _0x5f37a0)if('footnoteDefinition'===_0x51ed31['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3e1907}=this,{conversion:_0x475f2f,editing:_0x16652c}=_0x3e1907,{t:t}=_0x3e1907['locale'];_0x475f2f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x223634,{writer:_0x40eaa3,consumable:_0x10e445})=>{const _0x38b4df=_0x223634['getChild'](0x0);if(!_0x38b4df||!_0x38b4df['is']('element','a'))return null;const _0x57f3b7=_0x38b4df['getAttribute']('href')||'';if(!_0x57f3b7['startsWith']('#'))return null;const _0x3daec8=_0x57f3b7['replace'](/^#/,'');if(!_0x3daec8)return null;_0x10e445['consume'](_0x38b4df,{'name':!0x0,'attributes':['href']});for(const {item:_0x6bfb6}of _0x16652c['view']['createRangeIn'](_0x38b4df))_0x6bfb6['is']('$textProxy')?_0x10e445['consume'](_0x6bfb6['textNode'],{'name':!0x0}):_0x6bfb6['is']('element')&&_0x10e445['consume'](_0x6bfb6,{'name':!0x0});return _0x40eaa3['createElement']('footnoteRef',{'footnoteId':_0x3daec8});}}),_0x475f2f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x17a694,{writer:_0x32cab1})=>D(_0x17a694,_0x32cab1)}),_0x475f2f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x453782,{writer:_0x1611ea})=>{const _0x4dedcc=_0x453782['getAttribute']('footnoteCounter');return _0x4291b2(D(_0x453782,_0x1611ea),_0x1611ea,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4dedcc)});}});}['_defineDefinitionsConverters'](){const {editor:_0x41e65f}=this,{t:t}=_0x41e65f['locale'],{conversion:_0x54aea3}=_0x41e65f;_0x54aea3['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x54aea3['for']('upcast')['add'](_0x46d546=>{_0x46d546['on']('element:ol',(_0x268c7c,_0x1a0908,_0xa263f1)=>{const _0x1018e4=_0x1a0908['viewItem'];if(!_0x1018e4['hasClass']('footnotes-list')||!_0x1a0908['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xa263f1['consumable']['consume'](_0x1018e4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x148feb,modelCursor:_0x140172}=_0xa263f1['convertChildren'](_0x1a0908['viewItem'],_0x1a0908['modelCursor']);_0x1a0908['modelRange']=_0x148feb,_0x1a0908['modelCursor']=_0x140172;}),_0x46d546['on']('element:hr',(_0x1d7cb0,_0x1606ea,_0x48ef09)=>{const _0x5e123b=_0x1606ea['viewItem'];_0x5e123b['hasClass']('footnotes-divider')&&_0x1606ea['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x48ef09['consumable']['consume'](_0x5e123b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x54aea3['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22cd53,{writer:_0x39d209})=>v(_0x39d209)}),_0x54aea3['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x12e1df,{writer:_0x5ae57e})=>{const _0x2988fd=v(_0x5ae57e,{'data-footnotes-list-label':t('Footnotes')}),_0x3e6f52=_0x4291b2(_0x2988fd,_0x5ae57e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5ae57e['setCustomProperty']('footnotesDefinitions',!0x0,_0x3e6f52),_0x3e6f52;}});}['_defineDefinitionConverters'](){const {editor:_0x4aa5e7}=this,{conversion:_0x351ad0,locale:_0x3ab427}=_0x4aa5e7,_0x1c62cb=_0x4aa5e7['config']['get']('footnotes.multiBlock');_0x351ad0['for']('upcast')['add'](_0x5a8204=>{_0x5a8204['on']('element:li',(_0x3fa38b,_0x1a003b,_0x46cae0)=>{const _0x4b5023=_0x1a003b['viewItem'];if(!_0x4b5023['hasClass']('footnote-definition')||!_0x4b5023['getAttribute']('id'))return;const _0x495964=_0x4b5023['parent'];if(!_0x495964['is']('element','ol')||!_0x495964['hasClass']('footnotes-list'))return;if(!_0x46cae0['consumable']['test'](_0x4b5023,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5a9e3c=_0x46cae0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4b5023['getAttribute']('id')});if(!_0x46cae0['safeInsert'](_0x5a9e3c,_0x1a003b['modelCursor']))return;_0x46cae0['consumable']['consume'](_0x4b5023,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1260b5=Array['from'](_0x4b5023['getChildren']())['find'](_0x1cbcff=>_0x1cbcff['is']('element')&&_0x1cbcff['hasClass']('footnote-content'));for(const _0x5e63de of _0x4b5023['getChildren']())_0x5e63de['is']('element')&&(_0x46cae0['consumable']['consume'](_0x5e63de,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x46cae0['consumable']['consume'](_0x5e63de,{'name':!0x0,'classes':'footnote-content'}));if(_0x1260b5){if(_0x1c62cb)_0x46cae0['convertChildren'](_0x1260b5,_0x5a9e3c);else{const _0x52d042=_0x46cae0['writer']['createElement']('footnoteInlineContent');_0x46cae0['writer']['insert'](_0x52d042,_0x5a9e3c),_0x46cae0['convertChildren'](_0x1260b5,_0x52d042);}}_0x46cae0['updateConversionResult'](_0x5a9e3c,_0x1a003b);});}),_0x351ad0['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5b81f9,{writer:_0x29bebf})=>b(_0x5b81f9,_0x29bebf,_0x3ab427,{'dataPipeline':!0x0})}),_0x351ad0['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xb3ac23,{writer:_0x3dd4bb})=>b(_0xb3ac23,_0x3dd4bb,_0x3ab427)});}['_defineBogusParagraphConverters'](){const {editor:_0x4336ef}=this,{conversion:_0x39df59}=_0x4336ef;_0x4336ef['config']['get']('footnotes.multiBlock')?(_0x39df59['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x39df59['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4336ef['model']['document'],'change:data',()=>{!function(_0x1ef344,_0x8b31e1){const _0x2f1895=_0x1ef344['document']['differ'],_0x4a538a=new Set();for(const _0x11ce49 of _0x2f1895['getChanges']()){const _0x5c6960='attribute'==_0x11ce49['type']?_0x11ce49['range']['start']['parent']:_0x11ce49['position']['parent'];_0x5c6960['is']('element','footnoteDefinition')&&_0x4a538a['add'](_0x5c6960);}for(const _0x2824b0 of _0x4a538a['values']()){const _0x18aec0=Array['from'](_0x2824b0['getChildren']())['filter'](_0xe0f12b=>g(_0xe0f12b,_0x8b31e1['mapper']));for(const _0x25ee8f of _0x18aec0)_0x8b31e1['reconvertItem'](_0x25ee8f);}}(_0x4336ef['model'],_0x4336ef['editing']);})):(_0x39df59['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x39df59['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x28877e,{writer:_0x3fac30})=>{const _0x543378=_0x3fac30['createContainerElement']('span');return _0x3fac30['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x543378),_0x543378;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3d8542}=this,{editing:_0x4a0be0,t:t}=_0x3d8542,_0x23b36e=_0x3d8542['model']['document']['selection'];_0x3d8542['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3d8542['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4a0be0['view']['document'],'enter',(_0x15402c,_0xacb0b3)=>{const _0x3b6f5b=function(_0x1cfe5e){const _0x38104e=_0x1cfe5e['getSelectedElement']();if(_0x38104e?.['is']('element','footnoteRef'))return _0x38104e;return null;}(_0x23b36e);if(_0x3b6f5b){const _0x588b55=_0x3b6f5b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x588b55),_0xacb0b3['preventDefault'](),_0x15402c['stop']();}},{'context':_0x4dff1c});}['_defineClickHandlers'](){const {editor:_0x5591c9}=this,{editing:_0x489271}=_0x5591c9;_0x5591c9['editing']['view']['addObserver'](_0x19f1a4),_0x5591c9['editing']['view']['addObserver'](_0x414ec7);let _0xc62e59=!0x1;this['listenTo'](_0x489271['view']['document'],'pointerdown',(_0x5cba5c,_0x508d62)=>{const {target:_0x1bf892}=_0x508d62,_0x25d79b=_0x489271['view']['document']['selection'];_0xc62e59=!!(_0x1bf892?.['is']('element','a')&&_0x1bf892['parent']?.['is']('element','sup')&&_0x1bf892['parent']['hasClass']('footnote'))&&_0x25d79b['getSelectedElement']()===_0x1bf892['parent'];},{'priority':'high'}),this['listenTo'](_0x489271['view']['document'],'click',(_0xe78a2b,_0x18b094)=>{const {target:_0x55eb36}=_0x18b094;if(!_0x55eb36?.['is']('element','a'))return;if(_0x55eb36['parent']?.['is']('element','sup')&&_0x55eb36['parent']['hasClass']('footnote')&&!_0xc62e59)return void _0x18b094['preventDefault']();let _0x14763c=_0x55eb36['getAttribute']('href');if(!_0x14763c?.['startsWith']('#'))return;_0x14763c=_0x14763c['slice'](0x1);let _0x2e63c8=!0x1;(_0x14763c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x14763c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x14763c))&&(_0x2e63c8=!0x0),_0x2e63c8&&(_0x18b094['preventDefault'](),_0xe78a2b['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x3f099b}={}){return(_0x56e8c1,{writer:_0x1f56e5})=>{if(!p(_0x56e8c1))return null;if(!_0x3f099b)return _0x1f56e5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x543351=_0x1f56e5['createContainerElement']('p');return _0x1f56e5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x543351),_0x543351;};}function p(_0x1f61e9){const {parent:_0x2cf37a}=_0x1f61e9;if(!_0x2cf37a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2cf37a['childCount'])return!0x1;for(const _0x589ead of _0x1f61e9['getAttributeKeys']())if(!_0x589ead['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x589ead)return!0x1;return!0x0;}function g(_0x4c6bcb,_0x155ff7){if(!_0x4c6bcb['is']('element','paragraph'))return!0x1;const _0x1dfced=_0x155ff7['toViewElement'](_0x4c6bcb);return!!_0x1dfced&&p(_0x4c6bcb)!==_0x1dfced['is']('element','span');}function $(_0x508663){return _0x4dff1c(_0x508663)&&_0x508663['is']('containerElement')&&!!_0x508663['getCustomProperty']('footnotesDefinitions');}function v(_0x1e930e,_0x43206c={}){const _0x2ed58c=_0x1e930e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2affd8=_0x1e930e['createContainerElement']('ol',{'class':'footnotes-list'},_0x1e930e['createSlot']());return _0x1e930e['createContainerElement']('div',{'class':'footnotes',..._0x43206c},[_0x2ed58c,_0x2affd8]);}function D(_0x4f6e1e,_0x5540af){const _0x5c3807=_0x4f6e1e['getAttribute']('footnoteId'),_0xdd5899=_0x4f6e1e['getAttribute']('footnoteCounter'),_0x4f0eef=_0x5540af['createUIElement']('a',{'href':'#'+_0x5c3807},function(_0x12dfd6){const _0x901a40=this['toDomElement'](_0x12dfd6);return _0x901a40['textContent']=_0xdd5899,_0x901a40;}),_0x3c03d6=_0x5540af['createContainerElement']('sup',{'id':'ref-'+_0x5c3807,'class':'footnote'},[_0x4f0eef]);return _0x3c03d6['getFillerOffset']=()=>null,_0x3c03d6;}function b(_0x372089,_0x22be59,_0x2865f5,{dataPipeline:_0x1647b6}={}){const {t:t}=_0x2865f5,_0x3a3775=_0x372089['getAttribute']('footnoteId'),_0x26993a=_0x22be59['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3a3775},function(_0x53fffa){const _0x30fccf=this['toDomElement'](_0x53fffa);return _0x30fccf['innerText']='^',_0x30fccf;}),_0x27d5e2=_0x1647b6?_0x22be59['createContainerElement']('div',{'class':'footnote-content'}):_0x55569e(_0x22be59['createEditableElement']('div',{'class':'footnote-content'}),_0x22be59,{'label':t('Footnote\x20content.')});return _0x22be59['insert'](_0x22be59['createPositionAt'](_0x27d5e2,0x0),_0x22be59['createSlot']()),_0x22be59['createContainerElement']('li',{'class':'footnote-definition','id':_0x3a3775},[_0x26993a,_0x27d5e2]);}class e extends _0x16e913{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1f2f22];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x42536a}=this,{plugins:_0x17314e,model:_0x27daac}=_0x42536a,_0x5a845b=_0x17314e['get'](_0x1f2f22),_0x5a99dc=_0x17314e['get'](f);this['listenTo'](_0x5a845b,'outputTransformation',(_0x3580ee,_0x4e9f66)=>{const _0x310aaa=c(_0x27daac['createRangeIn'](_0x4e9f66['content']));if(!_0x310aaa['length'])return;const _0x113faa=_0x5a99dc['getFootnotes'](),_0x4c19f0=_0x310aaa['reduce']((_0x1d0381,_0x45b54d)=>{const _0x37b0d7=_0x113faa['find'](_0x154589=>_0x154589['id']===_0x45b54d);if(_0x37b0d7){const _0x178b7c=_0x42536a['data']['toView'](_0x37b0d7['definition'],{'isClipboardPipeline':!0x0}),_0xbd74da=_0x42536a['data']['htmlProcessor']['toData'](_0x178b7c);_0x1d0381[_0x37b0d7['id']]=_0xbd74da;}return _0x1d0381;},Object['create'](null));_0x4e9f66['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4c19f0));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3a3e59}=this,{model:_0x1689a4,plugins:_0x5e5646}=_0x3a3e59,{view:_0x3b0166}=_0x3a3e59['editing'],_0x2a6777=_0x5e5646['get'](_0x1f2f22),_0x220aa5=_0x5e5646['get'](f),_0x149421=_0x3a3e59['config']['get']('footnotes.multiBlock');let _0x2d71ac=null;this['listenTo'](_0x3b0166['document'],'clipboardInput',(_0x455f38,_0x304da1)=>{const _0x3ac0d8=_0x304da1['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2d71ac=_0x3ac0d8?JSON['parse'](_0x3ac0d8):null;}),this['listenTo'](_0x2a6777,'contentInsertion',(_0x21eefe,_0x23f580)=>{const _0x19acd5=_0x23f580['sourceEditorId']===this['editor']['id'];_0x19acd5&&'drop'===_0x23f580['method']||_0x1689a4['change'](_0x1ff1be=>{let _0x41fada=_0x220aa5['getFootnotesDefinitionsObjectElement']();const _0x4c360f=!!_0x41fada&&Array['from'](_0x1689a4['document']['selection']['getSelectedBlocks']())['includes'](_0x41fada);if((_0x41fada&&!_0x4c360f||!_0x41fada&&!_0x2d71ac)&&function(_0x5b2450,_0x5bfb2b){const _0x2234ce=[];for(const {item:_0x350af2}of _0x5b2450['createRangeIn'](_0x5bfb2b))_0x350af2['is']('element','footnotesDefinitions')&&_0x2234ce['push'](_0x350af2);for(const _0x2dd5fb of _0x2234ce)_0x5b2450['remove'](_0x2dd5fb);}(_0x1ff1be,_0x23f580['content']),!_0x2d71ac)return;const {selection:_0x4279d5}=_0x1689a4['document'],_0x10b8e1=_0x4279d5['getFirstRange']()['root'];_0x41fada&&!_0x4c360f||(_0x41fada=function(_0x188a2e,_0x12c44b){for(const {item:_0xb9501c}of _0x188a2e['createRangeIn'](_0x12c44b))if(_0xb9501c['is']('element','footnotesDefinitions'))return _0xb9501c;return null;}(_0x1ff1be,_0x23f580['content']),_0x41fada||=_0x220aa5['_insertEmptyFootnotesDefinitionsContainer'](_0x1ff1be,_0x10b8e1));const _0x3c46dc=Array['from'](_0x4279d5['getRanges']())['flatMap'](c),_0x47d90e=function(_0x82afa8,_0x36f508,_0x297b60){const _0x55cd3f=Object['create'](null);for(const {item:_0x35e582}of _0x82afa8['createRangeIn'](_0x36f508))if(_0x35e582['is']('element','footnoteRef')){const _0x352c1b=_0x35e582['getAttribute']('footnoteId');if(!_0x297b60(_0x352c1b))continue;_0x55cd3f[_0x352c1b]||(_0x55cd3f[_0x352c1b]=_0x5e02bd()),_0x82afa8['setAttribute']('footnoteId',_0x55cd3f[_0x352c1b],_0x35e582);}return _0x55cd3f;}(_0x1ff1be,_0x23f580['content'],_0x5e02c8=>{if(!_0x19acd5)return!0x0;return!!_0x220aa5['getFootnote'](_0x5e02c8)&&!_0x3c46dc['includes'](_0x5e02c8);});for(const [_0xbb37d7,_0x398bbe]of Object['entries'](_0x2d71ac)){const _0x593cb2=_0x47d90e[_0xbb37d7]||_0xbb37d7,_0x36b763=_0x1ff1be['createElement']('footnoteDefinition',{'footnoteId':_0x593cb2}),_0x3baa89=_0x3a3e59['data']['htmlProcessor']['toView'](_0x398bbe);let _0x49fe48;if(_0x149421)_0x49fe48=_0x3a3e59['data']['toModel'](_0x3baa89,_0x36b763);else{_0x49fe48=_0x1ff1be['createElement']('footnoteInlineContent');const _0x22b727=_0x3a3e59['data']['toModel'](_0x3baa89,_0x49fe48);_0x1ff1be['insert'](_0x22b727,_0x49fe48);}_0x1ff1be['append'](_0x49fe48,_0x36b763),_0x1ff1be['insert'](_0x36b763,_0x41fada,'end');}_0x2d71ac=null;});});}}function c(_0x5aac1b){const _0x58d323=new Set();for(const {item:_0x3450cd}of _0x5aac1b)_0x3450cd['is']('element','footnoteRef')&&_0x58d323['add'](_0x3450cd['getAttribute']('footnoteId'));return Array['from'](_0x58d323);}class i extends _0x16e913{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fe97e}=this,{componentFactory:_0x760b22}=_0x3fe97e['ui'];_0x760b22['add']('insertFootnote',x(_0x3fe97e,_0xdec2b2)),_0x760b22['add']('menuBar:insertFootnote',x(_0x3fe97e,_0x5f2a03)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x66841=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xaf227d;for(const _0x5a9414 in _0x66841){const _0xf093bb=_0x5a9414,_0x3cbc48=_0x66841[_0xf093bb];if('footnotesLicenseKeyValid'==_0x3cbc48||'footnotesLicenseKeyInvalid'==_0x3cbc48||'footnotesLicenseKeyExpired'==_0x3cbc48||'footnotesLicenseKeyDomainLimit'==_0x3cbc48||'footnotesLicenseKeyNotAllowed'==_0x3cbc48||'footnotesLicenseKeyEvaluationLimit'==_0x3cbc48||'footnotesLicenseKeyTrialLimit'==_0x3cbc48||'footnotesLicenseKeyUsageLimit'==_0x3cbc48){delete _0x66841[_0xf093bb],_0xaf227d=_0x3cbc48,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xaf227d&&_0x66841['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xaf227d&&_0x66841['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xaf227d&&_0x66841['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xaf227d&&_0x66841['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xaf227d&&_0x66841['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xaf227d&&_0x66841['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xaf227d&&_0x66841['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x248295,_0x5b7e95){const _0x1c0064=_0x248295['commands']['get']('insertFootnote');return _0x240b86=>{const {t:t}=_0x240b86,_0x49752f=new _0x5b7e95(_0x240b86),_0x11222a=_0x49752f instanceof _0x5f2a03;return _0x49752f['bind']('isEnabled')['to'](_0x1c0064,'isEnabled'),_0x49752f['set']({'label':t(_0x11222a?'Footnote':'Insert\x20footnote'),'icon':_0x14184b,'tooltip':!0x0}),_0x49752f['on']('execute',()=>{_0x1c0064['execute'](),_0x248295['editing']['view']['focus']();}),_0x49752f;};}class lt extends _0x16e913{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x46f982{['refresh'](){const {editor:_0xe39f52}=this,_0x26bc21=_0xe39f52['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x26bc21,this['value']=_0x26bc21?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x37326b}){const {editor:_0xfad09c}=this,_0x5d6967=_0xfad09c['plugins']['get'](f),_0x413f73=_0x5d6967['getFootnotesDefinitionsObjectElement']();_0x413f73&&Q['includes'](_0x37326b)&&_0xfad09c['model']['change'](_0xbce35d=>{_0xbce35d['setAttribute']('footnotesListStyle',_0x37326b,_0x413f73),_0x5d6967['_updateFootnotesCounters'](_0xbce35d);});}}class C extends _0x46f982{['refresh'](){const {editor:_0x237e90}=this,_0x33ba6a=_0x237e90['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x33ba6a,this['value']=_0x33ba6a?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x18785e}){const {editor:_0x72c883}=this,_0x1dca01=_0x72c883['plugins']['get'](f),_0x5e8f13=_0x1dca01['getFootnotesDefinitionsObjectElement']();_0x5e8f13&&Number['isInteger'](_0x18785e)&&_0x72c883['model']['change'](_0x1548cf=>{_0x1548cf['setAttribute']('footnotesListStart',_0x18785e,_0x5e8f13),_0x1dca01['_updateFootnotesCounters'](_0x1548cf);});}}class P extends _0x16e913{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4afb2a}=this;_0x4afb2a['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4afb2a['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4afb2a['commands']['add']('footnotesStyle',new S(_0x4afb2a)),_0x4afb2a['commands']['add']('footnotesStart',new C(_0x4afb2a)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0xf62b61}=this,{schema:_0x3cc5fc}=_0xf62b61['model'];_0x3cc5fc['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x220a3a}=this,{conversion:_0x1b41cd,model:_0x49dea5}=_0x220a3a,{schema:_0x3a532c}=_0x49dea5;_0x1b41cd['for']('upcast')['add'](_0x58438e=>{_0x58438e['on']('element:ol',(_0x5a1aa9,_0x116323,_0x4fe3bc)=>{const _0x1f5d51=_0x116323['viewItem'],_0x2af9d3=_0x116323['modelCursor']?.['parent'];_0x1f5d51['hasClass']('footnotes-list')&&_0x2af9d3?.['is']('element','footnotesDefinitions')&&(function(_0x28514b,_0x4f3955,_0x14a83c,_0xcd6e23){if(!_0xcd6e23['checkAttribute'](_0x4f3955,'footnotesListStart'))return;let _0x104a2d=0x1;const _0x50a497=_0x14a83c['consumable']['consume'](_0x28514b,{'attributes':'start'});if(_0x50a497){const _0x376d1b=Number['parseInt'](_0x28514b['getAttribute']('start'),0xa);Number['isNaN'](_0x376d1b)||(_0x104a2d=_0x376d1b);}!_0x50a497&&_0x4f3955['hasAttribute']('footnotesListStart')||_0x14a83c['writer']['setAttribute']('footnotesListStart',_0x104a2d,_0x4f3955);}(_0x1f5d51,_0x2af9d3,_0x4fe3bc,_0x3a532c),function(_0x12868d,_0x3041f6,_0x57f864,_0x208a7d){if(!_0x208a7d['checkAttribute'](_0x3041f6,'footnotesListStyle'))return;let _0xcce890='decimal',_0x2ef38a=!0x1;if(_0x57f864['consumable']['consume'](_0x12868d,{'attributes':'type'})){const _0x33f10d={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x12868d['getAttribute']('type')];_0x33f10d&&(_0xcce890=_0x33f10d),_0x2ef38a=!0x0;}_0x57f864['consumable']['consume'](_0x12868d,{'styles':'list-style-type'})&&(_0xcce890=function(_0x1cfb95){switch(_0x1cfb95){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x1cfb95;}}(_0x12868d['getStyle']('list-style-type')),_0x2ef38a=!0x0),!_0x2ef38a&&_0x3041f6['hasAttribute']('footnotesListStyle')||_0x57f864['writer']['setAttribute']('footnotesListStyle',_0xcce890,_0x3041f6);}(_0x1f5d51,_0x2af9d3,_0x4fe3bc,_0x3a532c));});}),_0x1b41cd['for']('downcast')['add'](_0x5e1b0b=>{_0x5e1b0b['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x95c9ab,_0x453f60,_0xb76eb3)=>{if(!_0xb76eb3['consumable']['consume'](_0x453f60['item'],_0x95c9ab['name']))return;const _0x3603ea=M(_0x453f60['item'],_0xb76eb3['mapper']),{attributeNewValue:_0x5f53b0}=_0x453f60;null==_0x5f53b0||0x1===_0x5f53b0?_0xb76eb3['writer']['removeAttribute']('start',_0x3603ea):_0xb76eb3['writer']['setAttribute']('start',String(_0x5f53b0),_0x3603ea);}),_0x5e1b0b['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3c9c3c,_0x3b2cf,_0x2ca834)=>{if(!_0x2ca834['consumable']['consume'](_0x3b2cf['item'],_0x3c9c3c['name']))return;const _0x5b19f2=M(_0x3b2cf['item'],_0x2ca834['mapper']),{attributeNewValue:_0x5af70a}=_0x3b2cf;_0x5af70a&&'decimal'!==_0x5af70a?_0x2ca834['writer']['setStyle']('list-style-type',_0x5af70a,_0x5b19f2):_0x2ca834['writer']['removeStyle']('list-style-type',_0x5b19f2);});});}['_definePostfixer'](){const {editor:_0x5c9c40}=this,{model:_0x1fc1ba}=_0x5c9c40,_0x515b74=_0x5c9c40['plugins']['get'](f),_0x4d0f6a=this['_getDefaultListStyle'](),_0x415162=this['_getDefaultStartIndex']();_0x1fc1ba['document']['registerPostFixer'](_0x16a297=>{const _0x31a68f=_0x1fc1ba['document']['differ']['getChanges']();let _0x33735b=!0x1;for(const _0x54238a of _0x31a68f){if('insert'!==_0x54238a['type']||'$text'===_0x54238a['name'])continue;const _0x46cc87=_0x1fc1ba['createRangeOn'](_0x54238a['position']['nodeAfter']);for(const _0x59ff28 of _0x46cc87['getItems']())_0x59ff28['is']('element','footnotesDefinitions')&&(!_0x59ff28['hasAttribute']('footnotesListStart')&&_0x1fc1ba['schema']['checkAttribute'](_0x59ff28,'footnotesListStart')&&(_0x16a297['setAttribute']('footnotesListStart',_0x415162,_0x59ff28),_0x33735b=!0x0),!_0x59ff28['hasAttribute']('footnotesListStyle')&&_0x1fc1ba['schema']['checkAttribute'](_0x59ff28,'footnotesListStyle')&&(_0x16a297['setAttribute']('footnotesListStyle',_0x4d0f6a,_0x59ff28),_0x33735b=!0x0));}return _0x33735b&&_0x515b74['_updateFootnotesCounters'](_0x16a297),_0x33735b;});}['_defineFormatter'](){const {editor:_0x30ea89}=this;_0x30ea89['plugins']['get'](f)['setFootnoteFormatter'](_0x3a6382=>this['_formatFootnoteListValue'](_0x3a6382));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x21d574,value:_0x130d2d,digits:_0x51ce6b}){const _0x35a2cf=_0x21d574['getAttribute']('footnotesListStyle'),_0x59da02=_0x21d574['getAttribute']('footnotesListStart'),_0x130c89=Math['floor'](_0x130d2d)+(_0x59da02??0x1)-0x1;switch(_0x35a2cf){case'decimal-leading-zero':return function(_0x59dded,_0x349a58){return String(_0x59dded)['padStart'](_0x349a58,'0');}(_0x130c89,Math['max'](0x2,_0x51ce6b));case'lower-alpha':case'lower-latin':return N(_0x130c89,!0x1);case'upper-alpha':case'upper-latin':return N(_0x130c89,!0x0);case'lower-roman':return X(_0x130c89,!0x1);case'upper-roman':return X(_0x130c89,!0x0);default:return String(_0x130c89);}}}function M(_0x295504,_0x4160ee){const _0x4d634f=_0x4160ee['toViewElement'](_0x295504);return Array['from'](_0x4d634f['getChildren']())['find'](_0x41ba1a=>_0x41ba1a['is']('element','ol')&&_0x41ba1a['hasClass']('footnotes-list'));}function N(_0x1eb025,_0x59fbc5){let _0x430a41='',_0x5779b0=_0x1eb025;for(;_0x5779b0>0x0;){const _0x3790f6=(_0x5779b0-0x1)%0x1a;_0x430a41=String['fromCharCode'](0x61+_0x3790f6)+_0x430a41,_0x5779b0=Math['floor']((_0x5779b0-0x1)/0x1a);}return _0x59fbc5?_0x430a41['toUpperCase']():_0x430a41;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x1374a9,_0x505007){let _0x375d77='',_0x1345c2=_0x1374a9;for(const {value:_0x59c7aa,numeral:_0x5d69f3}of V)for(;_0x1345c2>=_0x59c7aa;)_0x375d77+=_0x5d69f3,_0x1345c2-=_0x59c7aa;return _0x505007?_0x375d77:_0x375d77['toLowerCase']();}class R extends _0xdc60b2{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5dbd42();['focusCycler'];constructor(_0x2fe8a2,{styleButtonViews:_0x2d63b6,styleGridAriaLabel:_0x4380b9}){super(_0x2fe8a2),(this['focusCycler']=new _0x32fe1b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x2d63b6,_0x4380b9),[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 _0x1ed4e8 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1ed4e8['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x235cdf=_0xef3efa=>_0xef3efa['stopPropagation']();this['keystrokes']['set']('arrowright',_0x235cdf),this['keystrokes']['set']('arrowleft',_0x235cdf),this['keystrokes']['set']('arrowup',_0x235cdf),this['keystrokes']['set']('arrowdown',_0x235cdf);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4704ef,_0x1993f3){const _0x1ad33c=new _0xdc60b2(this['locale']);return _0x1ad33c['children']=_0x1ad33c['createCollection'](),_0x1ad33c['children']['addMany'](_0x4704ef),_0x1ad33c['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1993f3,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1ad33c['children']}),_0x1ad33c['children']['delegate']('execute')['to'](this),_0x1ad33c['focus']=function(){for(const _0xa7188c of this['children'])if(_0xa7188c instanceof _0xdec2b2&&_0xa7188c['isOn'])return void _0xa7188c['focus']();this['children']['first']['focus']();},_0x1ad33c['focusTracker']=new ot(),_0x1ad33c['keystrokes']=new rt(),_0x1ad33c['render'](),_0x1ad33c['keystrokes']['listenTo'](_0x1ad33c['element']),this['children']['add'](_0x1ad33c),_0x1ad33c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x25f1eb=this['_createStartIndexPropertyView'](),_0x193a8e=[_0x25f1eb],_0x2c937d=new st(this['locale'],_0x193a8e);return _0x2c937d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2c937d['buttonView']['bind']('isEnabled')['toMany'](_0x193a8e,'isEnabled',(..._0x389208)=>_0x389208['some'](_0x512a2a=>_0x512a2a)),_0x2c937d['buttonView']['on']('change:isEnabled',(_0x143ae4,_0x73306,_0x6b1927)=>{_0x6b1927||(_0x2c937d['isCollapsed']=!0x0);}),this['children']['add'](_0x2c937d),[_0x25f1eb,_0x2c937d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1f6952=new it(this['locale'],et);return _0x1f6952['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1f6952['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1f6952['fieldView']['on']('input',()=>{const _0x14fe2e=_0x1f6952['fieldView']['element'],_0x3912e2=_0x14fe2e['valueAsNumber'];Number['isNaN'](_0x3912e2)?_0x1f6952['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x14fe2e['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3912e2}):_0x1f6952['errorText']=t(_0x3912e2<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1f6952;}}class j extends _0x16e913{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x391c59,_0x2ace2d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c1cb2}=this,{componentFactory:_0x58934e}=_0x4c1cb2['ui'];_0x4c1cb2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x58934e['add']('footnotesStyle',function(_0x30cc72){return _0x500ac1=>{const {t:t}=_0x500ac1,_0x1b6be2=_0x30cc72['commands']['get']('footnotesStyle'),_0x424ee9=_0x1c99f7(_0x500ac1),{buttonView:_0x5cd662}=_0x424ee9;return _0x424ee9['class']='ck-footnotes-styles-dropdown',_0x424ee9['bind']('isEnabled')['to'](_0x1b6be2,'isEnabled'),_0x5cd662['set']({'label':t('Footnotes\x20style'),'icon':_0x14184b,'tooltip':!0x0}),_0x424ee9['once']('change:isOpen',()=>{const _0x43594f=function({editor:_0x3085d3,dropdownView:_0x361455}){const {t:t}=_0x3085d3['locale'],_0x2454e1=t('Footnotes\x20definitions\x20styles'),_0x3ce403=function(_0x173b7a){const t=_0x173b7a['locale']['t'],_0x4fbfbc=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3b4c67},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x109565},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x63078d},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x492eea},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4f0672},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x3adbd4}];return _0x4fbfbc['map'](function(_0x362b56){const _0xc969cb=_0x362b56['locale'];return({label:_0x921c29,icon:_0x1812eb,tooltip:_0x4f2619,style:_0x240229})=>{const _0x36b2c1=_0x362b56['commands']['get']('footnotesStyle'),_0x28f7f3=new _0xdec2b2(_0xc969cb);return _0x28f7f3['set']({'label':_0x921c29,'icon':_0x1812eb,'tooltip':_0x4f2619}),_0x28f7f3['bind']('isOn')['to'](_0x36b2c1,'value',_0x402d3c=>_0x402d3c===_0x240229),_0x28f7f3['bind']('isEnabled')['to'](_0x36b2c1,'isEnabled'),_0x28f7f3['on']('execute',()=>{_0x362b56['execute']('footnotesStyle',{'value':_0x240229}),_0x362b56['editing']['view']['focus']();}),_0x28f7f3;};}(_0x173b7a));}(_0x3085d3),_0x4e932d=new R(_0x3085d3['locale'],{'styleGridAriaLabel':_0x2454e1,'styleButtonViews':_0x3ce403}),_0x250d8f=_0x3085d3['commands']['get']('footnotesStart');return _0x4e932d['startIndexFieldView']['bind']('isEnabled')['to'](_0x250d8f),_0x4e932d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x250d8f),_0x4e932d['on']('footnotesListStart',(_0x3978a6,_0x5c3dc0)=>{_0x3085d3['execute']('footnotesStart',{'value':_0x5c3dc0['startIndex']});}),_0x4e932d['delegate']('execute')['to'](_0x361455),_0x4e932d;}({'editor':_0x30cc72,'dropdownView':_0x424ee9});_0x424ee9['panelView']['children']['add'](_0x43594f);}),_0x424ee9;};}(_0x4c1cb2));}['afterInit'](){const {editor:_0x14e9a1}=this,{t:t}=_0x14e9a1['locale'],_0x3a06db=_0x14e9a1['plugins']['get'](_0x2ace2d),{defaultPositions:_0x2e95f7}=_0x53c9f7;_0x3a06db['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x14e9a1['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5d7854=>{let _0x87f339=_0x5d7854['getFirstPosition']()?.['parent'];return _0x87f339?.['is']('$text')&&(_0x87f339=_0x87f339['parent']),_0x87f339?.['is']('element')?_0x87f339['findAncestor']($):null;},'positions':[_0x2e95f7['southArrowNorth'],_0x2e95f7['southArrowNorthMiddleWest'],_0x2e95f7['southArrowNorthMiddleEast'],_0x2e95f7['southArrowNorthWest'],_0x2e95f7['southArrowNorthEast'],_0x2e95f7['northArrowSouth'],_0x2e95f7['northArrowSouthMiddleWest'],_0x2e95f7['northArrowSouthMiddleEast'],_0x2e95f7['northArrowSouthWest'],_0x2e95f7['northArrowSouthEast'],_0x2e95f7['viewportStickyNorth']]});}}class ft extends _0x16e913{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-next-20251214.0",
3
+ "version": "0.0.0-nightly-next-20251215.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251214.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251214.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251214.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251214.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251214.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251214.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251214.0",
33
- "ckeditor5": "0.0.0-nightly-next-20251214.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251215.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251215.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251215.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251215.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251215.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251215.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251215.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20251215.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1769(){const _0x2d2c4b=['end','520TJQWOT','getItems','333630azNRTs','test','isBlock','refresh','insert-footnote-command-executed-with-invalid-id','getFirstRange','5ojFxIM','_getPositionToInsertFootnote','49608qHGxIF','execute','selection','createElement','FootnotesEditing','string','editor','get','11SZdJvJ','9ZefBoI','isEnabled','4360860JuytdM','length','change','1089346Lcnhmh','811662eKvtvL','insertObject','plugins','checkChild','2110800FbyeYX','_moveSelectionToFootnoteDefinition','98VPUWwV','footnoteId','document','model','footnoteRef','9709350xuSizf','isObject'];_0x1769=function(){return _0x2d2c4b;};return _0x1769();}const _0x1e86e0=_0x4c97;(function(_0x2dfe8d,_0x4be2f1){const _0x28bce5=_0x4c97,_0x51c676=_0x2dfe8d();while(!![]){try{const _0xdee671=parseInt(_0x28bce5(0xdd))/0x1+-parseInt(_0x28bce5(0xde))/0x2*(parseInt(_0x28bce5(0xff))/0x3)+parseInt(_0x28bce5(0x101))/0x4*(-parseInt(_0x28bce5(0xf4))/0x5)+parseInt(_0x28bce5(0xee))/0x6*(parseInt(_0x28bce5(0xe4))/0x7)+parseInt(_0x28bce5(0xec))/0x8*(parseInt(_0x28bce5(0xf6))/0x9)+parseInt(_0x28bce5(0xe9))/0xa+parseInt(_0x28bce5(0xfe))/0xb*(-parseInt(_0x28bce5(0xe2))/0xc);if(_0xdee671===_0x4be2f1)break;else _0x51c676['push'](_0x51c676['shift']());}catch(_0x1b0d82){_0x51c676['push'](_0x51c676['shift']());}}}(_0x1769,0xae2cf));import{logWarning as _0x7a04a6,uid as _0x2cf271}from'ckeditor5/src/utils.js';function _0x4c97(_0x1bb978,_0x1b4c36){const _0x176901=_0x1769();return _0x4c97=function(_0x4c9776,_0x1dec46){_0x4c9776=_0x4c9776-0xdc;let _0x53ada4=_0x176901[_0x4c9776];return _0x53ada4;},_0x4c97(_0x1bb978,_0x1b4c36);}import{Command as _0x199582}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x199582{[_0x1e86e0(0xf1)](){const _0x490b7e=_0x1e86e0,_0x4dd11c=this[_0x490b7e(0xfc)][_0x490b7e(0xe7)][_0x490b7e(0xe6)][_0x490b7e(0xf8)],_0xe7ccbf=this[_0x490b7e(0xf5)](_0x4dd11c);this[_0x490b7e(0x100)]=!!_0xe7ccbf;}[_0x1e86e0(0xf7)](_0x1e5c0a){const _0x3a0c33=_0x1e86e0,{editor:_0x1c3f47}=this,{model:_0x175337}=_0x1c3f47,{selection:_0x1844f8}=_0x175337[_0x3a0c33(0xe6)],_0x46eabf=this[_0x3a0c33(0xf5)](_0x1844f8);if(!_0x46eabf)return;const _0x10af7b=_0x1c3f47[_0x3a0c33(0xe0)][_0x3a0c33(0xfd)](_0x3a0c33(0xfa)),_0x754d8=_0x1e5c0a?.[_0x3a0c33(0xe5)]??_0x2cf271();!function(_0x4377ac){const _0x3c5b70=_0x3a0c33;return _0x3c5b70(0xfb)==typeof _0x4377ac&&_0x4377ac[_0x3c5b70(0x102)]>0x0&&!/\s/[_0x3c5b70(0xef)](_0x4377ac)&&!/^\d/[_0x3c5b70(0xef)](_0x4377ac);}(_0x754d8)?_0x7a04a6(_0x3a0c33(0xf2)):(_0x175337[_0x3a0c33(0xdc)](_0x4d3c0b=>{const _0x605406=_0x3a0c33,_0x191f4a=_0x4d3c0b[_0x605406(0xf9)](_0x605406(0xe8),{'footnoteId':_0x754d8});_0x175337[_0x605406(0xdf)](_0x191f4a,_0x46eabf,null);}),_0x10af7b[_0x3a0c33(0xe3)](_0x754d8));}[_0x1e86e0(0xf5)](_0x37655a){const _0x42abdc=_0x1e86e0,{model:_0x311668}=this[_0x42abdc(0xfc)],{schema:_0x5e1d8a}=_0x311668,_0x3ec931=_0x37655a[_0x42abdc(0xf3)]();for(const _0x11781b of _0x3ec931[_0x42abdc(0xed)]())if(_0x5e1d8a[_0x42abdc(0xf0)](_0x11781b)||_0x5e1d8a[_0x42abdc(0xea)](_0x11781b))return null;const _0x121583=_0x3ec931[_0x42abdc(0xeb)];return _0x5e1d8a[_0x42abdc(0xe1)](_0x121583,_0x42abdc(0xe8))?_0x121583:null;}}
23
+ const _0x392e65=_0x2516;(function(_0x2c89b7,_0x224697){const _0x259c49=_0x2516,_0x65b5d8=_0x2c89b7();while(!![]){try{const _0x44d246=-parseInt(_0x259c49(0x1f2))/0x1*(parseInt(_0x259c49(0x1e2))/0x2)+-parseInt(_0x259c49(0x1f4))/0x3+-parseInt(_0x259c49(0x1df))/0x4*(parseInt(_0x259c49(0x1f3))/0x5)+-parseInt(_0x259c49(0x1ee))/0x6+parseInt(_0x259c49(0x1d9))/0x7*(-parseInt(_0x259c49(0x1e3))/0x8)+parseInt(_0x259c49(0x1d2))/0x9*(parseInt(_0x259c49(0x1de))/0xa)+parseInt(_0x259c49(0x1d0))/0xb*(parseInt(_0x259c49(0x1f5))/0xc);if(_0x44d246===_0x224697)break;else _0x65b5d8['push'](_0x65b5d8['shift']());}catch(_0x122ac7){_0x65b5d8['push'](_0x65b5d8['shift']());}}}(_0x399f,0xc9f82));function _0x399f(){const _0x24517e=['5878568lIiPnP','isBlock','getItems','148994trvKmu','1304zeMgFi','insertObject','footnoteRef','isEnabled','footnoteId','length','FootnotesEditing','end','createElement','refresh','change','356526yaFrQl','string','editor','execute','15KLNaRN','5OswEtm','2799375RhumVA','2043588gOgfhS','isObject','308zLPWZi','document','217431ksPpId','insert-footnote-command-executed-with-invalid-id','test','_moveSelectionToFootnoteDefinition','model','selection','get','32123bNCydN','checkChild','_getPositionToInsertFootnote','getFirstRange','plugins','160quVoaV'];_0x399f=function(){return _0x24517e;};return _0x399f();}import{logWarning as _0x517a94,uid as _0x51108f}from'ckeditor5/src/utils.js';function _0x2516(_0x315e75,_0x9623e4){const _0x399f82=_0x399f();return _0x2516=function(_0x2516c9,_0x417175){_0x2516c9=_0x2516c9-0x1cf;let _0x4fc11c=_0x399f82[_0x2516c9];return _0x4fc11c;},_0x2516(_0x315e75,_0x9623e4);}import{Command as _0x302113}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x302113{[_0x392e65(0x1ec)](){const _0x403fa2=_0x392e65,_0x1a580a=this[_0x403fa2(0x1f0)][_0x403fa2(0x1d6)][_0x403fa2(0x1d1)][_0x403fa2(0x1d7)],_0x443c66=this[_0x403fa2(0x1db)](_0x1a580a);this[_0x403fa2(0x1e6)]=!!_0x443c66;}[_0x392e65(0x1f1)](_0x1f5f9c){const _0x3ea8ce=_0x392e65,{editor:_0x55b269}=this,{model:_0x5ea6e3}=_0x55b269,{selection:_0x433059}=_0x5ea6e3[_0x3ea8ce(0x1d1)],_0x3d7ae2=this[_0x3ea8ce(0x1db)](_0x433059);if(!_0x3d7ae2)return;const _0x2946fa=_0x55b269[_0x3ea8ce(0x1dd)][_0x3ea8ce(0x1d8)](_0x3ea8ce(0x1e9)),_0x640bd0=_0x1f5f9c?.[_0x3ea8ce(0x1e7)]??_0x51108f();!function(_0x762406){const _0x38487f=_0x3ea8ce;return _0x38487f(0x1ef)==typeof _0x762406&&_0x762406[_0x38487f(0x1e8)]>0x0&&!/\s/[_0x38487f(0x1d4)](_0x762406)&&!/^\d/[_0x38487f(0x1d4)](_0x762406);}(_0x640bd0)?_0x517a94(_0x3ea8ce(0x1d3)):(_0x5ea6e3[_0x3ea8ce(0x1ed)](_0x5d89b3=>{const _0x17262b=_0x3ea8ce,_0x238756=_0x5d89b3[_0x17262b(0x1eb)](_0x17262b(0x1e5),{'footnoteId':_0x640bd0});_0x5ea6e3[_0x17262b(0x1e4)](_0x238756,_0x3d7ae2,null);}),_0x2946fa[_0x3ea8ce(0x1d5)](_0x640bd0));}[_0x392e65(0x1db)](_0x1515cf){const _0x54c8ad=_0x392e65,{model:_0x265e9d}=this[_0x54c8ad(0x1f0)],{schema:_0x4c32da}=_0x265e9d,_0x3f3ea4=_0x1515cf[_0x54c8ad(0x1dc)]();for(const _0x9e6dd7 of _0x3f3ea4[_0x54c8ad(0x1e1)]())if(_0x4c32da[_0x54c8ad(0x1e0)](_0x9e6dd7)||_0x4c32da[_0x54c8ad(0x1cf)](_0x9e6dd7))return null;const _0x4b2706=_0x3f3ea4[_0x54c8ad(0x1ea)];return _0x4c32da[_0x54c8ad(0x1da)](_0x4b2706,_0x54c8ad(0x1e5))?_0x4b2706:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x19c5da}from'ckeditor5/src/core.js';import{isWidget as _0x166c13,toWidget as _0x545221,toWidgetEditable as _0x3d2a3b}from'ckeditor5/src/widget.js';import{uid as _0x37eb94}from'ckeditor5/src/utils.js';import{PointerObserver as _0xd04132,ClickObserver as _0x435fdc}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x4d5212}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x404ac0}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x19c5da{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x4d5212];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x29e31d}=this;_0x29e31d['config']['define']('footnotes.multiBlock',!0x0),_0x29e31d['commands']['add']('insertFootnote',new _0x404ac0(_0x29e31d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x31f156){const _0x35ac50=_0x2a08ad([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x538893=0x47a28506,_0x18f478=0x47a5fee6^_0x538893,_0x4fee0f=window[_0x2a08ad([0x44,0x61,0x74,0x65])][_0x2a08ad([0x6e,0x6f,0x77])](),_0x271ed4=_0x31f156[_0x2a08ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc8d29d=new window[(_0x2a08ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1585f8=>{_0x271ed4[_0x2a08ad([0x6f,0x6e,0x63,0x65])](_0x2a08ad([0x72,0x65,0x61,0x64,0x79]),_0x1585f8);}),_0x242675={[_0x2a08ad([0x6b,0x74,0x79])]:_0x2a08ad([0x45,0x43]),[_0x2a08ad([0x75,0x73,0x65])]:_0x2a08ad([0x73,0x69,0x67]),[_0x2a08ad([0x63,0x72,0x76])]:_0x2a08ad([0x50,0x2d,0x32,0x35,0x36]),[_0x2a08ad([0x78])]:_0x2a08ad([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2a08ad([0x79])]:_0x2a08ad([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2a08ad([0x61,0x6c,0x67])]:_0x2a08ad([0x45,0x53,0x32,0x35,0x36])},_0x176726=_0x271ed4[_0x2a08ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a08ad([0x67,0x65,0x74])](_0x2a08ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xefc133(){let _0x34d498,_0x53a93b=null,_0x128783=null;try{if(_0x176726==_0x2a08ad([0x47,0x50,0x4c]))return _0x2a08ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34d498=_0x208902(),!_0x34d498)return _0x2a08ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34d498[_0x2a08ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x128783=_0x1d63ca(_0x34d498[_0x2a08ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34d498[_0x2a08ad([0x6a,0x74,0x69])])),await _0x4a26a3()?_0x384150()?_0x3b7e1f()?_0x2a08ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42d8c3()?(_0x34d498[_0x2a08ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a08ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53a93b=_0x5e980a(_0x2a08ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34d498[_0x2a08ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a08ad([0x74,0x72,0x69,0x61,0x6c])&&(_0x53a93b=_0x5e980a(_0x2a08ad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51028a()):_0x2a08ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a08ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a08ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2a08ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b7e1f(){const _0x4eeda6=[_0x2a08ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a08ad([0x74,0x72,0x69,0x61,0x6c])][_0x2a08ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34d498[_0x2a08ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4fee0f/0x3e8:0xe10*_0x18f478;return _0x34d498[_0x2a08ad([0x65,0x78,0x70])]<_0x4eeda6;}function _0x384150(){const _0x2ee7e5=_0x34d498[_0x2a08ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ee7e5&&(!!_0x2ee7e5[_0x2a08ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a08ad([0x2a]))||!!_0x2ee7e5[_0x2a08ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a08ad([0x46,0x4f,0x4f])));}function _0x42d8c3(){const _0x1c8884=_0x34d498[_0x2a08ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c8884||0x0==_0x1c8884[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28b3d4}=new URL(window[_0x2a08ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c8884[_0x2a08ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28b3d4))return!0x0;const _0x43a573=_0x28b3d4[_0x2a08ad([0x73,0x70,0x6c,0x69,0x74])](_0x2a08ad([0x2e]));return _0x1c8884[_0x2a08ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2beb56=>_0x2beb56[_0x2a08ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a08ad([0x2a])))[_0x2a08ad([0x6d,0x61,0x70])](_0x384769=>_0x384769[_0x2a08ad([0x73,0x70,0x6c,0x69,0x74])](_0x2a08ad([0x2e])))[_0x2a08ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9dcd=>_0x2c9dcd[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43a573[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a08ad([0x6d,0x61,0x70])](_0x910949=>Array(_0x43a573[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x910949[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a08ad([0x66,0x69,0x6c,0x6c])](_0x910949[0x0]===_0x2a08ad([0x2a])?_0x2a08ad([0x2a]):'')[_0x2a08ad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x910949))[_0x2a08ad([0x73,0x6f,0x6d,0x65])](_0x2a3329=>_0x43a573[_0x2a08ad([0x65,0x76,0x65,0x72,0x79])]((_0x77ffa7,_0x589ba5)=>_0x2a3329[_0x589ba5]===_0x77ffa7||_0x2a3329[_0x589ba5]===_0x2a08ad([0x2a])));}function _0x51028a(){return _0x53a93b&&_0x128783?new window[(_0x2a08ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5360f4,_0x720e94)=>{_0x53a93b[_0x2a08ad([0x74,0x68,0x65,0x6e])](_0x5360f4,_0x720e94),_0x128783[_0x2a08ad([0x74,0x68,0x65,0x6e])](_0x4bc852=>{_0x4bc852!=_0x2a08ad([0x56,0x61,0x6c,0x69,0x64])&&_0x5360f4(_0x4bc852);},_0x720e94);}):_0x53a93b||_0x128783||_0x2a08ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d63ca(_0x3140f2,_0x3c60d7){return new window[(_0x2a08ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d282=>{if(_0x69c628())return _0x51d282(_0x2a08ad([0x56,0x61,0x6c,0x69,0x64]));_0x203221(),_0x271ed4[_0x2a08ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a08ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3461bc=!0x1;const _0x5e67ed=_0x37eb94();function _0x224230(_0x1a3276){return!!_0x1a3276&&(typeof _0x1a3276===_0x2a08ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a3276===_0x2a08ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a3276[_0x2a08ad([0x74,0x68,0x65,0x6e])]===_0x2a08ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a3276[_0x2a08ad([0x63,0x61,0x74,0x63,0x68])]===_0x2a08ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x202202(_0x15045a){_0x928df0(_0x15045a)[_0x2a08ad([0x74,0x68,0x65,0x6e])](_0x4e7cea=>{if(!_0x4e7cea||_0x4e7cea[_0x2a08ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a08ad([0x6f,0x6b]))return _0x2a08ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40bfa5(_0x4f6fbe(_0x5e67ed+_0x3c60d7))!=_0x4e7cea[_0x2a08ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a08ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a08ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a08ad([0x74,0x68,0x65,0x6e])](_0x253265=>(_0x11b047(),_0x253265),()=>{const _0x2c7e15=_0x5b8f60();return null==_0x2c7e15?(_0x11b047(),_0x2a08ad([0x56,0x61,0x6c,0x69,0x64])):_0x2a08ad(_0x4fee0f-_0x2c7e15>(0x63ae0106^_0x538893)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a08ad([0x74,0x68,0x65,0x6e])](_0x51d282)[_0x2a08ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51d282(_0x2a08ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18c73e=0x47946b86^_0x538893;function _0x11b047(){const _0x1d291c=_0x2a08ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x40bfa5(_0x4f6fbe(_0x3140f2)),_0xfb12b3=_0x11eb5b(_0x40bfa5(window[_0x2a08ad([0x4d,0x61,0x74,0x68])][_0x2a08ad([0x63,0x65,0x69,0x6c])](_0x4fee0f/_0x18c73e)));window[_0x2a08ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a08ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d291c,_0xfb12b3);}function _0x5b8f60(){const _0x36c65e=_0x2a08ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x40bfa5(_0x4f6fbe(_0x3140f2)),_0x1caadf=window[_0x2a08ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a08ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36c65e);return _0x1caadf?window[_0x2a08ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11eb5b(_0x1caadf),0x10)*_0x18c73e:null;}function _0x928df0(_0x1408f5){return new window[(_0x2a08ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x511adf,_0x5a93c2)=>{_0x1408f5[_0x2a08ad([0x74,0x68,0x65,0x6e])](_0x511adf,_0x5a93c2),window[_0x2a08ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a93c2,0x47a351c6^_0x538893);});}}_0x271ed4[_0x2a08ad([0x6f,0x6e])](_0x2a08ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42c8f3,_0x213fa9)=>{if(_0x213fa9[0x0]!=_0x3140f2)return _0x51d282(_0x2a08ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x213fa9[0x1]={..._0x213fa9[0x1],[_0x2a08ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e67ed};},{[_0x2a08ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a08ad([0x68,0x69,0x67,0x68])}),_0x271ed4[_0x2a08ad([0x6f,0x6e])](_0x2a08ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4109a9=>{_0x224230(_0x4109a9[_0x2a08ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3461bc=!0x0,_0x202202(_0x4109a9[_0x2a08ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a08ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a08ad([0x6c,0x6f,0x77])}),_0xc8d29d[_0x2a08ad([0x74,0x68,0x65,0x6e])](()=>{_0x3461bc||_0x51d282(_0x2a08ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x69c628(){return _0x271ed4[_0x2a08ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a08ad([0x76,0x69,0x65,0x77])][_0x2a08ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a08ad([0x61,0x75,0x74,0x6f]);}function _0x203221(){_0x271ed4[_0x2a08ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a08ad([0x76,0x69,0x65,0x77])][_0x2a08ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a08ad([0x61,0x75,0x74,0x6f]);}}function _0x5e980a(_0x30bf1f){const _0x11dd14=[new window[(_0x2a08ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55096a=>setTimeout(_0x55096a,0x47abbbca^_0x538893)),_0xc8d29d[_0x2a08ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a08ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36a8f7=>{let _0x46a093=0x0;_0x271ed4[_0x2a08ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a08ad([0x6f,0x6e])](_0x2a08ad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f2706,_0x1898c2)=>{_0x1898c2[0x0][_0x2a08ad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x46a093++,_0x46a093==(0x47a284fe^_0x538893)&&(_0x36a8f7(),_0x3f2706[_0x2a08ad([0x6f,0x66,0x66])]());});}))];return window[_0x2a08ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a08ad([0x72,0x61,0x63,0x65])](_0x11dd14)[_0x2a08ad([0x74,0x68,0x65,0x6e])](()=>_0x30bf1f);}async function _0x454ec6(){await _0xc8d29d,_0x271ed4[_0x2a08ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a08ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac97e,_0x271ed4[_0x2a08ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a08ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac97e,_0x271ed4[_0x2a08ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a08ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2afc38(_0x44f80d){const _0x4141bd=_0x4b5220();_0x271ed4[_0x4141bd]=_0x2a08ad([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44f80d,_0x44f80d!=_0x2a08ad([0x56,0x61,0x6c,0x69,0x64])&&_0x454ec6();}function _0x4b5220(){const _0x4c1504=window[_0x2a08ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a08ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a08ad([0x6e,0x6f,0x77])]())[_0x2a08ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a08ad([0x2e]),'');let _0x4a425f=_0x2a08ad([0x75]);for(let _0x901bdf=0x0;_0x901bdf<_0x4c1504[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x901bdf+=0x2){let _0x195caa=window[_0x2a08ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c1504[_0x2a08ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x901bdf,_0x901bdf+0x2));_0x195caa>=_0x35ac50[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x195caa-=_0x35ac50[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a425f+=_0x35ac50[_0x195caa];}return _0x4a425f;}function _0x208902(){const _0x3739ea=_0x176726[_0x2a08ad([0x73,0x70,0x6c,0x69,0x74])](_0x2a08ad([0x2e]));if(0x3!=_0x3739ea[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20bf65(_0x3739ea[0x1]);function _0x20bf65(_0x5a60c3){const _0x390043=_0x4473c3(_0x5a60c3);return _0x390043&&_0x4251f8()?_0x390043:null;function _0x4251f8(){const _0x168135=_0x390043[_0x2a08ad([0x6a,0x74,0x69])],_0x493e43=window[_0x2a08ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x168135[_0x2a08ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x168135[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x508851={..._0x390043,[_0x2a08ad([0x6a,0x74,0x69])]:_0x168135[_0x2a08ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x168135[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x508851[_0x2a08ad([0x76,0x63])],_0x4f6fbe(_0x508851)==_0x493e43;}}}async function _0x4a26a3(){let _0x468afe=!0x0;try{const _0x5733bb=_0x176726[_0x2a08ad([0x73,0x70,0x6c,0x69,0x74])](_0x2a08ad([0x2e])),[_0x2d4673,_0xbff800,_0x326353]=_0x5733bb;return _0x40cc91(_0x2d4673),await _0x19217a(_0x2d4673,_0xbff800,_0x326353),_0x468afe;}catch{return!0x1;}function _0x40cc91(_0x517743){const _0x704c72=_0x4473c3(_0x517743);_0x704c72&&_0x704c72[_0x2a08ad([0x61,0x6c,0x67])]==_0x2a08ad([0x45,0x53,0x32,0x35,0x36])||(_0x468afe=!0x1);}async function _0x19217a(_0x2045cb,_0x164ca7,_0x5ddc20){const _0x532713=window[_0x2a08ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a08ad([0x66,0x72,0x6f,0x6d])](_0xb77da1(_0x5ddc20),_0x40ae6b=>_0x40ae6b[_0x2a08ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1e32=new window[(_0x2a08ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a08ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2045cb+_0x2a08ad([0x2e])+_0x164ca7),_0x1dc419=window[_0x2a08ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a08ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1dc419)return;const _0x47ba4e=await _0x1dc419[_0x2a08ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a08ad([0x6a,0x77,0x6b]),_0x242675,{[_0x2a08ad([0x6e,0x61,0x6d,0x65])]:_0x2a08ad([0x45,0x43,0x44,0x53,0x41]),[_0x2a08ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a08ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a08ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1dc419[_0x2a08ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a08ad([0x6e,0x61,0x6d,0x65])]:_0x2a08ad([0x45,0x43,0x44,0x53,0x41]),[_0x2a08ad([0x68,0x61,0x73,0x68])]:{[_0x2a08ad([0x6e,0x61,0x6d,0x65])]:_0x2a08ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47ba4e,_0x532713,_0x2a1e32)||(_0x468afe=!0x1);}}function _0x4473c3(_0x23f079){return _0x23f079[_0x2a08ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a08ad([0x65,0x79]))?JSON[_0x2a08ad([0x70,0x61,0x72,0x73,0x65])](_0xb77da1(_0x23f079)):null;}function _0xb77da1(_0x39e2a6){return window[_0x2a08ad([0x61,0x74,0x6f,0x62])](_0x39e2a6[_0x2a08ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a08ad([0x2b]))[_0x2a08ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a08ad([0x2f])));}function _0x4f6fbe(_0x28d077){let _0x5752ca=0x1505;function _0x47748b(_0x5a1f50){for(let _0x25b567=0x0;_0x25b567<_0x5a1f50[_0x2a08ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25b567++){const _0x24766e=_0x5a1f50[_0x2a08ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25b567);_0x5752ca=(_0x5752ca<<0x5)+_0x5752ca+_0x24766e,_0x5752ca&=_0x5752ca;}}function _0x5bc5bb(_0x33c5bf){Array[_0x2a08ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33c5bf)?_0x33c5bf[_0x2a08ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bc5bb):_0x33c5bf&&typeof _0x33c5bf==_0x2a08ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a08ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33c5bf)[_0x2a08ad([0x73,0x6f,0x72,0x74])]()[_0x2a08ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c206d,_0x677985])=>{_0x47748b(_0x3c206d),_0x5bc5bb(_0x677985);}):_0x47748b(window[_0x2a08ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33c5bf));}return _0x5bc5bb(_0x28d077),_0x5752ca>>>0x0;}function _0x40bfa5(_0x53549a){return _0x53549a[_0x2a08ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a08ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a08ad([0x30]));}function _0x11eb5b(_0x5d9b52){return _0x5d9b52[_0x2a08ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a08ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a08ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ac97e(){}function _0x2a08ad(_0x2f4d7a){return _0x2f4d7a['map'](_0x334ec4=>String['fromCharCode'](_0x334ec4))['join']('');}_0x2afc38(await _0xefc133());}(this);}['_moveSelectionToFootnoteDefinition'](_0x55ae24){const {plugins:_0x583c6a,editing:_0x19010a,model:_0x361675}=this['editor'],_0x467dfb=_0x583c6a['get'](_0x4d5212)['getFootnote'](_0x55ae24);return!!_0x467dfb&&(_0x361675['change'](_0x1607b5=>{_0x1607b5['setSelection'](_0x1607b5['createPositionAt'](_0x467dfb['definition'],'end'));}),_0x19010a['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3513ba){const {plugins:_0xa42e18,editing:_0x5b4f9d,model:_0x18e394}=this['editor'],_0x392f5b=_0xa42e18['get'](_0x4d5212)['getFootnote'](_0x3513ba);return!!_0x392f5b&&(_0x18e394['change'](_0x1667d9=>{_0x1667d9['setSelection'](_0x392f5b['reference'],'on');}),_0x5b4f9d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x42d793}=this['editor']['model'],_0xc52ba1=this['editor']['config']['get']('footnotes.multiBlock');_0x42d793['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x42d793['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x42d793['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xc52ba1?_0x42d793['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x42d793['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x42d793['addChildCheck'](_0x478180=>{for(const _0x233eca of _0x478180)if('footnoteDefinition'===_0x233eca['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3e249c}=this,{conversion:_0x17978c,editing:_0x1899b0}=_0x3e249c,{t:t}=_0x3e249c['locale'];_0x17978c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xa005e8,{writer:_0x1e5164,consumable:_0x23cf9b})=>{const _0xeac214=_0xa005e8['getChild'](0x0);if(!_0xeac214||!_0xeac214['is']('element','a'))return null;const _0x39a9e0=_0xeac214['getAttribute']('href')||'';if(!_0x39a9e0['startsWith']('#'))return null;const _0x39cb60=_0x39a9e0['replace'](/^#/,'');if(!_0x39cb60)return null;_0x23cf9b['consume'](_0xeac214,{'name':!0x0,'attributes':['href']});for(const {item:_0x52bf2a}of _0x1899b0['view']['createRangeIn'](_0xeac214))_0x52bf2a['is']('$textProxy')?_0x23cf9b['consume'](_0x52bf2a['textNode'],{'name':!0x0}):_0x52bf2a['is']('element')&&_0x23cf9b['consume'](_0x52bf2a,{'name':!0x0});return _0x1e5164['createElement']('footnoteRef',{'footnoteId':_0x39cb60});}}),_0x17978c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x456e7e,{writer:_0x4776ce})=>D(_0x456e7e,_0x4776ce)}),_0x17978c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4d4c59,{writer:_0x40e68c})=>{const _0x2d4f4c=_0x4d4c59['getAttribute']('footnoteCounter');return _0x545221(D(_0x4d4c59,_0x40e68c),_0x40e68c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2d4f4c)});}});}['_defineDefinitionsConverters'](){const {editor:_0x54ad5d}=this,{t:t}=_0x54ad5d['locale'],{conversion:_0x5b6613}=_0x54ad5d;_0x5b6613['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5b6613['for']('upcast')['add'](_0xa1e737=>{_0xa1e737['on']('element:ol',(_0x3115c1,_0x451a97,_0x25af0d)=>{const _0x1ab025=_0x451a97['viewItem'];if(!_0x1ab025['hasClass']('footnotes-list')||!_0x451a97['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x25af0d['consumable']['consume'](_0x1ab025,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x169ad0,modelCursor:_0x1e1b6c}=_0x25af0d['convertChildren'](_0x451a97['viewItem'],_0x451a97['modelCursor']);_0x451a97['modelRange']=_0x169ad0,_0x451a97['modelCursor']=_0x1e1b6c;}),_0xa1e737['on']('element:hr',(_0x433b07,_0x396af7,_0x1590a1)=>{const _0x3f9475=_0x396af7['viewItem'];_0x3f9475['hasClass']('footnotes-divider')&&_0x396af7['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1590a1['consumable']['consume'](_0x3f9475,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5b6613['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x496483,{writer:_0x477c10})=>v(_0x477c10)}),_0x5b6613['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3137ec,{writer:_0x3fa1e8})=>{const _0x355e47=v(_0x3fa1e8,{'data-footnotes-list-label':t('Footnotes')}),_0x2ce19d=_0x545221(_0x355e47,_0x3fa1e8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3fa1e8['setCustomProperty']('footnotesDefinitions',!0x0,_0x2ce19d),_0x2ce19d;}});}['_defineDefinitionConverters'](){const {editor:_0x1ea066}=this,{conversion:_0x120034,locale:_0x2ddca8}=_0x1ea066,_0x314442=_0x1ea066['config']['get']('footnotes.multiBlock');_0x120034['for']('upcast')['add'](_0x509f44=>{_0x509f44['on']('element:li',(_0x334956,_0x5a2c25,_0xb42a9b)=>{const _0x43c90c=_0x5a2c25['viewItem'];if(!_0x43c90c['hasClass']('footnote-definition')||!_0x43c90c['getAttribute']('id'))return;const _0x33942f=_0x43c90c['parent'];if(!_0x33942f['is']('element','ol')||!_0x33942f['hasClass']('footnotes-list'))return;if(!_0xb42a9b['consumable']['test'](_0x43c90c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x472d8b=_0xb42a9b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x43c90c['getAttribute']('id')});if(!_0xb42a9b['safeInsert'](_0x472d8b,_0x5a2c25['modelCursor']))return;_0xb42a9b['consumable']['consume'](_0x43c90c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2acedf=Array['from'](_0x43c90c['getChildren']())['find'](_0x557e9c=>_0x557e9c['is']('element')&&_0x557e9c['hasClass']('footnote-content'));for(const _0x1c84b8 of _0x43c90c['getChildren']())_0x1c84b8['is']('element')&&(_0xb42a9b['consumable']['consume'](_0x1c84b8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xb42a9b['consumable']['consume'](_0x1c84b8,{'name':!0x0,'classes':'footnote-content'}));if(_0x2acedf){if(_0x314442)_0xb42a9b['convertChildren'](_0x2acedf,_0x472d8b);else{const _0x27b807=_0xb42a9b['writer']['createElement']('footnoteInlineContent');_0xb42a9b['writer']['insert'](_0x27b807,_0x472d8b),_0xb42a9b['convertChildren'](_0x2acedf,_0x27b807);}}_0xb42a9b['updateConversionResult'](_0x472d8b,_0x5a2c25);});}),_0x120034['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x109018,{writer:_0x37b691})=>b(_0x109018,_0x37b691,_0x2ddca8,{'dataPipeline':!0x0})}),_0x120034['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2f87e1,{writer:_0x360d9a})=>b(_0x2f87e1,_0x360d9a,_0x2ddca8)});}['_defineBogusParagraphConverters'](){const {editor:_0x240d88}=this,{conversion:_0x4b429f}=_0x240d88;_0x240d88['config']['get']('footnotes.multiBlock')?(_0x4b429f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4b429f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x240d88['model']['document'],'change:data',()=>{!function(_0x365661,_0x51b0bd){const _0x3094a7=_0x365661['document']['differ'],_0x4ed6d8=new Set();for(const _0x485c8f of _0x3094a7['getChanges']()){const _0x277c50='attribute'==_0x485c8f['type']?_0x485c8f['range']['start']['parent']:_0x485c8f['position']['parent'];_0x277c50['is']('element','footnoteDefinition')&&_0x4ed6d8['add'](_0x277c50);}for(const _0x2c3adf of _0x4ed6d8['values']()){const _0x1c79ed=Array['from'](_0x2c3adf['getChildren']())['filter'](_0x4de99c=>g(_0x4de99c,_0x51b0bd['mapper']));for(const _0xfcfd6a of _0x1c79ed)_0x51b0bd['reconvertItem'](_0xfcfd6a);}}(_0x240d88['model'],_0x240d88['editing']);})):(_0x4b429f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4b429f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x44f9fa,{writer:_0x1cc59c})=>{const _0x5a181d=_0x1cc59c['createContainerElement']('span');return _0x1cc59c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5a181d),_0x5a181d;}}));}['_defineKeyboardHandlers'](){const {editor:_0x171a5f}=this,{editing:_0x3676f4,t:t}=_0x171a5f,_0x52aced=_0x171a5f['model']['document']['selection'];_0x171a5f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x171a5f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3676f4['view']['document'],'enter',(_0x1bbc35,_0x11e66f)=>{const _0x1290af=function(_0x4bfb1a){const _0x5435d3=_0x4bfb1a['getSelectedElement']();if(_0x5435d3?.['is']('element','footnoteRef'))return _0x5435d3;return null;}(_0x52aced);if(_0x1290af){const _0x261add=_0x1290af['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x261add),_0x11e66f['preventDefault'](),_0x1bbc35['stop']();}},{'context':_0x166c13});}['_defineClickHandlers'](){const {editor:_0xfd2d41}=this,{editing:_0x1a9f7c}=_0xfd2d41;_0xfd2d41['editing']['view']['addObserver'](_0xd04132),_0xfd2d41['editing']['view']['addObserver'](_0x435fdc);let _0x278d46=!0x1;this['listenTo'](_0x1a9f7c['view']['document'],'pointerdown',(_0x324329,_0x2d52c6)=>{const {target:_0x4254c2}=_0x2d52c6,_0x20d4f1=_0x1a9f7c['view']['document']['selection'];_0x278d46=!!(_0x4254c2?.['is']('element','a')&&_0x4254c2['parent']?.['is']('element','sup')&&_0x4254c2['parent']['hasClass']('footnote'))&&_0x20d4f1['getSelectedElement']()===_0x4254c2['parent'];},{'priority':'high'}),this['listenTo'](_0x1a9f7c['view']['document'],'click',(_0xd0ef28,_0xa05b68)=>{const {target:_0x163e04}=_0xa05b68;if(!_0x163e04?.['is']('element','a'))return;if(_0x163e04['parent']?.['is']('element','sup')&&_0x163e04['parent']['hasClass']('footnote')&&!_0x278d46)return void _0xa05b68['preventDefault']();let _0x524206=_0x163e04['getAttribute']('href');if(!_0x524206?.['startsWith']('#'))return;_0x524206=_0x524206['slice'](0x1);let _0x6bb23e=!0x1;(_0x524206['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x524206['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x524206))&&(_0x6bb23e=!0x0),_0x6bb23e&&(_0xa05b68['preventDefault'](),_0xd0ef28['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x322ca4}={}){return(_0xceb99f,{writer:_0x5c36b3})=>{if(!p(_0xceb99f))return null;if(!_0x322ca4)return _0x5c36b3['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x42dd6e=_0x5c36b3['createContainerElement']('p');return _0x5c36b3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x42dd6e),_0x42dd6e;};}function p(_0x279edd){const {parent:_0x20974f}=_0x279edd;if(!_0x20974f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x20974f['childCount'])return!0x1;for(const _0x5dd754 of _0x279edd['getAttributeKeys']())if(!_0x5dd754['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5dd754)return!0x1;return!0x0;}function g(_0x30c4b8,_0x486cc9){if(!_0x30c4b8['is']('element','paragraph'))return!0x1;const _0x21c311=_0x486cc9['toViewElement'](_0x30c4b8);return!!_0x21c311&&p(_0x30c4b8)!==_0x21c311['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x273b12){return _0x166c13(_0x273b12)&&_0x273b12['is']('containerElement')&&!!_0x273b12['getCustomProperty']('footnotesDefinitions');}function v(_0x1894da,_0x426233={}){const _0x330b81=_0x1894da['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x11a207=_0x1894da['createContainerElement']('ol',{'class':'footnotes-list'},_0x1894da['createSlot']());return _0x1894da['createContainerElement']('div',{'class':'footnotes',..._0x426233},[_0x330b81,_0x11a207]);}function D(_0x386b2c,_0x3a1e7f){const _0x1aee45=_0x386b2c['getAttribute']('footnoteId'),_0x52d21b=_0x386b2c['getAttribute']('footnoteCounter'),_0x256166=_0x3a1e7f['createUIElement']('a',{'href':'#'+_0x1aee45},function(_0x4e669f){const _0x473153=this['toDomElement'](_0x4e669f);return _0x473153['textContent']=_0x52d21b,_0x473153;}),_0x3d1cd2=_0x3a1e7f['createContainerElement']('sup',{'id':'ref-'+_0x1aee45,'class':'footnote'},[_0x256166]);return _0x3d1cd2['getFillerOffset']=()=>null,_0x3d1cd2;}function b(_0x4a580f,_0x37343e,_0x2b6759,{dataPipeline:_0x580224}={}){const {t:t}=_0x2b6759,_0x25340e=_0x4a580f['getAttribute']('footnoteId'),_0x4cd09c=_0x37343e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x25340e},function(_0x592b62){const _0xf5f557=this['toDomElement'](_0x592b62);return _0xf5f557['innerText']='^',_0xf5f557;}),_0x21e525=_0x580224?_0x37343e['createContainerElement']('div',{'class':'footnote-content'}):_0x3d2a3b(_0x37343e['createEditableElement']('div',{'class':'footnote-content'}),_0x37343e,{'label':t('Footnote\x20content.')});return _0x37343e['insert'](_0x37343e['createPositionAt'](_0x21e525,0x0),_0x37343e['createSlot']()),_0x37343e['createContainerElement']('li',{'class':'footnote-definition','id':_0x25340e},[_0x4cd09c,_0x21e525]);}
23
+ import{Plugin as _0xfb20bf}from'ckeditor5/src/core.js';import{isWidget as _0x47223d,toWidget as _0x5685ec,toWidgetEditable as _0x290171}from'ckeditor5/src/widget.js';import{uid as _0x558fd9}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4e57fa,ClickObserver as _0x19db40}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2629f8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4bc514}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xfb20bf{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2629f8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a40de}=this;_0x1a40de['config']['define']('footnotes.multiBlock',!0x0),_0x1a40de['commands']['add']('insertFootnote',new _0x4bc514(_0x1a40de)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x49a6ba){const _0x4f59f2=_0x252b2e([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x313922=0x47a28506,_0x282dd5=0x47a5fefe^_0x313922,_0x6dab04=window[_0x252b2e([0x44,0x61,0x74,0x65])][_0x252b2e([0x6e,0x6f,0x77])](),_0x4c6958=_0x49a6ba[_0x252b2e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f7b4=new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50c857=>{_0x4c6958[_0x252b2e([0x6f,0x6e,0x63,0x65])](_0x252b2e([0x72,0x65,0x61,0x64,0x79]),_0x50c857);}),_0x1bb53c={[_0x252b2e([0x6b,0x74,0x79])]:_0x252b2e([0x45,0x43]),[_0x252b2e([0x75,0x73,0x65])]:_0x252b2e([0x73,0x69,0x67]),[_0x252b2e([0x63,0x72,0x76])]:_0x252b2e([0x50,0x2d,0x32,0x35,0x36]),[_0x252b2e([0x78])]:_0x252b2e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x252b2e([0x79])]:_0x252b2e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x252b2e([0x61,0x6c,0x67])]:_0x252b2e([0x45,0x53,0x32,0x35,0x36])},_0x43fe15=_0x4c6958[_0x252b2e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x252b2e([0x67,0x65,0x74])](_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38c41e(){let _0x2b5d5c,_0x41282e=null,_0x2e79a0=null;try{if(_0x43fe15==_0x252b2e([0x47,0x50,0x4c]))return _0x252b2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b5d5c=_0x456ba2(),!_0x2b5d5c)return _0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b5d5c[_0x252b2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e79a0=_0x224716(_0x2b5d5c[_0x252b2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b5d5c[_0x252b2e([0x6a,0x74,0x69])])),await _0x22815e()?_0xe71c1b()?_0x4167f2()?_0x252b2e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58b7d4()?(_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x252b2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41282e=_0x3f5587(_0x252b2e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x252b2e([0x74,0x72,0x69,0x61,0x6c])&&(_0x41282e=_0x3f5587(_0x252b2e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b896d()):_0x252b2e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x252b2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4167f2(){const _0x459f68=[_0x252b2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x252b2e([0x74,0x72,0x69,0x61,0x6c])][_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6dab04/0x3e8:0xe10*_0x282dd5;return _0x2b5d5c[_0x252b2e([0x65,0x78,0x70])]<_0x459f68;}function _0xe71c1b(){const _0x940c8b=_0x2b5d5c[_0x252b2e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x940c8b&&(!!_0x940c8b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x2a]))||!!_0x940c8b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x46,0x4f,0x4f])));}function _0x58b7d4(){const _0x37219b=_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37219b||0x0==_0x37219b[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x268b5}=new URL(window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37219b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268b5))return!0x0;const _0x450849=_0x268b5[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e]));return _0x37219b[_0x252b2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33f3d9=>_0x33f3d9[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x2a])))[_0x252b2e([0x6d,0x61,0x70])](_0x1d7190=>_0x1d7190[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e])))[_0x252b2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59fe6e=>_0x59fe6e[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x450849[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x252b2e([0x6d,0x61,0x70])](_0x61659c=>Array(_0x450849[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x61659c[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x252b2e([0x66,0x69,0x6c,0x6c])](_0x61659c[0x0]===_0x252b2e([0x2a])?_0x252b2e([0x2a]):'')[_0x252b2e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x61659c))[_0x252b2e([0x73,0x6f,0x6d,0x65])](_0x37ccf7=>_0x450849[_0x252b2e([0x65,0x76,0x65,0x72,0x79])]((_0x8357ba,_0x21aa93)=>_0x37ccf7[_0x21aa93]===_0x8357ba||_0x37ccf7[_0x21aa93]===_0x252b2e([0x2a])));}function _0x1b896d(){return _0x41282e&&_0x2e79a0?new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6e57ea,_0x290e2c)=>{_0x41282e[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x6e57ea,_0x290e2c),_0x2e79a0[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x2ccd95=>{_0x2ccd95!=_0x252b2e([0x56,0x61,0x6c,0x69,0x64])&&_0x6e57ea(_0x2ccd95);},_0x290e2c);}):_0x41282e||_0x2e79a0||_0x252b2e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x224716(_0x2f4dcb,_0xa0648e){return new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bb9f1=>{if(_0x16aff2())return _0x3bb9f1(_0x252b2e([0x56,0x61,0x6c,0x69,0x64]));_0x4354f3(),_0x4c6958[_0x252b2e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d29ac=!0x1;const _0x127a23=_0x558fd9();function _0x2198a9(_0x5b46fa){return!!_0x5b46fa&&(typeof _0x5b46fa===_0x252b2e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b46fa===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b46fa[_0x252b2e([0x74,0x68,0x65,0x6e])]===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b46fa[_0x252b2e([0x63,0x61,0x74,0x63,0x68])]===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f217c(_0xf5682f){_0x4d51fd(_0xf5682f)[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x2d5783=>{if(!_0x2d5783||_0x2d5783[_0x252b2e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x252b2e([0x6f,0x6b]))return _0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b1440(_0x1765b9(_0x127a23+_0xa0648e))!=_0x2d5783[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x252b2e([0x56,0x61,0x6c,0x69,0x64]);})[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x17cb1f=>(_0x396990(),_0x17cb1f),()=>{const _0x4ae8ac=_0xc78bc();return null==_0x4ae8ac?(_0x396990(),_0x252b2e([0x56,0x61,0x6c,0x69,0x64])):_0x252b2e(_0x6dab04-_0x4ae8ac>(0x63ae0106^_0x313922)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x3bb9f1)[_0x252b2e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a9325=0x47946b86^_0x313922;function _0x396990(){const _0x34cc6c=_0x252b2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1440(_0x1765b9(_0x2f4dcb)),_0x2749a5=_0x6ef400(_0x3b1440(window[_0x252b2e([0x4d,0x61,0x74,0x68])][_0x252b2e([0x63,0x65,0x69,0x6c])](_0x6dab04/_0x5a9325)));window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x252b2e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34cc6c,_0x2749a5);}function _0xc78bc(){const _0x4300af=_0x252b2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1440(_0x1765b9(_0x2f4dcb)),_0x484549=window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x252b2e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4300af);return _0x484549?window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6ef400(_0x484549),0x10)*_0x5a9325:null;}function _0x4d51fd(_0x332eeb){return new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x196051,_0xaf8dad)=>{_0x332eeb[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x196051,_0xaf8dad),window[_0x252b2e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaf8dad,0x47a351c6^_0x313922);});}}_0x4c6958[_0x252b2e([0x6f,0x6e])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb241e1,_0x20b5c7)=>{if(_0x20b5c7[0x0]!=_0x2f4dcb)return _0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20b5c7[0x1]={..._0x20b5c7[0x1],[_0x252b2e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x127a23};},{[_0x252b2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x252b2e([0x68,0x69,0x67,0x68])}),_0x4c6958[_0x252b2e([0x6f,0x6e])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc0c77a=>{_0x2198a9(_0xc0c77a[_0x252b2e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d29ac=!0x0,_0x3f217c(_0xc0c77a[_0x252b2e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x252b2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x252b2e([0x6c,0x6f,0x77])}),_0x19f7b4[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>{_0x1d29ac||_0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16aff2(){return _0x4c6958[_0x252b2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x252b2e([0x76,0x69,0x65,0x77])][_0x252b2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x252b2e([0x61,0x75,0x74,0x6f]);}function _0x4354f3(){_0x4c6958[_0x252b2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x252b2e([0x76,0x69,0x65,0x77])][_0x252b2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x252b2e([0x61,0x75,0x74,0x6f]);}}function _0x3f5587(_0x906b1e){const _0xa1519b=[new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355942=>setTimeout(_0x355942,0x47abbbca^_0x313922)),_0x19f7b4[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28ff7e=>{let _0x29ab0e=0x0;_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x6f,0x6e])](_0x252b2e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35d2c5,_0x4d3caa)=>{_0x4d3caa[0x0][_0x252b2e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29ab0e++,_0x29ab0e==(0x47a284fe^_0x313922)&&(_0x28ff7e(),_0x35d2c5[_0x252b2e([0x6f,0x66,0x66])]());});}))];return window[_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x252b2e([0x72,0x61,0x63,0x65])](_0xa1519b)[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>_0x906b1e);}async function _0x1d5d80(){await _0x19f7b4,_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d2e8c,_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d2e8c,_0x4c6958[_0x252b2e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3aaac3(_0x1cf733){const _0x554986=_0x2dfa86();_0x4c6958[_0x554986]=_0x252b2e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cf733,_0x1cf733!=_0x252b2e([0x56,0x61,0x6c,0x69,0x64])&&_0x1d5d80();}function _0x2dfa86(){const _0x8bfc92=window[_0x252b2e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x252b2e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x252b2e([0x6e,0x6f,0x77])]())[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x252b2e([0x2e]),'');let _0x3b9756=_0x252b2e([0x75]);for(let _0x19bebe=0x0;_0x19bebe<_0x8bfc92[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19bebe+=0x2){let _0x3f42c5=window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bfc92[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19bebe,_0x19bebe+0x2));_0x3f42c5>=_0x4f59f2[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f42c5-=_0x4f59f2[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b9756+=_0x4f59f2[_0x3f42c5];}return _0x3b9756;}function _0x456ba2(){const _0x348fd3=_0x43fe15[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e]));if(0x3!=_0x348fd3[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fe9ad(_0x348fd3[0x1]);function _0x4fe9ad(_0xe21db9){const _0x93bc77=_0x5170c4(_0xe21db9);return _0x93bc77&&_0x449d56()?_0x93bc77:null;function _0x449d56(){const _0x287cf1=_0x93bc77[_0x252b2e([0x6a,0x74,0x69])],_0x26e112=window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287cf1[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287cf1[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51bab7={..._0x93bc77,[_0x252b2e([0x6a,0x74,0x69])]:_0x287cf1[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x287cf1[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51bab7[_0x252b2e([0x76,0x63])],_0x1765b9(_0x51bab7)==_0x26e112;}}}async function _0x22815e(){let _0x16c800=!0x0;try{const _0x5b3219=_0x43fe15[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e])),[_0x848c3a,_0x5b81e9,_0x5a2f51]=_0x5b3219;return _0x54172c(_0x848c3a),await _0x5e627c(_0x848c3a,_0x5b81e9,_0x5a2f51),_0x16c800;}catch{return!0x1;}function _0x54172c(_0x311ff9){const _0x965626=_0x5170c4(_0x311ff9);_0x965626&&_0x965626[_0x252b2e([0x61,0x6c,0x67])]==_0x252b2e([0x45,0x53,0x32,0x35,0x36])||(_0x16c800=!0x1);}async function _0x5e627c(_0x31619d,_0x1da295,_0x278745){const _0x4d8329=window[_0x252b2e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x252b2e([0x66,0x72,0x6f,0x6d])](_0x129f95(_0x278745),_0x5d3900=>_0x5d3900[_0x252b2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c4442=new window[(_0x252b2e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x252b2e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31619d+_0x252b2e([0x2e])+_0x1da295),_0x23e185=window[_0x252b2e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x252b2e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23e185)return;const _0x23fa4d=await _0x23e185[_0x252b2e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x252b2e([0x6a,0x77,0x6b]),_0x1bb53c,{[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x45,0x43,0x44,0x53,0x41]),[_0x252b2e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x252b2e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23e185[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x45,0x43,0x44,0x53,0x41]),[_0x252b2e([0x68,0x61,0x73,0x68])]:{[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23fa4d,_0x4d8329,_0x1c4442)||(_0x16c800=!0x1);}}function _0x5170c4(_0x2960f5){return _0x2960f5[_0x252b2e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x252b2e([0x65,0x79]))?JSON[_0x252b2e([0x70,0x61,0x72,0x73,0x65])](_0x129f95(_0x2960f5)):null;}function _0x129f95(_0x520796){return window[_0x252b2e([0x61,0x74,0x6f,0x62])](_0x520796[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x252b2e([0x2b]))[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x252b2e([0x2f])));}function _0x1765b9(_0x137abc){let _0x5920ea=0x1505;function _0x5c2eba(_0x782214){for(let _0x153ce9=0x0;_0x153ce9<_0x782214[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x153ce9++){const _0x493db0=_0x782214[_0x252b2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x153ce9);_0x5920ea=(_0x5920ea<<0x5)+_0x5920ea+_0x493db0,_0x5920ea&=_0x5920ea;}}function _0x428771(_0x3bcb10){Array[_0x252b2e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3bcb10)?_0x3bcb10[_0x252b2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x428771):_0x3bcb10&&typeof _0x3bcb10==_0x252b2e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x252b2e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3bcb10)[_0x252b2e([0x73,0x6f,0x72,0x74])]()[_0x252b2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11b182,_0x2b0638])=>{_0x5c2eba(_0x11b182),_0x428771(_0x2b0638);}):_0x5c2eba(window[_0x252b2e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3bcb10));}return _0x428771(_0x137abc),_0x5920ea>>>0x0;}function _0x3b1440(_0x37a455){return _0x37a455[_0x252b2e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x252b2e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x252b2e([0x30]));}function _0x6ef400(_0x27ede2){return _0x27ede2[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x252b2e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x252b2e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d2e8c(){}function _0x252b2e(_0x1df15d){return _0x1df15d['map'](_0x4c2b5d=>String['fromCharCode'](_0x4c2b5d))['join']('');}_0x3aaac3(await _0x38c41e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x227f3e){const {plugins:_0x4a3d15,editing:_0x2e810b,model:_0x326bd1}=this['editor'],_0x1f95dc=_0x4a3d15['get'](_0x2629f8)['getFootnote'](_0x227f3e);return!!_0x1f95dc&&(_0x326bd1['change'](_0x16e0c3=>{_0x16e0c3['setSelection'](_0x16e0c3['createPositionAt'](_0x1f95dc['definition'],'end'));}),_0x2e810b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2db42d){const {plugins:_0x579efd,editing:_0x144b16,model:_0x4c8709}=this['editor'],_0x29e75a=_0x579efd['get'](_0x2629f8)['getFootnote'](_0x2db42d);return!!_0x29e75a&&(_0x4c8709['change'](_0x2ff1c4=>{_0x2ff1c4['setSelection'](_0x29e75a['reference'],'on');}),_0x144b16['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x19e54f}=this['editor']['model'],_0x13648d=this['editor']['config']['get']('footnotes.multiBlock');_0x19e54f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x19e54f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x19e54f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x13648d?_0x19e54f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x19e54f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x19e54f['addChildCheck'](_0x1b54eb=>{for(const _0x2f6bae of _0x1b54eb)if('footnoteDefinition'===_0x2f6bae['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5d3ca1}=this,{conversion:_0x299eb4,editing:_0x2995da}=_0x5d3ca1,{t:t}=_0x5d3ca1['locale'];_0x299eb4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x582b94,{writer:_0x258b55,consumable:_0x5072d6})=>{const _0x3e198b=_0x582b94['getChild'](0x0);if(!_0x3e198b||!_0x3e198b['is']('element','a'))return null;const _0x414aaa=_0x3e198b['getAttribute']('href')||'';if(!_0x414aaa['startsWith']('#'))return null;const _0x2c3e6a=_0x414aaa['replace'](/^#/,'');if(!_0x2c3e6a)return null;_0x5072d6['consume'](_0x3e198b,{'name':!0x0,'attributes':['href']});for(const {item:_0x1ad04e}of _0x2995da['view']['createRangeIn'](_0x3e198b))_0x1ad04e['is']('$textProxy')?_0x5072d6['consume'](_0x1ad04e['textNode'],{'name':!0x0}):_0x1ad04e['is']('element')&&_0x5072d6['consume'](_0x1ad04e,{'name':!0x0});return _0x258b55['createElement']('footnoteRef',{'footnoteId':_0x2c3e6a});}}),_0x299eb4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19bc01,{writer:_0x5c6c9b})=>D(_0x19bc01,_0x5c6c9b)}),_0x299eb4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5632d0,{writer:_0x4a9eff})=>{const _0x7bf603=_0x5632d0['getAttribute']('footnoteCounter');return _0x5685ec(D(_0x5632d0,_0x4a9eff),_0x4a9eff,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x7bf603)});}});}['_defineDefinitionsConverters'](){const {editor:_0x15e60d}=this,{t:t}=_0x15e60d['locale'],{conversion:_0x16edd4}=_0x15e60d;_0x16edd4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x16edd4['for']('upcast')['add'](_0xca531a=>{_0xca531a['on']('element:ol',(_0x345c1e,_0x13e2cc,_0x3ff56c)=>{const _0xa85229=_0x13e2cc['viewItem'];if(!_0xa85229['hasClass']('footnotes-list')||!_0x13e2cc['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3ff56c['consumable']['consume'](_0xa85229,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x50869e,modelCursor:_0x34b3e1}=_0x3ff56c['convertChildren'](_0x13e2cc['viewItem'],_0x13e2cc['modelCursor']);_0x13e2cc['modelRange']=_0x50869e,_0x13e2cc['modelCursor']=_0x34b3e1;}),_0xca531a['on']('element:hr',(_0x5d3e0a,_0x1ad08c,_0xf1da1)=>{const _0x493e6e=_0x1ad08c['viewItem'];_0x493e6e['hasClass']('footnotes-divider')&&_0x1ad08c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xf1da1['consumable']['consume'](_0x493e6e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x16edd4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2bcbe1,{writer:_0x1a6a9b})=>v(_0x1a6a9b)}),_0x16edd4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x56903b,{writer:_0x19302c})=>{const _0x45e5f1=v(_0x19302c,{'data-footnotes-list-label':t('Footnotes')}),_0x56334=_0x5685ec(_0x45e5f1,_0x19302c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x19302c['setCustomProperty']('footnotesDefinitions',!0x0,_0x56334),_0x56334;}});}['_defineDefinitionConverters'](){const {editor:_0x476c46}=this,{conversion:_0x3f1261,locale:_0x3c6a9e}=_0x476c46,_0x502c22=_0x476c46['config']['get']('footnotes.multiBlock');_0x3f1261['for']('upcast')['add'](_0x2cbeb9=>{_0x2cbeb9['on']('element:li',(_0x49fe23,_0x5461f7,_0x251c63)=>{const _0x5b5018=_0x5461f7['viewItem'];if(!_0x5b5018['hasClass']('footnote-definition')||!_0x5b5018['getAttribute']('id'))return;const _0x37470d=_0x5b5018['parent'];if(!_0x37470d['is']('element','ol')||!_0x37470d['hasClass']('footnotes-list'))return;if(!_0x251c63['consumable']['test'](_0x5b5018,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x100ea2=_0x251c63['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5b5018['getAttribute']('id')});if(!_0x251c63['safeInsert'](_0x100ea2,_0x5461f7['modelCursor']))return;_0x251c63['consumable']['consume'](_0x5b5018,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x467973=Array['from'](_0x5b5018['getChildren']())['find'](_0x471093=>_0x471093['is']('element')&&_0x471093['hasClass']('footnote-content'));for(const _0x386d15 of _0x5b5018['getChildren']())_0x386d15['is']('element')&&(_0x251c63['consumable']['consume'](_0x386d15,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x251c63['consumable']['consume'](_0x386d15,{'name':!0x0,'classes':'footnote-content'}));if(_0x467973){if(_0x502c22)_0x251c63['convertChildren'](_0x467973,_0x100ea2);else{const _0x4c5368=_0x251c63['writer']['createElement']('footnoteInlineContent');_0x251c63['writer']['insert'](_0x4c5368,_0x100ea2),_0x251c63['convertChildren'](_0x467973,_0x4c5368);}}_0x251c63['updateConversionResult'](_0x100ea2,_0x5461f7);});}),_0x3f1261['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d860f,{writer:_0x42ce16})=>b(_0x4d860f,_0x42ce16,_0x3c6a9e,{'dataPipeline':!0x0})}),_0x3f1261['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3534d5,{writer:_0x59a45f})=>b(_0x3534d5,_0x59a45f,_0x3c6a9e)});}['_defineBogusParagraphConverters'](){const {editor:_0x1f6fb8}=this,{conversion:_0xb2f9b6}=_0x1f6fb8;_0x1f6fb8['config']['get']('footnotes.multiBlock')?(_0xb2f9b6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0xb2f9b6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1f6fb8['model']['document'],'change:data',()=>{!function(_0x199dd7,_0x3d983b){const _0x463a3a=_0x199dd7['document']['differ'],_0x264976=new Set();for(const _0x13b12a of _0x463a3a['getChanges']()){const _0x38ae4c='attribute'==_0x13b12a['type']?_0x13b12a['range']['start']['parent']:_0x13b12a['position']['parent'];_0x38ae4c['is']('element','footnoteDefinition')&&_0x264976['add'](_0x38ae4c);}for(const _0x2627b1 of _0x264976['values']()){const _0x3f9d3b=Array['from'](_0x2627b1['getChildren']())['filter'](_0x1c34a4=>g(_0x1c34a4,_0x3d983b['mapper']));for(const _0x2b0d2f of _0x3f9d3b)_0x3d983b['reconvertItem'](_0x2b0d2f);}}(_0x1f6fb8['model'],_0x1f6fb8['editing']);})):(_0xb2f9b6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0xb2f9b6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xad51ac,{writer:_0x588d34})=>{const _0x23b082=_0x588d34['createContainerElement']('span');return _0x588d34['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23b082),_0x23b082;}}));}['_defineKeyboardHandlers'](){const {editor:_0x455ff4}=this,{editing:_0x3d726f,t:t}=_0x455ff4,_0x808375=_0x455ff4['model']['document']['selection'];_0x455ff4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x455ff4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3d726f['view']['document'],'enter',(_0x46f22a,_0x2b873a)=>{const _0x2cae1d=function(_0x5afb98){const _0x578e00=_0x5afb98['getSelectedElement']();if(_0x578e00?.['is']('element','footnoteRef'))return _0x578e00;return null;}(_0x808375);if(_0x2cae1d){const _0x393cf3=_0x2cae1d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x393cf3),_0x2b873a['preventDefault'](),_0x46f22a['stop']();}},{'context':_0x47223d});}['_defineClickHandlers'](){const {editor:_0x23b5f5}=this,{editing:_0x41ccce}=_0x23b5f5;_0x23b5f5['editing']['view']['addObserver'](_0x4e57fa),_0x23b5f5['editing']['view']['addObserver'](_0x19db40);let _0x5d23a1=!0x1;this['listenTo'](_0x41ccce['view']['document'],'pointerdown',(_0x5a3e63,_0x1780af)=>{const {target:_0x559031}=_0x1780af,_0x23e875=_0x41ccce['view']['document']['selection'];_0x5d23a1=!!(_0x559031?.['is']('element','a')&&_0x559031['parent']?.['is']('element','sup')&&_0x559031['parent']['hasClass']('footnote'))&&_0x23e875['getSelectedElement']()===_0x559031['parent'];},{'priority':'high'}),this['listenTo'](_0x41ccce['view']['document'],'click',(_0x434e06,_0x582453)=>{const {target:_0x45d508}=_0x582453;if(!_0x45d508?.['is']('element','a'))return;if(_0x45d508['parent']?.['is']('element','sup')&&_0x45d508['parent']['hasClass']('footnote')&&!_0x5d23a1)return void _0x582453['preventDefault']();let _0x802921=_0x45d508['getAttribute']('href');if(!_0x802921?.['startsWith']('#'))return;_0x802921=_0x802921['slice'](0x1);let _0x45d85c=!0x1;(_0x802921['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x802921['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x802921))&&(_0x45d85c=!0x0),_0x45d85c&&(_0x582453['preventDefault'](),_0x434e06['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1c0a0e}={}){return(_0x1b7006,{writer:_0x219937})=>{if(!p(_0x1b7006))return null;if(!_0x1c0a0e)return _0x219937['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x12c844=_0x219937['createContainerElement']('p');return _0x219937['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x12c844),_0x12c844;};}function p(_0x116abd){const {parent:_0x1e6aa3}=_0x116abd;if(!_0x1e6aa3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e6aa3['childCount'])return!0x1;for(const _0x35080d of _0x116abd['getAttributeKeys']())if(!_0x35080d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x35080d)return!0x1;return!0x0;}function g(_0x60fb50,_0xd406bd){if(!_0x60fb50['is']('element','paragraph'))return!0x1;const _0x390402=_0xd406bd['toViewElement'](_0x60fb50);return!!_0x390402&&p(_0x60fb50)!==_0x390402['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x45de52){return _0x47223d(_0x45de52)&&_0x45de52['is']('containerElement')&&!!_0x45de52['getCustomProperty']('footnotesDefinitions');}function v(_0x461fe9,_0x38f876={}){const _0x560f5b=_0x461fe9['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1175de=_0x461fe9['createContainerElement']('ol',{'class':'footnotes-list'},_0x461fe9['createSlot']());return _0x461fe9['createContainerElement']('div',{'class':'footnotes',..._0x38f876},[_0x560f5b,_0x1175de]);}function D(_0x598a8a,_0x45289d){const _0xabf224=_0x598a8a['getAttribute']('footnoteId'),_0x20502a=_0x598a8a['getAttribute']('footnoteCounter'),_0x2c64d4=_0x45289d['createUIElement']('a',{'href':'#'+_0xabf224},function(_0x2b0c3f){const _0x33bf38=this['toDomElement'](_0x2b0c3f);return _0x33bf38['textContent']=_0x20502a,_0x33bf38;}),_0xff1632=_0x45289d['createContainerElement']('sup',{'id':'ref-'+_0xabf224,'class':'footnote'},[_0x2c64d4]);return _0xff1632['getFillerOffset']=()=>null,_0xff1632;}function b(_0x388d71,_0x2c4dc0,_0x124716,{dataPipeline:_0x574735}={}){const {t:t}=_0x124716,_0x4b6749=_0x388d71['getAttribute']('footnoteId'),_0xfbe56a=_0x2c4dc0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4b6749},function(_0x66dc8a){const _0x4b5f42=this['toDomElement'](_0x66dc8a);return _0x4b5f42['innerText']='^',_0x4b5f42;}),_0x2d4f5a=_0x574735?_0x2c4dc0['createContainerElement']('div',{'class':'footnote-content'}):_0x290171(_0x2c4dc0['createEditableElement']('div',{'class':'footnote-content'}),_0x2c4dc0,{'label':t('Footnote\x20content.')});return _0x2c4dc0['insert'](_0x2c4dc0['createPositionAt'](_0x2d4f5a,0x0),_0x2c4dc0['createSlot']()),_0x2c4dc0['createContainerElement']('li',{'class':'footnote-definition','id':_0x4b6749},[_0xfbe56a,_0x2d4f5a]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d5d(_0x5a509a,_0x4bf709){const _0x44981a=_0x4498();return _0x5d5d=function(_0x5d5d8e,_0x4d7863){_0x5d5d8e=_0x5d5d8e-0x1d0;let _0x1acc9c=_0x44981a[_0x5d5d8e];return _0x1acc9c;},_0x5d5d(_0x5a509a,_0x4bf709);}function _0x4498(){const _0x2b02b7=['6087OaZRfV','752288ojsOcj','setAttribute','get','8376685ibvfTo','20HWrzLg','45Zkrsjf','model','isEnabled','plugins','footnotesListStart','isInteger','200235ZAeeFR','value','62611410XrcTGI','getFootnotesDefinitionsObjectElement','_updateFootnotesCounters','16klxujb','9942793bCnSdy','7917372IAodTg','refresh','execute','change','getAttribute'];_0x4498=function(){return _0x2b02b7;};return _0x4498();}const _0x333e03=_0x5d5d;(function(_0x10cbe9,_0x1da148){const _0x3cb19a=_0x5d5d,_0x44e217=_0x10cbe9();while(!![]){try{const _0x3a5ec5=parseInt(_0x3cb19a(0x1dd))/0x1*(-parseInt(_0x3cb19a(0x1d6))/0x2)+-parseInt(_0x3cb19a(0x1d1))/0x3*(parseInt(_0x3cb19a(0x1e2))/0x4)+-parseInt(_0x3cb19a(0x1e1))/0x5+-parseInt(_0x3cb19a(0x1d8))/0x6+-parseInt(_0x3cb19a(0x1d7))/0x7+-parseInt(_0x3cb19a(0x1de))/0x8*(parseInt(_0x3cb19a(0x1e3))/0x9)+parseInt(_0x3cb19a(0x1d3))/0xa;if(_0x3a5ec5===_0x1da148)break;else _0x44e217['push'](_0x44e217['shift']());}catch(_0x2bbcf6){_0x44e217['push'](_0x44e217['shift']());}}}(_0x4498,0xf27da));import{Command as _0x37d8f8}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x2913b7}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x37d8f8{[_0x333e03(0x1d9)](){const _0x5b431=_0x333e03,{editor:_0x3700a9}=this,_0x4dc80b=_0x3700a9[_0x5b431(0x1e6)][_0x5b431(0x1e0)](_0x2913b7)[_0x5b431(0x1d4)]();this[_0x5b431(0x1e5)]=!!_0x4dc80b,this[_0x5b431(0x1d2)]=_0x4dc80b?.[_0x5b431(0x1dc)](_0x5b431(0x1e7))??null;}[_0x333e03(0x1da)]({value:_0x3cb94b}){const _0x233a39=_0x333e03,{editor:_0x1d5686}=this,_0x2153d0=_0x1d5686[_0x233a39(0x1e6)][_0x233a39(0x1e0)](_0x2913b7),_0x48bb18=_0x2153d0[_0x233a39(0x1d4)]();_0x48bb18&&Number[_0x233a39(0x1d0)](_0x3cb94b)&&_0x1d5686[_0x233a39(0x1e4)][_0x233a39(0x1db)](_0x14dfb1=>{const _0xb9f32f=_0x233a39;_0x14dfb1[_0xb9f32f(0x1df)](_0xb9f32f(0x1e7),_0x3cb94b,_0x48bb18),_0x2153d0[_0xb9f32f(0x1d5)](_0x14dfb1);});}}
23
+ const _0x5730fd=_0xc4e9;(function(_0x3fa994,_0x194316){const _0x3ce35d=_0xc4e9,_0x3c4813=_0x3fa994();while(!![]){try{const _0x7d247b=-parseInt(_0x3ce35d(0x90))/0x1+-parseInt(_0x3ce35d(0x97))/0x2*(-parseInt(_0x3ce35d(0xa1))/0x3)+-parseInt(_0x3ce35d(0x94))/0x4+parseInt(_0x3ce35d(0x96))/0x5*(-parseInt(_0x3ce35d(0x8b))/0x6)+parseInt(_0x3ce35d(0x92))/0x7+parseInt(_0x3ce35d(0x9b))/0x8*(-parseInt(_0x3ce35d(0x9f))/0x9)+parseInt(_0x3ce35d(0x89))/0xa*(parseInt(_0x3ce35d(0x8e))/0xb);if(_0x7d247b===_0x194316)break;else _0x3c4813['push'](_0x3c4813['shift']());}catch(_0x4dfe47){_0x3c4813['push'](_0x3c4813['shift']());}}}(_0xf6c7,0x86bc8));import{Command as _0x1571ef}from'ckeditor5/src/core.js';function _0xf6c7(){const _0x6a7d74=['model','601857Trufjo','plugins','9pAIHWi','12520490BSGctZ','isEnabled','36dRmmVh','execute','value','22oPeTKo','setAttribute','173214hCDyRB','getAttribute','5407479aKiMxI','getFootnotesDefinitionsObjectElement','3376084DmMiCT','isInteger','889315yFzlxm','241862cfLhEU','footnotesListStart','change','_updateFootnotesCounters','120yIFpoc','refresh','get'];_0xf6c7=function(){return _0x6a7d74;};return _0xf6c7();}function _0xc4e9(_0x4ac4ed,_0x399b01){const _0xf6c76d=_0xf6c7();return _0xc4e9=function(_0xc4e9a3,_0x42026a){_0xc4e9a3=_0xc4e9a3-0x89;let _0x277117=_0xf6c76d[_0xc4e9a3];return _0x277117;},_0xc4e9(_0x4ac4ed,_0x399b01);}import{FootnotesTracker as _0xbc777f}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x1571ef{[_0x5730fd(0x9c)](){const _0x42a74e=_0x5730fd,{editor:_0xa8b05}=this,_0x930589=_0xa8b05[_0x42a74e(0xa0)][_0x42a74e(0x9d)](_0xbc777f)[_0x42a74e(0x93)]();this[_0x42a74e(0x8a)]=!!_0x930589,this[_0x42a74e(0x8d)]=_0x930589?.[_0x42a74e(0x91)](_0x42a74e(0x98))??null;}[_0x5730fd(0x8c)]({value:_0x3da359}){const _0x3e81e0=_0x5730fd,{editor:_0x3ba1bb}=this,_0x323813=_0x3ba1bb[_0x3e81e0(0xa0)][_0x3e81e0(0x9d)](_0xbc777f),_0x1bf790=_0x323813[_0x3e81e0(0x93)]();_0x1bf790&&Number[_0x3e81e0(0x95)](_0x3da359)&&_0x3ba1bb[_0x3e81e0(0x9e)][_0x3e81e0(0x99)](_0x10ad94=>{const _0x5bf0b7=_0x3e81e0;_0x10ad94[_0x5bf0b7(0x8f)](_0x5bf0b7(0x98),_0x3da359,_0x1bf790),_0x323813[_0x5bf0b7(0x9a)](_0x10ad94);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39dc64=_0x4b2f;function _0x4b2f(_0x236992,_0x28af75){const _0x465cb3=_0x465c();return _0x4b2f=function(_0x4b2fdb,_0x56dbe2){_0x4b2fdb=_0x4b2fdb-0x158;let _0x2e27ce=_0x465cb3[_0x4b2fdb];return _0x2e27ce;},_0x4b2f(_0x236992,_0x28af75);}(function(_0x27fb2b,_0x2cf2cd){const _0x32ca4f=_0x4b2f,_0x541afb=_0x27fb2b();while(!![]){try{const _0x3c1fab=-parseInt(_0x32ca4f(0x159))/0x1*(-parseInt(_0x32ca4f(0x169))/0x2)+-parseInt(_0x32ca4f(0x166))/0x3*(parseInt(_0x32ca4f(0x15d))/0x4)+parseInt(_0x32ca4f(0x167))/0x5+-parseInt(_0x32ca4f(0x16f))/0x6+-parseInt(_0x32ca4f(0x16a))/0x7+parseInt(_0x32ca4f(0x15b))/0x8*(parseInt(_0x32ca4f(0x15c))/0x9)+parseInt(_0x32ca4f(0x161))/0xa;if(_0x3c1fab===_0x2cf2cd)break;else _0x541afb['push'](_0x541afb['shift']());}catch(_0x230c16){_0x541afb['push'](_0x541afb['shift']());}}}(_0x465c,0x5c0f8));import{Command as _0xa59399}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x7c22e3}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0xee873d}from'../../footnotestracker.js';function _0x465c(){const _0x3c72ff=['6096560vvhnNC','isEnabled','plugins','includes','refresh','53349arEBrX','1467935NuVvXU','value','12826ZRcDfx','5080516wrWTAf','get','model','getFootnotesDefinitionsObjectElement','footnotesListStyle','1575810yeMnfR','getAttribute','98MmEYEP','setAttribute','56oEsctK','312165mucPXU','92qTDifL','execute','_updateFootnotesCounters','change'];_0x465c=function(){return _0x3c72ff;};return _0x465c();}export class FootnotesStyleCommand extends _0xa59399{[_0x39dc64(0x165)](){const _0x18124e=_0x39dc64,{editor:_0x4bc363}=this,_0x18f777=_0x4bc363[_0x18124e(0x163)][_0x18124e(0x16b)](_0xee873d)[_0x18124e(0x16d)]();this[_0x18124e(0x162)]=!!_0x18f777,this[_0x18124e(0x168)]=_0x18f777?.[_0x18124e(0x158)](_0x18124e(0x16e))??null;}[_0x39dc64(0x15e)]({value:_0x597e92}){const _0x1986fc=_0x39dc64,{editor:_0x4711cf}=this,_0x4caece=_0x4711cf[_0x1986fc(0x163)][_0x1986fc(0x16b)](_0xee873d),_0x3b4334=_0x4caece[_0x1986fc(0x16d)]();_0x3b4334&&_0x7c22e3[_0x1986fc(0x164)](_0x597e92)&&_0x4711cf[_0x1986fc(0x16c)][_0x1986fc(0x160)](_0x2d348e=>{const _0x1223d8=_0x1986fc;_0x2d348e[_0x1223d8(0x15a)](_0x1223d8(0x16e),_0x597e92,_0x3b4334),_0x4caece[_0x1223d8(0x15f)](_0x2d348e);});}}
23
+ function _0x476c(_0x4a666e,_0x1be1ae){const _0x4842ca=_0x4842();return _0x476c=function(_0x476cc7,_0x589a5f){_0x476cc7=_0x476cc7-0xfe;let _0x1a06b1=_0x4842ca[_0x476cc7];return _0x1a06b1;},_0x476c(_0x4a666e,_0x1be1ae);}const _0x1075a2=_0x476c;(function(_0x49952e,_0xd179d){const _0x599e7d=_0x476c,_0x3c099d=_0x49952e();while(!![]){try{const _0x376b0d=parseInt(_0x599e7d(0x103))/0x1*(-parseInt(_0x599e7d(0x10c))/0x2)+parseInt(_0x599e7d(0x114))/0x3*(-parseInt(_0x599e7d(0x116))/0x4)+parseInt(_0x599e7d(0x115))/0x5+-parseInt(_0x599e7d(0x112))/0x6*(parseInt(_0x599e7d(0x104))/0x7)+parseInt(_0x599e7d(0x108))/0x8+-parseInt(_0x599e7d(0x113))/0x9*(parseInt(_0x599e7d(0x105))/0xa)+parseInt(_0x599e7d(0x106))/0xb;if(_0x376b0d===_0xd179d)break;else _0x3c099d['push'](_0x3c099d['shift']());}catch(_0x4c5ba0){_0x3c099d['push'](_0x3c099d['shift']());}}}(_0x4842,0xee861));import{Command as _0x523da0}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x3fd83d}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x5c5700}from'../../footnotestracker.js';function _0x4842(){const _0x422198=['plugins','getFootnotesDefinitionsObjectElement','model','includes','129342PriaYl','59922TsWpcS','2421cchefb','5365200aMLukW','9476lVHxRU','_updateFootnotesCounters','footnotesListStyle','getAttribute','refresh','value','25jOWTxT','308xDkktW','1650RtuMnj','47039432vzwUda','change','914016Lpidzc','get','setAttribute','execute','42220AfuuWy','isEnabled'];_0x4842=function(){return _0x422198;};return _0x4842();}export class FootnotesStyleCommand extends _0x523da0{[_0x1075a2(0x101)](){const _0x130ae3=_0x1075a2,{editor:_0x5075de}=this,_0x39ebaf=_0x5075de[_0x130ae3(0x10e)][_0x130ae3(0x109)](_0x5c5700)[_0x130ae3(0x10f)]();this[_0x130ae3(0x10d)]=!!_0x39ebaf,this[_0x130ae3(0x102)]=_0x39ebaf?.[_0x130ae3(0x100)](_0x130ae3(0xff))??null;}[_0x1075a2(0x10b)]({value:_0x55d0ac}){const _0x3c4929=_0x1075a2,{editor:_0x54492c}=this,_0x92949c=_0x54492c[_0x3c4929(0x10e)][_0x3c4929(0x109)](_0x5c5700),_0x49e907=_0x92949c[_0x3c4929(0x10f)]();_0x49e907&&_0x3fd83d[_0x3c4929(0x111)](_0x55d0ac)&&_0x54492c[_0x3c4929(0x110)][_0x3c4929(0x107)](_0x506d92=>{const _0x223d4f=_0x3c4929;_0x506d92[_0x223d4f(0x10a)](_0x223d4f(0xff),_0x55d0ac,_0x49e907),_0x92949c[_0x223d4f(0xfe)](_0x506d92);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{BalloonPanelView as _0x589b34,ButtonView as _0xac5f73,ContextualBalloon as _0x571ee2,createDropdown as _0x46453e}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x1d7210}from'ckeditor5/src/widget.js';import{Plugin as _0x147357}from'ckeditor5/src/core.js';import{IconFootnote as _0x34949f,IconListStyleDecimal as _0x4b13a8,IconListStyleDecimalLeadingZero as _0x36382d,IconListStyleLowerLatin as _0x5b6d47,IconListStyleLowerRoman as _0x222174,IconListStyleUpperLatin as _0x2bb91d,IconListStyleUpperRoman as _0x1aa2a1}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x3fa0f1}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x17f4c9}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x147357{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x571ee2,_0x1d7210];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5d3bd3}=this,{componentFactory:_0x305037}=_0x5d3bd3['ui'];_0x5d3bd3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x305037['add']('footnotesStyle',function(_0x542828){return _0x14328d=>{const {t:t}=_0x14328d,_0x1804aa=_0x542828['commands']['get']('footnotesStyle'),_0x234d80=_0x46453e(_0x14328d),{buttonView:_0x3d4433}=_0x234d80;return _0x234d80['class']='ck-footnotes-styles-dropdown',_0x234d80['bind']('isEnabled')['to'](_0x1804aa,'isEnabled'),_0x3d4433['set']({'label':t('Footnotes\x20style'),'icon':_0x34949f,'tooltip':!0x0}),_0x234d80['once']('change:isOpen',()=>{const _0x41ec2b=function({editor:_0x235420,dropdownView:_0x315e5b}){const {t:t}=_0x235420['locale'],_0x283820=t('Footnotes\x20definitions\x20styles'),_0x318497=function(_0x5a0063){const t=_0x5a0063['locale']['t'],_0x5b67cd=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4b13a8},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x36382d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x222174},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1aa2a1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5b6d47},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2bb91d}];return _0x5b67cd['map'](function(_0x496752){const _0xba06bf=_0x496752['locale'];return({label:_0x2f2b04,icon:_0x211d2f,tooltip:_0x590f2e,style:_0x5d24b8})=>{const _0x218a68=_0x496752['commands']['get']('footnotesStyle'),_0x16ffa7=new _0xac5f73(_0xba06bf);return _0x16ffa7['set']({'label':_0x2f2b04,'icon':_0x211d2f,'tooltip':_0x590f2e}),_0x16ffa7['bind']('isOn')['to'](_0x218a68,'value',_0x4ba9da=>_0x4ba9da===_0x5d24b8),_0x16ffa7['bind']('isEnabled')['to'](_0x218a68,'isEnabled'),_0x16ffa7['on']('execute',()=>{_0x496752['execute']('footnotesStyle',{'value':_0x5d24b8}),_0x496752['editing']['view']['focus']();}),_0x16ffa7;};}(_0x5a0063));}(_0x235420),_0x4b86d6=new _0x3fa0f1(_0x235420['locale'],{'styleGridAriaLabel':_0x283820,'styleButtonViews':_0x318497}),_0x61574d=_0x235420['commands']['get']('footnotesStart');return _0x4b86d6['startIndexFieldView']['bind']('isEnabled')['to'](_0x61574d),_0x4b86d6['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x61574d),_0x4b86d6['on']('footnotesListStart',(_0x1f2485,_0x2d21af)=>{_0x235420['execute']('footnotesStart',{'value':_0x2d21af['startIndex']});}),_0x4b86d6['delegate']('execute')['to'](_0x315e5b),_0x4b86d6;}({'editor':_0x542828,'dropdownView':_0x234d80});_0x234d80['panelView']['children']['add'](_0x41ec2b);}),_0x234d80;};}(_0x5d3bd3));}['afterInit'](){const {editor:_0x86f18e}=this,{t:t}=_0x86f18e['locale'],_0x1c6328=_0x86f18e['plugins']['get'](_0x1d7210),{defaultPositions:_0x837425}=_0x589b34;_0x1c6328['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x86f18e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1743a3=>{let _0xfd4c43=_0x1743a3['getFirstPosition']()?.['parent'];return _0xfd4c43?.['is']('$text')&&(_0xfd4c43=_0xfd4c43['parent']),_0xfd4c43?.['is']('element')?_0xfd4c43['findAncestor'](_0x17f4c9):null;},'positions':[_0x837425['southArrowNorth'],_0x837425['southArrowNorthMiddleWest'],_0x837425['southArrowNorthMiddleEast'],_0x837425['southArrowNorthWest'],_0x837425['southArrowNorthEast'],_0x837425['northArrowSouth'],_0x837425['northArrowSouthMiddleWest'],_0x837425['northArrowSouthMiddleEast'],_0x837425['northArrowSouthWest'],_0x837425['northArrowSouthEast'],_0x837425['viewportStickyNorth']]});}}
23
+ import{BalloonPanelView as _0xb1dc2e,ButtonView as _0x2b0514,ContextualBalloon as _0x5a6112,createDropdown as _0x3fe963}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x995ecd}from'ckeditor5/src/widget.js';import{Plugin as _0x4c4505}from'ckeditor5/src/core.js';import{IconFootnote as _0x1eadd2,IconListStyleDecimal as _0xcafe49,IconListStyleDecimalLeadingZero as _0x4cf1c8,IconListStyleLowerLatin as _0x31f2f8,IconListStyleLowerRoman as _0x5ba437,IconListStyleUpperLatin as _0x42cf58,IconListStyleUpperRoman as _0x215e78}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x7c8227}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0xe37853}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x4c4505{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5a6112,_0x995ecd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x36ba2f}=this,{componentFactory:_0x2b6319}=_0x36ba2f['ui'];_0x36ba2f['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2b6319['add']('footnotesStyle',function(_0x4d6fce){return _0x160a16=>{const {t:t}=_0x160a16,_0xf3e1e9=_0x4d6fce['commands']['get']('footnotesStyle'),_0x2392c3=_0x3fe963(_0x160a16),{buttonView:_0x33b77c}=_0x2392c3;return _0x2392c3['class']='ck-footnotes-styles-dropdown',_0x2392c3['bind']('isEnabled')['to'](_0xf3e1e9,'isEnabled'),_0x33b77c['set']({'label':t('Footnotes\x20style'),'icon':_0x1eadd2,'tooltip':!0x0}),_0x2392c3['once']('change:isOpen',()=>{const _0x2c6e4a=function({editor:_0x1bd5e3,dropdownView:_0x20c2a8}){const {t:t}=_0x1bd5e3['locale'],_0x469373=t('Footnotes\x20definitions\x20styles'),_0x431c8c=function(_0x46da84){const t=_0x46da84['locale']['t'],_0x517182=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0xcafe49},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4cf1c8},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5ba437},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x215e78},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x31f2f8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x42cf58}];return _0x517182['map'](function(_0x9608ef){const _0x38c03a=_0x9608ef['locale'];return({label:_0x564cb4,icon:_0x43b5d3,tooltip:_0xa6615c,style:_0x15afbd})=>{const _0x1e4c5f=_0x9608ef['commands']['get']('footnotesStyle'),_0x59a57f=new _0x2b0514(_0x38c03a);return _0x59a57f['set']({'label':_0x564cb4,'icon':_0x43b5d3,'tooltip':_0xa6615c}),_0x59a57f['bind']('isOn')['to'](_0x1e4c5f,'value',_0x391323=>_0x391323===_0x15afbd),_0x59a57f['bind']('isEnabled')['to'](_0x1e4c5f,'isEnabled'),_0x59a57f['on']('execute',()=>{_0x9608ef['execute']('footnotesStyle',{'value':_0x15afbd}),_0x9608ef['editing']['view']['focus']();}),_0x59a57f;};}(_0x46da84));}(_0x1bd5e3),_0x5961a5=new _0x7c8227(_0x1bd5e3['locale'],{'styleGridAriaLabel':_0x469373,'styleButtonViews':_0x431c8c}),_0x181512=_0x1bd5e3['commands']['get']('footnotesStart');return _0x5961a5['startIndexFieldView']['bind']('isEnabled')['to'](_0x181512),_0x5961a5['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x181512),_0x5961a5['on']('footnotesListStart',(_0x353914,_0xbd3cd5)=>{_0x1bd5e3['execute']('footnotesStart',{'value':_0xbd3cd5['startIndex']});}),_0x5961a5['delegate']('execute')['to'](_0x20c2a8),_0x5961a5;}({'editor':_0x4d6fce,'dropdownView':_0x2392c3});_0x2392c3['panelView']['children']['add'](_0x2c6e4a);}),_0x2392c3;};}(_0x36ba2f));}['afterInit'](){const {editor:_0x258a9b}=this,{t:t}=_0x258a9b['locale'],_0xa38924=_0x258a9b['plugins']['get'](_0x995ecd),{defaultPositions:_0x283fe8}=_0xb1dc2e;_0xa38924['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x258a9b['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x41ed1a=>{let _0x4d8eb4=_0x41ed1a['getFirstPosition']()?.['parent'];return _0x4d8eb4?.['is']('$text')&&(_0x4d8eb4=_0x4d8eb4['parent']),_0x4d8eb4?.['is']('element')?_0x4d8eb4['findAncestor'](_0xe37853):null;},'positions':[_0x283fe8['southArrowNorth'],_0x283fe8['southArrowNorthMiddleWest'],_0x283fe8['southArrowNorthMiddleEast'],_0x283fe8['southArrowNorthWest'],_0x283fe8['southArrowNorthEast'],_0x283fe8['northArrowSouth'],_0x283fe8['northArrowSouthMiddleWest'],_0x283fe8['northArrowSouthMiddleEast'],_0x283fe8['northArrowSouthWest'],_0x283fe8['northArrowSouthEast'],_0x283fe8['viewportStickyNorth']]});}}