@ckeditor/ckeditor5-footnotes 47.6.0-alpha.6 → 47.6.0-alpha.7
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.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2026, 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),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:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["elementName","set","values","14hOoPtG","type","slice","31854746QWRtuf","_getElementKey","10NZBNDt","rootName","remove","delete","_trackedElements","push","3652752WBpRAR","from","8222526wSZZfs","createRangeOn","nodeAfter","get","getChanges","$text","getElementKey","length","flat","7118UbOzfl","6694900NwOfvU","root","$graveyard","153LuMFIW","reset","name","insert","18498dVFJFt","_model","add","element","has","clear","_elementName","attributes","16LvYCms","position","1893666NsGBYf","getItems"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=192]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(461625===-parseInt(e(199))/1*(parseInt(e(195))/2)+-parseInt(e(203))/3*(parseInt(e(211))/4)+-parseInt(e(223))/5*(-parseInt(e(213))/6)+-parseInt(e(218))/7*(parseInt(e(229))/8)+-parseInt(e(231))/9+-parseInt(e(196))/10+parseInt(e(221))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(204)];[r(209)];[r(222)];[r(227)]=new Map;constructor(t,e){const o=r;this[o(204)]=t,this[o(209)]=e[o(215)],this[o(222)]=e[o(192)]}[r(200)](){const t=r;this[t(227)][t(208)]()}[r(235)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(202)===i[e(219)]&&e(236)!==i[e(201)]&&i[e(212)][e(233)]){const t=this[e(204)][e(232)](i[e(212)][e(233)]);for(const o of t[e(214)]()){if(!o.is(e(206),this[e(209)]))continue;const t=this[e(222)](o);n[e(207)](t)||n[e(216)](t,[]),n[e(234)](t)[e(228)](o)}}if(e(225)===i[e(219)]&&i[e(201)]===this[e(209)]){const t=this[e(222)]({getAttribute:t=>i[e(210)][e(234)](t)});o[e(205)](t)}}for(const[t,n]of this[e(227)])e(198)===n[e(197)][e(224)]&&o[e(205)](t);for(const t of o)this[e(227)][e(226)](t);for(const[t,o]of n)this[e(227)][e(216)](t,o[o[e(193)]-1]);const i=new Set;for(const[t,s]of n)o[e(207)](t)&&(i[e(205)](s[0]),s[e(193)]>1?n[e(216)](t,s[e(220)](1)):n[e(226)](t),o[e(226)](t));return{removed:Array[e(230)](o),inserted:Array[e(230)](n[e(217)]())[e(194)](),moved:Array[e(230)](i)}}}function f(t,e){const o=h();return(f=function(t,e){return o[t-=119]})(t,e)}const u=f;!function(t){const e=f,o=t();for(;;)try{if(813003===parseInt(e(136))/1+-parseInt(e(217))/2*(parseInt(e(212))/3)+parseInt(e(199))/4*(parseInt(e(204))/5)+-parseInt(e(176))/6+parseInt(e(180))/7+-parseInt(e(153))/8+-parseInt(e(145))/9*(-parseInt(e(205))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(166)]=[];[u(187)]=null;[u(192)]=null;[u(135)];[u(207)];[u(211)];static get[u(171)](){return u(133)}static get[u(149)](){return!0}static get[u(121)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(144)][e(160)],{elementName:e(167),getElementKey:()=>e(150)}),this[e(207)]=new l(this[e(144)][e(160)],{elementName:e(177),getElementKey:t=>t[e(129)](e(175))}),this[e(211)]=new l(this[e(144)][e(160)],{elementName:e(131),getElementKey:t=>t[e(129)](e(175))})}[u(155)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(142)][t(190)](e=>{const n=t,i=o[n(142)][n(141)][n(169)]();let s=!1;return this[n(178)](e,i)&&(s=!0),this[n(172)](e,i)&&(s=!0),this[n(124)](e,i)&&(s=!0),this[n(216)](e)&&(s=!0),this[n(123)](e)&&(s=!0),this[n(203)](e)&&(s=!0),s}),this[t(120)](o[t(142)],t(208),()=>{const e=t;o[e(201)]({isUndoable:!1},t=>{this[e(134)](t)})},{priority:t(139)}),this[t(120)](n,t(195),()=>{const e=t;this[e(166)]=[],this[e(135)][e(185)](),this[e(207)][e(185)](),this[e(211)][e(185)]()},{priority:t(152)})}[u(132)](){return this[u(187)]}[u(191)](t){const e=u;return this[e(166)][e(174)](e=>e.id===t)||null}[u(140)](){const t=u;return Array[t(198)](this[t(166)])}[u(219)](){return this[u(192)]}[u(154)](t){this[u(192)]=t}[u(137)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(166)][o(206)];i++)this[o(143)](t,i)&&(n=!0);return n}[u(165)](t,e){const o=u,n=t[o(218)](o(167),{});return t[o(156)](n,e),this[o(187)]=n,n}[u(134)](t){const e=u;if(!this[e(166)][e(206)]||this[e(187)])return;const o=this[e(166)][0][e(162)][e(193)],n=this[e(165)](t,o);for(const o of this[e(166)])o[e(184)][e(127)]||t[e(183)](o[e(184)],n,e(122));this[e(137)](t)}[u(178)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(169)](e);if(r[o(206)]&&(this[o(187)]=r[0]),i[o(206)])if(i[o(206)]>1||this[o(187)]&&i[o(202)](t=>t!==this[o(187)])){const e=t[o(218)](o(167),{}),s=[];this[o(187)]&&s[o(119)](this[o(187)]),s[o(119)](...i),t[o(183)](e,s[0],o(170));for(const n of s)t[o(197)](t[o(163)](n),t[o(181)](e,o(122))),t[o(200)](n);this[o(187)]=e,this[o(137)](t),n=!0}else this[o(187)]=i[0];if(s[o(206)]&&o(126)===this[o(187)]?.[o(193)][o(209)]){for(const e of this[o(166)])t[o(200)](e[o(162)]),n=!0;this[o(166)]=[],this[o(187)]=null}return n}[u(172)](t,e){const o=u;let n=!1;const i=this[o(144)][o(189)][o(147)](o(128)),{inserted:s,moved:r}=this[o(211)][o(169)](e);for(const e of[...r,...s]){const s=e[o(129)](o(175)),r=this[o(191)](s);r&&(r[o(184)]=e),p(t,i,e)&&(n=!0)}return n}[u(124)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(207)][o(169)](e);for(const e of i)this[o(214)](t,e)&&(n=!0);for(const e of s)this[o(130)](t,e)&&(n=!0);for(const e of r)this[o(215)](t,e)&&(n=!0);return n}[u(123)](t){const e=u;if(!this[e(187)])return!1;let o=!1;if(this[e(187)][e(151)]!==this[e(166)][e(206)]){const n=[];for(const t of this[e(187)][e(168)]()){const i=t[e(129)](e(175));this[e(191)](i)||(n[e(148)](t),o=!0)}for(const o of n)t[e(200)](o)}const n=new Set,i=[];for(const t of this[e(187)][e(168)]()){const s=t[e(129)](e(175));n[e(138)](s)?(i[e(148)](t),o=!0):n[e(196)](s)}for(const o of i)t[e(200)](o);return this[e(187)][e(151)]||(t[e(200)](this[e(187)]),this[e(187)]=null,o=!0),o}[u(130)](t,e){const o=u;if(this[o(166)][o(174)](t=>t[o(162)]===e))return!1;let n=!1;const i=e[o(129)](o(175)),s=this[o(166)][o(213)](t=>t.id===i);-1!==s&&(t[o(200)](this[o(166)][s][o(162)]),this[o(166)][o(125)](s,1),n=!0);let r=this[o(187)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(129)](n(175))===e)return o;return null}(this[o(187)],i):null;r||(r=t[o(218)](o(131),{footnoteId:i}),this[o(187)]&&(t[o(183)](r,this[o(187)],o(122)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(144)][o(160)],this[o(166)],e);this[o(166)][o(125)](c,0,a);let l=c;return-1!==s&&(l=Math[o(210)](c,s)),this[o(137)](t,l)&&(n=!0),n}[u(214)](t,e){const o=u,n=this[o(166)][o(213)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(166)][n];return o(126)!==s[o(184)][o(193)][o(209)]&&(t[o(200)](s[o(184)]),i=!0),this[o(166)][o(125)](n,1),this[o(137)](t,n)&&(i=!0),i}[u(215)](t,e){const o=u,n=e[o(129)](o(175)),i=this[o(166)][o(213)](t=>t.id===n),s=this[o(166)][i];let r=!1;s[o(162)]=e,this[o(166)][o(125)](i,1);const a=m(this[o(144)][o(160)],this[o(166)],e);return this[o(166)][o(125)](a,0,s),this[o(137)](t,Math[o(210)](i,a))&&(r=!0),r}[u(143)](t,e){const o=u;if(!this[o(187)])return!1;const n=this[o(166)][e];let i;return i=this[o(192)]?this[o(192)]({footnote:n,container:this[o(187)],digits:String(this[o(166)][o(206)])[o(206)],value:e+1}):String(e+1),n[o(162)][o(129)](o(164))!=i&&(t[o(194)](o(164),i,n[o(162)]),!0)}[u(203)](t){const e=u;if(!this[e(187)]||this[e(166)][e(206)]<2)return!1;if(function(t,o){const n=e;if(t[n(206)]!==o[n(206)])return!1;for(let e=0;e<t[n(206)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(166)][e(179)](t=>t.id),Array[e(198)](this[e(187)][e(168)]())[e(179)](t=>t[e(129)](e(175)))))return!1;let o=!1;for(let n=0;n<this[e(166)][e(206)];n++){const i=this[e(166)][n],s=t[e(161)](i[e(184)]),r=t[e(181)](this[e(187)],n);s[e(186)](r)||(t[e(197)](t[e(157)](i[e(184)]),r),o=!0)}return o}[u(216)](t){const e=u;if(!this[e(166)][e(206)])return!1;const{model:o}=this[e(144)];let n=!1;for(let i=0;i<this[e(166)][e(206)]-1;i++){const s=this[e(166)][i],r=this[e(166)][i+1],a=o[e(161)](s[e(162)]),c=o[e(161)](r[e(162)]);e(158)===a[e(182)](c)&&(this[e(215)](t,s[e(162)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(151)])return!1;const i=n(e?159:188);return t[n(183)](t[n(218)](i),o),!0}function h(){const t=["_updateFootnoteRefCounter","editor","18wlvbQB","getRootNames","get","unshift","isOfficialPlugin","singleton","childCount","high","11194696NmLxRw","setFootnoteFormatter","init","append","createRangeOn","after","paragraph","model","createPositionBefore","reference","createRangeIn","footnoteCounter","_insertEmptyFootnotesDefinitionsContainer","_footnotes","footnotesDefinitions","getChildren","getChanges","before","pluginName","_handleFootnoteDefinitionsChanges","indexOf","find","footnoteId","4281222xDLNBL","footnoteRef","_handleFootnotesDefinitionsObjectChanges","map","355327PZNIYx","createPositionAt","compareWith","insert","definition","reset","isEqual","_footnotesDefinitions","footnoteInlineContent","config","registerPostFixer","getFootnote","_footnoteFormatter","root","setAttribute","set","add","move","from","1156240uqUyvy","remove","enqueueChange","some","_sortFootnoteDefinitions","20VmSWXZ","11832110zjxyfj","length","_footnoteRefsTracker","change:data","rootName","min","_footnoteDefsTracker","3cWlaAu","findIndex","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","_ensureFootnotesReferencesHaveProperOrder","1642722nPoqRy","createElement","getFootnotesFormatter","push","listenTo","isPremiumPlugin","end","_handleFootnotesDefinitionsObjectSync","_handleFootnoteReferencesChanges","splice","$graveyard","parent","footnotes.multiBlock","getAttribute","_handleInsertedFootnoteReference","footnoteDefinition","getFootnotesDefinitionsObjectElement","FootnotesTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsContainerTracker","173815cClpYT","_updateFootnotesCounters","has","low","getFootnotes","differ","document"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(206)])return 0;const i=t[n(161)](o);for(let o=0;o<e[n(206)];o++){const s=e[o],r=t[n(161)](s[n(162)]);if(n(170)===i[n(182)](r))return o}const s=o[n(193)];let r=-1;for(let t=e[n(206)]-1;t>=0;t--)if(e[t][n(162)][n(193)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(142)][n(146)](),c=a[n(173)](s[n(209)]),l=a[c+1];if(l)for(let t=0;t<e[n(206)];t++)if(e[t][n(162)][n(193)][n(209)]===l)return t;return e[n(206)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=238]})(t,e)}function y(){const t=["insertObject","model","28829lXspNb","143742mTdLPS","726186GDVxBo","length","editor","document","footnoteRef","307304VWkMaY","execute","279KpbMjU","_moveSelectionToFootnoteDefinition","FootnotesEditing","end","isEnabled","test","plugins","_getPositionToInsertFootnote","footnoteId","selection","change","62gmKWec","isBlock","string","getItems","createElement","35MwcVDr","get","insert-footnote-command-executed-with-invalid-id","getFirstRange","isObject","checkChild","1150675kZwUDs","5674620MWpNWc","refresh","4040696WOTjwI"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(638578===parseInt(e(240))/1*(parseInt(e(260))/2)+parseInt(e(242))/3+-parseInt(e(274))/4+-parseInt(e(271))/5+parseInt(e(241))/6*(parseInt(e(265))/7)+parseInt(e(247))/8*(parseInt(e(249))/9)+-parseInt(e(272))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(273)](){const t=g,e=this[t(244)][t(239)][t(245)][t(258)],o=this[t(256)](e);this[t(253)]=!!o}[g(248)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(245)],r=this[e(256)](s);if(!r)return;const a=o[e(255)][e(266)](e(251)),c=t?.[e(257)]??(0,i.uid)();!function(t){const o=e;return o(262)==typeof t&&t[o(243)]>0&&!/\s/[o(254)](t)&&!/^\d/[o(254)](t)}(c)?(0,i.logWarning)(e(267)):(n[e(259)](t=>{const o=e,i=t[o(264)](o(246),{footnoteId:c});n[o(238)](i,r,null)}),a[e(250)](c))}[g(256)](t){const e=g,{model:o}=this[e(244)],{schema:n}=o,i=t[e(268)]();for(const t of i[e(263)]())if(n[e(261)](t)||n[e(269)](t))return null;const s=i[e(252)];return n[e(270)](s,e(246))?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=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1772496e3;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([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=A;function D(){const t=["document","toModel","footnoteDefinition","cloneElement","method","597554EWHvKx","get","append","contentInsertion","getChildren","selection","1484010JhYQzl","3084416pbslYc","setData","footnoteRef","clipboardInput","init","51YfVwhQ","1187207QYjCtS","keys","application/ckeditor5-footnotes","editor","dataTransfer","editing","remove","setAttribute","listenTo","FootnotesClipboard","length","includes","outputTransformation","htmlProcessor","change","createElement","footnoteId","getSelectedBlocks","getFootnotesDefinitionsObjectElement","createRangeIn","create","hasAttribute","parse","push","end","add","getAttribute","toData","getFootnotes","element","config","content","pluginName","_defineClipboardIntegration","getData","52436IQmiUC","_handleCopyFootnotesDefinitions","definition","string","stringify","_handlePasteFootnotesDefinitions","flatMap","isOfficialPlugin","find","reduce","2BfETfx","getFootnote","insert","toView","drop","getRanges","entries","requires","16113141KLmhEQ","footnoteInlineContent","from","sourceEditorId","3465318AcpBfD","getFirstRange","footnotes.multiBlock","root","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","footnotesDefinitions","data"];return(D=function(){return t})()}function A(t,e){const o=D();return(A=function(t,e){return o[t-=394]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(311538===parseInt(e(408))/1*(-parseInt(e(466))/2)+parseInt(e(420))/3*(-parseInt(e(456))/4)+-parseInt(e(414))/5+-parseInt(e(395))/6+-parseInt(e(421))/7+parseInt(e(415))/8+parseInt(e(474))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(453)](){return T(430)}static get[T(473)](){return[v,P.ClipboardPipeline]}static get[T(463)](){return!0}static get[T(399)](){return!0}[T(419)](){this[T(454)]()}[T(454)](){const t=T;this[t(457)](),this[t(461)]()}[T(457)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(409)](P.ClipboardPipeline),s=o[t(409)](d);this[t(429)](i,t(433),(o,i)=>{const r=t,a=O(n[r(440)](i[r(452)]));if(!a[r(431)])return;const c=s[r(449)](),l=a[r(465)]((t,o)=>{const n=r,i=c[n(464)](t=>t.id===o);if(i){const o=e[n(402)][n(469)](i[n(458)],{isClipboardPipeline:!0}),s=e[n(402)][n(434)][n(448)](o);t[i.id]=s}return t},Object[r(441)](null));i[r(425)][r(416)](r(423),JSON[r(460)](l))})}[T(461)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(426)],r=n[t(409)](P.ClipboardPipeline),a=n[t(409)](d),c=e[t(451)][t(409)](t(397));let l=null;this[t(429)](s[t(403)],t(418),(e,o)=>{const n=t,i=o[n(425)][n(455)](n(423));l=i?JSON[n(443)](i):null}),this[t(429)](r,t(411),(n,s)=>{const r=t,f=s[r(394)]===this[r(424)].id;f&&r(470)===s[r(407)]||o[r(435)](t=>{const n=r;let u=a[n(439)]();const d=!!u&&Array[n(476)](o[n(403)][n(413)][n(438)]())[n(432)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(450),e(417)))return!0;return!1}(o[n(440)](s[n(452)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(441)](null);for(const e of i[o(412)]())e.is(o(450),o(405))&&e[o(442)](o(437))&&(s[e[o(447)](o(437))]=t[o(406)](e,!0));return Object[o(422)](s)[o(431)]?s:null}(t,s[n(452)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(440)](e))n.is(o(450),o(401))&&i[o(444)](n);for(const e of i)t[o(427)](e)}(t,s[n(452)]),!l)return;const{selection:p}=o[n(403)],h=p[n(396)]()[n(398)];u&&!d||(u=L(t,s[n(452)]),u||=a[n(400)](t,h));const m=Array[n(476)](p[n(471)]())[n(462)](O),g=function(t,e,o){const s=n,r=Object[s(441)](null);for(const{item:n}of t[s(440)](e))if(n.is(s(450),s(417))){const e=n[s(447)](s(437));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(428)](s(437),r[e],n)}return r}(t,s[n(452)],t=>{const e=n;return!f||!!a[e(467)](t)&&!m[e(432)](t)});for(const[o,i]of Object[n(472)](l)){const s=g[o]||o;let r;if(n(459)!=typeof i)r=i,s!==o&&t[n(428)](n(437),s,r);else{r=t[n(436)](n(405),{footnoteId:s});const o=e[n(402)][n(434)][n(469)](i);let a;if(c)a=e[n(402)][n(404)](o,r);else{a=t[n(436)](n(475));const i=e[n(402)][n(404)](o,a);t[n(468)](i,a)}t[n(410)](a,r)}t[n(468)](r,u,n(445))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(440)](e))if(n.is(o(450),o(401)))return n;return null}function O(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(450),e(417))&&o[e(446)](n[e(447)](e(437)));return Array[e(476)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),B=o.n(j),M=o(102),W=o.n(M),U=o(123),z=o.n(U),H=o(741),q=o.n(H),Y=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=W().bind(null,"head"),X.domAPI=B(),X.insertStyleElement=q();K()(Y.A,X);Y.A&&Y.A.locals&&Y.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",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||"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"),"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 G=J;function $(){var t=["45071ZzTigP","17265nXismb","1610292FqffDE","isOfficialPlugin","Footnotes","requires","2675092YWraCc","pluginName","56ewrHAO","107146UnAYgf","900225BJjhWx","12AlasWe","855965oDffBj","isPremiumPlugin"];return($=function(){return t})()}function J(t,e){var o=$();return(J=function(t,e){return o[t-=226]})(t,e)}!function(t){for(var e=J,o=t();;)try{if(212067===-parseInt(e(236))/1+parseInt(e(231))/2+-parseInt(e(237))/3*(parseInt(e(233))/4)+parseInt(e(234))/5+-parseInt(e(238))/6+-parseInt(e(228))/7+-parseInt(e(230))/8*(-parseInt(e(232))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(229)](){return G(226)}static get[G(227)](){return[v,_,Q]}static get[G(239)](){return!0}static get[G(235)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=437]})(t,e)}function nt(){const t=["618170rYoajm","decimal-leading-zero","10UBOHnp","decimal","38124mwjdko","upper-latin","64373htYVLb","150777MAzOBc","lower-alpha","172172mULuIx","45CFzKjM","upper-roman","upper-alpha","8ORatjE","968VaToUO","lower-latin","lower-roman","1450809FUKmcd","792vDmEsu"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(166282===-parseInt(e(441))/1+parseInt(e(454))/2+parseInt(e(453))/3*(parseInt(e(449))/4)+parseInt(e(445))/5*(parseInt(e(439))/6)+-parseInt(e(444))/7+-parseInt(e(448))/8*(parseInt(e(452))/9)+parseInt(e(437))/10*(-parseInt(e(442))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(438),et(455),et(450),et(440),et(443),et(447),et(451),et(446)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=495]})(t,e)}function at(){const t=["plugins","model","1292206MqaOvb","value","236036ZQOfXa","includes","getFootnotesDefinitionsObjectElement","get","4913955PhCWBo","execute","footnotesListStyle","setAttribute","isEnabled","6654kbwdeK","4425120FPXvRI","3sYNBmU","20KIlaXj","3887088dQGect","2548700eYWYap","change","_updateFootnotesCounters","getAttribute","refresh","1LoVQhA"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(392367===-parseInt(e(501))/1*(-parseInt(e(504))/2)+parseInt(e(517))/3*(parseInt(e(506))/4)+parseInt(e(518))/5*(parseInt(e(515))/6)+-parseInt(e(516))/7+-parseInt(e(495))/8+parseInt(e(510))/9+parseInt(e(496))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(500)](){const t=st,{editor:e}=this,o=e[t(502)][t(509)](d)[t(508)]();this[t(514)]=!!o,this[t(505)]=o?.[t(499)](t(512))??null}[st(511)]({value:t}){const e=st,{editor:o}=this,n=o[e(502)][e(509)](d),i=n[e(508)]();i&&it[e(507)](t)&&o[e(503)][e(497)](o=>{const s=e;o[s(513)](s(512),t,i),n[s(498)](o)})}}function lt(){const t=["13179720vIYKWX","7048735zHxksC","setAttribute","getAttribute","isEnabled","4074kCwVtQ","isInteger","18992ByGMkd","193038KIVtyU","change","_updateFootnotesCounters","plugins","value","8352144QOpSuZ","footnotesListStart","10tIWjuO","execute","model","refresh","413194RUMrdg","get","22eRxLtS","1512004ozsTPg","6nOyOwW","getFootnotesDefinitionsObjectElement"];return(lt=function(){return t})()}const ft=ut;function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(726564===-parseInt(e(236))/1+parseInt(e(232))/2*(-parseInt(e(225))/3)+parseInt(e(214))/4+parseInt(e(218))/5*(parseInt(e(215))/6)+parseInt(e(222))/7*(parseInt(e(224))/8)+parseInt(e(230))/9+parseInt(e(217))/10*(-parseInt(e(238))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class dt extends t.Command{[ft(235)](){const t=ft,{editor:e}=this,o=e[t(228)][t(237)](d)[t(216)]();this[t(221)]=!!o,this[t(229)]=o?.[t(220)](t(231))??null}[ft(233)]({value:t}){const e=ft,{editor:o}=this,n=o[e(228)][e(237)](d),i=n[e(216)]();i&&Number[e(223)](t)&&o[e(234)][e(226)](o=>{const s=e;o[s(219)](s(231),t,i),n[s(227)](o)})}}const pt=mt;function ht(){const t=["fromCharCode","checkAttribute","_updateFootnotesCounters","position","lower-latin","18yxCgQG","upper-latin","110033QWvDMe","define","for","removeAttribute","getChildren","_defineConverters","_defineFormatter","toViewElement","schema","footnotes.footnotesProperties.defaultListStyle","add","$text","411728vWUgVO","parseInt","downcast","get","config","getStyle","name","start","requires","135456QHsEEx","isOfficialPlugin","model","find","footnotesStyle","footnotes.footnotesProperties.defaultStartIndex","init","_formatFootnoteListValue","type","pluginName","footnotes-list","attribute:footnotesListStyle:footnotesDefinitions","lower-alpha","isPremiumPlugin","list-style-type","_getDefaultListStyle","insert","max","nodeAfter","14984hiKElc","document","from","_getDefaultStartIndex","viewItem","commands","hasClass","getChanges","padStart","66MzylIo","footnotesListStart","element:ol","setAttribute","differ","lower-roman","element","modelCursor","removeStyle","getItems","3050010wSPXHT","upper-alpha","consume","item","writer","getAttribute","isNaN","setStyle","attribute:footnotesListStart:footnotesDefinitions","toLowerCase","footnotesListStyle","upper-roman","5914776pEyGwk","_definePostfixer","mapper","decimal","consumable","1112865RRsdLp","registerPostFixer","FootnotesPropertiesEditing","plugins","decimal-leading-zero","editor","extend","createRangeOn","hasAttribute","_defineSchema","floor","parent","toUpperCase","footnotesStart","upcast","footnotesDefinitions","setFootnoteFormatter"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=433]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(605279===-parseInt(e(462))/1+-parseInt(e(481))/2*(parseInt(e(439))/3)+parseInt(e(453))/4+-parseInt(e(517))/5+-parseInt(e(490))/6*(parseInt(e(441))/7)+parseInt(e(512))/8+parseInt(e(500))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[pt(471)](){return pt(519)}static get[pt(461)](){return[v,d]}static get[pt(463)](){return!0}static get[pt(475)](){return!0}[pt(468)](){const t=pt,{editor:e}=this;e[t(457)][t(442)](t(450),t(515)),e[t(457)][t(442)](t(467),1),e[t(486)][t(451)](t(466),new ct(e)),e[t(486)][t(451)](t(530),new dt(e)),this[t(526)](),this[t(446)](),this[t(447)](),this[t(513)]()}[pt(526)](){const t=pt,{editor:e}=this,{schema:o}=e[t(464)];o[t(523)](t(532),{allowAttributes:[t(510),t(491)]})}[pt(446)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(443)](t(531))[t(451)](e=>{const o=t;e.on(o(492),(t,e,n)=>{const s=o,r=e[s(485)],a=e[s(497)]?.[s(528)];r[s(487)](s(472))&&a?.is(s(496),s(532))&&(function(t,e,o,n){const i=s;if(!n[i(435)](e,i(491)))return;let r=1;const a=o[i(516)][i(502)](t,{attributes:i(460)});if(a){const e=Number[i(454)](t[i(505)](i(460)),10);Number[i(506)](e)||(r=e)}!a&&e[i(525)](i(491))||o[i(504)][i(493)](i(491),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(435)](e,i(510)))return;let r=i(515),a=!1;if(o[i(516)][i(502)](t,{attributes:i(470)})){const e={1:i(515),a:i(474),A:i(501),i:i(495),I:i(511)}[t[i(505)](i(470))];e&&(r=e),a=!0}o[i(516)][i(502)](t,{styles:i(476)})&&(r=function(t){const e=i;switch(t){case e(474):return e(438);case e(501):return e(440);default:return t}}(t[i(458)](i(476))),a=!0),!a&&e[i(525)](i(510))||o[i(504)][i(493)](i(510),r,e)}(r,a,n,i))})}),o[t(443)](t(455))[t(451)](e=>{const o=t;e.on(o(508),(t,e,n)=>{const i=o;if(!n[i(516)][i(502)](e[i(503)],t[i(459)]))return;const s=wt(e[i(503)],n[i(514)]),{attributeNewValue:r}=e;null==r||1===r?n[i(504)][i(444)](i(460),s):n[i(504)][i(493)](i(460),String(r),s)}),e.on(o(473),(t,e,n)=>{const i=o;if(!n[i(516)][i(502)](e[i(503)],t[i(459)]))return;const s=wt(e[i(503)],n[i(514)]),{attributeNewValue:r}=e;r&&i(515)!==r?n[i(504)][i(507)](i(476),r,s):n[i(504)][i(498)](i(476),s)})})}[pt(513)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(520)][t(456)](d),i=this[t(477)](),s=this[t(484)]();o[t(482)][t(518)](e=>{const r=t,a=o[r(482)][r(494)][r(488)]();let c=!1;for(const t of a){if(r(478)!==t[r(470)]||r(452)===t[r(459)])continue;const n=o[r(524)](t[r(437)][r(480)]);for(const t of n[r(499)]())t.is(r(496),r(532))&&(!t[r(525)](r(491))&&o[r(449)][r(435)](t,r(491))&&(e[r(493)](r(491),s,t),c=!0),!t[r(525)](r(510))&&o[r(449)][r(435)](t,r(510))&&(e[r(493)](r(510),i,t),c=!0))}return c&&n[r(436)](e),c})}[pt(447)](){const t=pt,{editor:e}=this;e[t(520)][t(456)](d)[t(433)](e=>this[t(469)](e))}[pt(477)](){const t=pt;return this[t(522)][t(457)][t(456)](t(450))}[pt(484)](){const t=pt;return this[t(522)][t(457)][t(456)](t(467))}[pt(469)]({container:t,value:e,digits:o}){const n=pt,i=t[n(505)](n(510)),s=t[n(505)](n(491)),r=Math[n(527)](e)+(s??1)-1;switch(i){case n(521):return function(t,e){const o=n;return String(t)[o(489)](e,"0")}(r,Math[n(479)](2,o));case n(474):case n(438):return yt(r,!1);case n(501):case n(440):return yt(r,!0);case n(495):return vt(r,!1);case n(511):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(448)](t);return Array[o(483)](n[o(445)]())[o(465)](t=>t.is(o(496),"ol")&&t[o(487)](o(472)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(434)](97+t)+n,i=Math[o(527)]((i-1)/26)}return e?n[o(529)]():n}const bt=[{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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(509)]()}class It 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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=W().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft 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 It(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 xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=304]})(t,e)}function St(){var t=["1485gjDNSB","2004294JjLdBL","356PcIQgF","26943NgqIsW","requires","pluginName","1271840ZXeSvi","1896510iIuTgZ","2736643Hamncm","95rNxFyx","isPremiumPlugin","isOfficialPlugin","38470zXcEoR","634ZPEcHc","FootnotesProperties","5zwiFDL"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(516899===parseInt(e(311))/1*(-parseInt(e(315))/2)+-parseInt(e(305))/3*(parseInt(e(304))/4)+-parseInt(e(317))/5*(-parseInt(e(319))/6)+parseInt(e(310))/7+parseInt(e(308))/8+-parseInt(e(318))/9*(-parseInt(e(314))/10)+-parseInt(e(309))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(307)](){return xt(316)}static get[xt(306)](){return[gt,Ft]}static get[xt(313)](){return!0}static get[xt(312)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=258]})(t,e)}function Dt(){var t=["3101895PDvdPT","8444zOgnnH","2Lxqpxu","3515XYyDzK","1839756zBSrRM","6886852qxiIva","472KByXLT","718858XpdvHG","46962rjxUFU","36348230qOawqV"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(867573===parseInt(e(264))/1*(-parseInt(e(259))/2)+parseInt(e(262))/3+-parseInt(e(263))/4*(parseInt(e(265))/5)+-parseInt(e(266))/6+-parseInt(e(267))/7+-parseInt(e(258))/8*(parseInt(e(260))/9)+parseInt(e(261))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(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:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,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=["elementName","set","values","14hOoPtG","type","slice","31854746QWRtuf","_getElementKey","10NZBNDt","rootName","remove","delete","_trackedElements","push","3652752WBpRAR","from","8222526wSZZfs","createRangeOn","nodeAfter","get","getChanges","$text","getElementKey","length","flat","7118UbOzfl","6694900NwOfvU","root","$graveyard","153LuMFIW","reset","name","insert","18498dVFJFt","_model","add","element","has","clear","_elementName","attributes","16LvYCms","position","1893666NsGBYf","getItems"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=192]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(461625===-parseInt(e(199))/1*(parseInt(e(195))/2)+-parseInt(e(203))/3*(parseInt(e(211))/4)+-parseInt(e(223))/5*(-parseInt(e(213))/6)+-parseInt(e(218))/7*(parseInt(e(229))/8)+-parseInt(e(231))/9+-parseInt(e(196))/10+parseInt(e(221))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(204)];[r(209)];[r(222)];[r(227)]=new Map;constructor(t,e){const o=r;this[o(204)]=t,this[o(209)]=e[o(215)],this[o(222)]=e[o(192)]}[r(200)](){const t=r;this[t(227)][t(208)]()}[r(235)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(202)===i[e(219)]&&e(236)!==i[e(201)]&&i[e(212)][e(233)]){const t=this[e(204)][e(232)](i[e(212)][e(233)]);for(const o of t[e(214)]()){if(!o.is(e(206),this[e(209)]))continue;const t=this[e(222)](o);n[e(207)](t)||n[e(216)](t,[]),n[e(234)](t)[e(228)](o)}}if(e(225)===i[e(219)]&&i[e(201)]===this[e(209)]){const t=this[e(222)]({getAttribute:t=>i[e(210)][e(234)](t)});o[e(205)](t)}}for(const[t,n]of this[e(227)])e(198)===n[e(197)][e(224)]&&o[e(205)](t);for(const t of o)this[e(227)][e(226)](t);for(const[t,o]of n)this[e(227)][e(216)](t,o[o[e(193)]-1]);const i=new Set;for(const[t,s]of n)o[e(207)](t)&&(i[e(205)](s[0]),s[e(193)]>1?n[e(216)](t,s[e(220)](1)):n[e(226)](t),o[e(226)](t));return{removed:Array[e(230)](o),inserted:Array[e(230)](n[e(217)]())[e(194)](),moved:Array[e(230)](i)}}}function f(t,e){const o=h();return(f=function(t,e){return o[t-=119]})(t,e)}const u=f;!function(t){const e=f,o=t();for(;;)try{if(813003===parseInt(e(136))/1+-parseInt(e(217))/2*(parseInt(e(212))/3)+parseInt(e(199))/4*(parseInt(e(204))/5)+-parseInt(e(176))/6+parseInt(e(180))/7+-parseInt(e(153))/8+-parseInt(e(145))/9*(-parseInt(e(205))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(166)]=[];[u(187)]=null;[u(192)]=null;[u(135)];[u(207)];[u(211)];static get[u(171)](){return u(133)}static get[u(149)](){return!0}static get[u(121)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(144)][e(160)],{elementName:e(167),getElementKey:()=>e(150)}),this[e(207)]=new l(this[e(144)][e(160)],{elementName:e(177),getElementKey:t=>t[e(129)](e(175))}),this[e(211)]=new l(this[e(144)][e(160)],{elementName:e(131),getElementKey:t=>t[e(129)](e(175))})}[u(155)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(142)][t(190)](e=>{const n=t,i=o[n(142)][n(141)][n(169)]();let s=!1;return this[n(178)](e,i)&&(s=!0),this[n(172)](e,i)&&(s=!0),this[n(124)](e,i)&&(s=!0),this[n(216)](e)&&(s=!0),this[n(123)](e)&&(s=!0),this[n(203)](e)&&(s=!0),s}),this[t(120)](o[t(142)],t(208),()=>{const e=t;o[e(201)]({isUndoable:!1},t=>{this[e(134)](t)})},{priority:t(139)}),this[t(120)](n,t(195),()=>{const e=t;this[e(166)]=[],this[e(135)][e(185)](),this[e(207)][e(185)](),this[e(211)][e(185)]()},{priority:t(152)})}[u(132)](){return this[u(187)]}[u(191)](t){const e=u;return this[e(166)][e(174)](e=>e.id===t)||null}[u(140)](){const t=u;return Array[t(198)](this[t(166)])}[u(219)](){return this[u(192)]}[u(154)](t){this[u(192)]=t}[u(137)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(166)][o(206)];i++)this[o(143)](t,i)&&(n=!0);return n}[u(165)](t,e){const o=u,n=t[o(218)](o(167),{});return t[o(156)](n,e),this[o(187)]=n,n}[u(134)](t){const e=u;if(!this[e(166)][e(206)]||this[e(187)])return;const o=this[e(166)][0][e(162)][e(193)],n=this[e(165)](t,o);for(const o of this[e(166)])o[e(184)][e(127)]||t[e(183)](o[e(184)],n,e(122));this[e(137)](t)}[u(178)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(169)](e);if(r[o(206)]&&(this[o(187)]=r[0]),i[o(206)])if(i[o(206)]>1||this[o(187)]&&i[o(202)](t=>t!==this[o(187)])){const e=t[o(218)](o(167),{}),s=[];this[o(187)]&&s[o(119)](this[o(187)]),s[o(119)](...i),t[o(183)](e,s[0],o(170));for(const n of s)t[o(197)](t[o(163)](n),t[o(181)](e,o(122))),t[o(200)](n);this[o(187)]=e,this[o(137)](t),n=!0}else this[o(187)]=i[0];if(s[o(206)]&&o(126)===this[o(187)]?.[o(193)][o(209)]){for(const e of this[o(166)])t[o(200)](e[o(162)]),n=!0;this[o(166)]=[],this[o(187)]=null}return n}[u(172)](t,e){const o=u;let n=!1;const i=this[o(144)][o(189)][o(147)](o(128)),{inserted:s,moved:r}=this[o(211)][o(169)](e);for(const e of[...r,...s]){const s=e[o(129)](o(175)),r=this[o(191)](s);r&&(r[o(184)]=e),p(t,i,e)&&(n=!0)}return n}[u(124)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(207)][o(169)](e);for(const e of i)this[o(214)](t,e)&&(n=!0);for(const e of s)this[o(130)](t,e)&&(n=!0);for(const e of r)this[o(215)](t,e)&&(n=!0);return n}[u(123)](t){const e=u;if(!this[e(187)])return!1;let o=!1;if(this[e(187)][e(151)]!==this[e(166)][e(206)]){const n=[];for(const t of this[e(187)][e(168)]()){const i=t[e(129)](e(175));this[e(191)](i)||(n[e(148)](t),o=!0)}for(const o of n)t[e(200)](o)}const n=new Set,i=[];for(const t of this[e(187)][e(168)]()){const s=t[e(129)](e(175));n[e(138)](s)?(i[e(148)](t),o=!0):n[e(196)](s)}for(const o of i)t[e(200)](o);return this[e(187)][e(151)]||(t[e(200)](this[e(187)]),this[e(187)]=null,o=!0),o}[u(130)](t,e){const o=u;if(this[o(166)][o(174)](t=>t[o(162)]===e))return!1;let n=!1;const i=e[o(129)](o(175)),s=this[o(166)][o(213)](t=>t.id===i);-1!==s&&(t[o(200)](this[o(166)][s][o(162)]),this[o(166)][o(125)](s,1),n=!0);let r=this[o(187)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(129)](n(175))===e)return o;return null}(this[o(187)],i):null;r||(r=t[o(218)](o(131),{footnoteId:i}),this[o(187)]&&(t[o(183)](r,this[o(187)],o(122)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(144)][o(160)],this[o(166)],e);this[o(166)][o(125)](c,0,a);let l=c;return-1!==s&&(l=Math[o(210)](c,s)),this[o(137)](t,l)&&(n=!0),n}[u(214)](t,e){const o=u,n=this[o(166)][o(213)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(166)][n];return o(126)!==s[o(184)][o(193)][o(209)]&&(t[o(200)](s[o(184)]),i=!0),this[o(166)][o(125)](n,1),this[o(137)](t,n)&&(i=!0),i}[u(215)](t,e){const o=u,n=e[o(129)](o(175)),i=this[o(166)][o(213)](t=>t.id===n),s=this[o(166)][i];let r=!1;s[o(162)]=e,this[o(166)][o(125)](i,1);const a=m(this[o(144)][o(160)],this[o(166)],e);return this[o(166)][o(125)](a,0,s),this[o(137)](t,Math[o(210)](i,a))&&(r=!0),r}[u(143)](t,e){const o=u;if(!this[o(187)])return!1;const n=this[o(166)][e];let i;return i=this[o(192)]?this[o(192)]({footnote:n,container:this[o(187)],digits:String(this[o(166)][o(206)])[o(206)],value:e+1}):String(e+1),n[o(162)][o(129)](o(164))!=i&&(t[o(194)](o(164),i,n[o(162)]),!0)}[u(203)](t){const e=u;if(!this[e(187)]||this[e(166)][e(206)]<2)return!1;if(function(t,o){const n=e;if(t[n(206)]!==o[n(206)])return!1;for(let e=0;e<t[n(206)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(166)][e(179)](t=>t.id),Array[e(198)](this[e(187)][e(168)]())[e(179)](t=>t[e(129)](e(175)))))return!1;let o=!1;for(let n=0;n<this[e(166)][e(206)];n++){const i=this[e(166)][n],s=t[e(161)](i[e(184)]),r=t[e(181)](this[e(187)],n);s[e(186)](r)||(t[e(197)](t[e(157)](i[e(184)]),r),o=!0)}return o}[u(216)](t){const e=u;if(!this[e(166)][e(206)])return!1;const{model:o}=this[e(144)];let n=!1;for(let i=0;i<this[e(166)][e(206)]-1;i++){const s=this[e(166)][i],r=this[e(166)][i+1],a=o[e(161)](s[e(162)]),c=o[e(161)](r[e(162)]);e(158)===a[e(182)](c)&&(this[e(215)](t,s[e(162)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(151)])return!1;const i=n(e?159:188);return t[n(183)](t[n(218)](i),o),!0}function h(){const t=["_updateFootnoteRefCounter","editor","18wlvbQB","getRootNames","get","unshift","isOfficialPlugin","singleton","childCount","high","11194696NmLxRw","setFootnoteFormatter","init","append","createRangeOn","after","paragraph","model","createPositionBefore","reference","createRangeIn","footnoteCounter","_insertEmptyFootnotesDefinitionsContainer","_footnotes","footnotesDefinitions","getChildren","getChanges","before","pluginName","_handleFootnoteDefinitionsChanges","indexOf","find","footnoteId","4281222xDLNBL","footnoteRef","_handleFootnotesDefinitionsObjectChanges","map","355327PZNIYx","createPositionAt","compareWith","insert","definition","reset","isEqual","_footnotesDefinitions","footnoteInlineContent","config","registerPostFixer","getFootnote","_footnoteFormatter","root","setAttribute","set","add","move","from","1156240uqUyvy","remove","enqueueChange","some","_sortFootnoteDefinitions","20VmSWXZ","11832110zjxyfj","length","_footnoteRefsTracker","change:data","rootName","min","_footnoteDefsTracker","3cWlaAu","findIndex","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","_ensureFootnotesReferencesHaveProperOrder","1642722nPoqRy","createElement","getFootnotesFormatter","push","listenTo","isPremiumPlugin","end","_handleFootnotesDefinitionsObjectSync","_handleFootnoteReferencesChanges","splice","$graveyard","parent","footnotes.multiBlock","getAttribute","_handleInsertedFootnoteReference","footnoteDefinition","getFootnotesDefinitionsObjectElement","FootnotesTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsContainerTracker","173815cClpYT","_updateFootnotesCounters","has","low","getFootnotes","differ","document"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(206)])return 0;const i=t[n(161)](o);for(let o=0;o<e[n(206)];o++){const s=e[o],r=t[n(161)](s[n(162)]);if(n(170)===i[n(182)](r))return o}const s=o[n(193)];let r=-1;for(let t=e[n(206)]-1;t>=0;t--)if(e[t][n(162)][n(193)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(142)][n(146)](),c=a[n(173)](s[n(209)]),l=a[c+1];if(l)for(let t=0;t<e[n(206)];t++)if(e[t][n(162)][n(193)][n(209)]===l)return t;return e[n(206)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=229]})(t,e)}function y(){const t=["2006310UnKqhF","_moveSelectionToFootnoteDefinition","insert-footnote-command-executed-with-invalid-id","end","8202068iwgkni","change","3fsyAqo","_getPositionToInsertFootnote","footnoteId","model","isBlock","document","isEnabled","refresh","28302945Bxyhph","249816VTFjHy","editor","footnoteRef","test","get","getItems","9923TLrYHN","34XxYeqL","length","961168eJlZDy","99faZHjc","selection","getFirstRange","execute","5976155pnnLWZ","6oePDcs","createElement","plugins","insertObject","FootnotesEditing","checkChild","string","isObject"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(757889===-parseInt(e(232))/1*(-parseInt(e(233))/2)+parseInt(e(255))/3*(parseInt(e(235))/4)+parseInt(e(240))/5*(-parseInt(e(241))/6)+-parseInt(e(253))/7+parseInt(e(264))/8*(parseInt(e(236))/9)+-parseInt(e(249))/10+parseInt(e(263))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(262)](){const t=g,e=this[t(265)][t(258)][t(260)][t(237)],o=this[t(256)](e);this[t(261)]=!!o}[g(239)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(260)],r=this[e(256)](s);if(!r)return;const a=o[e(243)][e(230)](e(245)),c=t?.[e(257)]??(0,i.uid)();!function(t){const o=e;return o(247)==typeof t&&t[o(234)]>0&&!/\s/[o(229)](t)&&!/^\d/[o(229)](t)}(c)?(0,i.logWarning)(e(251)):(n[e(254)](t=>{const o=e,i=t[o(242)](o(266),{footnoteId:c});n[o(244)](i,r,null)}),a[e(250)](c))}[g(256)](t){const e=g,{model:o}=this[e(265)],{schema:n}=o,i=t[e(238)]();for(const t of i[e(231)]())if(n[e(259)](t)||n[e(248)](t))return null;const s=i[e(252)];return n[e(246)](s,e(266))?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=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1772496e3;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([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 D=A;function T(){const t=["document","toModel","footnoteDefinition","cloneElement","method","597554EWHvKx","get","append","contentInsertion","getChildren","selection","1484010JhYQzl","3084416pbslYc","setData","footnoteRef","clipboardInput","init","51YfVwhQ","1187207QYjCtS","keys","application/ckeditor5-footnotes","editor","dataTransfer","editing","remove","setAttribute","listenTo","FootnotesClipboard","length","includes","outputTransformation","htmlProcessor","change","createElement","footnoteId","getSelectedBlocks","getFootnotesDefinitionsObjectElement","createRangeIn","create","hasAttribute","parse","push","end","add","getAttribute","toData","getFootnotes","element","config","content","pluginName","_defineClipboardIntegration","getData","52436IQmiUC","_handleCopyFootnotesDefinitions","definition","string","stringify","_handlePasteFootnotesDefinitions","flatMap","isOfficialPlugin","find","reduce","2BfETfx","getFootnote","insert","toView","drop","getRanges","entries","requires","16113141KLmhEQ","footnoteInlineContent","from","sourceEditorId","3465318AcpBfD","getFirstRange","footnotes.multiBlock","root","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","footnotesDefinitions","data"];return(T=function(){return t})()}function A(t,e){const o=T();return(A=function(t,e){return o[t-=394]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(311538===parseInt(e(408))/1*(-parseInt(e(466))/2)+parseInt(e(420))/3*(-parseInt(e(456))/4)+-parseInt(e(414))/5+-parseInt(e(395))/6+-parseInt(e(421))/7+parseInt(e(415))/8+parseInt(e(474))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[D(453)](){return D(430)}static get[D(473)](){return[v,P.ClipboardPipeline]}static get[D(463)](){return!0}static get[D(399)](){return!0}[D(419)](){this[D(454)]()}[D(454)](){const t=D;this[t(457)](),this[t(461)]()}[D(457)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(409)](P.ClipboardPipeline),s=o[t(409)](d);this[t(429)](i,t(433),(o,i)=>{const r=t,a=O(n[r(440)](i[r(452)]));if(!a[r(431)])return;const c=s[r(449)](),l=a[r(465)]((t,o)=>{const n=r,i=c[n(464)](t=>t.id===o);if(i){const o=e[n(402)][n(469)](i[n(458)],{isClipboardPipeline:!0}),s=e[n(402)][n(434)][n(448)](o);t[i.id]=s}return t},Object[r(441)](null));i[r(425)][r(416)](r(423),JSON[r(460)](l))})}[D(461)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(426)],r=n[t(409)](P.ClipboardPipeline),a=n[t(409)](d),c=e[t(451)][t(409)](t(397));let l=null;this[t(429)](s[t(403)],t(418),(e,o)=>{const n=t,i=o[n(425)][n(455)](n(423));l=i?JSON[n(443)](i):null}),this[t(429)](r,t(411),(n,s)=>{const r=t,f=s[r(394)]===this[r(424)].id;f&&r(470)===s[r(407)]||o[r(435)](t=>{const n=r;let u=a[n(439)]();const d=!!u&&Array[n(476)](o[n(403)][n(413)][n(438)]())[n(432)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(450),e(417)))return!0;return!1}(o[n(440)](s[n(452)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(441)](null);for(const e of i[o(412)]())e.is(o(450),o(405))&&e[o(442)](o(437))&&(s[e[o(447)](o(437))]=t[o(406)](e,!0));return Object[o(422)](s)[o(431)]?s:null}(t,s[n(452)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(440)](e))n.is(o(450),o(401))&&i[o(444)](n);for(const e of i)t[o(427)](e)}(t,s[n(452)]),!l)return;const{selection:p}=o[n(403)],h=p[n(396)]()[n(398)];u&&!d||(u=L(t,s[n(452)]),u||=a[n(400)](t,h));const m=Array[n(476)](p[n(471)]())[n(462)](O),g=function(t,e,o){const s=n,r=Object[s(441)](null);for(const{item:n}of t[s(440)](e))if(n.is(s(450),s(417))){const e=n[s(447)](s(437));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(428)](s(437),r[e],n)}return r}(t,s[n(452)],t=>{const e=n;return!f||!!a[e(467)](t)&&!m[e(432)](t)});for(const[o,i]of Object[n(472)](l)){const s=g[o]||o;let r;if(n(459)!=typeof i)r=i,s!==o&&t[n(428)](n(437),s,r);else{r=t[n(436)](n(405),{footnoteId:s});const o=e[n(402)][n(434)][n(469)](i);let a;if(c)a=e[n(402)][n(404)](o,r);else{a=t[n(436)](n(475));const i=e[n(402)][n(404)](o,a);t[n(468)](i,a)}t[n(410)](a,r)}t[n(468)](r,u,n(445))}l=null})})}}function L(t,e){const o=D;for(const{item:n}of t[o(440)](e))if(n.is(o(450),o(401)))return n;return null}function O(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(450),e(417))&&o[e(446)](n[e(447)](e(437)));return Array[e(476)](o)}var V=o(311),N=o(355),R=o(929),j=o.n(R),K=o(297),B=o.n(K),M=o(102),U=o.n(M),z=o(123),W=o.n(z),H=o(741),q=o.n(H),X=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=W(),Q.insert=U().bind(null,"head"),Q.domAPI=B(),Q.insertStyleElement=q();j()(X.A,Q);X.A&&X.A.locals&&X.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||"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"),"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 G=$;function J(){var t=["45071ZzTigP","17265nXismb","1610292FqffDE","isOfficialPlugin","Footnotes","requires","2675092YWraCc","pluginName","56ewrHAO","107146UnAYgf","900225BJjhWx","12AlasWe","855965oDffBj","isPremiumPlugin"];return(J=function(){return t})()}function $(t,e){var o=J();return($=function(t,e){return o[t-=226]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(212067===-parseInt(e(236))/1+parseInt(e(231))/2+-parseInt(e(237))/3*(parseInt(e(233))/4)+parseInt(e(234))/5+-parseInt(e(238))/6+-parseInt(e(228))/7+-parseInt(e(230))/8*(-parseInt(e(232))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class tt extends t.Plugin{static get[G(229)](){return G(226)}static get[G(227)](){return[v,_,Y]}static get[G(239)](){return!0}static get[G(235)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=437]})(t,e)}function nt(){const t=["618170rYoajm","decimal-leading-zero","10UBOHnp","decimal","38124mwjdko","upper-latin","64373htYVLb","150777MAzOBc","lower-alpha","172172mULuIx","45CFzKjM","upper-roman","upper-alpha","8ORatjE","968VaToUO","lower-latin","lower-roman","1450809FUKmcd","792vDmEsu"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(166282===-parseInt(e(441))/1+parseInt(e(454))/2+parseInt(e(453))/3*(parseInt(e(449))/4)+parseInt(e(445))/5*(parseInt(e(439))/6)+-parseInt(e(444))/7+-parseInt(e(448))/8*(parseInt(e(452))/9)+parseInt(e(437))/10*(-parseInt(e(442))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(438),et(455),et(450),et(440),et(443),et(447),et(451),et(446)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=489]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(195628===parseInt(e(502))/1*(-parseInt(e(503))/2)+parseInt(e(499))/3*(-parseInt(e(490))/4)+parseInt(e(504))/5*(parseInt(e(510))/6)+parseInt(e(494))/7*(-parseInt(e(508))/8)+-parseInt(e(497))/9*(-parseInt(e(496))/10)+parseInt(e(498))/11+parseInt(e(501))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(489)](){const t=st,{editor:e}=this,o=e[t(500)][t(492)](d)[t(513)]();this[t(507)]=!!o,this[t(495)]=o?.[t(511)](t(509))??null}[st(514)]({value:t}){const e=st,{editor:o}=this,n=o[e(500)][e(492)](d),i=n[e(513)]();i&&it[e(506)](t)&&o[e(505)][e(493)](o=>{const s=e;o[s(512)](s(509),t,i),n[s(491)](o)})}}function ct(){const t=["value","100CGFfDH","170829LvkvjJ","1492832vfQcDp","951PgmkAL","plugins","3436632XwCBQf","3iHCXPC","446qDRJhU","505vTLsgO","model","includes","isEnabled","159816rlbJgv","footnotesListStyle","2694QABtfT","getAttribute","setAttribute","getFootnotesDefinitionsObjectElement","execute","refresh","4052qSrlls","_updateFootnotesCounters","get","change","49OSvpUQ"];return(ct=function(){return t})()}const lt=ut;function ft(){const t=["9DLMfyT","footnotesListStart","plugins","get","190364gfOmLe","execute","_updateFootnotesCounters","272037ZRPzUG","539958XzYXct","refresh","getFootnotesDefinitionsObjectElement","36630UNCFGT","2900860vZDvEr","value","isInteger","30QjUDkF","model","setAttribute","316024qSNFOw","change","8922420MXbSUI","21tISlOp","getAttribute","isEnabled"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=188]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(532573===parseInt(e(198))/1+parseInt(e(191))/2+-parseInt(e(194))/3+parseInt(e(199))/4+parseInt(e(202))/5*(parseInt(e(195))/6)+-parseInt(e(208))/7*(-parseInt(e(205))/8)+parseInt(e(211))/9*(-parseInt(e(207))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(196)](){const t=lt,{editor:e}=this,o=e[t(189)][t(190)](d)[t(197)]();this[t(210)]=!!o,this[t(200)]=o?.[t(209)](t(188))??null}[lt(192)]({value:t}){const e=lt,{editor:o}=this,n=o[e(189)][e(190)](d),i=n[e(197)]();i&&Number[e(201)](t)&&o[e(203)][e(206)](o=>{const s=e;o[s(204)](s(188),t,i),n[s(193)](o)})}}const pt=mt;function ht(){const t=["fromCharCode","checkAttribute","_updateFootnotesCounters","position","lower-latin","18yxCgQG","upper-latin","110033QWvDMe","define","for","removeAttribute","getChildren","_defineConverters","_defineFormatter","toViewElement","schema","footnotes.footnotesProperties.defaultListStyle","add","$text","411728vWUgVO","parseInt","downcast","get","config","getStyle","name","start","requires","135456QHsEEx","isOfficialPlugin","model","find","footnotesStyle","footnotes.footnotesProperties.defaultStartIndex","init","_formatFootnoteListValue","type","pluginName","footnotes-list","attribute:footnotesListStyle:footnotesDefinitions","lower-alpha","isPremiumPlugin","list-style-type","_getDefaultListStyle","insert","max","nodeAfter","14984hiKElc","document","from","_getDefaultStartIndex","viewItem","commands","hasClass","getChanges","padStart","66MzylIo","footnotesListStart","element:ol","setAttribute","differ","lower-roman","element","modelCursor","removeStyle","getItems","3050010wSPXHT","upper-alpha","consume","item","writer","getAttribute","isNaN","setStyle","attribute:footnotesListStart:footnotesDefinitions","toLowerCase","footnotesListStyle","upper-roman","5914776pEyGwk","_definePostfixer","mapper","decimal","consumable","1112865RRsdLp","registerPostFixer","FootnotesPropertiesEditing","plugins","decimal-leading-zero","editor","extend","createRangeOn","hasAttribute","_defineSchema","floor","parent","toUpperCase","footnotesStart","upcast","footnotesDefinitions","setFootnoteFormatter"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=433]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(605279===-parseInt(e(462))/1+-parseInt(e(481))/2*(parseInt(e(439))/3)+parseInt(e(453))/4+-parseInt(e(517))/5+-parseInt(e(490))/6*(parseInt(e(441))/7)+parseInt(e(512))/8+parseInt(e(500))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[pt(471)](){return pt(519)}static get[pt(461)](){return[v,d]}static get[pt(463)](){return!0}static get[pt(475)](){return!0}[pt(468)](){const t=pt,{editor:e}=this;e[t(457)][t(442)](t(450),t(515)),e[t(457)][t(442)](t(467),1),e[t(486)][t(451)](t(466),new at(e)),e[t(486)][t(451)](t(530),new dt(e)),this[t(526)](),this[t(446)](),this[t(447)](),this[t(513)]()}[pt(526)](){const t=pt,{editor:e}=this,{schema:o}=e[t(464)];o[t(523)](t(532),{allowAttributes:[t(510),t(491)]})}[pt(446)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(443)](t(531))[t(451)](e=>{const o=t;e.on(o(492),(t,e,n)=>{const s=o,r=e[s(485)],a=e[s(497)]?.[s(528)];r[s(487)](s(472))&&a?.is(s(496),s(532))&&(function(t,e,o,n){const i=s;if(!n[i(435)](e,i(491)))return;let r=1;const a=o[i(516)][i(502)](t,{attributes:i(460)});if(a){const e=Number[i(454)](t[i(505)](i(460)),10);Number[i(506)](e)||(r=e)}!a&&e[i(525)](i(491))||o[i(504)][i(493)](i(491),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(435)](e,i(510)))return;let r=i(515),a=!1;if(o[i(516)][i(502)](t,{attributes:i(470)})){const e={1:i(515),a:i(474),A:i(501),i:i(495),I:i(511)}[t[i(505)](i(470))];e&&(r=e),a=!0}o[i(516)][i(502)](t,{styles:i(476)})&&(r=function(t){const e=i;switch(t){case e(474):return e(438);case e(501):return e(440);default:return t}}(t[i(458)](i(476))),a=!0),!a&&e[i(525)](i(510))||o[i(504)][i(493)](i(510),r,e)}(r,a,n,i))})}),o[t(443)](t(455))[t(451)](e=>{const o=t;e.on(o(508),(t,e,n)=>{const i=o;if(!n[i(516)][i(502)](e[i(503)],t[i(459)]))return;const s=wt(e[i(503)],n[i(514)]),{attributeNewValue:r}=e;null==r||1===r?n[i(504)][i(444)](i(460),s):n[i(504)][i(493)](i(460),String(r),s)}),e.on(o(473),(t,e,n)=>{const i=o;if(!n[i(516)][i(502)](e[i(503)],t[i(459)]))return;const s=wt(e[i(503)],n[i(514)]),{attributeNewValue:r}=e;r&&i(515)!==r?n[i(504)][i(507)](i(476),r,s):n[i(504)][i(498)](i(476),s)})})}[pt(513)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(520)][t(456)](d),i=this[t(477)](),s=this[t(484)]();o[t(482)][t(518)](e=>{const r=t,a=o[r(482)][r(494)][r(488)]();let c=!1;for(const t of a){if(r(478)!==t[r(470)]||r(452)===t[r(459)])continue;const n=o[r(524)](t[r(437)][r(480)]);for(const t of n[r(499)]())t.is(r(496),r(532))&&(!t[r(525)](r(491))&&o[r(449)][r(435)](t,r(491))&&(e[r(493)](r(491),s,t),c=!0),!t[r(525)](r(510))&&o[r(449)][r(435)](t,r(510))&&(e[r(493)](r(510),i,t),c=!0))}return c&&n[r(436)](e),c})}[pt(447)](){const t=pt,{editor:e}=this;e[t(520)][t(456)](d)[t(433)](e=>this[t(469)](e))}[pt(477)](){const t=pt;return this[t(522)][t(457)][t(456)](t(450))}[pt(484)](){const t=pt;return this[t(522)][t(457)][t(456)](t(467))}[pt(469)]({container:t,value:e,digits:o}){const n=pt,i=t[n(505)](n(510)),s=t[n(505)](n(491)),r=Math[n(527)](e)+(s??1)-1;switch(i){case n(521):return function(t,e){const o=n;return String(t)[o(489)](e,"0")}(r,Math[n(479)](2,o));case n(474):case n(438):return yt(r,!1);case n(501):case n(440):return yt(r,!0);case n(495):return vt(r,!1);case n(511):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(448)](t);return Array[o(483)](n[o(445)]())[o(465)](t=>t.is(o(496),"ol")&&t[o(487)](o(472)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(434)](97+t)+n,i=Math[o(527)]((i-1)/26)}return e?n[o(529)]():n}const bt=[{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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(509)]()}class It 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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=q();j()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft 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 It(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 xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=304]})(t,e)}function St(){var t=["1485gjDNSB","2004294JjLdBL","356PcIQgF","26943NgqIsW","requires","pluginName","1271840ZXeSvi","1896510iIuTgZ","2736643Hamncm","95rNxFyx","isPremiumPlugin","isOfficialPlugin","38470zXcEoR","634ZPEcHc","FootnotesProperties","5zwiFDL"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(516899===parseInt(e(311))/1*(-parseInt(e(315))/2)+-parseInt(e(305))/3*(parseInt(e(304))/4)+-parseInt(e(317))/5*(-parseInt(e(319))/6)+parseInt(e(310))/7+parseInt(e(308))/8+-parseInt(e(318))/9*(-parseInt(e(314))/10)+-parseInt(e(309))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(307)](){return xt(316)}static get[xt(306)](){return[gt,Ft]}static get[xt(313)](){return!0}static get[xt(312)](){return!0}}function Dt(t,e){var o=Tt();return(Dt=function(t,e){return o[t-=258]})(t,e)}function Tt(){var t=["3101895PDvdPT","8444zOgnnH","2Lxqpxu","3515XYyDzK","1839756zBSrRM","6886852qxiIva","472KByXLT","718858XpdvHG","46962rjxUFU","36348230qOawqV"];return(Tt=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(867573===parseInt(e(264))/1*(-parseInt(e(259))/2)+parseInt(e(262))/3+-parseInt(e(263))/4*(parseInt(e(265))/5)+-parseInt(e(266))/6+-parseInt(e(267))/7+-parseInt(e(258))/8*(parseInt(e(260))/9)+parseInt(e(261))/10)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 _0x1e86fb,Command as _0xc972ff}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0xb83a9,isWidget as _0xc67125,toWidgetEditable as _0x1a34c6,WidgetToolbarRepository as _0x18d705}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3683aa,logWarning as _0x5789e4,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x410daa,ClickObserver as _0x3fed23}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4cb0d0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4cacf7,ButtonView as _0x1d9f7f,View as _0x256419,ViewCollection as _0x1f5a9c,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x470bf6,BalloonPanelView as _0x1808e0,createDropdown as _0x502064}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4d42b6,IconListStyleDecimal as _0x345575,IconListStyleDecimalLeadingZero as _0xdb55dd,IconListStyleLowerRoman as _0x2bc98f,IconListStyleUpperRoman as _0x5abd28,IconListStyleLowerLatin as _0x3bd6e8,IconListStyleUpperLatin as _0x29339b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x140b0f,_0x59eff2){this['_model']=_0x140b0f,this['_elementName']=_0x59eff2['elementName'],this['_getElementKey']=_0x59eff2['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3f7517){const _0x2a9c74=new Set(),_0x5a6e53=new Map();for(const _0x315e0c of _0x3f7517){if('insert'===_0x315e0c['type']&&'$text'!==_0x315e0c['name']&&_0x315e0c['position']['nodeAfter']){const _0x5188a3=this['_model']['createRangeOn'](_0x315e0c['position']['nodeAfter']);for(const _0x56ad7e of _0x5188a3['getItems']()){if(!_0x56ad7e['is']('element',this['_elementName']))continue;const _0x111d3c=this['_getElementKey'](_0x56ad7e);_0x5a6e53['has'](_0x111d3c)||_0x5a6e53['set'](_0x111d3c,[]),_0x5a6e53['get'](_0x111d3c)['push'](_0x56ad7e);}}if('remove'===_0x315e0c['type']&&_0x315e0c['name']===this['_elementName']){const _0x5b7a1a=this['_getElementKey']({'getAttribute':_0x141484=>_0x315e0c['attributes']['get'](_0x141484)});_0x2a9c74['add'](_0x5b7a1a);}}for(const [_0x5e9fec,_0x1e6954]of this['_trackedElements'])'$graveyard'===_0x1e6954['root']['rootName']&&_0x2a9c74['add'](_0x5e9fec);for(const _0x811814 of _0x2a9c74)this['_trackedElements']['delete'](_0x811814);for(const [_0x26cd2c,_0xd8a584]of _0x5a6e53)this['_trackedElements']['set'](_0x26cd2c,_0xd8a584[_0xd8a584['length']-0x1]);const _0x46d24f=new Set();for(const [_0x50eb5b,_0x2946e5]of _0x5a6e53)_0x2a9c74['has'](_0x50eb5b)&&(_0x46d24f['add'](_0x2946e5[0x0]),_0x2946e5['length']>0x1?_0x5a6e53['set'](_0x50eb5b,_0x2946e5['slice'](0x1)):_0x5a6e53['delete'](_0x50eb5b),_0x2a9c74['delete'](_0x50eb5b));return{'removed':Array['from'](_0x2a9c74),'inserted':Array['from'](_0x5a6e53['values']())['flat'](),'moved':Array['from'](_0x46d24f)};}}class f extends _0x1e86fb{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b78c0){super(_0x4b78c0),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x32958c=>_0x32958c['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x556223=>_0x556223['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5db513}=this,{model:_0x1448c2,data:_0x37bc2e}=_0x5db513;_0x1448c2['document']['registerPostFixer'](_0xcd8fa0=>{const _0x31679c=_0x1448c2['document']['differ']['getChanges']();let _0x369c17=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xcd8fa0,_0x31679c)&&(_0x369c17=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xcd8fa0,_0x31679c)&&(_0x369c17=!0x0),this['_handleFootnoteReferencesChanges'](_0xcd8fa0,_0x31679c)&&(_0x369c17=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xcd8fa0)&&(_0x369c17=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xcd8fa0)&&(_0x369c17=!0x0),this['_sortFootnoteDefinitions'](_0xcd8fa0)&&(_0x369c17=!0x0),_0x369c17;}),this['listenTo'](_0x1448c2['document'],'change:data',()=>{_0x1448c2['enqueueChange']({'isUndoable':!0x1},_0xd92a36=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xd92a36);});},{'priority':'low'}),this['listenTo'](_0x37bc2e,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x325431){return this['_footnotes']['find'](_0x1d72c8=>_0x1d72c8['id']===_0x325431)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x30d26f){this['_footnoteFormatter']=_0x30d26f;}['_updateFootnotesCounters'](_0x922bf4,_0xe2ff9b=0x0){let _0x4e25f7=!0x1;for(let _0x2c936e=_0xe2ff9b;_0x2c936e<this['_footnotes']['length'];_0x2c936e++)this['_updateFootnoteRefCounter'](_0x922bf4,_0x2c936e)&&(_0x4e25f7=!0x0);return _0x4e25f7;}['_insertEmptyFootnotesDefinitionsContainer'](_0x43186c,_0x553cd6){const _0x14dd69=_0x43186c['createElement']('footnotesDefinitions',{});return _0x43186c['append'](_0x14dd69,_0x553cd6),this['_footnotesDefinitions']=_0x14dd69,_0x14dd69;}['_ensureFootnotesDefinitionsContainerExists'](_0x1c6e45){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x165a6b=this['_footnotes'][0x0]['reference']['root'],_0x588914=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1c6e45,_0x165a6b);for(const _0x165720 of this['_footnotes'])_0x165720['definition']['parent']||_0x1c6e45['insert'](_0x165720['definition'],_0x588914,'end');this['_updateFootnotesCounters'](_0x1c6e45);}['_handleFootnotesDefinitionsObjectChanges'](_0x2582d,_0x45453c){let _0x26e82a=!0x1;const {inserted:_0x3fcfbb,removed:_0x34ea12,moved:_0x5c458b}=this['_footnoteDefsContainerTracker']['getChanges'](_0x45453c);if(_0x5c458b['length']&&(this['_footnotesDefinitions']=_0x5c458b[0x0]),_0x3fcfbb['length']){if(_0x3fcfbb['length']>0x1||this['_footnotesDefinitions']&&_0x3fcfbb['some'](_0x2e678d=>_0x2e678d!==this['_footnotesDefinitions'])){const _0x3a1baa=_0x2582d['createElement']('footnotesDefinitions',{}),_0x48fe9c=[];this['_footnotesDefinitions']&&_0x48fe9c['push'](this['_footnotesDefinitions']),_0x48fe9c['push'](..._0x3fcfbb),_0x2582d['insert'](_0x3a1baa,_0x48fe9c[0x0],'before');for(const _0x5a627c of _0x48fe9c)_0x2582d['move'](_0x2582d['createRangeIn'](_0x5a627c),_0x2582d['createPositionAt'](_0x3a1baa,'end')),_0x2582d['remove'](_0x5a627c);this['_footnotesDefinitions']=_0x3a1baa,this['_updateFootnotesCounters'](_0x2582d),_0x26e82a=!0x0;}else this['_footnotesDefinitions']=_0x3fcfbb[0x0];}if(_0x34ea12['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x573764 of this['_footnotes'])_0x2582d['remove'](_0x573764['reference']),_0x26e82a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x26e82a;}['_handleFootnoteDefinitionsChanges'](_0x2ae09f,_0x2caf8a){let _0x4b36b7=!0x1;const _0x277dee=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2e430d,moved:_0x1a72c5}=this['_footnoteDefsTracker']['getChanges'](_0x2caf8a);for(const _0x54da42 of[..._0x1a72c5,..._0x2e430d]){const _0x35769d=_0x54da42['getAttribute']('footnoteId'),_0x33995f=this['getFootnote'](_0x35769d);_0x33995f&&(_0x33995f['definition']=_0x54da42),_(_0x2ae09f,_0x277dee,_0x54da42)&&(_0x4b36b7=!0x0);}return _0x4b36b7;}['_handleFootnoteReferencesChanges'](_0x376b14,_0x370b93){let _0x349d9c=!0x1;const {removed:_0xee37f3,inserted:_0x2d0d4a,moved:_0x23f85c}=this['_footnoteRefsTracker']['getChanges'](_0x370b93);for(const _0x20e8fd of _0xee37f3)this['_handleRemoveFootnoteReferenceById'](_0x376b14,_0x20e8fd)&&(_0x349d9c=!0x0);for(const _0x117d11 of _0x2d0d4a)this['_handleInsertedFootnoteReference'](_0x376b14,_0x117d11)&&(_0x349d9c=!0x0);for(const _0x3f7b3a of _0x23f85c)this['_handleMovedFootnoteReference'](_0x376b14,_0x3f7b3a)&&(_0x349d9c=!0x0);return _0x349d9c;}['_handleFootnotesDefinitionsObjectSync'](_0x35eb55){if(!this['_footnotesDefinitions'])return!0x1;let _0x275bcf=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x54041a=[];for(const _0x4b59eb of this['_footnotesDefinitions']['getChildren']()){const _0x4cebd1=_0x4b59eb['getAttribute']('footnoteId');this['getFootnote'](_0x4cebd1)||(_0x54041a['unshift'](_0x4b59eb),_0x275bcf=!0x0);}for(const _0x309c03 of _0x54041a)_0x35eb55['remove'](_0x309c03);}const _0x7fd544=new Set(),_0xa9422f=[];for(const _0x3ff8f0 of this['_footnotesDefinitions']['getChildren']()){const _0x15bb16=_0x3ff8f0['getAttribute']('footnoteId');_0x7fd544['has'](_0x15bb16)?(_0xa9422f['unshift'](_0x3ff8f0),_0x275bcf=!0x0):_0x7fd544['add'](_0x15bb16);}for(const _0x260d86 of _0xa9422f)_0x35eb55['remove'](_0x260d86);return this['_footnotesDefinitions']['childCount']||(_0x35eb55['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x275bcf=!0x0),_0x275bcf;}['_handleInsertedFootnoteReference'](_0x2ac3ca,_0x5447aa){if(this['_footnotes']['find'](_0x3f550d=>_0x3f550d['reference']===_0x5447aa))return!0x1;let _0x5a4346=!0x1;const _0x10f3c6=_0x5447aa['getAttribute']('footnoteId'),_0x3643fa=this['_footnotes']['findIndex'](_0x46d1a7=>_0x46d1a7['id']===_0x10f3c6);-0x1!==_0x3643fa&&(_0x2ac3ca['remove'](this['_footnotes'][_0x3643fa]['reference']),this['_footnotes']['splice'](_0x3643fa,0x1),_0x5a4346=!0x0);let _0x3f3f44=this['_footnotesDefinitions']?function(_0x1339cb,_0x4e4312){for(const _0xd18860 of _0x1339cb['getChildren']())if(_0xd18860['getAttribute']('footnoteId')===_0x4e4312)return _0xd18860;return null;}(this['_footnotesDefinitions'],_0x10f3c6):null;_0x3f3f44||(_0x3f3f44=_0x2ac3ca['createElement']('footnoteDefinition',{'footnoteId':_0x10f3c6}),this['_footnotesDefinitions']&&(_0x2ac3ca['insert'](_0x3f3f44,this['_footnotesDefinitions'],'end'),_0x5a4346=!0x0));const _0x5f071d={'id':_0x10f3c6,'reference':_0x5447aa,'definition':_0x3f3f44},_0x2fb86d=I(this['editor']['model'],this['_footnotes'],_0x5447aa);this['_footnotes']['splice'](_0x2fb86d,0x0,_0x5f071d);let _0x22a25c=_0x2fb86d;return-0x1!==_0x3643fa&&(_0x22a25c=Math['min'](_0x2fb86d,_0x3643fa)),this['_updateFootnotesCounters'](_0x2ac3ca,_0x22a25c)&&(_0x5a4346=!0x0),_0x5a4346;}['_handleRemoveFootnoteReferenceById'](_0x3a5814,_0x2ef3b5){const _0x1667a7=this['_footnotes']['findIndex'](_0x4915d=>_0x4915d['id']===_0x2ef3b5);if(-0x1===_0x1667a7)return!0x1;let _0x3c67ca=!0x1;const _0x2e7688=this['_footnotes'][_0x1667a7];return'$graveyard'!==_0x2e7688['definition']['root']['rootName']&&(_0x3a5814['remove'](_0x2e7688['definition']),_0x3c67ca=!0x0),this['_footnotes']['splice'](_0x1667a7,0x1),this['_updateFootnotesCounters'](_0x3a5814,_0x1667a7)&&(_0x3c67ca=!0x0),_0x3c67ca;}['_handleMovedFootnoteReference'](_0x2a2e3b,_0x1a0d82){const _0x3f7e38=_0x1a0d82['getAttribute']('footnoteId'),_0x44997a=this['_footnotes']['findIndex'](_0x47dcb6=>_0x47dcb6['id']===_0x3f7e38),_0x39b120=this['_footnotes'][_0x44997a];let _0xd90ddf=!0x1;_0x39b120['reference']=_0x1a0d82,this['_footnotes']['splice'](_0x44997a,0x1);const _0x52d11d=I(this['editor']['model'],this['_footnotes'],_0x1a0d82);return this['_footnotes']['splice'](_0x52d11d,0x0,_0x39b120),this['_updateFootnotesCounters'](_0x2a2e3b,Math['min'](_0x44997a,_0x52d11d))&&(_0xd90ddf=!0x0),_0xd90ddf;}['_updateFootnoteRefCounter'](_0x17d6fc,_0x188a9f){if(!this['_footnotesDefinitions'])return!0x1;const _0x18c2a8=this['_footnotes'][_0x188a9f];let _0x4e6f7f;return _0x4e6f7f=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x18c2a8,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x188a9f+0x1}):String(_0x188a9f+0x1),_0x18c2a8['reference']['getAttribute']('footnoteCounter')!=_0x4e6f7f&&(_0x17d6fc['setAttribute']('footnoteCounter',_0x4e6f7f,_0x18c2a8['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5531e2){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x67b631,_0x17c340){if(_0x67b631['length']!==_0x17c340['length'])return!0x1;for(let _0x46f257=0x0;_0x46f257<_0x67b631['length'];_0x46f257++)if(_0x67b631[_0x46f257]!==_0x17c340[_0x46f257])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x17c2dd=>_0x17c2dd['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3f5f6c=>_0x3f5f6c['getAttribute']('footnoteId'))))return!0x1;let _0xf7cfc1=!0x1;for(let _0x3cf8f9=0x0;_0x3cf8f9<this['_footnotes']['length'];_0x3cf8f9++){const _0xc513c9=this['_footnotes'][_0x3cf8f9],_0x5470ac=_0x5531e2['createPositionBefore'](_0xc513c9['definition']),_0x4eb5f9=_0x5531e2['createPositionAt'](this['_footnotesDefinitions'],_0x3cf8f9);_0x5470ac['isEqual'](_0x4eb5f9)||(_0x5531e2['move'](_0x5531e2['createRangeOn'](_0xc513c9['definition']),_0x4eb5f9),_0xf7cfc1=!0x0);}return _0xf7cfc1;}['_ensureFootnotesReferencesHaveProperOrder'](_0x453646){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4ffa09}=this['editor'];let _0x5b2aef=!0x1;for(let _0x556a78=0x0;_0x556a78<this['_footnotes']['length']-0x1;_0x556a78++){const _0x4d047a=this['_footnotes'][_0x556a78],_0x397bc3=this['_footnotes'][_0x556a78+0x1],_0x2e20e7=_0x4ffa09['createPositionBefore'](_0x4d047a['reference']),_0x22726f=_0x4ffa09['createPositionBefore'](_0x397bc3['reference']);'after'===_0x2e20e7['compareWith'](_0x22726f)&&(this['_handleMovedFootnoteReference'](_0x453646,_0x4d047a['reference']),_0x556a78=-0x1,_0x5b2aef=!0x0);}return _0x5b2aef;}}function _(_0x2f9783,_0x1f6684,_0x24b0b0){if(_0x24b0b0['childCount'])return!0x1;const _0x21b44a=_0x1f6684?'paragraph':'footnoteInlineContent';return _0x2f9783['insert'](_0x2f9783['createElement'](_0x21b44a),_0x24b0b0),!0x0;}function I(_0x55f236,_0x33f796,_0x3d5ea2){if(0x0===_0x33f796['length'])return 0x0;const _0x2b8e93=_0x55f236['createPositionBefore'](_0x3d5ea2);for(let _0x268af7=0x0;_0x268af7<_0x33f796['length'];_0x268af7++){const _0x3c71ac=_0x33f796[_0x268af7],_0x4b4a7e=_0x55f236['createPositionBefore'](_0x3c71ac['reference']);if('before'===_0x2b8e93['compareWith'](_0x4b4a7e))return _0x268af7;}const _0xc223eb=_0x3d5ea2['root'];let _0x4b57d3=-0x1;for(let _0x466585=_0x33f796['length']-0x1;_0x466585>=0x0;_0x466585--)if(_0x33f796[_0x466585]['reference']['root']===_0xc223eb){_0x4b57d3=_0x466585;break;}if(-0x1!==_0x4b57d3)return _0x4b57d3+0x1;const _0xe4de1a=_0x55f236['document']['getRootNames'](),_0xab6365=_0xe4de1a['indexOf'](_0xc223eb['rootName']),_0x18d436=_0xe4de1a[_0xab6365+0x1];if(_0x18d436){for(let _0x58b7f4=0x0;_0x58b7f4<_0x33f796['length'];_0x58b7f4++)if(_0x33f796[_0x58b7f4]['reference']['root']['rootName']===_0x18d436)return _0x58b7f4;}return _0x33f796['length'];}class h extends _0xc972ff{['refresh'](){const _0x3fca7b=this['editor']['model']['document']['selection'],_0x5a606e=this['_getPositionToInsertFootnote'](_0x3fca7b);this['isEnabled']=!!_0x5a606e;}['execute'](_0x5e4ca3){const {editor:_0xd0b1e6}=this,{model:_0x54c62f}=_0xd0b1e6,{selection:_0x5c93fb}=_0x54c62f['document'],_0x2411b4=this['_getPositionToInsertFootnote'](_0x5c93fb);if(!_0x2411b4)return;const _0x305623=_0xd0b1e6['plugins']['get']('FootnotesEditing'),_0x470812=_0x5e4ca3?.['footnoteId']??_0x3683aa();!function(_0x1aa8d9){return'string'==typeof _0x1aa8d9&&_0x1aa8d9['length']>0x0&&!/\s/['test'](_0x1aa8d9)&&!/^\d/['test'](_0x1aa8d9);}(_0x470812)?_0x5789e4('insert-footnote-command-executed-with-invalid-id'):(_0x54c62f['change'](_0x400c2e=>{const _0x348e0b=_0x400c2e['createElement']('footnoteRef',{'footnoteId':_0x470812});_0x54c62f['insertObject'](_0x348e0b,_0x2411b4,null);}),_0x305623['_moveSelectionToFootnoteDefinition'](_0x470812));}['_getPositionToInsertFootnote'](_0x161b35){const {model:_0x47b805}=this['editor'],{schema:_0x3e3fb7}=_0x47b805,_0x1c8cdc=_0x161b35['getFirstRange']();for(const _0x371b45 of _0x1c8cdc['getItems']())if(_0x3e3fb7['isBlock'](_0x371b45)||_0x3e3fb7['isObject'](_0x371b45))return null;const _0x15d658=_0x1c8cdc['end'];return _0x3e3fb7['checkChild'](_0x15d658,'footnoteRef')?_0x15d658:null;}}class r extends _0x1e86fb{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b62ec}=this;_0x5b62ec['config']['define']('footnotes.multiBlock',!0x0),_0x5b62ec['commands']['add']('insertFootnote',new h(_0x5b62ec)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x595818){const _0x58942c=_0x552ec9([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]),_0x535ad8=0x47a28506,_0x35d14b=0x47a5064e^_0x535ad8,_0x460adf=window[_0x552ec9([0x44,0x61,0x74,0x65])][_0x552ec9([0x6e,0x6f,0x77])](),_0x35ecc3=_0x595818[_0x552ec9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x331fbe=new window[(_0x552ec9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d7942=>{_0x35ecc3[_0x552ec9([0x6f,0x6e,0x63,0x65])](_0x552ec9([0x72,0x65,0x61,0x64,0x79]),_0x3d7942);}),_0x14fbd4={[_0x552ec9([0x6b,0x74,0x79])]:_0x552ec9([0x45,0x43]),[_0x552ec9([0x75,0x73,0x65])]:_0x552ec9([0x73,0x69,0x67]),[_0x552ec9([0x63,0x72,0x76])]:_0x552ec9([0x50,0x2d,0x32,0x35,0x36]),[_0x552ec9([0x78])]:_0x552ec9([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]),[_0x552ec9([0x79])]:_0x552ec9([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]),[_0x552ec9([0x61,0x6c,0x67])]:_0x552ec9([0x45,0x53,0x32,0x35,0x36])},_0x5da602=_0x35ecc3[_0x552ec9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x552ec9([0x67,0x65,0x74])](_0x552ec9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b9f2c(){let _0xc88247,_0x565bbe=null,_0x576ad9=null;try{if(_0x5da602==_0x552ec9([0x47,0x50,0x4c]))return _0x552ec9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc88247=_0x523ca9(),!_0xc88247)return _0x552ec9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc88247[_0x552ec9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x576ad9=_0x2037ff(_0xc88247[_0x552ec9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc88247[_0x552ec9([0x6a,0x74,0x69])])),await _0x22de06()?_0x3ae17d()?_0x24ae78()?_0x552ec9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x579d9e()?(_0xc88247[_0x552ec9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x552ec9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x565bbe=_0x1ac8f4(_0x552ec9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22fc04()):_0x552ec9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x552ec9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x552ec9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x552ec9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24ae78(){const _0x3a9160=[_0x552ec9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x552ec9([0x74,0x72,0x69,0x61,0x6c])][_0x552ec9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc88247[_0x552ec9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x460adf/0x3e8:0xe10*_0x35d14b;return _0xc88247[_0x552ec9([0x65,0x78,0x70])]<_0x3a9160;}function _0x3ae17d(){const _0x244d35=_0xc88247[_0x552ec9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x244d35&&(!!_0x244d35[_0x552ec9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552ec9([0x2a]))||!!_0x244d35[_0x552ec9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552ec9([0x46,0x4f,0x4f])));}function _0x579d9e(){const _0x6a1d6a=_0xc88247[_0x552ec9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6a1d6a||0x0==_0x6a1d6a[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33b6fa}=new URL(window[_0x552ec9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6a1d6a[_0x552ec9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33b6fa))return!0x0;const _0x8b31b9=_0x33b6fa[_0x552ec9([0x73,0x70,0x6c,0x69,0x74])](_0x552ec9([0x2e]));return _0x6a1d6a[_0x552ec9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57ded2=>_0x57ded2[_0x552ec9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552ec9([0x2a])))[_0x552ec9([0x6d,0x61,0x70])](_0x971043=>_0x971043[_0x552ec9([0x73,0x70,0x6c,0x69,0x74])](_0x552ec9([0x2e])))[_0x552ec9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44cb83=>_0x44cb83[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8b31b9[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x552ec9([0x6d,0x61,0x70])](_0x423710=>Array(_0x8b31b9[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x423710[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x552ec9([0x66,0x69,0x6c,0x6c])](_0x423710[0x0]===_0x552ec9([0x2a])?_0x552ec9([0x2a]):'')[_0x552ec9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x423710))[_0x552ec9([0x73,0x6f,0x6d,0x65])](_0x146208=>_0x8b31b9[_0x552ec9([0x65,0x76,0x65,0x72,0x79])]((_0x1d0b09,_0x40d966)=>_0x146208[_0x40d966]===_0x1d0b09||_0x146208[_0x40d966]===_0x552ec9([0x2a])));}function _0x22fc04(){return _0x565bbe&&_0x576ad9?new window[(_0x552ec9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x464c55,_0x27fc7f)=>{_0x565bbe[_0x552ec9([0x74,0x68,0x65,0x6e])](_0x464c55,_0x27fc7f),_0x576ad9[_0x552ec9([0x74,0x68,0x65,0x6e])](_0x330863=>{_0x330863!=_0x552ec9([0x56,0x61,0x6c,0x69,0x64])&&_0x464c55(_0x330863);},_0x27fc7f);}):_0x565bbe||_0x576ad9||_0x552ec9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2037ff(_0x402eed,_0x5aef0d){return new window[(_0x552ec9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x120f1b=>{if(_0x42a2aa())return _0x120f1b(_0x552ec9([0x56,0x61,0x6c,0x69,0x64]));_0x3839fd(),_0x35ecc3[_0x552ec9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x552ec9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4723c1=!0x1;const _0x3ad4f7=_0x3683aa();function _0x95d7e9(_0x5f43b9){return!!_0x5f43b9&&(typeof _0x5f43b9===_0x552ec9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f43b9===_0x552ec9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f43b9[_0x552ec9([0x74,0x68,0x65,0x6e])]===_0x552ec9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f43b9[_0x552ec9([0x63,0x61,0x74,0x63,0x68])]===_0x552ec9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x439eef(_0x46e725){_0x392577(_0x46e725)[_0x552ec9([0x74,0x68,0x65,0x6e])](_0x5cbf30=>{if(!_0x5cbf30||_0x5cbf30[_0x552ec9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x552ec9([0x6f,0x6b]))return _0x552ec9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11f7a9(_0x2dfad8(_0x3ad4f7+_0x5aef0d))!=_0x5cbf30[_0x552ec9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x552ec9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x552ec9([0x56,0x61,0x6c,0x69,0x64]);})[_0x552ec9([0x74,0x68,0x65,0x6e])](_0x277d3d=>(_0x53d24e(),_0x277d3d),()=>{const _0x163b30=_0x354be5();return null==_0x163b30?(_0x53d24e(),_0x552ec9([0x56,0x61,0x6c,0x69,0x64])):_0x552ec9(_0x460adf-_0x163b30>(0x63ae0106^_0x535ad8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x552ec9([0x74,0x68,0x65,0x6e])](_0x120f1b)[_0x552ec9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x120f1b(_0x552ec9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b8255=0x47946b86^_0x535ad8;function _0x53d24e(){const _0x53843f=_0x552ec9([0x6c,0x6c,0x63,0x74,0x2d])+_0x11f7a9(_0x2dfad8(_0x402eed)),_0x3ceac6=_0x3d21aa(_0x11f7a9(window[_0x552ec9([0x4d,0x61,0x74,0x68])][_0x552ec9([0x63,0x65,0x69,0x6c])](_0x460adf/_0x2b8255)));window[_0x552ec9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x552ec9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53843f,_0x3ceac6);}function _0x354be5(){const _0x801fea=_0x552ec9([0x6c,0x6c,0x63,0x74,0x2d])+_0x11f7a9(_0x2dfad8(_0x402eed)),_0x595c78=window[_0x552ec9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x552ec9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x801fea);return _0x595c78?window[_0x552ec9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d21aa(_0x595c78),0x10)*_0x2b8255:null;}function _0x392577(_0x146e3a){return new window[(_0x552ec9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ca303,_0x1c561e)=>{_0x146e3a[_0x552ec9([0x74,0x68,0x65,0x6e])](_0x2ca303,_0x1c561e),window[_0x552ec9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c561e,0x47a351c6^_0x535ad8);});}}_0x35ecc3[_0x552ec9([0x6f,0x6e])](_0x552ec9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29ca8b,_0x337dcf)=>{if(_0x337dcf[0x0]!=_0x402eed)return _0x120f1b(_0x552ec9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x337dcf[0x1]={..._0x337dcf[0x1],[_0x552ec9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ad4f7};},{[_0x552ec9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x552ec9([0x68,0x69,0x67,0x68])}),_0x35ecc3[_0x552ec9([0x6f,0x6e])](_0x552ec9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1dfe0d=>{_0x95d7e9(_0x1dfe0d[_0x552ec9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4723c1=!0x0,_0x439eef(_0x1dfe0d[_0x552ec9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x552ec9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x552ec9([0x6c,0x6f,0x77])}),_0x331fbe[_0x552ec9([0x74,0x68,0x65,0x6e])](()=>{_0x4723c1||_0x120f1b(_0x552ec9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42a2aa(){return _0x35ecc3[_0x552ec9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x552ec9([0x76,0x69,0x65,0x77])][_0x552ec9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x552ec9([0x61,0x75,0x74,0x6f]);}function _0x3839fd(){_0x35ecc3[_0x552ec9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x552ec9([0x76,0x69,0x65,0x77])][_0x552ec9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x552ec9([0x61,0x75,0x74,0x6f]);}}function _0x1ac8f4(_0x1fbce7){const _0x54898b=[new window[(_0x552ec9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ea9ca=>setTimeout(_0x1ea9ca,0x47abbbca^_0x535ad8)),_0x331fbe[_0x552ec9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x552ec9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c10d=>{let _0x303458=0x0;_0x35ecc3[_0x552ec9([0x6d,0x6f,0x64,0x65,0x6c])][_0x552ec9([0x6f,0x6e])](_0x552ec9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27e746,_0x5a694e)=>{_0x5a694e[0x0][_0x552ec9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x303458++,_0x303458==(0x47a280ee^_0x535ad8)&&(_0x26c10d(),_0x27e746[_0x552ec9([0x6f,0x66,0x66])]());});}))];return window[_0x552ec9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x552ec9([0x72,0x61,0x63,0x65])](_0x54898b)[_0x552ec9([0x74,0x68,0x65,0x6e])](()=>_0x1fbce7);}async function _0x486b9d(){await _0x331fbe,_0x35ecc3[_0x552ec9([0x6d,0x6f,0x64,0x65,0x6c])][_0x552ec9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25a73a,_0x35ecc3[_0x552ec9([0x6d,0x6f,0x64,0x65,0x6c])][_0x552ec9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25a73a,_0x35ecc3[_0x552ec9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x552ec9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x326213(_0x37569f){const _0x201160=_0x170095();_0x35ecc3[_0x201160]=_0x552ec9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37569f,_0x37569f!=_0x552ec9([0x56,0x61,0x6c,0x69,0x64])&&_0x486b9d();}function _0x170095(){const _0x46ed5f=window[_0x552ec9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x552ec9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x552ec9([0x6e,0x6f,0x77])]())[_0x552ec9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x552ec9([0x2e]),'');let _0x2fe740=_0x552ec9([0x75]);for(let _0x50d456=0x0;_0x50d456<_0x46ed5f[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50d456+=0x2){let _0x5c5309=window[_0x552ec9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46ed5f[_0x552ec9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50d456,_0x50d456+0x2));_0x5c5309>=_0x58942c[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c5309-=_0x58942c[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fe740+=_0x58942c[_0x5c5309];}return _0x2fe740;}function _0x523ca9(){const _0x48f804=_0x5da602[_0x552ec9([0x73,0x70,0x6c,0x69,0x74])](_0x552ec9([0x2e]));if(0x3!=_0x48f804[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x475eb1(_0x48f804[0x1]);function _0x475eb1(_0x1ce7d7){const _0x584238=_0x247c45(_0x1ce7d7);return _0x584238&&_0xbc7346()?_0x584238:null;function _0xbc7346(){const _0x4613f8=_0x584238[_0x552ec9([0x6a,0x74,0x69])],_0x3238c6=window[_0x552ec9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4613f8[_0x552ec9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4613f8[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x433f75={..._0x584238,[_0x552ec9([0x6a,0x74,0x69])]:_0x4613f8[_0x552ec9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4613f8[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x433f75[_0x552ec9([0x76,0x63])],_0x2dfad8(_0x433f75)==_0x3238c6;}}}async function _0x22de06(){let _0x450d80=!0x0;try{const _0x4d3c4f=_0x5da602[_0x552ec9([0x73,0x70,0x6c,0x69,0x74])](_0x552ec9([0x2e])),[_0x56ffdb,_0x3e24e8,_0xc463c7]=_0x4d3c4f;return _0x3ee64b(_0x56ffdb),await _0x463765(_0x56ffdb,_0x3e24e8,_0xc463c7),_0x450d80;}catch{return!0x1;}function _0x3ee64b(_0x4e653e){const _0x507ec3=_0x247c45(_0x4e653e);_0x507ec3&&_0x507ec3[_0x552ec9([0x61,0x6c,0x67])]==_0x552ec9([0x45,0x53,0x32,0x35,0x36])||(_0x450d80=!0x1);}async function _0x463765(_0x5129f9,_0x34f3ac,_0x170613){const _0x5635c0=window[_0x552ec9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x552ec9([0x66,0x72,0x6f,0x6d])](_0x241026(_0x170613),_0x5dffd1=>_0x5dffd1[_0x552ec9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b494a=new window[(_0x552ec9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x552ec9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5129f9+_0x552ec9([0x2e])+_0x34f3ac),_0x5c9cc4=window[_0x552ec9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x552ec9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c9cc4)return;const _0x19ae84=await _0x5c9cc4[_0x552ec9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x552ec9([0x6a,0x77,0x6b]),_0x14fbd4,{[_0x552ec9([0x6e,0x61,0x6d,0x65])]:_0x552ec9([0x45,0x43,0x44,0x53,0x41]),[_0x552ec9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x552ec9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x552ec9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c9cc4[_0x552ec9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x552ec9([0x6e,0x61,0x6d,0x65])]:_0x552ec9([0x45,0x43,0x44,0x53,0x41]),[_0x552ec9([0x68,0x61,0x73,0x68])]:{[_0x552ec9([0x6e,0x61,0x6d,0x65])]:_0x552ec9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19ae84,_0x5635c0,_0x4b494a)||(_0x450d80=!0x1);}}function _0x247c45(_0x5801d5){return _0x5801d5[_0x552ec9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x552ec9([0x65,0x79]))?JSON[_0x552ec9([0x70,0x61,0x72,0x73,0x65])](_0x241026(_0x5801d5)):null;}function _0x241026(_0x19af13){return window[_0x552ec9([0x61,0x74,0x6f,0x62])](_0x19af13[_0x552ec9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x552ec9([0x2b]))[_0x552ec9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x552ec9([0x2f])));}function _0x2dfad8(_0x497ffe){let _0xf46991=0x1505;function _0x3c16b4(_0x4edfeb){for(let _0x746f7a=0x0;_0x746f7a<_0x4edfeb[_0x552ec9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x746f7a++){const _0x2f44a2=_0x4edfeb[_0x552ec9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x746f7a);_0xf46991=(_0xf46991<<0x5)+_0xf46991+_0x2f44a2,_0xf46991&=_0xf46991;}}function _0x59d019(_0x1f24fc){Array[_0x552ec9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f24fc)?_0x1f24fc[_0x552ec9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59d019):_0x1f24fc&&typeof _0x1f24fc==_0x552ec9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x552ec9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f24fc)[_0x552ec9([0x73,0x6f,0x72,0x74])]()[_0x552ec9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x379667,_0x5740a0])=>{_0x3c16b4(_0x379667),_0x59d019(_0x5740a0);}):_0x3c16b4(window[_0x552ec9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f24fc));}return _0x59d019(_0x497ffe),_0xf46991>>>0x0;}function _0x11f7a9(_0x498b01){return _0x498b01[_0x552ec9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x552ec9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x552ec9([0x30]));}function _0x3d21aa(_0x2ecae2){return _0x2ecae2[_0x552ec9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x552ec9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x552ec9([0x6a,0x6f,0x69,0x6e])]('');}function _0x25a73a(){}function _0x552ec9(_0x474cec){return _0x474cec['map'](_0x180654=>String['fromCharCode'](_0x180654))['join']('');}_0x326213(await _0x3b9f2c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x30613e){const {plugins:_0xc3cc1e,editing:_0x15fc24,model:_0x58d3ad}=this['editor'],_0x5c6be8=_0xc3cc1e['get'](f)['getFootnote'](_0x30613e);return!!_0x5c6be8&&(_0x58d3ad['change'](_0x9212d=>{_0x9212d['setSelection'](_0x9212d['createPositionAt'](_0x5c6be8['definition'],'end'));}),_0x15fc24['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2dfa9e){const {plugins:_0x3af80d,editing:_0x53977e,model:_0xc64327}=this['editor'],_0x119768=_0x3af80d['get'](f)['getFootnote'](_0x2dfa9e);return!!_0x119768&&(_0xc64327['change'](_0x17abe8=>{_0x17abe8['setSelection'](_0x119768['reference'],'on');}),_0x53977e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5f34c3}=this['editor']['model'],_0x28814e=this['editor']['config']['get']('footnotes.multiBlock');_0x5f34c3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5f34c3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5f34c3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x28814e?_0x5f34c3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5f34c3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5f34c3['addChildCheck'](_0x5325dd=>{for(const _0x1d26d5 of _0x5325dd)if('footnoteDefinition'===_0x1d26d5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3444a0}=this,{conversion:_0x18d355,editing:_0xc543a1}=_0x3444a0,{t:t}=_0x3444a0['locale'];_0x18d355['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x230665,{writer:_0x19d4f9,consumable:_0x1f9e98})=>{const _0x21f3e6=_0x230665['getChild'](0x0);if(!_0x21f3e6||!_0x21f3e6['is']('element','a'))return null;const _0x8698fd=_0x21f3e6['getAttribute']('href')||'';if(!_0x8698fd['startsWith']('#'))return null;const _0x42ae13=_0x8698fd['replace'](/^#/,'');if(!_0x42ae13)return null;_0x1f9e98['consume'](_0x21f3e6,{'name':!0x0,'attributes':['href']});for(const {item:_0x4911c9}of _0xc543a1['view']['createRangeIn'](_0x21f3e6))_0x4911c9['is']('$textProxy')?_0x1f9e98['consume'](_0x4911c9['textNode'],{'name':!0x0}):_0x4911c9['is']('element')&&_0x1f9e98['consume'](_0x4911c9,{'name':!0x0});return _0x19d4f9['createElement']('footnoteRef',{'footnoteId':_0x42ae13});}}),_0x18d355['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xd5e7c6,{writer:_0x22f596})=>b(_0xd5e7c6,_0x22f596)}),_0x18d355['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1b9ca5,{writer:_0x183076})=>{const _0x253bdd=_0x1b9ca5['getAttribute']('footnoteCounter');return _0xb83a9(b(_0x1b9ca5,_0x183076),_0x183076,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x253bdd)});}});}['_defineDefinitionsConverters'](){const {editor:_0x180020}=this,{t:t}=_0x180020['locale'],{conversion:_0x3403ba}=_0x180020;_0x3403ba['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3403ba['for']('upcast')['add'](_0x3d5d46=>{_0x3d5d46['on']('element:ol',(_0x542018,_0x31a656,_0x53a3e4)=>{const _0x899d1b=_0x31a656['viewItem'];if(!_0x899d1b['hasClass']('footnotes-list')||!_0x31a656['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x53a3e4['consumable']['consume'](_0x899d1b,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2f7171,modelCursor:_0x12cb11}=_0x53a3e4['convertChildren'](_0x31a656['viewItem'],_0x31a656['modelCursor']);_0x31a656['modelRange']=_0x2f7171,_0x31a656['modelCursor']=_0x12cb11;}),_0x3d5d46['on']('element:hr',(_0x5cf7c4,_0x38e32f,_0x4292bf)=>{const _0x1f6654=_0x38e32f['viewItem'];_0x1f6654['hasClass']('footnotes-divider')&&_0x38e32f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4292bf['consumable']['consume'](_0x1f6654,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3403ba['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4376df,{writer:_0xb02364})=>D(_0xb02364)}),_0x3403ba['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x148364,{writer:_0x5222cb})=>{const _0x1acf58=D(_0x5222cb,{'data-footnotes-list-label':t('Footnotes')}),_0x256d79=_0xb83a9(_0x1acf58,_0x5222cb,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5222cb['setCustomProperty']('footnotesDefinitions',!0x0,_0x256d79),_0x256d79;}});}['_defineDefinitionConverters'](){const {editor:_0x59fcb5}=this,{conversion:_0x9c5b3c,locale:_0x3edc50}=_0x59fcb5,_0x2752fa=_0x59fcb5['config']['get']('footnotes.multiBlock');_0x9c5b3c['for']('upcast')['add'](_0x5d35ba=>{_0x5d35ba['on']('element:li',(_0x3bca1a,_0x4adbbd,_0x169e84)=>{const _0x238132=_0x4adbbd['viewItem'];if(!_0x238132['hasClass']('footnote-definition')||!_0x238132['getAttribute']('id'))return;const _0x487648=_0x238132['parent'];if(!_0x487648['is']('element','ol')||!_0x487648['hasClass']('footnotes-list'))return;if(!_0x169e84['consumable']['test'](_0x238132,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5e62c6=_0x169e84['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x238132['getAttribute']('id')});if(!_0x169e84['safeInsert'](_0x5e62c6,_0x4adbbd['modelCursor']))return;_0x169e84['consumable']['consume'](_0x238132,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5a4b51=Array['from'](_0x238132['getChildren']())['find'](_0x1f6bbf=>_0x1f6bbf['is']('element')&&_0x1f6bbf['hasClass']('footnote-content'));for(const _0x2f9fe1 of _0x238132['getChildren']())_0x2f9fe1['is']('element')&&(_0x169e84['consumable']['consume'](_0x2f9fe1,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x169e84['consumable']['consume'](_0x2f9fe1,{'name':!0x0,'classes':'footnote-content'}));if(_0x5a4b51){if(_0x2752fa)_0x169e84['convertChildren'](_0x5a4b51,_0x5e62c6);else{const _0x4627fa=_0x169e84['writer']['createElement']('footnoteInlineContent');_0x169e84['writer']['insert'](_0x4627fa,_0x5e62c6),_0x169e84['convertChildren'](_0x5a4b51,_0x4627fa);}}_0x169e84['updateConversionResult'](_0x5e62c6,_0x4adbbd);});}),_0x9c5b3c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x472298,{writer:_0xa1b13d})=>y(_0x472298,_0xa1b13d,_0x3edc50,{'dataPipeline':!0x0})}),_0x9c5b3c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2c26da,{writer:_0xfb4cb7})=>y(_0x2c26da,_0xfb4cb7,_0x3edc50)});}['_defineBogusParagraphConverters'](){const {editor:_0x3d9ade}=this,{conversion:_0x526932}=_0x3d9ade;_0x3d9ade['config']['get']('footnotes.multiBlock')?(_0x526932['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x526932['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3d9ade['model']['document'],'change:data',()=>{!function(_0x177493,_0x4c6ea0){const _0x12bde1=_0x177493['document']['differ'],_0x599449=new Set();for(const _0xd0dfa of _0x12bde1['getChanges']()){const _0xd717e0='attribute'==_0xd0dfa['type']?_0xd0dfa['range']['start']['parent']:_0xd0dfa['position']['parent'];_0xd717e0['is']('element','footnoteDefinition')&&_0x599449['add'](_0xd717e0);}for(const _0x45f9f1 of _0x599449['values']()){const _0x145242=Array['from'](_0x45f9f1['getChildren']())['filter'](_0x986149=>v(_0x986149,_0x4c6ea0['mapper']));for(const _0x46abf6 of _0x145242)_0x4c6ea0['reconvertItem'](_0x46abf6);}}(_0x3d9ade['model'],_0x3d9ade['editing']);})):(_0x526932['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x526932['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x283d0d,{writer:_0x3c572b})=>{const _0x29c132=_0x3c572b['createContainerElement']('span');return _0x3c572b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29c132),_0x29c132;}}));}['_defineKeyboardHandlers'](){const {editor:_0x489c77}=this,{editing:_0x369127,t:t}=_0x489c77,_0x4bf116=_0x489c77['model']['document']['selection'];_0x489c77['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x489c77['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x369127['view']['document'],'enter',(_0x51e2f0,_0xbc5a2e)=>{const _0x25d4d1=function(_0x292433){const _0x252652=_0x292433['getSelectedElement']();if(_0x252652?.['is']('element','footnoteRef'))return _0x252652;return null;}(_0x4bf116);if(_0x25d4d1){const _0x14e694=_0x25d4d1['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x14e694),_0xbc5a2e['preventDefault'](),_0x51e2f0['stop']();}},{'context':_0xc67125});}['_defineClickHandlers'](){const {editor:_0x260822}=this,{editing:_0xacb627}=_0x260822;_0x260822['editing']['view']['addObserver'](_0x410daa),_0x260822['editing']['view']['addObserver'](_0x3fed23);let _0x1b5139=!0x1;this['listenTo'](_0xacb627['view']['document'],'pointerdown',(_0x45f0be,_0x5a1c0b)=>{const {target:_0x1db151}=_0x5a1c0b,_0x3b1d20=_0xacb627['view']['document']['selection'];_0x1b5139=!!(_0x1db151?.['is']('element','a')&&_0x1db151['parent']?.['is']('element','sup')&&_0x1db151['parent']['hasClass']('footnote'))&&_0x3b1d20['getSelectedElement']()===_0x1db151['parent'];},{'priority':'high'}),this['listenTo'](_0xacb627['view']['document'],'click',(_0xb2c40,_0x4c8ef7)=>{const {target:_0x2f1bc7}=_0x4c8ef7;if(!_0x2f1bc7?.['is']('element','a'))return;if(_0x2f1bc7['parent']?.['is']('element','sup')&&_0x2f1bc7['parent']['hasClass']('footnote')&&!_0x1b5139)return void _0x4c8ef7['preventDefault']();let _0x291fac=_0x2f1bc7['getAttribute']('href');if(!_0x291fac?.['startsWith']('#'))return;_0x291fac=_0x291fac['slice'](0x1);let _0x15562c=!0x1;(_0x291fac['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x291fac['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x291fac))&&(_0x15562c=!0x0),_0x15562c&&(_0x4c8ef7['preventDefault'](),_0xb2c40['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2eec7b}={}){return(_0x55ed48,{writer:_0x2814b5})=>{if(!g(_0x55ed48))return null;if(!_0x2eec7b)return _0x2814b5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x274eaf=_0x2814b5['createContainerElement']('p');return _0x2814b5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x274eaf),_0x274eaf;};}function g(_0x82cfb3){const {parent:_0x2c27af}=_0x82cfb3;if(!_0x2c27af?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2c27af['childCount'])return!0x1;for(const _0x13f887 of _0x82cfb3['getAttributeKeys']())if(!_0x13f887['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x13f887)return!0x1;return!0x0;}function v(_0x531cb9,_0x172470){if(!_0x531cb9['is']('element','paragraph'))return!0x1;const _0xcab433=_0x172470['toViewElement'](_0x531cb9);return!!_0xcab433&&g(_0x531cb9)!==_0xcab433['is']('element','span');}function H(_0x1733ff){return _0xc67125(_0x1733ff)&&_0x1733ff['is']('containerElement')&&!!_0x1733ff['getCustomProperty']('footnotesDefinitions');}function D(_0x2b432b,_0x44857b={}){const _0x442fb8=_0x2b432b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xde7235=_0x2b432b['createContainerElement']('ol',{'class':'footnotes-list'},_0x2b432b['createSlot']());return _0x2b432b['createContainerElement']('div',{'class':'footnotes',..._0x44857b},[_0x442fb8,_0xde7235]);}function b(_0x8fefe0,_0x37db7a){const _0x3f61da=_0x8fefe0['getAttribute']('footnoteId'),_0x8c231c=_0x8fefe0['getAttribute']('footnoteCounter'),_0x15c636=_0x37db7a['createUIElement']('a',{'href':'#'+_0x3f61da},function(_0x1dc4be){const _0x5c1387=this['toDomElement'](_0x1dc4be);return _0x5c1387['textContent']=_0x8c231c,_0x5c1387;}),_0x16cd1e=_0x37db7a['createContainerElement']('sup',{'id':'ref-'+_0x3f61da,'class':'footnote'},[_0x15c636]);return _0x16cd1e['getFillerOffset']=()=>null,_0x16cd1e;}function y(_0x577356,_0x2887a1,_0x7e221,{dataPipeline:_0x12af1b}={}){const {t:t}=_0x7e221,_0x2d4378=_0x577356['getAttribute']('footnoteId'),_0x1466ad=_0x2887a1['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2d4378},function(_0x21862d){const _0xe97200=this['toDomElement'](_0x21862d);return _0xe97200['innerText']='^',_0xe97200;}),_0x214f48=_0x12af1b?_0x2887a1['createContainerElement']('div',{'class':'footnote-content'}):_0x1a34c6(_0x2887a1['createEditableElement']('div',{'class':'footnote-content'}),_0x2887a1,{'label':t('Footnote\x20content.')});return _0x2887a1['insert'](_0x2887a1['createPositionAt'](_0x214f48,0x0),_0x2887a1['createSlot']()),_0x2887a1['createContainerElement']('li',{'class':'footnote-definition','id':_0x2d4378},[_0x1466ad,_0x214f48]);}class e extends _0x1e86fb{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4cb0d0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x50c3aa}=this,{plugins:_0x5aff5a,model:_0x35c7fb}=_0x50c3aa,_0x468e0f=_0x5aff5a['get'](_0x4cb0d0),_0x26a4da=_0x5aff5a['get'](f);this['listenTo'](_0x468e0f,'outputTransformation',(_0x1635cc,_0x20da5a)=>{const _0x52e489=l(_0x35c7fb['createRangeIn'](_0x20da5a['content']));if(!_0x52e489['length'])return;const _0x7d5cf0=_0x26a4da['getFootnotes'](),_0x13f9a1=_0x52e489['reduce']((_0x58f589,_0x22fd99)=>{const _0x4e655a=_0x7d5cf0['find'](_0x1d14a5=>_0x1d14a5['id']===_0x22fd99);if(_0x4e655a){const _0x17d081=_0x50c3aa['data']['toView'](_0x4e655a['definition'],{'isClipboardPipeline':!0x0}),_0x10f397=_0x50c3aa['data']['htmlProcessor']['toData'](_0x17d081);_0x58f589[_0x4e655a['id']]=_0x10f397;}return _0x58f589;},Object['create'](null));_0x20da5a['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x13f9a1));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x13975d}=this,{model:_0x4db3b1,plugins:_0x23cb17}=_0x13975d,{view:_0x10a15a}=_0x13975d['editing'],_0xee4676=_0x23cb17['get'](_0x4cb0d0),_0x3611ec=_0x23cb17['get'](f),_0x5bc6d9=_0x13975d['config']['get']('footnotes.multiBlock');let _0x222ffb=null;this['listenTo'](_0x10a15a['document'],'clipboardInput',(_0x28b801,_0x128087)=>{const _0x3ba025=_0x128087['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x222ffb=_0x3ba025?JSON['parse'](_0x3ba025):null;}),this['listenTo'](_0xee4676,'contentInsertion',(_0x15c09e,_0x318618)=>{const _0x2a2282=_0x318618['sourceEditorId']===this['editor']['id'];_0x2a2282&&'drop'===_0x318618['method']||_0x4db3b1['change'](_0x4d5e44=>{let _0x111b37=_0x3611ec['getFootnotesDefinitionsObjectElement']();const _0x1167c7=!!_0x111b37&&Array['from'](_0x4db3b1['document']['selection']['getSelectedBlocks']())['includes'](_0x111b37);if(!_0x222ffb&&function(_0x36101c){for(const {item:_0x594d5f}of _0x36101c)if(_0x594d5f['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4db3b1['createRangeIn'](_0x318618['content']))&&(_0x222ffb=function(_0x23059c,_0xecba3e){const _0x108f68=c(_0x23059c,_0xecba3e);if(!_0x108f68)return null;const _0x361030=Object['create'](null);for(const _0x65f076 of _0x108f68['getChildren']())_0x65f076['is']('element','footnoteDefinition')&&_0x65f076['hasAttribute']('footnoteId')&&(_0x361030[_0x65f076['getAttribute']('footnoteId')]=_0x23059c['cloneElement'](_0x65f076,!0x0));return Object['keys'](_0x361030)['length']?_0x361030:null;}(_0x4d5e44,_0x318618['content'])),(_0x111b37&&!_0x1167c7||!_0x111b37&&!_0x222ffb)&&function(_0x11ffb3,_0x1303bb){const _0x55aaf3=[];for(const {item:_0x1a9b0d}of _0x11ffb3['createRangeIn'](_0x1303bb))_0x1a9b0d['is']('element','footnotesDefinitions')&&_0x55aaf3['push'](_0x1a9b0d);for(const _0x50a615 of _0x55aaf3)_0x11ffb3['remove'](_0x50a615);}(_0x4d5e44,_0x318618['content']),!_0x222ffb)return;const {selection:_0x1c72b4}=_0x4db3b1['document'],_0x26cf99=_0x1c72b4['getFirstRange']()['root'];_0x111b37&&!_0x1167c7||(_0x111b37=c(_0x4d5e44,_0x318618['content']),_0x111b37||=_0x3611ec['_insertEmptyFootnotesDefinitionsContainer'](_0x4d5e44,_0x26cf99));const _0x31dbf8=Array['from'](_0x1c72b4['getRanges']())['flatMap'](l),_0x4a6a00=function(_0x111e5b,_0x1d84c0,_0x4853c9){const _0x10ea9f=Object['create'](null);for(const {item:_0x312c33}of _0x111e5b['createRangeIn'](_0x1d84c0))if(_0x312c33['is']('element','footnoteRef')){const _0x5a1d1b=_0x312c33['getAttribute']('footnoteId');if(!_0x4853c9(_0x5a1d1b))continue;_0x10ea9f[_0x5a1d1b]||(_0x10ea9f[_0x5a1d1b]=_0x3683aa()),_0x111e5b['setAttribute']('footnoteId',_0x10ea9f[_0x5a1d1b],_0x312c33);}return _0x10ea9f;}(_0x4d5e44,_0x318618['content'],_0x489195=>{if(!_0x2a2282)return!0x0;return!!_0x3611ec['getFootnote'](_0x489195)&&!_0x31dbf8['includes'](_0x489195);});for(const [_0x10295a,_0x44cef5]of Object['entries'](_0x222ffb)){const _0x471b7d=_0x4a6a00[_0x10295a]||_0x10295a;let _0x297e4f;if('string'!=typeof _0x44cef5)_0x297e4f=_0x44cef5,_0x471b7d!==_0x10295a&&_0x4d5e44['setAttribute']('footnoteId',_0x471b7d,_0x297e4f);else{_0x297e4f=_0x4d5e44['createElement']('footnoteDefinition',{'footnoteId':_0x471b7d});const _0x3d07f7=_0x13975d['data']['htmlProcessor']['toView'](_0x44cef5);let _0xa1ad47;if(_0x5bc6d9)_0xa1ad47=_0x13975d['data']['toModel'](_0x3d07f7,_0x297e4f);else{_0xa1ad47=_0x4d5e44['createElement']('footnoteInlineContent');const _0xe6c31b=_0x13975d['data']['toModel'](_0x3d07f7,_0xa1ad47);_0x4d5e44['insert'](_0xe6c31b,_0xa1ad47);}_0x4d5e44['append'](_0xa1ad47,_0x297e4f);}_0x4d5e44['insert'](_0x297e4f,_0x111b37,'end');}_0x222ffb=null;});});}}function c(_0x2e4bc4,_0xb8bc1f){for(const {item:_0x30ad36}of _0x2e4bc4['createRangeIn'](_0xb8bc1f))if(_0x30ad36['is']('element','footnotesDefinitions'))return _0x30ad36;return null;}function l(_0xdd86ba){const _0x56b42c=new Set();for(const {item:_0x2fa4d6}of _0xdd86ba)_0x2fa4d6['is']('element','footnoteRef')&&_0x56b42c['add'](_0x2fa4d6['getAttribute']('footnoteId'));return Array['from'](_0x56b42c);}class i extends _0x1e86fb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x271a51}=this,{componentFactory:_0xe06b5a}=_0x271a51['ui'];_0xe06b5a['add']('insertFootnote',E(_0x271a51,_0x1d9f7f)),_0xe06b5a['add']('menuBar:insertFootnote',E(_0x271a51,_0x4cacf7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd50a73=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49701e;for(const _0x36b711 in _0xd50a73){const _0x4d16af=_0x36b711,_0x133f5e=_0xd50a73[_0x4d16af];if('footnotesLicenseKeyValid'==_0x133f5e||'footnotesLicenseKeyInvalid'==_0x133f5e||'footnotesLicenseKeyExpired'==_0x133f5e||'footnotesLicenseKeyDomainLimit'==_0x133f5e||'footnotesLicenseKeyNotAllowed'==_0x133f5e||'footnotesLicenseKeyEvaluationLimit'==_0x133f5e||'footnotesLicenseKeyUsageLimit'==_0x133f5e){delete _0xd50a73[_0x4d16af],_0x49701e=_0x133f5e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x49701e&&_0xd50a73['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x49701e&&_0xd50a73['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x49701e&&_0xd50a73['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x49701e&&_0xd50a73['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x49701e&&_0xd50a73['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x49701e&&_0xd50a73['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x39b296,_0x3ef6b8){const _0x25ad4c=_0x39b296['commands']['get']('insertFootnote');return _0x486611=>{const {t:t}=_0x486611,_0x572de3=new _0x3ef6b8(_0x486611),_0x5f4be7=_0x572de3 instanceof _0x4cacf7;return _0x572de3['bind']('isEnabled')['to'](_0x25ad4c,'isEnabled'),_0x572de3['set']({'label':t(_0x5f4be7?'Footnote':'Insert\x20footnote'),'icon':_0x4d42b6,'tooltip':!0x0}),_0x572de3['on']('execute',()=>{_0x25ad4c['execute'](),_0x39b296['editing']['view']['focus']();}),_0x572de3;};}class lt extends _0x1e86fb{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0xc972ff{['refresh'](){const {editor:_0x3f0b98}=this,_0x2cfc89=_0x3f0b98['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2cfc89,this['value']=_0x2cfc89?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5115a9}){const {editor:_0x276d86}=this,_0x50b8a6=_0x276d86['plugins']['get'](f),_0x203947=_0x50b8a6['getFootnotesDefinitionsObjectElement']();_0x203947&&W['includes'](_0x5115a9)&&_0x276d86['model']['change'](_0x4cb680=>{_0x4cb680['setAttribute']('footnotesListStyle',_0x5115a9,_0x203947),_0x50b8a6['_updateFootnotesCounters'](_0x4cb680);});}}class C extends _0xc972ff{['refresh'](){const {editor:_0x4b920f}=this,_0x306ff9=_0x4b920f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x306ff9,this['value']=_0x306ff9?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x344b5b}){const {editor:_0x4186e4}=this,_0x4e1171=_0x4186e4['plugins']['get'](f),_0x33b58f=_0x4e1171['getFootnotesDefinitionsObjectElement']();_0x33b58f&&Number['isInteger'](_0x344b5b)&&_0x4186e4['model']['change'](_0x44391c=>{_0x44391c['setAttribute']('footnotesListStart',_0x344b5b,_0x33b58f),_0x4e1171['_updateFootnotesCounters'](_0x44391c);});}}class P extends _0x1e86fb{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x130539}=this;_0x130539['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x130539['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x130539['commands']['add']('footnotesStyle',new S(_0x130539)),_0x130539['commands']['add']('footnotesStart',new C(_0x130539)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5e6ccd}=this,{schema:_0x58e31c}=_0x5e6ccd['model'];_0x58e31c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x3e599a}=this,{conversion:_0x1680c4,model:_0x17fd7d}=_0x3e599a,{schema:_0x2989f3}=_0x17fd7d;_0x1680c4['for']('upcast')['add'](_0x90b8e=>{_0x90b8e['on']('element:ol',(_0x1a64e2,_0x17504f,_0x576c29)=>{const _0x56a08e=_0x17504f['viewItem'],_0x18d135=_0x17504f['modelCursor']?.['parent'];_0x56a08e['hasClass']('footnotes-list')&&_0x18d135?.['is']('element','footnotesDefinitions')&&(function(_0x185635,_0x50bdb7,_0x245b09,_0xbac49a){if(!_0xbac49a['checkAttribute'](_0x50bdb7,'footnotesListStart'))return;let _0x244c89=0x1;const _0x1423c2=_0x245b09['consumable']['consume'](_0x185635,{'attributes':'start'});if(_0x1423c2){const _0x2c019c=Number['parseInt'](_0x185635['getAttribute']('start'),0xa);Number['isNaN'](_0x2c019c)||(_0x244c89=_0x2c019c);}!_0x1423c2&&_0x50bdb7['hasAttribute']('footnotesListStart')||_0x245b09['writer']['setAttribute']('footnotesListStart',_0x244c89,_0x50bdb7);}(_0x56a08e,_0x18d135,_0x576c29,_0x2989f3),function(_0x46f613,_0x44404c,_0x4b97ce,_0x34b8f7){if(!_0x34b8f7['checkAttribute'](_0x44404c,'footnotesListStyle'))return;let _0x3c63c9='decimal',_0x277eff=!0x1;if(_0x4b97ce['consumable']['consume'](_0x46f613,{'attributes':'type'})){const _0xcaad29={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x46f613['getAttribute']('type')];_0xcaad29&&(_0x3c63c9=_0xcaad29),_0x277eff=!0x0;}_0x4b97ce['consumable']['consume'](_0x46f613,{'styles':'list-style-type'})&&(_0x3c63c9=function(_0x518f45){switch(_0x518f45){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x518f45;}}(_0x46f613['getStyle']('list-style-type')),_0x277eff=!0x0),!_0x277eff&&_0x44404c['hasAttribute']('footnotesListStyle')||_0x4b97ce['writer']['setAttribute']('footnotesListStyle',_0x3c63c9,_0x44404c);}(_0x56a08e,_0x18d135,_0x576c29,_0x2989f3));});}),_0x1680c4['for']('downcast')['add'](_0x1dd087=>{_0x1dd087['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x325a68,_0x34614c,_0x1d17a6)=>{if(!_0x1d17a6['consumable']['consume'](_0x34614c['item'],_0x325a68['name']))return;const _0x2e715c=M(_0x34614c['item'],_0x1d17a6['mapper']),{attributeNewValue:_0x39d129}=_0x34614c;null==_0x39d129||0x1===_0x39d129?_0x1d17a6['writer']['removeAttribute']('start',_0x2e715c):_0x1d17a6['writer']['setAttribute']('start',String(_0x39d129),_0x2e715c);}),_0x1dd087['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x55bd74,_0x36026c,_0x749482)=>{if(!_0x749482['consumable']['consume'](_0x36026c['item'],_0x55bd74['name']))return;const _0x4c6495=M(_0x36026c['item'],_0x749482['mapper']),{attributeNewValue:_0x31848d}=_0x36026c;_0x31848d&&'decimal'!==_0x31848d?_0x749482['writer']['setStyle']('list-style-type',_0x31848d,_0x4c6495):_0x749482['writer']['removeStyle']('list-style-type',_0x4c6495);});});}['_definePostfixer'](){const {editor:_0x65c65a}=this,{model:_0x2864ce}=_0x65c65a,_0x49e5c4=_0x65c65a['plugins']['get'](f),_0x22241d=this['_getDefaultListStyle'](),_0x5bfc35=this['_getDefaultStartIndex']();_0x2864ce['document']['registerPostFixer'](_0x3fa0d3=>{const _0x7f0ec9=_0x2864ce['document']['differ']['getChanges']();let _0x59e7e6=!0x1;for(const _0x541beb of _0x7f0ec9){if('insert'!==_0x541beb['type']||'$text'===_0x541beb['name'])continue;const _0x45f474=_0x2864ce['createRangeOn'](_0x541beb['position']['nodeAfter']);for(const _0x4d14a0 of _0x45f474['getItems']())_0x4d14a0['is']('element','footnotesDefinitions')&&(!_0x4d14a0['hasAttribute']('footnotesListStart')&&_0x2864ce['schema']['checkAttribute'](_0x4d14a0,'footnotesListStart')&&(_0x3fa0d3['setAttribute']('footnotesListStart',_0x5bfc35,_0x4d14a0),_0x59e7e6=!0x0),!_0x4d14a0['hasAttribute']('footnotesListStyle')&&_0x2864ce['schema']['checkAttribute'](_0x4d14a0,'footnotesListStyle')&&(_0x3fa0d3['setAttribute']('footnotesListStyle',_0x22241d,_0x4d14a0),_0x59e7e6=!0x0));}return _0x59e7e6&&_0x49e5c4['_updateFootnotesCounters'](_0x3fa0d3),_0x59e7e6;});}['_defineFormatter'](){const {editor:_0x37323b}=this;_0x37323b['plugins']['get'](f)['setFootnoteFormatter'](_0x5c04bc=>this['_formatFootnoteListValue'](_0x5c04bc));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x579e3d,value:_0x5ab7d2,digits:_0x2c0c98}){const _0x39e634=_0x579e3d['getAttribute']('footnotesListStyle'),_0x43feee=_0x579e3d['getAttribute']('footnotesListStart'),_0x33e635=Math['floor'](_0x5ab7d2)+(_0x43feee??0x1)-0x1;switch(_0x39e634){case'decimal-leading-zero':return function(_0x24ad84,_0x2abce8){return String(_0x24ad84)['padStart'](_0x2abce8,'0');}(_0x33e635,Math['max'](0x2,_0x2c0c98));case'lower-alpha':case'lower-latin':return N(_0x33e635,!0x1);case'upper-alpha':case'upper-latin':return N(_0x33e635,!0x0);case'lower-roman':return X(_0x33e635,!0x1);case'upper-roman':return X(_0x33e635,!0x0);default:return String(_0x33e635);}}}function M(_0x47ea58,_0x4fe4f7){const _0x1db4e1=_0x4fe4f7['toViewElement'](_0x47ea58);return Array['from'](_0x1db4e1['getChildren']())['find'](_0x334271=>_0x334271['is']('element','ol')&&_0x334271['hasClass']('footnotes-list'));}function N(_0x246418,_0x57bdff){let _0x109ca5='',_0x57ec27=_0x246418;for(;_0x57ec27>0x0;){const _0x33d67b=(_0x57ec27-0x1)%0x1a;_0x109ca5=String['fromCharCode'](0x61+_0x33d67b)+_0x109ca5,_0x57ec27=Math['floor']((_0x57ec27-0x1)/0x1a);}return _0x57bdff?_0x109ca5['toUpperCase']():_0x109ca5;}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(_0x164f2d,_0x578107){let _0x5b9b11='',_0x44e884=_0x164f2d;for(const {value:_0x24ccf4,numeral:_0x8f0241}of V)for(;_0x44e884>=_0x24ccf4;)_0x5b9b11+=_0x8f0241,_0x44e884-=_0x24ccf4;return _0x578107?_0x5b9b11:_0x5b9b11['toLowerCase']();}class $ extends _0x256419{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1f5a9c();['focusCycler'];constructor(_0x57fc96,{styleButtonViews:_0x42ab8d,styleGridAriaLabel:_0x384c76}){super(_0x57fc96),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x42ab8d,_0x384c76),[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 _0x49b8d3 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x49b8d3['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x37cdc9=_0x1dbc06=>_0x1dbc06['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37cdc9),this['keystrokes']['set']('arrowleft',_0x37cdc9),this['keystrokes']['set']('arrowup',_0x37cdc9),this['keystrokes']['set']('arrowdown',_0x37cdc9);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1c128d,_0x4fa336){const _0x32fbb9=new _0x256419(this['locale']);return _0x32fbb9['children']=_0x32fbb9['createCollection'](),_0x32fbb9['children']['addMany'](_0x1c128d),_0x32fbb9['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4fa336,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x32fbb9['children']}),_0x32fbb9['children']['delegate']('execute')['to'](this),_0x32fbb9['focus']=function(){for(const _0x2520f6 of this['children'])if(_0x2520f6 instanceof _0x1d9f7f&&_0x2520f6['isOn'])return void _0x2520f6['focus']();this['children']['first']['focus']();},_0x32fbb9['focusTracker']=new rt(),_0x32fbb9['keystrokes']=new nt(),_0x32fbb9['render'](),_0x32fbb9['keystrokes']['listenTo'](_0x32fbb9['element']),this['children']['add'](_0x32fbb9),_0x32fbb9;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x56101c=this['_createStartIndexPropertyView'](),_0x588d06=[_0x56101c],_0x547c2f=new it(this['locale'],_0x588d06);return _0x547c2f['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x547c2f['buttonView']['bind']('isEnabled')['toMany'](_0x588d06,'isEnabled',(..._0x5ebd94)=>_0x5ebd94['some'](_0x5ac96e=>_0x5ac96e)),_0x547c2f['buttonView']['on']('change:isEnabled',(_0x283984,_0x42f890,_0x195c62)=>{_0x195c62||(_0x547c2f['isCollapsed']=!0x0);}),this['children']['add'](_0x547c2f),[_0x56101c,_0x547c2f];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3e5a54=new et(this['locale'],ot);return _0x3e5a54['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3e5a54['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3e5a54['fieldView']['on']('input',()=>{const _0x788da2=_0x3e5a54['fieldView']['element'],_0x1072ed=_0x788da2['valueAsNumber'];Number['isNaN'](_0x1072ed)?_0x3e5a54['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x788da2['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1072ed}):_0x3e5a54['errorText']=t(_0x1072ed<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3e5a54;}}class j extends _0x1e86fb{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x470bf6,_0x18d705];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ac350}=this,{componentFactory:_0x1468c1}=_0x4ac350['ui'];_0x4ac350['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1468c1['add']('footnotesStyle',function(_0x124af5){return _0x478122=>{const {t:t}=_0x478122,_0x2e89e0=_0x124af5['commands']['get']('footnotesStyle'),_0x55d3d0=_0x502064(_0x478122),{buttonView:_0x267791}=_0x55d3d0;return _0x55d3d0['class']='ck-footnotes-styles-dropdown',_0x55d3d0['bind']('isEnabled')['to'](_0x2e89e0,'isEnabled'),_0x267791['set']({'label':t('Footnotes\x20style'),'icon':_0x4d42b6,'tooltip':!0x0}),_0x55d3d0['once']('change:isOpen',()=>{const _0x17e761=function({editor:_0x23ee40,dropdownView:_0x156efd}){const {t:t}=_0x23ee40['locale'],_0xe07a40=t('Footnotes\x20definitions\x20styles'),_0x13e7ee=function(_0x46e70e){const t=_0x46e70e['locale']['t'],_0x4159b4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x345575},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xdb55dd},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2bc98f},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5abd28},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3bd6e8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x29339b}];return _0x4159b4['map'](function(_0x4948f0){const _0x197354=_0x4948f0['locale'];return({label:_0x23f011,icon:_0x221550,tooltip:_0x3d2677,style:_0x368c4d})=>{const _0x515d09=_0x4948f0['commands']['get']('footnotesStyle'),_0x64cd93=new _0x1d9f7f(_0x197354);return _0x64cd93['set']({'label':_0x23f011,'icon':_0x221550,'tooltip':_0x3d2677}),_0x64cd93['bind']('isOn')['to'](_0x515d09,'value',_0x245d14=>_0x245d14===_0x368c4d),_0x64cd93['bind']('isEnabled')['to'](_0x515d09,'isEnabled'),_0x64cd93['on']('execute',()=>{_0x4948f0['execute']('footnotesStyle',{'value':_0x368c4d}),_0x4948f0['editing']['view']['focus']();}),_0x64cd93;};}(_0x46e70e));}(_0x23ee40),_0x401e9b=new $(_0x23ee40['locale'],{'styleGridAriaLabel':_0xe07a40,'styleButtonViews':_0x13e7ee}),_0x10fdf6=_0x23ee40['commands']['get']('footnotesStart');return _0x401e9b['startIndexFieldView']['bind']('isEnabled')['to'](_0x10fdf6),_0x401e9b['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x10fdf6),_0x401e9b['on']('footnotesListStart',(_0x279ddc,_0xa45bb2)=>{_0x23ee40['execute']('footnotesStart',{'value':_0xa45bb2['startIndex']});}),_0x401e9b['delegate']('execute')['to'](_0x156efd),_0x401e9b;}({'editor':_0x124af5,'dropdownView':_0x55d3d0});_0x55d3d0['panelView']['children']['add'](_0x17e761);}),_0x55d3d0;};}(_0x4ac350));}['afterInit'](){const {editor:_0x3e28de}=this,{t:t}=_0x3e28de['locale'],_0x37950c=_0x3e28de['plugins']['get'](_0x18d705),{defaultPositions:_0x259e56}=_0x1808e0;_0x37950c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3e28de['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1af738=>{let _0x21c5ad=_0x1af738['getFirstPosition']()?.['parent'];return _0x21c5ad?.['is']('$text')&&(_0x21c5ad=_0x21c5ad['parent']),_0x21c5ad?.['is']('element')?_0x21c5ad['findAncestor'](H):null;},'positions':[_0x259e56['southArrowNorth'],_0x259e56['southArrowNorthMiddleWest'],_0x259e56['southArrowNorthMiddleEast'],_0x259e56['southArrowNorthWest'],_0x259e56['southArrowNorthEast'],_0x259e56['northArrowSouth'],_0x259e56['northArrowSouthMiddleWest'],_0x259e56['northArrowSouthMiddleEast'],_0x259e56['northArrowSouthWest'],_0x259e56['northArrowSouthEast'],_0x259e56['viewportStickyNorth']]});}}class ft extends _0x1e86fb{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,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x400efc,Command as _0xb95b7d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x12eb73,isWidget as _0x1a6449,toWidgetEditable as _0x4cc677,WidgetToolbarRepository as _0x182deb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5e572e,logWarning as _0x48b1f3,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xf5da23,ClickObserver as _0x1bd5c8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x932d8b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3f0cf4,ButtonView as _0x18afe0,View as _0x18f655,ViewCollection as _0x42e164,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x3f38a0,BalloonPanelView as _0x451c1f,createDropdown as _0x28540a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x39f915,IconListStyleDecimal as _0x416808,IconListStyleDecimalLeadingZero as _0x531677,IconListStyleLowerRoman as _0x3183aa,IconListStyleUpperRoman as _0x2e33d8,IconListStyleLowerLatin as _0xf33025,IconListStyleUpperLatin as _0x1f28e}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3e3a53,_0x31d4f6){this['_model']=_0x3e3a53,this['_elementName']=_0x31d4f6['elementName'],this['_getElementKey']=_0x31d4f6['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x504640){const _0x528db3=new Set(),_0x3ccb67=new Map();for(const _0x2cd4f9 of _0x504640){if('insert'===_0x2cd4f9['type']&&'$text'!==_0x2cd4f9['name']&&_0x2cd4f9['position']['nodeAfter']){const _0xd927b2=this['_model']['createRangeOn'](_0x2cd4f9['position']['nodeAfter']);for(const _0x1c6485 of _0xd927b2['getItems']()){if(!_0x1c6485['is']('element',this['_elementName']))continue;const _0x5b7478=this['_getElementKey'](_0x1c6485);_0x3ccb67['has'](_0x5b7478)||_0x3ccb67['set'](_0x5b7478,[]),_0x3ccb67['get'](_0x5b7478)['push'](_0x1c6485);}}if('remove'===_0x2cd4f9['type']&&_0x2cd4f9['name']===this['_elementName']){const _0x3062fa=this['_getElementKey']({'getAttribute':_0x5d675e=>_0x2cd4f9['attributes']['get'](_0x5d675e)});_0x528db3['add'](_0x3062fa);}}for(const [_0x2b2dfa,_0x54710f]of this['_trackedElements'])'$graveyard'===_0x54710f['root']['rootName']&&_0x528db3['add'](_0x2b2dfa);for(const _0xbc5946 of _0x528db3)this['_trackedElements']['delete'](_0xbc5946);for(const [_0x45ec92,_0x39e414]of _0x3ccb67)this['_trackedElements']['set'](_0x45ec92,_0x39e414[_0x39e414['length']-0x1]);const _0x5021df=new Set();for(const [_0x2632c7,_0x57948b]of _0x3ccb67)_0x528db3['has'](_0x2632c7)&&(_0x5021df['add'](_0x57948b[0x0]),_0x57948b['length']>0x1?_0x3ccb67['set'](_0x2632c7,_0x57948b['slice'](0x1)):_0x3ccb67['delete'](_0x2632c7),_0x528db3['delete'](_0x2632c7));return{'removed':Array['from'](_0x528db3),'inserted':Array['from'](_0x3ccb67['values']())['flat'](),'moved':Array['from'](_0x5021df)};}}class f extends _0x400efc{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x374d5e){super(_0x374d5e),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4b08d3=>_0x4b08d3['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x31948d=>_0x31948d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1c09a5}=this,{model:_0x22cdc5,data:_0x37aeb5}=_0x1c09a5;_0x22cdc5['document']['registerPostFixer'](_0x34abe8=>{const _0xb563fc=_0x22cdc5['document']['differ']['getChanges']();let _0x35786e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x34abe8,_0xb563fc)&&(_0x35786e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x34abe8,_0xb563fc)&&(_0x35786e=!0x0),this['_handleFootnoteReferencesChanges'](_0x34abe8,_0xb563fc)&&(_0x35786e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x34abe8)&&(_0x35786e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x34abe8)&&(_0x35786e=!0x0),this['_sortFootnoteDefinitions'](_0x34abe8)&&(_0x35786e=!0x0),_0x35786e;}),this['listenTo'](_0x22cdc5['document'],'change:data',()=>{_0x22cdc5['enqueueChange']({'isUndoable':!0x1},_0x24609f=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x24609f);});},{'priority':'low'}),this['listenTo'](_0x37aeb5,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4caf7d){return this['_footnotes']['find'](_0x3b0059=>_0x3b0059['id']===_0x4caf7d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5bb7e0){this['_footnoteFormatter']=_0x5bb7e0;}['_updateFootnotesCounters'](_0x16dfd6,_0x2df4ff=0x0){let _0x252e15=!0x1;for(let _0x205417=_0x2df4ff;_0x205417<this['_footnotes']['length'];_0x205417++)this['_updateFootnoteRefCounter'](_0x16dfd6,_0x205417)&&(_0x252e15=!0x0);return _0x252e15;}['_insertEmptyFootnotesDefinitionsContainer'](_0x517679,_0x531327){const _0x394278=_0x517679['createElement']('footnotesDefinitions',{});return _0x517679['append'](_0x394278,_0x531327),this['_footnotesDefinitions']=_0x394278,_0x394278;}['_ensureFootnotesDefinitionsContainerExists'](_0x5261e6){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x192d8c=this['_footnotes'][0x0]['reference']['root'],_0x287561=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5261e6,_0x192d8c);for(const _0x3dcd0f of this['_footnotes'])_0x3dcd0f['definition']['parent']||_0x5261e6['insert'](_0x3dcd0f['definition'],_0x287561,'end');this['_updateFootnotesCounters'](_0x5261e6);}['_handleFootnotesDefinitionsObjectChanges'](_0xec6000,_0xdb4afe){let _0x36a17d=!0x1;const {inserted:_0x42c876,removed:_0x5adb1f,moved:_0x133ca7}=this['_footnoteDefsContainerTracker']['getChanges'](_0xdb4afe);if(_0x133ca7['length']&&(this['_footnotesDefinitions']=_0x133ca7[0x0]),_0x42c876['length']){if(_0x42c876['length']>0x1||this['_footnotesDefinitions']&&_0x42c876['some'](_0x426ce5=>_0x426ce5!==this['_footnotesDefinitions'])){const _0xa61ca7=_0xec6000['createElement']('footnotesDefinitions',{}),_0x3172a7=[];this['_footnotesDefinitions']&&_0x3172a7['push'](this['_footnotesDefinitions']),_0x3172a7['push'](..._0x42c876),_0xec6000['insert'](_0xa61ca7,_0x3172a7[0x0],'before');for(const _0x444022 of _0x3172a7)_0xec6000['move'](_0xec6000['createRangeIn'](_0x444022),_0xec6000['createPositionAt'](_0xa61ca7,'end')),_0xec6000['remove'](_0x444022);this['_footnotesDefinitions']=_0xa61ca7,this['_updateFootnotesCounters'](_0xec6000),_0x36a17d=!0x0;}else this['_footnotesDefinitions']=_0x42c876[0x0];}if(_0x5adb1f['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x127b52 of this['_footnotes'])_0xec6000['remove'](_0x127b52['reference']),_0x36a17d=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x36a17d;}['_handleFootnoteDefinitionsChanges'](_0x466630,_0x5cb78a){let _0x19af21=!0x1;const _0x4ac496=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2f72ac,moved:_0x57e70c}=this['_footnoteDefsTracker']['getChanges'](_0x5cb78a);for(const _0x330aa4 of[..._0x57e70c,..._0x2f72ac]){const _0x2ef119=_0x330aa4['getAttribute']('footnoteId'),_0x1b0311=this['getFootnote'](_0x2ef119);_0x1b0311&&(_0x1b0311['definition']=_0x330aa4),_(_0x466630,_0x4ac496,_0x330aa4)&&(_0x19af21=!0x0);}return _0x19af21;}['_handleFootnoteReferencesChanges'](_0x56ae9c,_0x3c1528){let _0x4f84e8=!0x1;const {removed:_0x1c2c79,inserted:_0x2e20e0,moved:_0x24d960}=this['_footnoteRefsTracker']['getChanges'](_0x3c1528);for(const _0x152f7d of _0x1c2c79)this['_handleRemoveFootnoteReferenceById'](_0x56ae9c,_0x152f7d)&&(_0x4f84e8=!0x0);for(const _0x5d198f of _0x2e20e0)this['_handleInsertedFootnoteReference'](_0x56ae9c,_0x5d198f)&&(_0x4f84e8=!0x0);for(const _0x5b7240 of _0x24d960)this['_handleMovedFootnoteReference'](_0x56ae9c,_0x5b7240)&&(_0x4f84e8=!0x0);return _0x4f84e8;}['_handleFootnotesDefinitionsObjectSync'](_0x170a1b){if(!this['_footnotesDefinitions'])return!0x1;let _0x52c104=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xf7cb0f=[];for(const _0x49b8cb of this['_footnotesDefinitions']['getChildren']()){const _0x14200f=_0x49b8cb['getAttribute']('footnoteId');this['getFootnote'](_0x14200f)||(_0xf7cb0f['unshift'](_0x49b8cb),_0x52c104=!0x0);}for(const _0x56b871 of _0xf7cb0f)_0x170a1b['remove'](_0x56b871);}const _0x59ec68=new Set(),_0x2793bf=[];for(const _0x216633 of this['_footnotesDefinitions']['getChildren']()){const _0x1ee2e0=_0x216633['getAttribute']('footnoteId');_0x59ec68['has'](_0x1ee2e0)?(_0x2793bf['unshift'](_0x216633),_0x52c104=!0x0):_0x59ec68['add'](_0x1ee2e0);}for(const _0x292ae2 of _0x2793bf)_0x170a1b['remove'](_0x292ae2);return this['_footnotesDefinitions']['childCount']||(_0x170a1b['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x52c104=!0x0),_0x52c104;}['_handleInsertedFootnoteReference'](_0x7f1f4e,_0x3c3bbf){if(this['_footnotes']['find'](_0x172220=>_0x172220['reference']===_0x3c3bbf))return!0x1;let _0x5ae173=!0x1;const _0x4718bf=_0x3c3bbf['getAttribute']('footnoteId'),_0x3b30bd=this['_footnotes']['findIndex'](_0x5d444e=>_0x5d444e['id']===_0x4718bf);-0x1!==_0x3b30bd&&(_0x7f1f4e['remove'](this['_footnotes'][_0x3b30bd]['reference']),this['_footnotes']['splice'](_0x3b30bd,0x1),_0x5ae173=!0x0);let _0x57cab0=this['_footnotesDefinitions']?function(_0x552b30,_0x36e907){for(const _0x49a3b1 of _0x552b30['getChildren']())if(_0x49a3b1['getAttribute']('footnoteId')===_0x36e907)return _0x49a3b1;return null;}(this['_footnotesDefinitions'],_0x4718bf):null;_0x57cab0||(_0x57cab0=_0x7f1f4e['createElement']('footnoteDefinition',{'footnoteId':_0x4718bf}),this['_footnotesDefinitions']&&(_0x7f1f4e['insert'](_0x57cab0,this['_footnotesDefinitions'],'end'),_0x5ae173=!0x0));const _0x422697={'id':_0x4718bf,'reference':_0x3c3bbf,'definition':_0x57cab0},_0xe7f9cf=I(this['editor']['model'],this['_footnotes'],_0x3c3bbf);this['_footnotes']['splice'](_0xe7f9cf,0x0,_0x422697);let _0x596c5d=_0xe7f9cf;return-0x1!==_0x3b30bd&&(_0x596c5d=Math['min'](_0xe7f9cf,_0x3b30bd)),this['_updateFootnotesCounters'](_0x7f1f4e,_0x596c5d)&&(_0x5ae173=!0x0),_0x5ae173;}['_handleRemoveFootnoteReferenceById'](_0x540815,_0x7b87f8){const _0x5c8550=this['_footnotes']['findIndex'](_0x581166=>_0x581166['id']===_0x7b87f8);if(-0x1===_0x5c8550)return!0x1;let _0x19f2fd=!0x1;const _0x14d298=this['_footnotes'][_0x5c8550];return'$graveyard'!==_0x14d298['definition']['root']['rootName']&&(_0x540815['remove'](_0x14d298['definition']),_0x19f2fd=!0x0),this['_footnotes']['splice'](_0x5c8550,0x1),this['_updateFootnotesCounters'](_0x540815,_0x5c8550)&&(_0x19f2fd=!0x0),_0x19f2fd;}['_handleMovedFootnoteReference'](_0x205967,_0x5ee684){const _0x138cf0=_0x5ee684['getAttribute']('footnoteId'),_0x228faf=this['_footnotes']['findIndex'](_0x476e23=>_0x476e23['id']===_0x138cf0),_0x61117e=this['_footnotes'][_0x228faf];let _0x3b7560=!0x1;_0x61117e['reference']=_0x5ee684,this['_footnotes']['splice'](_0x228faf,0x1);const _0x2d2787=I(this['editor']['model'],this['_footnotes'],_0x5ee684);return this['_footnotes']['splice'](_0x2d2787,0x0,_0x61117e),this['_updateFootnotesCounters'](_0x205967,Math['min'](_0x228faf,_0x2d2787))&&(_0x3b7560=!0x0),_0x3b7560;}['_updateFootnoteRefCounter'](_0xe3b6b6,_0x1b8477){if(!this['_footnotesDefinitions'])return!0x1;const _0x22d105=this['_footnotes'][_0x1b8477];let _0x5cb076;return _0x5cb076=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x22d105,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1b8477+0x1}):String(_0x1b8477+0x1),_0x22d105['reference']['getAttribute']('footnoteCounter')!=_0x5cb076&&(_0xe3b6b6['setAttribute']('footnoteCounter',_0x5cb076,_0x22d105['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x46aa80){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x151eff,_0x525164){if(_0x151eff['length']!==_0x525164['length'])return!0x1;for(let _0x21580e=0x0;_0x21580e<_0x151eff['length'];_0x21580e++)if(_0x151eff[_0x21580e]!==_0x525164[_0x21580e])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x343ba3=>_0x343ba3['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x35f66f=>_0x35f66f['getAttribute']('footnoteId'))))return!0x1;let _0x64fa9a=!0x1;for(let _0x52901e=0x0;_0x52901e<this['_footnotes']['length'];_0x52901e++){const _0x1d7911=this['_footnotes'][_0x52901e],_0x110486=_0x46aa80['createPositionBefore'](_0x1d7911['definition']),_0x469e07=_0x46aa80['createPositionAt'](this['_footnotesDefinitions'],_0x52901e);_0x110486['isEqual'](_0x469e07)||(_0x46aa80['move'](_0x46aa80['createRangeOn'](_0x1d7911['definition']),_0x469e07),_0x64fa9a=!0x0);}return _0x64fa9a;}['_ensureFootnotesReferencesHaveProperOrder'](_0x246f3c){if(!this['_footnotes']['length'])return!0x1;const {model:_0x338c58}=this['editor'];let _0x4e80f=!0x1;for(let _0x42a6b2=0x0;_0x42a6b2<this['_footnotes']['length']-0x1;_0x42a6b2++){const _0x2ebad7=this['_footnotes'][_0x42a6b2],_0x33de6c=this['_footnotes'][_0x42a6b2+0x1],_0x17d900=_0x338c58['createPositionBefore'](_0x2ebad7['reference']),_0xb0b903=_0x338c58['createPositionBefore'](_0x33de6c['reference']);'after'===_0x17d900['compareWith'](_0xb0b903)&&(this['_handleMovedFootnoteReference'](_0x246f3c,_0x2ebad7['reference']),_0x42a6b2=-0x1,_0x4e80f=!0x0);}return _0x4e80f;}}function _(_0x292ed6,_0x3e2377,_0x28b5a3){if(_0x28b5a3['childCount'])return!0x1;const _0xff689d=_0x3e2377?'paragraph':'footnoteInlineContent';return _0x292ed6['insert'](_0x292ed6['createElement'](_0xff689d),_0x28b5a3),!0x0;}function I(_0x1de363,_0x11da68,_0x3e95e2){if(0x0===_0x11da68['length'])return 0x0;const _0x42d459=_0x1de363['createPositionBefore'](_0x3e95e2);for(let _0x4371f7=0x0;_0x4371f7<_0x11da68['length'];_0x4371f7++){const _0x15f155=_0x11da68[_0x4371f7],_0x3c46a0=_0x1de363['createPositionBefore'](_0x15f155['reference']);if('before'===_0x42d459['compareWith'](_0x3c46a0))return _0x4371f7;}const _0x554a27=_0x3e95e2['root'];let _0x1e0db5=-0x1;for(let _0x2bfb68=_0x11da68['length']-0x1;_0x2bfb68>=0x0;_0x2bfb68--)if(_0x11da68[_0x2bfb68]['reference']['root']===_0x554a27){_0x1e0db5=_0x2bfb68;break;}if(-0x1!==_0x1e0db5)return _0x1e0db5+0x1;const _0x2aca5c=_0x1de363['document']['getRootNames'](),_0x223096=_0x2aca5c['indexOf'](_0x554a27['rootName']),_0x18813d=_0x2aca5c[_0x223096+0x1];if(_0x18813d){for(let _0x3fb1a4=0x0;_0x3fb1a4<_0x11da68['length'];_0x3fb1a4++)if(_0x11da68[_0x3fb1a4]['reference']['root']['rootName']===_0x18813d)return _0x3fb1a4;}return _0x11da68['length'];}class h extends _0xb95b7d{['refresh'](){const _0x2dd06f=this['editor']['model']['document']['selection'],_0xe78982=this['_getPositionToInsertFootnote'](_0x2dd06f);this['isEnabled']=!!_0xe78982;}['execute'](_0x31a271){const {editor:_0x15a018}=this,{model:_0x3d6c27}=_0x15a018,{selection:_0x21c831}=_0x3d6c27['document'],_0x32394e=this['_getPositionToInsertFootnote'](_0x21c831);if(!_0x32394e)return;const _0xb2196f=_0x15a018['plugins']['get']('FootnotesEditing'),_0x2cb479=_0x31a271?.['footnoteId']??_0x5e572e();!function(_0x1b438a){return'string'==typeof _0x1b438a&&_0x1b438a['length']>0x0&&!/\s/['test'](_0x1b438a)&&!/^\d/['test'](_0x1b438a);}(_0x2cb479)?_0x48b1f3('insert-footnote-command-executed-with-invalid-id'):(_0x3d6c27['change'](_0x1233ba=>{const _0x3ba0f8=_0x1233ba['createElement']('footnoteRef',{'footnoteId':_0x2cb479});_0x3d6c27['insertObject'](_0x3ba0f8,_0x32394e,null);}),_0xb2196f['_moveSelectionToFootnoteDefinition'](_0x2cb479));}['_getPositionToInsertFootnote'](_0x33fb6c){const {model:_0x51b61b}=this['editor'],{schema:_0x5a9549}=_0x51b61b,_0x33c537=_0x33fb6c['getFirstRange']();for(const _0x23db90 of _0x33c537['getItems']())if(_0x5a9549['isBlock'](_0x23db90)||_0x5a9549['isObject'](_0x23db90))return null;const _0x562fd5=_0x33c537['end'];return _0x5a9549['checkChild'](_0x562fd5,'footnoteRef')?_0x562fd5:null;}}class r extends _0x400efc{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x436e04}=this;_0x436e04['config']['define']('footnotes.multiBlock',!0x0),_0x436e04['commands']['add']('insertFootnote',new h(_0x436e04)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xe87027){const _0x5307ea=_0x38cd78([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]),_0xf328d4=0x47a28506,_0x1b9d09=0x47a5064e^_0xf328d4,_0xf3f1db=window[_0x38cd78([0x44,0x61,0x74,0x65])][_0x38cd78([0x6e,0x6f,0x77])](),_0x4712d8=_0xe87027[_0x38cd78([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3be51c=new window[(_0x38cd78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3a2c=>{_0x4712d8[_0x38cd78([0x6f,0x6e,0x63,0x65])](_0x38cd78([0x72,0x65,0x61,0x64,0x79]),_0x5c3a2c);}),_0x214b35={[_0x38cd78([0x6b,0x74,0x79])]:_0x38cd78([0x45,0x43]),[_0x38cd78([0x75,0x73,0x65])]:_0x38cd78([0x73,0x69,0x67]),[_0x38cd78([0x63,0x72,0x76])]:_0x38cd78([0x50,0x2d,0x32,0x35,0x36]),[_0x38cd78([0x78])]:_0x38cd78([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]),[_0x38cd78([0x79])]:_0x38cd78([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]),[_0x38cd78([0x61,0x6c,0x67])]:_0x38cd78([0x45,0x53,0x32,0x35,0x36])},_0x5b2c2f=_0x4712d8[_0x38cd78([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38cd78([0x67,0x65,0x74])](_0x38cd78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ffe67(){let _0x5d81c0,_0x5bade5=null,_0x12ed5a=null;try{if(_0x5b2c2f==_0x38cd78([0x47,0x50,0x4c]))return _0x38cd78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d81c0=_0x393e06(),!_0x5d81c0)return _0x38cd78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d81c0[_0x38cd78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12ed5a=_0xc7573e(_0x5d81c0[_0x38cd78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d81c0[_0x38cd78([0x6a,0x74,0x69])])),await _0xa93ba3()?_0x5d296e()?_0x2cd659()?_0x38cd78([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa1d390()?(_0x5d81c0[_0x38cd78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38cd78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5bade5=_0x42e553(_0x38cd78([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29e43a()):_0x38cd78([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38cd78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38cd78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38cd78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cd659(){const _0x259f96=[_0x38cd78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38cd78([0x74,0x72,0x69,0x61,0x6c])][_0x38cd78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d81c0[_0x38cd78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf3f1db/0x3e8:0xe10*_0x1b9d09;return _0x5d81c0[_0x38cd78([0x65,0x78,0x70])]<_0x259f96;}function _0x5d296e(){const _0x498e5a=_0x5d81c0[_0x38cd78([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x498e5a&&(!!_0x498e5a[_0x38cd78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38cd78([0x2a]))||!!_0x498e5a[_0x38cd78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38cd78([0x46,0x4f,0x4f])));}function _0xa1d390(){const _0x429205=_0x5d81c0[_0x38cd78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x429205||0x0==_0x429205[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d6cda}=new URL(window[_0x38cd78([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x429205[_0x38cd78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d6cda))return!0x0;const _0x4bdea7=_0x5d6cda[_0x38cd78([0x73,0x70,0x6c,0x69,0x74])](_0x38cd78([0x2e]));return _0x429205[_0x38cd78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x286f80=>_0x286f80[_0x38cd78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38cd78([0x2a])))[_0x38cd78([0x6d,0x61,0x70])](_0x2ff92a=>_0x2ff92a[_0x38cd78([0x73,0x70,0x6c,0x69,0x74])](_0x38cd78([0x2e])))[_0x38cd78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361ffb=>_0x361ffb[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4bdea7[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38cd78([0x6d,0x61,0x70])](_0x3adbfa=>Array(_0x4bdea7[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3adbfa[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38cd78([0x66,0x69,0x6c,0x6c])](_0x3adbfa[0x0]===_0x38cd78([0x2a])?_0x38cd78([0x2a]):'')[_0x38cd78([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3adbfa))[_0x38cd78([0x73,0x6f,0x6d,0x65])](_0x43ac93=>_0x4bdea7[_0x38cd78([0x65,0x76,0x65,0x72,0x79])]((_0x350060,_0x192173)=>_0x43ac93[_0x192173]===_0x350060||_0x43ac93[_0x192173]===_0x38cd78([0x2a])));}function _0x29e43a(){return _0x5bade5&&_0x12ed5a?new window[(_0x38cd78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35eeda,_0x32e041)=>{_0x5bade5[_0x38cd78([0x74,0x68,0x65,0x6e])](_0x35eeda,_0x32e041),_0x12ed5a[_0x38cd78([0x74,0x68,0x65,0x6e])](_0x37b021=>{_0x37b021!=_0x38cd78([0x56,0x61,0x6c,0x69,0x64])&&_0x35eeda(_0x37b021);},_0x32e041);}):_0x5bade5||_0x12ed5a||_0x38cd78([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc7573e(_0x3f6749,_0x56b865){return new window[(_0x38cd78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b1347=>{if(_0x36bf78())return _0x3b1347(_0x38cd78([0x56,0x61,0x6c,0x69,0x64]));_0x4469ec(),_0x4712d8[_0x38cd78([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38cd78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b6ec2=!0x1;const _0x3118fd=_0x5e572e();function _0x3efbef(_0x567ae5){return!!_0x567ae5&&(typeof _0x567ae5===_0x38cd78([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x567ae5===_0x38cd78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x567ae5[_0x38cd78([0x74,0x68,0x65,0x6e])]===_0x38cd78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x567ae5[_0x38cd78([0x63,0x61,0x74,0x63,0x68])]===_0x38cd78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34f909(_0x29c9b4){_0x4cdaff(_0x29c9b4)[_0x38cd78([0x74,0x68,0x65,0x6e])](_0x57ce7e=>{if(!_0x57ce7e||_0x57ce7e[_0x38cd78([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38cd78([0x6f,0x6b]))return _0x38cd78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45b482(_0x5d2ae5(_0x3118fd+_0x56b865))!=_0x57ce7e[_0x38cd78([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38cd78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38cd78([0x56,0x61,0x6c,0x69,0x64]);})[_0x38cd78([0x74,0x68,0x65,0x6e])](_0x557d70=>(_0x4a7293(),_0x557d70),()=>{const _0x1a71cd=_0x1eb9c6();return null==_0x1a71cd?(_0x4a7293(),_0x38cd78([0x56,0x61,0x6c,0x69,0x64])):_0x38cd78(_0xf3f1db-_0x1a71cd>(0x63ae0106^_0xf328d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38cd78([0x74,0x68,0x65,0x6e])](_0x3b1347)[_0x38cd78([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b1347(_0x38cd78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x189957=0x47946b86^_0xf328d4;function _0x4a7293(){const _0x175246=_0x38cd78([0x6c,0x6c,0x63,0x74,0x2d])+_0x45b482(_0x5d2ae5(_0x3f6749)),_0x560b3d=_0xbb9470(_0x45b482(window[_0x38cd78([0x4d,0x61,0x74,0x68])][_0x38cd78([0x63,0x65,0x69,0x6c])](_0xf3f1db/_0x189957)));window[_0x38cd78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38cd78([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x175246,_0x560b3d);}function _0x1eb9c6(){const _0x6529=_0x38cd78([0x6c,0x6c,0x63,0x74,0x2d])+_0x45b482(_0x5d2ae5(_0x3f6749)),_0x45a1f2=window[_0x38cd78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38cd78([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6529);return _0x45a1f2?window[_0x38cd78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbb9470(_0x45a1f2),0x10)*_0x189957:null;}function _0x4cdaff(_0x58dc7f){return new window[(_0x38cd78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x547535,_0x29e605)=>{_0x58dc7f[_0x38cd78([0x74,0x68,0x65,0x6e])](_0x547535,_0x29e605),window[_0x38cd78([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29e605,0x47a351c6^_0xf328d4);});}}_0x4712d8[_0x38cd78([0x6f,0x6e])](_0x38cd78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x504756,_0xd04411)=>{if(_0xd04411[0x0]!=_0x3f6749)return _0x3b1347(_0x38cd78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd04411[0x1]={..._0xd04411[0x1],[_0x38cd78([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3118fd};},{[_0x38cd78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38cd78([0x68,0x69,0x67,0x68])}),_0x4712d8[_0x38cd78([0x6f,0x6e])](_0x38cd78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21d0ae=>{_0x3efbef(_0x21d0ae[_0x38cd78([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b6ec2=!0x0,_0x34f909(_0x21d0ae[_0x38cd78([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38cd78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38cd78([0x6c,0x6f,0x77])}),_0x3be51c[_0x38cd78([0x74,0x68,0x65,0x6e])](()=>{_0x5b6ec2||_0x3b1347(_0x38cd78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36bf78(){return _0x4712d8[_0x38cd78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38cd78([0x76,0x69,0x65,0x77])][_0x38cd78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38cd78([0x61,0x75,0x74,0x6f]);}function _0x4469ec(){_0x4712d8[_0x38cd78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38cd78([0x76,0x69,0x65,0x77])][_0x38cd78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38cd78([0x61,0x75,0x74,0x6f]);}}function _0x42e553(_0x3d9369){const _0x950905=[new window[(_0x38cd78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x171b82=>setTimeout(_0x171b82,0x47abbbca^_0xf328d4)),_0x3be51c[_0x38cd78([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38cd78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e5445=>{let _0x4579c9=0x0;_0x4712d8[_0x38cd78([0x6d,0x6f,0x64,0x65,0x6c])][_0x38cd78([0x6f,0x6e])](_0x38cd78([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x566085,_0x4d93c1)=>{_0x4d93c1[0x0][_0x38cd78([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4579c9++,_0x4579c9==(0x47a280ee^_0xf328d4)&&(_0x1e5445(),_0x566085[_0x38cd78([0x6f,0x66,0x66])]());});}))];return window[_0x38cd78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38cd78([0x72,0x61,0x63,0x65])](_0x950905)[_0x38cd78([0x74,0x68,0x65,0x6e])](()=>_0x3d9369);}async function _0x2c0462(){await _0x3be51c,_0x4712d8[_0x38cd78([0x6d,0x6f,0x64,0x65,0x6c])][_0x38cd78([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13e238,_0x4712d8[_0x38cd78([0x6d,0x6f,0x64,0x65,0x6c])][_0x38cd78([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13e238,_0x4712d8[_0x38cd78([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38cd78([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c489a(_0x7de311){const _0x4a3457=_0x37679f();_0x4712d8[_0x4a3457]=_0x38cd78([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7de311,_0x7de311!=_0x38cd78([0x56,0x61,0x6c,0x69,0x64])&&_0x2c0462();}function _0x37679f(){const _0x490bd2=window[_0x38cd78([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38cd78([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38cd78([0x6e,0x6f,0x77])]())[_0x38cd78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38cd78([0x2e]),'');let _0x560d8f=_0x38cd78([0x75]);for(let _0x5e9c5d=0x0;_0x5e9c5d<_0x490bd2[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e9c5d+=0x2){let _0x125f17=window[_0x38cd78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x490bd2[_0x38cd78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e9c5d,_0x5e9c5d+0x2));_0x125f17>=_0x5307ea[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x125f17-=_0x5307ea[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x560d8f+=_0x5307ea[_0x125f17];}return _0x560d8f;}function _0x393e06(){const _0x299a9c=_0x5b2c2f[_0x38cd78([0x73,0x70,0x6c,0x69,0x74])](_0x38cd78([0x2e]));if(0x3!=_0x299a9c[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c3e1c(_0x299a9c[0x1]);function _0x5c3e1c(_0x57acdd){const _0x3bec07=_0xbd5d47(_0x57acdd);return _0x3bec07&&_0x5a3066()?_0x3bec07:null;function _0x5a3066(){const _0x51de48=_0x3bec07[_0x38cd78([0x6a,0x74,0x69])],_0x5f1ec6=window[_0x38cd78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51de48[_0x38cd78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51de48[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x240767={..._0x3bec07,[_0x38cd78([0x6a,0x74,0x69])]:_0x51de48[_0x38cd78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51de48[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x240767[_0x38cd78([0x76,0x63])],_0x5d2ae5(_0x240767)==_0x5f1ec6;}}}async function _0xa93ba3(){let _0xe9b63d=!0x0;try{const _0x190a49=_0x5b2c2f[_0x38cd78([0x73,0x70,0x6c,0x69,0x74])](_0x38cd78([0x2e])),[_0xe21c46,_0x14090e,_0x4ffacd]=_0x190a49;return _0x9f7fe2(_0xe21c46),await _0x13167d(_0xe21c46,_0x14090e,_0x4ffacd),_0xe9b63d;}catch{return!0x1;}function _0x9f7fe2(_0x393b3b){const _0x165af1=_0xbd5d47(_0x393b3b);_0x165af1&&_0x165af1[_0x38cd78([0x61,0x6c,0x67])]==_0x38cd78([0x45,0x53,0x32,0x35,0x36])||(_0xe9b63d=!0x1);}async function _0x13167d(_0x5229fb,_0x35ae0c,_0x163c52){const _0x1a2e0f=window[_0x38cd78([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38cd78([0x66,0x72,0x6f,0x6d])](_0x3ab18c(_0x163c52),_0x48697f=>_0x48697f[_0x38cd78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e5df6=new window[(_0x38cd78([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38cd78([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5229fb+_0x38cd78([0x2e])+_0x35ae0c),_0x658870=window[_0x38cd78([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38cd78([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x658870)return;const _0x13b313=await _0x658870[_0x38cd78([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38cd78([0x6a,0x77,0x6b]),_0x214b35,{[_0x38cd78([0x6e,0x61,0x6d,0x65])]:_0x38cd78([0x45,0x43,0x44,0x53,0x41]),[_0x38cd78([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38cd78([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38cd78([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x658870[_0x38cd78([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38cd78([0x6e,0x61,0x6d,0x65])]:_0x38cd78([0x45,0x43,0x44,0x53,0x41]),[_0x38cd78([0x68,0x61,0x73,0x68])]:{[_0x38cd78([0x6e,0x61,0x6d,0x65])]:_0x38cd78([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13b313,_0x1a2e0f,_0x2e5df6)||(_0xe9b63d=!0x1);}}function _0xbd5d47(_0x14d5c9){return _0x14d5c9[_0x38cd78([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38cd78([0x65,0x79]))?JSON[_0x38cd78([0x70,0x61,0x72,0x73,0x65])](_0x3ab18c(_0x14d5c9)):null;}function _0x3ab18c(_0x122969){return window[_0x38cd78([0x61,0x74,0x6f,0x62])](_0x122969[_0x38cd78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38cd78([0x2b]))[_0x38cd78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38cd78([0x2f])));}function _0x5d2ae5(_0xeb5bb8){let _0x10a40f=0x1505;function _0x3148a0(_0x3c8766){for(let _0x4c34ad=0x0;_0x4c34ad<_0x3c8766[_0x38cd78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c34ad++){const _0x421726=_0x3c8766[_0x38cd78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c34ad);_0x10a40f=(_0x10a40f<<0x5)+_0x10a40f+_0x421726,_0x10a40f&=_0x10a40f;}}function _0x2ceefa(_0x3417e6){Array[_0x38cd78([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3417e6)?_0x3417e6[_0x38cd78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ceefa):_0x3417e6&&typeof _0x3417e6==_0x38cd78([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38cd78([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3417e6)[_0x38cd78([0x73,0x6f,0x72,0x74])]()[_0x38cd78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x391661,_0x77ac41])=>{_0x3148a0(_0x391661),_0x2ceefa(_0x77ac41);}):_0x3148a0(window[_0x38cd78([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3417e6));}return _0x2ceefa(_0xeb5bb8),_0x10a40f>>>0x0;}function _0x45b482(_0x2d0fc0){return _0x2d0fc0[_0x38cd78([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38cd78([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38cd78([0x30]));}function _0xbb9470(_0x4d1e78){return _0x4d1e78[_0x38cd78([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38cd78([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38cd78([0x6a,0x6f,0x69,0x6e])]('');}function _0x13e238(){}function _0x38cd78(_0xc25eb8){return _0xc25eb8['map'](_0x132f65=>String['fromCharCode'](_0x132f65))['join']('');}_0x5c489a(await _0x3ffe67());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2683bb){const {plugins:_0xf6ec8e,editing:_0x4c87c3,model:_0x8fad5b}=this['editor'],_0xa3bc98=_0xf6ec8e['get'](f)['getFootnote'](_0x2683bb);return!!_0xa3bc98&&(_0x8fad5b['change'](_0x1d2533=>{_0x1d2533['setSelection'](_0x1d2533['createPositionAt'](_0xa3bc98['definition'],'end'));}),_0x4c87c3['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xc2d102){const {plugins:_0x36f54e,editing:_0x4383ed,model:_0x1e381a}=this['editor'],_0x2b048e=_0x36f54e['get'](f)['getFootnote'](_0xc2d102);return!!_0x2b048e&&(_0x1e381a['change'](_0x4f3e36=>{_0x4f3e36['setSelection'](_0x2b048e['reference'],'on');}),_0x4383ed['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4c5c8a}=this['editor']['model'],_0x30e517=this['editor']['config']['get']('footnotes.multiBlock');_0x4c5c8a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4c5c8a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4c5c8a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x30e517?_0x4c5c8a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4c5c8a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4c5c8a['addChildCheck'](_0x2676e6=>{for(const _0x4d64ce of _0x2676e6)if('footnoteDefinition'===_0x4d64ce['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x457f11}=this,{conversion:_0x25b387,editing:_0xe0f82a}=_0x457f11,{t:t}=_0x457f11['locale'];_0x25b387['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2b8f4c,{writer:_0x3923b3,consumable:_0x3e14f7})=>{const _0x41ab8d=_0x2b8f4c['getChild'](0x0);if(!_0x41ab8d||!_0x41ab8d['is']('element','a'))return null;const _0x17577e=_0x41ab8d['getAttribute']('href')||'';if(!_0x17577e['startsWith']('#'))return null;const _0x345ae7=_0x17577e['replace'](/^#/,'');if(!_0x345ae7)return null;_0x3e14f7['consume'](_0x41ab8d,{'name':!0x0,'attributes':['href']});for(const {item:_0x414575}of _0xe0f82a['view']['createRangeIn'](_0x41ab8d))_0x414575['is']('$textProxy')?_0x3e14f7['consume'](_0x414575['textNode'],{'name':!0x0}):_0x414575['is']('element')&&_0x3e14f7['consume'](_0x414575,{'name':!0x0});return _0x3923b3['createElement']('footnoteRef',{'footnoteId':_0x345ae7});}}),_0x25b387['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3b8bf1,{writer:_0x15156d})=>b(_0x3b8bf1,_0x15156d)}),_0x25b387['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x279c98,{writer:_0x27b217})=>{const _0x32ab02=_0x279c98['getAttribute']('footnoteCounter');return _0x12eb73(b(_0x279c98,_0x27b217),_0x27b217,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x32ab02)});}});}['_defineDefinitionsConverters'](){const {editor:_0x251f45}=this,{t:t}=_0x251f45['locale'],{conversion:_0x5b6b40}=_0x251f45;_0x5b6b40['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5b6b40['for']('upcast')['add'](_0x5b0edb=>{_0x5b0edb['on']('element:ol',(_0x10255a,_0x24dc3b,_0x44ea2c)=>{const _0x1b4d60=_0x24dc3b['viewItem'];if(!_0x1b4d60['hasClass']('footnotes-list')||!_0x24dc3b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x44ea2c['consumable']['consume'](_0x1b4d60,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x31234d,modelCursor:_0x13b801}=_0x44ea2c['convertChildren'](_0x24dc3b['viewItem'],_0x24dc3b['modelCursor']);_0x24dc3b['modelRange']=_0x31234d,_0x24dc3b['modelCursor']=_0x13b801;}),_0x5b0edb['on']('element:hr',(_0x5db748,_0x58fbbf,_0x4c1e12)=>{const _0x386bce=_0x58fbbf['viewItem'];_0x386bce['hasClass']('footnotes-divider')&&_0x58fbbf['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4c1e12['consumable']['consume'](_0x386bce,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5b6b40['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x163ed1,{writer:_0x242c18})=>D(_0x242c18)}),_0x5b6b40['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1eedfb,{writer:_0x54ac15})=>{const _0x2027f7=D(_0x54ac15,{'data-footnotes-list-label':t('Footnotes')}),_0x51b2cd=_0x12eb73(_0x2027f7,_0x54ac15,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x54ac15['setCustomProperty']('footnotesDefinitions',!0x0,_0x51b2cd),_0x51b2cd;}});}['_defineDefinitionConverters'](){const {editor:_0x1dbb0}=this,{conversion:_0x1dd612,locale:_0x5c09ce}=_0x1dbb0,_0x4a0d86=_0x1dbb0['config']['get']('footnotes.multiBlock');_0x1dd612['for']('upcast')['add'](_0x2ec370=>{_0x2ec370['on']('element:li',(_0x314599,_0x40f125,_0x4d5f73)=>{const _0x41fe7b=_0x40f125['viewItem'];if(!_0x41fe7b['hasClass']('footnote-definition')||!_0x41fe7b['getAttribute']('id'))return;const _0x217573=_0x41fe7b['parent'];if(!_0x217573['is']('element','ol')||!_0x217573['hasClass']('footnotes-list'))return;if(!_0x4d5f73['consumable']['test'](_0x41fe7b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x22b5c5=_0x4d5f73['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x41fe7b['getAttribute']('id')});if(!_0x4d5f73['safeInsert'](_0x22b5c5,_0x40f125['modelCursor']))return;_0x4d5f73['consumable']['consume'](_0x41fe7b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x595381=Array['from'](_0x41fe7b['getChildren']())['find'](_0x23c4f5=>_0x23c4f5['is']('element')&&_0x23c4f5['hasClass']('footnote-content'));for(const _0x18aa28 of _0x41fe7b['getChildren']())_0x18aa28['is']('element')&&(_0x4d5f73['consumable']['consume'](_0x18aa28,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4d5f73['consumable']['consume'](_0x18aa28,{'name':!0x0,'classes':'footnote-content'}));if(_0x595381){if(_0x4a0d86)_0x4d5f73['convertChildren'](_0x595381,_0x22b5c5);else{const _0x1afe28=_0x4d5f73['writer']['createElement']('footnoteInlineContent');_0x4d5f73['writer']['insert'](_0x1afe28,_0x22b5c5),_0x4d5f73['convertChildren'](_0x595381,_0x1afe28);}}_0x4d5f73['updateConversionResult'](_0x22b5c5,_0x40f125);});}),_0x1dd612['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2d2b27,{writer:_0x2944c5})=>y(_0x2d2b27,_0x2944c5,_0x5c09ce,{'dataPipeline':!0x0})}),_0x1dd612['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5402c4,{writer:_0x326566})=>y(_0x5402c4,_0x326566,_0x5c09ce)});}['_defineBogusParagraphConverters'](){const {editor:_0x8b7cae}=this,{conversion:_0x688553}=_0x8b7cae;_0x8b7cae['config']['get']('footnotes.multiBlock')?(_0x688553['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x688553['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x8b7cae['model']['document'],'change:data',()=>{!function(_0x1387e3,_0x4aaf00){const _0x220252=_0x1387e3['document']['differ'],_0x5dcc9e=new Set();for(const _0x3a7d77 of _0x220252['getChanges']()){const _0x4dbb53='attribute'==_0x3a7d77['type']?_0x3a7d77['range']['start']['parent']:_0x3a7d77['position']['parent'];_0x4dbb53['is']('element','footnoteDefinition')&&_0x5dcc9e['add'](_0x4dbb53);}for(const _0x11ba9a of _0x5dcc9e['values']()){const _0x4811c2=Array['from'](_0x11ba9a['getChildren']())['filter'](_0x506d01=>v(_0x506d01,_0x4aaf00['mapper']));for(const _0x1ba513 of _0x4811c2)_0x4aaf00['reconvertItem'](_0x1ba513);}}(_0x8b7cae['model'],_0x8b7cae['editing']);})):(_0x688553['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x688553['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x81919d,{writer:_0x4a7be8})=>{const _0x1e2f2f=_0x4a7be8['createContainerElement']('span');return _0x4a7be8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1e2f2f),_0x1e2f2f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x570114}=this,{editing:_0x5ad4ee,t:t}=_0x570114,_0xd269a1=_0x570114['model']['document']['selection'];_0x570114['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x570114['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5ad4ee['view']['document'],'enter',(_0x34c6f5,_0xc0e64e)=>{const _0x24d971=function(_0x300e62){const _0x5ee53b=_0x300e62['getSelectedElement']();if(_0x5ee53b?.['is']('element','footnoteRef'))return _0x5ee53b;return null;}(_0xd269a1);if(_0x24d971){const _0x2ed6ce=_0x24d971['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2ed6ce),_0xc0e64e['preventDefault'](),_0x34c6f5['stop']();}},{'context':_0x1a6449});}['_defineClickHandlers'](){const {editor:_0x64ae13}=this,{editing:_0x50bd3d}=_0x64ae13;_0x64ae13['editing']['view']['addObserver'](_0xf5da23),_0x64ae13['editing']['view']['addObserver'](_0x1bd5c8);let _0x39c53f=!0x1;this['listenTo'](_0x50bd3d['view']['document'],'pointerdown',(_0x4d41d9,_0x572e10)=>{const {target:_0x2d7c9b}=_0x572e10,_0x34ad0e=_0x50bd3d['view']['document']['selection'];_0x39c53f=!!(_0x2d7c9b?.['is']('element','a')&&_0x2d7c9b['parent']?.['is']('element','sup')&&_0x2d7c9b['parent']['hasClass']('footnote'))&&_0x34ad0e['getSelectedElement']()===_0x2d7c9b['parent'];},{'priority':'high'}),this['listenTo'](_0x50bd3d['view']['document'],'click',(_0x4596e5,_0x5b200a)=>{const {target:_0x2aec65}=_0x5b200a;if(!_0x2aec65?.['is']('element','a'))return;if(_0x2aec65['parent']?.['is']('element','sup')&&_0x2aec65['parent']['hasClass']('footnote')&&!_0x39c53f)return void _0x5b200a['preventDefault']();let _0x5857c1=_0x2aec65['getAttribute']('href');if(!_0x5857c1?.['startsWith']('#'))return;_0x5857c1=_0x5857c1['slice'](0x1);let _0xc9b80a=!0x1;(_0x5857c1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5857c1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5857c1))&&(_0xc9b80a=!0x0),_0xc9b80a&&(_0x5b200a['preventDefault'](),_0x4596e5['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x13fee3}={}){return(_0x9e5530,{writer:_0xc3618f})=>{if(!g(_0x9e5530))return null;if(!_0x13fee3)return _0xc3618f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x11fc23=_0xc3618f['createContainerElement']('p');return _0xc3618f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x11fc23),_0x11fc23;};}function g(_0x1959bf){const {parent:_0xac6f1f}=_0x1959bf;if(!_0xac6f1f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xac6f1f['childCount'])return!0x1;for(const _0x390b9e of _0x1959bf['getAttributeKeys']())if(!_0x390b9e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x390b9e)return!0x1;return!0x0;}function v(_0x48e0bf,_0x57086a){if(!_0x48e0bf['is']('element','paragraph'))return!0x1;const _0x25bb0a=_0x57086a['toViewElement'](_0x48e0bf);return!!_0x25bb0a&&g(_0x48e0bf)!==_0x25bb0a['is']('element','span');}function Q(_0x56b8d9){return _0x1a6449(_0x56b8d9)&&_0x56b8d9['is']('containerElement')&&!!_0x56b8d9['getCustomProperty']('footnotesDefinitions');}function D(_0x4108d7,_0x331ddd={}){const _0x5eeb14=_0x4108d7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x20f7e9=_0x4108d7['createContainerElement']('ol',{'class':'footnotes-list'},_0x4108d7['createSlot']());return _0x4108d7['createContainerElement']('div',{'class':'footnotes',..._0x331ddd},[_0x5eeb14,_0x20f7e9]);}function b(_0x566a7a,_0x5b795f){const _0xea0503=_0x566a7a['getAttribute']('footnoteId'),_0x18a72b=_0x566a7a['getAttribute']('footnoteCounter'),_0x2dcda6=_0x5b795f['createUIElement']('a',{'href':'#'+_0xea0503},function(_0xb3affd){const _0x4b5304=this['toDomElement'](_0xb3affd);return _0x4b5304['textContent']=_0x18a72b,_0x4b5304;}),_0x4af87c=_0x5b795f['createContainerElement']('sup',{'id':'ref-'+_0xea0503,'class':'footnote'},[_0x2dcda6]);return _0x4af87c['getFillerOffset']=()=>null,_0x4af87c;}function y(_0x461480,_0x3e6f6b,_0x110370,{dataPipeline:_0x22ee89}={}){const {t:t}=_0x110370,_0x579503=_0x461480['getAttribute']('footnoteId'),_0x352603=_0x3e6f6b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x579503},function(_0x199485){const _0x49995c=this['toDomElement'](_0x199485);return _0x49995c['innerText']='^',_0x49995c;}),_0x1563af=_0x22ee89?_0x3e6f6b['createContainerElement']('div',{'class':'footnote-content'}):_0x4cc677(_0x3e6f6b['createEditableElement']('div',{'class':'footnote-content'}),_0x3e6f6b,{'label':t('Footnote\x20content.')});return _0x3e6f6b['insert'](_0x3e6f6b['createPositionAt'](_0x1563af,0x0),_0x3e6f6b['createSlot']()),_0x3e6f6b['createContainerElement']('li',{'class':'footnote-definition','id':_0x579503},[_0x352603,_0x1563af]);}class e extends _0x400efc{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x932d8b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x1fa771}=this,{plugins:_0x5b3df8,model:_0x3bce99}=_0x1fa771,_0x2b28fa=_0x5b3df8['get'](_0x932d8b),_0x25ed9d=_0x5b3df8['get'](f);this['listenTo'](_0x2b28fa,'outputTransformation',(_0x3eb413,_0x1a30fb)=>{const _0x553210=l(_0x3bce99['createRangeIn'](_0x1a30fb['content']));if(!_0x553210['length'])return;const _0x487f4f=_0x25ed9d['getFootnotes'](),_0xb07b20=_0x553210['reduce']((_0x5b0bdd,_0x119625)=>{const _0x5dec98=_0x487f4f['find'](_0x2e2c16=>_0x2e2c16['id']===_0x119625);if(_0x5dec98){const _0x2b48be=_0x1fa771['data']['toView'](_0x5dec98['definition'],{'isClipboardPipeline':!0x0}),_0x355be6=_0x1fa771['data']['htmlProcessor']['toData'](_0x2b48be);_0x5b0bdd[_0x5dec98['id']]=_0x355be6;}return _0x5b0bdd;},Object['create'](null));_0x1a30fb['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xb07b20));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x34537e}=this,{model:_0x399e06,plugins:_0x4398c6}=_0x34537e,{view:_0x4e23ee}=_0x34537e['editing'],_0x1a320d=_0x4398c6['get'](_0x932d8b),_0x58ec57=_0x4398c6['get'](f),_0x104284=_0x34537e['config']['get']('footnotes.multiBlock');let _0x56f5ff=null;this['listenTo'](_0x4e23ee['document'],'clipboardInput',(_0x1c0b23,_0x5e845e)=>{const _0x4f9629=_0x5e845e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x56f5ff=_0x4f9629?JSON['parse'](_0x4f9629):null;}),this['listenTo'](_0x1a320d,'contentInsertion',(_0x409b35,_0x5ae9cc)=>{const _0x48471b=_0x5ae9cc['sourceEditorId']===this['editor']['id'];_0x48471b&&'drop'===_0x5ae9cc['method']||_0x399e06['change'](_0x22c5b1=>{let _0x26405a=_0x58ec57['getFootnotesDefinitionsObjectElement']();const _0x172f0b=!!_0x26405a&&Array['from'](_0x399e06['document']['selection']['getSelectedBlocks']())['includes'](_0x26405a);if(!_0x56f5ff&&function(_0x536bc1){for(const {item:_0x17d893}of _0x536bc1)if(_0x17d893['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x399e06['createRangeIn'](_0x5ae9cc['content']))&&(_0x56f5ff=function(_0x36809b,_0x45f7d9){const _0x12131a=c(_0x36809b,_0x45f7d9);if(!_0x12131a)return null;const _0x59516d=Object['create'](null);for(const _0x254bb5 of _0x12131a['getChildren']())_0x254bb5['is']('element','footnoteDefinition')&&_0x254bb5['hasAttribute']('footnoteId')&&(_0x59516d[_0x254bb5['getAttribute']('footnoteId')]=_0x36809b['cloneElement'](_0x254bb5,!0x0));return Object['keys'](_0x59516d)['length']?_0x59516d:null;}(_0x22c5b1,_0x5ae9cc['content'])),(_0x26405a&&!_0x172f0b||!_0x26405a&&!_0x56f5ff)&&function(_0x1c0209,_0x594acc){const _0x1199e0=[];for(const {item:_0x4b09f4}of _0x1c0209['createRangeIn'](_0x594acc))_0x4b09f4['is']('element','footnotesDefinitions')&&_0x1199e0['push'](_0x4b09f4);for(const _0x29856b of _0x1199e0)_0x1c0209['remove'](_0x29856b);}(_0x22c5b1,_0x5ae9cc['content']),!_0x56f5ff)return;const {selection:_0x36e609}=_0x399e06['document'],_0x23ec8c=_0x36e609['getFirstRange']()['root'];_0x26405a&&!_0x172f0b||(_0x26405a=c(_0x22c5b1,_0x5ae9cc['content']),_0x26405a||=_0x58ec57['_insertEmptyFootnotesDefinitionsContainer'](_0x22c5b1,_0x23ec8c));const _0x2de612=Array['from'](_0x36e609['getRanges']())['flatMap'](l),_0x6aa509=function(_0x3db64a,_0x1c7fb3,_0x973346){const _0x4db91b=Object['create'](null);for(const {item:_0x38523e}of _0x3db64a['createRangeIn'](_0x1c7fb3))if(_0x38523e['is']('element','footnoteRef')){const _0x555e38=_0x38523e['getAttribute']('footnoteId');if(!_0x973346(_0x555e38))continue;_0x4db91b[_0x555e38]||(_0x4db91b[_0x555e38]=_0x5e572e()),_0x3db64a['setAttribute']('footnoteId',_0x4db91b[_0x555e38],_0x38523e);}return _0x4db91b;}(_0x22c5b1,_0x5ae9cc['content'],_0x5c3f51=>{if(!_0x48471b)return!0x0;return!!_0x58ec57['getFootnote'](_0x5c3f51)&&!_0x2de612['includes'](_0x5c3f51);});for(const [_0x192bb0,_0x23ce16]of Object['entries'](_0x56f5ff)){const _0x344e64=_0x6aa509[_0x192bb0]||_0x192bb0;let _0x1ea3d2;if('string'!=typeof _0x23ce16)_0x1ea3d2=_0x23ce16,_0x344e64!==_0x192bb0&&_0x22c5b1['setAttribute']('footnoteId',_0x344e64,_0x1ea3d2);else{_0x1ea3d2=_0x22c5b1['createElement']('footnoteDefinition',{'footnoteId':_0x344e64});const _0x4d469f=_0x34537e['data']['htmlProcessor']['toView'](_0x23ce16);let _0x12e537;if(_0x104284)_0x12e537=_0x34537e['data']['toModel'](_0x4d469f,_0x1ea3d2);else{_0x12e537=_0x22c5b1['createElement']('footnoteInlineContent');const _0x3cbb0a=_0x34537e['data']['toModel'](_0x4d469f,_0x12e537);_0x22c5b1['insert'](_0x3cbb0a,_0x12e537);}_0x22c5b1['append'](_0x12e537,_0x1ea3d2);}_0x22c5b1['insert'](_0x1ea3d2,_0x26405a,'end');}_0x56f5ff=null;});});}}function c(_0x18ba88,_0x40ae35){for(const {item:_0x25bbdf}of _0x18ba88['createRangeIn'](_0x40ae35))if(_0x25bbdf['is']('element','footnotesDefinitions'))return _0x25bbdf;return null;}function l(_0x2b1ea5){const _0x2eeaff=new Set();for(const {item:_0x4373c8}of _0x2b1ea5)_0x4373c8['is']('element','footnoteRef')&&_0x2eeaff['add'](_0x4373c8['getAttribute']('footnoteId'));return Array['from'](_0x2eeaff);}class i extends _0x400efc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x29dd86}=this,{componentFactory:_0x1eba45}=_0x29dd86['ui'];_0x1eba45['add']('insertFootnote',E(_0x29dd86,_0x18afe0)),_0x1eba45['add']('menuBar:insertFootnote',E(_0x29dd86,_0x3f0cf4)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x233fb3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a182f;for(const _0x5eb2b6 in _0x233fb3){const _0xe69f8b=_0x5eb2b6,_0x5723e6=_0x233fb3[_0xe69f8b];if('footnotesLicenseKeyValid'==_0x5723e6||'footnotesLicenseKeyInvalid'==_0x5723e6||'footnotesLicenseKeyExpired'==_0x5723e6||'footnotesLicenseKeyDomainLimit'==_0x5723e6||'footnotesLicenseKeyNotAllowed'==_0x5723e6||'footnotesLicenseKeyEvaluationLimit'==_0x5723e6||'footnotesLicenseKeyUsageLimit'==_0x5723e6){delete _0x233fb3[_0xe69f8b],_0x4a182f=_0x5723e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4a182f&&_0x233fb3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4a182f&&_0x233fb3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4a182f&&_0x233fb3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4a182f&&_0x233fb3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4a182f&&_0x233fb3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x4a182f&&_0x233fb3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x393fef,_0x25bbbc){const _0x2881a3=_0x393fef['commands']['get']('insertFootnote');return _0x481a42=>{const {t:t}=_0x481a42,_0x3764f6=new _0x25bbbc(_0x481a42),_0x494294=_0x3764f6 instanceof _0x3f0cf4;return _0x3764f6['bind']('isEnabled')['to'](_0x2881a3,'isEnabled'),_0x3764f6['set']({'label':t(_0x494294?'Footnote':'Insert\x20footnote'),'icon':_0x39f915,'tooltip':!0x0}),_0x3764f6['on']('execute',()=>{_0x2881a3['execute'](),_0x393fef['editing']['view']['focus']();}),_0x3764f6;};}class lt extends _0x400efc{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0xb95b7d{['refresh'](){const {editor:_0x51bcb7}=this,_0x5283d2=_0x51bcb7['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5283d2,this['value']=_0x5283d2?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x394bc8}){const {editor:_0x3e05ef}=this,_0x1e4c53=_0x3e05ef['plugins']['get'](f),_0x7d2e89=_0x1e4c53['getFootnotesDefinitionsObjectElement']();_0x7d2e89&&W['includes'](_0x394bc8)&&_0x3e05ef['model']['change'](_0x4b7c67=>{_0x4b7c67['setAttribute']('footnotesListStyle',_0x394bc8,_0x7d2e89),_0x1e4c53['_updateFootnotesCounters'](_0x4b7c67);});}}class C extends _0xb95b7d{['refresh'](){const {editor:_0x3fa503}=this,_0x2b8733=_0x3fa503['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2b8733,this['value']=_0x2b8733?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1a21fc}){const {editor:_0x28e25d}=this,_0x1ed9cf=_0x28e25d['plugins']['get'](f),_0x4f671a=_0x1ed9cf['getFootnotesDefinitionsObjectElement']();_0x4f671a&&Number['isInteger'](_0x1a21fc)&&_0x28e25d['model']['change'](_0x3b0719=>{_0x3b0719['setAttribute']('footnotesListStart',_0x1a21fc,_0x4f671a),_0x1ed9cf['_updateFootnotesCounters'](_0x3b0719);});}}class P extends _0x400efc{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x485059}=this;_0x485059['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x485059['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x485059['commands']['add']('footnotesStyle',new S(_0x485059)),_0x485059['commands']['add']('footnotesStart',new C(_0x485059)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3ca89a}=this,{schema:_0x8cd9d7}=_0x3ca89a['model'];_0x8cd9d7['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x30e0ed}=this,{conversion:_0x4aed5f,model:_0x17f202}=_0x30e0ed,{schema:_0x1c4dbd}=_0x17f202;_0x4aed5f['for']('upcast')['add'](_0x5e3187=>{_0x5e3187['on']('element:ol',(_0x2861c0,_0x4fc3fd,_0xb77394)=>{const _0x1b9a07=_0x4fc3fd['viewItem'],_0x978039=_0x4fc3fd['modelCursor']?.['parent'];_0x1b9a07['hasClass']('footnotes-list')&&_0x978039?.['is']('element','footnotesDefinitions')&&(function(_0x311f1a,_0x5643d5,_0x16129c,_0x4ace31){if(!_0x4ace31['checkAttribute'](_0x5643d5,'footnotesListStart'))return;let _0x9837a3=0x1;const _0x49e7a3=_0x16129c['consumable']['consume'](_0x311f1a,{'attributes':'start'});if(_0x49e7a3){const _0x1756e8=Number['parseInt'](_0x311f1a['getAttribute']('start'),0xa);Number['isNaN'](_0x1756e8)||(_0x9837a3=_0x1756e8);}!_0x49e7a3&&_0x5643d5['hasAttribute']('footnotesListStart')||_0x16129c['writer']['setAttribute']('footnotesListStart',_0x9837a3,_0x5643d5);}(_0x1b9a07,_0x978039,_0xb77394,_0x1c4dbd),function(_0x88709c,_0x4f0683,_0x3e3c43,_0x4b4f28){if(!_0x4b4f28['checkAttribute'](_0x4f0683,'footnotesListStyle'))return;let _0x280409='decimal',_0xb5a861=!0x1;if(_0x3e3c43['consumable']['consume'](_0x88709c,{'attributes':'type'})){const _0x3fe17d={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x88709c['getAttribute']('type')];_0x3fe17d&&(_0x280409=_0x3fe17d),_0xb5a861=!0x0;}_0x3e3c43['consumable']['consume'](_0x88709c,{'styles':'list-style-type'})&&(_0x280409=function(_0x20946f){switch(_0x20946f){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x20946f;}}(_0x88709c['getStyle']('list-style-type')),_0xb5a861=!0x0),!_0xb5a861&&_0x4f0683['hasAttribute']('footnotesListStyle')||_0x3e3c43['writer']['setAttribute']('footnotesListStyle',_0x280409,_0x4f0683);}(_0x1b9a07,_0x978039,_0xb77394,_0x1c4dbd));});}),_0x4aed5f['for']('downcast')['add'](_0x4379f3=>{_0x4379f3['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x378d5f,_0xa2ecf4,_0xc671f6)=>{if(!_0xc671f6['consumable']['consume'](_0xa2ecf4['item'],_0x378d5f['name']))return;const _0x3c06d5=M(_0xa2ecf4['item'],_0xc671f6['mapper']),{attributeNewValue:_0x483b93}=_0xa2ecf4;null==_0x483b93||0x1===_0x483b93?_0xc671f6['writer']['removeAttribute']('start',_0x3c06d5):_0xc671f6['writer']['setAttribute']('start',String(_0x483b93),_0x3c06d5);}),_0x4379f3['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x558965,_0x35811f,_0x5a0329)=>{if(!_0x5a0329['consumable']['consume'](_0x35811f['item'],_0x558965['name']))return;const _0x2a3831=M(_0x35811f['item'],_0x5a0329['mapper']),{attributeNewValue:_0x41d659}=_0x35811f;_0x41d659&&'decimal'!==_0x41d659?_0x5a0329['writer']['setStyle']('list-style-type',_0x41d659,_0x2a3831):_0x5a0329['writer']['removeStyle']('list-style-type',_0x2a3831);});});}['_definePostfixer'](){const {editor:_0x8220ce}=this,{model:_0x25534d}=_0x8220ce,_0x4faff2=_0x8220ce['plugins']['get'](f),_0x1a80c2=this['_getDefaultListStyle'](),_0x566a9a=this['_getDefaultStartIndex']();_0x25534d['document']['registerPostFixer'](_0x47586f=>{const _0x433fe4=_0x25534d['document']['differ']['getChanges']();let _0x5b8028=!0x1;for(const _0x2a6cf9 of _0x433fe4){if('insert'!==_0x2a6cf9['type']||'$text'===_0x2a6cf9['name'])continue;const _0x4a2188=_0x25534d['createRangeOn'](_0x2a6cf9['position']['nodeAfter']);for(const _0x44cf12 of _0x4a2188['getItems']())_0x44cf12['is']('element','footnotesDefinitions')&&(!_0x44cf12['hasAttribute']('footnotesListStart')&&_0x25534d['schema']['checkAttribute'](_0x44cf12,'footnotesListStart')&&(_0x47586f['setAttribute']('footnotesListStart',_0x566a9a,_0x44cf12),_0x5b8028=!0x0),!_0x44cf12['hasAttribute']('footnotesListStyle')&&_0x25534d['schema']['checkAttribute'](_0x44cf12,'footnotesListStyle')&&(_0x47586f['setAttribute']('footnotesListStyle',_0x1a80c2,_0x44cf12),_0x5b8028=!0x0));}return _0x5b8028&&_0x4faff2['_updateFootnotesCounters'](_0x47586f),_0x5b8028;});}['_defineFormatter'](){const {editor:_0x5eb3a7}=this;_0x5eb3a7['plugins']['get'](f)['setFootnoteFormatter'](_0x94e75e=>this['_formatFootnoteListValue'](_0x94e75e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1c20b8,value:_0x4ec983,digits:_0x50c0a0}){const _0x479c27=_0x1c20b8['getAttribute']('footnotesListStyle'),_0x315cde=_0x1c20b8['getAttribute']('footnotesListStart'),_0x54017e=Math['floor'](_0x4ec983)+(_0x315cde??0x1)-0x1;switch(_0x479c27){case'decimal-leading-zero':return function(_0x2f69e5,_0x33aae9){return String(_0x2f69e5)['padStart'](_0x33aae9,'0');}(_0x54017e,Math['max'](0x2,_0x50c0a0));case'lower-alpha':case'lower-latin':return N(_0x54017e,!0x1);case'upper-alpha':case'upper-latin':return N(_0x54017e,!0x0);case'lower-roman':return X(_0x54017e,!0x1);case'upper-roman':return X(_0x54017e,!0x0);default:return String(_0x54017e);}}}function M(_0x2e0b1a,_0x3e6772){const _0x390d41=_0x3e6772['toViewElement'](_0x2e0b1a);return Array['from'](_0x390d41['getChildren']())['find'](_0x338568=>_0x338568['is']('element','ol')&&_0x338568['hasClass']('footnotes-list'));}function N(_0x444c4b,_0x247d68){let _0x2938c5='',_0x10d4c8=_0x444c4b;for(;_0x10d4c8>0x0;){const _0x194d21=(_0x10d4c8-0x1)%0x1a;_0x2938c5=String['fromCharCode'](0x61+_0x194d21)+_0x2938c5,_0x10d4c8=Math['floor']((_0x10d4c8-0x1)/0x1a);}return _0x247d68?_0x2938c5['toUpperCase']():_0x2938c5;}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(_0x431af5,_0x167f06){let _0x2edca4='',_0x3d280e=_0x431af5;for(const {value:_0x321af0,numeral:_0x44d6ed}of V)for(;_0x3d280e>=_0x321af0;)_0x2edca4+=_0x44d6ed,_0x3d280e-=_0x321af0;return _0x167f06?_0x2edca4:_0x2edca4['toLowerCase']();}class J extends _0x18f655{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x42e164();['focusCycler'];constructor(_0x4c7492,{styleButtonViews:_0x3d5b50,styleGridAriaLabel:_0x4bd3ae}){super(_0x4c7492),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3d5b50,_0x4bd3ae),[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 _0x2fe281 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2fe281['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x1f20e7=_0x43105d=>_0x43105d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1f20e7),this['keystrokes']['set']('arrowleft',_0x1f20e7),this['keystrokes']['set']('arrowup',_0x1f20e7),this['keystrokes']['set']('arrowdown',_0x1f20e7);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x32119f,_0x2a4dd4){const _0x107c04=new _0x18f655(this['locale']);return _0x107c04['children']=_0x107c04['createCollection'](),_0x107c04['children']['addMany'](_0x32119f),_0x107c04['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2a4dd4,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x107c04['children']}),_0x107c04['children']['delegate']('execute')['to'](this),_0x107c04['focus']=function(){for(const _0x2c658c of this['children'])if(_0x2c658c instanceof _0x18afe0&&_0x2c658c['isOn'])return void _0x2c658c['focus']();this['children']['first']['focus']();},_0x107c04['focusTracker']=new rt(),_0x107c04['keystrokes']=new nt(),_0x107c04['render'](),_0x107c04['keystrokes']['listenTo'](_0x107c04['element']),this['children']['add'](_0x107c04),_0x107c04;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0xa19a86=this['_createStartIndexPropertyView'](),_0x434065=[_0xa19a86],_0x54190a=new it(this['locale'],_0x434065);return _0x54190a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x54190a['buttonView']['bind']('isEnabled')['toMany'](_0x434065,'isEnabled',(..._0xaf45cb)=>_0xaf45cb['some'](_0xfd4926=>_0xfd4926)),_0x54190a['buttonView']['on']('change:isEnabled',(_0x9c76f4,_0x35eada,_0x6185cf)=>{_0x6185cf||(_0x54190a['isCollapsed']=!0x0);}),this['children']['add'](_0x54190a),[_0xa19a86,_0x54190a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e3d75=new et(this['locale'],ot);return _0x2e3d75['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e3d75['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e3d75['fieldView']['on']('input',()=>{const _0x10c3b8=_0x2e3d75['fieldView']['element'],_0x34410f=_0x10c3b8['valueAsNumber'];Number['isNaN'](_0x34410f)?_0x2e3d75['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x10c3b8['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x34410f}):_0x2e3d75['errorText']=t(_0x34410f<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2e3d75;}}class j extends _0x400efc{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3f38a0,_0x182deb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xedbe8e}=this,{componentFactory:_0x33ccd5}=_0xedbe8e['ui'];_0xedbe8e['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x33ccd5['add']('footnotesStyle',function(_0x5ce360){return _0x227b89=>{const {t:t}=_0x227b89,_0x4008c7=_0x5ce360['commands']['get']('footnotesStyle'),_0x3f2f1e=_0x28540a(_0x227b89),{buttonView:_0x63b4fe}=_0x3f2f1e;return _0x3f2f1e['class']='ck-footnotes-styles-dropdown',_0x3f2f1e['bind']('isEnabled')['to'](_0x4008c7,'isEnabled'),_0x63b4fe['set']({'label':t('Footnotes\x20style'),'icon':_0x39f915,'tooltip':!0x0}),_0x3f2f1e['once']('change:isOpen',()=>{const _0x7052bd=function({editor:_0x57b8fe,dropdownView:_0x48e637}){const {t:t}=_0x57b8fe['locale'],_0x481874=t('Footnotes\x20definitions\x20styles'),_0x666439=function(_0x4157c1){const t=_0x4157c1['locale']['t'],_0x110ca7=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x416808},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x531677},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3183aa},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2e33d8},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xf33025},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1f28e}];return _0x110ca7['map'](function(_0x40e1e6){const _0xeadc06=_0x40e1e6['locale'];return({label:_0x5b5ee0,icon:_0x3f257,tooltip:_0x3fa0fe,style:_0x4a359d})=>{const _0x1e8f97=_0x40e1e6['commands']['get']('footnotesStyle'),_0x22ca4e=new _0x18afe0(_0xeadc06);return _0x22ca4e['set']({'label':_0x5b5ee0,'icon':_0x3f257,'tooltip':_0x3fa0fe}),_0x22ca4e['bind']('isOn')['to'](_0x1e8f97,'value',_0x599add=>_0x599add===_0x4a359d),_0x22ca4e['bind']('isEnabled')['to'](_0x1e8f97,'isEnabled'),_0x22ca4e['on']('execute',()=>{_0x40e1e6['execute']('footnotesStyle',{'value':_0x4a359d}),_0x40e1e6['editing']['view']['focus']();}),_0x22ca4e;};}(_0x4157c1));}(_0x57b8fe),_0x36343e=new J(_0x57b8fe['locale'],{'styleGridAriaLabel':_0x481874,'styleButtonViews':_0x666439}),_0x40d765=_0x57b8fe['commands']['get']('footnotesStart');return _0x36343e['startIndexFieldView']['bind']('isEnabled')['to'](_0x40d765),_0x36343e['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x40d765),_0x36343e['on']('footnotesListStart',(_0x168556,_0x2e21c7)=>{_0x57b8fe['execute']('footnotesStart',{'value':_0x2e21c7['startIndex']});}),_0x36343e['delegate']('execute')['to'](_0x48e637),_0x36343e;}({'editor':_0x5ce360,'dropdownView':_0x3f2f1e});_0x3f2f1e['panelView']['children']['add'](_0x7052bd);}),_0x3f2f1e;};}(_0xedbe8e));}['afterInit'](){const {editor:_0x2d84e6}=this,{t:t}=_0x2d84e6['locale'],_0x22b71c=_0x2d84e6['plugins']['get'](_0x182deb),{defaultPositions:_0x9de99c}=_0x451c1f;_0x22b71c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2d84e6['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x466198=>{let _0x49a518=_0x466198['getFirstPosition']()?.['parent'];return _0x49a518?.['is']('$text')&&(_0x49a518=_0x49a518['parent']),_0x49a518?.['is']('element')?_0x49a518['findAncestor'](Q):null;},'positions':[_0x9de99c['southArrowNorth'],_0x9de99c['southArrowNorthMiddleWest'],_0x9de99c['southArrowNorthMiddleEast'],_0x9de99c['southArrowNorthWest'],_0x9de99c['southArrowNorthEast'],_0x9de99c['northArrowSouth'],_0x9de99c['northArrowSouthMiddleWest'],_0x9de99c['northArrowSouthMiddleEast'],_0x9de99c['northArrowSouthWest'],_0x9de99c['northArrowSouthEast'],_0x9de99c['viewportStickyNorth']]});}}class ft extends _0x400efc{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,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "47.6.0-alpha.
|
|
3
|
+
"version": "47.6.0-alpha.7",
|
|
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.6.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.6.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.6.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.6.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.6.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.6.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.6.0-alpha.
|
|
33
|
-
"ckeditor5": "47.6.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.6.0-alpha.7",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.6.0-alpha.7",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.6.0-alpha.7",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.6.0-alpha.7",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.6.0-alpha.7",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.6.0-alpha.7",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.6.0-alpha.7",
|
|
33
|
+
"ckeditor5": "47.6.0-alpha.7"
|
|
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
|
|
23
|
+
const _0x56d478=_0x10c5;(function(_0x4253b8,_0x420596){const _0x4c4439=_0x10c5,_0x3eb252=_0x4253b8();while(!![]){try{const _0x4e0c9f=-parseInt(_0x4c4439(0xe8))/0x1*(-parseInt(_0x4c4439(0xe9))/0x2)+parseInt(_0x4c4439(0xff))/0x3*(parseInt(_0x4c4439(0xeb))/0x4)+parseInt(_0x4c4439(0xf0))/0x5*(-parseInt(_0x4c4439(0xf1))/0x6)+-parseInt(_0x4c4439(0xfd))/0x7+parseInt(_0x4c4439(0x108))/0x8*(parseInt(_0x4c4439(0xec))/0x9)+-parseInt(_0x4c4439(0xf9))/0xa+parseInt(_0x4c4439(0x107))/0xb;if(_0x4e0c9f===_0x420596)break;else _0x3eb252['push'](_0x3eb252['shift']());}catch(_0xec9351){_0x3eb252['push'](_0x3eb252['shift']());}}}(_0x58e2,0xb9081));import{logWarning as _0x28ec70,uid as _0x47ef92}from'ckeditor5/src/utils.js';import{Command as _0x47c4f3}from'ckeditor5/src/core.js';function _0x10c5(_0x3510d7,_0x4c05f5){const _0x58e2b0=_0x58e2();return _0x10c5=function(_0x10c55a,_0x2f6aed){_0x10c55a=_0x10c55a-0xe5;let _0x2843b7=_0x58e2b0[_0x10c55a];return _0x2843b7;},_0x10c5(_0x3510d7,_0x4c05f5);}function _0x58e2(){const _0x5ae9be=['2006310UnKqhF','_moveSelectionToFootnoteDefinition','insert-footnote-command-executed-with-invalid-id','end','8202068iwgkni','change','3fsyAqo','_getPositionToInsertFootnote','footnoteId','model','isBlock','document','isEnabled','refresh','28302945Bxyhph','249816VTFjHy','editor','footnoteRef','test','get','getItems','9923TLrYHN','34XxYeqL','length','961168eJlZDy','99faZHjc','selection','getFirstRange','execute','5976155pnnLWZ','6oePDcs','createElement','plugins','insertObject','FootnotesEditing','checkChild','string','isObject'];_0x58e2=function(){return _0x5ae9be;};return _0x58e2();}export class InsertFootnoteCommand extends _0x47c4f3{[_0x56d478(0x106)](){const _0x5d315f=_0x56d478,_0x8bf840=this[_0x5d315f(0x109)][_0x5d315f(0x102)][_0x5d315f(0x104)][_0x5d315f(0xed)],_0x47453b=this[_0x5d315f(0x100)](_0x8bf840);this[_0x5d315f(0x105)]=!!_0x47453b;}[_0x56d478(0xef)](_0x3356cc){const _0x25056a=_0x56d478,{editor:_0x34a138}=this,{model:_0x4ed130}=_0x34a138,{selection:_0x16f3f5}=_0x4ed130[_0x25056a(0x104)],_0x23a365=this[_0x25056a(0x100)](_0x16f3f5);if(!_0x23a365)return;const _0xdbdb91=_0x34a138[_0x25056a(0xf3)][_0x25056a(0xe6)](_0x25056a(0xf5)),_0xa757fc=_0x3356cc?.[_0x25056a(0x101)]??_0x47ef92();!function(_0x41841a){const _0xa4e7fc=_0x25056a;return _0xa4e7fc(0xf7)==typeof _0x41841a&&_0x41841a[_0xa4e7fc(0xea)]>0x0&&!/\s/[_0xa4e7fc(0xe5)](_0x41841a)&&!/^\d/[_0xa4e7fc(0xe5)](_0x41841a);}(_0xa757fc)?_0x28ec70(_0x25056a(0xfb)):(_0x4ed130[_0x25056a(0xfe)](_0x386447=>{const _0x3c2408=_0x25056a,_0x392b23=_0x386447[_0x3c2408(0xf2)](_0x3c2408(0x10a),{'footnoteId':_0xa757fc});_0x4ed130[_0x3c2408(0xf4)](_0x392b23,_0x23a365,null);}),_0xdbdb91[_0x25056a(0xfa)](_0xa757fc));}[_0x56d478(0x100)](_0x379169){const _0x3cb3de=_0x56d478,{model:_0x26ed00}=this[_0x3cb3de(0x109)],{schema:_0x3255f7}=_0x26ed00,_0x25ef63=_0x379169[_0x3cb3de(0xee)]();for(const _0x219037 of _0x25ef63[_0x3cb3de(0xe7)]())if(_0x3255f7[_0x3cb3de(0x103)](_0x219037)||_0x3255f7[_0x3cb3de(0xf8)](_0x219037))return null;const _0x27f3c4=_0x25ef63[_0x3cb3de(0xfc)];return _0x3255f7[_0x3cb3de(0xf6)](_0x27f3c4,_0x3cb3de(0x10a))?_0x27f3c4:null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x53d292=_0x206d;function _0x3ccc(){const _0x3ece99=['9DLMfyT','footnotesListStart','plugins','get','190364gfOmLe','execute','_updateFootnotesCounters','272037ZRPzUG','539958XzYXct','refresh','getFootnotesDefinitionsObjectElement','36630UNCFGT','2900860vZDvEr','value','isInteger','30QjUDkF','model','setAttribute','316024qSNFOw','change','8922420MXbSUI','21tISlOp','getAttribute','isEnabled'];_0x3ccc=function(){return _0x3ece99;};return _0x3ccc();}(function(_0x3fb6c5,_0x5e589f){const _0x6559ed=_0x206d,_0x25e7a1=_0x3fb6c5();while(!![]){try{const _0x5a030d=parseInt(_0x6559ed(0xc6))/0x1+parseInt(_0x6559ed(0xbf))/0x2+-parseInt(_0x6559ed(0xc2))/0x3+parseInt(_0x6559ed(0xc7))/0x4+parseInt(_0x6559ed(0xca))/0x5*(parseInt(_0x6559ed(0xc3))/0x6)+-parseInt(_0x6559ed(0xd0))/0x7*(-parseInt(_0x6559ed(0xcd))/0x8)+parseInt(_0x6559ed(0xd3))/0x9*(-parseInt(_0x6559ed(0xcf))/0xa);if(_0x5a030d===_0x5e589f)break;else _0x25e7a1['push'](_0x25e7a1['shift']());}catch(_0x407fd3){_0x25e7a1['push'](_0x25e7a1['shift']());}}}(_0x3ccc,0x8205d));function _0x206d(_0x5dccb2,_0x1af80a){const _0x3cccde=_0x3ccc();return _0x206d=function(_0x206d7f,_0x2dcc10){_0x206d7f=_0x206d7f-0xbc;let _0xf37442=_0x3cccde[_0x206d7f];return _0xf37442;},_0x206d(_0x5dccb2,_0x1af80a);}import{Command as _0x22960c}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x1111c2}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x22960c{[_0x53d292(0xc4)](){const _0x2ec8ac=_0x53d292,{editor:_0x5c16cb}=this,_0x349ead=_0x5c16cb[_0x2ec8ac(0xbd)][_0x2ec8ac(0xbe)](_0x1111c2)[_0x2ec8ac(0xc5)]();this[_0x2ec8ac(0xd2)]=!!_0x349ead,this[_0x2ec8ac(0xc8)]=_0x349ead?.[_0x2ec8ac(0xd1)](_0x2ec8ac(0xbc))??null;}[_0x53d292(0xc0)]({value:_0x49d4b0}){const _0x3e1932=_0x53d292,{editor:_0x4b894c}=this,_0x405def=_0x4b894c[_0x3e1932(0xbd)][_0x3e1932(0xbe)](_0x1111c2),_0x252c2c=_0x405def[_0x3e1932(0xc5)]();_0x252c2c&&Number[_0x3e1932(0xc9)](_0x49d4b0)&&_0x4b894c[_0x3e1932(0xcb)][_0x3e1932(0xce)](_0x271b32=>{const _0x52df31=_0x3e1932;_0x271b32[_0x52df31(0xcc)](_0x52df31(0xbc),_0x49d4b0,_0x252c2c),_0x405def[_0x52df31(0xc1)](_0x271b32);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ad009=_0x3218;function _0x3218(_0x376549,_0xb68f59){const _0x5a0edb=_0x5a0e();return _0x3218=function(_0x3218dd,_0x3fd8ff){_0x3218dd=_0x3218dd-0x1e9;let _0x74c386=_0x5a0edb[_0x3218dd];return _0x74c386;},_0x3218(_0x376549,_0xb68f59);}(function(_0x548c3c,_0x3c7bd3){const _0x5aaa95=_0x3218,_0x2d3324=_0x548c3c();while(!![]){try{const _0x4a094a=parseInt(_0x5aaa95(0x1f6))/0x1*(-parseInt(_0x5aaa95(0x1f7))/0x2)+parseInt(_0x5aaa95(0x1f3))/0x3*(-parseInt(_0x5aaa95(0x1ea))/0x4)+parseInt(_0x5aaa95(0x1f8))/0x5*(parseInt(_0x5aaa95(0x1fe))/0x6)+parseInt(_0x5aaa95(0x1ee))/0x7*(-parseInt(_0x5aaa95(0x1fc))/0x8)+-parseInt(_0x5aaa95(0x1f1))/0x9*(-parseInt(_0x5aaa95(0x1f0))/0xa)+parseInt(_0x5aaa95(0x1f2))/0xb+parseInt(_0x5aaa95(0x1f5))/0xc;if(_0x4a094a===_0x3c7bd3)break;else _0x2d3324['push'](_0x2d3324['shift']());}catch(_0x482b97){_0x2d3324['push'](_0x2d3324['shift']());}}}(_0x5a0e,0x2fc2c));import{Command as _0x1190a8}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x27bbed}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x2fd6e7}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x1190a8{[_0x3ad009(0x1e9)](){const _0x14a933=_0x3ad009,{editor:_0x146230}=this,_0x5ec190=_0x146230[_0x14a933(0x1f4)][_0x14a933(0x1ec)](_0x2fd6e7)[_0x14a933(0x201)]();this[_0x14a933(0x1fb)]=!!_0x5ec190,this[_0x14a933(0x1ef)]=_0x5ec190?.[_0x14a933(0x1ff)](_0x14a933(0x1fd))??null;}[_0x3ad009(0x202)]({value:_0x3371ad}){const _0x27c6e9=_0x3ad009,{editor:_0x2c2d5f}=this,_0x1c2565=_0x2c2d5f[_0x27c6e9(0x1f4)][_0x27c6e9(0x1ec)](_0x2fd6e7),_0x435f1a=_0x1c2565[_0x27c6e9(0x201)]();_0x435f1a&&_0x27bbed[_0x27c6e9(0x1fa)](_0x3371ad)&&_0x2c2d5f[_0x27c6e9(0x1f9)][_0x27c6e9(0x1ed)](_0x19dd90=>{const _0x3ab034=_0x27c6e9;_0x19dd90[_0x3ab034(0x200)](_0x3ab034(0x1fd),_0x3371ad,_0x435f1a),_0x1c2565[_0x3ab034(0x1eb)](_0x19dd90);});}}function _0x5a0e(){const _0x2d2f0c=['value','100CGFfDH','170829LvkvjJ','1492832vfQcDp','951PgmkAL','plugins','3436632XwCBQf','3iHCXPC','446qDRJhU','505vTLsgO','model','includes','isEnabled','159816rlbJgv','footnotesListStyle','2694QABtfT','getAttribute','setAttribute','getFootnotesDefinitionsObjectElement','execute','refresh','4052qSrlls','_updateFootnotesCounters','get','change','49OSvpUQ'];_0x5a0e=function(){return _0x2d2f0c;};return _0x5a0e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x47183f,ButtonView as _0x5e4d0e,ContextualBalloon as _0x36a0dd,createDropdown as _0x40b646}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x1a08ad}from'ckeditor5/src/widget.js';import{Plugin as _0x1019d0}from'ckeditor5/src/core.js';import{IconFootnote as _0x5e9bf2,IconListStyleDecimal as _0x593caa,IconListStyleDecimalLeadingZero as _0x271ab2,IconListStyleLowerLatin as _0x5f2358,IconListStyleLowerRoman as _0x2e1550,IconListStyleUpperLatin as _0x28a066,IconListStyleUpperRoman as _0x37471d}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x5d96d6}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x3e409e}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x1019d0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x36a0dd,_0x1a08ad];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x57c6f6}=this,{componentFactory:_0x46228b}=_0x57c6f6['ui'];_0x57c6f6['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x46228b['add']('footnotesStyle',function(_0x4e5fbd){return _0x286aab=>{const {t:t}=_0x286aab,_0x3343cf=_0x4e5fbd['commands']['get']('footnotesStyle'),_0x3339cd=_0x40b646(_0x286aab),{buttonView:_0x30e31f}=_0x3339cd;return _0x3339cd['class']='ck-footnotes-styles-dropdown',_0x3339cd['bind']('isEnabled')['to'](_0x3343cf,'isEnabled'),_0x30e31f['set']({'label':t('Footnotes\x20style'),'icon':_0x5e9bf2,'tooltip':!0x0}),_0x3339cd['once']('change:isOpen',()=>{const _0x3efaa3=function({editor:_0x617105,dropdownView:_0x472e84}){const {t:t}=_0x617105['locale'],_0x16e52e=t('Footnotes\x20definitions\x20styles'),_0x5f211d=function(_0x31e632){const t=_0x31e632['locale']['t'],_0x1562f4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x593caa},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x271ab2},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2e1550},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x37471d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5f2358},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x28a066}];return _0x1562f4['map'](function(_0x1db6b6){const _0x15041f=_0x1db6b6['locale'];return({label:_0xa57872,icon:_0x4d20b8,tooltip:_0x1e0558,style:_0x3f5e0e})=>{const _0x49cfab=_0x1db6b6['commands']['get']('footnotesStyle'),_0x7ad908=new _0x5e4d0e(_0x15041f);return _0x7ad908['set']({'label':_0xa57872,'icon':_0x4d20b8,'tooltip':_0x1e0558}),_0x7ad908['bind']('isOn')['to'](_0x49cfab,'value',_0x6771f8=>_0x6771f8===_0x3f5e0e),_0x7ad908['bind']('isEnabled')['to'](_0x49cfab,'isEnabled'),_0x7ad908['on']('execute',()=>{_0x1db6b6['execute']('footnotesStyle',{'value':_0x3f5e0e}),_0x1db6b6['editing']['view']['focus']();}),_0x7ad908;};}(_0x31e632));}(_0x617105),_0x13b041=new _0x5d96d6(_0x617105['locale'],{'styleGridAriaLabel':_0x16e52e,'styleButtonViews':_0x5f211d}),_0x2a7aa=_0x617105['commands']['get']('footnotesStart');return _0x13b041['startIndexFieldView']['bind']('isEnabled')['to'](_0x2a7aa),_0x13b041['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2a7aa),_0x13b041['on']('footnotesListStart',(_0xced093,_0x583c61)=>{_0x617105['execute']('footnotesStart',{'value':_0x583c61['startIndex']});}),_0x13b041['delegate']('execute')['to'](_0x472e84),_0x13b041;}({'editor':_0x4e5fbd,'dropdownView':_0x3339cd});_0x3339cd['panelView']['children']['add'](_0x3efaa3);}),_0x3339cd;};}(_0x57c6f6));}['afterInit'](){const {editor:_0x49f7dc}=this,{t:t}=_0x49f7dc['locale'],_0x545d67=_0x49f7dc['plugins']['get'](_0x1a08ad),{defaultPositions:_0xfcd74e}=_0x47183f;_0x545d67['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x49f7dc['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x348a95=>{let _0x319bf2=_0x348a95['getFirstPosition']()?.['parent'];return _0x319bf2?.['is']('$text')&&(_0x319bf2=_0x319bf2['parent']),_0x319bf2?.['is']('element')?_0x319bf2['findAncestor'](_0x3e409e):null;},'positions':[_0xfcd74e['southArrowNorth'],_0xfcd74e['southArrowNorthMiddleWest'],_0xfcd74e['southArrowNorthMiddleEast'],_0xfcd74e['southArrowNorthWest'],_0xfcd74e['southArrowNorthEast'],_0xfcd74e['northArrowSouth'],_0xfcd74e['northArrowSouthMiddleWest'],_0xfcd74e['northArrowSouthMiddleEast'],_0xfcd74e['northArrowSouthWest'],_0xfcd74e['northArrowSouthEast'],_0xfcd74e['viewportStickyNorth']]});}}
|