@ckeditor/ckeditor5-footnotes 47.3.0-alpha.4 → 47.3.0-alpha.5

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:()=>Z,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["insert","1945AgVQHQ","1571867nuWCeA","element","getElementKey","root","_getElementKey","attributes","78psWvqX","nodeAfter","94956PQReOk","slice","delete","$text","values","1131rUKeyq","set","_trackedElements","_elementName","push","remove","has","1334068aBZBBr","rootName","3yKOTSB","136146pLNZAW","24fZWIWU","type","_model","10FzsBuX","3722616NZYBNB","reset","position","clear","get","getChanges","from","$graveyard","add","1LBKUme","getItems","length","name","flat","elementName","createRangeOn","1036581UHSdHi"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=105]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(244408===-parseInt(e(144))/1*(-parseInt(e(130))/2)+parseInt(e(129))/3*(-parseInt(e(127))/4)+parseInt(e(106))/5*(-parseInt(e(113))/6)+parseInt(e(151))/7*(-parseInt(e(131))/8)+parseInt(e(135))/9+parseInt(e(134))/10*(-parseInt(e(107))/11)+-parseInt(e(115))/12*(-parseInt(e(120))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(133)];[r(123)];[r(111)];[r(122)]=new Map;constructor(t,e){const o=r;this[o(133)]=t,this[o(123)]=e[o(149)],this[o(111)]=e[o(109)]}[r(136)](){const t=r;this[t(122)][t(138)]()}[r(140)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(132)]&&e(118)!==i[e(147)]&&i[e(137)][e(114)]){const t=this[e(133)][e(150)](i[e(137)][e(114)]);for(const o of t[e(145)]()){if(!o.is(e(108),this[e(123)]))continue;const t=this[e(111)](o);n[e(126)](t)||n[e(121)](t,[]),n[e(139)](t)[e(124)](o)}}if(e(125)===i[e(132)]&&i[e(147)]===this[e(123)]){const t=this[e(111)]({getAttribute:t=>i[e(112)][e(139)](t)});o[e(143)](t)}}for(const[t,n]of this[e(122)])e(142)===n[e(110)][e(128)]&&o[e(143)](t);for(const t of o)this[e(122)][e(117)](t);for(const[t,o]of n)this[e(122)][e(121)](t,o[o[e(146)]-1]);const i=new Set;for(const[t,s]of n)o[e(126)](t)&&(i[e(143)](s[0]),s[e(146)]>1?n[e(121)](t,s[e(116)](1)):n[e(117)](t),o[e(117)](t));return{removed:Array[e(141)](o),inserted:Array[e(141)](n[e(119)]())[e(148)](),moved:Array[e(141)](i)}}}const f=h;function u(){const t=["_updateFootnotesCounters","footnoteCounter","_handleInsertedFootnoteReference","footnoteRef","527910myobfi","_footnoteRefsTracker","createPositionAt","map","from","paragraph","some","push","model","_footnoteDefsTracker","473808YFoFdm","reference","footnotes.multiBlock","getFootnote","FootnotesTracker","createElement","find","_footnoteDefsContainerTracker","$graveyard","set","12fWEIHF","move","83555ictCoo","length","387gicSHt","isOfficialPlugin","footnotesDefinitions","after","parent","getChanges","change:data","editor","_updateFootnoteRefCounter","setFootnoteFormatter","250692WgfBYx","footnoteInlineContent","_footnotes","singleton","get","enqueueChange","compareWith","reset","before","definition","indexOf","root","setAttribute","unshift","57544JvsWUh","pluginName","has","splice","differ","registerPostFixer","createRangeOn","_ensureFootnotesReferencesHaveProperOrder","insert","childCount","findIndex","config","end","createRangeIn","low","listenTo","add","remove","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","document","getAttribute","append","_handleFootnoteReferencesChanges","isEqual","_handleRemoveFootnoteReferenceById","236889fiBgfv","_footnotesDefinitions","footnoteId","_ensureFootnotesDefinitionsContainerExists","getChildren","getRootNames","_handleFootnoteDefinitionsChanges","footnoteDefinition","high","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","_footnoteFormatter","getFootnotesDefinitionsObjectElement","min","_sortFootnoteDefinitions","_handleMovedFootnoteReference","getFootnotesFormatter","createPositionBefore","rootName","init","873320SNVWow","_handleFootnotesDefinitionsObjectChanges"];return(u=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(143295===-parseInt(e(164))/1+parseInt(e(190))/2+parseInt(e(124))/3+-parseInt(e(200))/4+parseInt(e(212))/5*(-parseInt(e(210))/6)+-parseInt(e(184))/7+-parseInt(e(138))/8*(-parseInt(e(114))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(126)]=[];[f(165)]=null;[f(175)]=null;[f(207)];[f(191)];[f(199)];static get[f(139)](){return f(204)}static get[f(115)](){return!0}static get[f(157)](){return!0}constructor(t){const e=f;super(t),this[e(207)]=new l(this[e(121)][e(198)],{elementName:e(116),getElementKey:()=>e(127)}),this[e(191)]=new l(this[e(121)][e(198)],{elementName:e(189),getElementKey:t=>t[e(159)](e(166))}),this[e(199)]=new l(this[e(121)][e(198)],{elementName:e(171),getElementKey:t=>t[e(159)](e(166))})}[f(183)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(158)][t(143)](e=>{const n=t,i=o[n(158)][n(142)][n(119)]();let s=!1;return this[n(185)](e,i)&&(s=!0),this[n(170)](e,i)&&(s=!0),this[n(161)](e,i)&&(s=!0),this[n(145)](e)&&(s=!0),this[n(156)](e)&&(s=!0),this[n(178)](e)&&(s=!0),s}),this[t(153)](o[t(158)],t(120),()=>{const e=t;o[e(129)]({isUndoable:!1},t=>{this[e(167)](t)})},{priority:t(152)}),this[t(153)](n,t(209),()=>{const e=t;this[e(126)]=[],this[e(207)][e(131)](),this[e(191)][e(131)](),this[e(199)][e(131)]()},{priority:t(172)})}[f(176)](){return this[f(165)]}[f(203)](t){const e=f;return this[e(126)][e(206)](e=>e.id===t)||null}[f(174)](){const t=f;return Array[t(194)](this[t(126)])}[f(180)](){return this[f(175)]}[f(123)](t){this[f(175)]=t}[f(186)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(126)][o(213)];i++)this[o(122)](t,i)&&(n=!0);return n}[f(173)](t,e){const o=f,n=t[o(205)](o(116),{});return t[o(160)](n,e),this[o(165)]=n,n}[f(167)](t){const e=f;if(!this[e(126)][e(213)]||this[e(165)])return;const o=this[e(126)][0][e(201)][e(135)],n=this[e(173)](t,o);for(const o of this[e(126)])o[e(133)][e(118)]||t[e(146)](o[e(133)],n,e(150));this[e(186)](t)}[f(185)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(207)][o(119)](e);if(r[o(213)]&&(this[o(165)]=r[0]),i[o(213)])if(i[o(213)]>1||this[o(165)]&&i[o(196)](t=>t!==this[o(165)])){const e=t[o(205)](o(116),{}),s=[];this[o(165)]&&s[o(197)](this[o(165)]),s[o(197)](...i),t[o(146)](e,s[0],o(132));for(const n of s)t[o(211)](t[o(151)](n),t[o(192)](e,o(150))),t[o(155)](n);this[o(165)]=e,this[o(186)](t),n=!0}else this[o(165)]=i[0];if(s[o(213)]&&o(208)===this[o(165)]?.[o(135)][o(182)]){for(const e of this[o(126)])t[o(155)](e[o(201)]),n=!0;this[o(126)]=[],this[o(165)]=null}return n}[f(170)](t,e){const o=f;let n=!1;const i=this[o(121)][o(149)][o(128)](o(202)),{inserted:s,moved:r}=this[o(199)][o(119)](e);for(const e of[...r,...s]){const s=e[o(159)](o(166)),r=this[o(203)](s);r&&(r[o(133)]=e),p(t,i,e)&&(n=!0)}return n}[f(161)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(191)][o(119)](e);for(const e of i)this[o(163)](t,e)&&(n=!0);for(const e of s)this[o(188)](t,e)&&(n=!0);for(const e of r)this[o(179)](t,e)&&(n=!0);return n}[f(156)](t){const e=f;if(!this[e(165)])return!1;let o=!1;if(this[e(165)][e(147)]!==this[e(126)][e(213)]){const n=[];for(const t of this[e(165)][e(168)]()){const i=t[e(159)](e(166));this[e(203)](i)||(n[e(137)](t),o=!0)}for(const o of n)t[e(155)](o)}const n=new Set,i=[];for(const t of this[e(165)][e(168)]()){const s=t[e(159)](e(166));n[e(140)](s)?(i[e(137)](t),o=!0):n[e(154)](s)}for(const o of i)t[e(155)](o);return this[e(165)][e(147)]||(t[e(155)](this[e(165)]),this[e(165)]=null,o=!0),o}[f(188)](t,e){const o=f;if(this[o(126)][o(206)](t=>t[o(201)]===e))return!1;let n=!1;const i=e[o(159)](o(166)),s=this[o(126)][o(148)](t=>t.id===i);-1!==s&&(t[o(155)](this[o(126)][s][o(201)]),this[o(126)][o(141)](s,1),n=!0);let r=this[o(165)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(159)](n(166))===e)return o;return null}(this[o(165)],i):null;r||(r=t[o(205)](o(171),{footnoteId:i}),this[o(165)]&&(t[o(146)](r,this[o(165)],o(150)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(121)][o(198)],this[o(126)],e);this[o(126)][o(141)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(186)](t,l)&&(n=!0),n}[f(163)](t,e){const o=f,n=this[o(126)][o(148)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(126)][n];return o(208)!==s[o(133)][o(135)][o(182)]&&(t[o(155)](s[o(133)]),i=!0),this[o(126)][o(141)](n,1),this[o(186)](t,n)&&(i=!0),i}[f(179)](t,e){const o=f,n=e[o(159)](o(166)),i=this[o(126)][o(148)](t=>t.id===n),s=this[o(126)][i];let r=!1;s[o(201)]=e,this[o(126)][o(141)](i,1);const a=m(this[o(121)][o(198)],this[o(126)],e);return this[o(126)][o(141)](a,0,s),this[o(186)](t,Math[o(177)](i,a))&&(r=!0),r}[f(122)](t,e){const o=f;if(!this[o(165)])return!1;const n=this[o(126)][e];let i;return i=this[o(175)]?this[o(175)]({footnote:n,container:this[o(165)],digits:String(this[o(126)][o(213)])[o(213)],value:e+1}):String(e+1),n[o(201)][o(159)](o(187))!=i&&(t[o(136)](o(187),i,n[o(201)]),!0)}[f(178)](t){const e=f;if(!this[e(165)]||this[e(126)][e(213)]<2)return!1;if(function(t,o){const n=e;if(t[n(213)]!==o[n(213)])return!1;for(let e=0;e<t[n(213)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(126)][e(193)](t=>t.id),Array[e(194)](this[e(165)][e(168)]())[e(193)](t=>t[e(159)](e(166)))))return!1;let o=!1;for(let n=0;n<this[e(126)][e(213)];n++){const i=this[e(126)][n],s=t[e(181)](i[e(133)]),r=t[e(192)](this[e(165)],n);s[e(162)](r)||(t[e(211)](t[e(144)](i[e(133)]),r),o=!0)}return o}[f(145)](t){const e=f;if(!this[e(126)][e(213)])return!1;const{model:o}=this[e(121)];let n=!1;for(let i=0;i<this[e(126)][e(213)]-1;i++){const s=this[e(126)][i],r=this[e(126)][i+1],a=o[e(181)](s[e(201)]),c=o[e(181)](r[e(201)]);e(117)===a[e(130)](c)&&(this[e(179)](t,s[e(201)]),i=-1,n=!0)}return n}}function h(t,e){const o=u();return(h=function(t,e){return o[t-=114]})(t,e)}function p(t,e,o){const n=f;if(o[n(147)])return!1;const i=n(e?195:125);return t[n(146)](t[n(205)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(213)])return 0;const i=t[n(181)](o);for(let o=0;o<e[n(213)];o++){const s=e[o],r=t[n(181)](s[n(201)]);if(n(132)===i[n(130)](r))return o}const s=o[n(135)];let r=-1;for(let t=e[n(213)]-1;t>=0;t--)if(e[t][n(201)][n(135)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(158)][n(169)](),c=a[n(134)](s[n(182)]),l=a[c+1];if(l)for(let t=0;t<e[n(213)];t++)if(e[t][n(201)][n(135)][n(182)]===l)return t;return e[n(213)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=376]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(998988===-parseInt(e(378))/1*(parseInt(e(412))/2)+parseInt(e(387))/3+-parseInt(e(382))/4*(-parseInt(e(384))/5)+-parseInt(e(402))/6*(parseInt(e(403))/7)+-parseInt(e(398))/8+parseInt(e(401))/9*(-parseInt(e(399))/10)+parseInt(e(376))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(411)](){const t=g,e=this[t(389)][t(395)][t(390)][t(405)],o=this[t(393)](e);this[t(386)]=!!o}[g(410)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(390)],r=this[e(393)](s);if(!r)return;const a=o[e(408)][e(381)](e(377)),c=t?.[e(379)]??(0,i.uid)();!function(t){const o=e;return o(397)==typeof t&&t[o(385)]>0&&!/\s/[o(394)](t)&&!/^\d/[o(394)](t)}(c)?(0,i.logWarning)(e(400)):(n[e(409)](t=>{const o=e,i=t[o(392)](o(383),{footnoteId:c});n[o(396)](i,r,null)}),a[e(388)](c))}[g(393)](t){const e=g,{model:o}=this[e(389)],{schema:n}=o,i=t[e(391)]();for(const t of i[e(380)]())if(n[e(413)](t)||n[e(406)](t))return null;const s=i[e(407)];return n[e(404)](s,e(383))?s:null}}function b(){const t=["insert-footnote-command-executed-with-invalid-id","5900922axswah","438qBJiVR","43225ZBzQqJ","checkChild","selection","isObject","end","plugins","change","execute","refresh","629676eHndkK","isBlock","47497461EyuNXr","FootnotesEditing","4llasMq","footnoteId","getItems","get","11668GjrxBH","footnoteRef","215UHxYgL","length","isEnabled","1181985fQOcFP","_moveSelectionToFootnoteDefinition","editor","document","getFirstRange","createElement","_getPositionToInsertFootnote","test","model","insertObject","string","11780832AfoyPf","10ODhCqT"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(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:1764460800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function A(){const t=["config","reduce","createRangeIn","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","drop","90853luBNYr","32624zxZQTO","sourceEditorId","354vSTASl","content","outputTransformation","change","_handleCopyFootnotesDefinitions","toView","isOfficialPlugin","pluginName","_defineClipboardIntegration","footnoteDefinition","footnotes.multiBlock","clipboardInput","method","toModel","flatMap","includes","init","get","requires","end","stringify","element","definition","editor","toData","isPremiumPlugin","application/ckeditor5-footnotes","2873760rvzUwJ","4UlkkaH","18185535FJQBIc","append","htmlProcessor","editing","contentInsertion","data","footnoteId","insert","dataTransfer","createElement","root","1977064rRLffb","getSelectedBlocks","entries","push","2720065VCnEFE","setAttribute","add","getFootnotesDefinitionsObjectElement","FootnotesClipboard","getRanges","getFootnotes","parse","footnotesDefinitions","from","selection","document","remove","listenTo","_handlePasteFootnotesDefinitions","getData","setData","length","getAttribute","getFootnote","2178090YmjGoY","getFirstRange","create","find","footnoteRef"];return(A=function(){return t})()}function D(t,e){const o=A();return(D=function(t,e){return o[t-=194]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(536282===parseInt(e(254))/1*(-parseInt(e(206))/2)+-parseInt(e(242))/3+-parseInt(e(205))/4+parseInt(e(222))/5+parseInt(e(256))/6*(-parseInt(e(253))/7)+parseInt(e(218))/8+parseInt(e(207))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(263)](){return T(226)}static get[T(196)](){return[v,P.ClipboardPipeline]}static get[T(262)](){return!0}static get[T(203)](){return!0}[T(194)](){this[T(264)]()}[T(264)](){const t=T;this[t(260)](),this[t(236)]()}[T(260)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(195)](P.ClipboardPipeline),s=o[t(195)](d);this[t(235)](i,t(258),(o,i)=>{const r=t,a=L(n[r(249)](i[r(257)]));if(!a[r(239)])return;const c=s[r(228)](),l=a[r(248)]((t,o)=>{const n=r,i=c[n(245)](t=>t.id===o);if(i){const o=e[n(212)][n(261)](i[n(200)],{isClipboardPipeline:!0}),s=e[n(212)][n(209)][n(202)](o);t[i.id]=s}return t},Object[r(244)](null));i[r(215)][r(238)](r(204),JSON[r(198)](l))})}[T(236)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(210)],r=n[t(195)](P.ClipboardPipeline),a=n[t(195)](d),c=e[t(247)][t(195)](t(266));let l=null;this[t(235)](s[t(233)],t(267),(e,o)=>{const n=t,i=o[n(215)][n(237)](n(204));l=i?JSON[n(229)](i):null}),this[t(235)](r,t(211),(n,s)=>{const r=t,f=s[r(255)]===this[r(201)].id;f&&r(252)===s[r(268)]||o[r(259)](t=>{const n=r;let u=a[n(225)]();const d=!!u&&Array[n(231)](o[n(233)][n(232)][n(219)]())[n(271)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(249)](e))n.is(o(199),o(230))&&i[o(221)](n);for(const e of i)t[o(234)](e)}(t,s[n(257)]),!l)return;const{selection:h}=o[n(233)],p=h[n(243)]()[n(217)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(249)](e))if(n.is(o(199),o(230)))return n;return null}(t,s[n(257)]),u||=a[n(250)](t,p));const m=Array[n(231)](h[n(227)]())[n(270)](L),g=function(t,e,o){const s=n,r=Object[s(244)](null);for(const{item:n}of t[s(249)](e))if(n.is(s(199),s(246))){const e=n[s(240)](s(213));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(223)](s(213),r[e],n)}return r}(t,s[n(257)],t=>{const e=n;return!f||!!a[e(241)](t)&&!m[e(271)](t)});for(const[o,i]of Object[n(220)](l)){const s=g[o]||o,r=t[n(216)](n(265),{footnoteId:s}),a=e[n(212)][n(209)][n(261)](i);let l;if(c)l=e[n(212)][n(269)](a,r);else{l=t[n(216)](n(251));const o=e[n(212)][n(269)](a,l);t[n(214)](o,l)}t[n(208)](l,r),t[n(214)](r,u,n(197))}l=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(199),e(246))&&o[e(224)](n[e(240)](e(213)));return Array[e(231)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),B=o.n(K),j=o(102),M=o.n(j),U=o(123),W=o.n(U),H=o(741),z=o.n(H),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=M().bind(null,"head"),X.domAPI=B(),X.insertStyleElement=z();R()(q.A,X);q.A&&q.A.locals&&q.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,V.ButtonView)),e.add("menuBar:insertFootnote",G(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Q;function Q(t,e){var o=$();return(Q=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(100083===-parseInt(e(420))/1*(-parseInt(e(413))/2)+parseInt(e(408))/3*(-parseInt(e(406))/4)+-parseInt(e(411))/5*(-parseInt(e(407))/6)+-parseInt(e(421))/7+-parseInt(e(418))/8+parseInt(e(415))/9*(parseInt(e(409))/10)+-parseInt(e(414))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Z extends t.Plugin{static get[Y(412)](){return Y(410)}static get[Y(405)](){return[v,_,J]}static get[Y(416)](){return!0}static get[Y(419)](){return!0}}function $(){var t=["505575RCfgGy","requires","724LJyxee","388302NCvkaF","3261mPbaFI","26900EEwJLV","Footnotes","5jhLeAE","pluginName","8rwprGd","287309AVGlsZ","450pQlrSI","isOfficialPlugin","144mVUNxN","1171568TStBEs","isPremiumPlugin","714xyDcIX"];return($=function(){return t})()}function tt(t,e){const o=nt();return(tt=function(t,e){return o[t-=359]})(t,e)}const et=tt;!function(t){const e=tt,o=t();for(;;)try{if(927603===parseInt(e(368))/1*(parseInt(e(363))/2)+parseInt(e(370))/3*(-parseInt(e(369))/4)+-parseInt(e(367))/5+-parseInt(e(365))/6*(-parseInt(e(375))/7)+-parseInt(e(373))/8*(parseInt(e(377))/9)+-parseInt(e(362))/10*(-parseInt(e(378))/11)+parseInt(e(359))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[et(360),et(374),et(376),et(361),et(366),et(371),et(364),et(372)];function nt(){const t=["240DHjWnG","decimal-leading-zero","35mOWHeC","lower-latin","383742vFupDr","22NSYDTX","49630776CTDqFM","decimal","upper-latin","2077150UrSZzC","179412NwADCP","lower-roman","33246cKfqVn","lower-alpha","8683740XgCuWT","13RemTLg","116240JkCrJP","186SaKFfN","upper-alpha","upper-roman"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=at();return(st=function(t,e){return o[t-=346]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(806251===-parseInt(e(362))/1*(-parseInt(e(356))/2)+parseInt(e(366))/3+parseInt(e(364))/4*(parseInt(e(358))/5)+-parseInt(e(360))/6+parseInt(e(357))/7*(parseInt(e(346))/8)+parseInt(e(353))/9+parseInt(e(350))/10*(-parseInt(e(352))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[it(363)](){const t=it,{editor:e}=this,o=e[t(348)][t(355)](d)[t(361)]();this[t(351)]=!!o,this[t(368)]=o?.[t(365)](t(354))??null}[it(359)]({value:t}){const e=it,{editor:o}=this,n=o[e(348)][e(355)](d),i=n[e(361)]();i&&ot[e(370)](t)&&o[e(367)][e(369)](o=>{const s=e;o[s(347)](s(354),t,i),n[s(349)](o)})}}function at(){const t=["501998PXztDV","145qxucMm","execute","9522714IpdAtv","getFootnotesDefinitionsObjectElement","44279KSlRAs","refresh","56968tdnLdI","getAttribute","4224894UsKCoP","model","value","change","includes","176IEIhiS","setAttribute","plugins","_updateFootnotesCounters","27080EnKSvS","isEnabled","8239DmmAuC","2429055hLysYD","footnotesListStyle","get","34ShcwId"];return(at=function(){return t})()}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=218]})(t,e)}function ft(){const t=["_updateFootnotesCounters","get","execute","501730DUsXAf","value","plugins","model","761837JJSTxm","footnotesListStart","getAttribute","1382818xFCJWh","160720XttGtx","setAttribute","getFootnotesDefinitionsObjectElement","1062606NlqXPa","refresh","3DgkKSc","isInteger","9810544UXVmcO","change","isEnabled","4075155fmHJdD"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(391812===-parseInt(e(220))/1+-parseInt(e(223))/2+-parseInt(e(229))/3*(parseInt(e(224))/4)+-parseInt(e(238))/5+parseInt(e(227))/6+parseInt(e(234))/7+parseInt(e(231))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(228)](){const t=ct,{editor:e}=this,o=e[t(218)][t(236)](d)[t(226)]();this[t(233)]=!!o,this[t(239)]=o?.[t(222)](t(221))??null}[ct(237)]({value:t}){const e=ct,{editor:o}=this,n=o[e(218)][e(236)](d),i=n[e(226)]();i&&Number[e(230)](t)&&o[e(219)][e(232)](o=>{const s=e;o[s(225)](s(221),t,i),n[s(235)](o)})}}function dt(){const t=["parent","hasAttribute","start","20XHTHak","891991WAdaWn","mapper","isOfficialPlugin","setAttribute","upper-latin","add","isNaN","fromCharCode","setStyle","10703759hbywsi","footnotes.footnotesProperties.defaultListStyle","removeStyle","toViewElement","find","element:ol","position","padStart","7hlXgEb","attribute:footnotesListStyle:footnotesDefinitions","modelCursor","footnotesStyle","_defineConverters","getChanges","_getDefaultListStyle","367527VzHKEe","_defineFormatter","_defineSchema","_formatFootnoteListValue","lower-alpha","writer","lower-roman","getChildren","footnotesListStyle","2UHHVJT","parseInt","list-style-type","define","extend","createRangeOn","1038xytWdd","_definePostfixer","2342169cEdYzn","footnotesDefinitions","item","lower-latin","footnotes.footnotesProperties.defaultStartIndex","commands","isPremiumPlugin","$text","editor","registerPostFixer","footnotesListStart","config","35210LYlVoP","type","attribute:footnotesListStart:footnotesDefinitions","removeAttribute","getStyle","name","floor","consumable","checkAttribute","downcast","1411056IXoqwU","3531076hophNe","setFootnoteFormatter","nodeAfter","from","upper-roman","schema","for","requires","viewItem","upcast","_getDefaultStartIndex","document","differ","decimal","insert","footnotes-list","decimal-leading-zero","footnotesStart","FootnotesPropertiesEditing","element","_updateFootnotesCounters","get","getAttribute","init","max","getItems","hasClass","model","toLowerCase","consume","plugins","upper-alpha","pluginName","toUpperCase"];return(dt=function(){return t})()}const ht=mt;!function(t){const e=mt,o=t();for(;;)try{if(830512===-parseInt(e(152))/1*(parseInt(e(185))/2)+-parseInt(e(176))/3+-parseInt(e(216))/4+parseInt(e(205))/5*(parseInt(e(191))/6)+-parseInt(e(169))/7*(parseInt(e(215))/8)+-parseInt(e(193))/9+parseInt(e(151))/10*(parseInt(e(161))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class pt extends t.Plugin{static get[ht(146)](){return ht(234)}static get[ht(223)](){return[v,d]}static get[ht(154)](){return!0}static get[ht(199)](){return!0}[ht(137)](){const t=ht,{editor:e}=this;e[t(204)][t(188)](t(162),t(229)),e[t(204)][t(188)](t(197),1),e[t(198)][t(157)](t(172),new rt(e)),e[t(198)][t(157)](t(233),new ut(e)),this[t(178)](),this[t(173)](),this[t(177)](),this[t(192)]()}[ht(178)](){const t=ht,{editor:e}=this,{schema:o}=e[t(141)];o[t(189)](t(194),{allowAttributes:[t(184),t(203)]})}[ht(173)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(222)](t(225))[t(157)](e=>{const o=t;e.on(o(166),(t,e,n)=>{const s=o,r=e[s(224)],a=e[s(171)]?.[s(148)];r[s(140)](s(231))&&a?.is(s(235),s(194))&&(function(t,e,o,n){const i=s;if(!n[i(213)](e,i(203)))return;let r=1;const a=o[i(212)][i(143)](t,{attributes:i(150)});if(a){const e=Number[i(186)](t[i(136)](i(150)),10);Number[i(158)](e)||(r=e)}!a&&e[i(149)](i(203))||o[i(181)][i(155)](i(203),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(213)](e,i(184)))return;let r=i(229),a=!1;if(o[i(212)][i(143)](t,{attributes:i(206)})){const e={1:i(229),a:i(180),A:i(145),i:i(182),I:i(220)}[t[i(136)](i(206))];e&&(r=e),a=!0}o[i(212)][i(143)](t,{styles:i(187)})&&(r=function(t){const e=i;switch(t){case e(180):return e(196);case e(145):return e(156);default:return t}}(t[i(209)](i(187))),a=!0),!a&&e[i(149)](i(184))||o[i(181)][i(155)](i(184),r,e)}(r,a,n,i))})}),o[t(222)](t(214))[t(157)](e=>{const o=t;e.on(o(207),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;null==r||1===r?n[i(181)][i(208)](i(150),s):n[i(181)][i(155)](i(150),String(r),s)}),e.on(o(170),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;r&&i(229)!==r?n[i(181)][i(160)](i(187),r,s):n[i(181)][i(163)](i(187),s)})})}[ht(192)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(144)][t(135)](d),i=this[t(175)](),s=this[t(226)]();o[t(227)][t(202)](e=>{const r=t,a=o[r(227)][r(228)][r(174)]();let c=!1;for(const t of a){if(r(230)!==t[r(206)]||r(200)===t[r(210)])continue;const n=o[r(190)](t[r(167)][r(218)]);for(const t of n[r(139)]())t.is(r(235),r(194))&&(!t[r(149)](r(203))&&o[r(221)][r(213)](t,r(203))&&(e[r(155)](r(203),s,t),c=!0),!t[r(149)](r(184))&&o[r(221)][r(213)](t,r(184))&&(e[r(155)](r(184),i,t),c=!0))}return c&&n[r(236)](e),c})}[ht(177)](){const t=ht,{editor:e}=this;e[t(144)][t(135)](d)[t(217)](e=>this[t(179)](e))}[ht(175)](){const t=ht;return this[t(201)][t(204)][t(135)](t(162))}[ht(226)](){const t=ht;return this[t(201)][t(204)][t(135)](t(197))}[ht(179)]({container:t,value:e,digits:o}){const n=ht,i=t[n(136)](n(184)),s=t[n(136)](n(203)),r=Math[n(211)](e)+(s??1)-1;switch(i){case n(232):return function(t,e){const o=n;return String(t)[o(168)](e,"0")}(r,Math[n(138)](2,o));case n(180):case n(196):return wt(r,!1);case n(145):case n(156):return wt(r,!0);case n(182):return bt(r,!1);case n(220):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt();return(mt=function(t,e){return o[t-=135]})(t,e)}function gt(t,e){const o=ht,n=e[o(164)](t);return Array[o(219)](n[o(183)]())[o(165)](t=>t.is(o(235),"ol")&&t[o(140)](o(231)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(159)](97+t)+n,i=Math[o(211)]((i-1)/26)}return e?n[o(147)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(142)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=M().bind(null,"head"),kt.domAPI=B(),kt.insertStyleElement=z();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=491]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","16PGXoOm","isOfficialPlugin","5VkOiYa","81ZitBLb","2311896oYTRuq","FootnotesProperties","requires","119WkEaHE","199284GGYZJs","3497672rEGrzm","127896nvpEQS","30689BXKotR","572412aoiWrX","616430oweDyH","418OYHQuP"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(290988===parseInt(e(499))/1*(parseInt(e(505))/2)+parseInt(e(500))/3+parseInt(e(492))/4*(parseInt(e(507))/5)+-parseInt(e(498))/6*(parseInt(e(495))/7)+-parseInt(e(497))/8+-parseInt(e(491))/9*(parseInt(e(501))/10)+-parseInt(e(502))/11*(-parseInt(e(496))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(504)](){return Ft(493)}static get[Ft(494)](){return[pt,Ct]}static get[Ft(506)](){return!0}static get[Ft(503)](){return!0}}function Pt(){var t=["10wXxEqk","6lNlDfM","1666840GlxjfH","2904QLMVJo","1288PhdGTq","2575680WmqHUv","13909UQGmuQ","50VPLett","636205YKwAUY","936562GvrpKj","542862xzKuhL"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=118]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(199876===parseInt(e(127))/1*(-parseInt(e(128))/2)+parseInt(e(124))/3*(parseInt(e(125))/4)+parseInt(e(118))/5+parseInt(e(122))/6*(-parseInt(e(123))/7)+parseInt(e(126))/8+-parseInt(e(120))/9+-parseInt(e(121))/10*(-parseInt(e(119))/11))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:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["insert","1945AgVQHQ","1571867nuWCeA","element","getElementKey","root","_getElementKey","attributes","78psWvqX","nodeAfter","94956PQReOk","slice","delete","$text","values","1131rUKeyq","set","_trackedElements","_elementName","push","remove","has","1334068aBZBBr","rootName","3yKOTSB","136146pLNZAW","24fZWIWU","type","_model","10FzsBuX","3722616NZYBNB","reset","position","clear","get","getChanges","from","$graveyard","add","1LBKUme","getItems","length","name","flat","elementName","createRangeOn","1036581UHSdHi"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=105]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(244408===-parseInt(e(144))/1*(-parseInt(e(130))/2)+parseInt(e(129))/3*(-parseInt(e(127))/4)+parseInt(e(106))/5*(-parseInt(e(113))/6)+parseInt(e(151))/7*(-parseInt(e(131))/8)+parseInt(e(135))/9+parseInt(e(134))/10*(-parseInt(e(107))/11)+-parseInt(e(115))/12*(-parseInt(e(120))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(133)];[r(123)];[r(111)];[r(122)]=new Map;constructor(t,e){const o=r;this[o(133)]=t,this[o(123)]=e[o(149)],this[o(111)]=e[o(109)]}[r(136)](){const t=r;this[t(122)][t(138)]()}[r(140)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(132)]&&e(118)!==i[e(147)]&&i[e(137)][e(114)]){const t=this[e(133)][e(150)](i[e(137)][e(114)]);for(const o of t[e(145)]()){if(!o.is(e(108),this[e(123)]))continue;const t=this[e(111)](o);n[e(126)](t)||n[e(121)](t,[]),n[e(139)](t)[e(124)](o)}}if(e(125)===i[e(132)]&&i[e(147)]===this[e(123)]){const t=this[e(111)]({getAttribute:t=>i[e(112)][e(139)](t)});o[e(143)](t)}}for(const[t,n]of this[e(122)])e(142)===n[e(110)][e(128)]&&o[e(143)](t);for(const t of o)this[e(122)][e(117)](t);for(const[t,o]of n)this[e(122)][e(121)](t,o[o[e(146)]-1]);const i=new Set;for(const[t,s]of n)o[e(126)](t)&&(i[e(143)](s[0]),s[e(146)]>1?n[e(121)](t,s[e(116)](1)):n[e(117)](t),o[e(117)](t));return{removed:Array[e(141)](o),inserted:Array[e(141)](n[e(119)]())[e(148)](),moved:Array[e(141)](i)}}}const f=p;function u(){const t=["_updateFootnotesCounters","footnoteCounter","_handleInsertedFootnoteReference","footnoteRef","527910myobfi","_footnoteRefsTracker","createPositionAt","map","from","paragraph","some","push","model","_footnoteDefsTracker","473808YFoFdm","reference","footnotes.multiBlock","getFootnote","FootnotesTracker","createElement","find","_footnoteDefsContainerTracker","$graveyard","set","12fWEIHF","move","83555ictCoo","length","387gicSHt","isOfficialPlugin","footnotesDefinitions","after","parent","getChanges","change:data","editor","_updateFootnoteRefCounter","setFootnoteFormatter","250692WgfBYx","footnoteInlineContent","_footnotes","singleton","get","enqueueChange","compareWith","reset","before","definition","indexOf","root","setAttribute","unshift","57544JvsWUh","pluginName","has","splice","differ","registerPostFixer","createRangeOn","_ensureFootnotesReferencesHaveProperOrder","insert","childCount","findIndex","config","end","createRangeIn","low","listenTo","add","remove","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","document","getAttribute","append","_handleFootnoteReferencesChanges","isEqual","_handleRemoveFootnoteReferenceById","236889fiBgfv","_footnotesDefinitions","footnoteId","_ensureFootnotesDefinitionsContainerExists","getChildren","getRootNames","_handleFootnoteDefinitionsChanges","footnoteDefinition","high","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","_footnoteFormatter","getFootnotesDefinitionsObjectElement","min","_sortFootnoteDefinitions","_handleMovedFootnoteReference","getFootnotesFormatter","createPositionBefore","rootName","init","873320SNVWow","_handleFootnotesDefinitionsObjectChanges"];return(u=function(){return t})()}!function(t){const e=p,o=t();for(;;)try{if(143295===-parseInt(e(164))/1+parseInt(e(190))/2+parseInt(e(124))/3+-parseInt(e(200))/4+parseInt(e(212))/5*(-parseInt(e(210))/6)+-parseInt(e(184))/7+-parseInt(e(138))/8*(-parseInt(e(114))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(126)]=[];[f(165)]=null;[f(175)]=null;[f(207)];[f(191)];[f(199)];static get[f(139)](){return f(204)}static get[f(115)](){return!0}static get[f(157)](){return!0}constructor(t){const e=f;super(t),this[e(207)]=new l(this[e(121)][e(198)],{elementName:e(116),getElementKey:()=>e(127)}),this[e(191)]=new l(this[e(121)][e(198)],{elementName:e(189),getElementKey:t=>t[e(159)](e(166))}),this[e(199)]=new l(this[e(121)][e(198)],{elementName:e(171),getElementKey:t=>t[e(159)](e(166))})}[f(183)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(158)][t(143)](e=>{const n=t,i=o[n(158)][n(142)][n(119)]();let s=!1;return this[n(185)](e,i)&&(s=!0),this[n(170)](e,i)&&(s=!0),this[n(161)](e,i)&&(s=!0),this[n(145)](e)&&(s=!0),this[n(156)](e)&&(s=!0),this[n(178)](e)&&(s=!0),s}),this[t(153)](o[t(158)],t(120),()=>{const e=t;o[e(129)]({isUndoable:!1},t=>{this[e(167)](t)})},{priority:t(152)}),this[t(153)](n,t(209),()=>{const e=t;this[e(126)]=[],this[e(207)][e(131)](),this[e(191)][e(131)](),this[e(199)][e(131)]()},{priority:t(172)})}[f(176)](){return this[f(165)]}[f(203)](t){const e=f;return this[e(126)][e(206)](e=>e.id===t)||null}[f(174)](){const t=f;return Array[t(194)](this[t(126)])}[f(180)](){return this[f(175)]}[f(123)](t){this[f(175)]=t}[f(186)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(126)][o(213)];i++)this[o(122)](t,i)&&(n=!0);return n}[f(173)](t,e){const o=f,n=t[o(205)](o(116),{});return t[o(160)](n,e),this[o(165)]=n,n}[f(167)](t){const e=f;if(!this[e(126)][e(213)]||this[e(165)])return;const o=this[e(126)][0][e(201)][e(135)],n=this[e(173)](t,o);for(const o of this[e(126)])o[e(133)][e(118)]||t[e(146)](o[e(133)],n,e(150));this[e(186)](t)}[f(185)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(207)][o(119)](e);if(r[o(213)]&&(this[o(165)]=r[0]),i[o(213)])if(i[o(213)]>1||this[o(165)]&&i[o(196)](t=>t!==this[o(165)])){const e=t[o(205)](o(116),{}),s=[];this[o(165)]&&s[o(197)](this[o(165)]),s[o(197)](...i),t[o(146)](e,s[0],o(132));for(const n of s)t[o(211)](t[o(151)](n),t[o(192)](e,o(150))),t[o(155)](n);this[o(165)]=e,this[o(186)](t),n=!0}else this[o(165)]=i[0];if(s[o(213)]&&o(208)===this[o(165)]?.[o(135)][o(182)]){for(const e of this[o(126)])t[o(155)](e[o(201)]),n=!0;this[o(126)]=[],this[o(165)]=null}return n}[f(170)](t,e){const o=f;let n=!1;const i=this[o(121)][o(149)][o(128)](o(202)),{inserted:s,moved:r}=this[o(199)][o(119)](e);for(const e of[...r,...s]){const s=e[o(159)](o(166)),r=this[o(203)](s);r&&(r[o(133)]=e),h(t,i,e)&&(n=!0)}return n}[f(161)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(191)][o(119)](e);for(const e of i)this[o(163)](t,e)&&(n=!0);for(const e of s)this[o(188)](t,e)&&(n=!0);for(const e of r)this[o(179)](t,e)&&(n=!0);return n}[f(156)](t){const e=f;if(!this[e(165)])return!1;let o=!1;if(this[e(165)][e(147)]!==this[e(126)][e(213)]){const n=[];for(const t of this[e(165)][e(168)]()){const i=t[e(159)](e(166));this[e(203)](i)||(n[e(137)](t),o=!0)}for(const o of n)t[e(155)](o)}const n=new Set,i=[];for(const t of this[e(165)][e(168)]()){const s=t[e(159)](e(166));n[e(140)](s)?(i[e(137)](t),o=!0):n[e(154)](s)}for(const o of i)t[e(155)](o);return this[e(165)][e(147)]||(t[e(155)](this[e(165)]),this[e(165)]=null,o=!0),o}[f(188)](t,e){const o=f;if(this[o(126)][o(206)](t=>t[o(201)]===e))return!1;let n=!1;const i=e[o(159)](o(166)),s=this[o(126)][o(148)](t=>t.id===i);-1!==s&&(t[o(155)](this[o(126)][s][o(201)]),this[o(126)][o(141)](s,1),n=!0);let r=this[o(165)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(159)](n(166))===e)return o;return null}(this[o(165)],i):null;r||(r=t[o(205)](o(171),{footnoteId:i}),this[o(165)]&&(t[o(146)](r,this[o(165)],o(150)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(121)][o(198)],this[o(126)],e);this[o(126)][o(141)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(186)](t,l)&&(n=!0),n}[f(163)](t,e){const o=f,n=this[o(126)][o(148)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(126)][n];return o(208)!==s[o(133)][o(135)][o(182)]&&(t[o(155)](s[o(133)]),i=!0),this[o(126)][o(141)](n,1),this[o(186)](t,n)&&(i=!0),i}[f(179)](t,e){const o=f,n=e[o(159)](o(166)),i=this[o(126)][o(148)](t=>t.id===n),s=this[o(126)][i];let r=!1;s[o(201)]=e,this[o(126)][o(141)](i,1);const a=m(this[o(121)][o(198)],this[o(126)],e);return this[o(126)][o(141)](a,0,s),this[o(186)](t,Math[o(177)](i,a))&&(r=!0),r}[f(122)](t,e){const o=f;if(!this[o(165)])return!1;const n=this[o(126)][e];let i;return i=this[o(175)]?this[o(175)]({footnote:n,container:this[o(165)],digits:String(this[o(126)][o(213)])[o(213)],value:e+1}):String(e+1),n[o(201)][o(159)](o(187))!=i&&(t[o(136)](o(187),i,n[o(201)]),!0)}[f(178)](t){const e=f;if(!this[e(165)]||this[e(126)][e(213)]<2)return!1;if(function(t,o){const n=e;if(t[n(213)]!==o[n(213)])return!1;for(let e=0;e<t[n(213)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(126)][e(193)](t=>t.id),Array[e(194)](this[e(165)][e(168)]())[e(193)](t=>t[e(159)](e(166)))))return!1;let o=!1;for(let n=0;n<this[e(126)][e(213)];n++){const i=this[e(126)][n],s=t[e(181)](i[e(133)]),r=t[e(192)](this[e(165)],n);s[e(162)](r)||(t[e(211)](t[e(144)](i[e(133)]),r),o=!0)}return o}[f(145)](t){const e=f;if(!this[e(126)][e(213)])return!1;const{model:o}=this[e(121)];let n=!1;for(let i=0;i<this[e(126)][e(213)]-1;i++){const s=this[e(126)][i],r=this[e(126)][i+1],a=o[e(181)](s[e(201)]),c=o[e(181)](r[e(201)]);e(117)===a[e(130)](c)&&(this[e(179)](t,s[e(201)]),i=-1,n=!0)}return n}}function p(t,e){const o=u();return(p=function(t,e){return o[t-=114]})(t,e)}function h(t,e,o){const n=f;if(o[n(147)])return!1;const i=n(e?195:125);return t[n(146)](t[n(205)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(213)])return 0;const i=t[n(181)](o);for(let o=0;o<e[n(213)];o++){const s=e[o],r=t[n(181)](s[n(201)]);if(n(132)===i[n(130)](r))return o}const s=o[n(135)];let r=-1;for(let t=e[n(213)]-1;t>=0;t--)if(e[t][n(201)][n(135)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(158)][n(169)](),c=a[n(134)](s[n(182)]),l=a[c+1];if(l)for(let t=0;t<e[n(213)];t++)if(e[t][n(201)][n(135)][n(182)]===l)return t;return e[n(213)]}const g=y;function w(){const t=["end","plugins","string","178fNSakp","editor","change","get","checkChild","_getPositionToInsertFootnote","execute","createElement","getFirstRange","6VPNNYG","footnoteId","isBlock","FootnotesEditing","isEnabled","2817603yvcvmj","length","getItems","1480lYLVku","13741632DpasLN","isObject","insert-footnote-command-executed-with-invalid-id","3887155MxyGmU","document","selection","refresh","_moveSelectionToFootnoteDefinition","231TyOwnm","model","5053hAaJbc","763YZFHPW","222668lHWCAn","6seDQmb","220370IWimOS","test","insertObject","footnoteRef"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(565507===-parseInt(e(142))/1*(parseInt(e(153))/2)+-parseInt(e(162))/3*(parseInt(e(144))/4)+parseInt(e(135))/5*(parseInt(e(145))/6)+parseInt(e(143))/7*(-parseInt(e(131))/8)+-parseInt(e(128))/9+-parseInt(e(146))/10*(parseInt(e(140))/11)+parseInt(e(132))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(138)](){const t=g,e=this[t(154)][t(141)][t(136)][t(137)],o=this[t(158)](e);this[t(127)]=!!o}[g(159)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(136)],r=this[e(158)](s);if(!r)return;const a=o[e(151)][e(156)](e(165)),c=t?.[e(163)]??(0,i.uid)();!function(t){const o=e;return o(152)==typeof t&&t[o(129)]>0&&!/\s/[o(147)](t)&&!/^\d/[o(147)](t)}(c)?(0,i.logWarning)(e(134)):(n[e(155)](t=>{const o=e,i=t[o(160)](o(149),{footnoteId:c});n[o(148)](i,r,null)}),a[e(139)](c))}[g(158)](t){const e=g,{model:o}=this[e(154)],{schema:n}=o,i=t[e(161)]();for(const t of i[e(130)]())if(n[e(164)](t)||n[e(133)](t))return null;const s=i[e(150)];return n[e(157)](s,e(149))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function 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:1764547200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=D;function A(){const t=["config","reduce","createRangeIn","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","drop","90853luBNYr","32624zxZQTO","sourceEditorId","354vSTASl","content","outputTransformation","change","_handleCopyFootnotesDefinitions","toView","isOfficialPlugin","pluginName","_defineClipboardIntegration","footnoteDefinition","footnotes.multiBlock","clipboardInput","method","toModel","flatMap","includes","init","get","requires","end","stringify","element","definition","editor","toData","isPremiumPlugin","application/ckeditor5-footnotes","2873760rvzUwJ","4UlkkaH","18185535FJQBIc","append","htmlProcessor","editing","contentInsertion","data","footnoteId","insert","dataTransfer","createElement","root","1977064rRLffb","getSelectedBlocks","entries","push","2720065VCnEFE","setAttribute","add","getFootnotesDefinitionsObjectElement","FootnotesClipboard","getRanges","getFootnotes","parse","footnotesDefinitions","from","selection","document","remove","listenTo","_handlePasteFootnotesDefinitions","getData","setData","length","getAttribute","getFootnote","2178090YmjGoY","getFirstRange","create","find","footnoteRef"];return(A=function(){return t})()}function D(t,e){const o=A();return(D=function(t,e){return o[t-=194]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(536282===parseInt(e(254))/1*(-parseInt(e(206))/2)+-parseInt(e(242))/3+-parseInt(e(205))/4+parseInt(e(222))/5+parseInt(e(256))/6*(-parseInt(e(253))/7)+parseInt(e(218))/8+parseInt(e(207))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[P(263)](){return P(226)}static get[P(196)](){return[v,T.ClipboardPipeline]}static get[P(262)](){return!0}static get[P(203)](){return!0}[P(194)](){this[P(264)]()}[P(264)](){const t=P;this[t(260)](),this[t(236)]()}[P(260)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(195)](T.ClipboardPipeline),s=o[t(195)](d);this[t(235)](i,t(258),(o,i)=>{const r=t,a=L(n[r(249)](i[r(257)]));if(!a[r(239)])return;const c=s[r(228)](),l=a[r(248)]((t,o)=>{const n=r,i=c[n(245)](t=>t.id===o);if(i){const o=e[n(212)][n(261)](i[n(200)],{isClipboardPipeline:!0}),s=e[n(212)][n(209)][n(202)](o);t[i.id]=s}return t},Object[r(244)](null));i[r(215)][r(238)](r(204),JSON[r(198)](l))})}[P(236)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(210)],r=n[t(195)](T.ClipboardPipeline),a=n[t(195)](d),c=e[t(247)][t(195)](t(266));let l=null;this[t(235)](s[t(233)],t(267),(e,o)=>{const n=t,i=o[n(215)][n(237)](n(204));l=i?JSON[n(229)](i):null}),this[t(235)](r,t(211),(n,s)=>{const r=t,f=s[r(255)]===this[r(201)].id;f&&r(252)===s[r(268)]||o[r(259)](t=>{const n=r;let u=a[n(225)]();const d=!!u&&Array[n(231)](o[n(233)][n(232)][n(219)]())[n(271)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(249)](e))n.is(o(199),o(230))&&i[o(221)](n);for(const e of i)t[o(234)](e)}(t,s[n(257)]),!l)return;const{selection:p}=o[n(233)],h=p[n(243)]()[n(217)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(249)](e))if(n.is(o(199),o(230)))return n;return null}(t,s[n(257)]),u||=a[n(250)](t,h));const m=Array[n(231)](p[n(227)]())[n(270)](L),g=function(t,e,o){const s=n,r=Object[s(244)](null);for(const{item:n}of t[s(249)](e))if(n.is(s(199),s(246))){const e=n[s(240)](s(213));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(223)](s(213),r[e],n)}return r}(t,s[n(257)],t=>{const e=n;return!f||!!a[e(241)](t)&&!m[e(271)](t)});for(const[o,i]of Object[n(220)](l)){const s=g[o]||o,r=t[n(216)](n(265),{footnoteId:s}),a=e[n(212)][n(209)][n(261)](i);let l;if(c)l=e[n(212)][n(269)](a,r);else{l=t[n(216)](n(251));const o=e[n(212)][n(269)](a,l);t[n(214)](o,l)}t[n(208)](l,r),t[n(214)](r,u,n(197))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(199),e(246))&&o[e(224)](n[e(240)](e(213)));return Array[e(231)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),B=o.n(K),W=o(102),j=o.n(W),U=o(123),M=o.n(U),H=o(741),z=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=M(),G.insert=j().bind(null,"head"),G.domAPI=B(),G.insertStyleElement=z();R()(q.A,G);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=J,o=t();;)try{if(100083===-parseInt(e(420))/1*(-parseInt(e(413))/2)+parseInt(e(408))/3*(-parseInt(e(406))/4)+-parseInt(e(411))/5*(-parseInt(e(407))/6)+-parseInt(e(421))/7+-parseInt(e(418))/8+parseInt(e(415))/9*(parseInt(e(409))/10)+-parseInt(e(414))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[X(412)](){return X(410)}static get[X(405)](){return[v,_,Y]}static get[X(416)](){return!0}static get[X(419)](){return!0}}function $(){var t=["505575RCfgGy","requires","724LJyxee","388302NCvkaF","3261mPbaFI","26900EEwJLV","Footnotes","5jhLeAE","pluginName","8rwprGd","287309AVGlsZ","450pQlrSI","isOfficialPlugin","144mVUNxN","1171568TStBEs","isPremiumPlugin","714xyDcIX"];return($=function(){return t})()}function tt(t,e){const o=nt();return(tt=function(t,e){return o[t-=359]})(t,e)}const et=tt;!function(t){const e=tt,o=t();for(;;)try{if(927603===parseInt(e(368))/1*(parseInt(e(363))/2)+parseInt(e(370))/3*(-parseInt(e(369))/4)+-parseInt(e(367))/5+-parseInt(e(365))/6*(-parseInt(e(375))/7)+-parseInt(e(373))/8*(parseInt(e(377))/9)+-parseInt(e(362))/10*(-parseInt(e(378))/11)+parseInt(e(359))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[et(360),et(374),et(376),et(361),et(366),et(371),et(364),et(372)];function nt(){const t=["240DHjWnG","decimal-leading-zero","35mOWHeC","lower-latin","383742vFupDr","22NSYDTX","49630776CTDqFM","decimal","upper-latin","2077150UrSZzC","179412NwADCP","lower-roman","33246cKfqVn","lower-alpha","8683740XgCuWT","13RemTLg","116240JkCrJP","186SaKFfN","upper-alpha","upper-roman"];return(nt=function(){return t})()}const it=rt;function st(){const t=["71148oUOinD","value","change","_updateFootnotesCounters","includes","4403791saFFuM","setAttribute","3926cymfgr","3727590RZQSCM","execute","9lYcXZa","130gqDcMZ","1240ZxgUAP","5WWdazs","refresh","getFootnotesDefinitionsObjectElement","model","plugins","74vlrudF","get","8318264GjiuAC","3062620rtqZEI","isEnabled","2051748EcPWFi","footnotesListStyle","3vcwxVm","getAttribute"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(553274===parseInt(e(219))/1*(-parseInt(e(230))/2)+-parseInt(e(237))/3*(parseInt(e(233))/4)+-parseInt(e(225))/5*(-parseInt(e(220))/6)+-parseInt(e(244))/7+-parseInt(e(232))/8*(parseInt(e(222))/9)+parseInt(e(224))/10*(parseInt(e(239))/11)+parseInt(e(235))/12*(parseInt(e(223))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(226)](){const t=it,{editor:e}=this,o=e[t(229)][t(231)](d)[t(227)]();this[t(234)]=!!o,this[t(240)]=o?.[t(238)](t(236))??null}[it(221)]({value:t}){const e=it,{editor:o}=this,n=o[e(229)][e(231)](d),i=n[e(227)]();i&&ot[e(243)](t)&&o[e(228)][e(241)](o=>{const s=e;o[s(218)](s(236),t,i),n[s(242)](o)})}}const ct=ft;function lt(){const t=["isInteger","853737gWQxls","_updateFootnotesCounters","setAttribute","getAttribute","13798UUyZYE","isEnabled","get","getFootnotesDefinitionsObjectElement","1881816cOZNJP","model","8XrrTlq","value","1698680SdUpds","execute","footnotesListStart","267ieaNDC","refresh","change","9433359sCZryT","10754233GTeazx","2138464IaAUpx","plugins"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=370]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(846650===parseInt(e(383))/1+-parseInt(e(387))/2*(parseInt(e(375))/3)+-parseInt(e(380))/4+parseInt(e(372))/5+parseInt(e(391))/6+parseInt(e(379))/7*(parseInt(e(370))/8)+-parseInt(e(378))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(376)](){const t=ct,{editor:e}=this,o=e[t(381)][t(389)](d)[t(390)]();this[t(388)]=!!o,this[t(371)]=o?.[t(386)](t(374))??null}[ct(373)]({value:t}){const e=ct,{editor:o}=this,n=o[e(381)][e(389)](d),i=n[e(390)]();i&&Number[e(382)](t)&&o[e(392)][e(377)](o=>{const s=e;o[s(385)](s(374),t,i),n[s(384)](o)})}}function dt(){const t=["parent","hasAttribute","start","20XHTHak","891991WAdaWn","mapper","isOfficialPlugin","setAttribute","upper-latin","add","isNaN","fromCharCode","setStyle","10703759hbywsi","footnotes.footnotesProperties.defaultListStyle","removeStyle","toViewElement","find","element:ol","position","padStart","7hlXgEb","attribute:footnotesListStyle:footnotesDefinitions","modelCursor","footnotesStyle","_defineConverters","getChanges","_getDefaultListStyle","367527VzHKEe","_defineFormatter","_defineSchema","_formatFootnoteListValue","lower-alpha","writer","lower-roman","getChildren","footnotesListStyle","2UHHVJT","parseInt","list-style-type","define","extend","createRangeOn","1038xytWdd","_definePostfixer","2342169cEdYzn","footnotesDefinitions","item","lower-latin","footnotes.footnotesProperties.defaultStartIndex","commands","isPremiumPlugin","$text","editor","registerPostFixer","footnotesListStart","config","35210LYlVoP","type","attribute:footnotesListStart:footnotesDefinitions","removeAttribute","getStyle","name","floor","consumable","checkAttribute","downcast","1411056IXoqwU","3531076hophNe","setFootnoteFormatter","nodeAfter","from","upper-roman","schema","for","requires","viewItem","upcast","_getDefaultStartIndex","document","differ","decimal","insert","footnotes-list","decimal-leading-zero","footnotesStart","FootnotesPropertiesEditing","element","_updateFootnotesCounters","get","getAttribute","init","max","getItems","hasClass","model","toLowerCase","consume","plugins","upper-alpha","pluginName","toUpperCase"];return(dt=function(){return t})()}const pt=mt;!function(t){const e=mt,o=t();for(;;)try{if(830512===-parseInt(e(152))/1*(parseInt(e(185))/2)+-parseInt(e(176))/3+-parseInt(e(216))/4+parseInt(e(205))/5*(parseInt(e(191))/6)+-parseInt(e(169))/7*(parseInt(e(215))/8)+-parseInt(e(193))/9+parseInt(e(151))/10*(parseInt(e(161))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ht extends t.Plugin{static get[pt(146)](){return pt(234)}static get[pt(223)](){return[v,d]}static get[pt(154)](){return!0}static get[pt(199)](){return!0}[pt(137)](){const t=pt,{editor:e}=this;e[t(204)][t(188)](t(162),t(229)),e[t(204)][t(188)](t(197),1),e[t(198)][t(157)](t(172),new at(e)),e[t(198)][t(157)](t(233),new ut(e)),this[t(178)](),this[t(173)](),this[t(177)](),this[t(192)]()}[pt(178)](){const t=pt,{editor:e}=this,{schema:o}=e[t(141)];o[t(189)](t(194),{allowAttributes:[t(184),t(203)]})}[pt(173)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(222)](t(225))[t(157)](e=>{const o=t;e.on(o(166),(t,e,n)=>{const s=o,r=e[s(224)],a=e[s(171)]?.[s(148)];r[s(140)](s(231))&&a?.is(s(235),s(194))&&(function(t,e,o,n){const i=s;if(!n[i(213)](e,i(203)))return;let r=1;const a=o[i(212)][i(143)](t,{attributes:i(150)});if(a){const e=Number[i(186)](t[i(136)](i(150)),10);Number[i(158)](e)||(r=e)}!a&&e[i(149)](i(203))||o[i(181)][i(155)](i(203),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(213)](e,i(184)))return;let r=i(229),a=!1;if(o[i(212)][i(143)](t,{attributes:i(206)})){const e={1:i(229),a:i(180),A:i(145),i:i(182),I:i(220)}[t[i(136)](i(206))];e&&(r=e),a=!0}o[i(212)][i(143)](t,{styles:i(187)})&&(r=function(t){const e=i;switch(t){case e(180):return e(196);case e(145):return e(156);default:return t}}(t[i(209)](i(187))),a=!0),!a&&e[i(149)](i(184))||o[i(181)][i(155)](i(184),r,e)}(r,a,n,i))})}),o[t(222)](t(214))[t(157)](e=>{const o=t;e.on(o(207),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;null==r||1===r?n[i(181)][i(208)](i(150),s):n[i(181)][i(155)](i(150),String(r),s)}),e.on(o(170),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;r&&i(229)!==r?n[i(181)][i(160)](i(187),r,s):n[i(181)][i(163)](i(187),s)})})}[pt(192)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(144)][t(135)](d),i=this[t(175)](),s=this[t(226)]();o[t(227)][t(202)](e=>{const r=t,a=o[r(227)][r(228)][r(174)]();let c=!1;for(const t of a){if(r(230)!==t[r(206)]||r(200)===t[r(210)])continue;const n=o[r(190)](t[r(167)][r(218)]);for(const t of n[r(139)]())t.is(r(235),r(194))&&(!t[r(149)](r(203))&&o[r(221)][r(213)](t,r(203))&&(e[r(155)](r(203),s,t),c=!0),!t[r(149)](r(184))&&o[r(221)][r(213)](t,r(184))&&(e[r(155)](r(184),i,t),c=!0))}return c&&n[r(236)](e),c})}[pt(177)](){const t=pt,{editor:e}=this;e[t(144)][t(135)](d)[t(217)](e=>this[t(179)](e))}[pt(175)](){const t=pt;return this[t(201)][t(204)][t(135)](t(162))}[pt(226)](){const t=pt;return this[t(201)][t(204)][t(135)](t(197))}[pt(179)]({container:t,value:e,digits:o}){const n=pt,i=t[n(136)](n(184)),s=t[n(136)](n(203)),r=Math[n(211)](e)+(s??1)-1;switch(i){case n(232):return function(t,e){const o=n;return String(t)[o(168)](e,"0")}(r,Math[n(138)](2,o));case n(180):case n(196):return wt(r,!1);case n(145):case n(156):return wt(r,!0);case n(182):return bt(r,!1);case n(220):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt();return(mt=function(t,e){return o[t-=135]})(t,e)}function gt(t,e){const o=pt,n=e[o(164)](t);return Array[o(219)](n[o(183)]())[o(165)](t=>t.is(o(235),"ol")&&t[o(140)](o(231)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(159)](97+t)+n,i=Math[o(211)]((i-1)/26)}return e?n[o(147)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(142)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=M(),kt.insert=j().bind(null,"head"),kt.domAPI=B(),kt.insertStyleElement=z();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=491]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","16PGXoOm","isOfficialPlugin","5VkOiYa","81ZitBLb","2311896oYTRuq","FootnotesProperties","requires","119WkEaHE","199284GGYZJs","3497672rEGrzm","127896nvpEQS","30689BXKotR","572412aoiWrX","616430oweDyH","418OYHQuP"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(290988===parseInt(e(499))/1*(parseInt(e(505))/2)+parseInt(e(500))/3+parseInt(e(492))/4*(parseInt(e(507))/5)+-parseInt(e(498))/6*(parseInt(e(495))/7)+-parseInt(e(497))/8+-parseInt(e(491))/9*(parseInt(e(501))/10)+-parseInt(e(502))/11*(-parseInt(e(496))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(504)](){return Ft(493)}static get[Ft(494)](){return[ht,Ct]}static get[Ft(506)](){return!0}static get[Ft(503)](){return!0}}function Tt(){var t=["10wXxEqk","6lNlDfM","1666840GlxjfH","2904QLMVJo","1288PhdGTq","2575680WmqHUv","13909UQGmuQ","50VPLett","636205YKwAUY","936562GvrpKj","542862xzKuhL"];return(Tt=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=118]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(199876===parseInt(e(127))/1*(-parseInt(e(128))/2)+parseInt(e(124))/3*(parseInt(e(125))/4)+parseInt(e(118))/5+parseInt(e(122))/6*(-parseInt(e(123))/7)+parseInt(e(126))/8+-parseInt(e(120))/9+-parseInt(e(121))/10*(-parseInt(e(119))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(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 _0x273f4a,Command as _0x54becd}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x352a26,isWidget as _0x2fb996,toWidgetEditable as _0xc19423,WidgetToolbarRepository as _0x2c7926}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x420e0d,logWarning as _0x2e9b58,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x54c9f8,ClickObserver as _0x48397f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x566352}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5f5250,ButtonView as _0x198b0f,View as _0x2835d4,ViewCollection as _0x162f6c,FocusCycler as _0x2d8567,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0xb8113c,BalloonPanelView as _0x2ca87d,createDropdown as _0x381698}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1e006b,IconListStyleDecimal as _0x15a08c,IconListStyleDecimalLeadingZero as _0x264bb0,IconListStyleLowerRoman as _0x375405,IconListStyleUpperRoman as _0x217d48,IconListStyleLowerLatin as _0x40d259,IconListStyleUpperLatin as _0x4d31f5}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x507341,_0x2c6cc8){this['_model']=_0x507341,this['_elementName']=_0x2c6cc8['elementName'],this['_getElementKey']=_0x2c6cc8['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xf2f780){const _0x550cbd=new Set(),_0x840464=new Map();for(const _0x187752 of _0xf2f780){if('insert'===_0x187752['type']&&'$text'!==_0x187752['name']&&_0x187752['position']['nodeAfter']){const _0x143e60=this['_model']['createRangeOn'](_0x187752['position']['nodeAfter']);for(const _0x47dd60 of _0x143e60['getItems']()){if(!_0x47dd60['is']('element',this['_elementName']))continue;const _0x3cb06b=this['_getElementKey'](_0x47dd60);_0x840464['has'](_0x3cb06b)||_0x840464['set'](_0x3cb06b,[]),_0x840464['get'](_0x3cb06b)['push'](_0x47dd60);}}if('remove'===_0x187752['type']&&_0x187752['name']===this['_elementName']){const _0x32d6d8=this['_getElementKey']({'getAttribute':_0x23eedc=>_0x187752['attributes']['get'](_0x23eedc)});_0x550cbd['add'](_0x32d6d8);}}for(const [_0x3178f0,_0x3565ff]of this['_trackedElements'])'$graveyard'===_0x3565ff['root']['rootName']&&_0x550cbd['add'](_0x3178f0);for(const _0x2232a5 of _0x550cbd)this['_trackedElements']['delete'](_0x2232a5);for(const [_0x23d121,_0x41eb6e]of _0x840464)this['_trackedElements']['set'](_0x23d121,_0x41eb6e[_0x41eb6e['length']-0x1]);const _0x43f39c=new Set();for(const [_0x19b733,_0x33201a]of _0x840464)_0x550cbd['has'](_0x19b733)&&(_0x43f39c['add'](_0x33201a[0x0]),_0x33201a['length']>0x1?_0x840464['set'](_0x19b733,_0x33201a['slice'](0x1)):_0x840464['delete'](_0x19b733),_0x550cbd['delete'](_0x19b733));return{'removed':Array['from'](_0x550cbd),'inserted':Array['from'](_0x840464['values']())['flat'](),'moved':Array['from'](_0x43f39c)};}}class f extends _0x273f4a{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x583abb){super(_0x583abb),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5a9661=>_0x5a9661['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x442c7c=>_0x442c7c['getAttribute']('footnoteId')});}['init'](){const {editor:_0x50253c}=this,{model:_0x5a549f,data:_0x2c6f3e}=_0x50253c;_0x5a549f['document']['registerPostFixer'](_0x333599=>{const _0x3c544e=_0x5a549f['document']['differ']['getChanges']();let _0x346ef9=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x333599,_0x3c544e)&&(_0x346ef9=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x333599,_0x3c544e)&&(_0x346ef9=!0x0),this['_handleFootnoteReferencesChanges'](_0x333599,_0x3c544e)&&(_0x346ef9=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x333599)&&(_0x346ef9=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x333599)&&(_0x346ef9=!0x0),this['_sortFootnoteDefinitions'](_0x333599)&&(_0x346ef9=!0x0),_0x346ef9;}),this['listenTo'](_0x5a549f['document'],'change:data',()=>{_0x5a549f['enqueueChange']({'isUndoable':!0x1},_0x40654e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x40654e);});},{'priority':'low'}),this['listenTo'](_0x2c6f3e,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5914da){return this['_footnotes']['find'](_0x3dd9f3=>_0x3dd9f3['id']===_0x5914da)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x9fa1b6){this['_footnoteFormatter']=_0x9fa1b6;}['_updateFootnotesCounters'](_0x5fd76e,_0x4b8005=0x0){let _0x125452=!0x1;for(let _0x4b5582=_0x4b8005;_0x4b5582<this['_footnotes']['length'];_0x4b5582++)this['_updateFootnoteRefCounter'](_0x5fd76e,_0x4b5582)&&(_0x125452=!0x0);return _0x125452;}['_insertEmptyFootnotesDefinitionsContainer'](_0x16f7b7,_0x3aaa3a){const _0x312ba4=_0x16f7b7['createElement']('footnotesDefinitions',{});return _0x16f7b7['append'](_0x312ba4,_0x3aaa3a),this['_footnotesDefinitions']=_0x312ba4,_0x312ba4;}['_ensureFootnotesDefinitionsContainerExists'](_0x25b89a){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0xe3d92=this['_footnotes'][0x0]['reference']['root'],_0x2df4fe=this['_insertEmptyFootnotesDefinitionsContainer'](_0x25b89a,_0xe3d92);for(const _0xe43352 of this['_footnotes'])_0xe43352['definition']['parent']||_0x25b89a['insert'](_0xe43352['definition'],_0x2df4fe,'end');this['_updateFootnotesCounters'](_0x25b89a);}['_handleFootnotesDefinitionsObjectChanges'](_0x5eb707,_0x48c9f9){let _0x3f8e51=!0x1;const {inserted:_0x351194,removed:_0x2ba56a,moved:_0x3bb079}=this['_footnoteDefsContainerTracker']['getChanges'](_0x48c9f9);if(_0x3bb079['length']&&(this['_footnotesDefinitions']=_0x3bb079[0x0]),_0x351194['length']){if(_0x351194['length']>0x1||this['_footnotesDefinitions']&&_0x351194['some'](_0x2da069=>_0x2da069!==this['_footnotesDefinitions'])){const _0x4c8a38=_0x5eb707['createElement']('footnotesDefinitions',{}),_0xa9579=[];this['_footnotesDefinitions']&&_0xa9579['push'](this['_footnotesDefinitions']),_0xa9579['push'](..._0x351194),_0x5eb707['insert'](_0x4c8a38,_0xa9579[0x0],'before');for(const _0x5e4ad5 of _0xa9579)_0x5eb707['move'](_0x5eb707['createRangeIn'](_0x5e4ad5),_0x5eb707['createPositionAt'](_0x4c8a38,'end')),_0x5eb707['remove'](_0x5e4ad5);this['_footnotesDefinitions']=_0x4c8a38,this['_updateFootnotesCounters'](_0x5eb707),_0x3f8e51=!0x0;}else this['_footnotesDefinitions']=_0x351194[0x0];}if(_0x2ba56a['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x42a1a6 of this['_footnotes'])_0x5eb707['remove'](_0x42a1a6['reference']),_0x3f8e51=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x3f8e51;}['_handleFootnoteDefinitionsChanges'](_0x589e71,_0x14f564){let _0x11af02=!0x1;const _0x40c059=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x52aa00,moved:_0x320e14}=this['_footnoteDefsTracker']['getChanges'](_0x14f564);for(const _0x30eeff of[..._0x320e14,..._0x52aa00]){const _0x5a81d5=_0x30eeff['getAttribute']('footnoteId'),_0x1beb39=this['getFootnote'](_0x5a81d5);_0x1beb39&&(_0x1beb39['definition']=_0x30eeff),_(_0x589e71,_0x40c059,_0x30eeff)&&(_0x11af02=!0x0);}return _0x11af02;}['_handleFootnoteReferencesChanges'](_0x1ca51b,_0x13aade){let _0x132bb7=!0x1;const {removed:_0x300b24,inserted:_0x21a388,moved:_0x341443}=this['_footnoteRefsTracker']['getChanges'](_0x13aade);for(const _0x891e44 of _0x300b24)this['_handleRemoveFootnoteReferenceById'](_0x1ca51b,_0x891e44)&&(_0x132bb7=!0x0);for(const _0x5673b7 of _0x21a388)this['_handleInsertedFootnoteReference'](_0x1ca51b,_0x5673b7)&&(_0x132bb7=!0x0);for(const _0x2146ee of _0x341443)this['_handleMovedFootnoteReference'](_0x1ca51b,_0x2146ee)&&(_0x132bb7=!0x0);return _0x132bb7;}['_handleFootnotesDefinitionsObjectSync'](_0x7ad479){if(!this['_footnotesDefinitions'])return!0x1;let _0x379fe8=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4668a5=[];for(const _0x495d23 of this['_footnotesDefinitions']['getChildren']()){const _0xf38131=_0x495d23['getAttribute']('footnoteId');this['getFootnote'](_0xf38131)||(_0x4668a5['unshift'](_0x495d23),_0x379fe8=!0x0);}for(const _0x56ef0d of _0x4668a5)_0x7ad479['remove'](_0x56ef0d);}const _0x2b3c5f=new Set(),_0xc1ecc2=[];for(const _0x4b32b0 of this['_footnotesDefinitions']['getChildren']()){const _0x4078c6=_0x4b32b0['getAttribute']('footnoteId');_0x2b3c5f['has'](_0x4078c6)?(_0xc1ecc2['unshift'](_0x4b32b0),_0x379fe8=!0x0):_0x2b3c5f['add'](_0x4078c6);}for(const _0x7182e8 of _0xc1ecc2)_0x7ad479['remove'](_0x7182e8);return this['_footnotesDefinitions']['childCount']||(_0x7ad479['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x379fe8=!0x0),_0x379fe8;}['_handleInsertedFootnoteReference'](_0x29e404,_0x50a463){if(this['_footnotes']['find'](_0x1609fe=>_0x1609fe['reference']===_0x50a463))return!0x1;let _0x4c35a0=!0x1;const _0x43ad94=_0x50a463['getAttribute']('footnoteId'),_0x27db5f=this['_footnotes']['findIndex'](_0x18bf40=>_0x18bf40['id']===_0x43ad94);-0x1!==_0x27db5f&&(_0x29e404['remove'](this['_footnotes'][_0x27db5f]['reference']),this['_footnotes']['splice'](_0x27db5f,0x1),_0x4c35a0=!0x0);let _0x4243ed=this['_footnotesDefinitions']?function(_0x4f7d53,_0x5b7c44){for(const _0xa758e9 of _0x4f7d53['getChildren']())if(_0xa758e9['getAttribute']('footnoteId')===_0x5b7c44)return _0xa758e9;return null;}(this['_footnotesDefinitions'],_0x43ad94):null;_0x4243ed||(_0x4243ed=_0x29e404['createElement']('footnoteDefinition',{'footnoteId':_0x43ad94}),this['_footnotesDefinitions']&&(_0x29e404['insert'](_0x4243ed,this['_footnotesDefinitions'],'end'),_0x4c35a0=!0x0));const _0x572bee={'id':_0x43ad94,'reference':_0x50a463,'definition':_0x4243ed},_0x52b276=I(this['editor']['model'],this['_footnotes'],_0x50a463);this['_footnotes']['splice'](_0x52b276,0x0,_0x572bee);let _0xe9a9b1=_0x52b276;return-0x1!==_0x27db5f&&(_0xe9a9b1=Math['min'](_0x52b276,_0x27db5f)),this['_updateFootnotesCounters'](_0x29e404,_0xe9a9b1)&&(_0x4c35a0=!0x0),_0x4c35a0;}['_handleRemoveFootnoteReferenceById'](_0x309b2a,_0x5250b4){const _0x3e3680=this['_footnotes']['findIndex'](_0x58f4b8=>_0x58f4b8['id']===_0x5250b4);if(-0x1===_0x3e3680)return!0x1;let _0x3ba94f=!0x1;const _0x3c4209=this['_footnotes'][_0x3e3680];return'$graveyard'!==_0x3c4209['definition']['root']['rootName']&&(_0x309b2a['remove'](_0x3c4209['definition']),_0x3ba94f=!0x0),this['_footnotes']['splice'](_0x3e3680,0x1),this['_updateFootnotesCounters'](_0x309b2a,_0x3e3680)&&(_0x3ba94f=!0x0),_0x3ba94f;}['_handleMovedFootnoteReference'](_0x34b761,_0x2e0ebd){const _0x8c9130=_0x2e0ebd['getAttribute']('footnoteId'),_0x902d0d=this['_footnotes']['findIndex'](_0x550681=>_0x550681['id']===_0x8c9130),_0x1f6f94=this['_footnotes'][_0x902d0d];let _0x492a1a=!0x1;_0x1f6f94['reference']=_0x2e0ebd,this['_footnotes']['splice'](_0x902d0d,0x1);const _0xaf1dcd=I(this['editor']['model'],this['_footnotes'],_0x2e0ebd);return this['_footnotes']['splice'](_0xaf1dcd,0x0,_0x1f6f94),this['_updateFootnotesCounters'](_0x34b761,Math['min'](_0x902d0d,_0xaf1dcd))&&(_0x492a1a=!0x0),_0x492a1a;}['_updateFootnoteRefCounter'](_0x490b25,_0x4837f6){if(!this['_footnotesDefinitions'])return!0x1;const _0xec9244=this['_footnotes'][_0x4837f6];let _0x4e2d2d;return _0x4e2d2d=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xec9244,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4837f6+0x1}):String(_0x4837f6+0x1),_0xec9244['reference']['getAttribute']('footnoteCounter')!=_0x4e2d2d&&(_0x490b25['setAttribute']('footnoteCounter',_0x4e2d2d,_0xec9244['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x30e7e4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x23c7d5,_0x35bdab){if(_0x23c7d5['length']!==_0x35bdab['length'])return!0x1;for(let _0x1c46f9=0x0;_0x1c46f9<_0x23c7d5['length'];_0x1c46f9++)if(_0x23c7d5[_0x1c46f9]!==_0x35bdab[_0x1c46f9])return!0x1;return!0x0;}(this['_footnotes']['map'](_0xbbaba1=>_0xbbaba1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x35602c=>_0x35602c['getAttribute']('footnoteId'))))return!0x1;let _0x42c1a6=!0x1;for(let _0x51876c=0x0;_0x51876c<this['_footnotes']['length'];_0x51876c++){const _0x5ae3cb=this['_footnotes'][_0x51876c],_0x43dbb5=_0x30e7e4['createPositionBefore'](_0x5ae3cb['definition']),_0x5e627d=_0x30e7e4['createPositionAt'](this['_footnotesDefinitions'],_0x51876c);_0x43dbb5['isEqual'](_0x5e627d)||(_0x30e7e4['move'](_0x30e7e4['createRangeOn'](_0x5ae3cb['definition']),_0x5e627d),_0x42c1a6=!0x0);}return _0x42c1a6;}['_ensureFootnotesReferencesHaveProperOrder'](_0x48eae1){if(!this['_footnotes']['length'])return!0x1;const {model:_0x178bb4}=this['editor'];let _0x17a728=!0x1;for(let _0x1c8918=0x0;_0x1c8918<this['_footnotes']['length']-0x1;_0x1c8918++){const _0x40a7ed=this['_footnotes'][_0x1c8918],_0x58f4fa=this['_footnotes'][_0x1c8918+0x1],_0x1d0307=_0x178bb4['createPositionBefore'](_0x40a7ed['reference']),_0x55a96c=_0x178bb4['createPositionBefore'](_0x58f4fa['reference']);'after'===_0x1d0307['compareWith'](_0x55a96c)&&(this['_handleMovedFootnoteReference'](_0x48eae1,_0x40a7ed['reference']),_0x1c8918=-0x1,_0x17a728=!0x0);}return _0x17a728;}}function _(_0x4611bf,_0x3f2669,_0x2cad33){if(_0x2cad33['childCount'])return!0x1;const _0x1e21bf=_0x3f2669?'paragraph':'footnoteInlineContent';return _0x4611bf['insert'](_0x4611bf['createElement'](_0x1e21bf),_0x2cad33),!0x0;}function I(_0x3346d1,_0x33d21c,_0x271d43){if(0x0===_0x33d21c['length'])return 0x0;const _0x4460a7=_0x3346d1['createPositionBefore'](_0x271d43);for(let _0x28cd72=0x0;_0x28cd72<_0x33d21c['length'];_0x28cd72++){const _0x16a48a=_0x33d21c[_0x28cd72],_0x26e9f8=_0x3346d1['createPositionBefore'](_0x16a48a['reference']);if('before'===_0x4460a7['compareWith'](_0x26e9f8))return _0x28cd72;}const _0x65b184=_0x271d43['root'];let _0x3644f6=-0x1;for(let _0x379328=_0x33d21c['length']-0x1;_0x379328>=0x0;_0x379328--)if(_0x33d21c[_0x379328]['reference']['root']===_0x65b184){_0x3644f6=_0x379328;break;}if(-0x1!==_0x3644f6)return _0x3644f6+0x1;const _0xf4833d=_0x3346d1['document']['getRootNames'](),_0x162cae=_0xf4833d['indexOf'](_0x65b184['rootName']),_0x489fc4=_0xf4833d[_0x162cae+0x1];if(_0x489fc4){for(let _0x46fbb3=0x0;_0x46fbb3<_0x33d21c['length'];_0x46fbb3++)if(_0x33d21c[_0x46fbb3]['reference']['root']['rootName']===_0x489fc4)return _0x46fbb3;}return _0x33d21c['length'];}class m extends _0x54becd{['refresh'](){const _0x12e302=this['editor']['model']['document']['selection'],_0x3020e7=this['_getPositionToInsertFootnote'](_0x12e302);this['isEnabled']=!!_0x3020e7;}['execute'](_0x4632f7){const {editor:_0x52a9bb}=this,{model:_0x19a384}=_0x52a9bb,{selection:_0x4851b1}=_0x19a384['document'],_0x45d849=this['_getPositionToInsertFootnote'](_0x4851b1);if(!_0x45d849)return;const _0x497551=_0x52a9bb['plugins']['get']('FootnotesEditing'),_0x384431=_0x4632f7?.['footnoteId']??_0x420e0d();!function(_0x20b509){return'string'==typeof _0x20b509&&_0x20b509['length']>0x0&&!/\s/['test'](_0x20b509)&&!/^\d/['test'](_0x20b509);}(_0x384431)?_0x2e9b58('insert-footnote-command-executed-with-invalid-id'):(_0x19a384['change'](_0x138604=>{const _0x5aa1b7=_0x138604['createElement']('footnoteRef',{'footnoteId':_0x384431});_0x19a384['insertObject'](_0x5aa1b7,_0x45d849,null);}),_0x497551['_moveSelectionToFootnoteDefinition'](_0x384431));}['_getPositionToInsertFootnote'](_0x3090d7){const {model:_0x21ab93}=this['editor'],{schema:_0x496634}=_0x21ab93,_0x472169=_0x3090d7['getFirstRange']();for(const _0x474cea of _0x472169['getItems']())if(_0x496634['isBlock'](_0x474cea)||_0x496634['isObject'](_0x474cea))return null;const _0x27b18a=_0x472169['end'];return _0x496634['checkChild'](_0x27b18a,'footnoteRef')?_0x27b18a:null;}}class r extends _0x273f4a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ad0f7}=this;_0x2ad0f7['config']['define']('footnotes.multiBlock',!0x0),_0x2ad0f7['commands']['add']('insertFootnote',new m(_0x2ad0f7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3dd220){const _0x50e088=_0xbb135d([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]),_0x99d74e=0x47a28506,_0x4b54d5=0x47a5ff96^_0x99d74e,_0x57e4c8=window[_0xbb135d([0x44,0x61,0x74,0x65])][_0xbb135d([0x6e,0x6f,0x77])](),_0xe5e8dd=_0x3dd220[_0xbb135d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4522bd=new window[(_0xbb135d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efa1b=>{_0xe5e8dd[_0xbb135d([0x6f,0x6e,0x63,0x65])](_0xbb135d([0x72,0x65,0x61,0x64,0x79]),_0x2efa1b);}),_0x1c6b97={[_0xbb135d([0x6b,0x74,0x79])]:_0xbb135d([0x45,0x43]),[_0xbb135d([0x75,0x73,0x65])]:_0xbb135d([0x73,0x69,0x67]),[_0xbb135d([0x63,0x72,0x76])]:_0xbb135d([0x50,0x2d,0x32,0x35,0x36]),[_0xbb135d([0x78])]:_0xbb135d([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]),[_0xbb135d([0x79])]:_0xbb135d([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]),[_0xbb135d([0x61,0x6c,0x67])]:_0xbb135d([0x45,0x53,0x32,0x35,0x36])},_0x3068d7=_0xe5e8dd[_0xbb135d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbb135d([0x67,0x65,0x74])](_0xbb135d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57e999(){let _0x1e607d,_0x24ac4b=null,_0xab24ad=null;try{if(_0x3068d7==_0xbb135d([0x47,0x50,0x4c]))return _0xbb135d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e607d=_0x37d9c8(),!_0x1e607d)return _0xbb135d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e607d[_0xbb135d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xab24ad=_0x43af72(_0x1e607d[_0xbb135d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e607d[_0xbb135d([0x6a,0x74,0x69])])),await _0x163fb6()?_0x57ed10()?_0x42a216()?_0xbb135d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x343908()?(_0x1e607d[_0xbb135d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbb135d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24ac4b=_0x4a61ab(_0xbb135d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e607d[_0xbb135d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbb135d([0x74,0x72,0x69,0x61,0x6c])&&(_0x24ac4b=_0x4a61ab(_0xbb135d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a8f86()):_0xbb135d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbb135d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbb135d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbb135d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x42a216(){const _0x395cfa=[_0xbb135d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbb135d([0x74,0x72,0x69,0x61,0x6c])][_0xbb135d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e607d[_0xbb135d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57e4c8/0x3e8:0xe10*_0x4b54d5;return _0x1e607d[_0xbb135d([0x65,0x78,0x70])]<_0x395cfa;}function _0x57ed10(){const _0x24ed98=_0x1e607d[_0xbb135d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24ed98&&(!!_0x24ed98[_0xbb135d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb135d([0x2a]))||!!_0x24ed98[_0xbb135d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb135d([0x46,0x4f,0x4f])));}function _0x343908(){const _0x2cf228=_0x1e607d[_0xbb135d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cf228||0x0==_0x2cf228[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14e328}=new URL(window[_0xbb135d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cf228[_0xbb135d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e328))return!0x0;const _0x56c57e=_0x14e328[_0xbb135d([0x73,0x70,0x6c,0x69,0x74])](_0xbb135d([0x2e]));return _0x2cf228[_0xbb135d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38f641=>_0x38f641[_0xbb135d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb135d([0x2a])))[_0xbb135d([0x6d,0x61,0x70])](_0x5968f0=>_0x5968f0[_0xbb135d([0x73,0x70,0x6c,0x69,0x74])](_0xbb135d([0x2e])))[_0xbb135d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4525f1=>_0x4525f1[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56c57e[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbb135d([0x6d,0x61,0x70])](_0x274122=>Array(_0x56c57e[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x274122[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbb135d([0x66,0x69,0x6c,0x6c])](_0x274122[0x0]===_0xbb135d([0x2a])?_0xbb135d([0x2a]):'')[_0xbb135d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x274122))[_0xbb135d([0x73,0x6f,0x6d,0x65])](_0x433c2c=>_0x56c57e[_0xbb135d([0x65,0x76,0x65,0x72,0x79])]((_0x454e48,_0x39a566)=>_0x433c2c[_0x39a566]===_0x454e48||_0x433c2c[_0x39a566]===_0xbb135d([0x2a])));}function _0x4a8f86(){return _0x24ac4b&&_0xab24ad?new window[(_0xbb135d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbd8279,_0x548595)=>{_0x24ac4b[_0xbb135d([0x74,0x68,0x65,0x6e])](_0xbd8279,_0x548595),_0xab24ad[_0xbb135d([0x74,0x68,0x65,0x6e])](_0x13d383=>{_0x13d383!=_0xbb135d([0x56,0x61,0x6c,0x69,0x64])&&_0xbd8279(_0x13d383);},_0x548595);}):_0x24ac4b||_0xab24ad||_0xbb135d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x43af72(_0x44cad3,_0x5060c6){return new window[(_0xbb135d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1475bf=>{if(_0x5c6fd3())return _0x1475bf(_0xbb135d([0x56,0x61,0x6c,0x69,0x64]));_0x2b9dc8(),_0xe5e8dd[_0xbb135d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbb135d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1abe48=!0x1;const _0x4e554b=_0x420e0d();function _0x4cc45c(_0x6667af){return!!_0x6667af&&(typeof _0x6667af===_0xbb135d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6667af===_0xbb135d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6667af[_0xbb135d([0x74,0x68,0x65,0x6e])]===_0xbb135d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6667af[_0xbb135d([0x63,0x61,0x74,0x63,0x68])]===_0xbb135d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1de9a5(_0x3c0d15){_0x589a20(_0x3c0d15)[_0xbb135d([0x74,0x68,0x65,0x6e])](_0x34b5e4=>{if(!_0x34b5e4||_0x34b5e4[_0xbb135d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbb135d([0x6f,0x6b]))return _0xbb135d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x500f38(_0x9325c7(_0x4e554b+_0x5060c6))!=_0x34b5e4[_0xbb135d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbb135d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbb135d([0x56,0x61,0x6c,0x69,0x64]);})[_0xbb135d([0x74,0x68,0x65,0x6e])](_0x92cace=>(_0x332c9e(),_0x92cace),()=>{const _0x1fdbab=_0x2cb834();return null==_0x1fdbab?(_0x332c9e(),_0xbb135d([0x56,0x61,0x6c,0x69,0x64])):_0xbb135d(_0x57e4c8-_0x1fdbab>(0x63ae0106^_0x99d74e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbb135d([0x74,0x68,0x65,0x6e])](_0x1475bf)[_0xbb135d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1475bf(_0xbb135d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14dc50=0x47946b86^_0x99d74e;function _0x332c9e(){const _0x22b171=_0xbb135d([0x6c,0x6c,0x63,0x74,0x2d])+_0x500f38(_0x9325c7(_0x44cad3)),_0x48cc9b=_0x369aca(_0x500f38(window[_0xbb135d([0x4d,0x61,0x74,0x68])][_0xbb135d([0x63,0x65,0x69,0x6c])](_0x57e4c8/_0x14dc50)));window[_0xbb135d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbb135d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22b171,_0x48cc9b);}function _0x2cb834(){const _0x66da06=_0xbb135d([0x6c,0x6c,0x63,0x74,0x2d])+_0x500f38(_0x9325c7(_0x44cad3)),_0xa01763=window[_0xbb135d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbb135d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x66da06);return _0xa01763?window[_0xbb135d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x369aca(_0xa01763),0x10)*_0x14dc50:null;}function _0x589a20(_0x49217f){return new window[(_0xbb135d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c41e6,_0x26bb76)=>{_0x49217f[_0xbb135d([0x74,0x68,0x65,0x6e])](_0x1c41e6,_0x26bb76),window[_0xbb135d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26bb76,0x47a351c6^_0x99d74e);});}}_0xe5e8dd[_0xbb135d([0x6f,0x6e])](_0xbb135d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4aa605,_0xdf457f)=>{if(_0xdf457f[0x0]!=_0x44cad3)return _0x1475bf(_0xbb135d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdf457f[0x1]={..._0xdf457f[0x1],[_0xbb135d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e554b};},{[_0xbb135d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbb135d([0x68,0x69,0x67,0x68])}),_0xe5e8dd[_0xbb135d([0x6f,0x6e])](_0xbb135d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x441593=>{_0x4cc45c(_0x441593[_0xbb135d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1abe48=!0x0,_0x1de9a5(_0x441593[_0xbb135d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbb135d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbb135d([0x6c,0x6f,0x77])}),_0x4522bd[_0xbb135d([0x74,0x68,0x65,0x6e])](()=>{_0x1abe48||_0x1475bf(_0xbb135d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c6fd3(){return _0xe5e8dd[_0xbb135d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbb135d([0x76,0x69,0x65,0x77])][_0xbb135d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbb135d([0x61,0x75,0x74,0x6f]);}function _0x2b9dc8(){_0xe5e8dd[_0xbb135d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbb135d([0x76,0x69,0x65,0x77])][_0xbb135d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbb135d([0x61,0x75,0x74,0x6f]);}}function _0x4a61ab(_0x5a7501){const _0x21726e=[new window[(_0xbb135d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x255190=>setTimeout(_0x255190,0x47abbbca^_0x99d74e)),_0x4522bd[_0xbb135d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbb135d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369a54=>{let _0x16fee6=0x0;_0xe5e8dd[_0xbb135d([0x6d,0x6f,0x64,0x65,0x6c])][_0xbb135d([0x6f,0x6e])](_0xbb135d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9497f2,_0x1c59c9)=>{_0x1c59c9[0x0][_0xbb135d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16fee6++,_0x16fee6==(0x47a284fe^_0x99d74e)&&(_0x369a54(),_0x9497f2[_0xbb135d([0x6f,0x66,0x66])]());});}))];return window[_0xbb135d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbb135d([0x72,0x61,0x63,0x65])](_0x21726e)[_0xbb135d([0x74,0x68,0x65,0x6e])](()=>_0x5a7501);}async function _0x1d4b1d(){await _0x4522bd,_0xe5e8dd[_0xbb135d([0x6d,0x6f,0x64,0x65,0x6c])][_0xbb135d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1487fc,_0xe5e8dd[_0xbb135d([0x6d,0x6f,0x64,0x65,0x6c])][_0xbb135d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1487fc,_0xe5e8dd[_0xbb135d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbb135d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13e707(_0x3033a3){const _0x1d4294=_0x5eb4b9();_0xe5e8dd[_0x1d4294]=_0xbb135d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3033a3,_0x3033a3!=_0xbb135d([0x56,0x61,0x6c,0x69,0x64])&&_0x1d4b1d();}function _0x5eb4b9(){const _0x5a4501=window[_0xbb135d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbb135d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbb135d([0x6e,0x6f,0x77])]())[_0xbb135d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbb135d([0x2e]),'');let _0x457062=_0xbb135d([0x75]);for(let _0x72f821=0x0;_0x72f821<_0x5a4501[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x72f821+=0x2){let _0x81dfe8=window[_0xbb135d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a4501[_0xbb135d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x72f821,_0x72f821+0x2));_0x81dfe8>=_0x50e088[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x81dfe8-=_0x50e088[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x457062+=_0x50e088[_0x81dfe8];}return _0x457062;}function _0x37d9c8(){const _0xc28086=_0x3068d7[_0xbb135d([0x73,0x70,0x6c,0x69,0x74])](_0xbb135d([0x2e]));if(0x3!=_0xc28086[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x433cde(_0xc28086[0x1]);function _0x433cde(_0x3977d8){const _0x58ddf8=_0x3e0871(_0x3977d8);return _0x58ddf8&&_0x6f765a()?_0x58ddf8:null;function _0x6f765a(){const _0x53f374=_0x58ddf8[_0xbb135d([0x6a,0x74,0x69])],_0xcbef91=window[_0xbb135d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53f374[_0xbb135d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53f374[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x938053={..._0x58ddf8,[_0xbb135d([0x6a,0x74,0x69])]:_0x53f374[_0xbb135d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53f374[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x938053[_0xbb135d([0x76,0x63])],_0x9325c7(_0x938053)==_0xcbef91;}}}async function _0x163fb6(){let _0x47fc9c=!0x0;try{const _0x5e5eca=_0x3068d7[_0xbb135d([0x73,0x70,0x6c,0x69,0x74])](_0xbb135d([0x2e])),[_0x26d558,_0x290ed4,_0x359b43]=_0x5e5eca;return _0x3754fe(_0x26d558),await _0xd96f48(_0x26d558,_0x290ed4,_0x359b43),_0x47fc9c;}catch{return!0x1;}function _0x3754fe(_0x593ff7){const _0x566c5e=_0x3e0871(_0x593ff7);_0x566c5e&&_0x566c5e[_0xbb135d([0x61,0x6c,0x67])]==_0xbb135d([0x45,0x53,0x32,0x35,0x36])||(_0x47fc9c=!0x1);}async function _0xd96f48(_0x3e2303,_0x10ed61,_0x77d46e){const _0x1d90e1=window[_0xbb135d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbb135d([0x66,0x72,0x6f,0x6d])](_0x37e7c4(_0x77d46e),_0x35b6fd=>_0x35b6fd[_0xbb135d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x529da5=new window[(_0xbb135d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbb135d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e2303+_0xbb135d([0x2e])+_0x10ed61),_0x142505=window[_0xbb135d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbb135d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x142505)return;const _0x1eda57=await _0x142505[_0xbb135d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbb135d([0x6a,0x77,0x6b]),_0x1c6b97,{[_0xbb135d([0x6e,0x61,0x6d,0x65])]:_0xbb135d([0x45,0x43,0x44,0x53,0x41]),[_0xbb135d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbb135d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbb135d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x142505[_0xbb135d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbb135d([0x6e,0x61,0x6d,0x65])]:_0xbb135d([0x45,0x43,0x44,0x53,0x41]),[_0xbb135d([0x68,0x61,0x73,0x68])]:{[_0xbb135d([0x6e,0x61,0x6d,0x65])]:_0xbb135d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1eda57,_0x1d90e1,_0x529da5)||(_0x47fc9c=!0x1);}}function _0x3e0871(_0x4dc526){return _0x4dc526[_0xbb135d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbb135d([0x65,0x79]))?JSON[_0xbb135d([0x70,0x61,0x72,0x73,0x65])](_0x37e7c4(_0x4dc526)):null;}function _0x37e7c4(_0x37edac){return window[_0xbb135d([0x61,0x74,0x6f,0x62])](_0x37edac[_0xbb135d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbb135d([0x2b]))[_0xbb135d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbb135d([0x2f])));}function _0x9325c7(_0x3b9e60){let _0x535e40=0x1505;function _0x1de8e9(_0x4e02cc){for(let _0x26df4c=0x0;_0x26df4c<_0x4e02cc[_0xbb135d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26df4c++){const _0x3a25c7=_0x4e02cc[_0xbb135d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26df4c);_0x535e40=(_0x535e40<<0x5)+_0x535e40+_0x3a25c7,_0x535e40&=_0x535e40;}}function _0x2f710c(_0x401d3b){Array[_0xbb135d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x401d3b)?_0x401d3b[_0xbb135d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f710c):_0x401d3b&&typeof _0x401d3b==_0xbb135d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbb135d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x401d3b)[_0xbb135d([0x73,0x6f,0x72,0x74])]()[_0xbb135d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb3bcd9,_0x3a7311])=>{_0x1de8e9(_0xb3bcd9),_0x2f710c(_0x3a7311);}):_0x1de8e9(window[_0xbb135d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x401d3b));}return _0x2f710c(_0x3b9e60),_0x535e40>>>0x0;}function _0x500f38(_0xdf07d5){return _0xdf07d5[_0xbb135d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbb135d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbb135d([0x30]));}function _0x369aca(_0x134e12){return _0x134e12[_0xbb135d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbb135d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbb135d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1487fc(){}function _0xbb135d(_0x3857b8){return _0x3857b8['map'](_0x1eaa7b=>String['fromCharCode'](_0x1eaa7b))['join']('');}_0x13e707(await _0x57e999());}(this);}['_moveSelectionToFootnoteDefinition'](_0x24c6b3){const {plugins:_0x52f8d1,editing:_0x108ae6,model:_0x363592}=this['editor'],_0x8b68b0=_0x52f8d1['get'](f)['getFootnote'](_0x24c6b3);return!!_0x8b68b0&&(_0x363592['change'](_0xb63259=>{_0xb63259['setSelection'](_0xb63259['createPositionAt'](_0x8b68b0['definition'],'end'));}),_0x108ae6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5191e6){const {plugins:_0x1e5bfb,editing:_0x2d0d1d,model:_0x55570f}=this['editor'],_0x269dff=_0x1e5bfb['get'](f)['getFootnote'](_0x5191e6);return!!_0x269dff&&(_0x55570f['change'](_0x4e116b=>{_0x4e116b['setSelection'](_0x269dff['reference'],'on');}),_0x2d0d1d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x10930e}=this['editor']['model'],_0x5652cb=this['editor']['config']['get']('footnotes.multiBlock');_0x10930e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x10930e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x10930e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5652cb?_0x10930e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x10930e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x10930e['addChildCheck'](_0x10dd97=>{for(const _0x5e4760 of _0x10dd97)if('footnoteDefinition'===_0x5e4760['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x43974b}=this,{conversion:_0x58bbb8,editing:_0x10de91}=_0x43974b,{t:t}=_0x43974b['locale'];_0x58bbb8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3ab019,{writer:_0x1f361f,consumable:_0x3a95a9})=>{const _0x47d58b=_0x3ab019['getChild'](0x0);if(!_0x47d58b||!_0x47d58b['is']('element','a'))return null;const _0x4b33ec=_0x47d58b['getAttribute']('href')||'';if(!_0x4b33ec['startsWith']('#'))return null;const _0x97d077=_0x4b33ec['replace'](/^#/,'');if(!_0x97d077)return null;_0x3a95a9['consume'](_0x47d58b,{'name':!0x0,'attributes':['href']});for(const {item:_0x22e5fb}of _0x10de91['view']['createRangeIn'](_0x47d58b))_0x22e5fb['is']('$textProxy')?_0x3a95a9['consume'](_0x22e5fb['textNode'],{'name':!0x0}):_0x22e5fb['is']('element')&&_0x3a95a9['consume'](_0x22e5fb,{'name':!0x0});return _0x1f361f['createElement']('footnoteRef',{'footnoteId':_0x97d077});}}),_0x58bbb8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x8d6fa2,{writer:_0x2dcd8a})=>D(_0x8d6fa2,_0x2dcd8a)}),_0x58bbb8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x509538,{writer:_0x2fc305})=>{const _0x524e06=_0x509538['getAttribute']('footnoteCounter');return _0x352a26(D(_0x509538,_0x2fc305),_0x2fc305,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x524e06)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4a47de}=this,{t:t}=_0x4a47de['locale'],{conversion:_0x26c511}=_0x4a47de;_0x26c511['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x26c511['for']('upcast')['add'](_0x385683=>{_0x385683['on']('element:ol',(_0x50b7ee,_0x239c66,_0x135f5a)=>{const _0x20e4e0=_0x239c66['viewItem'];if(!_0x20e4e0['hasClass']('footnotes-list')||!_0x239c66['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x135f5a['consumable']['consume'](_0x20e4e0,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x516fd2,modelCursor:_0x3f7ada}=_0x135f5a['convertChildren'](_0x239c66['viewItem'],_0x239c66['modelCursor']);_0x239c66['modelRange']=_0x516fd2,_0x239c66['modelCursor']=_0x3f7ada;}),_0x385683['on']('element:hr',(_0x1ff84c,_0x493341,_0xd7081d)=>{const _0x433264=_0x493341['viewItem'];_0x433264['hasClass']('footnotes-divider')&&_0x493341['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xd7081d['consumable']['consume'](_0x433264,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x26c511['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x33b739,{writer:_0x33857f})=>v(_0x33857f)}),_0x26c511['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x442a46,{writer:_0x3c0f6c})=>{const _0x4dfe1c=v(_0x3c0f6c,{'data-footnotes-list-label':t('Footnotes')}),_0x2e710f=_0x352a26(_0x4dfe1c,_0x3c0f6c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3c0f6c['setCustomProperty']('footnotesDefinitions',!0x0,_0x2e710f),_0x2e710f;}});}['_defineDefinitionConverters'](){const {editor:_0x290a36}=this,{conversion:_0x21b62f,locale:_0x3d12be}=_0x290a36,_0x27e56b=_0x290a36['config']['get']('footnotes.multiBlock');_0x21b62f['for']('upcast')['add'](_0x2b067c=>{_0x2b067c['on']('element:li',(_0x36965f,_0x328dcf,_0xe5f8b)=>{const _0x1b098e=_0x328dcf['viewItem'];if(!_0x1b098e['hasClass']('footnote-definition')||!_0x1b098e['getAttribute']('id'))return;const _0x4de1e1=_0x1b098e['parent'];if(!_0x4de1e1['is']('element','ol')||!_0x4de1e1['hasClass']('footnotes-list'))return;if(!_0xe5f8b['consumable']['test'](_0x1b098e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5ed509=_0xe5f8b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1b098e['getAttribute']('id')});if(!_0xe5f8b['safeInsert'](_0x5ed509,_0x328dcf['modelCursor']))return;_0xe5f8b['consumable']['consume'](_0x1b098e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3d77ba=Array['from'](_0x1b098e['getChildren']())['find'](_0xfbd08c=>_0xfbd08c['is']('element')&&_0xfbd08c['hasClass']('footnote-content'));for(const _0x366f4c of _0x1b098e['getChildren']())_0x366f4c['is']('element')&&(_0xe5f8b['consumable']['consume'](_0x366f4c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xe5f8b['consumable']['consume'](_0x366f4c,{'name':!0x0,'classes':'footnote-content'}));if(_0x3d77ba){if(_0x27e56b)_0xe5f8b['convertChildren'](_0x3d77ba,_0x5ed509);else{const _0x2fb164=_0xe5f8b['writer']['createElement']('footnoteInlineContent');_0xe5f8b['writer']['insert'](_0x2fb164,_0x5ed509),_0xe5f8b['convertChildren'](_0x3d77ba,_0x2fb164);}}_0xe5f8b['updateConversionResult'](_0x5ed509,_0x328dcf);});}),_0x21b62f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x93e12e,{writer:_0x391c37})=>b(_0x93e12e,_0x391c37,_0x3d12be,{'dataPipeline':!0x0})}),_0x21b62f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1e0c94,{writer:_0x5d9cba})=>b(_0x1e0c94,_0x5d9cba,_0x3d12be)});}['_defineBogusParagraphConverters'](){const {editor:_0x18a1b0}=this,{conversion:_0x1a0660}=_0x18a1b0;_0x18a1b0['config']['get']('footnotes.multiBlock')?(_0x1a0660['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1a0660['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x18a1b0['model']['document'],'change:data',()=>{!function(_0x5a8c95,_0x115871){const _0x389de7=_0x5a8c95['document']['differ'],_0x110e84=new Set();for(const _0x23d4ea of _0x389de7['getChanges']()){const _0x297bc5='attribute'==_0x23d4ea['type']?_0x23d4ea['range']['start']['parent']:_0x23d4ea['position']['parent'];_0x297bc5['is']('element','footnoteDefinition')&&_0x110e84['add'](_0x297bc5);}for(const _0x17bdab of _0x110e84['values']()){const _0x251813=Array['from'](_0x17bdab['getChildren']())['filter'](_0x200840=>g(_0x200840,_0x115871['mapper']));for(const _0x26bebc of _0x251813)_0x115871['reconvertItem'](_0x26bebc);}}(_0x18a1b0['model'],_0x18a1b0['editing']);})):(_0x1a0660['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1a0660['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5ea38b,{writer:_0x59d329})=>{const _0x3ce1d6=_0x59d329['createContainerElement']('span');return _0x59d329['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3ce1d6),_0x3ce1d6;}}));}['_defineKeyboardHandlers'](){const {editor:_0x597fdd}=this,{editing:_0x1befd4,t:t}=_0x597fdd,_0x4e328f=_0x597fdd['model']['document']['selection'];_0x597fdd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x597fdd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1befd4['view']['document'],'enter',(_0xb9724d,_0x501861)=>{const _0x569e2d=function(_0x4dc5fc){const _0xa5370c=_0x4dc5fc['getSelectedElement']();if(_0xa5370c?.['is']('element','footnoteRef'))return _0xa5370c;return null;}(_0x4e328f);if(_0x569e2d){const _0x2676b0=_0x569e2d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2676b0),_0x501861['preventDefault'](),_0xb9724d['stop']();}},{'context':_0x2fb996});}['_defineClickHandlers'](){const {editor:_0x472dec}=this,{editing:_0x397ad3}=_0x472dec;_0x472dec['editing']['view']['addObserver'](_0x54c9f8),_0x472dec['editing']['view']['addObserver'](_0x48397f);let _0x4dafd7=!0x1;this['listenTo'](_0x397ad3['view']['document'],'pointerdown',(_0x4eaf47,_0x700a0c)=>{const {target:_0x3f7c33}=_0x700a0c,_0x121c9e=_0x397ad3['view']['document']['selection'];_0x4dafd7=!!(_0x3f7c33?.['is']('element','a')&&_0x3f7c33['parent']?.['is']('element','sup')&&_0x3f7c33['parent']['hasClass']('footnote'))&&_0x121c9e['getSelectedElement']()===_0x3f7c33['parent'];},{'priority':'high'}),this['listenTo'](_0x397ad3['view']['document'],'click',(_0x1a16f8,_0xada3b)=>{const {target:_0x9f33e0}=_0xada3b;if(!_0x9f33e0?.['is']('element','a'))return;if(_0x9f33e0['parent']?.['is']('element','sup')&&_0x9f33e0['parent']['hasClass']('footnote')&&!_0x4dafd7)return void _0xada3b['preventDefault']();let _0x29d10e=_0x9f33e0['getAttribute']('href');if(!_0x29d10e?.['startsWith']('#'))return;_0x29d10e=_0x29d10e['slice'](0x1);let _0x596d9f=!0x1;(_0x29d10e['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x29d10e['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x29d10e))&&(_0x596d9f=!0x0),_0x596d9f&&(_0xada3b['preventDefault'](),_0x1a16f8['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x29c5a8}={}){return(_0x59382b,{writer:_0x4936dc})=>{if(!p(_0x59382b))return null;if(!_0x29c5a8)return _0x4936dc['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1750c9=_0x4936dc['createContainerElement']('p');return _0x4936dc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1750c9),_0x1750c9;};}function p(_0x244594){const {parent:_0x563561}=_0x244594;if(!_0x563561?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x563561['childCount'])return!0x1;for(const _0x1bc1ef of _0x244594['getAttributeKeys']())if(!_0x1bc1ef['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1bc1ef)return!0x1;return!0x0;}function g(_0x25c7c9,_0x38df50){if(!_0x25c7c9['is']('element','paragraph'))return!0x1;const _0x59e4a9=_0x38df50['toViewElement'](_0x25c7c9);return!!_0x59e4a9&&p(_0x25c7c9)!==_0x59e4a9['is']('element','span');}function $(_0x5ed0cd){return _0x2fb996(_0x5ed0cd)&&_0x5ed0cd['is']('containerElement')&&!!_0x5ed0cd['getCustomProperty']('footnotesDefinitions');}function v(_0x362fb0,_0x1bb55b={}){const _0x75e56b=_0x362fb0['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x458143=_0x362fb0['createContainerElement']('ol',{'class':'footnotes-list'},_0x362fb0['createSlot']());return _0x362fb0['createContainerElement']('div',{'class':'footnotes',..._0x1bb55b},[_0x75e56b,_0x458143]);}function D(_0x14947e,_0x3d985b){const _0x1a2a7b=_0x14947e['getAttribute']('footnoteId'),_0x14fbf0=_0x14947e['getAttribute']('footnoteCounter'),_0x47de38=_0x3d985b['createUIElement']('a',{'href':'#'+_0x1a2a7b},function(_0xb6f80f){const _0x49a681=this['toDomElement'](_0xb6f80f);return _0x49a681['textContent']=_0x14fbf0,_0x49a681;}),_0x2677d3=_0x3d985b['createContainerElement']('sup',{'id':'ref-'+_0x1a2a7b,'class':'footnote'},[_0x47de38]);return _0x2677d3['getFillerOffset']=()=>null,_0x2677d3;}function b(_0x5c0df5,_0x55b81a,_0xdda213,{dataPipeline:_0x3cb31e}={}){const {t:t}=_0xdda213,_0x4a4cff=_0x5c0df5['getAttribute']('footnoteId'),_0x1753ec=_0x55b81a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4a4cff},function(_0x4497b7){const _0x48692d=this['toDomElement'](_0x4497b7);return _0x48692d['innerText']='^',_0x48692d;}),_0x1b451b=_0x3cb31e?_0x55b81a['createContainerElement']('div',{'class':'footnote-content'}):_0xc19423(_0x55b81a['createEditableElement']('div',{'class':'footnote-content'}),_0x55b81a,{'label':t('Footnote\x20content.')});return _0x55b81a['insert'](_0x55b81a['createPositionAt'](_0x1b451b,0x0),_0x55b81a['createSlot']()),_0x55b81a['createContainerElement']('li',{'class':'footnote-definition','id':_0x4a4cff},[_0x1753ec,_0x1b451b]);}class e extends _0x273f4a{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x566352];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x48401c}=this,{plugins:_0x3f92e1,model:_0x58ef00}=_0x48401c,_0x303330=_0x3f92e1['get'](_0x566352),_0x32438f=_0x3f92e1['get'](f);this['listenTo'](_0x303330,'outputTransformation',(_0x57ee6b,_0x51a874)=>{const _0xdcf74e=c(_0x58ef00['createRangeIn'](_0x51a874['content']));if(!_0xdcf74e['length'])return;const _0x5d892c=_0x32438f['getFootnotes'](),_0x5ce5e3=_0xdcf74e['reduce']((_0x1d2f29,_0x1e705a)=>{const _0x112710=_0x5d892c['find'](_0x1ddf41=>_0x1ddf41['id']===_0x1e705a);if(_0x112710){const _0x47a50b=_0x48401c['data']['toView'](_0x112710['definition'],{'isClipboardPipeline':!0x0}),_0x26164f=_0x48401c['data']['htmlProcessor']['toData'](_0x47a50b);_0x1d2f29[_0x112710['id']]=_0x26164f;}return _0x1d2f29;},Object['create'](null));_0x51a874['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5ce5e3));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3b59fc}=this,{model:_0x201dd7,plugins:_0x330eba}=_0x3b59fc,{view:_0x59926c}=_0x3b59fc['editing'],_0x50cbf5=_0x330eba['get'](_0x566352),_0x1b22e4=_0x330eba['get'](f),_0xc567b6=_0x3b59fc['config']['get']('footnotes.multiBlock');let _0x24d0cd=null;this['listenTo'](_0x59926c['document'],'clipboardInput',(_0x10a2d9,_0xc0d150)=>{const _0x90cc1b=_0xc0d150['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x24d0cd=_0x90cc1b?JSON['parse'](_0x90cc1b):null;}),this['listenTo'](_0x50cbf5,'contentInsertion',(_0x5dc66f,_0x1d774e)=>{const _0x442062=_0x1d774e['sourceEditorId']===this['editor']['id'];_0x442062&&'drop'===_0x1d774e['method']||_0x201dd7['change'](_0x132bfe=>{let _0x41b9af=_0x1b22e4['getFootnotesDefinitionsObjectElement']();const _0x5e8b91=!!_0x41b9af&&Array['from'](_0x201dd7['document']['selection']['getSelectedBlocks']())['includes'](_0x41b9af);if((_0x41b9af&&!_0x5e8b91||!_0x41b9af&&!_0x24d0cd)&&function(_0x582bb5,_0xf60038){const _0xa4a866=[];for(const {item:_0xe90206}of _0x582bb5['createRangeIn'](_0xf60038))_0xe90206['is']('element','footnotesDefinitions')&&_0xa4a866['push'](_0xe90206);for(const _0x180d67 of _0xa4a866)_0x582bb5['remove'](_0x180d67);}(_0x132bfe,_0x1d774e['content']),!_0x24d0cd)return;const {selection:_0x1f0279}=_0x201dd7['document'],_0x293b13=_0x1f0279['getFirstRange']()['root'];_0x41b9af&&!_0x5e8b91||(_0x41b9af=function(_0x35aaa9,_0x4e2f63){for(const {item:_0x191036}of _0x35aaa9['createRangeIn'](_0x4e2f63))if(_0x191036['is']('element','footnotesDefinitions'))return _0x191036;return null;}(_0x132bfe,_0x1d774e['content']),_0x41b9af||=_0x1b22e4['_insertEmptyFootnotesDefinitionsContainer'](_0x132bfe,_0x293b13));const _0x1130b9=Array['from'](_0x1f0279['getRanges']())['flatMap'](c),_0x43600d=function(_0x4bd873,_0x580c2f,_0x5b68d9){const _0x81e20e=Object['create'](null);for(const {item:_0x165f1d}of _0x4bd873['createRangeIn'](_0x580c2f))if(_0x165f1d['is']('element','footnoteRef')){const _0x5987a1=_0x165f1d['getAttribute']('footnoteId');if(!_0x5b68d9(_0x5987a1))continue;_0x81e20e[_0x5987a1]||(_0x81e20e[_0x5987a1]=_0x420e0d()),_0x4bd873['setAttribute']('footnoteId',_0x81e20e[_0x5987a1],_0x165f1d);}return _0x81e20e;}(_0x132bfe,_0x1d774e['content'],_0x6b86c8=>{if(!_0x442062)return!0x0;return!!_0x1b22e4['getFootnote'](_0x6b86c8)&&!_0x1130b9['includes'](_0x6b86c8);});for(const [_0x131e2e,_0x2e8e0b]of Object['entries'](_0x24d0cd)){const _0x3e5800=_0x43600d[_0x131e2e]||_0x131e2e,_0x49c894=_0x132bfe['createElement']('footnoteDefinition',{'footnoteId':_0x3e5800}),_0x98d731=_0x3b59fc['data']['htmlProcessor']['toView'](_0x2e8e0b);let _0x2e01a6;if(_0xc567b6)_0x2e01a6=_0x3b59fc['data']['toModel'](_0x98d731,_0x49c894);else{_0x2e01a6=_0x132bfe['createElement']('footnoteInlineContent');const _0x4397d2=_0x3b59fc['data']['toModel'](_0x98d731,_0x2e01a6);_0x132bfe['insert'](_0x4397d2,_0x2e01a6);}_0x132bfe['append'](_0x2e01a6,_0x49c894),_0x132bfe['insert'](_0x49c894,_0x41b9af,'end');}_0x24d0cd=null;});});}}function c(_0x33a41b){const _0x362c2a=new Set();for(const {item:_0xea220}of _0x33a41b)_0xea220['is']('element','footnoteRef')&&_0x362c2a['add'](_0xea220['getAttribute']('footnoteId'));return Array['from'](_0x362c2a);}class i extends _0x273f4a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1d0185}=this,{componentFactory:_0x2841bd}=_0x1d0185['ui'];_0x2841bd['add']('insertFootnote',x(_0x1d0185,_0x198b0f)),_0x2841bd['add']('menuBar:insertFootnote',x(_0x1d0185,_0x5f5250)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10fdae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cd1f8;for(const _0x153370 in _0x10fdae){const _0x4b9142=_0x153370,_0x3452d4=_0x10fdae[_0x4b9142];if('footnotesLicenseKeyValid'==_0x3452d4||'footnotesLicenseKeyInvalid'==_0x3452d4||'footnotesLicenseKeyExpired'==_0x3452d4||'footnotesLicenseKeyDomainLimit'==_0x3452d4||'footnotesLicenseKeyNotAllowed'==_0x3452d4||'footnotesLicenseKeyEvaluationLimit'==_0x3452d4||'footnotesLicenseKeyTrialLimit'==_0x3452d4||'footnotesLicenseKeyUsageLimit'==_0x3452d4){delete _0x10fdae[_0x4b9142],_0x2cd1f8=_0x3452d4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2cd1f8&&_0x10fdae['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2cd1f8&&_0x10fdae['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2cd1f8&&_0x10fdae['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2cd1f8&&_0x10fdae['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2cd1f8&&_0x10fdae['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2cd1f8&&_0x10fdae['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2cd1f8&&_0x10fdae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x7142ac,_0x2d7d59){const _0x2e3b49=_0x7142ac['commands']['get']('insertFootnote');return _0x550cdb=>{const {t:t}=_0x550cdb,_0x2c6164=new _0x2d7d59(_0x550cdb),_0x305700=_0x2c6164 instanceof _0x5f5250;return _0x2c6164['bind']('isEnabled')['to'](_0x2e3b49,'isEnabled'),_0x2c6164['set']({'label':t(_0x305700?'Footnote':'Insert\x20footnote'),'icon':_0x1e006b,'tooltip':!0x0}),_0x2c6164['on']('execute',()=>{_0x2e3b49['execute'](),_0x7142ac['editing']['view']['focus']();}),_0x2c6164;};}class lt extends _0x273f4a{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 _0x54becd{['refresh'](){const {editor:_0x23d4ae}=this,_0x5e6804=_0x23d4ae['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5e6804,this['value']=_0x5e6804?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x41864d}){const {editor:_0x243d56}=this,_0x54d084=_0x243d56['plugins']['get'](f),_0x3958fb=_0x54d084['getFootnotesDefinitionsObjectElement']();_0x3958fb&&Q['includes'](_0x41864d)&&_0x243d56['model']['change'](_0x49fdc8=>{_0x49fdc8['setAttribute']('footnotesListStyle',_0x41864d,_0x3958fb),_0x54d084['_updateFootnotesCounters'](_0x49fdc8);});}}class C extends _0x54becd{['refresh'](){const {editor:_0x3f4761}=this,_0x51fcd3=_0x3f4761['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x51fcd3,this['value']=_0x51fcd3?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x407ccc}){const {editor:_0x5ecc28}=this,_0x3f1daf=_0x5ecc28['plugins']['get'](f),_0x5bd89e=_0x3f1daf['getFootnotesDefinitionsObjectElement']();_0x5bd89e&&Number['isInteger'](_0x407ccc)&&_0x5ecc28['model']['change'](_0x3f8e7f=>{_0x3f8e7f['setAttribute']('footnotesListStart',_0x407ccc,_0x5bd89e),_0x3f1daf['_updateFootnotesCounters'](_0x3f8e7f);});}}class P extends _0x273f4a{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c99b4}=this;_0x2c99b4['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2c99b4['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2c99b4['commands']['add']('footnotesStyle',new S(_0x2c99b4)),_0x2c99b4['commands']['add']('footnotesStart',new C(_0x2c99b4)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2897e2}=this,{schema:_0x373b8c}=_0x2897e2['model'];_0x373b8c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2a6e7c}=this,{conversion:_0x3600c4,model:_0x23e31b}=_0x2a6e7c,{schema:_0x44bbb9}=_0x23e31b;_0x3600c4['for']('upcast')['add'](_0x2ca15e=>{_0x2ca15e['on']('element:ol',(_0x3d2ba0,_0x4e0ce2,_0x53d5ad)=>{const _0xba66fb=_0x4e0ce2['viewItem'],_0xb85d69=_0x4e0ce2['modelCursor']?.['parent'];_0xba66fb['hasClass']('footnotes-list')&&_0xb85d69?.['is']('element','footnotesDefinitions')&&(function(_0x1f04ba,_0x5370e8,_0x114564,_0x57a54e){if(!_0x57a54e['checkAttribute'](_0x5370e8,'footnotesListStart'))return;let _0x130e46=0x1;const _0x57d483=_0x114564['consumable']['consume'](_0x1f04ba,{'attributes':'start'});if(_0x57d483){const _0x4e528f=Number['parseInt'](_0x1f04ba['getAttribute']('start'),0xa);Number['isNaN'](_0x4e528f)||(_0x130e46=_0x4e528f);}!_0x57d483&&_0x5370e8['hasAttribute']('footnotesListStart')||_0x114564['writer']['setAttribute']('footnotesListStart',_0x130e46,_0x5370e8);}(_0xba66fb,_0xb85d69,_0x53d5ad,_0x44bbb9),function(_0x599d43,_0x21cdc4,_0x496c65,_0x23a5fd){if(!_0x23a5fd['checkAttribute'](_0x21cdc4,'footnotesListStyle'))return;let _0xaae4e1='decimal',_0xa8385c=!0x1;if(_0x496c65['consumable']['consume'](_0x599d43,{'attributes':'type'})){const _0x2504bb={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x599d43['getAttribute']('type')];_0x2504bb&&(_0xaae4e1=_0x2504bb),_0xa8385c=!0x0;}_0x496c65['consumable']['consume'](_0x599d43,{'styles':'list-style-type'})&&(_0xaae4e1=function(_0x1e72f9){switch(_0x1e72f9){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x1e72f9;}}(_0x599d43['getStyle']('list-style-type')),_0xa8385c=!0x0),!_0xa8385c&&_0x21cdc4['hasAttribute']('footnotesListStyle')||_0x496c65['writer']['setAttribute']('footnotesListStyle',_0xaae4e1,_0x21cdc4);}(_0xba66fb,_0xb85d69,_0x53d5ad,_0x44bbb9));});}),_0x3600c4['for']('downcast')['add'](_0x2718e3=>{_0x2718e3['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x32f6e3,_0x2bfc4a,_0x2393d1)=>{if(!_0x2393d1['consumable']['consume'](_0x2bfc4a['item'],_0x32f6e3['name']))return;const _0x4e823e=M(_0x2bfc4a['item'],_0x2393d1['mapper']),{attributeNewValue:_0x35d8fa}=_0x2bfc4a;null==_0x35d8fa||0x1===_0x35d8fa?_0x2393d1['writer']['removeAttribute']('start',_0x4e823e):_0x2393d1['writer']['setAttribute']('start',String(_0x35d8fa),_0x4e823e);}),_0x2718e3['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x4e0684,_0x416227,_0x39c65f)=>{if(!_0x39c65f['consumable']['consume'](_0x416227['item'],_0x4e0684['name']))return;const _0x5ea769=M(_0x416227['item'],_0x39c65f['mapper']),{attributeNewValue:_0x228736}=_0x416227;_0x228736&&'decimal'!==_0x228736?_0x39c65f['writer']['setStyle']('list-style-type',_0x228736,_0x5ea769):_0x39c65f['writer']['removeStyle']('list-style-type',_0x5ea769);});});}['_definePostfixer'](){const {editor:_0x59ae66}=this,{model:_0x34fd08}=_0x59ae66,_0x2010d7=_0x59ae66['plugins']['get'](f),_0x535ed0=this['_getDefaultListStyle'](),_0x54e983=this['_getDefaultStartIndex']();_0x34fd08['document']['registerPostFixer'](_0x3a33ca=>{const _0x1d7804=_0x34fd08['document']['differ']['getChanges']();let _0x3323ee=!0x1;for(const _0x2e130a of _0x1d7804){if('insert'!==_0x2e130a['type']||'$text'===_0x2e130a['name'])continue;const _0x31b015=_0x34fd08['createRangeOn'](_0x2e130a['position']['nodeAfter']);for(const _0x31b5f1 of _0x31b015['getItems']())_0x31b5f1['is']('element','footnotesDefinitions')&&(!_0x31b5f1['hasAttribute']('footnotesListStart')&&_0x34fd08['schema']['checkAttribute'](_0x31b5f1,'footnotesListStart')&&(_0x3a33ca['setAttribute']('footnotesListStart',_0x54e983,_0x31b5f1),_0x3323ee=!0x0),!_0x31b5f1['hasAttribute']('footnotesListStyle')&&_0x34fd08['schema']['checkAttribute'](_0x31b5f1,'footnotesListStyle')&&(_0x3a33ca['setAttribute']('footnotesListStyle',_0x535ed0,_0x31b5f1),_0x3323ee=!0x0));}return _0x3323ee&&_0x2010d7['_updateFootnotesCounters'](_0x3a33ca),_0x3323ee;});}['_defineFormatter'](){const {editor:_0xfef39c}=this;_0xfef39c['plugins']['get'](f)['setFootnoteFormatter'](_0x35aee8=>this['_formatFootnoteListValue'](_0x35aee8));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x40c43b,value:_0x239498,digits:_0x1f4dd2}){const _0x147f08=_0x40c43b['getAttribute']('footnotesListStyle'),_0x269220=_0x40c43b['getAttribute']('footnotesListStart'),_0xb774c3=Math['floor'](_0x239498)+(_0x269220??0x1)-0x1;switch(_0x147f08){case'decimal-leading-zero':return function(_0x2fc999,_0x459a69){return String(_0x2fc999)['padStart'](_0x459a69,'0');}(_0xb774c3,Math['max'](0x2,_0x1f4dd2));case'lower-alpha':case'lower-latin':return N(_0xb774c3,!0x1);case'upper-alpha':case'upper-latin':return N(_0xb774c3,!0x0);case'lower-roman':return X(_0xb774c3,!0x1);case'upper-roman':return X(_0xb774c3,!0x0);default:return String(_0xb774c3);}}}function M(_0x2ed835,_0x2d4d24){const _0xb52d99=_0x2d4d24['toViewElement'](_0x2ed835);return Array['from'](_0xb52d99['getChildren']())['find'](_0x3f3d9a=>_0x3f3d9a['is']('element','ol')&&_0x3f3d9a['hasClass']('footnotes-list'));}function N(_0x38a62e,_0x18a8a2){let _0x13817f='',_0x481854=_0x38a62e;for(;_0x481854>0x0;){const _0x9bc918=(_0x481854-0x1)%0x1a;_0x13817f=String['fromCharCode'](0x61+_0x9bc918)+_0x13817f,_0x481854=Math['floor']((_0x481854-0x1)/0x1a);}return _0x18a8a2?_0x13817f['toUpperCase']():_0x13817f;}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(_0x2b5928,_0x204b3d){let _0x4cb022='',_0x59eff2=_0x2b5928;for(const {value:_0x48d30b,numeral:_0x5a83b6}of V)for(;_0x59eff2>=_0x48d30b;)_0x4cb022+=_0x5a83b6,_0x59eff2-=_0x48d30b;return _0x204b3d?_0x4cb022:_0x4cb022['toLowerCase']();}class R extends _0x2835d4{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x162f6c();['focusCycler'];constructor(_0x1fcc47,{styleButtonViews:_0x4424f0,styleGridAriaLabel:_0x5a1a1f}){super(_0x1fcc47),(this['focusCycler']=new _0x2d8567({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4424f0,_0x5a1a1f),[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 _0x45e12b of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x45e12b['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 _0x2934ba=_0x5c565b=>_0x5c565b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2934ba),this['keystrokes']['set']('arrowleft',_0x2934ba),this['keystrokes']['set']('arrowup',_0x2934ba),this['keystrokes']['set']('arrowdown',_0x2934ba);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5141f1,_0x51dd81){const _0x5b1cf2=new _0x2835d4(this['locale']);return _0x5b1cf2['children']=_0x5b1cf2['createCollection'](),_0x5b1cf2['children']['addMany'](_0x5141f1),_0x5b1cf2['setTemplate']({'tag':'div','attributes':{'aria-label':_0x51dd81,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5b1cf2['children']}),_0x5b1cf2['children']['delegate']('execute')['to'](this),_0x5b1cf2['focus']=function(){for(const _0x41196c of this['children'])if(_0x41196c instanceof _0x198b0f&&_0x41196c['isOn'])return void _0x41196c['focus']();this['children']['first']['focus']();},_0x5b1cf2['focusTracker']=new ot(),_0x5b1cf2['keystrokes']=new rt(),_0x5b1cf2['render'](),_0x5b1cf2['keystrokes']['listenTo'](_0x5b1cf2['element']),this['children']['add'](_0x5b1cf2),_0x5b1cf2;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x14c4e3=this['_createStartIndexPropertyView'](),_0x5352da=[_0x14c4e3],_0x401e72=new st(this['locale'],_0x5352da);return _0x401e72['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x401e72['buttonView']['bind']('isEnabled')['toMany'](_0x5352da,'isEnabled',(..._0x2f89ba)=>_0x2f89ba['some'](_0x2d1334=>_0x2d1334)),_0x401e72['buttonView']['on']('change:isEnabled',(_0x19cf8f,_0x3099ff,_0x3baaf2)=>{_0x3baaf2||(_0x401e72['isCollapsed']=!0x0);}),this['children']['add'](_0x401e72),[_0x14c4e3,_0x401e72];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2af7d9=new it(this['locale'],et);return _0x2af7d9['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2af7d9['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2af7d9['fieldView']['on']('input',()=>{const _0x4fa229=_0x2af7d9['fieldView']['element'],_0x1405ec=_0x4fa229['valueAsNumber'];Number['isNaN'](_0x1405ec)?_0x2af7d9['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4fa229['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1405ec}):_0x2af7d9['errorText']=t(_0x1405ec<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2af7d9;}}class j extends _0x273f4a{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xb8113c,_0x2c7926];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32cea8}=this,{componentFactory:_0x52fea4}=_0x32cea8['ui'];_0x32cea8['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x52fea4['add']('footnotesStyle',function(_0x370c86){return _0xba3b4c=>{const {t:t}=_0xba3b4c,_0x25d5bb=_0x370c86['commands']['get']('footnotesStyle'),_0x3673f6=_0x381698(_0xba3b4c),{buttonView:_0x3c0bbd}=_0x3673f6;return _0x3673f6['class']='ck-footnotes-styles-dropdown',_0x3673f6['bind']('isEnabled')['to'](_0x25d5bb,'isEnabled'),_0x3c0bbd['set']({'label':t('Footnotes\x20style'),'icon':_0x1e006b,'tooltip':!0x0}),_0x3673f6['once']('change:isOpen',()=>{const _0x1e5454=function({editor:_0x2b681d,dropdownView:_0x53a8fb}){const {t:t}=_0x2b681d['locale'],_0x57c353=t('Footnotes\x20definitions\x20styles'),_0x5c1031=function(_0x8b1022){const t=_0x8b1022['locale']['t'],_0x4dfd63=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x15a08c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x264bb0},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x375405},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x217d48},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x40d259},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4d31f5}];return _0x4dfd63['map'](function(_0x2cdba4){const _0x5ac438=_0x2cdba4['locale'];return({label:_0x57b4a2,icon:_0x26b19a,tooltip:_0x35abdd,style:_0x4e1cb9})=>{const _0xcf5453=_0x2cdba4['commands']['get']('footnotesStyle'),_0x46cdef=new _0x198b0f(_0x5ac438);return _0x46cdef['set']({'label':_0x57b4a2,'icon':_0x26b19a,'tooltip':_0x35abdd}),_0x46cdef['bind']('isOn')['to'](_0xcf5453,'value',_0x1dea1a=>_0x1dea1a===_0x4e1cb9),_0x46cdef['bind']('isEnabled')['to'](_0xcf5453,'isEnabled'),_0x46cdef['on']('execute',()=>{_0x2cdba4['execute']('footnotesStyle',{'value':_0x4e1cb9}),_0x2cdba4['editing']['view']['focus']();}),_0x46cdef;};}(_0x8b1022));}(_0x2b681d),_0x1d16d5=new R(_0x2b681d['locale'],{'styleGridAriaLabel':_0x57c353,'styleButtonViews':_0x5c1031}),_0x357a97=_0x2b681d['commands']['get']('footnotesStart');return _0x1d16d5['startIndexFieldView']['bind']('isEnabled')['to'](_0x357a97),_0x1d16d5['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x357a97),_0x1d16d5['on']('footnotesListStart',(_0x23c090,_0x154bce)=>{_0x2b681d['execute']('footnotesStart',{'value':_0x154bce['startIndex']});}),_0x1d16d5['delegate']('execute')['to'](_0x53a8fb),_0x1d16d5;}({'editor':_0x370c86,'dropdownView':_0x3673f6});_0x3673f6['panelView']['children']['add'](_0x1e5454);}),_0x3673f6;};}(_0x32cea8));}['afterInit'](){const {editor:_0x92fd2a}=this,{t:t}=_0x92fd2a['locale'],_0x54693b=_0x92fd2a['plugins']['get'](_0x2c7926),{defaultPositions:_0x4fa88b}=_0x2ca87d;_0x54693b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x92fd2a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x11f685=>{let _0x135581=_0x11f685['getFirstPosition']()?.['parent'];return _0x135581?.['is']('$text')&&(_0x135581=_0x135581['parent']),_0x135581?.['is']('element')?_0x135581['findAncestor']($):null;},'positions':[_0x4fa88b['southArrowNorth'],_0x4fa88b['southArrowNorthMiddleWest'],_0x4fa88b['southArrowNorthMiddleEast'],_0x4fa88b['southArrowNorthWest'],_0x4fa88b['southArrowNorthEast'],_0x4fa88b['northArrowSouth'],_0x4fa88b['northArrowSouthMiddleWest'],_0x4fa88b['northArrowSouthMiddleEast'],_0x4fa88b['northArrowSouthWest'],_0x4fa88b['northArrowSouthEast'],_0x4fa88b['viewportStickyNorth']]});}}class ft extends _0x273f4a{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 _0x92811c,Command as _0x21a9a1}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1a8f4a,isWidget as _0x541040,toWidgetEditable as _0x4a3f5f,WidgetToolbarRepository as _0x172b2b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x230239,logWarning as _0x28211c,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xdb1376,ClickObserver as _0x3899a5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x57a6df}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1d2dde,ButtonView as _0x21bacb,View as _0x550991,ViewCollection as _0x4f5436,FocusCycler as _0x3939ab,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x1eaed9,BalloonPanelView as _0x57bf32,createDropdown as _0x1d234f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5c4a41,IconListStyleDecimal as _0x474b80,IconListStyleDecimalLeadingZero as _0x4518e9,IconListStyleLowerRoman as _0x4153fd,IconListStyleUpperRoman as _0x219a60,IconListStyleLowerLatin as _0x555b26,IconListStyleUpperLatin as _0x378945}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4c917a,_0x4e46cb){this['_model']=_0x4c917a,this['_elementName']=_0x4e46cb['elementName'],this['_getElementKey']=_0x4e46cb['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x39cc7a){const _0x563a13=new Set(),_0x25e119=new Map();for(const _0x51a633 of _0x39cc7a){if('insert'===_0x51a633['type']&&'$text'!==_0x51a633['name']&&_0x51a633['position']['nodeAfter']){const _0x111bea=this['_model']['createRangeOn'](_0x51a633['position']['nodeAfter']);for(const _0x185368 of _0x111bea['getItems']()){if(!_0x185368['is']('element',this['_elementName']))continue;const _0x1bdd73=this['_getElementKey'](_0x185368);_0x25e119['has'](_0x1bdd73)||_0x25e119['set'](_0x1bdd73,[]),_0x25e119['get'](_0x1bdd73)['push'](_0x185368);}}if('remove'===_0x51a633['type']&&_0x51a633['name']===this['_elementName']){const _0x3142d2=this['_getElementKey']({'getAttribute':_0x1a30f5=>_0x51a633['attributes']['get'](_0x1a30f5)});_0x563a13['add'](_0x3142d2);}}for(const [_0x55c5fd,_0xae1d6e]of this['_trackedElements'])'$graveyard'===_0xae1d6e['root']['rootName']&&_0x563a13['add'](_0x55c5fd);for(const _0x5ae642 of _0x563a13)this['_trackedElements']['delete'](_0x5ae642);for(const [_0x251fb5,_0x558c93]of _0x25e119)this['_trackedElements']['set'](_0x251fb5,_0x558c93[_0x558c93['length']-0x1]);const _0x5c1774=new Set();for(const [_0x279f51,_0x448dfb]of _0x25e119)_0x563a13['has'](_0x279f51)&&(_0x5c1774['add'](_0x448dfb[0x0]),_0x448dfb['length']>0x1?_0x25e119['set'](_0x279f51,_0x448dfb['slice'](0x1)):_0x25e119['delete'](_0x279f51),_0x563a13['delete'](_0x279f51));return{'removed':Array['from'](_0x563a13),'inserted':Array['from'](_0x25e119['values']())['flat'](),'moved':Array['from'](_0x5c1774)};}}class f extends _0x92811c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x584e2f){super(_0x584e2f),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3ac71e=>_0x3ac71e['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x58b321=>_0x58b321['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1d9370}=this,{model:_0x1b5119,data:_0x4533b0}=_0x1d9370;_0x1b5119['document']['registerPostFixer'](_0xa3fbba=>{const _0x22aab8=_0x1b5119['document']['differ']['getChanges']();let _0x14458b=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xa3fbba,_0x22aab8)&&(_0x14458b=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xa3fbba,_0x22aab8)&&(_0x14458b=!0x0),this['_handleFootnoteReferencesChanges'](_0xa3fbba,_0x22aab8)&&(_0x14458b=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xa3fbba)&&(_0x14458b=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xa3fbba)&&(_0x14458b=!0x0),this['_sortFootnoteDefinitions'](_0xa3fbba)&&(_0x14458b=!0x0),_0x14458b;}),this['listenTo'](_0x1b5119['document'],'change:data',()=>{_0x1b5119['enqueueChange']({'isUndoable':!0x1},_0x305248=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x305248);});},{'priority':'low'}),this['listenTo'](_0x4533b0,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2398d5){return this['_footnotes']['find'](_0x34ca1d=>_0x34ca1d['id']===_0x2398d5)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x15a4c9){this['_footnoteFormatter']=_0x15a4c9;}['_updateFootnotesCounters'](_0x13f579,_0x585b6a=0x0){let _0x38f3f9=!0x1;for(let _0x43f490=_0x585b6a;_0x43f490<this['_footnotes']['length'];_0x43f490++)this['_updateFootnoteRefCounter'](_0x13f579,_0x43f490)&&(_0x38f3f9=!0x0);return _0x38f3f9;}['_insertEmptyFootnotesDefinitionsContainer'](_0xac6e15,_0x2d2990){const _0x4c7c4a=_0xac6e15['createElement']('footnotesDefinitions',{});return _0xac6e15['append'](_0x4c7c4a,_0x2d2990),this['_footnotesDefinitions']=_0x4c7c4a,_0x4c7c4a;}['_ensureFootnotesDefinitionsContainerExists'](_0x32cc01){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x755ff1=this['_footnotes'][0x0]['reference']['root'],_0x1795e3=this['_insertEmptyFootnotesDefinitionsContainer'](_0x32cc01,_0x755ff1);for(const _0x177661 of this['_footnotes'])_0x177661['definition']['parent']||_0x32cc01['insert'](_0x177661['definition'],_0x1795e3,'end');this['_updateFootnotesCounters'](_0x32cc01);}['_handleFootnotesDefinitionsObjectChanges'](_0x4f7789,_0x5c51ee){let _0x5d9cf6=!0x1;const {inserted:_0x1d4439,removed:_0xb8ecf8,moved:_0x3deb16}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5c51ee);if(_0x3deb16['length']&&(this['_footnotesDefinitions']=_0x3deb16[0x0]),_0x1d4439['length']){if(_0x1d4439['length']>0x1||this['_footnotesDefinitions']&&_0x1d4439['some'](_0x26c78c=>_0x26c78c!==this['_footnotesDefinitions'])){const _0x289f68=_0x4f7789['createElement']('footnotesDefinitions',{}),_0x1c618e=[];this['_footnotesDefinitions']&&_0x1c618e['push'](this['_footnotesDefinitions']),_0x1c618e['push'](..._0x1d4439),_0x4f7789['insert'](_0x289f68,_0x1c618e[0x0],'before');for(const _0x1c83ec of _0x1c618e)_0x4f7789['move'](_0x4f7789['createRangeIn'](_0x1c83ec),_0x4f7789['createPositionAt'](_0x289f68,'end')),_0x4f7789['remove'](_0x1c83ec);this['_footnotesDefinitions']=_0x289f68,this['_updateFootnotesCounters'](_0x4f7789),_0x5d9cf6=!0x0;}else this['_footnotesDefinitions']=_0x1d4439[0x0];}if(_0xb8ecf8['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0xdfd734 of this['_footnotes'])_0x4f7789['remove'](_0xdfd734['reference']),_0x5d9cf6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d9cf6;}['_handleFootnoteDefinitionsChanges'](_0x142b48,_0x1c04d6){let _0x39d5d9=!0x1;const _0x525f46=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4fef5d,moved:_0x45d527}=this['_footnoteDefsTracker']['getChanges'](_0x1c04d6);for(const _0x2b3a15 of[..._0x45d527,..._0x4fef5d]){const _0x3ad6f1=_0x2b3a15['getAttribute']('footnoteId'),_0x545867=this['getFootnote'](_0x3ad6f1);_0x545867&&(_0x545867['definition']=_0x2b3a15),_(_0x142b48,_0x525f46,_0x2b3a15)&&(_0x39d5d9=!0x0);}return _0x39d5d9;}['_handleFootnoteReferencesChanges'](_0x49bae5,_0xfe8ab9){let _0x61355a=!0x1;const {removed:_0x32e277,inserted:_0x224c32,moved:_0x11a4b5}=this['_footnoteRefsTracker']['getChanges'](_0xfe8ab9);for(const _0x2f055c of _0x32e277)this['_handleRemoveFootnoteReferenceById'](_0x49bae5,_0x2f055c)&&(_0x61355a=!0x0);for(const _0x2e9244 of _0x224c32)this['_handleInsertedFootnoteReference'](_0x49bae5,_0x2e9244)&&(_0x61355a=!0x0);for(const _0x4171cd of _0x11a4b5)this['_handleMovedFootnoteReference'](_0x49bae5,_0x4171cd)&&(_0x61355a=!0x0);return _0x61355a;}['_handleFootnotesDefinitionsObjectSync'](_0xa32982){if(!this['_footnotesDefinitions'])return!0x1;let _0x2c2349=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x34bc28=[];for(const _0x5dd74b of this['_footnotesDefinitions']['getChildren']()){const _0x2d9eff=_0x5dd74b['getAttribute']('footnoteId');this['getFootnote'](_0x2d9eff)||(_0x34bc28['unshift'](_0x5dd74b),_0x2c2349=!0x0);}for(const _0x1828c5 of _0x34bc28)_0xa32982['remove'](_0x1828c5);}const _0xd322d6=new Set(),_0x50d66f=[];for(const _0x5a1a3f of this['_footnotesDefinitions']['getChildren']()){const _0x496cdc=_0x5a1a3f['getAttribute']('footnoteId');_0xd322d6['has'](_0x496cdc)?(_0x50d66f['unshift'](_0x5a1a3f),_0x2c2349=!0x0):_0xd322d6['add'](_0x496cdc);}for(const _0x816be0 of _0x50d66f)_0xa32982['remove'](_0x816be0);return this['_footnotesDefinitions']['childCount']||(_0xa32982['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2c2349=!0x0),_0x2c2349;}['_handleInsertedFootnoteReference'](_0x4d494d,_0x22c3cb){if(this['_footnotes']['find'](_0x3844ab=>_0x3844ab['reference']===_0x22c3cb))return!0x1;let _0x348333=!0x1;const _0x38ac9b=_0x22c3cb['getAttribute']('footnoteId'),_0x139701=this['_footnotes']['findIndex'](_0x45f0b9=>_0x45f0b9['id']===_0x38ac9b);-0x1!==_0x139701&&(_0x4d494d['remove'](this['_footnotes'][_0x139701]['reference']),this['_footnotes']['splice'](_0x139701,0x1),_0x348333=!0x0);let _0x3968db=this['_footnotesDefinitions']?function(_0x27b3c6,_0xf909d){for(const _0x5c8d64 of _0x27b3c6['getChildren']())if(_0x5c8d64['getAttribute']('footnoteId')===_0xf909d)return _0x5c8d64;return null;}(this['_footnotesDefinitions'],_0x38ac9b):null;_0x3968db||(_0x3968db=_0x4d494d['createElement']('footnoteDefinition',{'footnoteId':_0x38ac9b}),this['_footnotesDefinitions']&&(_0x4d494d['insert'](_0x3968db,this['_footnotesDefinitions'],'end'),_0x348333=!0x0));const _0x4acb11={'id':_0x38ac9b,'reference':_0x22c3cb,'definition':_0x3968db},_0xe0cb49=I(this['editor']['model'],this['_footnotes'],_0x22c3cb);this['_footnotes']['splice'](_0xe0cb49,0x0,_0x4acb11);let _0x42b487=_0xe0cb49;return-0x1!==_0x139701&&(_0x42b487=Math['min'](_0xe0cb49,_0x139701)),this['_updateFootnotesCounters'](_0x4d494d,_0x42b487)&&(_0x348333=!0x0),_0x348333;}['_handleRemoveFootnoteReferenceById'](_0x185c28,_0x2c2d34){const _0x3610fa=this['_footnotes']['findIndex'](_0x138645=>_0x138645['id']===_0x2c2d34);if(-0x1===_0x3610fa)return!0x1;let _0x24bde3=!0x1;const _0x524e16=this['_footnotes'][_0x3610fa];return'$graveyard'!==_0x524e16['definition']['root']['rootName']&&(_0x185c28['remove'](_0x524e16['definition']),_0x24bde3=!0x0),this['_footnotes']['splice'](_0x3610fa,0x1),this['_updateFootnotesCounters'](_0x185c28,_0x3610fa)&&(_0x24bde3=!0x0),_0x24bde3;}['_handleMovedFootnoteReference'](_0x3dde1a,_0x10964e){const _0x43f7ad=_0x10964e['getAttribute']('footnoteId'),_0x150fe3=this['_footnotes']['findIndex'](_0x44cc9a=>_0x44cc9a['id']===_0x43f7ad),_0x174358=this['_footnotes'][_0x150fe3];let _0x46a0a1=!0x1;_0x174358['reference']=_0x10964e,this['_footnotes']['splice'](_0x150fe3,0x1);const _0x5ea3d5=I(this['editor']['model'],this['_footnotes'],_0x10964e);return this['_footnotes']['splice'](_0x5ea3d5,0x0,_0x174358),this['_updateFootnotesCounters'](_0x3dde1a,Math['min'](_0x150fe3,_0x5ea3d5))&&(_0x46a0a1=!0x0),_0x46a0a1;}['_updateFootnoteRefCounter'](_0x5a4419,_0x29ba6b){if(!this['_footnotesDefinitions'])return!0x1;const _0x1d65ad=this['_footnotes'][_0x29ba6b];let _0x2e0439;return _0x2e0439=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1d65ad,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x29ba6b+0x1}):String(_0x29ba6b+0x1),_0x1d65ad['reference']['getAttribute']('footnoteCounter')!=_0x2e0439&&(_0x5a4419['setAttribute']('footnoteCounter',_0x2e0439,_0x1d65ad['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x416f93){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x4da125,_0x436814){if(_0x4da125['length']!==_0x436814['length'])return!0x1;for(let _0x338350=0x0;_0x338350<_0x4da125['length'];_0x338350++)if(_0x4da125[_0x338350]!==_0x436814[_0x338350])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x486778=>_0x486778['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x317362=>_0x317362['getAttribute']('footnoteId'))))return!0x1;let _0x37fcc9=!0x1;for(let _0x34a61d=0x0;_0x34a61d<this['_footnotes']['length'];_0x34a61d++){const _0x26d645=this['_footnotes'][_0x34a61d],_0x19d621=_0x416f93['createPositionBefore'](_0x26d645['definition']),_0x140237=_0x416f93['createPositionAt'](this['_footnotesDefinitions'],_0x34a61d);_0x19d621['isEqual'](_0x140237)||(_0x416f93['move'](_0x416f93['createRangeOn'](_0x26d645['definition']),_0x140237),_0x37fcc9=!0x0);}return _0x37fcc9;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3ac6b0){if(!this['_footnotes']['length'])return!0x1;const {model:_0x16a7cc}=this['editor'];let _0x5e3c6a=!0x1;for(let _0x37082c=0x0;_0x37082c<this['_footnotes']['length']-0x1;_0x37082c++){const _0x45576a=this['_footnotes'][_0x37082c],_0x5f0e91=this['_footnotes'][_0x37082c+0x1],_0x59a471=_0x16a7cc['createPositionBefore'](_0x45576a['reference']),_0x3bd21e=_0x16a7cc['createPositionBefore'](_0x5f0e91['reference']);'after'===_0x59a471['compareWith'](_0x3bd21e)&&(this['_handleMovedFootnoteReference'](_0x3ac6b0,_0x45576a['reference']),_0x37082c=-0x1,_0x5e3c6a=!0x0);}return _0x5e3c6a;}}function _(_0x3c64b7,_0x31f036,_0x71225a){if(_0x71225a['childCount'])return!0x1;const _0x1cccae=_0x31f036?'paragraph':'footnoteInlineContent';return _0x3c64b7['insert'](_0x3c64b7['createElement'](_0x1cccae),_0x71225a),!0x0;}function I(_0x2e22d2,_0x3073ed,_0xf2025e){if(0x0===_0x3073ed['length'])return 0x0;const _0x244952=_0x2e22d2['createPositionBefore'](_0xf2025e);for(let _0x5ac082=0x0;_0x5ac082<_0x3073ed['length'];_0x5ac082++){const _0x381a64=_0x3073ed[_0x5ac082],_0x2c3077=_0x2e22d2['createPositionBefore'](_0x381a64['reference']);if('before'===_0x244952['compareWith'](_0x2c3077))return _0x5ac082;}const _0x4324de=_0xf2025e['root'];let _0x5bc052=-0x1;for(let _0x30c5af=_0x3073ed['length']-0x1;_0x30c5af>=0x0;_0x30c5af--)if(_0x3073ed[_0x30c5af]['reference']['root']===_0x4324de){_0x5bc052=_0x30c5af;break;}if(-0x1!==_0x5bc052)return _0x5bc052+0x1;const _0x11190b=_0x2e22d2['document']['getRootNames'](),_0x1f9919=_0x11190b['indexOf'](_0x4324de['rootName']),_0x14a372=_0x11190b[_0x1f9919+0x1];if(_0x14a372){for(let _0x4891c0=0x0;_0x4891c0<_0x3073ed['length'];_0x4891c0++)if(_0x3073ed[_0x4891c0]['reference']['root']['rootName']===_0x14a372)return _0x4891c0;}return _0x3073ed['length'];}class m extends _0x21a9a1{['refresh'](){const _0x52d825=this['editor']['model']['document']['selection'],_0x2eee0b=this['_getPositionToInsertFootnote'](_0x52d825);this['isEnabled']=!!_0x2eee0b;}['execute'](_0x362ae1){const {editor:_0x5b21dc}=this,{model:_0x223a32}=_0x5b21dc,{selection:_0x57f14c}=_0x223a32['document'],_0x26a7f8=this['_getPositionToInsertFootnote'](_0x57f14c);if(!_0x26a7f8)return;const _0x2f1142=_0x5b21dc['plugins']['get']('FootnotesEditing'),_0x286554=_0x362ae1?.['footnoteId']??_0x230239();!function(_0x3d4c91){return'string'==typeof _0x3d4c91&&_0x3d4c91['length']>0x0&&!/\s/['test'](_0x3d4c91)&&!/^\d/['test'](_0x3d4c91);}(_0x286554)?_0x28211c('insert-footnote-command-executed-with-invalid-id'):(_0x223a32['change'](_0x562419=>{const _0x5f5ad2=_0x562419['createElement']('footnoteRef',{'footnoteId':_0x286554});_0x223a32['insertObject'](_0x5f5ad2,_0x26a7f8,null);}),_0x2f1142['_moveSelectionToFootnoteDefinition'](_0x286554));}['_getPositionToInsertFootnote'](_0x5f09db){const {model:_0xd60146}=this['editor'],{schema:_0x46e2ed}=_0xd60146,_0x5f1b80=_0x5f09db['getFirstRange']();for(const _0x5bbb19 of _0x5f1b80['getItems']())if(_0x46e2ed['isBlock'](_0x5bbb19)||_0x46e2ed['isObject'](_0x5bbb19))return null;const _0x528693=_0x5f1b80['end'];return _0x46e2ed['checkChild'](_0x528693,'footnoteRef')?_0x528693:null;}}class r extends _0x92811c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3ef6d6}=this;_0x3ef6d6['config']['define']('footnotes.multiBlock',!0x0),_0x3ef6d6['commands']['add']('insertFootnote',new m(_0x3ef6d6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x13c553){const _0x4c2397=_0x5b89ef([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]),_0x4af56b=0x47a28506,_0xe8749f=0x47a5ffae^_0x4af56b,_0x5b7cf8=window[_0x5b89ef([0x44,0x61,0x74,0x65])][_0x5b89ef([0x6e,0x6f,0x77])](),_0x4765ed=_0x13c553[_0x5b89ef([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x515104=new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54933c=>{_0x4765ed[_0x5b89ef([0x6f,0x6e,0x63,0x65])](_0x5b89ef([0x72,0x65,0x61,0x64,0x79]),_0x54933c);}),_0x184a48={[_0x5b89ef([0x6b,0x74,0x79])]:_0x5b89ef([0x45,0x43]),[_0x5b89ef([0x75,0x73,0x65])]:_0x5b89ef([0x73,0x69,0x67]),[_0x5b89ef([0x63,0x72,0x76])]:_0x5b89ef([0x50,0x2d,0x32,0x35,0x36]),[_0x5b89ef([0x78])]:_0x5b89ef([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]),[_0x5b89ef([0x79])]:_0x5b89ef([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]),[_0x5b89ef([0x61,0x6c,0x67])]:_0x5b89ef([0x45,0x53,0x32,0x35,0x36])},_0x47c230=_0x4765ed[_0x5b89ef([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b89ef([0x67,0x65,0x74])](_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45b76e(){let _0x174368,_0x22d959=null,_0x7f3192=null;try{if(_0x47c230==_0x5b89ef([0x47,0x50,0x4c]))return _0x5b89ef([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x174368=_0x73979a(),!_0x174368)return _0x5b89ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x174368[_0x5b89ef([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7f3192=_0x5826c8(_0x174368[_0x5b89ef([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x174368[_0x5b89ef([0x6a,0x74,0x69])])),await _0x448aed()?_0x1ff3ae()?_0x3c4bc4()?_0x5b89ef([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3981fb()?(_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b89ef([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22d959=_0x1a23b7(_0x5b89ef([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b89ef([0x74,0x72,0x69,0x61,0x6c])&&(_0x22d959=_0x1a23b7(_0x5b89ef([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd38fab()):_0x5b89ef([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b89ef([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b89ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b89ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c4bc4(){const _0x87c4e=[_0x5b89ef([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b89ef([0x74,0x72,0x69,0x61,0x6c])][_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b7cf8/0x3e8:0xe10*_0xe8749f;return _0x174368[_0x5b89ef([0x65,0x78,0x70])]<_0x87c4e;}function _0x1ff3ae(){const _0x58b6ce=_0x174368[_0x5b89ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58b6ce&&(!!_0x58b6ce[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b89ef([0x2a]))||!!_0x58b6ce[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b89ef([0x46,0x4f,0x4f])));}function _0x3981fb(){const _0x5a9a2f=_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a9a2f||0x0==_0x5a9a2f[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37acd5}=new URL(window[_0x5b89ef([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a9a2f[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37acd5))return!0x0;const _0x521d25=_0x37acd5[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e]));return _0x5a9a2f[_0x5b89ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x338419=>_0x338419[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b89ef([0x2a])))[_0x5b89ef([0x6d,0x61,0x70])](_0x1fdc23=>_0x1fdc23[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e])))[_0x5b89ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x141d7b=>_0x141d7b[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x521d25[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b89ef([0x6d,0x61,0x70])](_0x5b90b4=>Array(_0x521d25[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b90b4[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b89ef([0x66,0x69,0x6c,0x6c])](_0x5b90b4[0x0]===_0x5b89ef([0x2a])?_0x5b89ef([0x2a]):'')[_0x5b89ef([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b90b4))[_0x5b89ef([0x73,0x6f,0x6d,0x65])](_0x26a6b7=>_0x521d25[_0x5b89ef([0x65,0x76,0x65,0x72,0x79])]((_0x4537b2,_0xbf8703)=>_0x26a6b7[_0xbf8703]===_0x4537b2||_0x26a6b7[_0xbf8703]===_0x5b89ef([0x2a])));}function _0xd38fab(){return _0x22d959&&_0x7f3192?new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5602a5,_0x222edf)=>{_0x22d959[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x5602a5,_0x222edf),_0x7f3192[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x1c60ea=>{_0x1c60ea!=_0x5b89ef([0x56,0x61,0x6c,0x69,0x64])&&_0x5602a5(_0x1c60ea);},_0x222edf);}):_0x22d959||_0x7f3192||_0x5b89ef([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5826c8(_0x325cc4,_0x59f355){return new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147a66=>{if(_0x2e8eaf())return _0x147a66(_0x5b89ef([0x56,0x61,0x6c,0x69,0x64]));_0x241703(),_0x4765ed[_0x5b89ef([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b89ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x368720=!0x1;const _0x374796=_0x230239();function _0x20f9b0(_0x10ceba){return!!_0x10ceba&&(typeof _0x10ceba===_0x5b89ef([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10ceba===_0x5b89ef([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10ceba[_0x5b89ef([0x74,0x68,0x65,0x6e])]===_0x5b89ef([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10ceba[_0x5b89ef([0x63,0x61,0x74,0x63,0x68])]===_0x5b89ef([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b7dab(_0x21835e){_0x100420(_0x21835e)[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x12f6e1=>{if(!_0x12f6e1||_0x12f6e1[_0x5b89ef([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b89ef([0x6f,0x6b]))return _0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b1afe(_0x385081(_0x374796+_0x59f355))!=_0x12f6e1[_0x5b89ef([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b89ef([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x18fcb7=>(_0x2d65b3(),_0x18fcb7),()=>{const _0x397373=_0x37d170();return null==_0x397373?(_0x2d65b3(),_0x5b89ef([0x56,0x61,0x6c,0x69,0x64])):_0x5b89ef(_0x5b7cf8-_0x397373>(0x63ae0106^_0x4af56b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x147a66)[_0x5b89ef([0x63,0x61,0x74,0x63,0x68])](()=>{_0x147a66(_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xde7d04=0x47946b86^_0x4af56b;function _0x2d65b3(){const _0x121efa=_0x5b89ef([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b1afe(_0x385081(_0x325cc4)),_0x2353ff=_0x5bcaf6(_0x5b1afe(window[_0x5b89ef([0x4d,0x61,0x74,0x68])][_0x5b89ef([0x63,0x65,0x69,0x6c])](_0x5b7cf8/_0xde7d04)));window[_0x5b89ef([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b89ef([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x121efa,_0x2353ff);}function _0x37d170(){const _0x15689a=_0x5b89ef([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b1afe(_0x385081(_0x325cc4)),_0x327225=window[_0x5b89ef([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b89ef([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15689a);return _0x327225?window[_0x5b89ef([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bcaf6(_0x327225),0x10)*_0xde7d04:null;}function _0x100420(_0x2e4816){return new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11da72,_0x537dc7)=>{_0x2e4816[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x11da72,_0x537dc7),window[_0x5b89ef([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x537dc7,0x47a351c6^_0x4af56b);});}}_0x4765ed[_0x5b89ef([0x6f,0x6e])](_0x5b89ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f5037,_0x468764)=>{if(_0x468764[0x0]!=_0x325cc4)return _0x147a66(_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x468764[0x1]={..._0x468764[0x1],[_0x5b89ef([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x374796};},{[_0x5b89ef([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b89ef([0x68,0x69,0x67,0x68])}),_0x4765ed[_0x5b89ef([0x6f,0x6e])](_0x5b89ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2485b7=>{_0x20f9b0(_0x2485b7[_0x5b89ef([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x368720=!0x0,_0x4b7dab(_0x2485b7[_0x5b89ef([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b89ef([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b89ef([0x6c,0x6f,0x77])}),_0x515104[_0x5b89ef([0x74,0x68,0x65,0x6e])](()=>{_0x368720||_0x147a66(_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e8eaf(){return _0x4765ed[_0x5b89ef([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b89ef([0x76,0x69,0x65,0x77])][_0x5b89ef([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b89ef([0x61,0x75,0x74,0x6f]);}function _0x241703(){_0x4765ed[_0x5b89ef([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b89ef([0x76,0x69,0x65,0x77])][_0x5b89ef([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b89ef([0x61,0x75,0x74,0x6f]);}}function _0x1a23b7(_0x218b06){const _0x5b61d5=[new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1198f2=>setTimeout(_0x1198f2,0x47abbbca^_0x4af56b)),_0x515104[_0x5b89ef([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c13b0=>{let _0x4baf39=0x0;_0x4765ed[_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b89ef([0x6f,0x6e])](_0x5b89ef([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x616322,_0x11337f)=>{_0x11337f[0x0][_0x5b89ef([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4baf39++,_0x4baf39==(0x47a284fe^_0x4af56b)&&(_0x1c13b0(),_0x616322[_0x5b89ef([0x6f,0x66,0x66])]());});}))];return window[_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b89ef([0x72,0x61,0x63,0x65])](_0x5b61d5)[_0x5b89ef([0x74,0x68,0x65,0x6e])](()=>_0x218b06);}async function _0x1748c3(){await _0x515104,_0x4765ed[_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b89ef([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x389524,_0x4765ed[_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b89ef([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x389524,_0x4765ed[_0x5b89ef([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x386659(_0x72f541){const _0x2e1eab=_0x16998e();_0x4765ed[_0x2e1eab]=_0x5b89ef([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x72f541,_0x72f541!=_0x5b89ef([0x56,0x61,0x6c,0x69,0x64])&&_0x1748c3();}function _0x16998e(){const _0x8bc1cb=window[_0x5b89ef([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b89ef([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b89ef([0x6e,0x6f,0x77])]())[_0x5b89ef([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b89ef([0x2e]),'');let _0x3be1e9=_0x5b89ef([0x75]);for(let _0xe1751e=0x0;_0xe1751e<_0x8bc1cb[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe1751e+=0x2){let _0x2ede95=window[_0x5b89ef([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bc1cb[_0x5b89ef([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe1751e,_0xe1751e+0x2));_0x2ede95>=_0x4c2397[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ede95-=_0x4c2397[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3be1e9+=_0x4c2397[_0x2ede95];}return _0x3be1e9;}function _0x73979a(){const _0x5e1c7a=_0x47c230[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e]));if(0x3!=_0x5e1c7a[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd5eaa2(_0x5e1c7a[0x1]);function _0xd5eaa2(_0x30caf7){const _0x371867=_0x513ea7(_0x30caf7);return _0x371867&&_0x13ebb3()?_0x371867:null;function _0x13ebb3(){const _0x625490=_0x371867[_0x5b89ef([0x6a,0x74,0x69])],_0x5243e6=window[_0x5b89ef([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x625490[_0x5b89ef([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x625490[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x568e29={..._0x371867,[_0x5b89ef([0x6a,0x74,0x69])]:_0x625490[_0x5b89ef([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x625490[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x568e29[_0x5b89ef([0x76,0x63])],_0x385081(_0x568e29)==_0x5243e6;}}}async function _0x448aed(){let _0x1bd072=!0x0;try{const _0x45c4c3=_0x47c230[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e])),[_0x32742f,_0x1ba2f1,_0xd295f3]=_0x45c4c3;return _0xabae07(_0x32742f),await _0x483b9f(_0x32742f,_0x1ba2f1,_0xd295f3),_0x1bd072;}catch{return!0x1;}function _0xabae07(_0x17a2bd){const _0x18b7a0=_0x513ea7(_0x17a2bd);_0x18b7a0&&_0x18b7a0[_0x5b89ef([0x61,0x6c,0x67])]==_0x5b89ef([0x45,0x53,0x32,0x35,0x36])||(_0x1bd072=!0x1);}async function _0x483b9f(_0x183f1d,_0x498883,_0xe87f1a){const _0x3a98c5=window[_0x5b89ef([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b89ef([0x66,0x72,0x6f,0x6d])](_0x2c5de8(_0xe87f1a),_0x4920b0=>_0x4920b0[_0x5b89ef([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x545816=new window[(_0x5b89ef([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b89ef([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x183f1d+_0x5b89ef([0x2e])+_0x498883),_0x2bfc9c=window[_0x5b89ef([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b89ef([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2bfc9c)return;const _0x289c42=await _0x2bfc9c[_0x5b89ef([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b89ef([0x6a,0x77,0x6b]),_0x184a48,{[_0x5b89ef([0x6e,0x61,0x6d,0x65])]:_0x5b89ef([0x45,0x43,0x44,0x53,0x41]),[_0x5b89ef([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b89ef([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b89ef([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2bfc9c[_0x5b89ef([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b89ef([0x6e,0x61,0x6d,0x65])]:_0x5b89ef([0x45,0x43,0x44,0x53,0x41]),[_0x5b89ef([0x68,0x61,0x73,0x68])]:{[_0x5b89ef([0x6e,0x61,0x6d,0x65])]:_0x5b89ef([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x289c42,_0x3a98c5,_0x545816)||(_0x1bd072=!0x1);}}function _0x513ea7(_0x52c893){return _0x52c893[_0x5b89ef([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b89ef([0x65,0x79]))?JSON[_0x5b89ef([0x70,0x61,0x72,0x73,0x65])](_0x2c5de8(_0x52c893)):null;}function _0x2c5de8(_0x16b774){return window[_0x5b89ef([0x61,0x74,0x6f,0x62])](_0x16b774[_0x5b89ef([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b89ef([0x2b]))[_0x5b89ef([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b89ef([0x2f])));}function _0x385081(_0x19b069){let _0x554c01=0x1505;function _0x13eb86(_0x5c0f4b){for(let _0xeb9f8d=0x0;_0xeb9f8d<_0x5c0f4b[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb9f8d++){const _0x4b084f=_0x5c0f4b[_0x5b89ef([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xeb9f8d);_0x554c01=(_0x554c01<<0x5)+_0x554c01+_0x4b084f,_0x554c01&=_0x554c01;}}function _0x44f2eb(_0x4efad1){Array[_0x5b89ef([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4efad1)?_0x4efad1[_0x5b89ef([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44f2eb):_0x4efad1&&typeof _0x4efad1==_0x5b89ef([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b89ef([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4efad1)[_0x5b89ef([0x73,0x6f,0x72,0x74])]()[_0x5b89ef([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5960e2,_0x372f29])=>{_0x13eb86(_0x5960e2),_0x44f2eb(_0x372f29);}):_0x13eb86(window[_0x5b89ef([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4efad1));}return _0x44f2eb(_0x19b069),_0x554c01>>>0x0;}function _0x5b1afe(_0x55cb8e){return _0x55cb8e[_0x5b89ef([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b89ef([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b89ef([0x30]));}function _0x5bcaf6(_0x2b868e){return _0x2b868e[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b89ef([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b89ef([0x6a,0x6f,0x69,0x6e])]('');}function _0x389524(){}function _0x5b89ef(_0x3b684a){return _0x3b684a['map'](_0x1e0ce3=>String['fromCharCode'](_0x1e0ce3))['join']('');}_0x386659(await _0x45b76e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3322df){const {plugins:_0xf3f20c,editing:_0x232d3d,model:_0x129ead}=this['editor'],_0x5b5b25=_0xf3f20c['get'](f)['getFootnote'](_0x3322df);return!!_0x5b5b25&&(_0x129ead['change'](_0x253264=>{_0x253264['setSelection'](_0x253264['createPositionAt'](_0x5b5b25['definition'],'end'));}),_0x232d3d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2b3b55){const {plugins:_0x112d68,editing:_0x10fed3,model:_0x2f54bd}=this['editor'],_0x1bc801=_0x112d68['get'](f)['getFootnote'](_0x2b3b55);return!!_0x1bc801&&(_0x2f54bd['change'](_0x5047f6=>{_0x5047f6['setSelection'](_0x1bc801['reference'],'on');}),_0x10fed3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x218f32}=this['editor']['model'],_0x44bf65=this['editor']['config']['get']('footnotes.multiBlock');_0x218f32['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x218f32['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x218f32['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x44bf65?_0x218f32['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x218f32['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x218f32['addChildCheck'](_0x465ec0=>{for(const _0x41fa90 of _0x465ec0)if('footnoteDefinition'===_0x41fa90['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4dd2d3}=this,{conversion:_0x30d933,editing:_0x418cf9}=_0x4dd2d3,{t:t}=_0x4dd2d3['locale'];_0x30d933['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3c8084,{writer:_0x523b84,consumable:_0x1dd51d})=>{const _0x117d28=_0x3c8084['getChild'](0x0);if(!_0x117d28||!_0x117d28['is']('element','a'))return null;const _0x4a00e0=_0x117d28['getAttribute']('href')||'';if(!_0x4a00e0['startsWith']('#'))return null;const _0x252a68=_0x4a00e0['replace'](/^#/,'');if(!_0x252a68)return null;_0x1dd51d['consume'](_0x117d28,{'name':!0x0,'attributes':['href']});for(const {item:_0x228f11}of _0x418cf9['view']['createRangeIn'](_0x117d28))_0x228f11['is']('$textProxy')?_0x1dd51d['consume'](_0x228f11['textNode'],{'name':!0x0}):_0x228f11['is']('element')&&_0x1dd51d['consume'](_0x228f11,{'name':!0x0});return _0x523b84['createElement']('footnoteRef',{'footnoteId':_0x252a68});}}),_0x30d933['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5614a7,{writer:_0x1fd692})=>D(_0x5614a7,_0x1fd692)}),_0x30d933['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x52a53e,{writer:_0x3a93ae})=>{const _0x1b5b14=_0x52a53e['getAttribute']('footnoteCounter');return _0x1a8f4a(D(_0x52a53e,_0x3a93ae),_0x3a93ae,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1b5b14)});}});}['_defineDefinitionsConverters'](){const {editor:_0x274bea}=this,{t:t}=_0x274bea['locale'],{conversion:_0x4a31ed}=_0x274bea;_0x4a31ed['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4a31ed['for']('upcast')['add'](_0x93adba=>{_0x93adba['on']('element:ol',(_0x21f975,_0x25534a,_0x30c3a5)=>{const _0x735627=_0x25534a['viewItem'];if(!_0x735627['hasClass']('footnotes-list')||!_0x25534a['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x30c3a5['consumable']['consume'](_0x735627,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3b25fa,modelCursor:_0x58f1f5}=_0x30c3a5['convertChildren'](_0x25534a['viewItem'],_0x25534a['modelCursor']);_0x25534a['modelRange']=_0x3b25fa,_0x25534a['modelCursor']=_0x58f1f5;}),_0x93adba['on']('element:hr',(_0x63c296,_0x2beb65,_0x33d82e)=>{const _0x3a96ac=_0x2beb65['viewItem'];_0x3a96ac['hasClass']('footnotes-divider')&&_0x2beb65['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x33d82e['consumable']['consume'](_0x3a96ac,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4a31ed['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xaa16e,{writer:_0x5117f1})=>v(_0x5117f1)}),_0x4a31ed['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4c070d,{writer:_0x2dc561})=>{const _0x56a97c=v(_0x2dc561,{'data-footnotes-list-label':t('Footnotes')}),_0x96fda0=_0x1a8f4a(_0x56a97c,_0x2dc561,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2dc561['setCustomProperty']('footnotesDefinitions',!0x0,_0x96fda0),_0x96fda0;}});}['_defineDefinitionConverters'](){const {editor:_0x3d722}=this,{conversion:_0x1af11c,locale:_0x3a9708}=_0x3d722,_0x58d26f=_0x3d722['config']['get']('footnotes.multiBlock');_0x1af11c['for']('upcast')['add'](_0x235ed3=>{_0x235ed3['on']('element:li',(_0x67d05e,_0x24efb9,_0x6a10c5)=>{const _0x54167f=_0x24efb9['viewItem'];if(!_0x54167f['hasClass']('footnote-definition')||!_0x54167f['getAttribute']('id'))return;const _0x3765aa=_0x54167f['parent'];if(!_0x3765aa['is']('element','ol')||!_0x3765aa['hasClass']('footnotes-list'))return;if(!_0x6a10c5['consumable']['test'](_0x54167f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x36cfea=_0x6a10c5['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x54167f['getAttribute']('id')});if(!_0x6a10c5['safeInsert'](_0x36cfea,_0x24efb9['modelCursor']))return;_0x6a10c5['consumable']['consume'](_0x54167f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x32ec17=Array['from'](_0x54167f['getChildren']())['find'](_0x3800be=>_0x3800be['is']('element')&&_0x3800be['hasClass']('footnote-content'));for(const _0x4b0712 of _0x54167f['getChildren']())_0x4b0712['is']('element')&&(_0x6a10c5['consumable']['consume'](_0x4b0712,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x6a10c5['consumable']['consume'](_0x4b0712,{'name':!0x0,'classes':'footnote-content'}));if(_0x32ec17){if(_0x58d26f)_0x6a10c5['convertChildren'](_0x32ec17,_0x36cfea);else{const _0x5a2d39=_0x6a10c5['writer']['createElement']('footnoteInlineContent');_0x6a10c5['writer']['insert'](_0x5a2d39,_0x36cfea),_0x6a10c5['convertChildren'](_0x32ec17,_0x5a2d39);}}_0x6a10c5['updateConversionResult'](_0x36cfea,_0x24efb9);});}),_0x1af11c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5c5085,{writer:_0x13f557})=>b(_0x5c5085,_0x13f557,_0x3a9708,{'dataPipeline':!0x0})}),_0x1af11c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x65b3d2,{writer:_0x3052df})=>b(_0x65b3d2,_0x3052df,_0x3a9708)});}['_defineBogusParagraphConverters'](){const {editor:_0xafa293}=this,{conversion:_0x3af605}=_0xafa293;_0xafa293['config']['get']('footnotes.multiBlock')?(_0x3af605['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3af605['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xafa293['model']['document'],'change:data',()=>{!function(_0x506898,_0x36d932){const _0x127662=_0x506898['document']['differ'],_0x14d748=new Set();for(const _0x794d76 of _0x127662['getChanges']()){const _0x2ff3ad='attribute'==_0x794d76['type']?_0x794d76['range']['start']['parent']:_0x794d76['position']['parent'];_0x2ff3ad['is']('element','footnoteDefinition')&&_0x14d748['add'](_0x2ff3ad);}for(const _0x20e034 of _0x14d748['values']()){const _0x311b8d=Array['from'](_0x20e034['getChildren']())['filter'](_0x11d13f=>g(_0x11d13f,_0x36d932['mapper']));for(const _0x19d8f7 of _0x311b8d)_0x36d932['reconvertItem'](_0x19d8f7);}}(_0xafa293['model'],_0xafa293['editing']);})):(_0x3af605['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3af605['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5b02de,{writer:_0x3dcd9c})=>{const _0x2087c5=_0x3dcd9c['createContainerElement']('span');return _0x3dcd9c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2087c5),_0x2087c5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1f9726}=this,{editing:_0x4a95a4,t:t}=_0x1f9726,_0x4b0e9f=_0x1f9726['model']['document']['selection'];_0x1f9726['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1f9726['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4a95a4['view']['document'],'enter',(_0x59d84f,_0xeec144)=>{const _0x1e5d83=function(_0x101451){const _0x402172=_0x101451['getSelectedElement']();if(_0x402172?.['is']('element','footnoteRef'))return _0x402172;return null;}(_0x4b0e9f);if(_0x1e5d83){const _0x2fab4d=_0x1e5d83['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2fab4d),_0xeec144['preventDefault'](),_0x59d84f['stop']();}},{'context':_0x541040});}['_defineClickHandlers'](){const {editor:_0x312b6c}=this,{editing:_0x115cd9}=_0x312b6c;_0x312b6c['editing']['view']['addObserver'](_0xdb1376),_0x312b6c['editing']['view']['addObserver'](_0x3899a5);let _0x18a7af=!0x1;this['listenTo'](_0x115cd9['view']['document'],'pointerdown',(_0x41385c,_0x37c081)=>{const {target:_0x37d67a}=_0x37c081,_0x323619=_0x115cd9['view']['document']['selection'];_0x18a7af=!!(_0x37d67a?.['is']('element','a')&&_0x37d67a['parent']?.['is']('element','sup')&&_0x37d67a['parent']['hasClass']('footnote'))&&_0x323619['getSelectedElement']()===_0x37d67a['parent'];},{'priority':'high'}),this['listenTo'](_0x115cd9['view']['document'],'click',(_0x360de7,_0x29f944)=>{const {target:_0x2cfe8d}=_0x29f944;if(!_0x2cfe8d?.['is']('element','a'))return;if(_0x2cfe8d['parent']?.['is']('element','sup')&&_0x2cfe8d['parent']['hasClass']('footnote')&&!_0x18a7af)return void _0x29f944['preventDefault']();let _0x290786=_0x2cfe8d['getAttribute']('href');if(!_0x290786?.['startsWith']('#'))return;_0x290786=_0x290786['slice'](0x1);let _0x4f3d1a=!0x1;(_0x290786['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x290786['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x290786))&&(_0x4f3d1a=!0x0),_0x4f3d1a&&(_0x29f944['preventDefault'](),_0x360de7['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x3a168b}={}){return(_0x27729d,{writer:_0x5c4986})=>{if(!p(_0x27729d))return null;if(!_0x3a168b)return _0x5c4986['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x27b0a1=_0x5c4986['createContainerElement']('p');return _0x5c4986['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27b0a1),_0x27b0a1;};}function p(_0x15ee19){const {parent:_0x5776d4}=_0x15ee19;if(!_0x5776d4?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5776d4['childCount'])return!0x1;for(const _0xb8f1f of _0x15ee19['getAttributeKeys']())if(!_0xb8f1f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xb8f1f)return!0x1;return!0x0;}function g(_0x18277b,_0x359734){if(!_0x18277b['is']('element','paragraph'))return!0x1;const _0x57c74c=_0x359734['toViewElement'](_0x18277b);return!!_0x57c74c&&p(_0x18277b)!==_0x57c74c['is']('element','span');}function J(_0x59fbc6){return _0x541040(_0x59fbc6)&&_0x59fbc6['is']('containerElement')&&!!_0x59fbc6['getCustomProperty']('footnotesDefinitions');}function v(_0x2e6235,_0x565e5a={}){const _0x525d48=_0x2e6235['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1475da=_0x2e6235['createContainerElement']('ol',{'class':'footnotes-list'},_0x2e6235['createSlot']());return _0x2e6235['createContainerElement']('div',{'class':'footnotes',..._0x565e5a},[_0x525d48,_0x1475da]);}function D(_0x362710,_0x3326dc){const _0x36a789=_0x362710['getAttribute']('footnoteId'),_0x2c784e=_0x362710['getAttribute']('footnoteCounter'),_0x37ee07=_0x3326dc['createUIElement']('a',{'href':'#'+_0x36a789},function(_0x371c53){const _0x489e97=this['toDomElement'](_0x371c53);return _0x489e97['textContent']=_0x2c784e,_0x489e97;}),_0x4d2b58=_0x3326dc['createContainerElement']('sup',{'id':'ref-'+_0x36a789,'class':'footnote'},[_0x37ee07]);return _0x4d2b58['getFillerOffset']=()=>null,_0x4d2b58;}function b(_0x20fcd4,_0xb9e818,_0x22cfc0,{dataPipeline:_0x59df08}={}){const {t:t}=_0x22cfc0,_0xf6891f=_0x20fcd4['getAttribute']('footnoteId'),_0x52d333=_0xb9e818['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xf6891f},function(_0x1bec92){const _0x5d1b9e=this['toDomElement'](_0x1bec92);return _0x5d1b9e['innerText']='^',_0x5d1b9e;}),_0x340f69=_0x59df08?_0xb9e818['createContainerElement']('div',{'class':'footnote-content'}):_0x4a3f5f(_0xb9e818['createEditableElement']('div',{'class':'footnote-content'}),_0xb9e818,{'label':t('Footnote\x20content.')});return _0xb9e818['insert'](_0xb9e818['createPositionAt'](_0x340f69,0x0),_0xb9e818['createSlot']()),_0xb9e818['createContainerElement']('li',{'class':'footnote-definition','id':_0xf6891f},[_0x52d333,_0x340f69]);}class e extends _0x92811c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x57a6df];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x338ef8}=this,{plugins:_0x493e19,model:_0x4aad7b}=_0x338ef8,_0x43688e=_0x493e19['get'](_0x57a6df),_0x2b5448=_0x493e19['get'](f);this['listenTo'](_0x43688e,'outputTransformation',(_0xcdff76,_0x1060d2)=>{const _0x398dba=c(_0x4aad7b['createRangeIn'](_0x1060d2['content']));if(!_0x398dba['length'])return;const _0x3b7c6c=_0x2b5448['getFootnotes'](),_0x5dede9=_0x398dba['reduce']((_0x9b8a79,_0x456d40)=>{const _0x57b52c=_0x3b7c6c['find'](_0x38caf2=>_0x38caf2['id']===_0x456d40);if(_0x57b52c){const _0x1b3f1e=_0x338ef8['data']['toView'](_0x57b52c['definition'],{'isClipboardPipeline':!0x0}),_0x18cb50=_0x338ef8['data']['htmlProcessor']['toData'](_0x1b3f1e);_0x9b8a79[_0x57b52c['id']]=_0x18cb50;}return _0x9b8a79;},Object['create'](null));_0x1060d2['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5dede9));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2387ab}=this,{model:_0x5be09c,plugins:_0x2ad542}=_0x2387ab,{view:_0x21b767}=_0x2387ab['editing'],_0x30f059=_0x2ad542['get'](_0x57a6df),_0x5d55cc=_0x2ad542['get'](f),_0x47939c=_0x2387ab['config']['get']('footnotes.multiBlock');let _0x4366a8=null;this['listenTo'](_0x21b767['document'],'clipboardInput',(_0x4abff3,_0x1dd12)=>{const _0x3afabb=_0x1dd12['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4366a8=_0x3afabb?JSON['parse'](_0x3afabb):null;}),this['listenTo'](_0x30f059,'contentInsertion',(_0x24744c,_0x285787)=>{const _0x31e4e3=_0x285787['sourceEditorId']===this['editor']['id'];_0x31e4e3&&'drop'===_0x285787['method']||_0x5be09c['change'](_0x220197=>{let _0x410a95=_0x5d55cc['getFootnotesDefinitionsObjectElement']();const _0x96de3b=!!_0x410a95&&Array['from'](_0x5be09c['document']['selection']['getSelectedBlocks']())['includes'](_0x410a95);if((_0x410a95&&!_0x96de3b||!_0x410a95&&!_0x4366a8)&&function(_0x2c8495,_0x561490){const _0x3e4127=[];for(const {item:_0x116649}of _0x2c8495['createRangeIn'](_0x561490))_0x116649['is']('element','footnotesDefinitions')&&_0x3e4127['push'](_0x116649);for(const _0x153e7c of _0x3e4127)_0x2c8495['remove'](_0x153e7c);}(_0x220197,_0x285787['content']),!_0x4366a8)return;const {selection:_0x165e2a}=_0x5be09c['document'],_0x339113=_0x165e2a['getFirstRange']()['root'];_0x410a95&&!_0x96de3b||(_0x410a95=function(_0x48f384,_0xeca194){for(const {item:_0x2ac88b}of _0x48f384['createRangeIn'](_0xeca194))if(_0x2ac88b['is']('element','footnotesDefinitions'))return _0x2ac88b;return null;}(_0x220197,_0x285787['content']),_0x410a95||=_0x5d55cc['_insertEmptyFootnotesDefinitionsContainer'](_0x220197,_0x339113));const _0x1bfc5f=Array['from'](_0x165e2a['getRanges']())['flatMap'](c),_0x2f6942=function(_0x1360fb,_0x54ae12,_0x5cfcfc){const _0x11b32e=Object['create'](null);for(const {item:_0x28b7d2}of _0x1360fb['createRangeIn'](_0x54ae12))if(_0x28b7d2['is']('element','footnoteRef')){const _0x1e768e=_0x28b7d2['getAttribute']('footnoteId');if(!_0x5cfcfc(_0x1e768e))continue;_0x11b32e[_0x1e768e]||(_0x11b32e[_0x1e768e]=_0x230239()),_0x1360fb['setAttribute']('footnoteId',_0x11b32e[_0x1e768e],_0x28b7d2);}return _0x11b32e;}(_0x220197,_0x285787['content'],_0x5f3785=>{if(!_0x31e4e3)return!0x0;return!!_0x5d55cc['getFootnote'](_0x5f3785)&&!_0x1bfc5f['includes'](_0x5f3785);});for(const [_0x3d9a0e,_0x35e0e6]of Object['entries'](_0x4366a8)){const _0x14221f=_0x2f6942[_0x3d9a0e]||_0x3d9a0e,_0x278641=_0x220197['createElement']('footnoteDefinition',{'footnoteId':_0x14221f}),_0xc012fa=_0x2387ab['data']['htmlProcessor']['toView'](_0x35e0e6);let _0x335129;if(_0x47939c)_0x335129=_0x2387ab['data']['toModel'](_0xc012fa,_0x278641);else{_0x335129=_0x220197['createElement']('footnoteInlineContent');const _0x5dceca=_0x2387ab['data']['toModel'](_0xc012fa,_0x335129);_0x220197['insert'](_0x5dceca,_0x335129);}_0x220197['append'](_0x335129,_0x278641),_0x220197['insert'](_0x278641,_0x410a95,'end');}_0x4366a8=null;});});}}function c(_0xe7bb15){const _0x52b68e=new Set();for(const {item:_0x2d886d}of _0xe7bb15)_0x2d886d['is']('element','footnoteRef')&&_0x52b68e['add'](_0x2d886d['getAttribute']('footnoteId'));return Array['from'](_0x52b68e);}class i extends _0x92811c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4425b7}=this,{componentFactory:_0x266ef2}=_0x4425b7['ui'];_0x266ef2['add']('insertFootnote',x(_0x4425b7,_0x21bacb)),_0x266ef2['add']('menuBar:insertFootnote',x(_0x4425b7,_0x1d2dde)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x123ec4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40140e;for(const _0x377f4f in _0x123ec4){const _0x236b55=_0x377f4f,_0x41b7b8=_0x123ec4[_0x236b55];if('footnotesLicenseKeyValid'==_0x41b7b8||'footnotesLicenseKeyInvalid'==_0x41b7b8||'footnotesLicenseKeyExpired'==_0x41b7b8||'footnotesLicenseKeyDomainLimit'==_0x41b7b8||'footnotesLicenseKeyNotAllowed'==_0x41b7b8||'footnotesLicenseKeyEvaluationLimit'==_0x41b7b8||'footnotesLicenseKeyTrialLimit'==_0x41b7b8||'footnotesLicenseKeyUsageLimit'==_0x41b7b8){delete _0x123ec4[_0x236b55],_0x40140e=_0x41b7b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x40140e&&_0x123ec4['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x40140e&&_0x123ec4['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x40140e&&_0x123ec4['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x56bdc1,_0x706676){const _0x292c27=_0x56bdc1['commands']['get']('insertFootnote');return _0xc66484=>{const {t:t}=_0xc66484,_0x543acc=new _0x706676(_0xc66484),_0x711204=_0x543acc instanceof _0x1d2dde;return _0x543acc['bind']('isEnabled')['to'](_0x292c27,'isEnabled'),_0x543acc['set']({'label':t(_0x711204?'Footnote':'Insert\x20footnote'),'icon':_0x5c4a41,'tooltip':!0x0}),_0x543acc['on']('execute',()=>{_0x292c27['execute'](),_0x56bdc1['editing']['view']['focus']();}),_0x543acc;};}class lt extends _0x92811c{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 _0x21a9a1{['refresh'](){const {editor:_0x12fa6d}=this,_0x2a6f2a=_0x12fa6d['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2a6f2a,this['value']=_0x2a6f2a?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x112267}){const {editor:_0x50ce56}=this,_0x35044d=_0x50ce56['plugins']['get'](f),_0x4f8d53=_0x35044d['getFootnotesDefinitionsObjectElement']();_0x4f8d53&&Q['includes'](_0x112267)&&_0x50ce56['model']['change'](_0x1ec0c1=>{_0x1ec0c1['setAttribute']('footnotesListStyle',_0x112267,_0x4f8d53),_0x35044d['_updateFootnotesCounters'](_0x1ec0c1);});}}class C extends _0x21a9a1{['refresh'](){const {editor:_0x114d6f}=this,_0x4318d6=_0x114d6f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4318d6,this['value']=_0x4318d6?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x9e590b}){const {editor:_0x538b8b}=this,_0x3d38ae=_0x538b8b['plugins']['get'](f),_0x2af891=_0x3d38ae['getFootnotesDefinitionsObjectElement']();_0x2af891&&Number['isInteger'](_0x9e590b)&&_0x538b8b['model']['change'](_0x91159f=>{_0x91159f['setAttribute']('footnotesListStart',_0x9e590b,_0x2af891),_0x3d38ae['_updateFootnotesCounters'](_0x91159f);});}}class P extends _0x92811c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58cd86}=this;_0x58cd86['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x58cd86['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x58cd86['commands']['add']('footnotesStyle',new S(_0x58cd86)),_0x58cd86['commands']['add']('footnotesStart',new C(_0x58cd86)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x113107}=this,{schema:_0x28fc0a}=_0x113107['model'];_0x28fc0a['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2207e3}=this,{conversion:_0xd72d8a,model:_0x1ea280}=_0x2207e3,{schema:_0x4ede12}=_0x1ea280;_0xd72d8a['for']('upcast')['add'](_0x10b4f2=>{_0x10b4f2['on']('element:ol',(_0xb061e9,_0x40d50a,_0x345e36)=>{const _0x2e75bf=_0x40d50a['viewItem'],_0x2847d3=_0x40d50a['modelCursor']?.['parent'];_0x2e75bf['hasClass']('footnotes-list')&&_0x2847d3?.['is']('element','footnotesDefinitions')&&(function(_0x1f8cdb,_0x9de806,_0x209dc6,_0x321b11){if(!_0x321b11['checkAttribute'](_0x9de806,'footnotesListStart'))return;let _0x1c8c93=0x1;const _0x57d6a2=_0x209dc6['consumable']['consume'](_0x1f8cdb,{'attributes':'start'});if(_0x57d6a2){const _0x7f04a4=Number['parseInt'](_0x1f8cdb['getAttribute']('start'),0xa);Number['isNaN'](_0x7f04a4)||(_0x1c8c93=_0x7f04a4);}!_0x57d6a2&&_0x9de806['hasAttribute']('footnotesListStart')||_0x209dc6['writer']['setAttribute']('footnotesListStart',_0x1c8c93,_0x9de806);}(_0x2e75bf,_0x2847d3,_0x345e36,_0x4ede12),function(_0xeb9186,_0xe8df27,_0x3443f8,_0x4050e6){if(!_0x4050e6['checkAttribute'](_0xe8df27,'footnotesListStyle'))return;let _0x5af1d4='decimal',_0x2ac26f=!0x1;if(_0x3443f8['consumable']['consume'](_0xeb9186,{'attributes':'type'})){const _0xb6bfa5={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xeb9186['getAttribute']('type')];_0xb6bfa5&&(_0x5af1d4=_0xb6bfa5),_0x2ac26f=!0x0;}_0x3443f8['consumable']['consume'](_0xeb9186,{'styles':'list-style-type'})&&(_0x5af1d4=function(_0x21832a){switch(_0x21832a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x21832a;}}(_0xeb9186['getStyle']('list-style-type')),_0x2ac26f=!0x0),!_0x2ac26f&&_0xe8df27['hasAttribute']('footnotesListStyle')||_0x3443f8['writer']['setAttribute']('footnotesListStyle',_0x5af1d4,_0xe8df27);}(_0x2e75bf,_0x2847d3,_0x345e36,_0x4ede12));});}),_0xd72d8a['for']('downcast')['add'](_0x28083=>{_0x28083['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1804c8,_0x2455c3,_0x4c6a54)=>{if(!_0x4c6a54['consumable']['consume'](_0x2455c3['item'],_0x1804c8['name']))return;const _0x422acf=M(_0x2455c3['item'],_0x4c6a54['mapper']),{attributeNewValue:_0x17b924}=_0x2455c3;null==_0x17b924||0x1===_0x17b924?_0x4c6a54['writer']['removeAttribute']('start',_0x422acf):_0x4c6a54['writer']['setAttribute']('start',String(_0x17b924),_0x422acf);}),_0x28083['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x195c22,_0x4ce52e,_0xc776a0)=>{if(!_0xc776a0['consumable']['consume'](_0x4ce52e['item'],_0x195c22['name']))return;const _0x2109c8=M(_0x4ce52e['item'],_0xc776a0['mapper']),{attributeNewValue:_0x4c0f79}=_0x4ce52e;_0x4c0f79&&'decimal'!==_0x4c0f79?_0xc776a0['writer']['setStyle']('list-style-type',_0x4c0f79,_0x2109c8):_0xc776a0['writer']['removeStyle']('list-style-type',_0x2109c8);});});}['_definePostfixer'](){const {editor:_0x1183c1}=this,{model:_0x3d08e3}=_0x1183c1,_0x205a80=_0x1183c1['plugins']['get'](f),_0x451102=this['_getDefaultListStyle'](),_0x47922c=this['_getDefaultStartIndex']();_0x3d08e3['document']['registerPostFixer'](_0x153cb6=>{const _0x3834d4=_0x3d08e3['document']['differ']['getChanges']();let _0x2c0c1b=!0x1;for(const _0x5cea56 of _0x3834d4){if('insert'!==_0x5cea56['type']||'$text'===_0x5cea56['name'])continue;const _0x39c6f9=_0x3d08e3['createRangeOn'](_0x5cea56['position']['nodeAfter']);for(const _0x53f7b4 of _0x39c6f9['getItems']())_0x53f7b4['is']('element','footnotesDefinitions')&&(!_0x53f7b4['hasAttribute']('footnotesListStart')&&_0x3d08e3['schema']['checkAttribute'](_0x53f7b4,'footnotesListStart')&&(_0x153cb6['setAttribute']('footnotesListStart',_0x47922c,_0x53f7b4),_0x2c0c1b=!0x0),!_0x53f7b4['hasAttribute']('footnotesListStyle')&&_0x3d08e3['schema']['checkAttribute'](_0x53f7b4,'footnotesListStyle')&&(_0x153cb6['setAttribute']('footnotesListStyle',_0x451102,_0x53f7b4),_0x2c0c1b=!0x0));}return _0x2c0c1b&&_0x205a80['_updateFootnotesCounters'](_0x153cb6),_0x2c0c1b;});}['_defineFormatter'](){const {editor:_0x597331}=this;_0x597331['plugins']['get'](f)['setFootnoteFormatter'](_0x37ec47=>this['_formatFootnoteListValue'](_0x37ec47));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x17641d,value:_0x455d7a,digits:_0xb6c690}){const _0x363c18=_0x17641d['getAttribute']('footnotesListStyle'),_0x495d55=_0x17641d['getAttribute']('footnotesListStart'),_0x1e7a25=Math['floor'](_0x455d7a)+(_0x495d55??0x1)-0x1;switch(_0x363c18){case'decimal-leading-zero':return function(_0x3bf516,_0xe76d10){return String(_0x3bf516)['padStart'](_0xe76d10,'0');}(_0x1e7a25,Math['max'](0x2,_0xb6c690));case'lower-alpha':case'lower-latin':return N(_0x1e7a25,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1e7a25,!0x0);case'lower-roman':return X(_0x1e7a25,!0x1);case'upper-roman':return X(_0x1e7a25,!0x0);default:return String(_0x1e7a25);}}}function M(_0x37ddd9,_0x19462c){const _0x40f1b2=_0x19462c['toViewElement'](_0x37ddd9);return Array['from'](_0x40f1b2['getChildren']())['find'](_0xaaf727=>_0xaaf727['is']('element','ol')&&_0xaaf727['hasClass']('footnotes-list'));}function N(_0x3e3fa4,_0x75c949){let _0x1145d4='',_0x2e5ba4=_0x3e3fa4;for(;_0x2e5ba4>0x0;){const _0x56cd5c=(_0x2e5ba4-0x1)%0x1a;_0x1145d4=String['fromCharCode'](0x61+_0x56cd5c)+_0x1145d4,_0x2e5ba4=Math['floor']((_0x2e5ba4-0x1)/0x1a);}return _0x75c949?_0x1145d4['toUpperCase']():_0x1145d4;}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(_0x948058,_0x5b7e26){let _0xcfd9ea='',_0xeb5940=_0x948058;for(const {value:_0x509c35,numeral:_0x370097}of V)for(;_0xeb5940>=_0x509c35;)_0xcfd9ea+=_0x370097,_0xeb5940-=_0x509c35;return _0x5b7e26?_0xcfd9ea:_0xcfd9ea['toLowerCase']();}class H extends _0x550991{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x4f5436();['focusCycler'];constructor(_0x3d17ed,{styleButtonViews:_0x1359a9,styleGridAriaLabel:_0x2e80da}){super(_0x3d17ed),(this['focusCycler']=new _0x3939ab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1359a9,_0x2e80da),[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 _0x2ba4cf of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2ba4cf['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 _0x503cc2=_0x33ba5c=>_0x33ba5c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x503cc2),this['keystrokes']['set']('arrowleft',_0x503cc2),this['keystrokes']['set']('arrowup',_0x503cc2),this['keystrokes']['set']('arrowdown',_0x503cc2);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xefb9ec,_0xc07520){const _0x573744=new _0x550991(this['locale']);return _0x573744['children']=_0x573744['createCollection'](),_0x573744['children']['addMany'](_0xefb9ec),_0x573744['setTemplate']({'tag':'div','attributes':{'aria-label':_0xc07520,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x573744['children']}),_0x573744['children']['delegate']('execute')['to'](this),_0x573744['focus']=function(){for(const _0x1ae937 of this['children'])if(_0x1ae937 instanceof _0x21bacb&&_0x1ae937['isOn'])return void _0x1ae937['focus']();this['children']['first']['focus']();},_0x573744['focusTracker']=new ot(),_0x573744['keystrokes']=new rt(),_0x573744['render'](),_0x573744['keystrokes']['listenTo'](_0x573744['element']),this['children']['add'](_0x573744),_0x573744;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x553e32=this['_createStartIndexPropertyView'](),_0x1e214b=[_0x553e32],_0x4a16af=new st(this['locale'],_0x1e214b);return _0x4a16af['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4a16af['buttonView']['bind']('isEnabled')['toMany'](_0x1e214b,'isEnabled',(..._0xd48534)=>_0xd48534['some'](_0x54c22f=>_0x54c22f)),_0x4a16af['buttonView']['on']('change:isEnabled',(_0x470921,_0x3730a8,_0x121bdc)=>{_0x121bdc||(_0x4a16af['isCollapsed']=!0x0);}),this['children']['add'](_0x4a16af),[_0x553e32,_0x4a16af];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x59992f=new it(this['locale'],et);return _0x59992f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x59992f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x59992f['fieldView']['on']('input',()=>{const _0x47bfe3=_0x59992f['fieldView']['element'],_0xf17b8e=_0x47bfe3['valueAsNumber'];Number['isNaN'](_0xf17b8e)?_0x59992f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x47bfe3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xf17b8e}):_0x59992f['errorText']=t(_0xf17b8e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x59992f;}}class j extends _0x92811c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1eaed9,_0x172b2b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3b0048}=this,{componentFactory:_0x11d667}=_0x3b0048['ui'];_0x3b0048['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x11d667['add']('footnotesStyle',function(_0x28991a){return _0x295e8a=>{const {t:t}=_0x295e8a,_0xfc9189=_0x28991a['commands']['get']('footnotesStyle'),_0x2f9802=_0x1d234f(_0x295e8a),{buttonView:_0x4e2d4f}=_0x2f9802;return _0x2f9802['class']='ck-footnotes-styles-dropdown',_0x2f9802['bind']('isEnabled')['to'](_0xfc9189,'isEnabled'),_0x4e2d4f['set']({'label':t('Footnotes\x20style'),'icon':_0x5c4a41,'tooltip':!0x0}),_0x2f9802['once']('change:isOpen',()=>{const _0x1339eb=function({editor:_0x41acd8,dropdownView:_0x580a47}){const {t:t}=_0x41acd8['locale'],_0x333464=t('Footnotes\x20definitions\x20styles'),_0x206af2=function(_0x11f52e){const t=_0x11f52e['locale']['t'],_0x4592da=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x474b80},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4518e9},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4153fd},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x219a60},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x555b26},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x378945}];return _0x4592da['map'](function(_0x1f876a){const _0x405193=_0x1f876a['locale'];return({label:_0x2bb986,icon:_0x724047,tooltip:_0xdd1f67,style:_0x43fe9c})=>{const _0x2d1cbf=_0x1f876a['commands']['get']('footnotesStyle'),_0xd7d1b7=new _0x21bacb(_0x405193);return _0xd7d1b7['set']({'label':_0x2bb986,'icon':_0x724047,'tooltip':_0xdd1f67}),_0xd7d1b7['bind']('isOn')['to'](_0x2d1cbf,'value',_0x3421ab=>_0x3421ab===_0x43fe9c),_0xd7d1b7['bind']('isEnabled')['to'](_0x2d1cbf,'isEnabled'),_0xd7d1b7['on']('execute',()=>{_0x1f876a['execute']('footnotesStyle',{'value':_0x43fe9c}),_0x1f876a['editing']['view']['focus']();}),_0xd7d1b7;};}(_0x11f52e));}(_0x41acd8),_0x490d51=new H(_0x41acd8['locale'],{'styleGridAriaLabel':_0x333464,'styleButtonViews':_0x206af2}),_0x24e317=_0x41acd8['commands']['get']('footnotesStart');return _0x490d51['startIndexFieldView']['bind']('isEnabled')['to'](_0x24e317),_0x490d51['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x24e317),_0x490d51['on']('footnotesListStart',(_0x1b876c,_0x4663d4)=>{_0x41acd8['execute']('footnotesStart',{'value':_0x4663d4['startIndex']});}),_0x490d51['delegate']('execute')['to'](_0x580a47),_0x490d51;}({'editor':_0x28991a,'dropdownView':_0x2f9802});_0x2f9802['panelView']['children']['add'](_0x1339eb);}),_0x2f9802;};}(_0x3b0048));}['afterInit'](){const {editor:_0x2cc59a}=this,{t:t}=_0x2cc59a['locale'],_0x4f4e3f=_0x2cc59a['plugins']['get'](_0x172b2b),{defaultPositions:_0xe4e7a7}=_0x57bf32;_0x4f4e3f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2cc59a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc93f10=>{let _0x238117=_0xc93f10['getFirstPosition']()?.['parent'];return _0x238117?.['is']('$text')&&(_0x238117=_0x238117['parent']),_0x238117?.['is']('element')?_0x238117['findAncestor'](J):null;},'positions':[_0xe4e7a7['southArrowNorth'],_0xe4e7a7['southArrowNorthMiddleWest'],_0xe4e7a7['southArrowNorthMiddleEast'],_0xe4e7a7['southArrowNorthWest'],_0xe4e7a7['southArrowNorthEast'],_0xe4e7a7['northArrowSouth'],_0xe4e7a7['northArrowSouthMiddleWest'],_0xe4e7a7['northArrowSouthMiddleEast'],_0xe4e7a7['northArrowSouthWest'],_0xe4e7a7['northArrowSouthEast'],_0xe4e7a7['viewportStickyNorth']]});}}class ft extends _0x92811c{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": "47.3.0-alpha.4",
3
+ "version": "47.3.0-alpha.5",
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": "47.3.0-alpha.4",
27
- "@ckeditor/ckeditor5-ui": "47.3.0-alpha.4",
28
- "@ckeditor/ckeditor5-engine": "47.3.0-alpha.4",
29
- "@ckeditor/ckeditor5-icons": "47.3.0-alpha.4",
30
- "@ckeditor/ckeditor5-widget": "47.3.0-alpha.4",
31
- "@ckeditor/ckeditor5-clipboard": "47.3.0-alpha.4",
32
- "@ckeditor/ckeditor5-utils": "47.3.0-alpha.4",
33
- "ckeditor5": "47.3.0-alpha.4"
26
+ "@ckeditor/ckeditor5-core": "47.3.0-alpha.5",
27
+ "@ckeditor/ckeditor5-ui": "47.3.0-alpha.5",
28
+ "@ckeditor/ckeditor5-engine": "47.3.0-alpha.5",
29
+ "@ckeditor/ckeditor5-icons": "47.3.0-alpha.5",
30
+ "@ckeditor/ckeditor5-widget": "47.3.0-alpha.5",
31
+ "@ckeditor/ckeditor5-clipboard": "47.3.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "47.3.0-alpha.5",
33
+ "ckeditor5": "47.3.0-alpha.5"
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
- const _0x30a213=_0x3549;(function(_0x40433a,_0x16476f){const _0x370b68=_0x3549,_0x3a8431=_0x40433a();while(!![]){try{const _0x28f1a6=-parseInt(_0x370b68(0x17a))/0x1*(parseInt(_0x370b68(0x19c))/0x2)+parseInt(_0x370b68(0x183))/0x3+-parseInt(_0x370b68(0x17e))/0x4*(-parseInt(_0x370b68(0x180))/0x5)+-parseInt(_0x370b68(0x192))/0x6*(parseInt(_0x370b68(0x193))/0x7)+-parseInt(_0x370b68(0x18e))/0x8+parseInt(_0x370b68(0x191))/0x9*(-parseInt(_0x370b68(0x18f))/0xa)+parseInt(_0x370b68(0x178))/0xb;if(_0x28f1a6===_0x16476f)break;else _0x3a8431['push'](_0x3a8431['shift']());}catch(_0x10e31a){_0x3a8431['push'](_0x3a8431['shift']());}}}(_0x4141,0xf3e4c));function _0x3549(_0x3e902c,_0x249f84){const _0x414177=_0x4141();return _0x3549=function(_0x35496e,_0x5bb6f5){_0x35496e=_0x35496e-0x178;let _0x12a118=_0x414177[_0x35496e];return _0x12a118;},_0x3549(_0x3e902c,_0x249f84);}import{logWarning as _0x5166d1,uid as _0x1bb753}from'ckeditor5/src/utils.js';import{Command as _0x36fe70}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x36fe70{[_0x30a213(0x19b)](){const _0x46cedd=_0x30a213,_0x2adbcc=this[_0x46cedd(0x185)][_0x46cedd(0x18b)][_0x46cedd(0x186)][_0x46cedd(0x195)],_0x173291=this[_0x46cedd(0x189)](_0x2adbcc);this[_0x46cedd(0x182)]=!!_0x173291;}[_0x30a213(0x19a)](_0x1487be){const _0x50c56=_0x30a213,{editor:_0x387a55}=this,{model:_0x6b287b}=_0x387a55,{selection:_0x4f131a}=_0x6b287b[_0x50c56(0x186)],_0x3ccd4d=this[_0x50c56(0x189)](_0x4f131a);if(!_0x3ccd4d)return;const _0x9a5c8c=_0x387a55[_0x50c56(0x198)][_0x50c56(0x17d)](_0x50c56(0x179)),_0x5d80f0=_0x1487be?.[_0x50c56(0x17b)]??_0x1bb753();!function(_0x5cdfca){const _0x5b0add=_0x50c56;return _0x5b0add(0x18d)==typeof _0x5cdfca&&_0x5cdfca[_0x5b0add(0x181)]>0x0&&!/\s/[_0x5b0add(0x18a)](_0x5cdfca)&&!/^\d/[_0x5b0add(0x18a)](_0x5cdfca);}(_0x5d80f0)?_0x5166d1(_0x50c56(0x190)):(_0x6b287b[_0x50c56(0x199)](_0x120e93=>{const _0x5a5c9a=_0x50c56,_0x27e7f4=_0x120e93[_0x5a5c9a(0x188)](_0x5a5c9a(0x17f),{'footnoteId':_0x5d80f0});_0x6b287b[_0x5a5c9a(0x18c)](_0x27e7f4,_0x3ccd4d,null);}),_0x9a5c8c[_0x50c56(0x184)](_0x5d80f0));}[_0x30a213(0x189)](_0x29f2f1){const _0x131b56=_0x30a213,{model:_0x127d69}=this[_0x131b56(0x185)],{schema:_0xd17ec9}=_0x127d69,_0xdea19d=_0x29f2f1[_0x131b56(0x187)]();for(const _0x402d3a of _0xdea19d[_0x131b56(0x17c)]())if(_0xd17ec9[_0x131b56(0x19d)](_0x402d3a)||_0xd17ec9[_0x131b56(0x196)](_0x402d3a))return null;const _0x1a2ba5=_0xdea19d[_0x131b56(0x197)];return _0xd17ec9[_0x131b56(0x194)](_0x1a2ba5,_0x131b56(0x17f))?_0x1a2ba5:null;}}function _0x4141(){const _0x1491b1=['insert-footnote-command-executed-with-invalid-id','5900922axswah','438qBJiVR','43225ZBzQqJ','checkChild','selection','isObject','end','plugins','change','execute','refresh','629676eHndkK','isBlock','47497461EyuNXr','FootnotesEditing','4llasMq','footnoteId','getItems','get','11668GjrxBH','footnoteRef','215UHxYgL','length','isEnabled','1181985fQOcFP','_moveSelectionToFootnoteDefinition','editor','document','getFirstRange','createElement','_getPositionToInsertFootnote','test','model','insertObject','string','11780832AfoyPf','10ODhCqT'];_0x4141=function(){return _0x1491b1;};return _0x4141();}
23
+ const _0xde1e46=_0x3455;function _0x4226(){const _0x175d75=['end','plugins','string','178fNSakp','editor','change','get','checkChild','_getPositionToInsertFootnote','execute','createElement','getFirstRange','6VPNNYG','footnoteId','isBlock','FootnotesEditing','isEnabled','2817603yvcvmj','length','getItems','1480lYLVku','13741632DpasLN','isObject','insert-footnote-command-executed-with-invalid-id','3887155MxyGmU','document','selection','refresh','_moveSelectionToFootnoteDefinition','231TyOwnm','model','5053hAaJbc','763YZFHPW','222668lHWCAn','6seDQmb','220370IWimOS','test','insertObject','footnoteRef'];_0x4226=function(){return _0x175d75;};return _0x4226();}function _0x3455(_0x2115e6,_0x4d478e){const _0x42267b=_0x4226();return _0x3455=function(_0x3455b4,_0x1f3361){_0x3455b4=_0x3455b4-0x7f;let _0x33950d=_0x42267b[_0x3455b4];return _0x33950d;},_0x3455(_0x2115e6,_0x4d478e);}(function(_0x51bf54,_0x1ef5dd){const _0xecdce9=_0x3455,_0x3298f2=_0x51bf54();while(!![]){try{const _0x9766c1=-parseInt(_0xecdce9(0x8e))/0x1*(parseInt(_0xecdce9(0x99))/0x2)+-parseInt(_0xecdce9(0xa2))/0x3*(parseInt(_0xecdce9(0x90))/0x4)+parseInt(_0xecdce9(0x87))/0x5*(parseInt(_0xecdce9(0x91))/0x6)+parseInt(_0xecdce9(0x8f))/0x7*(-parseInt(_0xecdce9(0x83))/0x8)+-parseInt(_0xecdce9(0x80))/0x9+-parseInt(_0xecdce9(0x92))/0xa*(parseInt(_0xecdce9(0x8c))/0xb)+parseInt(_0xecdce9(0x84))/0xc;if(_0x9766c1===_0x1ef5dd)break;else _0x3298f2['push'](_0x3298f2['shift']());}catch(_0x5e0bf9){_0x3298f2['push'](_0x3298f2['shift']());}}}(_0x4226,0x8a103));import{logWarning as _0x938698,uid as _0x488898}from'ckeditor5/src/utils.js';import{Command as _0x8e5b5}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x8e5b5{[_0xde1e46(0x8a)](){const _0xe0dbc7=_0xde1e46,_0x51e2bb=this[_0xe0dbc7(0x9a)][_0xe0dbc7(0x8d)][_0xe0dbc7(0x88)][_0xe0dbc7(0x89)],_0x4e103f=this[_0xe0dbc7(0x9e)](_0x51e2bb);this[_0xe0dbc7(0x7f)]=!!_0x4e103f;}[_0xde1e46(0x9f)](_0x227189){const _0x27580d=_0xde1e46,{editor:_0x556469}=this,{model:_0x1171a9}=_0x556469,{selection:_0x3bad8a}=_0x1171a9[_0x27580d(0x88)],_0x33431a=this[_0x27580d(0x9e)](_0x3bad8a);if(!_0x33431a)return;const _0x4995e1=_0x556469[_0x27580d(0x97)][_0x27580d(0x9c)](_0x27580d(0xa5)),_0x7a8dd1=_0x227189?.[_0x27580d(0xa3)]??_0x488898();!function(_0x1b9f8b){const _0x2abc84=_0x27580d;return _0x2abc84(0x98)==typeof _0x1b9f8b&&_0x1b9f8b[_0x2abc84(0x81)]>0x0&&!/\s/[_0x2abc84(0x93)](_0x1b9f8b)&&!/^\d/[_0x2abc84(0x93)](_0x1b9f8b);}(_0x7a8dd1)?_0x938698(_0x27580d(0x86)):(_0x1171a9[_0x27580d(0x9b)](_0x2b3c3d=>{const _0x339460=_0x27580d,_0x543823=_0x2b3c3d[_0x339460(0xa0)](_0x339460(0x95),{'footnoteId':_0x7a8dd1});_0x1171a9[_0x339460(0x94)](_0x543823,_0x33431a,null);}),_0x4995e1[_0x27580d(0x8b)](_0x7a8dd1));}[_0xde1e46(0x9e)](_0x1e972e){const _0xcc8fd7=_0xde1e46,{model:_0x37de04}=this[_0xcc8fd7(0x9a)],{schema:_0x59d55d}=_0x37de04,_0x2d579b=_0x1e972e[_0xcc8fd7(0xa1)]();for(const _0x43478c of _0x2d579b[_0xcc8fd7(0x82)]())if(_0x59d55d[_0xcc8fd7(0xa4)](_0x43478c)||_0x59d55d[_0xcc8fd7(0x85)](_0x43478c))return null;const _0x2ab4f5=_0x2d579b[_0xcc8fd7(0x96)];return _0x59d55d[_0xcc8fd7(0x9d)](_0x2ab4f5,_0xcc8fd7(0x95))?_0x2ab4f5:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1df53c}from'ckeditor5/src/core.js';import{isWidget as _0x466f3a,toWidget as _0x128ba6,toWidgetEditable as _0x56c853}from'ckeditor5/src/widget.js';import{uid as _0x5804b0}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4d3417,ClickObserver as _0x47ac07}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3a1e97}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x8c6d2}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1df53c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3a1e97];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x232974}=this;_0x232974['config']['define']('footnotes.multiBlock',!0x0),_0x232974['commands']['add']('insertFootnote',new _0x8c6d2(_0x232974)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3dcad2){const _0x1993e3=_0x2afb01([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]),_0x3deeff=0x47a28506,_0xee719c=0x47a5ff96^_0x3deeff,_0x26e67f=window[_0x2afb01([0x44,0x61,0x74,0x65])][_0x2afb01([0x6e,0x6f,0x77])](),_0x25c5e8=_0x3dcad2[_0x2afb01([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x359139=new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35a7b0=>{_0x25c5e8[_0x2afb01([0x6f,0x6e,0x63,0x65])](_0x2afb01([0x72,0x65,0x61,0x64,0x79]),_0x35a7b0);}),_0x6698e0={[_0x2afb01([0x6b,0x74,0x79])]:_0x2afb01([0x45,0x43]),[_0x2afb01([0x75,0x73,0x65])]:_0x2afb01([0x73,0x69,0x67]),[_0x2afb01([0x63,0x72,0x76])]:_0x2afb01([0x50,0x2d,0x32,0x35,0x36]),[_0x2afb01([0x78])]:_0x2afb01([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]),[_0x2afb01([0x79])]:_0x2afb01([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]),[_0x2afb01([0x61,0x6c,0x67])]:_0x2afb01([0x45,0x53,0x32,0x35,0x36])},_0x13fe8e=_0x25c5e8[_0x2afb01([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2afb01([0x67,0x65,0x74])](_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x261bff(){let _0x3ffcfb,_0x175704=null,_0x288ee1=null;try{if(_0x13fe8e==_0x2afb01([0x47,0x50,0x4c]))return _0x2afb01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ffcfb=_0x2f1571(),!_0x3ffcfb)return _0x2afb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ffcfb[_0x2afb01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x288ee1=_0x1d0c47(_0x3ffcfb[_0x2afb01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ffcfb[_0x2afb01([0x6a,0x74,0x69])])),await _0x18a895()?_0x139515()?_0xf85d62()?_0x2afb01([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x195d54()?(_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2afb01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x175704=_0x4aa733(_0x2afb01([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2afb01([0x74,0x72,0x69,0x61,0x6c])&&(_0x175704=_0x4aa733(_0x2afb01([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c7144()):_0x2afb01([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2afb01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2afb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2afb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf85d62(){const _0x52d91b=[_0x2afb01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2afb01([0x74,0x72,0x69,0x61,0x6c])][_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26e67f/0x3e8:0xe10*_0xee719c;return _0x3ffcfb[_0x2afb01([0x65,0x78,0x70])]<_0x52d91b;}function _0x139515(){const _0x804c70=_0x3ffcfb[_0x2afb01([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x804c70&&(!!_0x804c70[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afb01([0x2a]))||!!_0x804c70[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afb01([0x46,0x4f,0x4f])));}function _0x195d54(){const _0x26a22c=_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26a22c||0x0==_0x26a22c[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc6fa32}=new URL(window[_0x2afb01([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26a22c[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc6fa32))return!0x0;const _0x256d2c=_0xc6fa32[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e]));return _0x26a22c[_0x2afb01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4010c2=>_0x4010c2[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afb01([0x2a])))[_0x2afb01([0x6d,0x61,0x70])](_0x367e2d=>_0x367e2d[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e])))[_0x2afb01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9da87a=>_0x9da87a[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x256d2c[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2afb01([0x6d,0x61,0x70])](_0x4f0424=>Array(_0x256d2c[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f0424[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2afb01([0x66,0x69,0x6c,0x6c])](_0x4f0424[0x0]===_0x2afb01([0x2a])?_0x2afb01([0x2a]):'')[_0x2afb01([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f0424))[_0x2afb01([0x73,0x6f,0x6d,0x65])](_0x1bce93=>_0x256d2c[_0x2afb01([0x65,0x76,0x65,0x72,0x79])]((_0x2694b1,_0x1c72e2)=>_0x1bce93[_0x1c72e2]===_0x2694b1||_0x1bce93[_0x1c72e2]===_0x2afb01([0x2a])));}function _0x4c7144(){return _0x175704&&_0x288ee1?new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x553045,_0x5c811a)=>{_0x175704[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x553045,_0x5c811a),_0x288ee1[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x1b4c2c=>{_0x1b4c2c!=_0x2afb01([0x56,0x61,0x6c,0x69,0x64])&&_0x553045(_0x1b4c2c);},_0x5c811a);}):_0x175704||_0x288ee1||_0x2afb01([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d0c47(_0xc6929e,_0x294d83){return new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2207=>{if(_0x5b61df())return _0x5b2207(_0x2afb01([0x56,0x61,0x6c,0x69,0x64]));_0x1e84d5(),_0x25c5e8[_0x2afb01([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2afb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50197e=!0x1;const _0x42efad=_0x5804b0();function _0x515af0(_0x3c1467){return!!_0x3c1467&&(typeof _0x3c1467===_0x2afb01([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c1467===_0x2afb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c1467[_0x2afb01([0x74,0x68,0x65,0x6e])]===_0x2afb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c1467[_0x2afb01([0x63,0x61,0x74,0x63,0x68])]===_0x2afb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12961e(_0x3c25bc){_0x1189b6(_0x3c25bc)[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x55d4ff=>{if(!_0x55d4ff||_0x55d4ff[_0x2afb01([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2afb01([0x6f,0x6b]))return _0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x512854(_0x690b10(_0x42efad+_0x294d83))!=_0x55d4ff[_0x2afb01([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2afb01([0x56,0x61,0x6c,0x69,0x64]);})[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x4c8681=>(_0xc2408d(),_0x4c8681),()=>{const _0xa9eb01=_0xd7a31b();return null==_0xa9eb01?(_0xc2408d(),_0x2afb01([0x56,0x61,0x6c,0x69,0x64])):_0x2afb01(_0x26e67f-_0xa9eb01>(0x63ae0106^_0x3deeff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x5b2207)[_0x2afb01([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b2207(_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d8b31=0x47946b86^_0x3deeff;function _0xc2408d(){const _0x40eb45=_0x2afb01([0x6c,0x6c,0x63,0x74,0x2d])+_0x512854(_0x690b10(_0xc6929e)),_0x4e5435=_0x181be1(_0x512854(window[_0x2afb01([0x4d,0x61,0x74,0x68])][_0x2afb01([0x63,0x65,0x69,0x6c])](_0x26e67f/_0x4d8b31)));window[_0x2afb01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2afb01([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40eb45,_0x4e5435);}function _0xd7a31b(){const _0x336e2b=_0x2afb01([0x6c,0x6c,0x63,0x74,0x2d])+_0x512854(_0x690b10(_0xc6929e)),_0x43610f=window[_0x2afb01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2afb01([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x336e2b);return _0x43610f?window[_0x2afb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181be1(_0x43610f),0x10)*_0x4d8b31:null;}function _0x1189b6(_0x46fd47){return new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dbeaf,_0x24e82e)=>{_0x46fd47[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x1dbeaf,_0x24e82e),window[_0x2afb01([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24e82e,0x47a351c6^_0x3deeff);});}}_0x25c5e8[_0x2afb01([0x6f,0x6e])](_0x2afb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11af4f,_0x5a9175)=>{if(_0x5a9175[0x0]!=_0xc6929e)return _0x5b2207(_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a9175[0x1]={..._0x5a9175[0x1],[_0x2afb01([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42efad};},{[_0x2afb01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2afb01([0x68,0x69,0x67,0x68])}),_0x25c5e8[_0x2afb01([0x6f,0x6e])](_0x2afb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17489e=>{_0x515af0(_0x17489e[_0x2afb01([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50197e=!0x0,_0x12961e(_0x17489e[_0x2afb01([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2afb01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2afb01([0x6c,0x6f,0x77])}),_0x359139[_0x2afb01([0x74,0x68,0x65,0x6e])](()=>{_0x50197e||_0x5b2207(_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b61df(){return _0x25c5e8[_0x2afb01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afb01([0x76,0x69,0x65,0x77])][_0x2afb01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2afb01([0x61,0x75,0x74,0x6f]);}function _0x1e84d5(){_0x25c5e8[_0x2afb01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afb01([0x76,0x69,0x65,0x77])][_0x2afb01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2afb01([0x61,0x75,0x74,0x6f]);}}function _0x4aa733(_0x36e077){const _0x321c73=[new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cc71c=>setTimeout(_0x3cc71c,0x47abbbca^_0x3deeff)),_0x359139[_0x2afb01([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7a40=>{let _0x2d2293=0x0;_0x25c5e8[_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afb01([0x6f,0x6e])](_0x2afb01([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57a1a8,_0x3965eb)=>{_0x3965eb[0x0][_0x2afb01([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d2293++,_0x2d2293==(0x47a284fe^_0x3deeff)&&(_0x4b7a40(),_0x57a1a8[_0x2afb01([0x6f,0x66,0x66])]());});}))];return window[_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2afb01([0x72,0x61,0x63,0x65])](_0x321c73)[_0x2afb01([0x74,0x68,0x65,0x6e])](()=>_0x36e077);}async function _0x36d429(){await _0x359139,_0x25c5e8[_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afb01([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22978d,_0x25c5e8[_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afb01([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22978d,_0x25c5e8[_0x2afb01([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fd9e9(_0x23448d){const _0x1e07a1=_0x51c9cf();_0x25c5e8[_0x1e07a1]=_0x2afb01([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23448d,_0x23448d!=_0x2afb01([0x56,0x61,0x6c,0x69,0x64])&&_0x36d429();}function _0x51c9cf(){const _0x5df055=window[_0x2afb01([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2afb01([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2afb01([0x6e,0x6f,0x77])]())[_0x2afb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2afb01([0x2e]),'');let _0x22ff1f=_0x2afb01([0x75]);for(let _0x3afea5=0x0;_0x3afea5<_0x5df055[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3afea5+=0x2){let _0x59d8df=window[_0x2afb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5df055[_0x2afb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3afea5,_0x3afea5+0x2));_0x59d8df>=_0x1993e3[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59d8df-=_0x1993e3[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22ff1f+=_0x1993e3[_0x59d8df];}return _0x22ff1f;}function _0x2f1571(){const _0x499ec2=_0x13fe8e[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e]));if(0x3!=_0x499ec2[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2949d5(_0x499ec2[0x1]);function _0x2949d5(_0x4e749c){const _0xfee57b=_0x699580(_0x4e749c);return _0xfee57b&&_0x59a9bd()?_0xfee57b:null;function _0x59a9bd(){const _0xb3454a=_0xfee57b[_0x2afb01([0x6a,0x74,0x69])],_0x5ce422=window[_0x2afb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb3454a[_0x2afb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb3454a[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x248980={..._0xfee57b,[_0x2afb01([0x6a,0x74,0x69])]:_0xb3454a[_0x2afb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb3454a[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x248980[_0x2afb01([0x76,0x63])],_0x690b10(_0x248980)==_0x5ce422;}}}async function _0x18a895(){let _0x57cc5e=!0x0;try{const _0x19e9a4=_0x13fe8e[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e])),[_0x371bfe,_0x49c427,_0x5d2550]=_0x19e9a4;return _0x589303(_0x371bfe),await _0x19eb18(_0x371bfe,_0x49c427,_0x5d2550),_0x57cc5e;}catch{return!0x1;}function _0x589303(_0x54df96){const _0xb3b2ef=_0x699580(_0x54df96);_0xb3b2ef&&_0xb3b2ef[_0x2afb01([0x61,0x6c,0x67])]==_0x2afb01([0x45,0x53,0x32,0x35,0x36])||(_0x57cc5e=!0x1);}async function _0x19eb18(_0x976bd4,_0x22dc0d,_0x488a25){const _0x459ab9=window[_0x2afb01([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2afb01([0x66,0x72,0x6f,0x6d])](_0x527e4e(_0x488a25),_0x2fe558=>_0x2fe558[_0x2afb01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34d7cd=new window[(_0x2afb01([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2afb01([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x976bd4+_0x2afb01([0x2e])+_0x22dc0d),_0x22b941=window[_0x2afb01([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2afb01([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22b941)return;const _0x5f4dd2=await _0x22b941[_0x2afb01([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2afb01([0x6a,0x77,0x6b]),_0x6698e0,{[_0x2afb01([0x6e,0x61,0x6d,0x65])]:_0x2afb01([0x45,0x43,0x44,0x53,0x41]),[_0x2afb01([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2afb01([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2afb01([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22b941[_0x2afb01([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2afb01([0x6e,0x61,0x6d,0x65])]:_0x2afb01([0x45,0x43,0x44,0x53,0x41]),[_0x2afb01([0x68,0x61,0x73,0x68])]:{[_0x2afb01([0x6e,0x61,0x6d,0x65])]:_0x2afb01([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f4dd2,_0x459ab9,_0x34d7cd)||(_0x57cc5e=!0x1);}}function _0x699580(_0x46cbb9){return _0x46cbb9[_0x2afb01([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2afb01([0x65,0x79]))?JSON[_0x2afb01([0x70,0x61,0x72,0x73,0x65])](_0x527e4e(_0x46cbb9)):null;}function _0x527e4e(_0x5062c8){return window[_0x2afb01([0x61,0x74,0x6f,0x62])](_0x5062c8[_0x2afb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2afb01([0x2b]))[_0x2afb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2afb01([0x2f])));}function _0x690b10(_0x14eaa6){let _0x74b46f=0x1505;function _0x52c022(_0x2d151f){for(let _0xe1e153=0x0;_0xe1e153<_0x2d151f[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe1e153++){const _0x2b9b47=_0x2d151f[_0x2afb01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe1e153);_0x74b46f=(_0x74b46f<<0x5)+_0x74b46f+_0x2b9b47,_0x74b46f&=_0x74b46f;}}function _0x191c57(_0x2e0657){Array[_0x2afb01([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e0657)?_0x2e0657[_0x2afb01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x191c57):_0x2e0657&&typeof _0x2e0657==_0x2afb01([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2afb01([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e0657)[_0x2afb01([0x73,0x6f,0x72,0x74])]()[_0x2afb01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bd710,_0x25e0c6])=>{_0x52c022(_0x2bd710),_0x191c57(_0x25e0c6);}):_0x52c022(window[_0x2afb01([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e0657));}return _0x191c57(_0x14eaa6),_0x74b46f>>>0x0;}function _0x512854(_0x40c0af){return _0x40c0af[_0x2afb01([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2afb01([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2afb01([0x30]));}function _0x181be1(_0x3b97d9){return _0x3b97d9[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2afb01([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2afb01([0x6a,0x6f,0x69,0x6e])]('');}function _0x22978d(){}function _0x2afb01(_0x2b7666){return _0x2b7666['map'](_0x10f5da=>String['fromCharCode'](_0x10f5da))['join']('');}_0x2fd9e9(await _0x261bff());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5719f3){const {plugins:_0x1a4d2e,editing:_0x24865e,model:_0x3b9814}=this['editor'],_0x559ec9=_0x1a4d2e['get'](_0x3a1e97)['getFootnote'](_0x5719f3);return!!_0x559ec9&&(_0x3b9814['change'](_0x364056=>{_0x364056['setSelection'](_0x364056['createPositionAt'](_0x559ec9['definition'],'end'));}),_0x24865e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5b700d){const {plugins:_0x38995a,editing:_0x402bc1,model:_0x12f4a1}=this['editor'],_0x1f628b=_0x38995a['get'](_0x3a1e97)['getFootnote'](_0x5b700d);return!!_0x1f628b&&(_0x12f4a1['change'](_0x3e5cbc=>{_0x3e5cbc['setSelection'](_0x1f628b['reference'],'on');}),_0x402bc1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x56ab6d}=this['editor']['model'],_0x24fde7=this['editor']['config']['get']('footnotes.multiBlock');_0x56ab6d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x56ab6d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x56ab6d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x24fde7?_0x56ab6d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x56ab6d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x56ab6d['addChildCheck'](_0x47a324=>{for(const _0x25035b of _0x47a324)if('footnoteDefinition'===_0x25035b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4c7564}=this,{conversion:_0x3d4f60,editing:_0x2b45ee}=_0x4c7564,{t:t}=_0x4c7564['locale'];_0x3d4f60['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x34b9ce,{writer:_0x53694f,consumable:_0xb537a2})=>{const _0x3a5845=_0x34b9ce['getChild'](0x0);if(!_0x3a5845||!_0x3a5845['is']('element','a'))return null;const _0x34638f=_0x3a5845['getAttribute']('href')||'';if(!_0x34638f['startsWith']('#'))return null;const _0x10c042=_0x34638f['replace'](/^#/,'');if(!_0x10c042)return null;_0xb537a2['consume'](_0x3a5845,{'name':!0x0,'attributes':['href']});for(const {item:_0x15b71b}of _0x2b45ee['view']['createRangeIn'](_0x3a5845))_0x15b71b['is']('$textProxy')?_0xb537a2['consume'](_0x15b71b['textNode'],{'name':!0x0}):_0x15b71b['is']('element')&&_0xb537a2['consume'](_0x15b71b,{'name':!0x0});return _0x53694f['createElement']('footnoteRef',{'footnoteId':_0x10c042});}}),_0x3d4f60['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x204cdf,{writer:_0x2993e3})=>D(_0x204cdf,_0x2993e3)}),_0x3d4f60['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1e1d3d,{writer:_0x13eb8f})=>{const _0x2edcb1=_0x1e1d3d['getAttribute']('footnoteCounter');return _0x128ba6(D(_0x1e1d3d,_0x13eb8f),_0x13eb8f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2edcb1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c5a7f}=this,{t:t}=_0x4c5a7f['locale'],{conversion:_0x180e33}=_0x4c5a7f;_0x180e33['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x180e33['for']('upcast')['add'](_0x3b07d6=>{_0x3b07d6['on']('element:ol',(_0x33a125,_0x58dd9e,_0xc424d6)=>{const _0x27bf9c=_0x58dd9e['viewItem'];if(!_0x27bf9c['hasClass']('footnotes-list')||!_0x58dd9e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xc424d6['consumable']['consume'](_0x27bf9c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x46ee68,modelCursor:_0x44c807}=_0xc424d6['convertChildren'](_0x58dd9e['viewItem'],_0x58dd9e['modelCursor']);_0x58dd9e['modelRange']=_0x46ee68,_0x58dd9e['modelCursor']=_0x44c807;}),_0x3b07d6['on']('element:hr',(_0x59121b,_0x146a45,_0x26828f)=>{const _0x557e09=_0x146a45['viewItem'];_0x557e09['hasClass']('footnotes-divider')&&_0x146a45['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x26828f['consumable']['consume'](_0x557e09,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x180e33['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4accf0,{writer:_0x19395c})=>v(_0x19395c)}),_0x180e33['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x488c48,{writer:_0x4e91f5})=>{const _0x3087f=v(_0x4e91f5,{'data-footnotes-list-label':t('Footnotes')}),_0x22beb6=_0x128ba6(_0x3087f,_0x4e91f5,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4e91f5['setCustomProperty']('footnotesDefinitions',!0x0,_0x22beb6),_0x22beb6;}});}['_defineDefinitionConverters'](){const {editor:_0xe32047}=this,{conversion:_0x157367,locale:_0x205fba}=_0xe32047,_0xbf7827=_0xe32047['config']['get']('footnotes.multiBlock');_0x157367['for']('upcast')['add'](_0x5a5c6f=>{_0x5a5c6f['on']('element:li',(_0x37de58,_0x1afde8,_0x577c89)=>{const _0x49eb92=_0x1afde8['viewItem'];if(!_0x49eb92['hasClass']('footnote-definition')||!_0x49eb92['getAttribute']('id'))return;const _0x137dca=_0x49eb92['parent'];if(!_0x137dca['is']('element','ol')||!_0x137dca['hasClass']('footnotes-list'))return;if(!_0x577c89['consumable']['test'](_0x49eb92,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xd9a4ce=_0x577c89['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x49eb92['getAttribute']('id')});if(!_0x577c89['safeInsert'](_0xd9a4ce,_0x1afde8['modelCursor']))return;_0x577c89['consumable']['consume'](_0x49eb92,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4fd3a7=Array['from'](_0x49eb92['getChildren']())['find'](_0x21e76c=>_0x21e76c['is']('element')&&_0x21e76c['hasClass']('footnote-content'));for(const _0x1d1a9a of _0x49eb92['getChildren']())_0x1d1a9a['is']('element')&&(_0x577c89['consumable']['consume'](_0x1d1a9a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x577c89['consumable']['consume'](_0x1d1a9a,{'name':!0x0,'classes':'footnote-content'}));if(_0x4fd3a7){if(_0xbf7827)_0x577c89['convertChildren'](_0x4fd3a7,_0xd9a4ce);else{const _0x1f367c=_0x577c89['writer']['createElement']('footnoteInlineContent');_0x577c89['writer']['insert'](_0x1f367c,_0xd9a4ce),_0x577c89['convertChildren'](_0x4fd3a7,_0x1f367c);}}_0x577c89['updateConversionResult'](_0xd9a4ce,_0x1afde8);});}),_0x157367['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1bdc5a,{writer:_0x2f0a0a})=>b(_0x1bdc5a,_0x2f0a0a,_0x205fba,{'dataPipeline':!0x0})}),_0x157367['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2d3d17,{writer:_0x2f3abc})=>b(_0x2d3d17,_0x2f3abc,_0x205fba)});}['_defineBogusParagraphConverters'](){const {editor:_0x14c725}=this,{conversion:_0x1106d6}=_0x14c725;_0x14c725['config']['get']('footnotes.multiBlock')?(_0x1106d6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1106d6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x14c725['model']['document'],'change:data',()=>{!function(_0x2478e6,_0x6af91d){const _0x503286=_0x2478e6['document']['differ'],_0x57c04f=new Set();for(const _0x4eaa7b of _0x503286['getChanges']()){const _0x3c1264='attribute'==_0x4eaa7b['type']?_0x4eaa7b['range']['start']['parent']:_0x4eaa7b['position']['parent'];_0x3c1264['is']('element','footnoteDefinition')&&_0x57c04f['add'](_0x3c1264);}for(const _0x3e5ec9 of _0x57c04f['values']()){const _0x1b9cac=Array['from'](_0x3e5ec9['getChildren']())['filter'](_0x494578=>g(_0x494578,_0x6af91d['mapper']));for(const _0x100b98 of _0x1b9cac)_0x6af91d['reconvertItem'](_0x100b98);}}(_0x14c725['model'],_0x14c725['editing']);})):(_0x1106d6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1106d6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1c9da3,{writer:_0x582c88})=>{const _0x284bbb=_0x582c88['createContainerElement']('span');return _0x582c88['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x284bbb),_0x284bbb;}}));}['_defineKeyboardHandlers'](){const {editor:_0x307ec4}=this,{editing:_0x410fdc,t:t}=_0x307ec4,_0xaf0912=_0x307ec4['model']['document']['selection'];_0x307ec4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x307ec4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x410fdc['view']['document'],'enter',(_0x5204e5,_0x41b252)=>{const _0x307536=function(_0x59edbe){const _0x4f955f=_0x59edbe['getSelectedElement']();if(_0x4f955f?.['is']('element','footnoteRef'))return _0x4f955f;return null;}(_0xaf0912);if(_0x307536){const _0x303a61=_0x307536['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x303a61),_0x41b252['preventDefault'](),_0x5204e5['stop']();}},{'context':_0x466f3a});}['_defineClickHandlers'](){const {editor:_0x511497}=this,{editing:_0x113ae6}=_0x511497;_0x511497['editing']['view']['addObserver'](_0x4d3417),_0x511497['editing']['view']['addObserver'](_0x47ac07);let _0x8c8d92=!0x1;this['listenTo'](_0x113ae6['view']['document'],'pointerdown',(_0x48ab9b,_0x509a8c)=>{const {target:_0x1aa57e}=_0x509a8c,_0x5b9311=_0x113ae6['view']['document']['selection'];_0x8c8d92=!!(_0x1aa57e?.['is']('element','a')&&_0x1aa57e['parent']?.['is']('element','sup')&&_0x1aa57e['parent']['hasClass']('footnote'))&&_0x5b9311['getSelectedElement']()===_0x1aa57e['parent'];},{'priority':'high'}),this['listenTo'](_0x113ae6['view']['document'],'click',(_0x52cb69,_0x4e17e5)=>{const {target:_0x5ed233}=_0x4e17e5;if(!_0x5ed233?.['is']('element','a'))return;if(_0x5ed233['parent']?.['is']('element','sup')&&_0x5ed233['parent']['hasClass']('footnote')&&!_0x8c8d92)return void _0x4e17e5['preventDefault']();let _0x51944f=_0x5ed233['getAttribute']('href');if(!_0x51944f?.['startsWith']('#'))return;_0x51944f=_0x51944f['slice'](0x1);let _0x3c1429=!0x1;(_0x51944f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x51944f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x51944f))&&(_0x3c1429=!0x0),_0x3c1429&&(_0x4e17e5['preventDefault'](),_0x52cb69['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x37b2b9}={}){return(_0x24b042,{writer:_0x3c6958})=>{if(!p(_0x24b042))return null;if(!_0x37b2b9)return _0x3c6958['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xcabd66=_0x3c6958['createContainerElement']('p');return _0x3c6958['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xcabd66),_0xcabd66;};}function p(_0x136ca1){const {parent:_0x4f48da}=_0x136ca1;if(!_0x4f48da?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f48da['childCount'])return!0x1;for(const _0x44f891 of _0x136ca1['getAttributeKeys']())if(!_0x44f891['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x44f891)return!0x1;return!0x0;}function g(_0x1fd6b7,_0x412113){if(!_0x1fd6b7['is']('element','paragraph'))return!0x1;const _0x44e6d2=_0x412113['toViewElement'](_0x1fd6b7);return!!_0x44e6d2&&p(_0x1fd6b7)!==_0x44e6d2['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4319a5){return _0x466f3a(_0x4319a5)&&_0x4319a5['is']('containerElement')&&!!_0x4319a5['getCustomProperty']('footnotesDefinitions');}function v(_0xbfd9aa,_0x5d9ced={}){const _0x531f2b=_0xbfd9aa['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4568d3=_0xbfd9aa['createContainerElement']('ol',{'class':'footnotes-list'},_0xbfd9aa['createSlot']());return _0xbfd9aa['createContainerElement']('div',{'class':'footnotes',..._0x5d9ced},[_0x531f2b,_0x4568d3]);}function D(_0x4cd22f,_0x32d885){const _0x4ee6f0=_0x4cd22f['getAttribute']('footnoteId'),_0x793a7f=_0x4cd22f['getAttribute']('footnoteCounter'),_0x5ad400=_0x32d885['createUIElement']('a',{'href':'#'+_0x4ee6f0},function(_0x1eb7d2){const _0x57aebe=this['toDomElement'](_0x1eb7d2);return _0x57aebe['textContent']=_0x793a7f,_0x57aebe;}),_0x311564=_0x32d885['createContainerElement']('sup',{'id':'ref-'+_0x4ee6f0,'class':'footnote'},[_0x5ad400]);return _0x311564['getFillerOffset']=()=>null,_0x311564;}function b(_0xbe68b3,_0x2e15fe,_0x538c30,{dataPipeline:_0x278ab7}={}){const {t:t}=_0x538c30,_0x49fa35=_0xbe68b3['getAttribute']('footnoteId'),_0x349017=_0x2e15fe['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x49fa35},function(_0x325f09){const _0x4c9c7c=this['toDomElement'](_0x325f09);return _0x4c9c7c['innerText']='^',_0x4c9c7c;}),_0x510d31=_0x278ab7?_0x2e15fe['createContainerElement']('div',{'class':'footnote-content'}):_0x56c853(_0x2e15fe['createEditableElement']('div',{'class':'footnote-content'}),_0x2e15fe,{'label':t('Footnote\x20content.')});return _0x2e15fe['insert'](_0x2e15fe['createPositionAt'](_0x510d31,0x0),_0x2e15fe['createSlot']()),_0x2e15fe['createContainerElement']('li',{'class':'footnote-definition','id':_0x49fa35},[_0x349017,_0x510d31]);}
23
+ import{Plugin as _0x1192ba}from'ckeditor5/src/core.js';import{isWidget as _0x76c9e7,toWidget as _0x2d459c,toWidgetEditable as _0x408522}from'ckeditor5/src/widget.js';import{uid as _0x2205e7}from'ckeditor5/src/utils.js';import{PointerObserver as _0x127257,ClickObserver as _0x4a6a69}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x12962d}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2ccf20}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1192ba{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x12962d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2988fa}=this;_0x2988fa['config']['define']('footnotes.multiBlock',!0x0),_0x2988fa['commands']['add']('insertFootnote',new _0x2ccf20(_0x2988fa)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1d30f2){const _0x1381be=_0x1f962c([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]),_0x4fab72=0x47a28506,_0x2599d2=0x47a5ffae^_0x4fab72,_0x5c2dfe=window[_0x1f962c([0x44,0x61,0x74,0x65])][_0x1f962c([0x6e,0x6f,0x77])](),_0x262c63=_0x1d30f2[_0x1f962c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ae08e=new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd2e3=>{_0x262c63[_0x1f962c([0x6f,0x6e,0x63,0x65])](_0x1f962c([0x72,0x65,0x61,0x64,0x79]),_0x1cd2e3);}),_0x3d3131={[_0x1f962c([0x6b,0x74,0x79])]:_0x1f962c([0x45,0x43]),[_0x1f962c([0x75,0x73,0x65])]:_0x1f962c([0x73,0x69,0x67]),[_0x1f962c([0x63,0x72,0x76])]:_0x1f962c([0x50,0x2d,0x32,0x35,0x36]),[_0x1f962c([0x78])]:_0x1f962c([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]),[_0x1f962c([0x79])]:_0x1f962c([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]),[_0x1f962c([0x61,0x6c,0x67])]:_0x1f962c([0x45,0x53,0x32,0x35,0x36])},_0x1fdce2=_0x262c63[_0x1f962c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f962c([0x67,0x65,0x74])](_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x16ed8c(){let _0x5b3097,_0x3b7fe7=null,_0x57043f=null;try{if(_0x1fdce2==_0x1f962c([0x47,0x50,0x4c]))return _0x1f962c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b3097=_0x2de944(),!_0x5b3097)return _0x1f962c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b3097[_0x1f962c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57043f=_0x5cff99(_0x5b3097[_0x1f962c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b3097[_0x1f962c([0x6a,0x74,0x69])])),await _0x5b1c83()?_0x45da6e()?_0x59557a()?_0x1f962c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44fbdf()?(_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f962c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b7fe7=_0x5c93b2(_0x1f962c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f962c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b7fe7=_0x5c93b2(_0x1f962c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56bfe1()):_0x1f962c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f962c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f962c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f962c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59557a(){const _0x3d7433=[_0x1f962c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f962c([0x74,0x72,0x69,0x61,0x6c])][_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c2dfe/0x3e8:0xe10*_0x2599d2;return _0x5b3097[_0x1f962c([0x65,0x78,0x70])]<_0x3d7433;}function _0x45da6e(){const _0x22ae9e=_0x5b3097[_0x1f962c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22ae9e&&(!!_0x22ae9e[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f962c([0x2a]))||!!_0x22ae9e[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f962c([0x46,0x4f,0x4f])));}function _0x44fbdf(){const _0xb75be=_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb75be||0x0==_0xb75be[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c1996}=new URL(window[_0x1f962c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb75be[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c1996))return!0x0;const _0x221ad4=_0x1c1996[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e]));return _0xb75be[_0x1f962c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1edc11=>_0x1edc11[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f962c([0x2a])))[_0x1f962c([0x6d,0x61,0x70])](_0x38df03=>_0x38df03[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e])))[_0x1f962c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bf871=>_0x3bf871[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x221ad4[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f962c([0x6d,0x61,0x70])](_0x3dbe19=>Array(_0x221ad4[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3dbe19[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f962c([0x66,0x69,0x6c,0x6c])](_0x3dbe19[0x0]===_0x1f962c([0x2a])?_0x1f962c([0x2a]):'')[_0x1f962c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3dbe19))[_0x1f962c([0x73,0x6f,0x6d,0x65])](_0x414da2=>_0x221ad4[_0x1f962c([0x65,0x76,0x65,0x72,0x79])]((_0x30b9db,_0x4c296d)=>_0x414da2[_0x4c296d]===_0x30b9db||_0x414da2[_0x4c296d]===_0x1f962c([0x2a])));}function _0x56bfe1(){return _0x3b7fe7&&_0x57043f?new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f87ca,_0x2f06cf)=>{_0x3b7fe7[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x2f87ca,_0x2f06cf),_0x57043f[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x4da0e=>{_0x4da0e!=_0x1f962c([0x56,0x61,0x6c,0x69,0x64])&&_0x2f87ca(_0x4da0e);},_0x2f06cf);}):_0x3b7fe7||_0x57043f||_0x1f962c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cff99(_0x134c42,_0x4ae1af){return new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27056a=>{if(_0x381cb0())return _0x27056a(_0x1f962c([0x56,0x61,0x6c,0x69,0x64]));_0x69ace4(),_0x262c63[_0x1f962c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f962c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x172f7e=!0x1;const _0x8535e0=_0x2205e7();function _0x568bc0(_0x4efe0b){return!!_0x4efe0b&&(typeof _0x4efe0b===_0x1f962c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4efe0b===_0x1f962c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4efe0b[_0x1f962c([0x74,0x68,0x65,0x6e])]===_0x1f962c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4efe0b[_0x1f962c([0x63,0x61,0x74,0x63,0x68])]===_0x1f962c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ba382(_0x3d78d4){_0x298645(_0x3d78d4)[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x42456a=>{if(!_0x42456a||_0x42456a[_0x1f962c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f962c([0x6f,0x6b]))return _0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20a12a(_0x2b8797(_0x8535e0+_0x4ae1af))!=_0x42456a[_0x1f962c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f962c([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x1a1d74=>(_0x55f786(),_0x1a1d74),()=>{const _0x580a7c=_0x5e6e64();return null==_0x580a7c?(_0x55f786(),_0x1f962c([0x56,0x61,0x6c,0x69,0x64])):_0x1f962c(_0x5c2dfe-_0x580a7c>(0x63ae0106^_0x4fab72)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x27056a)[_0x1f962c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27056a(_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35512f=0x47946b86^_0x4fab72;function _0x55f786(){const _0x34a9ba=_0x1f962c([0x6c,0x6c,0x63,0x74,0x2d])+_0x20a12a(_0x2b8797(_0x134c42)),_0x1a4207=_0x1aa356(_0x20a12a(window[_0x1f962c([0x4d,0x61,0x74,0x68])][_0x1f962c([0x63,0x65,0x69,0x6c])](_0x5c2dfe/_0x35512f)));window[_0x1f962c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f962c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34a9ba,_0x1a4207);}function _0x5e6e64(){const _0x14a77c=_0x1f962c([0x6c,0x6c,0x63,0x74,0x2d])+_0x20a12a(_0x2b8797(_0x134c42)),_0x568da6=window[_0x1f962c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f962c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14a77c);return _0x568da6?window[_0x1f962c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aa356(_0x568da6),0x10)*_0x35512f:null;}function _0x298645(_0xf3e79e){return new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43b7a1,_0x5436ed)=>{_0xf3e79e[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x43b7a1,_0x5436ed),window[_0x1f962c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5436ed,0x47a351c6^_0x4fab72);});}}_0x262c63[_0x1f962c([0x6f,0x6e])](_0x1f962c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x376d8c,_0x4948cd)=>{if(_0x4948cd[0x0]!=_0x134c42)return _0x27056a(_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4948cd[0x1]={..._0x4948cd[0x1],[_0x1f962c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8535e0};},{[_0x1f962c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f962c([0x68,0x69,0x67,0x68])}),_0x262c63[_0x1f962c([0x6f,0x6e])](_0x1f962c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x231552=>{_0x568bc0(_0x231552[_0x1f962c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x172f7e=!0x0,_0x5ba382(_0x231552[_0x1f962c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f962c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f962c([0x6c,0x6f,0x77])}),_0x4ae08e[_0x1f962c([0x74,0x68,0x65,0x6e])](()=>{_0x172f7e||_0x27056a(_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x381cb0(){return _0x262c63[_0x1f962c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f962c([0x76,0x69,0x65,0x77])][_0x1f962c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f962c([0x61,0x75,0x74,0x6f]);}function _0x69ace4(){_0x262c63[_0x1f962c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f962c([0x76,0x69,0x65,0x77])][_0x1f962c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f962c([0x61,0x75,0x74,0x6f]);}}function _0x5c93b2(_0x3c7f28){const _0x4785da=[new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d90ea=>setTimeout(_0x5d90ea,0x47abbbca^_0x4fab72)),_0x4ae08e[_0x1f962c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51e59b=>{let _0xd63082=0x0;_0x262c63[_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f962c([0x6f,0x6e])](_0x1f962c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34d4ec,_0x2a6d84)=>{_0x2a6d84[0x0][_0x1f962c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd63082++,_0xd63082==(0x47a284fe^_0x4fab72)&&(_0x51e59b(),_0x34d4ec[_0x1f962c([0x6f,0x66,0x66])]());});}))];return window[_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f962c([0x72,0x61,0x63,0x65])](_0x4785da)[_0x1f962c([0x74,0x68,0x65,0x6e])](()=>_0x3c7f28);}async function _0x1404bb(){await _0x4ae08e,_0x262c63[_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f962c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ae154,_0x262c63[_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f962c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ae154,_0x262c63[_0x1f962c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20ef46(_0x49a4b4){const _0x58a0d3=_0x15dde2();_0x262c63[_0x58a0d3]=_0x1f962c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49a4b4,_0x49a4b4!=_0x1f962c([0x56,0x61,0x6c,0x69,0x64])&&_0x1404bb();}function _0x15dde2(){const _0x16bd56=window[_0x1f962c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f962c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f962c([0x6e,0x6f,0x77])]())[_0x1f962c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f962c([0x2e]),'');let _0x1ecebd=_0x1f962c([0x75]);for(let _0x372b81=0x0;_0x372b81<_0x16bd56[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x372b81+=0x2){let _0x5704ee=window[_0x1f962c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16bd56[_0x1f962c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x372b81,_0x372b81+0x2));_0x5704ee>=_0x1381be[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5704ee-=_0x1381be[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ecebd+=_0x1381be[_0x5704ee];}return _0x1ecebd;}function _0x2de944(){const _0x31f169=_0x1fdce2[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e]));if(0x3!=_0x31f169[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f4a44(_0x31f169[0x1]);function _0x1f4a44(_0x33ea6f){const _0x294477=_0x40c5a3(_0x33ea6f);return _0x294477&&_0x275e54()?_0x294477:null;function _0x275e54(){const _0x214a9d=_0x294477[_0x1f962c([0x6a,0x74,0x69])],_0x240ba1=window[_0x1f962c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x214a9d[_0x1f962c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x214a9d[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5882b5={..._0x294477,[_0x1f962c([0x6a,0x74,0x69])]:_0x214a9d[_0x1f962c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x214a9d[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5882b5[_0x1f962c([0x76,0x63])],_0x2b8797(_0x5882b5)==_0x240ba1;}}}async function _0x5b1c83(){let _0x3f1103=!0x0;try{const _0x408238=_0x1fdce2[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e])),[_0x56643b,_0x1e6828,_0x2be0da]=_0x408238;return _0x52a5dd(_0x56643b),await _0x2f27c6(_0x56643b,_0x1e6828,_0x2be0da),_0x3f1103;}catch{return!0x1;}function _0x52a5dd(_0x4eb7c1){const _0x5e8bf9=_0x40c5a3(_0x4eb7c1);_0x5e8bf9&&_0x5e8bf9[_0x1f962c([0x61,0x6c,0x67])]==_0x1f962c([0x45,0x53,0x32,0x35,0x36])||(_0x3f1103=!0x1);}async function _0x2f27c6(_0x567664,_0x3b0f99,_0x3d0579){const _0x1891dd=window[_0x1f962c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f962c([0x66,0x72,0x6f,0x6d])](_0x534c7f(_0x3d0579),_0x48c177=>_0x48c177[_0x1f962c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a8fcf=new window[(_0x1f962c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f962c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x567664+_0x1f962c([0x2e])+_0x3b0f99),_0xeaa36a=window[_0x1f962c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f962c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xeaa36a)return;const _0x50b774=await _0xeaa36a[_0x1f962c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f962c([0x6a,0x77,0x6b]),_0x3d3131,{[_0x1f962c([0x6e,0x61,0x6d,0x65])]:_0x1f962c([0x45,0x43,0x44,0x53,0x41]),[_0x1f962c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f962c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f962c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xeaa36a[_0x1f962c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f962c([0x6e,0x61,0x6d,0x65])]:_0x1f962c([0x45,0x43,0x44,0x53,0x41]),[_0x1f962c([0x68,0x61,0x73,0x68])]:{[_0x1f962c([0x6e,0x61,0x6d,0x65])]:_0x1f962c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50b774,_0x1891dd,_0x1a8fcf)||(_0x3f1103=!0x1);}}function _0x40c5a3(_0x27159e){return _0x27159e[_0x1f962c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f962c([0x65,0x79]))?JSON[_0x1f962c([0x70,0x61,0x72,0x73,0x65])](_0x534c7f(_0x27159e)):null;}function _0x534c7f(_0x7ca32e){return window[_0x1f962c([0x61,0x74,0x6f,0x62])](_0x7ca32e[_0x1f962c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f962c([0x2b]))[_0x1f962c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f962c([0x2f])));}function _0x2b8797(_0x14925a){let _0x51d902=0x1505;function _0x272c51(_0x246e8a){for(let _0x2c0fd6=0x0;_0x2c0fd6<_0x246e8a[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c0fd6++){const _0x5e1e41=_0x246e8a[_0x1f962c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c0fd6);_0x51d902=(_0x51d902<<0x5)+_0x51d902+_0x5e1e41,_0x51d902&=_0x51d902;}}function _0x81676f(_0x15cea2){Array[_0x1f962c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15cea2)?_0x15cea2[_0x1f962c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x81676f):_0x15cea2&&typeof _0x15cea2==_0x1f962c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f962c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15cea2)[_0x1f962c([0x73,0x6f,0x72,0x74])]()[_0x1f962c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9c833c,_0x5c422e])=>{_0x272c51(_0x9c833c),_0x81676f(_0x5c422e);}):_0x272c51(window[_0x1f962c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15cea2));}return _0x81676f(_0x14925a),_0x51d902>>>0x0;}function _0x20a12a(_0x57feff){return _0x57feff[_0x1f962c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f962c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f962c([0x30]));}function _0x1aa356(_0x5a4295){return _0x5a4295[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f962c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f962c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ae154(){}function _0x1f962c(_0xa0c484){return _0xa0c484['map'](_0x44b9b8=>String['fromCharCode'](_0x44b9b8))['join']('');}_0x20ef46(await _0x16ed8c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x12dec6){const {plugins:_0x49187f,editing:_0x31ea60,model:_0x266ac6}=this['editor'],_0x1301b9=_0x49187f['get'](_0x12962d)['getFootnote'](_0x12dec6);return!!_0x1301b9&&(_0x266ac6['change'](_0x63e937=>{_0x63e937['setSelection'](_0x63e937['createPositionAt'](_0x1301b9['definition'],'end'));}),_0x31ea60['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2cc4ae){const {plugins:_0x1244ed,editing:_0x9a5071,model:_0x95b653}=this['editor'],_0x40545f=_0x1244ed['get'](_0x12962d)['getFootnote'](_0x2cc4ae);return!!_0x40545f&&(_0x95b653['change'](_0x42c080=>{_0x42c080['setSelection'](_0x40545f['reference'],'on');}),_0x9a5071['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x52c2f2}=this['editor']['model'],_0x2aa41e=this['editor']['config']['get']('footnotes.multiBlock');_0x52c2f2['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x52c2f2['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x52c2f2['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2aa41e?_0x52c2f2['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x52c2f2['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x52c2f2['addChildCheck'](_0xcc64cd=>{for(const _0x30f6f7 of _0xcc64cd)if('footnoteDefinition'===_0x30f6f7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b32a2}=this,{conversion:_0x1236ac,editing:_0x2bab16}=_0x2b32a2,{t:t}=_0x2b32a2['locale'];_0x1236ac['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x50db41,{writer:_0x341169,consumable:_0x7bd141})=>{const _0x552a42=_0x50db41['getChild'](0x0);if(!_0x552a42||!_0x552a42['is']('element','a'))return null;const _0x313222=_0x552a42['getAttribute']('href')||'';if(!_0x313222['startsWith']('#'))return null;const _0x4fedab=_0x313222['replace'](/^#/,'');if(!_0x4fedab)return null;_0x7bd141['consume'](_0x552a42,{'name':!0x0,'attributes':['href']});for(const {item:_0x31ddfc}of _0x2bab16['view']['createRangeIn'](_0x552a42))_0x31ddfc['is']('$textProxy')?_0x7bd141['consume'](_0x31ddfc['textNode'],{'name':!0x0}):_0x31ddfc['is']('element')&&_0x7bd141['consume'](_0x31ddfc,{'name':!0x0});return _0x341169['createElement']('footnoteRef',{'footnoteId':_0x4fedab});}}),_0x1236ac['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1190c1,{writer:_0x8d4d47})=>D(_0x1190c1,_0x8d4d47)}),_0x1236ac['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x38c0b0,{writer:_0x1b0da0})=>{const _0x3e2767=_0x38c0b0['getAttribute']('footnoteCounter');return _0x2d459c(D(_0x38c0b0,_0x1b0da0),_0x1b0da0,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3e2767)});}});}['_defineDefinitionsConverters'](){const {editor:_0x28c6e6}=this,{t:t}=_0x28c6e6['locale'],{conversion:_0x33d69b}=_0x28c6e6;_0x33d69b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x33d69b['for']('upcast')['add'](_0x969e5=>{_0x969e5['on']('element:ol',(_0x3264bd,_0x298255,_0x403e1a)=>{const _0x5e7e80=_0x298255['viewItem'];if(!_0x5e7e80['hasClass']('footnotes-list')||!_0x298255['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x403e1a['consumable']['consume'](_0x5e7e80,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x203b7c,modelCursor:_0x3a1541}=_0x403e1a['convertChildren'](_0x298255['viewItem'],_0x298255['modelCursor']);_0x298255['modelRange']=_0x203b7c,_0x298255['modelCursor']=_0x3a1541;}),_0x969e5['on']('element:hr',(_0x5d3190,_0x5a0bc7,_0x5370a1)=>{const _0x944014=_0x5a0bc7['viewItem'];_0x944014['hasClass']('footnotes-divider')&&_0x5a0bc7['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5370a1['consumable']['consume'](_0x944014,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x33d69b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1b3454,{writer:_0x14bd18})=>v(_0x14bd18)}),_0x33d69b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5d03e3,{writer:_0x21d095})=>{const _0x2877be=v(_0x21d095,{'data-footnotes-list-label':t('Footnotes')}),_0x158199=_0x2d459c(_0x2877be,_0x21d095,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x21d095['setCustomProperty']('footnotesDefinitions',!0x0,_0x158199),_0x158199;}});}['_defineDefinitionConverters'](){const {editor:_0x41883f}=this,{conversion:_0xf1b775,locale:_0x28d2b8}=_0x41883f,_0x51f450=_0x41883f['config']['get']('footnotes.multiBlock');_0xf1b775['for']('upcast')['add'](_0x4bde67=>{_0x4bde67['on']('element:li',(_0xc555b,_0x45bf09,_0x4a0f04)=>{const _0x3a02a1=_0x45bf09['viewItem'];if(!_0x3a02a1['hasClass']('footnote-definition')||!_0x3a02a1['getAttribute']('id'))return;const _0x36cee3=_0x3a02a1['parent'];if(!_0x36cee3['is']('element','ol')||!_0x36cee3['hasClass']('footnotes-list'))return;if(!_0x4a0f04['consumable']['test'](_0x3a02a1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x426719=_0x4a0f04['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3a02a1['getAttribute']('id')});if(!_0x4a0f04['safeInsert'](_0x426719,_0x45bf09['modelCursor']))return;_0x4a0f04['consumable']['consume'](_0x3a02a1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5ddda4=Array['from'](_0x3a02a1['getChildren']())['find'](_0x3ffcb3=>_0x3ffcb3['is']('element')&&_0x3ffcb3['hasClass']('footnote-content'));for(const _0x4d26a6 of _0x3a02a1['getChildren']())_0x4d26a6['is']('element')&&(_0x4a0f04['consumable']['consume'](_0x4d26a6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4a0f04['consumable']['consume'](_0x4d26a6,{'name':!0x0,'classes':'footnote-content'}));if(_0x5ddda4){if(_0x51f450)_0x4a0f04['convertChildren'](_0x5ddda4,_0x426719);else{const _0x53f1ab=_0x4a0f04['writer']['createElement']('footnoteInlineContent');_0x4a0f04['writer']['insert'](_0x53f1ab,_0x426719),_0x4a0f04['convertChildren'](_0x5ddda4,_0x53f1ab);}}_0x4a0f04['updateConversionResult'](_0x426719,_0x45bf09);});}),_0xf1b775['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d6433,{writer:_0x42d974})=>b(_0x4d6433,_0x42d974,_0x28d2b8,{'dataPipeline':!0x0})}),_0xf1b775['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2123b5,{writer:_0x2d3c0b})=>b(_0x2123b5,_0x2d3c0b,_0x28d2b8)});}['_defineBogusParagraphConverters'](){const {editor:_0x41a977}=this,{conversion:_0x3da185}=_0x41a977;_0x41a977['config']['get']('footnotes.multiBlock')?(_0x3da185['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3da185['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x41a977['model']['document'],'change:data',()=>{!function(_0x34ba63,_0x57f6c6){const _0x1657f6=_0x34ba63['document']['differ'],_0x386b5d=new Set();for(const _0x536884 of _0x1657f6['getChanges']()){const _0x2fe347='attribute'==_0x536884['type']?_0x536884['range']['start']['parent']:_0x536884['position']['parent'];_0x2fe347['is']('element','footnoteDefinition')&&_0x386b5d['add'](_0x2fe347);}for(const _0x1f92ab of _0x386b5d['values']()){const _0x35e02f=Array['from'](_0x1f92ab['getChildren']())['filter'](_0x4a2c4d=>g(_0x4a2c4d,_0x57f6c6['mapper']));for(const _0x28a103 of _0x35e02f)_0x57f6c6['reconvertItem'](_0x28a103);}}(_0x41a977['model'],_0x41a977['editing']);})):(_0x3da185['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3da185['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3bb078,{writer:_0xb69de})=>{const _0x3f12d1=_0xb69de['createContainerElement']('span');return _0xb69de['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3f12d1),_0x3f12d1;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4e2ae8}=this,{editing:_0x9e2a95,t:t}=_0x4e2ae8,_0x45d721=_0x4e2ae8['model']['document']['selection'];_0x4e2ae8['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4e2ae8['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x9e2a95['view']['document'],'enter',(_0x5baf67,_0x46fcf9)=>{const _0x2eee73=function(_0x2270c5){const _0x343e87=_0x2270c5['getSelectedElement']();if(_0x343e87?.['is']('element','footnoteRef'))return _0x343e87;return null;}(_0x45d721);if(_0x2eee73){const _0x4768e4=_0x2eee73['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4768e4),_0x46fcf9['preventDefault'](),_0x5baf67['stop']();}},{'context':_0x76c9e7});}['_defineClickHandlers'](){const {editor:_0x34e4f9}=this,{editing:_0x39f3db}=_0x34e4f9;_0x34e4f9['editing']['view']['addObserver'](_0x127257),_0x34e4f9['editing']['view']['addObserver'](_0x4a6a69);let _0x434b99=!0x1;this['listenTo'](_0x39f3db['view']['document'],'pointerdown',(_0x573f8a,_0x38649b)=>{const {target:_0x2ae1cd}=_0x38649b,_0x345695=_0x39f3db['view']['document']['selection'];_0x434b99=!!(_0x2ae1cd?.['is']('element','a')&&_0x2ae1cd['parent']?.['is']('element','sup')&&_0x2ae1cd['parent']['hasClass']('footnote'))&&_0x345695['getSelectedElement']()===_0x2ae1cd['parent'];},{'priority':'high'}),this['listenTo'](_0x39f3db['view']['document'],'click',(_0x1460e0,_0x8fedf6)=>{const {target:_0x16ed03}=_0x8fedf6;if(!_0x16ed03?.['is']('element','a'))return;if(_0x16ed03['parent']?.['is']('element','sup')&&_0x16ed03['parent']['hasClass']('footnote')&&!_0x434b99)return void _0x8fedf6['preventDefault']();let _0x256d23=_0x16ed03['getAttribute']('href');if(!_0x256d23?.['startsWith']('#'))return;_0x256d23=_0x256d23['slice'](0x1);let _0x29ebf8=!0x1;(_0x256d23['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x256d23['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x256d23))&&(_0x29ebf8=!0x0),_0x29ebf8&&(_0x8fedf6['preventDefault'](),_0x1460e0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x387e26}={}){return(_0x4ea943,{writer:_0x25d345})=>{if(!p(_0x4ea943))return null;if(!_0x387e26)return _0x25d345['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2e8455=_0x25d345['createContainerElement']('p');return _0x25d345['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2e8455),_0x2e8455;};}function p(_0x542897){const {parent:_0x1f6e87}=_0x542897;if(!_0x1f6e87?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1f6e87['childCount'])return!0x1;for(const _0x4d376e of _0x542897['getAttributeKeys']())if(!_0x4d376e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4d376e)return!0x1;return!0x0;}function g(_0x35cada,_0x4fb98a){if(!_0x35cada['is']('element','paragraph'))return!0x1;const _0x3ccee4=_0x4fb98a['toViewElement'](_0x35cada);return!!_0x3ccee4&&p(_0x35cada)!==_0x3ccee4['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x519ffc){return _0x76c9e7(_0x519ffc)&&_0x519ffc['is']('containerElement')&&!!_0x519ffc['getCustomProperty']('footnotesDefinitions');}function v(_0x35d437,_0x2fa35c={}){const _0x1db638=_0x35d437['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3efd15=_0x35d437['createContainerElement']('ol',{'class':'footnotes-list'},_0x35d437['createSlot']());return _0x35d437['createContainerElement']('div',{'class':'footnotes',..._0x2fa35c},[_0x1db638,_0x3efd15]);}function D(_0x88357c,_0x11822c){const _0x3c5e95=_0x88357c['getAttribute']('footnoteId'),_0x2002e2=_0x88357c['getAttribute']('footnoteCounter'),_0x1f06ea=_0x11822c['createUIElement']('a',{'href':'#'+_0x3c5e95},function(_0x3abba4){const _0x48fc43=this['toDomElement'](_0x3abba4);return _0x48fc43['textContent']=_0x2002e2,_0x48fc43;}),_0x3cf735=_0x11822c['createContainerElement']('sup',{'id':'ref-'+_0x3c5e95,'class':'footnote'},[_0x1f06ea]);return _0x3cf735['getFillerOffset']=()=>null,_0x3cf735;}function b(_0x50d28e,_0x3885b2,_0x2fc403,{dataPipeline:_0x39cdfc}={}){const {t:t}=_0x2fc403,_0x679356=_0x50d28e['getAttribute']('footnoteId'),_0x25a5e5=_0x3885b2['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x679356},function(_0xf95146){const _0x5f1d15=this['toDomElement'](_0xf95146);return _0x5f1d15['innerText']='^',_0x5f1d15;}),_0x1554a0=_0x39cdfc?_0x3885b2['createContainerElement']('div',{'class':'footnote-content'}):_0x408522(_0x3885b2['createEditableElement']('div',{'class':'footnote-content'}),_0x3885b2,{'label':t('Footnote\x20content.')});return _0x3885b2['insert'](_0x3885b2['createPositionAt'](_0x1554a0,0x0),_0x3885b2['createSlot']()),_0x3885b2['createContainerElement']('li',{'class':'footnote-definition','id':_0x679356},[_0x25a5e5,_0x1554a0]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x89d0a0=_0x515d;function _0x515d(_0x16cadb,_0x135922){const _0xa622d4=_0xa622();return _0x515d=function(_0x515d14,_0x235f5e){_0x515d14=_0x515d14-0xda;let _0x2897d0=_0xa622d4[_0x515d14];return _0x2897d0;},_0x515d(_0x16cadb,_0x135922);}(function(_0x4a4c0b,_0x5611b4){const _0x5c9752=_0x515d,_0x47b7bc=_0x4a4c0b();while(!![]){try{const _0x425c13=-parseInt(_0x5c9752(0xdc))/0x1+-parseInt(_0x5c9752(0xdf))/0x2+-parseInt(_0x5c9752(0xe5))/0x3*(parseInt(_0x5c9752(0xe0))/0x4)+-parseInt(_0x5c9752(0xee))/0x5+parseInt(_0x5c9752(0xe3))/0x6+parseInt(_0x5c9752(0xea))/0x7+parseInt(_0x5c9752(0xe7))/0x8;if(_0x425c13===_0x5611b4)break;else _0x47b7bc['push'](_0x47b7bc['shift']());}catch(_0x315e4e){_0x47b7bc['push'](_0x47b7bc['shift']());}}}(_0xa622,0x5fa84));import{Command as _0x7ebae8}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x40b131}from'../../footnotestracker.js';function _0xa622(){const _0x293e05=['_updateFootnotesCounters','get','execute','501730DUsXAf','value','plugins','model','761837JJSTxm','footnotesListStart','getAttribute','1382818xFCJWh','160720XttGtx','setAttribute','getFootnotesDefinitionsObjectElement','1062606NlqXPa','refresh','3DgkKSc','isInteger','9810544UXVmcO','change','isEnabled','4075155fmHJdD'];_0xa622=function(){return _0x293e05;};return _0xa622();}export class FootnotesStartCommand extends _0x7ebae8{[_0x89d0a0(0xe4)](){const _0x3574bc=_0x89d0a0,{editor:_0x13cd6c}=this,_0x3eeafc=_0x13cd6c[_0x3574bc(0xda)][_0x3574bc(0xec)](_0x40b131)[_0x3574bc(0xe2)]();this[_0x3574bc(0xe9)]=!!_0x3eeafc,this[_0x3574bc(0xef)]=_0x3eeafc?.[_0x3574bc(0xde)](_0x3574bc(0xdd))??null;}[_0x89d0a0(0xed)]({value:_0xc0575e}){const _0x440c26=_0x89d0a0,{editor:_0x5e6255}=this,_0x5646de=_0x5e6255[_0x440c26(0xda)][_0x440c26(0xec)](_0x40b131),_0x1064d0=_0x5646de[_0x440c26(0xe2)]();_0x1064d0&&Number[_0x440c26(0xe6)](_0xc0575e)&&_0x5e6255[_0x440c26(0xdb)][_0x440c26(0xe8)](_0x5774f1=>{const _0x176f08=_0x440c26;_0x5774f1[_0x176f08(0xe1)](_0x176f08(0xdd),_0xc0575e,_0x1064d0),_0x5646de[_0x176f08(0xeb)](_0x5774f1);});}}
23
+ const _0x217565=_0x1ad0;(function(_0x365e59,_0x1e2dcf){const _0x47a667=_0x1ad0,_0x9fbde2=_0x365e59();while(!![]){try{const _0x44b0f8=parseInt(_0x47a667(0x17f))/0x1+-parseInt(_0x47a667(0x183))/0x2*(parseInt(_0x47a667(0x177))/0x3)+-parseInt(_0x47a667(0x17c))/0x4+parseInt(_0x47a667(0x174))/0x5+parseInt(_0x47a667(0x187))/0x6+parseInt(_0x47a667(0x17b))/0x7*(parseInt(_0x47a667(0x172))/0x8)+-parseInt(_0x47a667(0x17a))/0x9;if(_0x44b0f8===_0x1e2dcf)break;else _0x9fbde2['push'](_0x9fbde2['shift']());}catch(_0x40ff5e){_0x9fbde2['push'](_0x9fbde2['shift']());}}}(_0x12ae,0xceb3a));import{Command as _0x22279a}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x3865bb}from'../../footnotestracker.js';function _0x12ae(){const _0x5f2e63=['isInteger','853737gWQxls','_updateFootnotesCounters','setAttribute','getAttribute','13798UUyZYE','isEnabled','get','getFootnotesDefinitionsObjectElement','1881816cOZNJP','model','8XrrTlq','value','1698680SdUpds','execute','footnotesListStart','267ieaNDC','refresh','change','9433359sCZryT','10754233GTeazx','2138464IaAUpx','plugins'];_0x12ae=function(){return _0x5f2e63;};return _0x12ae();}function _0x1ad0(_0x373a13,_0x1ff926){const _0x12aeef=_0x12ae();return _0x1ad0=function(_0x1ad02f,_0x30af26){_0x1ad02f=_0x1ad02f-0x172;let _0x200d5c=_0x12aeef[_0x1ad02f];return _0x200d5c;},_0x1ad0(_0x373a13,_0x1ff926);}export class FootnotesStartCommand extends _0x22279a{[_0x217565(0x178)](){const _0x4cedb7=_0x217565,{editor:_0x5ab72a}=this,_0x45e17f=_0x5ab72a[_0x4cedb7(0x17d)][_0x4cedb7(0x185)](_0x3865bb)[_0x4cedb7(0x186)]();this[_0x4cedb7(0x184)]=!!_0x45e17f,this[_0x4cedb7(0x173)]=_0x45e17f?.[_0x4cedb7(0x182)](_0x4cedb7(0x176))??null;}[_0x217565(0x175)]({value:_0x105cdc}){const _0x57ff4c=_0x217565,{editor:_0x218430}=this,_0x51ea59=_0x218430[_0x57ff4c(0x17d)][_0x57ff4c(0x185)](_0x3865bb),_0x2978f6=_0x51ea59[_0x57ff4c(0x186)]();_0x2978f6&&Number[_0x57ff4c(0x17e)](_0x105cdc)&&_0x218430[_0x57ff4c(0x188)][_0x57ff4c(0x179)](_0x1b74fe=>{const _0x3caf07=_0x57ff4c;_0x1b74fe[_0x3caf07(0x181)](_0x3caf07(0x176),_0x105cdc,_0x2978f6),_0x51ea59[_0x3caf07(0x180)](_0x1b74fe);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51fbcd=_0x1a66;function _0x1a66(_0x245b74,_0x19c67c){const _0x46c453=_0x46c4();return _0x1a66=function(_0x1a6640,_0x21cf93){_0x1a6640=_0x1a6640-0x15a;let _0x3d8d09=_0x46c453[_0x1a6640];return _0x3d8d09;},_0x1a66(_0x245b74,_0x19c67c);}(function(_0x33e4a0,_0x30d6fd){const _0x5f912c=_0x1a66,_0x59535f=_0x33e4a0();while(!![]){try{const _0x53caab=-parseInt(_0x5f912c(0x16a))/0x1*(-parseInt(_0x5f912c(0x164))/0x2)+parseInt(_0x5f912c(0x16e))/0x3+parseInt(_0x5f912c(0x16c))/0x4*(parseInt(_0x5f912c(0x166))/0x5)+-parseInt(_0x5f912c(0x168))/0x6+parseInt(_0x5f912c(0x165))/0x7*(parseInt(_0x5f912c(0x15a))/0x8)+parseInt(_0x5f912c(0x161))/0x9+parseInt(_0x5f912c(0x15e))/0xa*(-parseInt(_0x5f912c(0x160))/0xb);if(_0x53caab===_0x30d6fd)break;else _0x59535f['push'](_0x59535f['shift']());}catch(_0x20f330){_0x59535f['push'](_0x59535f['shift']());}}}(_0x46c4,0xc4d6b));import{Command as _0x1e2c18}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x3055ff}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x289d41}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x1e2c18{[_0x51fbcd(0x16b)](){const _0x4748f5=_0x51fbcd,{editor:_0x4c0757}=this,_0x558025=_0x4c0757[_0x4748f5(0x15c)][_0x4748f5(0x163)](_0x289d41)[_0x4748f5(0x169)]();this[_0x4748f5(0x15f)]=!!_0x558025,this[_0x4748f5(0x170)]=_0x558025?.[_0x4748f5(0x16d)](_0x4748f5(0x162))??null;}[_0x51fbcd(0x167)]({value:_0xefa917}){const _0x577411=_0x51fbcd,{editor:_0x4b49db}=this,_0x976a05=_0x4b49db[_0x577411(0x15c)][_0x577411(0x163)](_0x289d41),_0x5d7618=_0x976a05[_0x577411(0x169)]();_0x5d7618&&_0x3055ff[_0x577411(0x172)](_0xefa917)&&_0x4b49db[_0x577411(0x16f)][_0x577411(0x171)](_0x2b7bb3=>{const _0x41a16b=_0x577411;_0x2b7bb3[_0x41a16b(0x15b)](_0x41a16b(0x162),_0xefa917,_0x5d7618),_0x976a05[_0x41a16b(0x15d)](_0x2b7bb3);});}}function _0x46c4(){const _0x3960ae=['501998PXztDV','145qxucMm','execute','9522714IpdAtv','getFootnotesDefinitionsObjectElement','44279KSlRAs','refresh','56968tdnLdI','getAttribute','4224894UsKCoP','model','value','change','includes','176IEIhiS','setAttribute','plugins','_updateFootnotesCounters','27080EnKSvS','isEnabled','8239DmmAuC','2429055hLysYD','footnotesListStyle','get','34ShcwId'];_0x46c4=function(){return _0x3960ae;};return _0x46c4();}
23
+ const _0x2b010f=_0x3fe0;function _0x593d(){const _0x58eeb3=['71148oUOinD','value','change','_updateFootnotesCounters','includes','4403791saFFuM','setAttribute','3926cymfgr','3727590RZQSCM','execute','9lYcXZa','130gqDcMZ','1240ZxgUAP','5WWdazs','refresh','getFootnotesDefinitionsObjectElement','model','plugins','74vlrudF','get','8318264GjiuAC','3062620rtqZEI','isEnabled','2051748EcPWFi','footnotesListStyle','3vcwxVm','getAttribute'];_0x593d=function(){return _0x58eeb3;};return _0x593d();}(function(_0x3d071c,_0x579b1d){const _0x7dca5f=_0x3fe0,_0x59e31d=_0x3d071c();while(!![]){try{const _0x3ffd9e=parseInt(_0x7dca5f(0xdb))/0x1*(-parseInt(_0x7dca5f(0xe6))/0x2)+-parseInt(_0x7dca5f(0xed))/0x3*(parseInt(_0x7dca5f(0xe9))/0x4)+-parseInt(_0x7dca5f(0xe1))/0x5*(-parseInt(_0x7dca5f(0xdc))/0x6)+-parseInt(_0x7dca5f(0xf4))/0x7+-parseInt(_0x7dca5f(0xe8))/0x8*(parseInt(_0x7dca5f(0xde))/0x9)+parseInt(_0x7dca5f(0xe0))/0xa*(parseInt(_0x7dca5f(0xef))/0xb)+parseInt(_0x7dca5f(0xeb))/0xc*(parseInt(_0x7dca5f(0xdf))/0xd);if(_0x3ffd9e===_0x579b1d)break;else _0x59e31d['push'](_0x59e31d['shift']());}catch(_0x9b1ba7){_0x59e31d['push'](_0x59e31d['shift']());}}}(_0x593d,0x8713a));import{Command as _0x2787c6}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0xf0de0f}from'../footnotespropertiesconfig.js';function _0x3fe0(_0xa2c09a,_0x278968){const _0x593dc8=_0x593d();return _0x3fe0=function(_0x3fe00a,_0xd3799d){_0x3fe00a=_0x3fe00a-0xda;let _0xb3e504=_0x593dc8[_0x3fe00a];return _0xb3e504;},_0x3fe0(_0xa2c09a,_0x278968);}import{FootnotesTracker as _0x11dd7d}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x2787c6{[_0x2b010f(0xe2)](){const _0x5f22b6=_0x2b010f,{editor:_0x3c7e79}=this,_0x1d9253=_0x3c7e79[_0x5f22b6(0xe5)][_0x5f22b6(0xe7)](_0x11dd7d)[_0x5f22b6(0xe3)]();this[_0x5f22b6(0xea)]=!!_0x1d9253,this[_0x5f22b6(0xf0)]=_0x1d9253?.[_0x5f22b6(0xee)](_0x5f22b6(0xec))??null;}[_0x2b010f(0xdd)]({value:_0x2ebae0}){const _0x501b84=_0x2b010f,{editor:_0x3b3657}=this,_0x30ca13=_0x3b3657[_0x501b84(0xe5)][_0x501b84(0xe7)](_0x11dd7d),_0x3cb87f=_0x30ca13[_0x501b84(0xe3)]();_0x3cb87f&&_0xf0de0f[_0x501b84(0xf3)](_0x2ebae0)&&_0x3b3657[_0x501b84(0xe4)][_0x501b84(0xf1)](_0x512252=>{const _0x18d88a=_0x501b84;_0x512252[_0x18d88a(0xda)](_0x18d88a(0xec),_0x2ebae0,_0x3cb87f),_0x30ca13[_0x18d88a(0xf2)](_0x512252);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{BalloonPanelView as _0x3b5b9b,ButtonView as _0x5d1d0e,ContextualBalloon as _0x51a29f,createDropdown as _0x42ba3a}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x35c871}from'ckeditor5/src/widget.js';import{Plugin as _0x2d2f65}from'ckeditor5/src/core.js';import{IconFootnote as _0x383b89,IconListStyleDecimal as _0x5c849f,IconListStyleDecimalLeadingZero as _0x4d5aa8,IconListStyleLowerLatin as _0x168b6d,IconListStyleLowerRoman as _0x2c50ba,IconListStyleUpperLatin as _0x2c2fda,IconListStyleUpperRoman as _0x1c5667}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x24fee4}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x34ea8b}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x2d2f65{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x51a29f,_0x35c871];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1de449}=this,{componentFactory:_0x2c530b}=_0x1de449['ui'];_0x1de449['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2c530b['add']('footnotesStyle',function(_0x2cd52f){return _0xd50ecc=>{const {t:t}=_0xd50ecc,_0x3d4ee9=_0x2cd52f['commands']['get']('footnotesStyle'),_0xad44ca=_0x42ba3a(_0xd50ecc),{buttonView:_0x1be95f}=_0xad44ca;return _0xad44ca['class']='ck-footnotes-styles-dropdown',_0xad44ca['bind']('isEnabled')['to'](_0x3d4ee9,'isEnabled'),_0x1be95f['set']({'label':t('Footnotes\x20style'),'icon':_0x383b89,'tooltip':!0x0}),_0xad44ca['once']('change:isOpen',()=>{const _0x5b151c=function({editor:_0x14c352,dropdownView:_0x33760a}){const {t:t}=_0x14c352['locale'],_0x465da8=t('Footnotes\x20definitions\x20styles'),_0x470ebd=function(_0x2acb41){const t=_0x2acb41['locale']['t'],_0x3b5f8c=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5c849f},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4d5aa8},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2c50ba},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1c5667},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x168b6d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2c2fda}];return _0x3b5f8c['map'](function(_0xa0e623){const _0x547dbf=_0xa0e623['locale'];return({label:_0x4361bd,icon:_0x4d1bc8,tooltip:_0x41723f,style:_0xef01e1})=>{const _0xbacd40=_0xa0e623['commands']['get']('footnotesStyle'),_0x5eaaff=new _0x5d1d0e(_0x547dbf);return _0x5eaaff['set']({'label':_0x4361bd,'icon':_0x4d1bc8,'tooltip':_0x41723f}),_0x5eaaff['bind']('isOn')['to'](_0xbacd40,'value',_0x4c72d7=>_0x4c72d7===_0xef01e1),_0x5eaaff['bind']('isEnabled')['to'](_0xbacd40,'isEnabled'),_0x5eaaff['on']('execute',()=>{_0xa0e623['execute']('footnotesStyle',{'value':_0xef01e1}),_0xa0e623['editing']['view']['focus']();}),_0x5eaaff;};}(_0x2acb41));}(_0x14c352),_0x19d214=new _0x24fee4(_0x14c352['locale'],{'styleGridAriaLabel':_0x465da8,'styleButtonViews':_0x470ebd}),_0x504b24=_0x14c352['commands']['get']('footnotesStart');return _0x19d214['startIndexFieldView']['bind']('isEnabled')['to'](_0x504b24),_0x19d214['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x504b24),_0x19d214['on']('footnotesListStart',(_0x4457cf,_0x13eb99)=>{_0x14c352['execute']('footnotesStart',{'value':_0x13eb99['startIndex']});}),_0x19d214['delegate']('execute')['to'](_0x33760a),_0x19d214;}({'editor':_0x2cd52f,'dropdownView':_0xad44ca});_0xad44ca['panelView']['children']['add'](_0x5b151c);}),_0xad44ca;};}(_0x1de449));}['afterInit'](){const {editor:_0x38060e}=this,{t:t}=_0x38060e['locale'],_0xa6ded9=_0x38060e['plugins']['get'](_0x35c871),{defaultPositions:_0x5bb1a8}=_0x3b5b9b;_0xa6ded9['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x38060e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2f0f1a=>{let _0x3d7678=_0x2f0f1a['getFirstPosition']()?.['parent'];return _0x3d7678?.['is']('$text')&&(_0x3d7678=_0x3d7678['parent']),_0x3d7678?.['is']('element')?_0x3d7678['findAncestor'](_0x34ea8b):null;},'positions':[_0x5bb1a8['southArrowNorth'],_0x5bb1a8['southArrowNorthMiddleWest'],_0x5bb1a8['southArrowNorthMiddleEast'],_0x5bb1a8['southArrowNorthWest'],_0x5bb1a8['southArrowNorthEast'],_0x5bb1a8['northArrowSouth'],_0x5bb1a8['northArrowSouthMiddleWest'],_0x5bb1a8['northArrowSouthMiddleEast'],_0x5bb1a8['northArrowSouthWest'],_0x5bb1a8['northArrowSouthEast'],_0x5bb1a8['viewportStickyNorth']]});}}
23
+ import{BalloonPanelView as _0x17b7c6,ButtonView as _0x4798ef,ContextualBalloon as _0x395d7a,createDropdown as _0xc2fa9}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x1905dc}from'ckeditor5/src/widget.js';import{Plugin as _0x289822}from'ckeditor5/src/core.js';import{IconFootnote as _0x33dbb3,IconListStyleDecimal as _0x5b4eea,IconListStyleDecimalLeadingZero as _0x28accf,IconListStyleLowerLatin as _0x1a5a6b,IconListStyleLowerRoman as _0x38a295,IconListStyleUpperLatin as _0x1f2d13,IconListStyleUpperRoman as _0x4d6f66}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x5c676f}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x3517f6}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x289822{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x395d7a,_0x1905dc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cc258}=this,{componentFactory:_0xb84ef5}=_0x5cc258['ui'];_0x5cc258['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xb84ef5['add']('footnotesStyle',function(_0x47c421){return _0x4e600a=>{const {t:t}=_0x4e600a,_0x5d4728=_0x47c421['commands']['get']('footnotesStyle'),_0x304f4a=_0xc2fa9(_0x4e600a),{buttonView:_0x36ec45}=_0x304f4a;return _0x304f4a['class']='ck-footnotes-styles-dropdown',_0x304f4a['bind']('isEnabled')['to'](_0x5d4728,'isEnabled'),_0x36ec45['set']({'label':t('Footnotes\x20style'),'icon':_0x33dbb3,'tooltip':!0x0}),_0x304f4a['once']('change:isOpen',()=>{const _0x5d8218=function({editor:_0x1ba403,dropdownView:_0xeb3df0}){const {t:t}=_0x1ba403['locale'],_0x1d60a0=t('Footnotes\x20definitions\x20styles'),_0x471257=function(_0x1bc938){const t=_0x1bc938['locale']['t'],_0x1d0e33=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5b4eea},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x28accf},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x38a295},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x4d6f66},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1a5a6b},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1f2d13}];return _0x1d0e33['map'](function(_0x1b00fd){const _0x584ffa=_0x1b00fd['locale'];return({label:_0x249f8a,icon:_0xad755b,tooltip:_0xcdbcb1,style:_0x4f10ef})=>{const _0x560184=_0x1b00fd['commands']['get']('footnotesStyle'),_0xa06414=new _0x4798ef(_0x584ffa);return _0xa06414['set']({'label':_0x249f8a,'icon':_0xad755b,'tooltip':_0xcdbcb1}),_0xa06414['bind']('isOn')['to'](_0x560184,'value',_0x37e4ae=>_0x37e4ae===_0x4f10ef),_0xa06414['bind']('isEnabled')['to'](_0x560184,'isEnabled'),_0xa06414['on']('execute',()=>{_0x1b00fd['execute']('footnotesStyle',{'value':_0x4f10ef}),_0x1b00fd['editing']['view']['focus']();}),_0xa06414;};}(_0x1bc938));}(_0x1ba403),_0x16ae50=new _0x5c676f(_0x1ba403['locale'],{'styleGridAriaLabel':_0x1d60a0,'styleButtonViews':_0x471257}),_0x325669=_0x1ba403['commands']['get']('footnotesStart');return _0x16ae50['startIndexFieldView']['bind']('isEnabled')['to'](_0x325669),_0x16ae50['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x325669),_0x16ae50['on']('footnotesListStart',(_0x2ab840,_0x41c1ff)=>{_0x1ba403['execute']('footnotesStart',{'value':_0x41c1ff['startIndex']});}),_0x16ae50['delegate']('execute')['to'](_0xeb3df0),_0x16ae50;}({'editor':_0x47c421,'dropdownView':_0x304f4a});_0x304f4a['panelView']['children']['add'](_0x5d8218);}),_0x304f4a;};}(_0x5cc258));}['afterInit'](){const {editor:_0x565df9}=this,{t:t}=_0x565df9['locale'],_0xd80e0b=_0x565df9['plugins']['get'](_0x1905dc),{defaultPositions:_0x450b1a}=_0x17b7c6;_0xd80e0b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x565df9['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2baa32=>{let _0x1121e9=_0x2baa32['getFirstPosition']()?.['parent'];return _0x1121e9?.['is']('$text')&&(_0x1121e9=_0x1121e9['parent']),_0x1121e9?.['is']('element')?_0x1121e9['findAncestor'](_0x3517f6):null;},'positions':[_0x450b1a['southArrowNorth'],_0x450b1a['southArrowNorthMiddleWest'],_0x450b1a['southArrowNorthMiddleEast'],_0x450b1a['southArrowNorthWest'],_0x450b1a['southArrowNorthEast'],_0x450b1a['northArrowSouth'],_0x450b1a['northArrowSouthMiddleWest'],_0x450b1a['northArrowSouthMiddleEast'],_0x450b1a['northArrowSouthWest'],_0x450b1a['northArrowSouthEast'],_0x450b1a['viewportStickyNorth']]});}}