@ckeditor/ckeditor5-footnotes 47.4.0-alpha.2 → 47.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>T,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?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=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([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[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([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[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768003200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([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 A=o(331);const D=L;function P(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(P=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class T extends t.Plugin{static get[D(375)](){return D(450)}static get[D(395)](){return[v,A.ClipboardPipeline]}static get[D(390)](){return!0}static get[D(410)](){return!0}[D(368)](){this[D(409)]()}[D(409)](){const t=D;this[t(448)](),this[t(435)]()}[D(448)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](A.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[D(435)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](A.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=_(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function _(t,e){const o=D;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=P();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),G=o.n(z),W=o(741),H=o.n(W),X=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=G(),q.insert=U().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();K()(X.A,q);X.A&&X.A.locals&&X.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(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 Y(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 J=Q;function Q(t,e){var o=$();return(Q=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[J(382)](){return J(378)}static get[J(389)](){return[v,T,Z]}static get[J(379)](){return!0}static get[J(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=379]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(440716===-parseInt(e(404))/1*(parseInt(e(388))/2)+-parseInt(e(380))/3*(parseInt(e(395))/4)+parseInt(e(396))/5+-parseInt(e(382))/6+parseInt(e(392))/7*(-parseInt(e(386))/8)+-parseInt(e(381))/9*(parseInt(e(379))/10)+parseInt(e(401))/11*(parseInt(e(389))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(397)](){const t=st,{editor:e}=this,o=e[t(398)][t(402)](d)[t(384)]();this[t(391)]=!!o,this[t(394)]=o?.[t(400)](t(387))??null}[st(393)]({value:t}){const e=st,{editor:o}=this,n=o[e(398)][e(402)](d),i=n[e(384)]();i&&it[e(399)](t)&&o[e(385)][e(383)](o=>{const s=e;o[s(403)](s(387),t,i),n[s(390)](o)})}}function ct(){const t=["2952mGZGmA","footnotesListStyle","2bJlFNB","13344108wxUcct","_updateFootnotesCounters","isEnabled","9611GPwHNn","execute","value","312020JftpCX","1642955wsyOHx","refresh","plugins","includes","getAttribute","22gbOXCP","get","setAttribute","207219PGvsES","1297470iHZfXP","15njBDqo","45vlMNDK","2155662kQpXVP","change","getFootnotesDefinitionsObjectElement","model"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new at(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():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=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}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=G(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();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-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function Dt(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(Dt=function(){return t})()}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?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=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([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[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([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[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768176e3;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const A=L;function D(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(D=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(375)](){return A(450)}static get[A(395)](){return[v,T.ClipboardPipeline]}static get[A(390)](){return!0}static get[A(410)](){return!0}[A(368)](){this[A(409)]()}[A(409)](){const t=A;this[t(448)](),this[t(435)]()}[A(448)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](T.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[A(435)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](T.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=P(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=P(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function P(t,e){const o=A;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=D();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),G=o(741),H=o.n(G),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=H();K()(q.A,X);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",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 Q=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(382)](){return Q(378)}static get[Q(389)](){return[v,_,Y]}static get[Q(379)](){return!0}static get[Q(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=353]})(t,e)}function at(){const t=["4332312mtAfqV","model","getAttribute","getFootnotesDefinitionsObjectElement","includes","_updateFootnotesCounters","get","2502815JXWpQQ","4385832hxDhaK","footnotesListStyle","1764734vewIYK","1NojpiI","refresh","plugins","value","isEnabled","setAttribute","4636800anScsI","823915rzCTOR","execute","1825866MzXdzT","change"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(579818===parseInt(e(373))/1*(parseInt(e(372))/2)+-parseInt(e(360))/3+-parseInt(e(357))/4+-parseInt(e(358))/5+parseInt(e(370))/6+parseInt(e(369))/7+parseInt(e(362))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(374)](){const t=st,{editor:e}=this,o=e[t(353)][t(368)](d)[t(365)]();this[t(355)]=!!o,this[t(354)]=o?.[t(364)](t(371))??null}[st(359)]({value:t}){const e=st,{editor:o}=this,n=o[e(353)][e(368)](d),i=n[e(365)]();i&&it[e(366)](t)&&o[e(363)][e(361)](o=>{const s=e;o[s(356)](s(371),t,i),n[s(367)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new ct(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():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=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}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=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();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-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Tt extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function At(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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 _0x1a1224,Command as _0x5e4aee}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x11fe15,isWidget as _0x41e0e1,toWidgetEditable as _0x51046e,WidgetToolbarRepository as _0x1bdf8d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1e1024,logWarning as _0x1c18e2,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3ca3e6,ClickObserver as _0x5441bf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4d9667}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3f24a9,ButtonView as _0x275c2c,View as _0x464d81,ViewCollection as _0x5d8154,FocusCycler as _0x57b1ab,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x1c3e38,BalloonPanelView as _0x31f217,createDropdown as _0x14eff1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xeb2824,IconListStyleDecimal as _0x2fd60d,IconListStyleDecimalLeadingZero as _0x5da6fc,IconListStyleLowerRoman as _0x551ecf,IconListStyleUpperRoman as _0x150262,IconListStyleLowerLatin as _0x4fd7b8,IconListStyleUpperLatin as _0x8fa10e}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0xaea491,_0x233fc0){this['_model']=_0xaea491,this['_elementName']=_0x233fc0['elementName'],this['_getElementKey']=_0x233fc0['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3a9962){const _0x51c377=new Set(),_0x9bdc6e=new Map();for(const _0x13eab3 of _0x3a9962){if('insert'===_0x13eab3['type']&&'$text'!==_0x13eab3['name']&&_0x13eab3['position']['nodeAfter']){const _0x5d523a=this['_model']['createRangeOn'](_0x13eab3['position']['nodeAfter']);for(const _0x564682 of _0x5d523a['getItems']()){if(!_0x564682['is']('element',this['_elementName']))continue;const _0x8b78b5=this['_getElementKey'](_0x564682);_0x9bdc6e['has'](_0x8b78b5)||_0x9bdc6e['set'](_0x8b78b5,[]),_0x9bdc6e['get'](_0x8b78b5)['push'](_0x564682);}}if('remove'===_0x13eab3['type']&&_0x13eab3['name']===this['_elementName']){const _0x4b7739=this['_getElementKey']({'getAttribute':_0x5ab968=>_0x13eab3['attributes']['get'](_0x5ab968)});_0x51c377['add'](_0x4b7739);}}for(const [_0x63b6ba,_0x2a63ed]of this['_trackedElements'])'$graveyard'===_0x2a63ed['root']['rootName']&&_0x51c377['add'](_0x63b6ba);for(const _0x19e13c of _0x51c377)this['_trackedElements']['delete'](_0x19e13c);for(const [_0x204435,_0x3bea1f]of _0x9bdc6e)this['_trackedElements']['set'](_0x204435,_0x3bea1f[_0x3bea1f['length']-0x1]);const _0x17dec5=new Set();for(const [_0x2ade10,_0x5e9d72]of _0x9bdc6e)_0x51c377['has'](_0x2ade10)&&(_0x17dec5['add'](_0x5e9d72[0x0]),_0x5e9d72['length']>0x1?_0x9bdc6e['set'](_0x2ade10,_0x5e9d72['slice'](0x1)):_0x9bdc6e['delete'](_0x2ade10),_0x51c377['delete'](_0x2ade10));return{'removed':Array['from'](_0x51c377),'inserted':Array['from'](_0x9bdc6e['values']())['flat'](),'moved':Array['from'](_0x17dec5)};}}class f extends _0x1a1224{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x548728){super(_0x548728),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x32ddf4=>_0x32ddf4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x269014=>_0x269014['getAttribute']('footnoteId')});}['init'](){const {editor:_0x400b7d}=this,{model:_0x3552b6,data:_0xd5b52c}=_0x400b7d;_0x3552b6['document']['registerPostFixer'](_0x5e1446=>{const _0xe60a32=_0x3552b6['document']['differ']['getChanges']();let _0x54c853=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5e1446,_0xe60a32)&&(_0x54c853=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5e1446,_0xe60a32)&&(_0x54c853=!0x0),this['_handleFootnoteReferencesChanges'](_0x5e1446,_0xe60a32)&&(_0x54c853=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5e1446)&&(_0x54c853=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5e1446)&&(_0x54c853=!0x0),this['_sortFootnoteDefinitions'](_0x5e1446)&&(_0x54c853=!0x0),_0x54c853;}),this['listenTo'](_0x3552b6['document'],'change:data',()=>{_0x3552b6['enqueueChange']({'isUndoable':!0x1},_0x36d9f1=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x36d9f1);});},{'priority':'low'}),this['listenTo'](_0xd5b52c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x249204){return this['_footnotes']['find'](_0x1f581f=>_0x1f581f['id']===_0x249204)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x45e665){this['_footnoteFormatter']=_0x45e665;}['_updateFootnotesCounters'](_0x139aa6,_0x1943ae=0x0){let _0xd92a41=!0x1;for(let _0x79a1aa=_0x1943ae;_0x79a1aa<this['_footnotes']['length'];_0x79a1aa++)this['_updateFootnoteRefCounter'](_0x139aa6,_0x79a1aa)&&(_0xd92a41=!0x0);return _0xd92a41;}['_insertEmptyFootnotesDefinitionsContainer'](_0x9611e1,_0x26ca5d){const _0x380374=_0x9611e1['createElement']('footnotesDefinitions',{});return _0x9611e1['append'](_0x380374,_0x26ca5d),this['_footnotesDefinitions']=_0x380374,_0x380374;}['_ensureFootnotesDefinitionsContainerExists'](_0x428530){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5374df=this['_footnotes'][0x0]['reference']['root'],_0x22a483=this['_insertEmptyFootnotesDefinitionsContainer'](_0x428530,_0x5374df);for(const _0x1ce80b of this['_footnotes'])_0x1ce80b['definition']['parent']||_0x428530['insert'](_0x1ce80b['definition'],_0x22a483,'end');this['_updateFootnotesCounters'](_0x428530);}['_handleFootnotesDefinitionsObjectChanges'](_0x362f34,_0x43a08a){let _0x1ac6e7=!0x1;const {inserted:_0x43a998,removed:_0x3ce52b,moved:_0x320b3e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x43a08a);if(_0x320b3e['length']&&(this['_footnotesDefinitions']=_0x320b3e[0x0]),_0x43a998['length']){if(_0x43a998['length']>0x1||this['_footnotesDefinitions']&&_0x43a998['some'](_0x254cbb=>_0x254cbb!==this['_footnotesDefinitions'])){const _0x4472ac=_0x362f34['createElement']('footnotesDefinitions',{}),_0x5c6578=[];this['_footnotesDefinitions']&&_0x5c6578['push'](this['_footnotesDefinitions']),_0x5c6578['push'](..._0x43a998),_0x362f34['insert'](_0x4472ac,_0x5c6578[0x0],'before');for(const _0x22230a of _0x5c6578)_0x362f34['move'](_0x362f34['createRangeIn'](_0x22230a),_0x362f34['createPositionAt'](_0x4472ac,'end')),_0x362f34['remove'](_0x22230a);this['_footnotesDefinitions']=_0x4472ac,this['_updateFootnotesCounters'](_0x362f34),_0x1ac6e7=!0x0;}else this['_footnotesDefinitions']=_0x43a998[0x0];}if(_0x3ce52b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4a73a7 of this['_footnotes'])_0x362f34['remove'](_0x4a73a7['reference']),_0x1ac6e7=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1ac6e7;}['_handleFootnoteDefinitionsChanges'](_0xfcf2be,_0x17ab97){let _0x328d46=!0x1;const _0x46af49=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x195a9b,moved:_0x1fc0e7}=this['_footnoteDefsTracker']['getChanges'](_0x17ab97);for(const _0x46702c of[..._0x1fc0e7,..._0x195a9b]){const _0xe02106=_0x46702c['getAttribute']('footnoteId'),_0x29d5c5=this['getFootnote'](_0xe02106);_0x29d5c5&&(_0x29d5c5['definition']=_0x46702c),_(_0xfcf2be,_0x46af49,_0x46702c)&&(_0x328d46=!0x0);}return _0x328d46;}['_handleFootnoteReferencesChanges'](_0x5704c7,_0x3df03a){let _0x4a1a76=!0x1;const {removed:_0x40c575,inserted:_0x258e20,moved:_0x384875}=this['_footnoteRefsTracker']['getChanges'](_0x3df03a);for(const _0x2d8431 of _0x40c575)this['_handleRemoveFootnoteReferenceById'](_0x5704c7,_0x2d8431)&&(_0x4a1a76=!0x0);for(const _0x3dfd8a of _0x258e20)this['_handleInsertedFootnoteReference'](_0x5704c7,_0x3dfd8a)&&(_0x4a1a76=!0x0);for(const _0x38ff13 of _0x384875)this['_handleMovedFootnoteReference'](_0x5704c7,_0x38ff13)&&(_0x4a1a76=!0x0);return _0x4a1a76;}['_handleFootnotesDefinitionsObjectSync'](_0x561ed1){if(!this['_footnotesDefinitions'])return!0x1;let _0x29a34a=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x547af7=[];for(const _0x16fd7f of this['_footnotesDefinitions']['getChildren']()){const _0x6ea812=_0x16fd7f['getAttribute']('footnoteId');this['getFootnote'](_0x6ea812)||(_0x547af7['unshift'](_0x16fd7f),_0x29a34a=!0x0);}for(const _0x1bf53b of _0x547af7)_0x561ed1['remove'](_0x1bf53b);}const _0x2c0578=new Set(),_0x2f6c7e=[];for(const _0x4ba3e6 of this['_footnotesDefinitions']['getChildren']()){const _0x2cfa4c=_0x4ba3e6['getAttribute']('footnoteId');_0x2c0578['has'](_0x2cfa4c)?(_0x2f6c7e['unshift'](_0x4ba3e6),_0x29a34a=!0x0):_0x2c0578['add'](_0x2cfa4c);}for(const _0xd6ebb9 of _0x2f6c7e)_0x561ed1['remove'](_0xd6ebb9);return this['_footnotesDefinitions']['childCount']||(_0x561ed1['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x29a34a=!0x0),_0x29a34a;}['_handleInsertedFootnoteReference'](_0x37060c,_0x502b6d){if(this['_footnotes']['find'](_0x2efa5a=>_0x2efa5a['reference']===_0x502b6d))return!0x1;let _0x29134f=!0x1;const _0x264d88=_0x502b6d['getAttribute']('footnoteId'),_0x43ad03=this['_footnotes']['findIndex'](_0x2d41b5=>_0x2d41b5['id']===_0x264d88);-0x1!==_0x43ad03&&(_0x37060c['remove'](this['_footnotes'][_0x43ad03]['reference']),this['_footnotes']['splice'](_0x43ad03,0x1),_0x29134f=!0x0);let _0x3e491c=this['_footnotesDefinitions']?function(_0xffeba1,_0x3104d3){for(const _0x5414e7 of _0xffeba1['getChildren']())if(_0x5414e7['getAttribute']('footnoteId')===_0x3104d3)return _0x5414e7;return null;}(this['_footnotesDefinitions'],_0x264d88):null;_0x3e491c||(_0x3e491c=_0x37060c['createElement']('footnoteDefinition',{'footnoteId':_0x264d88}),this['_footnotesDefinitions']&&(_0x37060c['insert'](_0x3e491c,this['_footnotesDefinitions'],'end'),_0x29134f=!0x0));const _0x6bbb62={'id':_0x264d88,'reference':_0x502b6d,'definition':_0x3e491c},_0x2167c0=I(this['editor']['model'],this['_footnotes'],_0x502b6d);this['_footnotes']['splice'](_0x2167c0,0x0,_0x6bbb62);let _0x97f073=_0x2167c0;return-0x1!==_0x43ad03&&(_0x97f073=Math['min'](_0x2167c0,_0x43ad03)),this['_updateFootnotesCounters'](_0x37060c,_0x97f073)&&(_0x29134f=!0x0),_0x29134f;}['_handleRemoveFootnoteReferenceById'](_0x57cceb,_0x165687){const _0x530b89=this['_footnotes']['findIndex'](_0x24c762=>_0x24c762['id']===_0x165687);if(-0x1===_0x530b89)return!0x1;let _0x564700=!0x1;const _0x14c530=this['_footnotes'][_0x530b89];return'$graveyard'!==_0x14c530['definition']['root']['rootName']&&(_0x57cceb['remove'](_0x14c530['definition']),_0x564700=!0x0),this['_footnotes']['splice'](_0x530b89,0x1),this['_updateFootnotesCounters'](_0x57cceb,_0x530b89)&&(_0x564700=!0x0),_0x564700;}['_handleMovedFootnoteReference'](_0x222e5f,_0x5e2057){const _0x3850d7=_0x5e2057['getAttribute']('footnoteId'),_0x20dc70=this['_footnotes']['findIndex'](_0x3d4ad7=>_0x3d4ad7['id']===_0x3850d7),_0x213af1=this['_footnotes'][_0x20dc70];let _0x32eaad=!0x1;_0x213af1['reference']=_0x5e2057,this['_footnotes']['splice'](_0x20dc70,0x1);const _0x302985=I(this['editor']['model'],this['_footnotes'],_0x5e2057);return this['_footnotes']['splice'](_0x302985,0x0,_0x213af1),this['_updateFootnotesCounters'](_0x222e5f,Math['min'](_0x20dc70,_0x302985))&&(_0x32eaad=!0x0),_0x32eaad;}['_updateFootnoteRefCounter'](_0x530475,_0x2b4742){if(!this['_footnotesDefinitions'])return!0x1;const _0x2baa8f=this['_footnotes'][_0x2b4742];let _0x1167a9;return _0x1167a9=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2baa8f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2b4742+0x1}):String(_0x2b4742+0x1),_0x2baa8f['reference']['getAttribute']('footnoteCounter')!=_0x1167a9&&(_0x530475['setAttribute']('footnoteCounter',_0x1167a9,_0x2baa8f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x8dc7a5){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xb30b7c,_0x2157bb){if(_0xb30b7c['length']!==_0x2157bb['length'])return!0x1;for(let _0x50cd23=0x0;_0x50cd23<_0xb30b7c['length'];_0x50cd23++)if(_0xb30b7c[_0x50cd23]!==_0x2157bb[_0x50cd23])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x460010=>_0x460010['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x54ba55=>_0x54ba55['getAttribute']('footnoteId'))))return!0x1;let _0x3773f3=!0x1;for(let _0x27e0ab=0x0;_0x27e0ab<this['_footnotes']['length'];_0x27e0ab++){const _0x282f70=this['_footnotes'][_0x27e0ab],_0x534941=_0x8dc7a5['createPositionBefore'](_0x282f70['definition']),_0x27f0d8=_0x8dc7a5['createPositionAt'](this['_footnotesDefinitions'],_0x27e0ab);_0x534941['isEqual'](_0x27f0d8)||(_0x8dc7a5['move'](_0x8dc7a5['createRangeOn'](_0x282f70['definition']),_0x27f0d8),_0x3773f3=!0x0);}return _0x3773f3;}['_ensureFootnotesReferencesHaveProperOrder'](_0x48e262){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5b8e2d}=this['editor'];let _0x1a484d=!0x1;for(let _0x2cd559=0x0;_0x2cd559<this['_footnotes']['length']-0x1;_0x2cd559++){const _0x3d0a02=this['_footnotes'][_0x2cd559],_0x1cf3ee=this['_footnotes'][_0x2cd559+0x1],_0x3197f1=_0x5b8e2d['createPositionBefore'](_0x3d0a02['reference']),_0xeacb22=_0x5b8e2d['createPositionBefore'](_0x1cf3ee['reference']);'after'===_0x3197f1['compareWith'](_0xeacb22)&&(this['_handleMovedFootnoteReference'](_0x48e262,_0x3d0a02['reference']),_0x2cd559=-0x1,_0x1a484d=!0x0);}return _0x1a484d;}}function _(_0x408608,_0x38c338,_0x43fbb4){if(_0x43fbb4['childCount'])return!0x1;const _0x87f8eb=_0x38c338?'paragraph':'footnoteInlineContent';return _0x408608['insert'](_0x408608['createElement'](_0x87f8eb),_0x43fbb4),!0x0;}function I(_0x230e9a,_0x40d83e,_0x17d96a){if(0x0===_0x40d83e['length'])return 0x0;const _0x82b0e4=_0x230e9a['createPositionBefore'](_0x17d96a);for(let _0x5b0a04=0x0;_0x5b0a04<_0x40d83e['length'];_0x5b0a04++){const _0x2ed7f2=_0x40d83e[_0x5b0a04],_0x33e6a7=_0x230e9a['createPositionBefore'](_0x2ed7f2['reference']);if('before'===_0x82b0e4['compareWith'](_0x33e6a7))return _0x5b0a04;}const _0xbfa646=_0x17d96a['root'];let _0xc404c9=-0x1;for(let _0x5ce35d=_0x40d83e['length']-0x1;_0x5ce35d>=0x0;_0x5ce35d--)if(_0x40d83e[_0x5ce35d]['reference']['root']===_0xbfa646){_0xc404c9=_0x5ce35d;break;}if(-0x1!==_0xc404c9)return _0xc404c9+0x1;const _0x144118=_0x230e9a['document']['getRootNames'](),_0x3e9df8=_0x144118['indexOf'](_0xbfa646['rootName']),_0x2e6ede=_0x144118[_0x3e9df8+0x1];if(_0x2e6ede){for(let _0x4c28d6=0x0;_0x4c28d6<_0x40d83e['length'];_0x4c28d6++)if(_0x40d83e[_0x4c28d6]['reference']['root']['rootName']===_0x2e6ede)return _0x4c28d6;}return _0x40d83e['length'];}class h extends _0x5e4aee{['refresh'](){const _0x5c1c6b=this['editor']['model']['document']['selection'],_0x123387=this['_getPositionToInsertFootnote'](_0x5c1c6b);this['isEnabled']=!!_0x123387;}['execute'](_0x14e15e){const {editor:_0x361e12}=this,{model:_0x2e96e3}=_0x361e12,{selection:_0x2b0384}=_0x2e96e3['document'],_0x44ec4e=this['_getPositionToInsertFootnote'](_0x2b0384);if(!_0x44ec4e)return;const _0x2474dd=_0x361e12['plugins']['get']('FootnotesEditing'),_0x5727bf=_0x14e15e?.['footnoteId']??_0x1e1024();!function(_0x40a9f3){return'string'==typeof _0x40a9f3&&_0x40a9f3['length']>0x0&&!/\s/['test'](_0x40a9f3)&&!/^\d/['test'](_0x40a9f3);}(_0x5727bf)?_0x1c18e2('insert-footnote-command-executed-with-invalid-id'):(_0x2e96e3['change'](_0x693df=>{const _0x411946=_0x693df['createElement']('footnoteRef',{'footnoteId':_0x5727bf});_0x2e96e3['insertObject'](_0x411946,_0x44ec4e,null);}),_0x2474dd['_moveSelectionToFootnoteDefinition'](_0x5727bf));}['_getPositionToInsertFootnote'](_0x4ce2d4){const {model:_0x4f56d7}=this['editor'],{schema:_0x57de68}=_0x4f56d7,_0x7a9163=_0x4ce2d4['getFirstRange']();for(const _0x542f68 of _0x7a9163['getItems']())if(_0x57de68['isBlock'](_0x542f68)||_0x57de68['isObject'](_0x542f68))return null;const _0x879843=_0x7a9163['end'];return _0x57de68['checkChild'](_0x879843,'footnoteRef')?_0x879843:null;}}class r extends _0x1a1224{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ac333}=this;_0x4ac333['config']['define']('footnotes.multiBlock',!0x0),_0x4ac333['commands']['add']('insertFootnote',new h(_0x4ac333)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2b3c2f){const _0x482294=_0x1b3fcc([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]),_0x43a8c4=0x47a28506,_0x369b25=0x47a5fb6e^_0x43a8c4,_0x2fd185=window[_0x1b3fcc([0x44,0x61,0x74,0x65])][_0x1b3fcc([0x6e,0x6f,0x77])](),_0x15cd2c=_0x2b3c2f[_0x1b3fcc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xce2a63=new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9cf409=>{_0x15cd2c[_0x1b3fcc([0x6f,0x6e,0x63,0x65])](_0x1b3fcc([0x72,0x65,0x61,0x64,0x79]),_0x9cf409);}),_0x3bb728={[_0x1b3fcc([0x6b,0x74,0x79])]:_0x1b3fcc([0x45,0x43]),[_0x1b3fcc([0x75,0x73,0x65])]:_0x1b3fcc([0x73,0x69,0x67]),[_0x1b3fcc([0x63,0x72,0x76])]:_0x1b3fcc([0x50,0x2d,0x32,0x35,0x36]),[_0x1b3fcc([0x78])]:_0x1b3fcc([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]),[_0x1b3fcc([0x79])]:_0x1b3fcc([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]),[_0x1b3fcc([0x61,0x6c,0x67])]:_0x1b3fcc([0x45,0x53,0x32,0x35,0x36])},_0x598d16=_0x15cd2c[_0x1b3fcc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b3fcc([0x67,0x65,0x74])](_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d90a3(){let _0x54e08e,_0x3b5dc5=null,_0x4446a5=null;try{if(_0x598d16==_0x1b3fcc([0x47,0x50,0x4c]))return _0x1b3fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54e08e=_0x4c941c(),!_0x54e08e)return _0x1b3fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54e08e[_0x1b3fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4446a5=_0xdcc9dd(_0x54e08e[_0x1b3fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54e08e[_0x1b3fcc([0x6a,0x74,0x69])])),await _0x2c0f12()?_0x23917a()?_0x98c87()?_0x1b3fcc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ee806()?(_0x54e08e[_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b3fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b5dc5=_0x23b307(_0x1b3fcc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x476e70()):_0x1b3fcc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b3fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b3fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b3fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x98c87(){const _0x2dcc42=[_0x1b3fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b3fcc([0x74,0x72,0x69,0x61,0x6c])][_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54e08e[_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fd185/0x3e8:0xe10*_0x369b25;return _0x54e08e[_0x1b3fcc([0x65,0x78,0x70])]<_0x2dcc42;}function _0x23917a(){const _0x294fb4=_0x54e08e[_0x1b3fcc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x294fb4&&(!!_0x294fb4[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3fcc([0x2a]))||!!_0x294fb4[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3fcc([0x46,0x4f,0x4f])));}function _0x5ee806(){const _0x2284d5=_0x54e08e[_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2284d5||0x0==_0x2284d5[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30bae2}=new URL(window[_0x1b3fcc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2284d5[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30bae2))return!0x0;const _0x45391b=_0x30bae2[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e]));return _0x2284d5[_0x1b3fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f2bf3=>_0x3f2bf3[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3fcc([0x2a])))[_0x1b3fcc([0x6d,0x61,0x70])](_0x5316cf=>_0x5316cf[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e])))[_0x1b3fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b9772=>_0x5b9772[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45391b[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b3fcc([0x6d,0x61,0x70])](_0x102423=>Array(_0x45391b[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x102423[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b3fcc([0x66,0x69,0x6c,0x6c])](_0x102423[0x0]===_0x1b3fcc([0x2a])?_0x1b3fcc([0x2a]):'')[_0x1b3fcc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x102423))[_0x1b3fcc([0x73,0x6f,0x6d,0x65])](_0x234512=>_0x45391b[_0x1b3fcc([0x65,0x76,0x65,0x72,0x79])]((_0x438f7f,_0x22bff6)=>_0x234512[_0x22bff6]===_0x438f7f||_0x234512[_0x22bff6]===_0x1b3fcc([0x2a])));}function _0x476e70(){return _0x3b5dc5&&_0x4446a5?new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x82a79d,_0x1e4d0c)=>{_0x3b5dc5[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x82a79d,_0x1e4d0c),_0x4446a5[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x4615be=>{_0x4615be!=_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x82a79d(_0x4615be);},_0x1e4d0c);}):_0x3b5dc5||_0x4446a5||_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdcc9dd(_0x2b6da6,_0x205bae){return new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a0658=>{if(_0x3daca6())return _0x4a0658(_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64]));_0x410c5d(),_0x15cd2c[_0x1b3fcc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b3fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x509a7d=!0x1;const _0xd5427e=_0x1e1024();function _0x4655f6(_0x16f23c){return!!_0x16f23c&&(typeof _0x16f23c===_0x1b3fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16f23c===_0x1b3fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16f23c[_0x1b3fcc([0x74,0x68,0x65,0x6e])]===_0x1b3fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16f23c[_0x1b3fcc([0x63,0x61,0x74,0x63,0x68])]===_0x1b3fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x196ead(_0x1fcff9){_0x46a3ef(_0x1fcff9)[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x2b4202=>{if(!_0x2b4202||_0x2b4202[_0x1b3fcc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b3fcc([0x6f,0x6b]))return _0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c755c(_0x5a8d1a(_0xd5427e+_0x205bae))!=_0x2b4202[_0x1b3fcc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x2431b8=>(_0x2b9f85(),_0x2431b8),()=>{const _0x35cd45=_0x502981();return null==_0x35cd45?(_0x2b9f85(),_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64])):_0x1b3fcc(_0x2fd185-_0x35cd45>(0x63ae0106^_0x43a8c4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x4a0658)[_0x1b3fcc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a0658(_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x503f30=0x47946b86^_0x43a8c4;function _0x2b9f85(){const _0x139d3a=_0x1b3fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c755c(_0x5a8d1a(_0x2b6da6)),_0x48f17e=_0x5a7a02(_0x2c755c(window[_0x1b3fcc([0x4d,0x61,0x74,0x68])][_0x1b3fcc([0x63,0x65,0x69,0x6c])](_0x2fd185/_0x503f30)));window[_0x1b3fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b3fcc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x139d3a,_0x48f17e);}function _0x502981(){const _0x5688e9=_0x1b3fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c755c(_0x5a8d1a(_0x2b6da6)),_0x2bd09c=window[_0x1b3fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b3fcc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5688e9);return _0x2bd09c?window[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a7a02(_0x2bd09c),0x10)*_0x503f30:null;}function _0x46a3ef(_0x2940b1){return new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cc0a2,_0x5df4da)=>{_0x2940b1[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x2cc0a2,_0x5df4da),window[_0x1b3fcc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5df4da,0x47a351c6^_0x43a8c4);});}}_0x15cd2c[_0x1b3fcc([0x6f,0x6e])](_0x1b3fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a4763,_0x3990b9)=>{if(_0x3990b9[0x0]!=_0x2b6da6)return _0x4a0658(_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3990b9[0x1]={..._0x3990b9[0x1],[_0x1b3fcc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd5427e};},{[_0x1b3fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b3fcc([0x68,0x69,0x67,0x68])}),_0x15cd2c[_0x1b3fcc([0x6f,0x6e])](_0x1b3fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x512d7f=>{_0x4655f6(_0x512d7f[_0x1b3fcc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x509a7d=!0x0,_0x196ead(_0x512d7f[_0x1b3fcc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b3fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b3fcc([0x6c,0x6f,0x77])}),_0xce2a63[_0x1b3fcc([0x74,0x68,0x65,0x6e])](()=>{_0x509a7d||_0x4a0658(_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3daca6(){return _0x15cd2c[_0x1b3fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b3fcc([0x76,0x69,0x65,0x77])][_0x1b3fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b3fcc([0x61,0x75,0x74,0x6f]);}function _0x410c5d(){_0x15cd2c[_0x1b3fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b3fcc([0x76,0x69,0x65,0x77])][_0x1b3fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b3fcc([0x61,0x75,0x74,0x6f]);}}function _0x23b307(_0x52ed91){const _0x51deee=[new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f495=>setTimeout(_0x41f495,0x47abbbca^_0x43a8c4)),_0xce2a63[_0x1b3fcc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x97abbb=>{let _0x2de733=0x0;_0x15cd2c[_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3fcc([0x6f,0x6e])](_0x1b3fcc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd499e3,_0x394d68)=>{_0x394d68[0x0][_0x1b3fcc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2de733++,_0x2de733==(0x47a280ee^_0x43a8c4)&&(_0x97abbb(),_0xd499e3[_0x1b3fcc([0x6f,0x66,0x66])]());});}))];return window[_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b3fcc([0x72,0x61,0x63,0x65])](_0x51deee)[_0x1b3fcc([0x74,0x68,0x65,0x6e])](()=>_0x52ed91);}async function _0x162739(){await _0xce2a63,_0x15cd2c[_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3fcc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36cb60,_0x15cd2c[_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3fcc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36cb60,_0x15cd2c[_0x1b3fcc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14c801(_0x1631a6){const _0x226fe8=_0x28196e();_0x15cd2c[_0x226fe8]=_0x1b3fcc([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1631a6,_0x1631a6!=_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x162739();}function _0x28196e(){const _0x22eb98=window[_0x1b3fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b3fcc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b3fcc([0x6e,0x6f,0x77])]())[_0x1b3fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b3fcc([0x2e]),'');let _0x58e37b=_0x1b3fcc([0x75]);for(let _0x1365c4=0x0;_0x1365c4<_0x22eb98[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1365c4+=0x2){let _0x2dc4c3=window[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22eb98[_0x1b3fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1365c4,_0x1365c4+0x2));_0x2dc4c3>=_0x482294[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dc4c3-=_0x482294[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58e37b+=_0x482294[_0x2dc4c3];}return _0x58e37b;}function _0x4c941c(){const _0x145ef6=_0x598d16[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e]));if(0x3!=_0x145ef6[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49ac40(_0x145ef6[0x1]);function _0x49ac40(_0x4feb92){const _0x1f1e6d=_0x4a23ba(_0x4feb92);return _0x1f1e6d&&_0x4b1056()?_0x1f1e6d:null;function _0x4b1056(){const _0x536568=_0x1f1e6d[_0x1b3fcc([0x6a,0x74,0x69])],_0x340219=window[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x536568[_0x1b3fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x536568[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e3c76={..._0x1f1e6d,[_0x1b3fcc([0x6a,0x74,0x69])]:_0x536568[_0x1b3fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x536568[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e3c76[_0x1b3fcc([0x76,0x63])],_0x5a8d1a(_0x4e3c76)==_0x340219;}}}async function _0x2c0f12(){let _0xa8a60c=!0x0;try{const _0x2955cd=_0x598d16[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e])),[_0x4658f4,_0x2a0b8b,_0x32ded5]=_0x2955cd;return _0x360976(_0x4658f4),await _0x176e04(_0x4658f4,_0x2a0b8b,_0x32ded5),_0xa8a60c;}catch{return!0x1;}function _0x360976(_0x41864f){const _0x4f7538=_0x4a23ba(_0x41864f);_0x4f7538&&_0x4f7538[_0x1b3fcc([0x61,0x6c,0x67])]==_0x1b3fcc([0x45,0x53,0x32,0x35,0x36])||(_0xa8a60c=!0x1);}async function _0x176e04(_0x22ebca,_0x14bf65,_0x208937){const _0x46414f=window[_0x1b3fcc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b3fcc([0x66,0x72,0x6f,0x6d])](_0x2efe88(_0x208937),_0x168f61=>_0x168f61[_0x1b3fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e113d=new window[(_0x1b3fcc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b3fcc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22ebca+_0x1b3fcc([0x2e])+_0x14bf65),_0x4d183c=window[_0x1b3fcc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b3fcc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d183c)return;const _0x478349=await _0x4d183c[_0x1b3fcc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b3fcc([0x6a,0x77,0x6b]),_0x3bb728,{[_0x1b3fcc([0x6e,0x61,0x6d,0x65])]:_0x1b3fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b3fcc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b3fcc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b3fcc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d183c[_0x1b3fcc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b3fcc([0x6e,0x61,0x6d,0x65])]:_0x1b3fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b3fcc([0x68,0x61,0x73,0x68])]:{[_0x1b3fcc([0x6e,0x61,0x6d,0x65])]:_0x1b3fcc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x478349,_0x46414f,_0x5e113d)||(_0xa8a60c=!0x1);}}function _0x4a23ba(_0x14c229){return _0x14c229[_0x1b3fcc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b3fcc([0x65,0x79]))?JSON[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65])](_0x2efe88(_0x14c229)):null;}function _0x2efe88(_0x2c70c7){return window[_0x1b3fcc([0x61,0x74,0x6f,0x62])](_0x2c70c7[_0x1b3fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b3fcc([0x2b]))[_0x1b3fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b3fcc([0x2f])));}function _0x5a8d1a(_0x3ccaa9){let _0x5e683d=0x1505;function _0x1b028f(_0x50392f){for(let _0x63a24f=0x0;_0x63a24f<_0x50392f[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x63a24f++){const _0x447d40=_0x50392f[_0x1b3fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x63a24f);_0x5e683d=(_0x5e683d<<0x5)+_0x5e683d+_0x447d40,_0x5e683d&=_0x5e683d;}}function _0x34b469(_0x53eb09){Array[_0x1b3fcc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53eb09)?_0x53eb09[_0x1b3fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34b469):_0x53eb09&&typeof _0x53eb09==_0x1b3fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b3fcc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53eb09)[_0x1b3fcc([0x73,0x6f,0x72,0x74])]()[_0x1b3fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ae170,_0x22920a])=>{_0x1b028f(_0x5ae170),_0x34b469(_0x22920a);}):_0x1b028f(window[_0x1b3fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53eb09));}return _0x34b469(_0x3ccaa9),_0x5e683d>>>0x0;}function _0x2c755c(_0x2a9cba){return _0x2a9cba[_0x1b3fcc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b3fcc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b3fcc([0x30]));}function _0x5a7a02(_0x439f8d){return _0x439f8d[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b3fcc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b3fcc([0x6a,0x6f,0x69,0x6e])]('');}function _0x36cb60(){}function _0x1b3fcc(_0x33ea26){return _0x33ea26['map'](_0x4be36f=>String['fromCharCode'](_0x4be36f))['join']('');}_0x14c801(await _0x3d90a3());}(this);}['_moveSelectionToFootnoteDefinition'](_0x59b582){const {plugins:_0x1b069a,editing:_0x172abc,model:_0x26fb6c}=this['editor'],_0xea2827=_0x1b069a['get'](f)['getFootnote'](_0x59b582);return!!_0xea2827&&(_0x26fb6c['change'](_0x5c75c1=>{_0x5c75c1['setSelection'](_0x5c75c1['createPositionAt'](_0xea2827['definition'],'end'));}),_0x172abc['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x48825c){const {plugins:_0x3372c3,editing:_0x306928,model:_0x17c84b}=this['editor'],_0x54d7e3=_0x3372c3['get'](f)['getFootnote'](_0x48825c);return!!_0x54d7e3&&(_0x17c84b['change'](_0x4fcb9d=>{_0x4fcb9d['setSelection'](_0x54d7e3['reference'],'on');}),_0x306928['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3e8c1d}=this['editor']['model'],_0xe5e077=this['editor']['config']['get']('footnotes.multiBlock');_0x3e8c1d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3e8c1d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3e8c1d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xe5e077?_0x3e8c1d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3e8c1d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3e8c1d['addChildCheck'](_0x9cb277=>{for(const _0x40600e of _0x9cb277)if('footnoteDefinition'===_0x40600e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x139b02}=this,{conversion:_0x215dd6,editing:_0x5144b7}=_0x139b02,{t:t}=_0x139b02['locale'];_0x215dd6['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5c62ab,{writer:_0x403ff3,consumable:_0x1baa7e})=>{const _0x593f57=_0x5c62ab['getChild'](0x0);if(!_0x593f57||!_0x593f57['is']('element','a'))return null;const _0x5da48f=_0x593f57['getAttribute']('href')||'';if(!_0x5da48f['startsWith']('#'))return null;const _0x4ca0fc=_0x5da48f['replace'](/^#/,'');if(!_0x4ca0fc)return null;_0x1baa7e['consume'](_0x593f57,{'name':!0x0,'attributes':['href']});for(const {item:_0x26483b}of _0x5144b7['view']['createRangeIn'](_0x593f57))_0x26483b['is']('$textProxy')?_0x1baa7e['consume'](_0x26483b['textNode'],{'name':!0x0}):_0x26483b['is']('element')&&_0x1baa7e['consume'](_0x26483b,{'name':!0x0});return _0x403ff3['createElement']('footnoteRef',{'footnoteId':_0x4ca0fc});}}),_0x215dd6['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x24ced7,{writer:_0xe7cc42})=>b(_0x24ced7,_0xe7cc42)}),_0x215dd6['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48b15c,{writer:_0x46eb85})=>{const _0x2daff2=_0x48b15c['getAttribute']('footnoteCounter');return _0x11fe15(b(_0x48b15c,_0x46eb85),_0x46eb85,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2daff2)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2dcb39}=this,{t:t}=_0x2dcb39['locale'],{conversion:_0x3175d2}=_0x2dcb39;_0x3175d2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3175d2['for']('upcast')['add'](_0x37216c=>{_0x37216c['on']('element:ol',(_0x4e2746,_0x3a44a4,_0x119847)=>{const _0x571398=_0x3a44a4['viewItem'];if(!_0x571398['hasClass']('footnotes-list')||!_0x3a44a4['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x119847['consumable']['consume'](_0x571398,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4a6a6e,modelCursor:_0x20c5ea}=_0x119847['convertChildren'](_0x3a44a4['viewItem'],_0x3a44a4['modelCursor']);_0x3a44a4['modelRange']=_0x4a6a6e,_0x3a44a4['modelCursor']=_0x20c5ea;}),_0x37216c['on']('element:hr',(_0x1ebd7e,_0x5783d9,_0x14cf07)=>{const _0x28a68d=_0x5783d9['viewItem'];_0x28a68d['hasClass']('footnotes-divider')&&_0x5783d9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x14cf07['consumable']['consume'](_0x28a68d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3175d2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2444d0,{writer:_0x1611fd})=>D(_0x1611fd)}),_0x3175d2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3d03c9,{writer:_0x4907c9})=>{const _0x2108ba=D(_0x4907c9,{'data-footnotes-list-label':t('Footnotes')}),_0x39eab0=_0x11fe15(_0x2108ba,_0x4907c9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4907c9['setCustomProperty']('footnotesDefinitions',!0x0,_0x39eab0),_0x39eab0;}});}['_defineDefinitionConverters'](){const {editor:_0x2d7e8a}=this,{conversion:_0x2fc143,locale:_0xf9384d}=_0x2d7e8a,_0x948107=_0x2d7e8a['config']['get']('footnotes.multiBlock');_0x2fc143['for']('upcast')['add'](_0x1d8ecd=>{_0x1d8ecd['on']('element:li',(_0x3998dc,_0x547b16,_0x581ea2)=>{const _0xcf9798=_0x547b16['viewItem'];if(!_0xcf9798['hasClass']('footnote-definition')||!_0xcf9798['getAttribute']('id'))return;const _0x21d089=_0xcf9798['parent'];if(!_0x21d089['is']('element','ol')||!_0x21d089['hasClass']('footnotes-list'))return;if(!_0x581ea2['consumable']['test'](_0xcf9798,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1e2c74=_0x581ea2['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcf9798['getAttribute']('id')});if(!_0x581ea2['safeInsert'](_0x1e2c74,_0x547b16['modelCursor']))return;_0x581ea2['consumable']['consume'](_0xcf9798,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x21db19=Array['from'](_0xcf9798['getChildren']())['find'](_0x289925=>_0x289925['is']('element')&&_0x289925['hasClass']('footnote-content'));for(const _0x24a1fe of _0xcf9798['getChildren']())_0x24a1fe['is']('element')&&(_0x581ea2['consumable']['consume'](_0x24a1fe,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x581ea2['consumable']['consume'](_0x24a1fe,{'name':!0x0,'classes':'footnote-content'}));if(_0x21db19){if(_0x948107)_0x581ea2['convertChildren'](_0x21db19,_0x1e2c74);else{const _0x97e439=_0x581ea2['writer']['createElement']('footnoteInlineContent');_0x581ea2['writer']['insert'](_0x97e439,_0x1e2c74),_0x581ea2['convertChildren'](_0x21db19,_0x97e439);}}_0x581ea2['updateConversionResult'](_0x1e2c74,_0x547b16);});}),_0x2fc143['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x32c306,{writer:_0x1fcaf0})=>y(_0x32c306,_0x1fcaf0,_0xf9384d,{'dataPipeline':!0x0})}),_0x2fc143['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1c8e6a,{writer:_0x5d11a6})=>y(_0x1c8e6a,_0x5d11a6,_0xf9384d)});}['_defineBogusParagraphConverters'](){const {editor:_0x46db9b}=this,{conversion:_0x3c52b5}=_0x46db9b;_0x46db9b['config']['get']('footnotes.multiBlock')?(_0x3c52b5['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3c52b5['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x46db9b['model']['document'],'change:data',()=>{!function(_0x6f1de,_0x320508){const _0x320e22=_0x6f1de['document']['differ'],_0x24dc4a=new Set();for(const _0x2990bf of _0x320e22['getChanges']()){const _0x828861='attribute'==_0x2990bf['type']?_0x2990bf['range']['start']['parent']:_0x2990bf['position']['parent'];_0x828861['is']('element','footnoteDefinition')&&_0x24dc4a['add'](_0x828861);}for(const _0x4b5c76 of _0x24dc4a['values']()){const _0xc0528a=Array['from'](_0x4b5c76['getChildren']())['filter'](_0xb2c0a3=>v(_0xb2c0a3,_0x320508['mapper']));for(const _0x5e3ad5 of _0xc0528a)_0x320508['reconvertItem'](_0x5e3ad5);}}(_0x46db9b['model'],_0x46db9b['editing']);})):(_0x3c52b5['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3c52b5['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2bdea4,{writer:_0x2836b5})=>{const _0x1929a8=_0x2836b5['createContainerElement']('span');return _0x2836b5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1929a8),_0x1929a8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5b83cd}=this,{editing:_0x1baedd,t:t}=_0x5b83cd,_0x4a2fa0=_0x5b83cd['model']['document']['selection'];_0x5b83cd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5b83cd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1baedd['view']['document'],'enter',(_0x385db7,_0xa811f4)=>{const _0x8355d0=function(_0x4b91ef){const _0x1cfd07=_0x4b91ef['getSelectedElement']();if(_0x1cfd07?.['is']('element','footnoteRef'))return _0x1cfd07;return null;}(_0x4a2fa0);if(_0x8355d0){const _0x379e80=_0x8355d0['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x379e80),_0xa811f4['preventDefault'](),_0x385db7['stop']();}},{'context':_0x41e0e1});}['_defineClickHandlers'](){const {editor:_0x45776e}=this,{editing:_0x4231de}=_0x45776e;_0x45776e['editing']['view']['addObserver'](_0x3ca3e6),_0x45776e['editing']['view']['addObserver'](_0x5441bf);let _0x19f481=!0x1;this['listenTo'](_0x4231de['view']['document'],'pointerdown',(_0x145299,_0x152841)=>{const {target:_0x41b7a0}=_0x152841,_0x3ff936=_0x4231de['view']['document']['selection'];_0x19f481=!!(_0x41b7a0?.['is']('element','a')&&_0x41b7a0['parent']?.['is']('element','sup')&&_0x41b7a0['parent']['hasClass']('footnote'))&&_0x3ff936['getSelectedElement']()===_0x41b7a0['parent'];},{'priority':'high'}),this['listenTo'](_0x4231de['view']['document'],'click',(_0x183ad8,_0x52a30e)=>{const {target:_0x4a738a}=_0x52a30e;if(!_0x4a738a?.['is']('element','a'))return;if(_0x4a738a['parent']?.['is']('element','sup')&&_0x4a738a['parent']['hasClass']('footnote')&&!_0x19f481)return void _0x52a30e['preventDefault']();let _0x5482f8=_0x4a738a['getAttribute']('href');if(!_0x5482f8?.['startsWith']('#'))return;_0x5482f8=_0x5482f8['slice'](0x1);let _0x345f84=!0x1;(_0x5482f8['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5482f8['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5482f8))&&(_0x345f84=!0x0),_0x345f84&&(_0x52a30e['preventDefault'](),_0x183ad8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xc868dc}={}){return(_0x2d2312,{writer:_0x50e6b6})=>{if(!g(_0x2d2312))return null;if(!_0xc868dc)return _0x50e6b6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x12671c=_0x50e6b6['createContainerElement']('p');return _0x50e6b6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x12671c),_0x12671c;};}function g(_0x4ce6de){const {parent:_0x1d9302}=_0x4ce6de;if(!_0x1d9302?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1d9302['childCount'])return!0x1;for(const _0x32eb2b of _0x4ce6de['getAttributeKeys']())if(!_0x32eb2b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x32eb2b)return!0x1;return!0x0;}function v(_0x35ba44,_0x54ee9e){if(!_0x35ba44['is']('element','paragraph'))return!0x1;const _0x14f40a=_0x54ee9e['toViewElement'](_0x35ba44);return!!_0x14f40a&&g(_0x35ba44)!==_0x14f40a['is']('element','span');}function Q(_0x4954db){return _0x41e0e1(_0x4954db)&&_0x4954db['is']('containerElement')&&!!_0x4954db['getCustomProperty']('footnotesDefinitions');}function D(_0x1be1aa,_0x3a5f5f={}){const _0x30db3f=_0x1be1aa['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xc7f6d8=_0x1be1aa['createContainerElement']('ol',{'class':'footnotes-list'},_0x1be1aa['createSlot']());return _0x1be1aa['createContainerElement']('div',{'class':'footnotes',..._0x3a5f5f},[_0x30db3f,_0xc7f6d8]);}function b(_0x57a9d1,_0x339154){const _0x5d7885=_0x57a9d1['getAttribute']('footnoteId'),_0x1f87bf=_0x57a9d1['getAttribute']('footnoteCounter'),_0x2bd0c5=_0x339154['createUIElement']('a',{'href':'#'+_0x5d7885},function(_0x2712ee){const _0x5b4212=this['toDomElement'](_0x2712ee);return _0x5b4212['textContent']=_0x1f87bf,_0x5b4212;}),_0x2320a2=_0x339154['createContainerElement']('sup',{'id':'ref-'+_0x5d7885,'class':'footnote'},[_0x2bd0c5]);return _0x2320a2['getFillerOffset']=()=>null,_0x2320a2;}function y(_0x42243e,_0x48168d,_0x287431,{dataPipeline:_0x7f13f2}={}){const {t:t}=_0x287431,_0x4eb044=_0x42243e['getAttribute']('footnoteId'),_0xd0c82b=_0x48168d['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4eb044},function(_0x113153){const _0x54064b=this['toDomElement'](_0x113153);return _0x54064b['innerText']='^',_0x54064b;}),_0x56bbde=_0x7f13f2?_0x48168d['createContainerElement']('div',{'class':'footnote-content'}):_0x51046e(_0x48168d['createEditableElement']('div',{'class':'footnote-content'}),_0x48168d,{'label':t('Footnote\x20content.')});return _0x48168d['insert'](_0x48168d['createPositionAt'](_0x56bbde,0x0),_0x48168d['createSlot']()),_0x48168d['createContainerElement']('li',{'class':'footnote-definition','id':_0x4eb044},[_0xd0c82b,_0x56bbde]);}class e extends _0x1a1224{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4d9667];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x368a27}=this,{plugins:_0x232b06,model:_0x230dcc}=_0x368a27,_0x1d0e51=_0x232b06['get'](_0x4d9667),_0xa25b75=_0x232b06['get'](f);this['listenTo'](_0x1d0e51,'outputTransformation',(_0x3a496b,_0x15d601)=>{const _0xbaa966=l(_0x230dcc['createRangeIn'](_0x15d601['content']));if(!_0xbaa966['length'])return;const _0x3a2826=_0xa25b75['getFootnotes'](),_0x86c078=_0xbaa966['reduce']((_0x2db239,_0x579fbc)=>{const _0x17b22d=_0x3a2826['find'](_0xab87c5=>_0xab87c5['id']===_0x579fbc);if(_0x17b22d){const _0x30ddbd=_0x368a27['data']['toView'](_0x17b22d['definition'],{'isClipboardPipeline':!0x0}),_0x35f39e=_0x368a27['data']['htmlProcessor']['toData'](_0x30ddbd);_0x2db239[_0x17b22d['id']]=_0x35f39e;}return _0x2db239;},Object['create'](null));_0x15d601['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x86c078));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5c3969}=this,{model:_0x10d4a9,plugins:_0x3c2cfb}=_0x5c3969,{view:_0x47ffdd}=_0x5c3969['editing'],_0x1f54e7=_0x3c2cfb['get'](_0x4d9667),_0x585dad=_0x3c2cfb['get'](f),_0x5a4fa4=_0x5c3969['config']['get']('footnotes.multiBlock');let _0x85208a=null;this['listenTo'](_0x47ffdd['document'],'clipboardInput',(_0x34e74b,_0x4ea740)=>{const _0xfc2d2f=_0x4ea740['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x85208a=_0xfc2d2f?JSON['parse'](_0xfc2d2f):null;}),this['listenTo'](_0x1f54e7,'contentInsertion',(_0x359b25,_0x5e4164)=>{const _0x5aae8c=_0x5e4164['sourceEditorId']===this['editor']['id'];_0x5aae8c&&'drop'===_0x5e4164['method']||_0x10d4a9['change'](_0x494825=>{let _0x433bac=_0x585dad['getFootnotesDefinitionsObjectElement']();const _0x3a3eb0=!!_0x433bac&&Array['from'](_0x10d4a9['document']['selection']['getSelectedBlocks']())['includes'](_0x433bac);if(!_0x85208a&&function(_0x59b202){for(const {item:_0x5d8e1d}of _0x59b202)if(_0x5d8e1d['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x10d4a9['createRangeIn'](_0x5e4164['content']))&&(_0x85208a=function(_0x3f3b1a,_0xca0701){const _0x581377=c(_0x3f3b1a,_0xca0701);if(!_0x581377)return null;const _0x1ef87c=Object['create'](null);for(const _0x5ea8c9 of _0x581377['getChildren']())_0x5ea8c9['is']('element','footnoteDefinition')&&_0x5ea8c9['hasAttribute']('footnoteId')&&(_0x1ef87c[_0x5ea8c9['getAttribute']('footnoteId')]=_0x3f3b1a['cloneElement'](_0x5ea8c9,!0x0));return Object['keys'](_0x1ef87c)['length']?_0x1ef87c:null;}(_0x494825,_0x5e4164['content'])),(_0x433bac&&!_0x3a3eb0||!_0x433bac&&!_0x85208a)&&function(_0x228325,_0x63d8fb){const _0x1c86c7=[];for(const {item:_0x2c24eb}of _0x228325['createRangeIn'](_0x63d8fb))_0x2c24eb['is']('element','footnotesDefinitions')&&_0x1c86c7['push'](_0x2c24eb);for(const _0x25ad5a of _0x1c86c7)_0x228325['remove'](_0x25ad5a);}(_0x494825,_0x5e4164['content']),!_0x85208a)return;const {selection:_0xb7091b}=_0x10d4a9['document'],_0x1d4caa=_0xb7091b['getFirstRange']()['root'];_0x433bac&&!_0x3a3eb0||(_0x433bac=c(_0x494825,_0x5e4164['content']),_0x433bac||=_0x585dad['_insertEmptyFootnotesDefinitionsContainer'](_0x494825,_0x1d4caa));const _0x45f509=Array['from'](_0xb7091b['getRanges']())['flatMap'](l),_0x49b945=function(_0x4d0ebc,_0x1889f1,_0x5c8c76){const _0x597137=Object['create'](null);for(const {item:_0x1aefa8}of _0x4d0ebc['createRangeIn'](_0x1889f1))if(_0x1aefa8['is']('element','footnoteRef')){const _0x2eeaff=_0x1aefa8['getAttribute']('footnoteId');if(!_0x5c8c76(_0x2eeaff))continue;_0x597137[_0x2eeaff]||(_0x597137[_0x2eeaff]=_0x1e1024()),_0x4d0ebc['setAttribute']('footnoteId',_0x597137[_0x2eeaff],_0x1aefa8);}return _0x597137;}(_0x494825,_0x5e4164['content'],_0xfd8306=>{if(!_0x5aae8c)return!0x0;return!!_0x585dad['getFootnote'](_0xfd8306)&&!_0x45f509['includes'](_0xfd8306);});for(const [_0x390c10,_0x1cf5b7]of Object['entries'](_0x85208a)){const _0x2df614=_0x49b945[_0x390c10]||_0x390c10;let _0x5df668;if('string'!=typeof _0x1cf5b7)_0x5df668=_0x1cf5b7,_0x2df614!==_0x390c10&&_0x494825['setAttribute']('footnoteId',_0x2df614,_0x5df668);else{_0x5df668=_0x494825['createElement']('footnoteDefinition',{'footnoteId':_0x2df614});const _0x55e05b=_0x5c3969['data']['htmlProcessor']['toView'](_0x1cf5b7);let _0x53a817;if(_0x5a4fa4)_0x53a817=_0x5c3969['data']['toModel'](_0x55e05b,_0x5df668);else{_0x53a817=_0x494825['createElement']('footnoteInlineContent');const _0x171399=_0x5c3969['data']['toModel'](_0x55e05b,_0x53a817);_0x494825['insert'](_0x171399,_0x53a817);}_0x494825['append'](_0x53a817,_0x5df668);}_0x494825['insert'](_0x5df668,_0x433bac,'end');}_0x85208a=null;});});}}function c(_0x2cc9cb,_0xbd606e){for(const {item:_0x16a653}of _0x2cc9cb['createRangeIn'](_0xbd606e))if(_0x16a653['is']('element','footnotesDefinitions'))return _0x16a653;return null;}function l(_0x3a0d80){const _0x33386e=new Set();for(const {item:_0x3a312d}of _0x3a0d80)_0x3a312d['is']('element','footnoteRef')&&_0x33386e['add'](_0x3a312d['getAttribute']('footnoteId'));return Array['from'](_0x33386e);}class i extends _0x1a1224{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f4f59}=this,{componentFactory:_0x18a324}=_0x3f4f59['ui'];_0x18a324['add']('insertFootnote',E(_0x3f4f59,_0x275c2c)),_0x18a324['add']('menuBar:insertFootnote',E(_0x3f4f59,_0x3f24a9)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e544d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41ec3f;for(const _0x258422 in _0x4e544d){const _0x54f66b=_0x258422,_0x1eca46=_0x4e544d[_0x54f66b];if('footnotesLicenseKeyValid'==_0x1eca46||'footnotesLicenseKeyInvalid'==_0x1eca46||'footnotesLicenseKeyExpired'==_0x1eca46||'footnotesLicenseKeyDomainLimit'==_0x1eca46||'footnotesLicenseKeyNotAllowed'==_0x1eca46||'footnotesLicenseKeyEvaluationLimit'==_0x1eca46||'footnotesLicenseKeyUsageLimit'==_0x1eca46){delete _0x4e544d[_0x54f66b],_0x41ec3f=_0x1eca46,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x41ec3f&&_0x4e544d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x41ec3f&&_0x4e544d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x41ec3f&&_0x4e544d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x41ec3f&&_0x4e544d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x41ec3f&&_0x4e544d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x41ec3f&&_0x4e544d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x28e9df,_0x25a3e1){const _0x334866=_0x28e9df['commands']['get']('insertFootnote');return _0x236be7=>{const {t:t}=_0x236be7,_0x61ff97=new _0x25a3e1(_0x236be7),_0x465bc2=_0x61ff97 instanceof _0x3f24a9;return _0x61ff97['bind']('isEnabled')['to'](_0x334866,'isEnabled'),_0x61ff97['set']({'label':t(_0x465bc2?'Footnote':'Insert\x20footnote'),'icon':_0xeb2824,'tooltip':!0x0}),_0x61ff97['on']('execute',()=>{_0x334866['execute'](),_0x28e9df['editing']['view']['focus']();}),_0x61ff97;};}class lt extends _0x1a1224{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const ct=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5e4aee{['refresh'](){const {editor:_0x3c0b60}=this,_0x3444cd=_0x3c0b60['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3444cd,this['value']=_0x3444cd?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x57c585}){const {editor:_0x2b7c50}=this,_0x3719c1=_0x2b7c50['plugins']['get'](f),_0x50b510=_0x3719c1['getFootnotesDefinitionsObjectElement']();_0x50b510&&ct['includes'](_0x57c585)&&_0x2b7c50['model']['change'](_0x513902=>{_0x513902['setAttribute']('footnotesListStyle',_0x57c585,_0x50b510),_0x3719c1['_updateFootnotesCounters'](_0x513902);});}}class C extends _0x5e4aee{['refresh'](){const {editor:_0xa70d8a}=this,_0x4f04d8=_0xa70d8a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4f04d8,this['value']=_0x4f04d8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x231db7}){const {editor:_0x55aa80}=this,_0x29228b=_0x55aa80['plugins']['get'](f),_0x549259=_0x29228b['getFootnotesDefinitionsObjectElement']();_0x549259&&Number['isInteger'](_0x231db7)&&_0x55aa80['model']['change'](_0x6391b0=>{_0x6391b0['setAttribute']('footnotesListStart',_0x231db7,_0x549259),_0x29228b['_updateFootnotesCounters'](_0x6391b0);});}}class P extends _0x1a1224{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x237fad}=this;_0x237fad['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x237fad['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x237fad['commands']['add']('footnotesStyle',new S(_0x237fad)),_0x237fad['commands']['add']('footnotesStart',new C(_0x237fad)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a0f3a}=this,{schema:_0x18fe1e}=_0x4a0f3a['model'];_0x18fe1e['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5e742e}=this,{conversion:_0x27499a,model:_0xab5458}=_0x5e742e,{schema:_0x5a9e7b}=_0xab5458;_0x27499a['for']('upcast')['add'](_0x3cb6df=>{_0x3cb6df['on']('element:ol',(_0x54f20c,_0x51195c,_0x578086)=>{const _0x20e1ac=_0x51195c['viewItem'],_0x36f71b=_0x51195c['modelCursor']?.['parent'];_0x20e1ac['hasClass']('footnotes-list')&&_0x36f71b?.['is']('element','footnotesDefinitions')&&(function(_0x13ed3d,_0x485e1a,_0x33dd9a,_0x4a19b9){if(!_0x4a19b9['checkAttribute'](_0x485e1a,'footnotesListStart'))return;let _0x4e9cf0=0x1;const _0x2de510=_0x33dd9a['consumable']['consume'](_0x13ed3d,{'attributes':'start'});if(_0x2de510){const _0x3fb4c2=Number['parseInt'](_0x13ed3d['getAttribute']('start'),0xa);Number['isNaN'](_0x3fb4c2)||(_0x4e9cf0=_0x3fb4c2);}!_0x2de510&&_0x485e1a['hasAttribute']('footnotesListStart')||_0x33dd9a['writer']['setAttribute']('footnotesListStart',_0x4e9cf0,_0x485e1a);}(_0x20e1ac,_0x36f71b,_0x578086,_0x5a9e7b),function(_0x2e9321,_0x9b54f0,_0x34e7f1,_0x577f83){if(!_0x577f83['checkAttribute'](_0x9b54f0,'footnotesListStyle'))return;let _0x10cea5='decimal',_0x20f969=!0x1;if(_0x34e7f1['consumable']['consume'](_0x2e9321,{'attributes':'type'})){const _0x10c51c={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2e9321['getAttribute']('type')];_0x10c51c&&(_0x10cea5=_0x10c51c),_0x20f969=!0x0;}_0x34e7f1['consumable']['consume'](_0x2e9321,{'styles':'list-style-type'})&&(_0x10cea5=function(_0x4b8459){switch(_0x4b8459){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x4b8459;}}(_0x2e9321['getStyle']('list-style-type')),_0x20f969=!0x0),!_0x20f969&&_0x9b54f0['hasAttribute']('footnotesListStyle')||_0x34e7f1['writer']['setAttribute']('footnotesListStyle',_0x10cea5,_0x9b54f0);}(_0x20e1ac,_0x36f71b,_0x578086,_0x5a9e7b));});}),_0x27499a['for']('downcast')['add'](_0x1538c1=>{_0x1538c1['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x7b856a,_0x105b67,_0x32d484)=>{if(!_0x32d484['consumable']['consume'](_0x105b67['item'],_0x7b856a['name']))return;const _0x509713=M(_0x105b67['item'],_0x32d484['mapper']),{attributeNewValue:_0x41b0a9}=_0x105b67;null==_0x41b0a9||0x1===_0x41b0a9?_0x32d484['writer']['removeAttribute']('start',_0x509713):_0x32d484['writer']['setAttribute']('start',String(_0x41b0a9),_0x509713);}),_0x1538c1['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x46b7cc,_0x504599,_0x48d72e)=>{if(!_0x48d72e['consumable']['consume'](_0x504599['item'],_0x46b7cc['name']))return;const _0x1fa4e3=M(_0x504599['item'],_0x48d72e['mapper']),{attributeNewValue:_0xbc6e18}=_0x504599;_0xbc6e18&&'decimal'!==_0xbc6e18?_0x48d72e['writer']['setStyle']('list-style-type',_0xbc6e18,_0x1fa4e3):_0x48d72e['writer']['removeStyle']('list-style-type',_0x1fa4e3);});});}['_definePostfixer'](){const {editor:_0x44980a}=this,{model:_0x589bbe}=_0x44980a,_0x16362f=_0x44980a['plugins']['get'](f),_0x92f2af=this['_getDefaultListStyle'](),_0x40cc20=this['_getDefaultStartIndex']();_0x589bbe['document']['registerPostFixer'](_0x38d64b=>{const _0x56609b=_0x589bbe['document']['differ']['getChanges']();let _0x5c686a=!0x1;for(const _0x4eccf6 of _0x56609b){if('insert'!==_0x4eccf6['type']||'$text'===_0x4eccf6['name'])continue;const _0x265ac7=_0x589bbe['createRangeOn'](_0x4eccf6['position']['nodeAfter']);for(const _0x2355ff of _0x265ac7['getItems']())_0x2355ff['is']('element','footnotesDefinitions')&&(!_0x2355ff['hasAttribute']('footnotesListStart')&&_0x589bbe['schema']['checkAttribute'](_0x2355ff,'footnotesListStart')&&(_0x38d64b['setAttribute']('footnotesListStart',_0x40cc20,_0x2355ff),_0x5c686a=!0x0),!_0x2355ff['hasAttribute']('footnotesListStyle')&&_0x589bbe['schema']['checkAttribute'](_0x2355ff,'footnotesListStyle')&&(_0x38d64b['setAttribute']('footnotesListStyle',_0x92f2af,_0x2355ff),_0x5c686a=!0x0));}return _0x5c686a&&_0x16362f['_updateFootnotesCounters'](_0x38d64b),_0x5c686a;});}['_defineFormatter'](){const {editor:_0x3acc0f}=this;_0x3acc0f['plugins']['get'](f)['setFootnoteFormatter'](_0x4cf8da=>this['_formatFootnoteListValue'](_0x4cf8da));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1dd323,value:_0x21215d,digits:_0x1c57ef}){const _0x4d2377=_0x1dd323['getAttribute']('footnotesListStyle'),_0xebfe8b=_0x1dd323['getAttribute']('footnotesListStart'),_0xda6457=Math['floor'](_0x21215d)+(_0xebfe8b??0x1)-0x1;switch(_0x4d2377){case'decimal-leading-zero':return function(_0x24e2e9,_0x11895d){return String(_0x24e2e9)['padStart'](_0x11895d,'0');}(_0xda6457,Math['max'](0x2,_0x1c57ef));case'lower-alpha':case'lower-latin':return N(_0xda6457,!0x1);case'upper-alpha':case'upper-latin':return N(_0xda6457,!0x0);case'lower-roman':return X(_0xda6457,!0x1);case'upper-roman':return X(_0xda6457,!0x0);default:return String(_0xda6457);}}}function M(_0x592625,_0x46aed5){const _0x1465d5=_0x46aed5['toViewElement'](_0x592625);return Array['from'](_0x1465d5['getChildren']())['find'](_0x4aa7fe=>_0x4aa7fe['is']('element','ol')&&_0x4aa7fe['hasClass']('footnotes-list'));}function N(_0x45bbe8,_0x34c629){let _0x3e8eda='',_0x1eff7a=_0x45bbe8;for(;_0x1eff7a>0x0;){const _0x549a55=(_0x1eff7a-0x1)%0x1a;_0x3e8eda=String['fromCharCode'](0x61+_0x549a55)+_0x3e8eda,_0x1eff7a=Math['floor']((_0x1eff7a-0x1)/0x1a);}return _0x34c629?_0x3e8eda['toUpperCase']():_0x3e8eda;}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(_0x3d14cc,_0x1137ef){let _0x50d9ad='',_0x2ad9ff=_0x3d14cc;for(const {value:_0x47f11e,numeral:_0x3e5489}of V)for(;_0x2ad9ff>=_0x47f11e;)_0x50d9ad+=_0x3e5489,_0x2ad9ff-=_0x47f11e;return _0x1137ef?_0x50d9ad:_0x50d9ad['toLowerCase']();}class J extends _0x464d81{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5d8154();['focusCycler'];constructor(_0x113d7c,{styleButtonViews:_0x5af9c0,styleGridAriaLabel:_0x708200}){super(_0x113d7c),(this['focusCycler']=new _0x57b1ab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5af9c0,_0x708200),[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 _0x4d8422 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4d8422['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x40d921=_0x3f48ce=>_0x3f48ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0x40d921),this['keystrokes']['set']('arrowleft',_0x40d921),this['keystrokes']['set']('arrowup',_0x40d921),this['keystrokes']['set']('arrowdown',_0x40d921);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x554273,_0xf670c4){const _0x3ca90b=new _0x464d81(this['locale']);return _0x3ca90b['children']=_0x3ca90b['createCollection'](),_0x3ca90b['children']['addMany'](_0x554273),_0x3ca90b['setTemplate']({'tag':'div','attributes':{'aria-label':_0xf670c4,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3ca90b['children']}),_0x3ca90b['children']['delegate']('execute')['to'](this),_0x3ca90b['focus']=function(){for(const _0x528f25 of this['children'])if(_0x528f25 instanceof _0x275c2c&&_0x528f25['isOn'])return void _0x528f25['focus']();this['children']['first']['focus']();},_0x3ca90b['focusTracker']=new ot(),_0x3ca90b['keystrokes']=new rt(),_0x3ca90b['render'](),_0x3ca90b['keystrokes']['listenTo'](_0x3ca90b['element']),this['children']['add'](_0x3ca90b),_0x3ca90b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3dda95=this['_createStartIndexPropertyView'](),_0x752b50=[_0x3dda95],_0x3ffbb8=new st(this['locale'],_0x752b50);return _0x3ffbb8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3ffbb8['buttonView']['bind']('isEnabled')['toMany'](_0x752b50,'isEnabled',(..._0x147832)=>_0x147832['some'](_0x59d06c=>_0x59d06c)),_0x3ffbb8['buttonView']['on']('change:isEnabled',(_0x4e8830,_0x37edc6,_0x5356b4)=>{_0x5356b4||(_0x3ffbb8['isCollapsed']=!0x0);}),this['children']['add'](_0x3ffbb8),[_0x3dda95,_0x3ffbb8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4bd231=new it(this['locale'],et);return _0x4bd231['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4bd231['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4bd231['fieldView']['on']('input',()=>{const _0x35124d=_0x4bd231['fieldView']['element'],_0x56c2cb=_0x35124d['valueAsNumber'];Number['isNaN'](_0x56c2cb)?_0x4bd231['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x35124d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x56c2cb}):_0x4bd231['errorText']=t(_0x56c2cb<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4bd231;}}class j extends _0x1a1224{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1c3e38,_0x1bdf8d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5d9358}=this,{componentFactory:_0x2b18ec}=_0x5d9358['ui'];_0x5d9358['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2b18ec['add']('footnotesStyle',function(_0x13a4e7){return _0x333586=>{const {t:t}=_0x333586,_0x169250=_0x13a4e7['commands']['get']('footnotesStyle'),_0x1a35a0=_0x14eff1(_0x333586),{buttonView:_0x12a757}=_0x1a35a0;return _0x1a35a0['class']='ck-footnotes-styles-dropdown',_0x1a35a0['bind']('isEnabled')['to'](_0x169250,'isEnabled'),_0x12a757['set']({'label':t('Footnotes\x20style'),'icon':_0xeb2824,'tooltip':!0x0}),_0x1a35a0['once']('change:isOpen',()=>{const _0x5e09a2=function({editor:_0xa1cd61,dropdownView:_0x3bdc0b}){const {t:t}=_0xa1cd61['locale'],_0x214818=t('Footnotes\x20definitions\x20styles'),_0x2764b1=function(_0x25a08f){const t=_0x25a08f['locale']['t'],_0x1c0a66=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2fd60d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5da6fc},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x551ecf},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x150262},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4fd7b8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x8fa10e}];return _0x1c0a66['map'](function(_0x314080){const _0x2a5884=_0x314080['locale'];return({label:_0x2b0cae,icon:_0x53b5d7,tooltip:_0xbe091f,style:_0xc82f93})=>{const _0x417310=_0x314080['commands']['get']('footnotesStyle'),_0x5ba9fa=new _0x275c2c(_0x2a5884);return _0x5ba9fa['set']({'label':_0x2b0cae,'icon':_0x53b5d7,'tooltip':_0xbe091f}),_0x5ba9fa['bind']('isOn')['to'](_0x417310,'value',_0x4fe629=>_0x4fe629===_0xc82f93),_0x5ba9fa['bind']('isEnabled')['to'](_0x417310,'isEnabled'),_0x5ba9fa['on']('execute',()=>{_0x314080['execute']('footnotesStyle',{'value':_0xc82f93}),_0x314080['editing']['view']['focus']();}),_0x5ba9fa;};}(_0x25a08f));}(_0xa1cd61),_0xc28827=new J(_0xa1cd61['locale'],{'styleGridAriaLabel':_0x214818,'styleButtonViews':_0x2764b1}),_0x334766=_0xa1cd61['commands']['get']('footnotesStart');return _0xc28827['startIndexFieldView']['bind']('isEnabled')['to'](_0x334766),_0xc28827['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x334766),_0xc28827['on']('footnotesListStart',(_0x46064e,_0x208ce6)=>{_0xa1cd61['execute']('footnotesStart',{'value':_0x208ce6['startIndex']});}),_0xc28827['delegate']('execute')['to'](_0x3bdc0b),_0xc28827;}({'editor':_0x13a4e7,'dropdownView':_0x1a35a0});_0x1a35a0['panelView']['children']['add'](_0x5e09a2);}),_0x1a35a0;};}(_0x5d9358));}['afterInit'](){const {editor:_0x5dd756}=this,{t:t}=_0x5dd756['locale'],_0x441466=_0x5dd756['plugins']['get'](_0x1bdf8d),{defaultPositions:_0x26b7b1}=_0x31f217;_0x441466['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5dd756['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x18aaa6=>{let _0x19a09c=_0x18aaa6['getFirstPosition']()?.['parent'];return _0x19a09c?.['is']('$text')&&(_0x19a09c=_0x19a09c['parent']),_0x19a09c?.['is']('element')?_0x19a09c['findAncestor'](Q):null;},'positions':[_0x26b7b1['southArrowNorth'],_0x26b7b1['southArrowNorthMiddleWest'],_0x26b7b1['southArrowNorthMiddleEast'],_0x26b7b1['southArrowNorthWest'],_0x26b7b1['southArrowNorthEast'],_0x26b7b1['northArrowSouth'],_0x26b7b1['northArrowSouthMiddleWest'],_0x26b7b1['northArrowSouthMiddleEast'],_0x26b7b1['northArrowSouthWest'],_0x26b7b1['northArrowSouthEast'],_0x26b7b1['viewportStickyNorth']]});}}class ft extends _0x1a1224{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 _0x30fa3c,Command as _0x53f55f}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x165f1f,isWidget as _0x93b993,toWidgetEditable as _0x271e10,WidgetToolbarRepository as _0x3ff51c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x50c6d8,logWarning as _0x56e64d,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3c84aa,ClickObserver as _0x217c58}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x496109}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x209317,ButtonView as _0x10acff,View as _0x2be6a4,ViewCollection as _0xb04a7c,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x4bc115,BalloonPanelView as _0x489f81,createDropdown as _0x4817e6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x990c6a,IconListStyleDecimal as _0x328fab,IconListStyleDecimalLeadingZero as _0x3b0897,IconListStyleLowerRoman as _0x2843c8,IconListStyleUpperRoman as _0x16d554,IconListStyleLowerLatin as _0x33d01d,IconListStyleUpperLatin as _0x5d9648}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x30a427,_0x4e2b14){this['_model']=_0x30a427,this['_elementName']=_0x4e2b14['elementName'],this['_getElementKey']=_0x4e2b14['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x52d6c5){const _0x4893bc=new Set(),_0x2c5a6e=new Map();for(const _0xe2bf1f of _0x52d6c5){if('insert'===_0xe2bf1f['type']&&'$text'!==_0xe2bf1f['name']&&_0xe2bf1f['position']['nodeAfter']){const _0x31ac54=this['_model']['createRangeOn'](_0xe2bf1f['position']['nodeAfter']);for(const _0x48d1a8 of _0x31ac54['getItems']()){if(!_0x48d1a8['is']('element',this['_elementName']))continue;const _0x5cac32=this['_getElementKey'](_0x48d1a8);_0x2c5a6e['has'](_0x5cac32)||_0x2c5a6e['set'](_0x5cac32,[]),_0x2c5a6e['get'](_0x5cac32)['push'](_0x48d1a8);}}if('remove'===_0xe2bf1f['type']&&_0xe2bf1f['name']===this['_elementName']){const _0x2fd3de=this['_getElementKey']({'getAttribute':_0x36e23d=>_0xe2bf1f['attributes']['get'](_0x36e23d)});_0x4893bc['add'](_0x2fd3de);}}for(const [_0x1b66e5,_0xe68021]of this['_trackedElements'])'$graveyard'===_0xe68021['root']['rootName']&&_0x4893bc['add'](_0x1b66e5);for(const _0x40eda1 of _0x4893bc)this['_trackedElements']['delete'](_0x40eda1);for(const [_0x556e35,_0x19e9fc]of _0x2c5a6e)this['_trackedElements']['set'](_0x556e35,_0x19e9fc[_0x19e9fc['length']-0x1]);const _0x4a5948=new Set();for(const [_0x39802a,_0x2792bc]of _0x2c5a6e)_0x4893bc['has'](_0x39802a)&&(_0x4a5948['add'](_0x2792bc[0x0]),_0x2792bc['length']>0x1?_0x2c5a6e['set'](_0x39802a,_0x2792bc['slice'](0x1)):_0x2c5a6e['delete'](_0x39802a),_0x4893bc['delete'](_0x39802a));return{'removed':Array['from'](_0x4893bc),'inserted':Array['from'](_0x2c5a6e['values']())['flat'](),'moved':Array['from'](_0x4a5948)};}}class f extends _0x30fa3c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c6639){super(_0x5c6639),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x45fcb7=>_0x45fcb7['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x58b0a0=>_0x58b0a0['getAttribute']('footnoteId')});}['init'](){const {editor:_0x437966}=this,{model:_0x1e09ec,data:_0x24d2ee}=_0x437966;_0x1e09ec['document']['registerPostFixer'](_0xc6317a=>{const _0x2b3dc3=_0x1e09ec['document']['differ']['getChanges']();let _0x2f4854=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xc6317a,_0x2b3dc3)&&(_0x2f4854=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xc6317a,_0x2b3dc3)&&(_0x2f4854=!0x0),this['_handleFootnoteReferencesChanges'](_0xc6317a,_0x2b3dc3)&&(_0x2f4854=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xc6317a)&&(_0x2f4854=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xc6317a)&&(_0x2f4854=!0x0),this['_sortFootnoteDefinitions'](_0xc6317a)&&(_0x2f4854=!0x0),_0x2f4854;}),this['listenTo'](_0x1e09ec['document'],'change:data',()=>{_0x1e09ec['enqueueChange']({'isUndoable':!0x1},_0x29991c=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x29991c);});},{'priority':'low'}),this['listenTo'](_0x24d2ee,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x254ac0){return this['_footnotes']['find'](_0xcc97cf=>_0xcc97cf['id']===_0x254ac0)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x6fed66){this['_footnoteFormatter']=_0x6fed66;}['_updateFootnotesCounters'](_0x5c2d10,_0x4e3ea2=0x0){let _0x272987=!0x1;for(let _0x1b4ed6=_0x4e3ea2;_0x1b4ed6<this['_footnotes']['length'];_0x1b4ed6++)this['_updateFootnoteRefCounter'](_0x5c2d10,_0x1b4ed6)&&(_0x272987=!0x0);return _0x272987;}['_insertEmptyFootnotesDefinitionsContainer'](_0x49fe5b,_0x13794a){const _0x554316=_0x49fe5b['createElement']('footnotesDefinitions',{});return _0x49fe5b['append'](_0x554316,_0x13794a),this['_footnotesDefinitions']=_0x554316,_0x554316;}['_ensureFootnotesDefinitionsContainerExists'](_0x557d25){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x42eb59=this['_footnotes'][0x0]['reference']['root'],_0xa7a0ba=this['_insertEmptyFootnotesDefinitionsContainer'](_0x557d25,_0x42eb59);for(const _0x2db60c of this['_footnotes'])_0x2db60c['definition']['parent']||_0x557d25['insert'](_0x2db60c['definition'],_0xa7a0ba,'end');this['_updateFootnotesCounters'](_0x557d25);}['_handleFootnotesDefinitionsObjectChanges'](_0x38c7fb,_0x222d30){let _0xa267e8=!0x1;const {inserted:_0x492a4b,removed:_0x357e92,moved:_0x325f87}=this['_footnoteDefsContainerTracker']['getChanges'](_0x222d30);if(_0x325f87['length']&&(this['_footnotesDefinitions']=_0x325f87[0x0]),_0x492a4b['length']){if(_0x492a4b['length']>0x1||this['_footnotesDefinitions']&&_0x492a4b['some'](_0x15bae6=>_0x15bae6!==this['_footnotesDefinitions'])){const _0x4e8db1=_0x38c7fb['createElement']('footnotesDefinitions',{}),_0x4bfc31=[];this['_footnotesDefinitions']&&_0x4bfc31['push'](this['_footnotesDefinitions']),_0x4bfc31['push'](..._0x492a4b),_0x38c7fb['insert'](_0x4e8db1,_0x4bfc31[0x0],'before');for(const _0x4c0e57 of _0x4bfc31)_0x38c7fb['move'](_0x38c7fb['createRangeIn'](_0x4c0e57),_0x38c7fb['createPositionAt'](_0x4e8db1,'end')),_0x38c7fb['remove'](_0x4c0e57);this['_footnotesDefinitions']=_0x4e8db1,this['_updateFootnotesCounters'](_0x38c7fb),_0xa267e8=!0x0;}else this['_footnotesDefinitions']=_0x492a4b[0x0];}if(_0x357e92['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1c45eb of this['_footnotes'])_0x38c7fb['remove'](_0x1c45eb['reference']),_0xa267e8=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xa267e8;}['_handleFootnoteDefinitionsChanges'](_0x3abd98,_0x45aba0){let _0xa74cb8=!0x1;const _0x5a6692=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1c7ddd,moved:_0x19e58f}=this['_footnoteDefsTracker']['getChanges'](_0x45aba0);for(const _0x3bb222 of[..._0x19e58f,..._0x1c7ddd]){const _0x31c385=_0x3bb222['getAttribute']('footnoteId'),_0x3396bd=this['getFootnote'](_0x31c385);_0x3396bd&&(_0x3396bd['definition']=_0x3bb222),_(_0x3abd98,_0x5a6692,_0x3bb222)&&(_0xa74cb8=!0x0);}return _0xa74cb8;}['_handleFootnoteReferencesChanges'](_0x3b5584,_0x49f665){let _0x18d3d3=!0x1;const {removed:_0xe3b796,inserted:_0x594efd,moved:_0x1d455e}=this['_footnoteRefsTracker']['getChanges'](_0x49f665);for(const _0x45526d of _0xe3b796)this['_handleRemoveFootnoteReferenceById'](_0x3b5584,_0x45526d)&&(_0x18d3d3=!0x0);for(const _0x2342a6 of _0x594efd)this['_handleInsertedFootnoteReference'](_0x3b5584,_0x2342a6)&&(_0x18d3d3=!0x0);for(const _0x100f9b of _0x1d455e)this['_handleMovedFootnoteReference'](_0x3b5584,_0x100f9b)&&(_0x18d3d3=!0x0);return _0x18d3d3;}['_handleFootnotesDefinitionsObjectSync'](_0x3b9f20){if(!this['_footnotesDefinitions'])return!0x1;let _0x352a0b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4dd48a=[];for(const _0x487d5a of this['_footnotesDefinitions']['getChildren']()){const _0x39a77f=_0x487d5a['getAttribute']('footnoteId');this['getFootnote'](_0x39a77f)||(_0x4dd48a['unshift'](_0x487d5a),_0x352a0b=!0x0);}for(const _0xc4b969 of _0x4dd48a)_0x3b9f20['remove'](_0xc4b969);}const _0x5939ab=new Set(),_0x2d1095=[];for(const _0x2da707 of this['_footnotesDefinitions']['getChildren']()){const _0x37ba8d=_0x2da707['getAttribute']('footnoteId');_0x5939ab['has'](_0x37ba8d)?(_0x2d1095['unshift'](_0x2da707),_0x352a0b=!0x0):_0x5939ab['add'](_0x37ba8d);}for(const _0x10d2fc of _0x2d1095)_0x3b9f20['remove'](_0x10d2fc);return this['_footnotesDefinitions']['childCount']||(_0x3b9f20['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x352a0b=!0x0),_0x352a0b;}['_handleInsertedFootnoteReference'](_0x5d6faf,_0x4d4e41){if(this['_footnotes']['find'](_0x52605d=>_0x52605d['reference']===_0x4d4e41))return!0x1;let _0xcf3325=!0x1;const _0x1a6160=_0x4d4e41['getAttribute']('footnoteId'),_0x3ff53a=this['_footnotes']['findIndex'](_0x2e65f2=>_0x2e65f2['id']===_0x1a6160);-0x1!==_0x3ff53a&&(_0x5d6faf['remove'](this['_footnotes'][_0x3ff53a]['reference']),this['_footnotes']['splice'](_0x3ff53a,0x1),_0xcf3325=!0x0);let _0x448479=this['_footnotesDefinitions']?function(_0x2d6efe,_0x413aa0){for(const _0x3a0743 of _0x2d6efe['getChildren']())if(_0x3a0743['getAttribute']('footnoteId')===_0x413aa0)return _0x3a0743;return null;}(this['_footnotesDefinitions'],_0x1a6160):null;_0x448479||(_0x448479=_0x5d6faf['createElement']('footnoteDefinition',{'footnoteId':_0x1a6160}),this['_footnotesDefinitions']&&(_0x5d6faf['insert'](_0x448479,this['_footnotesDefinitions'],'end'),_0xcf3325=!0x0));const _0x7fd91d={'id':_0x1a6160,'reference':_0x4d4e41,'definition':_0x448479},_0x2e69ce=I(this['editor']['model'],this['_footnotes'],_0x4d4e41);this['_footnotes']['splice'](_0x2e69ce,0x0,_0x7fd91d);let _0x521654=_0x2e69ce;return-0x1!==_0x3ff53a&&(_0x521654=Math['min'](_0x2e69ce,_0x3ff53a)),this['_updateFootnotesCounters'](_0x5d6faf,_0x521654)&&(_0xcf3325=!0x0),_0xcf3325;}['_handleRemoveFootnoteReferenceById'](_0x434dd8,_0x261991){const _0x14d834=this['_footnotes']['findIndex'](_0x547a1c=>_0x547a1c['id']===_0x261991);if(-0x1===_0x14d834)return!0x1;let _0x5c0112=!0x1;const _0xb8f11d=this['_footnotes'][_0x14d834];return'$graveyard'!==_0xb8f11d['definition']['root']['rootName']&&(_0x434dd8['remove'](_0xb8f11d['definition']),_0x5c0112=!0x0),this['_footnotes']['splice'](_0x14d834,0x1),this['_updateFootnotesCounters'](_0x434dd8,_0x14d834)&&(_0x5c0112=!0x0),_0x5c0112;}['_handleMovedFootnoteReference'](_0x210191,_0x201918){const _0x2bdb2f=_0x201918['getAttribute']('footnoteId'),_0x3dc3ba=this['_footnotes']['findIndex'](_0x2cdc04=>_0x2cdc04['id']===_0x2bdb2f),_0x1f5b9b=this['_footnotes'][_0x3dc3ba];let _0x50f7a8=!0x1;_0x1f5b9b['reference']=_0x201918,this['_footnotes']['splice'](_0x3dc3ba,0x1);const _0x4d1629=I(this['editor']['model'],this['_footnotes'],_0x201918);return this['_footnotes']['splice'](_0x4d1629,0x0,_0x1f5b9b),this['_updateFootnotesCounters'](_0x210191,Math['min'](_0x3dc3ba,_0x4d1629))&&(_0x50f7a8=!0x0),_0x50f7a8;}['_updateFootnoteRefCounter'](_0xfa0731,_0x568558){if(!this['_footnotesDefinitions'])return!0x1;const _0x296c11=this['_footnotes'][_0x568558];let _0x137eb8;return _0x137eb8=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x296c11,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x568558+0x1}):String(_0x568558+0x1),_0x296c11['reference']['getAttribute']('footnoteCounter')!=_0x137eb8&&(_0xfa0731['setAttribute']('footnoteCounter',_0x137eb8,_0x296c11['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xae8bbc){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x262e42,_0x235b4d){if(_0x262e42['length']!==_0x235b4d['length'])return!0x1;for(let _0x43ad41=0x0;_0x43ad41<_0x262e42['length'];_0x43ad41++)if(_0x262e42[_0x43ad41]!==_0x235b4d[_0x43ad41])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x134d2b=>_0x134d2b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x59b5dd=>_0x59b5dd['getAttribute']('footnoteId'))))return!0x1;let _0x32d4f8=!0x1;for(let _0x5c97e2=0x0;_0x5c97e2<this['_footnotes']['length'];_0x5c97e2++){const _0x58af21=this['_footnotes'][_0x5c97e2],_0x59bdb6=_0xae8bbc['createPositionBefore'](_0x58af21['definition']),_0xb5d73d=_0xae8bbc['createPositionAt'](this['_footnotesDefinitions'],_0x5c97e2);_0x59bdb6['isEqual'](_0xb5d73d)||(_0xae8bbc['move'](_0xae8bbc['createRangeOn'](_0x58af21['definition']),_0xb5d73d),_0x32d4f8=!0x0);}return _0x32d4f8;}['_ensureFootnotesReferencesHaveProperOrder'](_0x267938){if(!this['_footnotes']['length'])return!0x1;const {model:_0x120890}=this['editor'];let _0x10b7c4=!0x1;for(let _0x4154a9=0x0;_0x4154a9<this['_footnotes']['length']-0x1;_0x4154a9++){const _0x130783=this['_footnotes'][_0x4154a9],_0x453d96=this['_footnotes'][_0x4154a9+0x1],_0x57fbe2=_0x120890['createPositionBefore'](_0x130783['reference']),_0x525cc3=_0x120890['createPositionBefore'](_0x453d96['reference']);'after'===_0x57fbe2['compareWith'](_0x525cc3)&&(this['_handleMovedFootnoteReference'](_0x267938,_0x130783['reference']),_0x4154a9=-0x1,_0x10b7c4=!0x0);}return _0x10b7c4;}}function _(_0x550b71,_0x4227f4,_0x344eab){if(_0x344eab['childCount'])return!0x1;const _0x43485e=_0x4227f4?'paragraph':'footnoteInlineContent';return _0x550b71['insert'](_0x550b71['createElement'](_0x43485e),_0x344eab),!0x0;}function I(_0x4cc027,_0x1ddad2,_0x49a480){if(0x0===_0x1ddad2['length'])return 0x0;const _0x1c287e=_0x4cc027['createPositionBefore'](_0x49a480);for(let _0x373622=0x0;_0x373622<_0x1ddad2['length'];_0x373622++){const _0x7eb7a2=_0x1ddad2[_0x373622],_0x132a4a=_0x4cc027['createPositionBefore'](_0x7eb7a2['reference']);if('before'===_0x1c287e['compareWith'](_0x132a4a))return _0x373622;}const _0x1520b7=_0x49a480['root'];let _0x46ed92=-0x1;for(let _0x336dd2=_0x1ddad2['length']-0x1;_0x336dd2>=0x0;_0x336dd2--)if(_0x1ddad2[_0x336dd2]['reference']['root']===_0x1520b7){_0x46ed92=_0x336dd2;break;}if(-0x1!==_0x46ed92)return _0x46ed92+0x1;const _0x5907a3=_0x4cc027['document']['getRootNames'](),_0x14ebeb=_0x5907a3['indexOf'](_0x1520b7['rootName']),_0xd6dd51=_0x5907a3[_0x14ebeb+0x1];if(_0xd6dd51){for(let _0x26739d=0x0;_0x26739d<_0x1ddad2['length'];_0x26739d++)if(_0x1ddad2[_0x26739d]['reference']['root']['rootName']===_0xd6dd51)return _0x26739d;}return _0x1ddad2['length'];}class h extends _0x53f55f{['refresh'](){const _0x562515=this['editor']['model']['document']['selection'],_0x41580f=this['_getPositionToInsertFootnote'](_0x562515);this['isEnabled']=!!_0x41580f;}['execute'](_0x514af0){const {editor:_0x40e083}=this,{model:_0x2d21b5}=_0x40e083,{selection:_0x5d7100}=_0x2d21b5['document'],_0x15667c=this['_getPositionToInsertFootnote'](_0x5d7100);if(!_0x15667c)return;const _0x150430=_0x40e083['plugins']['get']('FootnotesEditing'),_0x6f8b8=_0x514af0?.['footnoteId']??_0x50c6d8();!function(_0x27b650){return'string'==typeof _0x27b650&&_0x27b650['length']>0x0&&!/\s/['test'](_0x27b650)&&!/^\d/['test'](_0x27b650);}(_0x6f8b8)?_0x56e64d('insert-footnote-command-executed-with-invalid-id'):(_0x2d21b5['change'](_0x229b4f=>{const _0xeba82b=_0x229b4f['createElement']('footnoteRef',{'footnoteId':_0x6f8b8});_0x2d21b5['insertObject'](_0xeba82b,_0x15667c,null);}),_0x150430['_moveSelectionToFootnoteDefinition'](_0x6f8b8));}['_getPositionToInsertFootnote'](_0xc1c02a){const {model:_0x5ad661}=this['editor'],{schema:_0x339fad}=_0x5ad661,_0x1aa2da=_0xc1c02a['getFirstRange']();for(const _0x2d949b of _0x1aa2da['getItems']())if(_0x339fad['isBlock'](_0x2d949b)||_0x339fad['isObject'](_0x2d949b))return null;const _0x2020ab=_0x1aa2da['end'];return _0x339fad['checkChild'](_0x2020ab,'footnoteRef')?_0x2020ab:null;}}class r extends _0x30fa3c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b8ba4}=this;_0x5b8ba4['config']['define']('footnotes.multiBlock',!0x0),_0x5b8ba4['commands']['add']('insertFootnote',new h(_0x5b8ba4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x207ab1){const _0xe8e90d=_0x2f29dc([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]),_0x2118c8=0x47a28506,_0x3723b8=0x47a5fb9e^_0x2118c8,_0x47952f=window[_0x2f29dc([0x44,0x61,0x74,0x65])][_0x2f29dc([0x6e,0x6f,0x77])](),_0x389acd=_0x207ab1[_0x2f29dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1744fa=new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x485802=>{_0x389acd[_0x2f29dc([0x6f,0x6e,0x63,0x65])](_0x2f29dc([0x72,0x65,0x61,0x64,0x79]),_0x485802);}),_0x4a76e4={[_0x2f29dc([0x6b,0x74,0x79])]:_0x2f29dc([0x45,0x43]),[_0x2f29dc([0x75,0x73,0x65])]:_0x2f29dc([0x73,0x69,0x67]),[_0x2f29dc([0x63,0x72,0x76])]:_0x2f29dc([0x50,0x2d,0x32,0x35,0x36]),[_0x2f29dc([0x78])]:_0x2f29dc([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]),[_0x2f29dc([0x79])]:_0x2f29dc([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]),[_0x2f29dc([0x61,0x6c,0x67])]:_0x2f29dc([0x45,0x53,0x32,0x35,0x36])},_0xf234fc=_0x389acd[_0x2f29dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f29dc([0x67,0x65,0x74])](_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb0e0(){let _0x14cc83,_0x5c6457=null,_0x5f3538=null;try{if(_0xf234fc==_0x2f29dc([0x47,0x50,0x4c]))return _0x2f29dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14cc83=_0x407437(),!_0x14cc83)return _0x2f29dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14cc83[_0x2f29dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f3538=_0x3c6bd6(_0x14cc83[_0x2f29dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14cc83[_0x2f29dc([0x6a,0x74,0x69])])),await _0x3c294b()?_0x5a7fd8()?_0x4e8525()?_0x2f29dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1286a7()?(_0x14cc83[_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f29dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c6457=_0x24e548(_0x2f29dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6b417f()):_0x2f29dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f29dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f29dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f29dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e8525(){const _0x15caea=[_0x2f29dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f29dc([0x74,0x72,0x69,0x61,0x6c])][_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14cc83[_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47952f/0x3e8:0xe10*_0x3723b8;return _0x14cc83[_0x2f29dc([0x65,0x78,0x70])]<_0x15caea;}function _0x5a7fd8(){const _0x51284d=_0x14cc83[_0x2f29dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51284d&&(!!_0x51284d[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f29dc([0x2a]))||!!_0x51284d[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f29dc([0x46,0x4f,0x4f])));}function _0x1286a7(){const _0x11855e=_0x14cc83[_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11855e||0x0==_0x11855e[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x233f5f}=new URL(window[_0x2f29dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11855e[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x233f5f))return!0x0;const _0x46d642=_0x233f5f[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e]));return _0x11855e[_0x2f29dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4be7e6=>_0x4be7e6[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f29dc([0x2a])))[_0x2f29dc([0x6d,0x61,0x70])](_0x15c73c=>_0x15c73c[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e])))[_0x2f29dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4edbdf=>_0x4edbdf[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46d642[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f29dc([0x6d,0x61,0x70])](_0x4c0e0e=>Array(_0x46d642[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c0e0e[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f29dc([0x66,0x69,0x6c,0x6c])](_0x4c0e0e[0x0]===_0x2f29dc([0x2a])?_0x2f29dc([0x2a]):'')[_0x2f29dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c0e0e))[_0x2f29dc([0x73,0x6f,0x6d,0x65])](_0x7cc32f=>_0x46d642[_0x2f29dc([0x65,0x76,0x65,0x72,0x79])]((_0x20e362,_0xc3111a)=>_0x7cc32f[_0xc3111a]===_0x20e362||_0x7cc32f[_0xc3111a]===_0x2f29dc([0x2a])));}function _0x6b417f(){return _0x5c6457&&_0x5f3538?new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31e4c6,_0x16f6fe)=>{_0x5c6457[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x31e4c6,_0x16f6fe),_0x5f3538[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x57c7e2=>{_0x57c7e2!=_0x2f29dc([0x56,0x61,0x6c,0x69,0x64])&&_0x31e4c6(_0x57c7e2);},_0x16f6fe);}):_0x5c6457||_0x5f3538||_0x2f29dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c6bd6(_0x45e0d7,_0x4980ba){return new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b078b=>{if(_0x114c0c())return _0x2b078b(_0x2f29dc([0x56,0x61,0x6c,0x69,0x64]));_0x371a43(),_0x389acd[_0x2f29dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f29dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf36869=!0x1;const _0x6c6eec=_0x50c6d8();function _0x3f441a(_0x516c68){return!!_0x516c68&&(typeof _0x516c68===_0x2f29dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x516c68===_0x2f29dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x516c68[_0x2f29dc([0x74,0x68,0x65,0x6e])]===_0x2f29dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x516c68[_0x2f29dc([0x63,0x61,0x74,0x63,0x68])]===_0x2f29dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ebac8(_0x1867cf){_0x4e9cb1(_0x1867cf)[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x39a407=>{if(!_0x39a407||_0x39a407[_0x2f29dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f29dc([0x6f,0x6b]))return _0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13b951(_0x56fb6e(_0x6c6eec+_0x4980ba))!=_0x39a407[_0x2f29dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f29dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x27c657=>(_0x6bbfb0(),_0x27c657),()=>{const _0x271330=_0x28bd2f();return null==_0x271330?(_0x6bbfb0(),_0x2f29dc([0x56,0x61,0x6c,0x69,0x64])):_0x2f29dc(_0x47952f-_0x271330>(0x63ae0106^_0x2118c8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x2b078b)[_0x2f29dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b078b(_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32e728=0x47946b86^_0x2118c8;function _0x6bbfb0(){const _0xcf9538=_0x2f29dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x13b951(_0x56fb6e(_0x45e0d7)),_0x28b2eb=_0x496f90(_0x13b951(window[_0x2f29dc([0x4d,0x61,0x74,0x68])][_0x2f29dc([0x63,0x65,0x69,0x6c])](_0x47952f/_0x32e728)));window[_0x2f29dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f29dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcf9538,_0x28b2eb);}function _0x28bd2f(){const _0x2ee077=_0x2f29dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x13b951(_0x56fb6e(_0x45e0d7)),_0x421765=window[_0x2f29dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f29dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ee077);return _0x421765?window[_0x2f29dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496f90(_0x421765),0x10)*_0x32e728:null;}function _0x4e9cb1(_0x387604){return new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1079bf,_0x56dbd6)=>{_0x387604[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x1079bf,_0x56dbd6),window[_0x2f29dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56dbd6,0x47a351c6^_0x2118c8);});}}_0x389acd[_0x2f29dc([0x6f,0x6e])](_0x2f29dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x449ef7,_0x22fa6a)=>{if(_0x22fa6a[0x0]!=_0x45e0d7)return _0x2b078b(_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22fa6a[0x1]={..._0x22fa6a[0x1],[_0x2f29dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6c6eec};},{[_0x2f29dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f29dc([0x68,0x69,0x67,0x68])}),_0x389acd[_0x2f29dc([0x6f,0x6e])](_0x2f29dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a16db=>{_0x3f441a(_0x2a16db[_0x2f29dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf36869=!0x0,_0x4ebac8(_0x2a16db[_0x2f29dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f29dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f29dc([0x6c,0x6f,0x77])}),_0x1744fa[_0x2f29dc([0x74,0x68,0x65,0x6e])](()=>{_0xf36869||_0x2b078b(_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x114c0c(){return _0x389acd[_0x2f29dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f29dc([0x76,0x69,0x65,0x77])][_0x2f29dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f29dc([0x61,0x75,0x74,0x6f]);}function _0x371a43(){_0x389acd[_0x2f29dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f29dc([0x76,0x69,0x65,0x77])][_0x2f29dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f29dc([0x61,0x75,0x74,0x6f]);}}function _0x24e548(_0x27f62d){const _0x20aa5a=[new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c5967=>setTimeout(_0x4c5967,0x47abbbca^_0x2118c8)),_0x1744fa[_0x2f29dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27154f=>{let _0x568b10=0x0;_0x389acd[_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f29dc([0x6f,0x6e])](_0x2f29dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5160a5,_0x5b42e4)=>{_0x5b42e4[0x0][_0x2f29dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x568b10++,_0x568b10==(0x47a280ee^_0x2118c8)&&(_0x27154f(),_0x5160a5[_0x2f29dc([0x6f,0x66,0x66])]());});}))];return window[_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f29dc([0x72,0x61,0x63,0x65])](_0x20aa5a)[_0x2f29dc([0x74,0x68,0x65,0x6e])](()=>_0x27f62d);}async function _0x56822a(){await _0x1744fa,_0x389acd[_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f29dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42fe4f,_0x389acd[_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f29dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42fe4f,_0x389acd[_0x2f29dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56de6a(_0x4c3e27){const _0x1508f0=_0x629001();_0x389acd[_0x1508f0]=_0x2f29dc([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c3e27,_0x4c3e27!=_0x2f29dc([0x56,0x61,0x6c,0x69,0x64])&&_0x56822a();}function _0x629001(){const _0x35220d=window[_0x2f29dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f29dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f29dc([0x6e,0x6f,0x77])]())[_0x2f29dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f29dc([0x2e]),'');let _0x20eb03=_0x2f29dc([0x75]);for(let _0x660505=0x0;_0x660505<_0x35220d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x660505+=0x2){let _0xba169f=window[_0x2f29dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35220d[_0x2f29dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x660505,_0x660505+0x2));_0xba169f>=_0xe8e90d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xba169f-=_0xe8e90d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20eb03+=_0xe8e90d[_0xba169f];}return _0x20eb03;}function _0x407437(){const _0x243bd0=_0xf234fc[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e]));if(0x3!=_0x243bd0[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa87d83(_0x243bd0[0x1]);function _0xa87d83(_0x24ebc9){const _0x2ac67f=_0x23286c(_0x24ebc9);return _0x2ac67f&&_0x52993a()?_0x2ac67f:null;function _0x52993a(){const _0x3e3efa=_0x2ac67f[_0x2f29dc([0x6a,0x74,0x69])],_0x1c5728=window[_0x2f29dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e3efa[_0x2f29dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3efa[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37d934={..._0x2ac67f,[_0x2f29dc([0x6a,0x74,0x69])]:_0x3e3efa[_0x2f29dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e3efa[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37d934[_0x2f29dc([0x76,0x63])],_0x56fb6e(_0x37d934)==_0x1c5728;}}}async function _0x3c294b(){let _0x85bee=!0x0;try{const _0x32e527=_0xf234fc[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e])),[_0x2f313c,_0x1cd567,_0x43df17]=_0x32e527;return _0x5d1b71(_0x2f313c),await _0x4a7c78(_0x2f313c,_0x1cd567,_0x43df17),_0x85bee;}catch{return!0x1;}function _0x5d1b71(_0x48739a){const _0x5a31be=_0x23286c(_0x48739a);_0x5a31be&&_0x5a31be[_0x2f29dc([0x61,0x6c,0x67])]==_0x2f29dc([0x45,0x53,0x32,0x35,0x36])||(_0x85bee=!0x1);}async function _0x4a7c78(_0x43e070,_0x2fa39f,_0x5933c8){const _0x147ec6=window[_0x2f29dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f29dc([0x66,0x72,0x6f,0x6d])](_0x11f3fb(_0x5933c8),_0x126e6e=>_0x126e6e[_0x2f29dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbea034=new window[(_0x2f29dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f29dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43e070+_0x2f29dc([0x2e])+_0x2fa39f),_0x3c390d=window[_0x2f29dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f29dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c390d)return;const _0x1f9f36=await _0x3c390d[_0x2f29dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f29dc([0x6a,0x77,0x6b]),_0x4a76e4,{[_0x2f29dc([0x6e,0x61,0x6d,0x65])]:_0x2f29dc([0x45,0x43,0x44,0x53,0x41]),[_0x2f29dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f29dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f29dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c390d[_0x2f29dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f29dc([0x6e,0x61,0x6d,0x65])]:_0x2f29dc([0x45,0x43,0x44,0x53,0x41]),[_0x2f29dc([0x68,0x61,0x73,0x68])]:{[_0x2f29dc([0x6e,0x61,0x6d,0x65])]:_0x2f29dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f9f36,_0x147ec6,_0xbea034)||(_0x85bee=!0x1);}}function _0x23286c(_0x10776f){return _0x10776f[_0x2f29dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f29dc([0x65,0x79]))?JSON[_0x2f29dc([0x70,0x61,0x72,0x73,0x65])](_0x11f3fb(_0x10776f)):null;}function _0x11f3fb(_0x1a4f9e){return window[_0x2f29dc([0x61,0x74,0x6f,0x62])](_0x1a4f9e[_0x2f29dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f29dc([0x2b]))[_0x2f29dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f29dc([0x2f])));}function _0x56fb6e(_0x3e9bba){let _0x5db261=0x1505;function _0x19b6df(_0x3d626d){for(let _0x15c617=0x0;_0x15c617<_0x3d626d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15c617++){const _0x6bf594=_0x3d626d[_0x2f29dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15c617);_0x5db261=(_0x5db261<<0x5)+_0x5db261+_0x6bf594,_0x5db261&=_0x5db261;}}function _0x1e8663(_0x27f180){Array[_0x2f29dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27f180)?_0x27f180[_0x2f29dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e8663):_0x27f180&&typeof _0x27f180==_0x2f29dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f29dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27f180)[_0x2f29dc([0x73,0x6f,0x72,0x74])]()[_0x2f29dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36fb64,_0x46278b])=>{_0x19b6df(_0x36fb64),_0x1e8663(_0x46278b);}):_0x19b6df(window[_0x2f29dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27f180));}return _0x1e8663(_0x3e9bba),_0x5db261>>>0x0;}function _0x13b951(_0x342175){return _0x342175[_0x2f29dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f29dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f29dc([0x30]));}function _0x496f90(_0x4a4432){return _0x4a4432[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f29dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f29dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x42fe4f(){}function _0x2f29dc(_0x21c460){return _0x21c460['map'](_0x10f62b=>String['fromCharCode'](_0x10f62b))['join']('');}_0x56de6a(await _0x3cb0e0());}(this);}['_moveSelectionToFootnoteDefinition'](_0x45ab38){const {plugins:_0x2bcd14,editing:_0x19c0a2,model:_0x6c99f3}=this['editor'],_0x3d9334=_0x2bcd14['get'](f)['getFootnote'](_0x45ab38);return!!_0x3d9334&&(_0x6c99f3['change'](_0x1fc8e8=>{_0x1fc8e8['setSelection'](_0x1fc8e8['createPositionAt'](_0x3d9334['definition'],'end'));}),_0x19c0a2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x342121){const {plugins:_0x3a4f85,editing:_0x5e00eb,model:_0x41b295}=this['editor'],_0x4bacde=_0x3a4f85['get'](f)['getFootnote'](_0x342121);return!!_0x4bacde&&(_0x41b295['change'](_0x307928=>{_0x307928['setSelection'](_0x4bacde['reference'],'on');}),_0x5e00eb['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3f4aed}=this['editor']['model'],_0xbce372=this['editor']['config']['get']('footnotes.multiBlock');_0x3f4aed['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3f4aed['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3f4aed['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xbce372?_0x3f4aed['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3f4aed['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3f4aed['addChildCheck'](_0x5aecb3=>{for(const _0x1001ac of _0x5aecb3)if('footnoteDefinition'===_0x1001ac['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xc0287b}=this,{conversion:_0x143788,editing:_0x35dd00}=_0xc0287b,{t:t}=_0xc0287b['locale'];_0x143788['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x49b837,{writer:_0x5ac879,consumable:_0x3e0252})=>{const _0xaa0431=_0x49b837['getChild'](0x0);if(!_0xaa0431||!_0xaa0431['is']('element','a'))return null;const _0x4f4fa3=_0xaa0431['getAttribute']('href')||'';if(!_0x4f4fa3['startsWith']('#'))return null;const _0xd95820=_0x4f4fa3['replace'](/^#/,'');if(!_0xd95820)return null;_0x3e0252['consume'](_0xaa0431,{'name':!0x0,'attributes':['href']});for(const {item:_0x3e01bd}of _0x35dd00['view']['createRangeIn'](_0xaa0431))_0x3e01bd['is']('$textProxy')?_0x3e0252['consume'](_0x3e01bd['textNode'],{'name':!0x0}):_0x3e01bd['is']('element')&&_0x3e0252['consume'](_0x3e01bd,{'name':!0x0});return _0x5ac879['createElement']('footnoteRef',{'footnoteId':_0xd95820});}}),_0x143788['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x554d73,{writer:_0x4287e7})=>b(_0x554d73,_0x4287e7)}),_0x143788['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1fa6f4,{writer:_0x13ff4d})=>{const _0x2b4cad=_0x1fa6f4['getAttribute']('footnoteCounter');return _0x165f1f(b(_0x1fa6f4,_0x13ff4d),_0x13ff4d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2b4cad)});}});}['_defineDefinitionsConverters'](){const {editor:_0x319a05}=this,{t:t}=_0x319a05['locale'],{conversion:_0x15ccf3}=_0x319a05;_0x15ccf3['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x15ccf3['for']('upcast')['add'](_0x7767d1=>{_0x7767d1['on']('element:ol',(_0x5bd35e,_0x15854f,_0x607069)=>{const _0x528b5e=_0x15854f['viewItem'];if(!_0x528b5e['hasClass']('footnotes-list')||!_0x15854f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x607069['consumable']['consume'](_0x528b5e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x305ed6,modelCursor:_0x34cabf}=_0x607069['convertChildren'](_0x15854f['viewItem'],_0x15854f['modelCursor']);_0x15854f['modelRange']=_0x305ed6,_0x15854f['modelCursor']=_0x34cabf;}),_0x7767d1['on']('element:hr',(_0x50d38d,_0x52bfb9,_0x162512)=>{const _0x52e42d=_0x52bfb9['viewItem'];_0x52e42d['hasClass']('footnotes-divider')&&_0x52bfb9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x162512['consumable']['consume'](_0x52e42d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x15ccf3['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e42ca,{writer:_0x36af20})=>D(_0x36af20)}),_0x15ccf3['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4aa0c1,{writer:_0x38ccb3})=>{const _0x56cc9e=D(_0x38ccb3,{'data-footnotes-list-label':t('Footnotes')}),_0x185fb8=_0x165f1f(_0x56cc9e,_0x38ccb3,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x38ccb3['setCustomProperty']('footnotesDefinitions',!0x0,_0x185fb8),_0x185fb8;}});}['_defineDefinitionConverters'](){const {editor:_0x30ca67}=this,{conversion:_0x139884,locale:_0x47c0c4}=_0x30ca67,_0x5a6663=_0x30ca67['config']['get']('footnotes.multiBlock');_0x139884['for']('upcast')['add'](_0x30b25d=>{_0x30b25d['on']('element:li',(_0x52113c,_0x314977,_0x56ab89)=>{const _0x418be1=_0x314977['viewItem'];if(!_0x418be1['hasClass']('footnote-definition')||!_0x418be1['getAttribute']('id'))return;const _0x40ea21=_0x418be1['parent'];if(!_0x40ea21['is']('element','ol')||!_0x40ea21['hasClass']('footnotes-list'))return;if(!_0x56ab89['consumable']['test'](_0x418be1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x259a53=_0x56ab89['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x418be1['getAttribute']('id')});if(!_0x56ab89['safeInsert'](_0x259a53,_0x314977['modelCursor']))return;_0x56ab89['consumable']['consume'](_0x418be1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x34664c=Array['from'](_0x418be1['getChildren']())['find'](_0x1d3fa3=>_0x1d3fa3['is']('element')&&_0x1d3fa3['hasClass']('footnote-content'));for(const _0x3f9aa1 of _0x418be1['getChildren']())_0x3f9aa1['is']('element')&&(_0x56ab89['consumable']['consume'](_0x3f9aa1,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x56ab89['consumable']['consume'](_0x3f9aa1,{'name':!0x0,'classes':'footnote-content'}));if(_0x34664c){if(_0x5a6663)_0x56ab89['convertChildren'](_0x34664c,_0x259a53);else{const _0x643cab=_0x56ab89['writer']['createElement']('footnoteInlineContent');_0x56ab89['writer']['insert'](_0x643cab,_0x259a53),_0x56ab89['convertChildren'](_0x34664c,_0x643cab);}}_0x56ab89['updateConversionResult'](_0x259a53,_0x314977);});}),_0x139884['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24b802,{writer:_0x229726})=>y(_0x24b802,_0x229726,_0x47c0c4,{'dataPipeline':!0x0})}),_0x139884['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x392f7c,{writer:_0x291779})=>y(_0x392f7c,_0x291779,_0x47c0c4)});}['_defineBogusParagraphConverters'](){const {editor:_0x5a0963}=this,{conversion:_0x2eb636}=_0x5a0963;_0x5a0963['config']['get']('footnotes.multiBlock')?(_0x2eb636['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x2eb636['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5a0963['model']['document'],'change:data',()=>{!function(_0x24cab5,_0x3d498b){const _0x5b23b8=_0x24cab5['document']['differ'],_0x45a0cf=new Set();for(const _0x158e97 of _0x5b23b8['getChanges']()){const _0x39d934='attribute'==_0x158e97['type']?_0x158e97['range']['start']['parent']:_0x158e97['position']['parent'];_0x39d934['is']('element','footnoteDefinition')&&_0x45a0cf['add'](_0x39d934);}for(const _0x82ded8 of _0x45a0cf['values']()){const _0x133299=Array['from'](_0x82ded8['getChildren']())['filter'](_0xad0cab=>v(_0xad0cab,_0x3d498b['mapper']));for(const _0x1c199b of _0x133299)_0x3d498b['reconvertItem'](_0x1c199b);}}(_0x5a0963['model'],_0x5a0963['editing']);})):(_0x2eb636['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x2eb636['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1701e8,{writer:_0x414e51})=>{const _0x55542e=_0x414e51['createContainerElement']('span');return _0x414e51['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55542e),_0x55542e;}}));}['_defineKeyboardHandlers'](){const {editor:_0x52c186}=this,{editing:_0x4f8c9f,t:t}=_0x52c186,_0x31852e=_0x52c186['model']['document']['selection'];_0x52c186['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x52c186['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4f8c9f['view']['document'],'enter',(_0x578375,_0x18c30e)=>{const _0x12a87d=function(_0x5c07aa){const _0x36a339=_0x5c07aa['getSelectedElement']();if(_0x36a339?.['is']('element','footnoteRef'))return _0x36a339;return null;}(_0x31852e);if(_0x12a87d){const _0x1893f2=_0x12a87d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1893f2),_0x18c30e['preventDefault'](),_0x578375['stop']();}},{'context':_0x93b993});}['_defineClickHandlers'](){const {editor:_0x1518a0}=this,{editing:_0x3a4e55}=_0x1518a0;_0x1518a0['editing']['view']['addObserver'](_0x3c84aa),_0x1518a0['editing']['view']['addObserver'](_0x217c58);let _0x6a1d04=!0x1;this['listenTo'](_0x3a4e55['view']['document'],'pointerdown',(_0x1bde41,_0x3af03a)=>{const {target:_0xc38d4f}=_0x3af03a,_0x3efc0d=_0x3a4e55['view']['document']['selection'];_0x6a1d04=!!(_0xc38d4f?.['is']('element','a')&&_0xc38d4f['parent']?.['is']('element','sup')&&_0xc38d4f['parent']['hasClass']('footnote'))&&_0x3efc0d['getSelectedElement']()===_0xc38d4f['parent'];},{'priority':'high'}),this['listenTo'](_0x3a4e55['view']['document'],'click',(_0x87c666,_0x585b8f)=>{const {target:_0x3e858b}=_0x585b8f;if(!_0x3e858b?.['is']('element','a'))return;if(_0x3e858b['parent']?.['is']('element','sup')&&_0x3e858b['parent']['hasClass']('footnote')&&!_0x6a1d04)return void _0x585b8f['preventDefault']();let _0x19810a=_0x3e858b['getAttribute']('href');if(!_0x19810a?.['startsWith']('#'))return;_0x19810a=_0x19810a['slice'](0x1);let _0x2ad5d8=!0x1;(_0x19810a['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x19810a['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x19810a))&&(_0x2ad5d8=!0x0),_0x2ad5d8&&(_0x585b8f['preventDefault'](),_0x87c666['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2c9f91}={}){return(_0x282ac1,{writer:_0x4a734d})=>{if(!g(_0x282ac1))return null;if(!_0x2c9f91)return _0x4a734d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x11ee86=_0x4a734d['createContainerElement']('p');return _0x4a734d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x11ee86),_0x11ee86;};}function g(_0x328e5a){const {parent:_0x2b94a8}=_0x328e5a;if(!_0x2b94a8?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2b94a8['childCount'])return!0x1;for(const _0x5c3e9c of _0x328e5a['getAttributeKeys']())if(!_0x5c3e9c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5c3e9c)return!0x1;return!0x0;}function v(_0x54b12b,_0x4c9bea){if(!_0x54b12b['is']('element','paragraph'))return!0x1;const _0xab36f=_0x4c9bea['toViewElement'](_0x54b12b);return!!_0xab36f&&g(_0x54b12b)!==_0xab36f['is']('element','span');}function Q(_0x361c40){return _0x93b993(_0x361c40)&&_0x361c40['is']('containerElement')&&!!_0x361c40['getCustomProperty']('footnotesDefinitions');}function D(_0x43c2f2,_0x29d53e={}){const _0xc971e4=_0x43c2f2['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x39ab4b=_0x43c2f2['createContainerElement']('ol',{'class':'footnotes-list'},_0x43c2f2['createSlot']());return _0x43c2f2['createContainerElement']('div',{'class':'footnotes',..._0x29d53e},[_0xc971e4,_0x39ab4b]);}function b(_0x580fb1,_0x20601e){const _0x2e579b=_0x580fb1['getAttribute']('footnoteId'),_0x56aa14=_0x580fb1['getAttribute']('footnoteCounter'),_0x3cd425=_0x20601e['createUIElement']('a',{'href':'#'+_0x2e579b},function(_0x47e80c){const _0x66da53=this['toDomElement'](_0x47e80c);return _0x66da53['textContent']=_0x56aa14,_0x66da53;}),_0x58f3ec=_0x20601e['createContainerElement']('sup',{'id':'ref-'+_0x2e579b,'class':'footnote'},[_0x3cd425]);return _0x58f3ec['getFillerOffset']=()=>null,_0x58f3ec;}function y(_0x4c04dc,_0x40eb54,_0x15522d,{dataPipeline:_0x11d34b}={}){const {t:t}=_0x15522d,_0x2c2c8e=_0x4c04dc['getAttribute']('footnoteId'),_0x3681f3=_0x40eb54['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2c2c8e},function(_0x1ea95c){const _0x195bb3=this['toDomElement'](_0x1ea95c);return _0x195bb3['innerText']='^',_0x195bb3;}),_0x260a89=_0x11d34b?_0x40eb54['createContainerElement']('div',{'class':'footnote-content'}):_0x271e10(_0x40eb54['createEditableElement']('div',{'class':'footnote-content'}),_0x40eb54,{'label':t('Footnote\x20content.')});return _0x40eb54['insert'](_0x40eb54['createPositionAt'](_0x260a89,0x0),_0x40eb54['createSlot']()),_0x40eb54['createContainerElement']('li',{'class':'footnote-definition','id':_0x2c2c8e},[_0x3681f3,_0x260a89]);}class e extends _0x30fa3c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x496109];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x41ddc6}=this,{plugins:_0x2160b7,model:_0x583b80}=_0x41ddc6,_0x370c7d=_0x2160b7['get'](_0x496109),_0x163654=_0x2160b7['get'](f);this['listenTo'](_0x370c7d,'outputTransformation',(_0x65a4e1,_0x2cf4b2)=>{const _0x33b695=l(_0x583b80['createRangeIn'](_0x2cf4b2['content']));if(!_0x33b695['length'])return;const _0x27affb=_0x163654['getFootnotes'](),_0xcda6dd=_0x33b695['reduce']((_0x35cb67,_0x56152a)=>{const _0x5f1b3f=_0x27affb['find'](_0x148c05=>_0x148c05['id']===_0x56152a);if(_0x5f1b3f){const _0x146bda=_0x41ddc6['data']['toView'](_0x5f1b3f['definition'],{'isClipboardPipeline':!0x0}),_0x59153f=_0x41ddc6['data']['htmlProcessor']['toData'](_0x146bda);_0x35cb67[_0x5f1b3f['id']]=_0x59153f;}return _0x35cb67;},Object['create'](null));_0x2cf4b2['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xcda6dd));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x18235c}=this,{model:_0x4e947d,plugins:_0x226f4d}=_0x18235c,{view:_0x52563d}=_0x18235c['editing'],_0x321c67=_0x226f4d['get'](_0x496109),_0x2c46c2=_0x226f4d['get'](f),_0x458f7e=_0x18235c['config']['get']('footnotes.multiBlock');let _0x53df85=null;this['listenTo'](_0x52563d['document'],'clipboardInput',(_0x2e946a,_0x4e2274)=>{const _0x1172c2=_0x4e2274['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x53df85=_0x1172c2?JSON['parse'](_0x1172c2):null;}),this['listenTo'](_0x321c67,'contentInsertion',(_0x125027,_0x251402)=>{const _0x5d2c7d=_0x251402['sourceEditorId']===this['editor']['id'];_0x5d2c7d&&'drop'===_0x251402['method']||_0x4e947d['change'](_0x17cd95=>{let _0x24b9a0=_0x2c46c2['getFootnotesDefinitionsObjectElement']();const _0x3aeb99=!!_0x24b9a0&&Array['from'](_0x4e947d['document']['selection']['getSelectedBlocks']())['includes'](_0x24b9a0);if(!_0x53df85&&function(_0x5da671){for(const {item:_0x5571f}of _0x5da671)if(_0x5571f['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4e947d['createRangeIn'](_0x251402['content']))&&(_0x53df85=function(_0x2c9e56,_0x3490b1){const _0x74d610=c(_0x2c9e56,_0x3490b1);if(!_0x74d610)return null;const _0x206671=Object['create'](null);for(const _0x552339 of _0x74d610['getChildren']())_0x552339['is']('element','footnoteDefinition')&&_0x552339['hasAttribute']('footnoteId')&&(_0x206671[_0x552339['getAttribute']('footnoteId')]=_0x2c9e56['cloneElement'](_0x552339,!0x0));return Object['keys'](_0x206671)['length']?_0x206671:null;}(_0x17cd95,_0x251402['content'])),(_0x24b9a0&&!_0x3aeb99||!_0x24b9a0&&!_0x53df85)&&function(_0x3586d2,_0x43c7df){const _0x899237=[];for(const {item:_0x2b1903}of _0x3586d2['createRangeIn'](_0x43c7df))_0x2b1903['is']('element','footnotesDefinitions')&&_0x899237['push'](_0x2b1903);for(const _0x563086 of _0x899237)_0x3586d2['remove'](_0x563086);}(_0x17cd95,_0x251402['content']),!_0x53df85)return;const {selection:_0x3cb6bc}=_0x4e947d['document'],_0x1556a2=_0x3cb6bc['getFirstRange']()['root'];_0x24b9a0&&!_0x3aeb99||(_0x24b9a0=c(_0x17cd95,_0x251402['content']),_0x24b9a0||=_0x2c46c2['_insertEmptyFootnotesDefinitionsContainer'](_0x17cd95,_0x1556a2));const _0x408087=Array['from'](_0x3cb6bc['getRanges']())['flatMap'](l),_0x31c391=function(_0x499444,_0x428e66,_0x4b149f){const _0x2a7cf0=Object['create'](null);for(const {item:_0x3439c1}of _0x499444['createRangeIn'](_0x428e66))if(_0x3439c1['is']('element','footnoteRef')){const _0x354449=_0x3439c1['getAttribute']('footnoteId');if(!_0x4b149f(_0x354449))continue;_0x2a7cf0[_0x354449]||(_0x2a7cf0[_0x354449]=_0x50c6d8()),_0x499444['setAttribute']('footnoteId',_0x2a7cf0[_0x354449],_0x3439c1);}return _0x2a7cf0;}(_0x17cd95,_0x251402['content'],_0xac0b07=>{if(!_0x5d2c7d)return!0x0;return!!_0x2c46c2['getFootnote'](_0xac0b07)&&!_0x408087['includes'](_0xac0b07);});for(const [_0xbbf43e,_0x81f611]of Object['entries'](_0x53df85)){const _0x372b1e=_0x31c391[_0xbbf43e]||_0xbbf43e;let _0x75f40;if('string'!=typeof _0x81f611)_0x75f40=_0x81f611,_0x372b1e!==_0xbbf43e&&_0x17cd95['setAttribute']('footnoteId',_0x372b1e,_0x75f40);else{_0x75f40=_0x17cd95['createElement']('footnoteDefinition',{'footnoteId':_0x372b1e});const _0x433409=_0x18235c['data']['htmlProcessor']['toView'](_0x81f611);let _0x4b931e;if(_0x458f7e)_0x4b931e=_0x18235c['data']['toModel'](_0x433409,_0x75f40);else{_0x4b931e=_0x17cd95['createElement']('footnoteInlineContent');const _0x33511d=_0x18235c['data']['toModel'](_0x433409,_0x4b931e);_0x17cd95['insert'](_0x33511d,_0x4b931e);}_0x17cd95['append'](_0x4b931e,_0x75f40);}_0x17cd95['insert'](_0x75f40,_0x24b9a0,'end');}_0x53df85=null;});});}}function c(_0x212f5c,_0x5ee772){for(const {item:_0x5b2965}of _0x212f5c['createRangeIn'](_0x5ee772))if(_0x5b2965['is']('element','footnotesDefinitions'))return _0x5b2965;return null;}function l(_0x5bea4f){const _0x483014=new Set();for(const {item:_0x4b81e1}of _0x5bea4f)_0x4b81e1['is']('element','footnoteRef')&&_0x483014['add'](_0x4b81e1['getAttribute']('footnoteId'));return Array['from'](_0x483014);}class i extends _0x30fa3c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x595d98}=this,{componentFactory:_0x5c8619}=_0x595d98['ui'];_0x5c8619['add']('insertFootnote',E(_0x595d98,_0x10acff)),_0x5c8619['add']('menuBar:insertFootnote',E(_0x595d98,_0x209317)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8650be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x975bcc;for(const _0x11052a in _0x8650be){const _0x589788=_0x11052a,_0x442d90=_0x8650be[_0x589788];if('footnotesLicenseKeyValid'==_0x442d90||'footnotesLicenseKeyInvalid'==_0x442d90||'footnotesLicenseKeyExpired'==_0x442d90||'footnotesLicenseKeyDomainLimit'==_0x442d90||'footnotesLicenseKeyNotAllowed'==_0x442d90||'footnotesLicenseKeyEvaluationLimit'==_0x442d90||'footnotesLicenseKeyUsageLimit'==_0x442d90){delete _0x8650be[_0x589788],_0x975bcc=_0x442d90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x975bcc&&_0x8650be['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x975bcc&&_0x8650be['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x975bcc&&_0x8650be['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x975bcc&&_0x8650be['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x975bcc&&_0x8650be['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x975bcc&&_0x8650be['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x59000f,_0x4956ec){const _0x2e5261=_0x59000f['commands']['get']('insertFootnote');return _0x5bbe26=>{const {t:t}=_0x5bbe26,_0x1d652e=new _0x4956ec(_0x5bbe26),_0x5269b3=_0x1d652e instanceof _0x209317;return _0x1d652e['bind']('isEnabled')['to'](_0x2e5261,'isEnabled'),_0x1d652e['set']({'label':t(_0x5269b3?'Footnote':'Insert\x20footnote'),'icon':_0x990c6a,'tooltip':!0x0}),_0x1d652e['on']('execute',()=>{_0x2e5261['execute'](),_0x59000f['editing']['view']['focus']();}),_0x1d652e;};}class lt extends _0x30fa3c{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 _0x53f55f{['refresh'](){const {editor:_0x2b7852}=this,_0x29ee7e=_0x2b7852['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x29ee7e,this['value']=_0x29ee7e?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4a9387}){const {editor:_0x44221d}=this,_0x504e3c=_0x44221d['plugins']['get'](f),_0x20baa2=_0x504e3c['getFootnotesDefinitionsObjectElement']();_0x20baa2&&W['includes'](_0x4a9387)&&_0x44221d['model']['change'](_0x1945cc=>{_0x1945cc['setAttribute']('footnotesListStyle',_0x4a9387,_0x20baa2),_0x504e3c['_updateFootnotesCounters'](_0x1945cc);});}}class C extends _0x53f55f{['refresh'](){const {editor:_0x33e562}=this,_0x28a5a5=_0x33e562['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x28a5a5,this['value']=_0x28a5a5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0xa05136}){const {editor:_0x49927e}=this,_0x4b1d69=_0x49927e['plugins']['get'](f),_0x300bf8=_0x4b1d69['getFootnotesDefinitionsObjectElement']();_0x300bf8&&Number['isInteger'](_0xa05136)&&_0x49927e['model']['change'](_0x19834a=>{_0x19834a['setAttribute']('footnotesListStart',_0xa05136,_0x300bf8),_0x4b1d69['_updateFootnotesCounters'](_0x19834a);});}}class P extends _0x30fa3c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c9ec1}=this;_0x3c9ec1['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x3c9ec1['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x3c9ec1['commands']['add']('footnotesStyle',new S(_0x3c9ec1)),_0x3c9ec1['commands']['add']('footnotesStart',new C(_0x3c9ec1)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x31fa2f}=this,{schema:_0x35abe5}=_0x31fa2f['model'];_0x35abe5['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1e4666}=this,{conversion:_0x2b139b,model:_0x5761d5}=_0x1e4666,{schema:_0x5f1594}=_0x5761d5;_0x2b139b['for']('upcast')['add'](_0xfdcac0=>{_0xfdcac0['on']('element:ol',(_0x6c21c2,_0x1858e9,_0x1bac1b)=>{const _0x587b7a=_0x1858e9['viewItem'],_0x2eb9ff=_0x1858e9['modelCursor']?.['parent'];_0x587b7a['hasClass']('footnotes-list')&&_0x2eb9ff?.['is']('element','footnotesDefinitions')&&(function(_0xa689d6,_0x55e782,_0x4d8a54,_0x619fe6){if(!_0x619fe6['checkAttribute'](_0x55e782,'footnotesListStart'))return;let _0x3efa7e=0x1;const _0x13c75a=_0x4d8a54['consumable']['consume'](_0xa689d6,{'attributes':'start'});if(_0x13c75a){const _0x25e83b=Number['parseInt'](_0xa689d6['getAttribute']('start'),0xa);Number['isNaN'](_0x25e83b)||(_0x3efa7e=_0x25e83b);}!_0x13c75a&&_0x55e782['hasAttribute']('footnotesListStart')||_0x4d8a54['writer']['setAttribute']('footnotesListStart',_0x3efa7e,_0x55e782);}(_0x587b7a,_0x2eb9ff,_0x1bac1b,_0x5f1594),function(_0x2b40e0,_0x45a82d,_0x14417f,_0x4a035c){if(!_0x4a035c['checkAttribute'](_0x45a82d,'footnotesListStyle'))return;let _0x4956e7='decimal',_0x1e09de=!0x1;if(_0x14417f['consumable']['consume'](_0x2b40e0,{'attributes':'type'})){const _0x11d7f5={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2b40e0['getAttribute']('type')];_0x11d7f5&&(_0x4956e7=_0x11d7f5),_0x1e09de=!0x0;}_0x14417f['consumable']['consume'](_0x2b40e0,{'styles':'list-style-type'})&&(_0x4956e7=function(_0x43c92b){switch(_0x43c92b){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x43c92b;}}(_0x2b40e0['getStyle']('list-style-type')),_0x1e09de=!0x0),!_0x1e09de&&_0x45a82d['hasAttribute']('footnotesListStyle')||_0x14417f['writer']['setAttribute']('footnotesListStyle',_0x4956e7,_0x45a82d);}(_0x587b7a,_0x2eb9ff,_0x1bac1b,_0x5f1594));});}),_0x2b139b['for']('downcast')['add'](_0x417edd=>{_0x417edd['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x24f36c,_0x443325,_0x3d82f1)=>{if(!_0x3d82f1['consumable']['consume'](_0x443325['item'],_0x24f36c['name']))return;const _0x4d854c=M(_0x443325['item'],_0x3d82f1['mapper']),{attributeNewValue:_0x3a3f74}=_0x443325;null==_0x3a3f74||0x1===_0x3a3f74?_0x3d82f1['writer']['removeAttribute']('start',_0x4d854c):_0x3d82f1['writer']['setAttribute']('start',String(_0x3a3f74),_0x4d854c);}),_0x417edd['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x472b75,_0x18b085,_0x1d5938)=>{if(!_0x1d5938['consumable']['consume'](_0x18b085['item'],_0x472b75['name']))return;const _0x5042e3=M(_0x18b085['item'],_0x1d5938['mapper']),{attributeNewValue:_0x3e78fa}=_0x18b085;_0x3e78fa&&'decimal'!==_0x3e78fa?_0x1d5938['writer']['setStyle']('list-style-type',_0x3e78fa,_0x5042e3):_0x1d5938['writer']['removeStyle']('list-style-type',_0x5042e3);});});}['_definePostfixer'](){const {editor:_0x2f2c1f}=this,{model:_0x155c9c}=_0x2f2c1f,_0x345059=_0x2f2c1f['plugins']['get'](f),_0x2ce3e6=this['_getDefaultListStyle'](),_0x12d51c=this['_getDefaultStartIndex']();_0x155c9c['document']['registerPostFixer'](_0x350448=>{const _0x17ca0e=_0x155c9c['document']['differ']['getChanges']();let _0x2921c4=!0x1;for(const _0x229fde of _0x17ca0e){if('insert'!==_0x229fde['type']||'$text'===_0x229fde['name'])continue;const _0x4b283e=_0x155c9c['createRangeOn'](_0x229fde['position']['nodeAfter']);for(const _0x161b0e of _0x4b283e['getItems']())_0x161b0e['is']('element','footnotesDefinitions')&&(!_0x161b0e['hasAttribute']('footnotesListStart')&&_0x155c9c['schema']['checkAttribute'](_0x161b0e,'footnotesListStart')&&(_0x350448['setAttribute']('footnotesListStart',_0x12d51c,_0x161b0e),_0x2921c4=!0x0),!_0x161b0e['hasAttribute']('footnotesListStyle')&&_0x155c9c['schema']['checkAttribute'](_0x161b0e,'footnotesListStyle')&&(_0x350448['setAttribute']('footnotesListStyle',_0x2ce3e6,_0x161b0e),_0x2921c4=!0x0));}return _0x2921c4&&_0x345059['_updateFootnotesCounters'](_0x350448),_0x2921c4;});}['_defineFormatter'](){const {editor:_0x1ba60f}=this;_0x1ba60f['plugins']['get'](f)['setFootnoteFormatter'](_0x27491d=>this['_formatFootnoteListValue'](_0x27491d));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x56895f,value:_0x5d00bf,digits:_0xd35c75}){const _0x246ac7=_0x56895f['getAttribute']('footnotesListStyle'),_0x3ee6c2=_0x56895f['getAttribute']('footnotesListStart'),_0x7382a5=Math['floor'](_0x5d00bf)+(_0x3ee6c2??0x1)-0x1;switch(_0x246ac7){case'decimal-leading-zero':return function(_0x3d963a,_0x2a7470){return String(_0x3d963a)['padStart'](_0x2a7470,'0');}(_0x7382a5,Math['max'](0x2,_0xd35c75));case'lower-alpha':case'lower-latin':return N(_0x7382a5,!0x1);case'upper-alpha':case'upper-latin':return N(_0x7382a5,!0x0);case'lower-roman':return X(_0x7382a5,!0x1);case'upper-roman':return X(_0x7382a5,!0x0);default:return String(_0x7382a5);}}}function M(_0xac08b6,_0x4c16e3){const _0x4f1b76=_0x4c16e3['toViewElement'](_0xac08b6);return Array['from'](_0x4f1b76['getChildren']())['find'](_0x3938c7=>_0x3938c7['is']('element','ol')&&_0x3938c7['hasClass']('footnotes-list'));}function N(_0x5a655b,_0x5e94b5){let _0x1d648d='',_0x22e39f=_0x5a655b;for(;_0x22e39f>0x0;){const _0x299878=(_0x22e39f-0x1)%0x1a;_0x1d648d=String['fromCharCode'](0x61+_0x299878)+_0x1d648d,_0x22e39f=Math['floor']((_0x22e39f-0x1)/0x1a);}return _0x5e94b5?_0x1d648d['toUpperCase']():_0x1d648d;}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(_0x494c81,_0x16b4b1){let _0x2407d7='',_0x1aadd3=_0x494c81;for(const {value:_0x1b4696,numeral:_0x409838}of V)for(;_0x1aadd3>=_0x1b4696;)_0x2407d7+=_0x409838,_0x1aadd3-=_0x1b4696;return _0x16b4b1?_0x2407d7:_0x2407d7['toLowerCase']();}class J extends _0x2be6a4{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0xb04a7c();['focusCycler'];constructor(_0x57fbda,{styleButtonViews:_0x3ec609,styleGridAriaLabel:_0xe68ea3}){super(_0x57fbda),(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'](_0x3ec609,_0xe68ea3),[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 _0x741240 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x741240['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 _0x854b96=_0x4054d7=>_0x4054d7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x854b96),this['keystrokes']['set']('arrowleft',_0x854b96),this['keystrokes']['set']('arrowup',_0x854b96),this['keystrokes']['set']('arrowdown',_0x854b96);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a871b,_0x49d99e){const _0x569dc9=new _0x2be6a4(this['locale']);return _0x569dc9['children']=_0x569dc9['createCollection'](),_0x569dc9['children']['addMany'](_0x5a871b),_0x569dc9['setTemplate']({'tag':'div','attributes':{'aria-label':_0x49d99e,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x569dc9['children']}),_0x569dc9['children']['delegate']('execute')['to'](this),_0x569dc9['focus']=function(){for(const _0x3d3dd9 of this['children'])if(_0x3d3dd9 instanceof _0x10acff&&_0x3d3dd9['isOn'])return void _0x3d3dd9['focus']();this['children']['first']['focus']();},_0x569dc9['focusTracker']=new rt(),_0x569dc9['keystrokes']=new nt(),_0x569dc9['render'](),_0x569dc9['keystrokes']['listenTo'](_0x569dc9['element']),this['children']['add'](_0x569dc9),_0x569dc9;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x483957=this['_createStartIndexPropertyView'](),_0x48f397=[_0x483957],_0x2e087e=new it(this['locale'],_0x48f397);return _0x2e087e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2e087e['buttonView']['bind']('isEnabled')['toMany'](_0x48f397,'isEnabled',(..._0xc20a34)=>_0xc20a34['some'](_0x5d83af=>_0x5d83af)),_0x2e087e['buttonView']['on']('change:isEnabled',(_0x43344,_0x30955a,_0x33ea10)=>{_0x33ea10||(_0x2e087e['isCollapsed']=!0x0);}),this['children']['add'](_0x2e087e),[_0x483957,_0x2e087e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xe4bc56=new et(this['locale'],ot);return _0xe4bc56['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xe4bc56['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xe4bc56['fieldView']['on']('input',()=>{const _0x3b5464=_0xe4bc56['fieldView']['element'],_0x3585c3=_0x3b5464['valueAsNumber'];Number['isNaN'](_0x3585c3)?_0xe4bc56['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3b5464['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3585c3}):_0xe4bc56['errorText']=t(_0x3585c3<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xe4bc56;}}class j extends _0x30fa3c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4bc115,_0x3ff51c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b4b16}=this,{componentFactory:_0x5ae8bc}=_0x2b4b16['ui'];_0x2b4b16['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ae8bc['add']('footnotesStyle',function(_0xfe437b){return _0x313139=>{const {t:t}=_0x313139,_0x4a4bd1=_0xfe437b['commands']['get']('footnotesStyle'),_0xf42969=_0x4817e6(_0x313139),{buttonView:_0x2c3239}=_0xf42969;return _0xf42969['class']='ck-footnotes-styles-dropdown',_0xf42969['bind']('isEnabled')['to'](_0x4a4bd1,'isEnabled'),_0x2c3239['set']({'label':t('Footnotes\x20style'),'icon':_0x990c6a,'tooltip':!0x0}),_0xf42969['once']('change:isOpen',()=>{const _0x245c1e=function({editor:_0x245849,dropdownView:_0x369e49}){const {t:t}=_0x245849['locale'],_0x4b264c=t('Footnotes\x20definitions\x20styles'),_0x1b8cba=function(_0x42ed10){const t=_0x42ed10['locale']['t'],_0x1ff1d3=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x328fab},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3b0897},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2843c8},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x16d554},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x33d01d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5d9648}];return _0x1ff1d3['map'](function(_0x5abe64){const _0xfa104d=_0x5abe64['locale'];return({label:_0x4f6678,icon:_0x22a51f,tooltip:_0x26ecae,style:_0x339781})=>{const _0x467542=_0x5abe64['commands']['get']('footnotesStyle'),_0x1f975f=new _0x10acff(_0xfa104d);return _0x1f975f['set']({'label':_0x4f6678,'icon':_0x22a51f,'tooltip':_0x26ecae}),_0x1f975f['bind']('isOn')['to'](_0x467542,'value',_0x14b467=>_0x14b467===_0x339781),_0x1f975f['bind']('isEnabled')['to'](_0x467542,'isEnabled'),_0x1f975f['on']('execute',()=>{_0x5abe64['execute']('footnotesStyle',{'value':_0x339781}),_0x5abe64['editing']['view']['focus']();}),_0x1f975f;};}(_0x42ed10));}(_0x245849),_0x4da223=new J(_0x245849['locale'],{'styleGridAriaLabel':_0x4b264c,'styleButtonViews':_0x1b8cba}),_0x284bda=_0x245849['commands']['get']('footnotesStart');return _0x4da223['startIndexFieldView']['bind']('isEnabled')['to'](_0x284bda),_0x4da223['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x284bda),_0x4da223['on']('footnotesListStart',(_0x5dae30,_0x461a72)=>{_0x245849['execute']('footnotesStart',{'value':_0x461a72['startIndex']});}),_0x4da223['delegate']('execute')['to'](_0x369e49),_0x4da223;}({'editor':_0xfe437b,'dropdownView':_0xf42969});_0xf42969['panelView']['children']['add'](_0x245c1e);}),_0xf42969;};}(_0x2b4b16));}['afterInit'](){const {editor:_0x1aee5f}=this,{t:t}=_0x1aee5f['locale'],_0x46917d=_0x1aee5f['plugins']['get'](_0x3ff51c),{defaultPositions:_0x5d4a81}=_0x489f81;_0x46917d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1aee5f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x566dc0=>{let _0x3f4f47=_0x566dc0['getFirstPosition']()?.['parent'];return _0x3f4f47?.['is']('$text')&&(_0x3f4f47=_0x3f4f47['parent']),_0x3f4f47?.['is']('element')?_0x3f4f47['findAncestor'](Q):null;},'positions':[_0x5d4a81['southArrowNorth'],_0x5d4a81['southArrowNorthMiddleWest'],_0x5d4a81['southArrowNorthMiddleEast'],_0x5d4a81['southArrowNorthWest'],_0x5d4a81['southArrowNorthEast'],_0x5d4a81['northArrowSouth'],_0x5d4a81['northArrowSouthMiddleWest'],_0x5d4a81['northArrowSouthMiddleEast'],_0x5d4a81['northArrowSouthWest'],_0x5d4a81['northArrowSouthEast'],_0x5d4a81['viewportStickyNorth']]});}}class ft extends _0x30fa3c{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.4.0-alpha.2",
3
+ "version": "47.4.0-alpha.4",
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.4.0-alpha.2",
27
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.2",
28
- "@ckeditor/ckeditor5-engine": "47.4.0-alpha.2",
29
- "@ckeditor/ckeditor5-icons": "47.4.0-alpha.2",
30
- "@ckeditor/ckeditor5-widget": "47.4.0-alpha.2",
31
- "@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.2",
32
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.2",
33
- "ckeditor5": "47.4.0-alpha.2"
26
+ "@ckeditor/ckeditor5-core": "47.4.0-alpha.4",
27
+ "@ckeditor/ckeditor5-ui": "47.4.0-alpha.4",
28
+ "@ckeditor/ckeditor5-engine": "47.4.0-alpha.4",
29
+ "@ckeditor/ckeditor5-icons": "47.4.0-alpha.4",
30
+ "@ckeditor/ckeditor5-widget": "47.4.0-alpha.4",
31
+ "@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "47.4.0-alpha.4",
33
+ "ckeditor5": "47.4.0-alpha.4"
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
- import{Plugin as _0x405db5}from'ckeditor5/src/core.js';import{isWidget as _0x47fe90,toWidget as _0x31705e,toWidgetEditable as _0x391675}from'ckeditor5/src/widget.js';import{uid as _0x595b1d}from'ckeditor5/src/utils.js';import{PointerObserver as _0x45a534,ClickObserver as _0x15d330}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1db227}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x312373}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x405db5{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1db227];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe0fac6}=this;_0xe0fac6['config']['define']('footnotes.multiBlock',!0x0),_0xe0fac6['commands']['add']('insertFootnote',new _0x312373(_0xe0fac6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5ed8a2){const _0x56213f=_0x20a449([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]),_0x3d15e=0x47a28506,_0x43744b=0x47a5fb6e^_0x3d15e,_0x4d2c95=window[_0x20a449([0x44,0x61,0x74,0x65])][_0x20a449([0x6e,0x6f,0x77])](),_0xb95154=_0x5ed8a2[_0x20a449([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b7c3=new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5db773=>{_0xb95154[_0x20a449([0x6f,0x6e,0x63,0x65])](_0x20a449([0x72,0x65,0x61,0x64,0x79]),_0x5db773);}),_0x445108={[_0x20a449([0x6b,0x74,0x79])]:_0x20a449([0x45,0x43]),[_0x20a449([0x75,0x73,0x65])]:_0x20a449([0x73,0x69,0x67]),[_0x20a449([0x63,0x72,0x76])]:_0x20a449([0x50,0x2d,0x32,0x35,0x36]),[_0x20a449([0x78])]:_0x20a449([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]),[_0x20a449([0x79])]:_0x20a449([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]),[_0x20a449([0x61,0x6c,0x67])]:_0x20a449([0x45,0x53,0x32,0x35,0x36])},_0x2a2744=_0xb95154[_0x20a449([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20a449([0x67,0x65,0x74])](_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x344a8e(){let _0x2542a3,_0x54a95f=null,_0x1e611a=null;try{if(_0x2a2744==_0x20a449([0x47,0x50,0x4c]))return _0x20a449([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2542a3=_0x4d6d25(),!_0x2542a3)return _0x20a449([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2542a3[_0x20a449([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e611a=_0x459a23(_0x2542a3[_0x20a449([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2542a3[_0x20a449([0x6a,0x74,0x69])])),await _0x149b87()?_0x56a2e3()?_0x23d617()?_0x20a449([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x218676()?(_0x2542a3[_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a449([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54a95f=_0x25f184(_0x20a449([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d36b2()):_0x20a449([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20a449([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20a449([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20a449([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23d617(){const _0x11c6b9=[_0x20a449([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20a449([0x74,0x72,0x69,0x61,0x6c])][_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2542a3[_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d2c95/0x3e8:0xe10*_0x43744b;return _0x2542a3[_0x20a449([0x65,0x78,0x70])]<_0x11c6b9;}function _0x56a2e3(){const _0x181943=_0x2542a3[_0x20a449([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x181943&&(!!_0x181943[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a449([0x2a]))||!!_0x181943[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a449([0x46,0x4f,0x4f])));}function _0x218676(){const _0xf7131c=_0x2542a3[_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf7131c||0x0==_0xf7131c[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c8426}=new URL(window[_0x20a449([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf7131c[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c8426))return!0x0;const _0x3e0952=_0x2c8426[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e]));return _0xf7131c[_0x20a449([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x286a94=>_0x286a94[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a449([0x2a])))[_0x20a449([0x6d,0x61,0x70])](_0x38e035=>_0x38e035[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e])))[_0x20a449([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5374a6=>_0x5374a6[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e0952[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20a449([0x6d,0x61,0x70])](_0x3b6f36=>Array(_0x3e0952[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b6f36[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20a449([0x66,0x69,0x6c,0x6c])](_0x3b6f36[0x0]===_0x20a449([0x2a])?_0x20a449([0x2a]):'')[_0x20a449([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b6f36))[_0x20a449([0x73,0x6f,0x6d,0x65])](_0x4c2645=>_0x3e0952[_0x20a449([0x65,0x76,0x65,0x72,0x79])]((_0x1cba53,_0x25f08e)=>_0x4c2645[_0x25f08e]===_0x1cba53||_0x4c2645[_0x25f08e]===_0x20a449([0x2a])));}function _0x3d36b2(){return _0x54a95f&&_0x1e611a?new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43f868,_0x2e294b)=>{_0x54a95f[_0x20a449([0x74,0x68,0x65,0x6e])](_0x43f868,_0x2e294b),_0x1e611a[_0x20a449([0x74,0x68,0x65,0x6e])](_0x39df8e=>{_0x39df8e!=_0x20a449([0x56,0x61,0x6c,0x69,0x64])&&_0x43f868(_0x39df8e);},_0x2e294b);}):_0x54a95f||_0x1e611a||_0x20a449([0x56,0x61,0x6c,0x69,0x64]);}}function _0x459a23(_0x50f2be,_0xf954c3){return new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456e15=>{if(_0x5af5fa())return _0x456e15(_0x20a449([0x56,0x61,0x6c,0x69,0x64]));_0x9c8bfb(),_0xb95154[_0x20a449([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20a449([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a6b1a=!0x1;const _0x83206=_0x595b1d();function _0xe27924(_0x1baced){return!!_0x1baced&&(typeof _0x1baced===_0x20a449([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1baced===_0x20a449([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1baced[_0x20a449([0x74,0x68,0x65,0x6e])]===_0x20a449([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1baced[_0x20a449([0x63,0x61,0x74,0x63,0x68])]===_0x20a449([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xace9de(_0x491ae9){_0x55ac8d(_0x491ae9)[_0x20a449([0x74,0x68,0x65,0x6e])](_0x50d3de=>{if(!_0x50d3de||_0x50d3de[_0x20a449([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20a449([0x6f,0x6b]))return _0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b539b(_0x1593d7(_0x83206+_0xf954c3))!=_0x50d3de[_0x20a449([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20a449([0x56,0x61,0x6c,0x69,0x64]);})[_0x20a449([0x74,0x68,0x65,0x6e])](_0x3294dc=>(_0x1e4541(),_0x3294dc),()=>{const _0x10e1a0=_0x3fac84();return null==_0x10e1a0?(_0x1e4541(),_0x20a449([0x56,0x61,0x6c,0x69,0x64])):_0x20a449(_0x4d2c95-_0x10e1a0>(0x63ae0106^_0x3d15e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20a449([0x74,0x68,0x65,0x6e])](_0x456e15)[_0x20a449([0x63,0x61,0x74,0x63,0x68])](()=>{_0x456e15(_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf62e2c=0x47946b86^_0x3d15e;function _0x1e4541(){const _0x32ae69=_0x20a449([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b539b(_0x1593d7(_0x50f2be)),_0x4a4cc1=_0x1cf6da(_0x1b539b(window[_0x20a449([0x4d,0x61,0x74,0x68])][_0x20a449([0x63,0x65,0x69,0x6c])](_0x4d2c95/_0xf62e2c)));window[_0x20a449([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a449([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32ae69,_0x4a4cc1);}function _0x3fac84(){const _0x2dc22e=_0x20a449([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b539b(_0x1593d7(_0x50f2be)),_0x5a4e2d=window[_0x20a449([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a449([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc22e);return _0x5a4e2d?window[_0x20a449([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cf6da(_0x5a4e2d),0x10)*_0xf62e2c:null;}function _0x55ac8d(_0x52bd6c){return new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x646d3,_0x4fc3b0)=>{_0x52bd6c[_0x20a449([0x74,0x68,0x65,0x6e])](_0x646d3,_0x4fc3b0),window[_0x20a449([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fc3b0,0x47a351c6^_0x3d15e);});}}_0xb95154[_0x20a449([0x6f,0x6e])](_0x20a449([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58581c,_0x5b0bd8)=>{if(_0x5b0bd8[0x0]!=_0x50f2be)return _0x456e15(_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b0bd8[0x1]={..._0x5b0bd8[0x1],[_0x20a449([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x83206};},{[_0x20a449([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a449([0x68,0x69,0x67,0x68])}),_0xb95154[_0x20a449([0x6f,0x6e])](_0x20a449([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x504055=>{_0xe27924(_0x504055[_0x20a449([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a6b1a=!0x0,_0xace9de(_0x504055[_0x20a449([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20a449([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a449([0x6c,0x6f,0x77])}),_0x12b7c3[_0x20a449([0x74,0x68,0x65,0x6e])](()=>{_0x1a6b1a||_0x456e15(_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5af5fa(){return _0xb95154[_0x20a449([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a449([0x76,0x69,0x65,0x77])][_0x20a449([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20a449([0x61,0x75,0x74,0x6f]);}function _0x9c8bfb(){_0xb95154[_0x20a449([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a449([0x76,0x69,0x65,0x77])][_0x20a449([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20a449([0x61,0x75,0x74,0x6f]);}}function _0x25f184(_0x3ce050){const _0x15ceaa=[new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454b80=>setTimeout(_0x454b80,0x47abbbca^_0x3d15e)),_0x12b7c3[_0x20a449([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a58b5=>{let _0x37691b=0x0;_0xb95154[_0x20a449([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a449([0x6f,0x6e])](_0x20a449([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35340c,_0x4332ee)=>{_0x4332ee[0x0][_0x20a449([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37691b++,_0x37691b==(0x47a280ee^_0x3d15e)&&(_0x3a58b5(),_0x35340c[_0x20a449([0x6f,0x66,0x66])]());});}))];return window[_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20a449([0x72,0x61,0x63,0x65])](_0x15ceaa)[_0x20a449([0x74,0x68,0x65,0x6e])](()=>_0x3ce050);}async function _0x3ed0a7(){await _0x12b7c3,_0xb95154[_0x20a449([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a449([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12b0e5,_0xb95154[_0x20a449([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a449([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12b0e5,_0xb95154[_0x20a449([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20a449([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24ffb7(_0x1d246b){const _0x18e447=_0x2c908a();_0xb95154[_0x18e447]=_0x20a449([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d246b,_0x1d246b!=_0x20a449([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed0a7();}function _0x2c908a(){const _0x5b05b2=window[_0x20a449([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20a449([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20a449([0x6e,0x6f,0x77])]())[_0x20a449([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20a449([0x2e]),'');let _0x6318f9=_0x20a449([0x75]);for(let _0x2c3e7b=0x0;_0x2c3e7b<_0x5b05b2[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c3e7b+=0x2){let _0x118487=window[_0x20a449([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b05b2[_0x20a449([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c3e7b,_0x2c3e7b+0x2));_0x118487>=_0x56213f[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x118487-=_0x56213f[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6318f9+=_0x56213f[_0x118487];}return _0x6318f9;}function _0x4d6d25(){const _0x2709c9=_0x2a2744[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e]));if(0x3!=_0x2709c9[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d8aa2(_0x2709c9[0x1]);function _0x3d8aa2(_0xfd6a26){const _0x293fea=_0x2717b1(_0xfd6a26);return _0x293fea&&_0x5cd93d()?_0x293fea:null;function _0x5cd93d(){const _0x5f2aee=_0x293fea[_0x20a449([0x6a,0x74,0x69])],_0x4d0d8a=window[_0x20a449([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f2aee[_0x20a449([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f2aee[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32e429={..._0x293fea,[_0x20a449([0x6a,0x74,0x69])]:_0x5f2aee[_0x20a449([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f2aee[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32e429[_0x20a449([0x76,0x63])],_0x1593d7(_0x32e429)==_0x4d0d8a;}}}async function _0x149b87(){let _0xeb51a6=!0x0;try{const _0x278a9b=_0x2a2744[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e])),[_0x264084,_0x54d75c,_0x2d9ad6]=_0x278a9b;return _0x5131b1(_0x264084),await _0x21fc59(_0x264084,_0x54d75c,_0x2d9ad6),_0xeb51a6;}catch{return!0x1;}function _0x5131b1(_0x16f51b){const _0x559720=_0x2717b1(_0x16f51b);_0x559720&&_0x559720[_0x20a449([0x61,0x6c,0x67])]==_0x20a449([0x45,0x53,0x32,0x35,0x36])||(_0xeb51a6=!0x1);}async function _0x21fc59(_0x53d0e1,_0x3ab002,_0x4874f3){const _0x4e2612=window[_0x20a449([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20a449([0x66,0x72,0x6f,0x6d])](_0x148d07(_0x4874f3),_0x21349f=>_0x21349f[_0x20a449([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58503d=new window[(_0x20a449([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20a449([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53d0e1+_0x20a449([0x2e])+_0x3ab002),_0x535985=window[_0x20a449([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20a449([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x535985)return;const _0x40bccc=await _0x535985[_0x20a449([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20a449([0x6a,0x77,0x6b]),_0x445108,{[_0x20a449([0x6e,0x61,0x6d,0x65])]:_0x20a449([0x45,0x43,0x44,0x53,0x41]),[_0x20a449([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20a449([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20a449([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x535985[_0x20a449([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20a449([0x6e,0x61,0x6d,0x65])]:_0x20a449([0x45,0x43,0x44,0x53,0x41]),[_0x20a449([0x68,0x61,0x73,0x68])]:{[_0x20a449([0x6e,0x61,0x6d,0x65])]:_0x20a449([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40bccc,_0x4e2612,_0x58503d)||(_0xeb51a6=!0x1);}}function _0x2717b1(_0x4214af){return _0x4214af[_0x20a449([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20a449([0x65,0x79]))?JSON[_0x20a449([0x70,0x61,0x72,0x73,0x65])](_0x148d07(_0x4214af)):null;}function _0x148d07(_0x1f77ff){return window[_0x20a449([0x61,0x74,0x6f,0x62])](_0x1f77ff[_0x20a449([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20a449([0x2b]))[_0x20a449([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20a449([0x2f])));}function _0x1593d7(_0x18a0b1){let _0x1fe442=0x1505;function _0x1a2826(_0x5205c7){for(let _0x53eca6=0x0;_0x53eca6<_0x5205c7[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53eca6++){const _0x31b9fb=_0x5205c7[_0x20a449([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53eca6);_0x1fe442=(_0x1fe442<<0x5)+_0x1fe442+_0x31b9fb,_0x1fe442&=_0x1fe442;}}function _0x23c31b(_0x414c42){Array[_0x20a449([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x414c42)?_0x414c42[_0x20a449([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23c31b):_0x414c42&&typeof _0x414c42==_0x20a449([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20a449([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x414c42)[_0x20a449([0x73,0x6f,0x72,0x74])]()[_0x20a449([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30abbf,_0x1b30b7])=>{_0x1a2826(_0x30abbf),_0x23c31b(_0x1b30b7);}):_0x1a2826(window[_0x20a449([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x414c42));}return _0x23c31b(_0x18a0b1),_0x1fe442>>>0x0;}function _0x1b539b(_0x3746a8){return _0x3746a8[_0x20a449([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20a449([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20a449([0x30]));}function _0x1cf6da(_0x21b229){return _0x21b229[_0x20a449([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20a449([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20a449([0x6a,0x6f,0x69,0x6e])]('');}function _0x12b0e5(){}function _0x20a449(_0x49509a){return _0x49509a['map'](_0x5e922c=>String['fromCharCode'](_0x5e922c))['join']('');}_0x24ffb7(await _0x344a8e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5b9150){const {plugins:_0x427507,editing:_0x3b3eec,model:_0x358bd0}=this['editor'],_0x5019ac=_0x427507['get'](_0x1db227)['getFootnote'](_0x5b9150);return!!_0x5019ac&&(_0x358bd0['change'](_0x3ab2d4=>{_0x3ab2d4['setSelection'](_0x3ab2d4['createPositionAt'](_0x5019ac['definition'],'end'));}),_0x3b3eec['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3c50dc){const {plugins:_0x1bf995,editing:_0x327c1f,model:_0x3afcc9}=this['editor'],_0x326f7a=_0x1bf995['get'](_0x1db227)['getFootnote'](_0x3c50dc);return!!_0x326f7a&&(_0x3afcc9['change'](_0x196d9f=>{_0x196d9f['setSelection'](_0x326f7a['reference'],'on');}),_0x327c1f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x535427}=this['editor']['model'],_0x34c680=this['editor']['config']['get']('footnotes.multiBlock');_0x535427['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x535427['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x535427['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x34c680?_0x535427['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x535427['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x535427['addChildCheck'](_0x5a43ad=>{for(const _0x5291e5 of _0x5a43ad)if('footnoteDefinition'===_0x5291e5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4c3d08}=this,{conversion:_0x1e94db,editing:_0x504500}=_0x4c3d08,{t:t}=_0x4c3d08['locale'];_0x1e94db['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x8d9675,{writer:_0x41c2c7,consumable:_0x19c2ac})=>{const _0x51ae1e=_0x8d9675['getChild'](0x0);if(!_0x51ae1e||!_0x51ae1e['is']('element','a'))return null;const _0x524f86=_0x51ae1e['getAttribute']('href')||'';if(!_0x524f86['startsWith']('#'))return null;const _0x4e5239=_0x524f86['replace'](/^#/,'');if(!_0x4e5239)return null;_0x19c2ac['consume'](_0x51ae1e,{'name':!0x0,'attributes':['href']});for(const {item:_0x54635c}of _0x504500['view']['createRangeIn'](_0x51ae1e))_0x54635c['is']('$textProxy')?_0x19c2ac['consume'](_0x54635c['textNode'],{'name':!0x0}):_0x54635c['is']('element')&&_0x19c2ac['consume'](_0x54635c,{'name':!0x0});return _0x41c2c7['createElement']('footnoteRef',{'footnoteId':_0x4e5239});}}),_0x1e94db['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x50c655,{writer:_0x5f5232})=>b(_0x50c655,_0x5f5232)}),_0x1e94db['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x399d08,{writer:_0x121703})=>{const _0x1ed83a=_0x399d08['getAttribute']('footnoteCounter');return _0x31705e(b(_0x399d08,_0x121703),_0x121703,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1ed83a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x36efe5}=this,{t:t}=_0x36efe5['locale'],{conversion:_0x3da8f4}=_0x36efe5;_0x3da8f4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3da8f4['for']('upcast')['add'](_0x294326=>{_0x294326['on']('element:ol',(_0x5efa19,_0x2a7a0c,_0x2feb55)=>{const _0x1bd451=_0x2a7a0c['viewItem'];if(!_0x1bd451['hasClass']('footnotes-list')||!_0x2a7a0c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2feb55['consumable']['consume'](_0x1bd451,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x34d09e,modelCursor:_0xb3de87}=_0x2feb55['convertChildren'](_0x2a7a0c['viewItem'],_0x2a7a0c['modelCursor']);_0x2a7a0c['modelRange']=_0x34d09e,_0x2a7a0c['modelCursor']=_0xb3de87;}),_0x294326['on']('element:hr',(_0x476a38,_0x5a7831,_0x5a82ff)=>{const _0x39aa34=_0x5a7831['viewItem'];_0x39aa34['hasClass']('footnotes-divider')&&_0x5a7831['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5a82ff['consumable']['consume'](_0x39aa34,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3da8f4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x334d8c,{writer:_0x18d0a2})=>D(_0x18d0a2)}),_0x3da8f4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x310ca0,{writer:_0x515cb8})=>{const _0x3ca2f0=D(_0x515cb8,{'data-footnotes-list-label':t('Footnotes')}),_0x5e61bb=_0x31705e(_0x3ca2f0,_0x515cb8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x515cb8['setCustomProperty']('footnotesDefinitions',!0x0,_0x5e61bb),_0x5e61bb;}});}['_defineDefinitionConverters'](){const {editor:_0x3a1849}=this,{conversion:_0x1175f1,locale:_0x9ed7c1}=_0x3a1849,_0x203db6=_0x3a1849['config']['get']('footnotes.multiBlock');_0x1175f1['for']('upcast')['add'](_0x566609=>{_0x566609['on']('element:li',(_0x282125,_0x35eef9,_0x402334)=>{const _0x4335be=_0x35eef9['viewItem'];if(!_0x4335be['hasClass']('footnote-definition')||!_0x4335be['getAttribute']('id'))return;const _0x115c74=_0x4335be['parent'];if(!_0x115c74['is']('element','ol')||!_0x115c74['hasClass']('footnotes-list'))return;if(!_0x402334['consumable']['test'](_0x4335be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x62402f=_0x402334['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4335be['getAttribute']('id')});if(!_0x402334['safeInsert'](_0x62402f,_0x35eef9['modelCursor']))return;_0x402334['consumable']['consume'](_0x4335be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5ec87b=Array['from'](_0x4335be['getChildren']())['find'](_0x23e1b6=>_0x23e1b6['is']('element')&&_0x23e1b6['hasClass']('footnote-content'));for(const _0x1346e0 of _0x4335be['getChildren']())_0x1346e0['is']('element')&&(_0x402334['consumable']['consume'](_0x1346e0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x402334['consumable']['consume'](_0x1346e0,{'name':!0x0,'classes':'footnote-content'}));if(_0x5ec87b){if(_0x203db6)_0x402334['convertChildren'](_0x5ec87b,_0x62402f);else{const _0x1f4a79=_0x402334['writer']['createElement']('footnoteInlineContent');_0x402334['writer']['insert'](_0x1f4a79,_0x62402f),_0x402334['convertChildren'](_0x5ec87b,_0x1f4a79);}}_0x402334['updateConversionResult'](_0x62402f,_0x35eef9);});}),_0x1175f1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x10af76,{writer:_0xb45604})=>y(_0x10af76,_0xb45604,_0x9ed7c1,{'dataPipeline':!0x0})}),_0x1175f1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24a2f0,{writer:_0x5859cb})=>y(_0x24a2f0,_0x5859cb,_0x9ed7c1)});}['_defineBogusParagraphConverters'](){const {editor:_0x3f6bec}=this,{conversion:_0x53b471}=_0x3f6bec;_0x3f6bec['config']['get']('footnotes.multiBlock')?(_0x53b471['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x53b471['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3f6bec['model']['document'],'change:data',()=>{!function(_0x1d03ba,_0x262ec7){const _0x4faec7=_0x1d03ba['document']['differ'],_0x44d8fd=new Set();for(const _0x6a4df2 of _0x4faec7['getChanges']()){const _0x479fd6='attribute'==_0x6a4df2['type']?_0x6a4df2['range']['start']['parent']:_0x6a4df2['position']['parent'];_0x479fd6['is']('element','footnoteDefinition')&&_0x44d8fd['add'](_0x479fd6);}for(const _0x5061d5 of _0x44d8fd['values']()){const _0x566b58=Array['from'](_0x5061d5['getChildren']())['filter'](_0x51d7d9=>v(_0x51d7d9,_0x262ec7['mapper']));for(const _0x1eff24 of _0x566b58)_0x262ec7['reconvertItem'](_0x1eff24);}}(_0x3f6bec['model'],_0x3f6bec['editing']);})):(_0x53b471['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x53b471['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4116e3,{writer:_0x4a9b7d})=>{const _0x33e8ad=_0x4a9b7d['createContainerElement']('span');return _0x4a9b7d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x33e8ad),_0x33e8ad;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5bcc2d}=this,{editing:_0x3bde46,t:t}=_0x5bcc2d,_0x5ecdbb=_0x5bcc2d['model']['document']['selection'];_0x5bcc2d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5bcc2d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3bde46['view']['document'],'enter',(_0x5d3a0a,_0x20e415)=>{const _0x433f23=function(_0x5bf5d9){const _0x25fd88=_0x5bf5d9['getSelectedElement']();if(_0x25fd88?.['is']('element','footnoteRef'))return _0x25fd88;return null;}(_0x5ecdbb);if(_0x433f23){const _0x41ac67=_0x433f23['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x41ac67),_0x20e415['preventDefault'](),_0x5d3a0a['stop']();}},{'context':_0x47fe90});}['_defineClickHandlers'](){const {editor:_0x2e5839}=this,{editing:_0x3868a9}=_0x2e5839;_0x2e5839['editing']['view']['addObserver'](_0x45a534),_0x2e5839['editing']['view']['addObserver'](_0x15d330);let _0x28a572=!0x1;this['listenTo'](_0x3868a9['view']['document'],'pointerdown',(_0x39cbf0,_0x26b1ee)=>{const {target:_0x5a18b6}=_0x26b1ee,_0x41c7dc=_0x3868a9['view']['document']['selection'];_0x28a572=!!(_0x5a18b6?.['is']('element','a')&&_0x5a18b6['parent']?.['is']('element','sup')&&_0x5a18b6['parent']['hasClass']('footnote'))&&_0x41c7dc['getSelectedElement']()===_0x5a18b6['parent'];},{'priority':'high'}),this['listenTo'](_0x3868a9['view']['document'],'click',(_0x5edb3d,_0x16aed0)=>{const {target:_0x34f3a2}=_0x16aed0;if(!_0x34f3a2?.['is']('element','a'))return;if(_0x34f3a2['parent']?.['is']('element','sup')&&_0x34f3a2['parent']['hasClass']('footnote')&&!_0x28a572)return void _0x16aed0['preventDefault']();let _0x2312a0=_0x34f3a2['getAttribute']('href');if(!_0x2312a0?.['startsWith']('#'))return;_0x2312a0=_0x2312a0['slice'](0x1);let _0xce56c2=!0x1;(_0x2312a0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2312a0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2312a0))&&(_0xce56c2=!0x0),_0xce56c2&&(_0x16aed0['preventDefault'](),_0x5edb3d['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1ccbae}={}){return(_0x81302d,{writer:_0x1d0409})=>{if(!g(_0x81302d))return null;if(!_0x1ccbae)return _0x1d0409['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x111c53=_0x1d0409['createContainerElement']('p');return _0x1d0409['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x111c53),_0x111c53;};}function g(_0x385690){const {parent:_0x419dfb}=_0x385690;if(!_0x419dfb?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x419dfb['childCount'])return!0x1;for(const _0x4085ed of _0x385690['getAttributeKeys']())if(!_0x4085ed['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4085ed)return!0x1;return!0x0;}function v(_0x7cbcd1,_0x4546af){if(!_0x7cbcd1['is']('element','paragraph'))return!0x1;const _0x3e39e8=_0x4546af['toViewElement'](_0x7cbcd1);return!!_0x3e39e8&&g(_0x7cbcd1)!==_0x3e39e8['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3a1e4e){return _0x47fe90(_0x3a1e4e)&&_0x3a1e4e['is']('containerElement')&&!!_0x3a1e4e['getCustomProperty']('footnotesDefinitions');}function D(_0x41af8c,_0x3b28e6={}){const _0x1859a8=_0x41af8c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x253686=_0x41af8c['createContainerElement']('ol',{'class':'footnotes-list'},_0x41af8c['createSlot']());return _0x41af8c['createContainerElement']('div',{'class':'footnotes',..._0x3b28e6},[_0x1859a8,_0x253686]);}function b(_0x1f0c17,_0x2f0e89){const _0x31822f=_0x1f0c17['getAttribute']('footnoteId'),_0x55408e=_0x1f0c17['getAttribute']('footnoteCounter'),_0x2e11b8=_0x2f0e89['createUIElement']('a',{'href':'#'+_0x31822f},function(_0x4b9798){const _0x423afb=this['toDomElement'](_0x4b9798);return _0x423afb['textContent']=_0x55408e,_0x423afb;}),_0x33f81b=_0x2f0e89['createContainerElement']('sup',{'id':'ref-'+_0x31822f,'class':'footnote'},[_0x2e11b8]);return _0x33f81b['getFillerOffset']=()=>null,_0x33f81b;}function y(_0x18e4f1,_0x314afa,_0x1a9e48,{dataPipeline:_0x2909b8}={}){const {t:t}=_0x1a9e48,_0x229710=_0x18e4f1['getAttribute']('footnoteId'),_0x44b558=_0x314afa['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x229710},function(_0x36d43b){const _0x534d4a=this['toDomElement'](_0x36d43b);return _0x534d4a['innerText']='^',_0x534d4a;}),_0x30f745=_0x2909b8?_0x314afa['createContainerElement']('div',{'class':'footnote-content'}):_0x391675(_0x314afa['createEditableElement']('div',{'class':'footnote-content'}),_0x314afa,{'label':t('Footnote\x20content.')});return _0x314afa['insert'](_0x314afa['createPositionAt'](_0x30f745,0x0),_0x314afa['createSlot']()),_0x314afa['createContainerElement']('li',{'class':'footnote-definition','id':_0x229710},[_0x44b558,_0x30f745]);}
23
+ import{Plugin as _0x19483c}from'ckeditor5/src/core.js';import{isWidget as _0x9a9ff2,toWidget as _0x4e8cd4,toWidgetEditable as _0x1e1055}from'ckeditor5/src/widget.js';import{uid as _0x3ca9a1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x59f128,ClickObserver as _0x1d3d8b}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3d7d08}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x169aca}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x19483c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3d7d08];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x140971}=this;_0x140971['config']['define']('footnotes.multiBlock',!0x0),_0x140971['commands']['add']('insertFootnote',new _0x169aca(_0x140971)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1c2b87){const _0x16a3ff=_0x1af073([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]),_0xecbf0f=0x47a28506,_0x476b73=0x47a5fb9e^_0xecbf0f,_0x179fdb=window[_0x1af073([0x44,0x61,0x74,0x65])][_0x1af073([0x6e,0x6f,0x77])](),_0x46b58f=_0x1c2b87[_0x1af073([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x249c77=new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e4c8=>{_0x46b58f[_0x1af073([0x6f,0x6e,0x63,0x65])](_0x1af073([0x72,0x65,0x61,0x64,0x79]),_0x41e4c8);}),_0x2dab3b={[_0x1af073([0x6b,0x74,0x79])]:_0x1af073([0x45,0x43]),[_0x1af073([0x75,0x73,0x65])]:_0x1af073([0x73,0x69,0x67]),[_0x1af073([0x63,0x72,0x76])]:_0x1af073([0x50,0x2d,0x32,0x35,0x36]),[_0x1af073([0x78])]:_0x1af073([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]),[_0x1af073([0x79])]:_0x1af073([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]),[_0x1af073([0x61,0x6c,0x67])]:_0x1af073([0x45,0x53,0x32,0x35,0x36])},_0x262768=_0x46b58f[_0x1af073([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1af073([0x67,0x65,0x74])](_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47d2bb(){let _0x261928,_0x27b977=null,_0x502de2=null;try{if(_0x262768==_0x1af073([0x47,0x50,0x4c]))return _0x1af073([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x261928=_0x224311(),!_0x261928)return _0x1af073([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x261928[_0x1af073([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x502de2=_0x406cb3(_0x261928[_0x1af073([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x261928[_0x1af073([0x6a,0x74,0x69])])),await _0x4697ab()?_0x1c42f6()?_0x3ff08d()?_0x1af073([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20a938()?(_0x261928[_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1af073([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27b977=_0x2ee4e9(_0x1af073([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25aefc()):_0x1af073([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1af073([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1af073([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1af073([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ff08d(){const _0x4c72a6=[_0x1af073([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1af073([0x74,0x72,0x69,0x61,0x6c])][_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261928[_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x179fdb/0x3e8:0xe10*_0x476b73;return _0x261928[_0x1af073([0x65,0x78,0x70])]<_0x4c72a6;}function _0x1c42f6(){const _0x5be354=_0x261928[_0x1af073([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5be354&&(!!_0x5be354[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1af073([0x2a]))||!!_0x5be354[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1af073([0x46,0x4f,0x4f])));}function _0x20a938(){const _0x10590d=_0x261928[_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10590d||0x0==_0x10590d[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x237f14}=new URL(window[_0x1af073([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10590d[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237f14))return!0x0;const _0x11daed=_0x237f14[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e]));return _0x10590d[_0x1af073([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbac2ee=>_0xbac2ee[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1af073([0x2a])))[_0x1af073([0x6d,0x61,0x70])](_0x2de9a7=>_0x2de9a7[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e])))[_0x1af073([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4615db=>_0x4615db[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11daed[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1af073([0x6d,0x61,0x70])](_0x5d8351=>Array(_0x11daed[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d8351[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1af073([0x66,0x69,0x6c,0x6c])](_0x5d8351[0x0]===_0x1af073([0x2a])?_0x1af073([0x2a]):'')[_0x1af073([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d8351))[_0x1af073([0x73,0x6f,0x6d,0x65])](_0x1cd773=>_0x11daed[_0x1af073([0x65,0x76,0x65,0x72,0x79])]((_0xd2f002,_0x3b8b03)=>_0x1cd773[_0x3b8b03]===_0xd2f002||_0x1cd773[_0x3b8b03]===_0x1af073([0x2a])));}function _0x25aefc(){return _0x27b977&&_0x502de2?new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4af82e,_0x55426a)=>{_0x27b977[_0x1af073([0x74,0x68,0x65,0x6e])](_0x4af82e,_0x55426a),_0x502de2[_0x1af073([0x74,0x68,0x65,0x6e])](_0x531b47=>{_0x531b47!=_0x1af073([0x56,0x61,0x6c,0x69,0x64])&&_0x4af82e(_0x531b47);},_0x55426a);}):_0x27b977||_0x502de2||_0x1af073([0x56,0x61,0x6c,0x69,0x64]);}}function _0x406cb3(_0x5cf4e7,_0x44ac91){return new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c3f29=>{if(_0x47e018())return _0x1c3f29(_0x1af073([0x56,0x61,0x6c,0x69,0x64]));_0x2b9a51(),_0x46b58f[_0x1af073([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1af073([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15a0b6=!0x1;const _0x164804=_0x3ca9a1();function _0x5a8086(_0x25bb0c){return!!_0x25bb0c&&(typeof _0x25bb0c===_0x1af073([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25bb0c===_0x1af073([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25bb0c[_0x1af073([0x74,0x68,0x65,0x6e])]===_0x1af073([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25bb0c[_0x1af073([0x63,0x61,0x74,0x63,0x68])]===_0x1af073([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f7901(_0x24b9f6){_0x392e1f(_0x24b9f6)[_0x1af073([0x74,0x68,0x65,0x6e])](_0x190551=>{if(!_0x190551||_0x190551[_0x1af073([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1af073([0x6f,0x6b]))return _0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x207b54(_0x3d5bd1(_0x164804+_0x44ac91))!=_0x190551[_0x1af073([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1af073([0x56,0x61,0x6c,0x69,0x64]);})[_0x1af073([0x74,0x68,0x65,0x6e])](_0x4b730d=>(_0x242cf3(),_0x4b730d),()=>{const _0x588905=_0x2da19a();return null==_0x588905?(_0x242cf3(),_0x1af073([0x56,0x61,0x6c,0x69,0x64])):_0x1af073(_0x179fdb-_0x588905>(0x63ae0106^_0xecbf0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1af073([0x74,0x68,0x65,0x6e])](_0x1c3f29)[_0x1af073([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c3f29(_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x184fe9=0x47946b86^_0xecbf0f;function _0x242cf3(){const _0x481256=_0x1af073([0x6c,0x6c,0x63,0x74,0x2d])+_0x207b54(_0x3d5bd1(_0x5cf4e7)),_0x17fb50=_0x1bcff0(_0x207b54(window[_0x1af073([0x4d,0x61,0x74,0x68])][_0x1af073([0x63,0x65,0x69,0x6c])](_0x179fdb/_0x184fe9)));window[_0x1af073([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1af073([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x481256,_0x17fb50);}function _0x2da19a(){const _0x1f8e31=_0x1af073([0x6c,0x6c,0x63,0x74,0x2d])+_0x207b54(_0x3d5bd1(_0x5cf4e7)),_0x3306f2=window[_0x1af073([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1af073([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f8e31);return _0x3306f2?window[_0x1af073([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bcff0(_0x3306f2),0x10)*_0x184fe9:null;}function _0x392e1f(_0x5cf5d6){return new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529d21,_0x2c4025)=>{_0x5cf5d6[_0x1af073([0x74,0x68,0x65,0x6e])](_0x529d21,_0x2c4025),window[_0x1af073([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c4025,0x47a351c6^_0xecbf0f);});}}_0x46b58f[_0x1af073([0x6f,0x6e])](_0x1af073([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bc5f2,_0xa0bfcb)=>{if(_0xa0bfcb[0x0]!=_0x5cf4e7)return _0x1c3f29(_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa0bfcb[0x1]={..._0xa0bfcb[0x1],[_0x1af073([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x164804};},{[_0x1af073([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1af073([0x68,0x69,0x67,0x68])}),_0x46b58f[_0x1af073([0x6f,0x6e])](_0x1af073([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27e747=>{_0x5a8086(_0x27e747[_0x1af073([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15a0b6=!0x0,_0x2f7901(_0x27e747[_0x1af073([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1af073([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1af073([0x6c,0x6f,0x77])}),_0x249c77[_0x1af073([0x74,0x68,0x65,0x6e])](()=>{_0x15a0b6||_0x1c3f29(_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47e018(){return _0x46b58f[_0x1af073([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1af073([0x76,0x69,0x65,0x77])][_0x1af073([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1af073([0x61,0x75,0x74,0x6f]);}function _0x2b9a51(){_0x46b58f[_0x1af073([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1af073([0x76,0x69,0x65,0x77])][_0x1af073([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1af073([0x61,0x75,0x74,0x6f]);}}function _0x2ee4e9(_0x40df99){const _0x28f010=[new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c9ab5=>setTimeout(_0x3c9ab5,0x47abbbca^_0xecbf0f)),_0x249c77[_0x1af073([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263409=>{let _0x393c0c=0x0;_0x46b58f[_0x1af073([0x6d,0x6f,0x64,0x65,0x6c])][_0x1af073([0x6f,0x6e])](_0x1af073([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36c177,_0x1811cd)=>{_0x1811cd[0x0][_0x1af073([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x393c0c++,_0x393c0c==(0x47a280ee^_0xecbf0f)&&(_0x263409(),_0x36c177[_0x1af073([0x6f,0x66,0x66])]());});}))];return window[_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1af073([0x72,0x61,0x63,0x65])](_0x28f010)[_0x1af073([0x74,0x68,0x65,0x6e])](()=>_0x40df99);}async function _0x4ddda3(){await _0x249c77,_0x46b58f[_0x1af073([0x6d,0x6f,0x64,0x65,0x6c])][_0x1af073([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25cf63,_0x46b58f[_0x1af073([0x6d,0x6f,0x64,0x65,0x6c])][_0x1af073([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25cf63,_0x46b58f[_0x1af073([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1af073([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ada36(_0x3bc596){const _0x1d5260=_0x47238c();_0x46b58f[_0x1d5260]=_0x1af073([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bc596,_0x3bc596!=_0x1af073([0x56,0x61,0x6c,0x69,0x64])&&_0x4ddda3();}function _0x47238c(){const _0x3919aa=window[_0x1af073([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1af073([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1af073([0x6e,0x6f,0x77])]())[_0x1af073([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1af073([0x2e]),'');let _0x3a9f9e=_0x1af073([0x75]);for(let _0x2da695=0x0;_0x2da695<_0x3919aa[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da695+=0x2){let _0xb76105=window[_0x1af073([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3919aa[_0x1af073([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2da695,_0x2da695+0x2));_0xb76105>=_0x16a3ff[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb76105-=_0x16a3ff[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a9f9e+=_0x16a3ff[_0xb76105];}return _0x3a9f9e;}function _0x224311(){const _0x10a32f=_0x262768[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e]));if(0x3!=_0x10a32f[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x274853(_0x10a32f[0x1]);function _0x274853(_0x5d3790){const _0xa5edcb=_0x4b4fb4(_0x5d3790);return _0xa5edcb&&_0x423dfd()?_0xa5edcb:null;function _0x423dfd(){const _0x4bf577=_0xa5edcb[_0x1af073([0x6a,0x74,0x69])],_0x1b16a1=window[_0x1af073([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bf577[_0x1af073([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bf577[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x138c89={..._0xa5edcb,[_0x1af073([0x6a,0x74,0x69])]:_0x4bf577[_0x1af073([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bf577[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x138c89[_0x1af073([0x76,0x63])],_0x3d5bd1(_0x138c89)==_0x1b16a1;}}}async function _0x4697ab(){let _0xb04e59=!0x0;try{const _0x5168f6=_0x262768[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e])),[_0x66ead8,_0x5aa417,_0x1cf7fa]=_0x5168f6;return _0x369256(_0x66ead8),await _0x296d1f(_0x66ead8,_0x5aa417,_0x1cf7fa),_0xb04e59;}catch{return!0x1;}function _0x369256(_0x551309){const _0x2a5f18=_0x4b4fb4(_0x551309);_0x2a5f18&&_0x2a5f18[_0x1af073([0x61,0x6c,0x67])]==_0x1af073([0x45,0x53,0x32,0x35,0x36])||(_0xb04e59=!0x1);}async function _0x296d1f(_0x5237ee,_0x1b9977,_0x3b9d5c){const _0x546fe5=window[_0x1af073([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1af073([0x66,0x72,0x6f,0x6d])](_0x71fa43(_0x3b9d5c),_0x3f5cc0=>_0x3f5cc0[_0x1af073([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49b69e=new window[(_0x1af073([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1af073([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5237ee+_0x1af073([0x2e])+_0x1b9977),_0x21f751=window[_0x1af073([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1af073([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21f751)return;const _0x24fcbc=await _0x21f751[_0x1af073([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1af073([0x6a,0x77,0x6b]),_0x2dab3b,{[_0x1af073([0x6e,0x61,0x6d,0x65])]:_0x1af073([0x45,0x43,0x44,0x53,0x41]),[_0x1af073([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1af073([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1af073([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21f751[_0x1af073([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1af073([0x6e,0x61,0x6d,0x65])]:_0x1af073([0x45,0x43,0x44,0x53,0x41]),[_0x1af073([0x68,0x61,0x73,0x68])]:{[_0x1af073([0x6e,0x61,0x6d,0x65])]:_0x1af073([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24fcbc,_0x546fe5,_0x49b69e)||(_0xb04e59=!0x1);}}function _0x4b4fb4(_0x2f51c3){return _0x2f51c3[_0x1af073([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1af073([0x65,0x79]))?JSON[_0x1af073([0x70,0x61,0x72,0x73,0x65])](_0x71fa43(_0x2f51c3)):null;}function _0x71fa43(_0x1944d3){return window[_0x1af073([0x61,0x74,0x6f,0x62])](_0x1944d3[_0x1af073([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1af073([0x2b]))[_0x1af073([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1af073([0x2f])));}function _0x3d5bd1(_0x6e2e14){let _0x1424f0=0x1505;function _0x5ebec7(_0x3dc2c7){for(let _0x1f09dc=0x0;_0x1f09dc<_0x3dc2c7[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f09dc++){const _0x3024ae=_0x3dc2c7[_0x1af073([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f09dc);_0x1424f0=(_0x1424f0<<0x5)+_0x1424f0+_0x3024ae,_0x1424f0&=_0x1424f0;}}function _0x14e172(_0x838dc6){Array[_0x1af073([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x838dc6)?_0x838dc6[_0x1af073([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e172):_0x838dc6&&typeof _0x838dc6==_0x1af073([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1af073([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x838dc6)[_0x1af073([0x73,0x6f,0x72,0x74])]()[_0x1af073([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3861a9,_0x449306])=>{_0x5ebec7(_0x3861a9),_0x14e172(_0x449306);}):_0x5ebec7(window[_0x1af073([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x838dc6));}return _0x14e172(_0x6e2e14),_0x1424f0>>>0x0;}function _0x207b54(_0x49942e){return _0x49942e[_0x1af073([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1af073([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1af073([0x30]));}function _0x1bcff0(_0x2f5621){return _0x2f5621[_0x1af073([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1af073([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1af073([0x6a,0x6f,0x69,0x6e])]('');}function _0x25cf63(){}function _0x1af073(_0x1d2235){return _0x1d2235['map'](_0x4e78f2=>String['fromCharCode'](_0x4e78f2))['join']('');}_0x1ada36(await _0x47d2bb());}(this);}['_moveSelectionToFootnoteDefinition'](_0x12e033){const {plugins:_0x9c6374,editing:_0x17f635,model:_0x225483}=this['editor'],_0x4f946d=_0x9c6374['get'](_0x3d7d08)['getFootnote'](_0x12e033);return!!_0x4f946d&&(_0x225483['change'](_0x3bd444=>{_0x3bd444['setSelection'](_0x3bd444['createPositionAt'](_0x4f946d['definition'],'end'));}),_0x17f635['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x29551f){const {plugins:_0x10997a,editing:_0x50568c,model:_0x1833f3}=this['editor'],_0x5043b2=_0x10997a['get'](_0x3d7d08)['getFootnote'](_0x29551f);return!!_0x5043b2&&(_0x1833f3['change'](_0x33def3=>{_0x33def3['setSelection'](_0x5043b2['reference'],'on');}),_0x50568c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2b15fb}=this['editor']['model'],_0x17c0e3=this['editor']['config']['get']('footnotes.multiBlock');_0x2b15fb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2b15fb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2b15fb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x17c0e3?_0x2b15fb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2b15fb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2b15fb['addChildCheck'](_0x5f577b=>{for(const _0x4b9e7b of _0x5f577b)if('footnoteDefinition'===_0x4b9e7b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x45766f}=this,{conversion:_0x1f1b46,editing:_0x5ed37f}=_0x45766f,{t:t}=_0x45766f['locale'];_0x1f1b46['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x16ba13,{writer:_0xf17d52,consumable:_0x2c7c04})=>{const _0x1f4ad6=_0x16ba13['getChild'](0x0);if(!_0x1f4ad6||!_0x1f4ad6['is']('element','a'))return null;const _0x2f7a18=_0x1f4ad6['getAttribute']('href')||'';if(!_0x2f7a18['startsWith']('#'))return null;const _0x53471b=_0x2f7a18['replace'](/^#/,'');if(!_0x53471b)return null;_0x2c7c04['consume'](_0x1f4ad6,{'name':!0x0,'attributes':['href']});for(const {item:_0x539092}of _0x5ed37f['view']['createRangeIn'](_0x1f4ad6))_0x539092['is']('$textProxy')?_0x2c7c04['consume'](_0x539092['textNode'],{'name':!0x0}):_0x539092['is']('element')&&_0x2c7c04['consume'](_0x539092,{'name':!0x0});return _0xf17d52['createElement']('footnoteRef',{'footnoteId':_0x53471b});}}),_0x1f1b46['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2cb305,{writer:_0x176923})=>b(_0x2cb305,_0x176923)}),_0x1f1b46['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3b06d4,{writer:_0xdcfe1})=>{const _0x284423=_0x3b06d4['getAttribute']('footnoteCounter');return _0x4e8cd4(b(_0x3b06d4,_0xdcfe1),_0xdcfe1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x284423)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1bc206}=this,{t:t}=_0x1bc206['locale'],{conversion:_0x5b0849}=_0x1bc206;_0x5b0849['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5b0849['for']('upcast')['add'](_0x489974=>{_0x489974['on']('element:ol',(_0x847ba1,_0x160a83,_0x28081f)=>{const _0x4d7c52=_0x160a83['viewItem'];if(!_0x4d7c52['hasClass']('footnotes-list')||!_0x160a83['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x28081f['consumable']['consume'](_0x4d7c52,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3423ba,modelCursor:_0x18f819}=_0x28081f['convertChildren'](_0x160a83['viewItem'],_0x160a83['modelCursor']);_0x160a83['modelRange']=_0x3423ba,_0x160a83['modelCursor']=_0x18f819;}),_0x489974['on']('element:hr',(_0x38408e,_0x24b2cd,_0xc96df6)=>{const _0x1e7c5a=_0x24b2cd['viewItem'];_0x1e7c5a['hasClass']('footnotes-divider')&&_0x24b2cd['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xc96df6['consumable']['consume'](_0x1e7c5a,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5b0849['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3c6780,{writer:_0x555418})=>D(_0x555418)}),_0x5b0849['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e7b16,{writer:_0x1822a0})=>{const _0x1a8792=D(_0x1822a0,{'data-footnotes-list-label':t('Footnotes')}),_0x12cb5b=_0x4e8cd4(_0x1a8792,_0x1822a0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1822a0['setCustomProperty']('footnotesDefinitions',!0x0,_0x12cb5b),_0x12cb5b;}});}['_defineDefinitionConverters'](){const {editor:_0x47a7ff}=this,{conversion:_0x3124a4,locale:_0x29f592}=_0x47a7ff,_0x5edece=_0x47a7ff['config']['get']('footnotes.multiBlock');_0x3124a4['for']('upcast')['add'](_0x31726c=>{_0x31726c['on']('element:li',(_0x4516da,_0x24b576,_0x193bb3)=>{const _0x33e24a=_0x24b576['viewItem'];if(!_0x33e24a['hasClass']('footnote-definition')||!_0x33e24a['getAttribute']('id'))return;const _0x55762f=_0x33e24a['parent'];if(!_0x55762f['is']('element','ol')||!_0x55762f['hasClass']('footnotes-list'))return;if(!_0x193bb3['consumable']['test'](_0x33e24a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4b4376=_0x193bb3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x33e24a['getAttribute']('id')});if(!_0x193bb3['safeInsert'](_0x4b4376,_0x24b576['modelCursor']))return;_0x193bb3['consumable']['consume'](_0x33e24a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x77dc38=Array['from'](_0x33e24a['getChildren']())['find'](_0x44dcda=>_0x44dcda['is']('element')&&_0x44dcda['hasClass']('footnote-content'));for(const _0x2d16c0 of _0x33e24a['getChildren']())_0x2d16c0['is']('element')&&(_0x193bb3['consumable']['consume'](_0x2d16c0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x193bb3['consumable']['consume'](_0x2d16c0,{'name':!0x0,'classes':'footnote-content'}));if(_0x77dc38){if(_0x5edece)_0x193bb3['convertChildren'](_0x77dc38,_0x4b4376);else{const _0xeedd0e=_0x193bb3['writer']['createElement']('footnoteInlineContent');_0x193bb3['writer']['insert'](_0xeedd0e,_0x4b4376),_0x193bb3['convertChildren'](_0x77dc38,_0xeedd0e);}}_0x193bb3['updateConversionResult'](_0x4b4376,_0x24b576);});}),_0x3124a4['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xeb9d16,{writer:_0x5c627e})=>y(_0xeb9d16,_0x5c627e,_0x29f592,{'dataPipeline':!0x0})}),_0x3124a4['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x35e911,{writer:_0x3e7b68})=>y(_0x35e911,_0x3e7b68,_0x29f592)});}['_defineBogusParagraphConverters'](){const {editor:_0x3630c8}=this,{conversion:_0x1d2086}=_0x3630c8;_0x3630c8['config']['get']('footnotes.multiBlock')?(_0x1d2086['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1d2086['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3630c8['model']['document'],'change:data',()=>{!function(_0x3a3a16,_0x2cd957){const _0x21ef84=_0x3a3a16['document']['differ'],_0x5cf9e6=new Set();for(const _0xeb8a23 of _0x21ef84['getChanges']()){const _0x568816='attribute'==_0xeb8a23['type']?_0xeb8a23['range']['start']['parent']:_0xeb8a23['position']['parent'];_0x568816['is']('element','footnoteDefinition')&&_0x5cf9e6['add'](_0x568816);}for(const _0x3a3b08 of _0x5cf9e6['values']()){const _0x6a90d2=Array['from'](_0x3a3b08['getChildren']())['filter'](_0x5d1959=>v(_0x5d1959,_0x2cd957['mapper']));for(const _0x2f6c00 of _0x6a90d2)_0x2cd957['reconvertItem'](_0x2f6c00);}}(_0x3630c8['model'],_0x3630c8['editing']);})):(_0x1d2086['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1d2086['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3675cf,{writer:_0x5b9fd8})=>{const _0x44b0b5=_0x5b9fd8['createContainerElement']('span');return _0x5b9fd8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x44b0b5),_0x44b0b5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x448748}=this,{editing:_0x3eb3d1,t:t}=_0x448748,_0x3b1621=_0x448748['model']['document']['selection'];_0x448748['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x448748['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3eb3d1['view']['document'],'enter',(_0xaebf2,_0x204bde)=>{const _0x494510=function(_0x28c8bf){const _0x2848e3=_0x28c8bf['getSelectedElement']();if(_0x2848e3?.['is']('element','footnoteRef'))return _0x2848e3;return null;}(_0x3b1621);if(_0x494510){const _0x8a6b85=_0x494510['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x8a6b85),_0x204bde['preventDefault'](),_0xaebf2['stop']();}},{'context':_0x9a9ff2});}['_defineClickHandlers'](){const {editor:_0x4baa4f}=this,{editing:_0x342f07}=_0x4baa4f;_0x4baa4f['editing']['view']['addObserver'](_0x59f128),_0x4baa4f['editing']['view']['addObserver'](_0x1d3d8b);let _0x5d3e6a=!0x1;this['listenTo'](_0x342f07['view']['document'],'pointerdown',(_0x4f439b,_0x1e0c12)=>{const {target:_0x5a4401}=_0x1e0c12,_0x328817=_0x342f07['view']['document']['selection'];_0x5d3e6a=!!(_0x5a4401?.['is']('element','a')&&_0x5a4401['parent']?.['is']('element','sup')&&_0x5a4401['parent']['hasClass']('footnote'))&&_0x328817['getSelectedElement']()===_0x5a4401['parent'];},{'priority':'high'}),this['listenTo'](_0x342f07['view']['document'],'click',(_0x1ba9f3,_0x14714e)=>{const {target:_0x140f1d}=_0x14714e;if(!_0x140f1d?.['is']('element','a'))return;if(_0x140f1d['parent']?.['is']('element','sup')&&_0x140f1d['parent']['hasClass']('footnote')&&!_0x5d3e6a)return void _0x14714e['preventDefault']();let _0x2cac92=_0x140f1d['getAttribute']('href');if(!_0x2cac92?.['startsWith']('#'))return;_0x2cac92=_0x2cac92['slice'](0x1);let _0x936d33=!0x1;(_0x2cac92['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2cac92['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2cac92))&&(_0x936d33=!0x0),_0x936d33&&(_0x14714e['preventDefault'](),_0x1ba9f3['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x22e96c}={}){return(_0x450449,{writer:_0x2157f6})=>{if(!g(_0x450449))return null;if(!_0x22e96c)return _0x2157f6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x473ccc=_0x2157f6['createContainerElement']('p');return _0x2157f6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x473ccc),_0x473ccc;};}function g(_0x23a7f1){const {parent:_0x3e2335}=_0x23a7f1;if(!_0x3e2335?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3e2335['childCount'])return!0x1;for(const _0x12175b of _0x23a7f1['getAttributeKeys']())if(!_0x12175b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x12175b)return!0x1;return!0x0;}function v(_0x4f2f87,_0x38edbf){if(!_0x4f2f87['is']('element','paragraph'))return!0x1;const _0x2b9588=_0x38edbf['toViewElement'](_0x4f2f87);return!!_0x2b9588&&g(_0x4f2f87)!==_0x2b9588['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x50de29){return _0x9a9ff2(_0x50de29)&&_0x50de29['is']('containerElement')&&!!_0x50de29['getCustomProperty']('footnotesDefinitions');}function D(_0x52b46c,_0x16ce59={}){const _0x4d9fd8=_0x52b46c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x225eee=_0x52b46c['createContainerElement']('ol',{'class':'footnotes-list'},_0x52b46c['createSlot']());return _0x52b46c['createContainerElement']('div',{'class':'footnotes',..._0x16ce59},[_0x4d9fd8,_0x225eee]);}function b(_0x3bd8d3,_0x2e1a99){const _0x2d285e=_0x3bd8d3['getAttribute']('footnoteId'),_0x2655c7=_0x3bd8d3['getAttribute']('footnoteCounter'),_0x4c895a=_0x2e1a99['createUIElement']('a',{'href':'#'+_0x2d285e},function(_0x3d09ba){const _0x205878=this['toDomElement'](_0x3d09ba);return _0x205878['textContent']=_0x2655c7,_0x205878;}),_0x187701=_0x2e1a99['createContainerElement']('sup',{'id':'ref-'+_0x2d285e,'class':'footnote'},[_0x4c895a]);return _0x187701['getFillerOffset']=()=>null,_0x187701;}function y(_0x831e8b,_0x18f4cb,_0x487129,{dataPipeline:_0x374f6f}={}){const {t:t}=_0x487129,_0x4d6606=_0x831e8b['getAttribute']('footnoteId'),_0x20a56e=_0x18f4cb['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4d6606},function(_0x26c011){const _0xbe385c=this['toDomElement'](_0x26c011);return _0xbe385c['innerText']='^',_0xbe385c;}),_0x1f9a92=_0x374f6f?_0x18f4cb['createContainerElement']('div',{'class':'footnote-content'}):_0x1e1055(_0x18f4cb['createEditableElement']('div',{'class':'footnote-content'}),_0x18f4cb,{'label':t('Footnote\x20content.')});return _0x18f4cb['insert'](_0x18f4cb['createPositionAt'](_0x1f9a92,0x0),_0x18f4cb['createSlot']()),_0x18f4cb['createContainerElement']('li',{'class':'footnote-definition','id':_0x4d6606},[_0x20a56e,_0x1f9a92]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11d796=_0x4f40;(function(_0x36049b,_0x451a7d){const _0x4fd061=_0x4f40,_0x6053fc=_0x36049b();while(!![]){try{const _0x510118=-parseInt(_0x4fd061(0x194))/0x1*(parseInt(_0x4fd061(0x184))/0x2)+-parseInt(_0x4fd061(0x17c))/0x3*(parseInt(_0x4fd061(0x18b))/0x4)+parseInt(_0x4fd061(0x18c))/0x5+-parseInt(_0x4fd061(0x17e))/0x6+parseInt(_0x4fd061(0x188))/0x7*(-parseInt(_0x4fd061(0x182))/0x8)+-parseInt(_0x4fd061(0x17d))/0x9*(parseInt(_0x4fd061(0x17b))/0xa)+parseInt(_0x4fd061(0x191))/0xb*(parseInt(_0x4fd061(0x185))/0xc);if(_0x510118===_0x451a7d)break;else _0x6053fc['push'](_0x6053fc['shift']());}catch(_0x6df1bd){_0x6053fc['push'](_0x6053fc['shift']());}}}(_0x37bf,0x6b98c));import{Command as _0xef0de5}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x15da9b}from'../footnotespropertiesconfig.js';function _0x4f40(_0x48abbd,_0x4449df){const _0x37bf42=_0x37bf();return _0x4f40=function(_0x4f4038,_0x11d3d7){_0x4f4038=_0x4f4038-0x17b;let _0x4a7173=_0x37bf42[_0x4f4038];return _0x4a7173;},_0x4f40(_0x48abbd,_0x4449df);}import{FootnotesTracker as _0x31d606}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0xef0de5{[_0x11d796(0x18d)](){const _0x1ebbbd=_0x11d796,{editor:_0x35f566}=this,_0x5f0f3a=_0x35f566[_0x1ebbbd(0x18e)][_0x1ebbbd(0x192)](_0x31d606)[_0x1ebbbd(0x180)]();this[_0x1ebbbd(0x187)]=!!_0x5f0f3a,this[_0x1ebbbd(0x18a)]=_0x5f0f3a?.[_0x1ebbbd(0x190)](_0x1ebbbd(0x183))??null;}[_0x11d796(0x189)]({value:_0x4a7a75}){const _0x252809=_0x11d796,{editor:_0x250a79}=this,_0x314272=_0x250a79[_0x252809(0x18e)][_0x252809(0x192)](_0x31d606),_0xb1664a=_0x314272[_0x252809(0x180)]();_0xb1664a&&_0x15da9b[_0x252809(0x18f)](_0x4a7a75)&&_0x250a79[_0x252809(0x181)][_0x252809(0x17f)](_0x13810d=>{const _0x29162c=_0x252809;_0x13810d[_0x29162c(0x193)](_0x29162c(0x183),_0x4a7a75,_0xb1664a),_0x314272[_0x29162c(0x186)](_0x13810d);});}}function _0x37bf(){const _0x4913db=['2952mGZGmA','footnotesListStyle','2bJlFNB','13344108wxUcct','_updateFootnotesCounters','isEnabled','9611GPwHNn','execute','value','312020JftpCX','1642955wsyOHx','refresh','plugins','includes','getAttribute','22gbOXCP','get','setAttribute','207219PGvsES','1297470iHZfXP','15njBDqo','45vlMNDK','2155662kQpXVP','change','getFootnotesDefinitionsObjectElement','model'];_0x37bf=function(){return _0x4913db;};return _0x37bf();}
23
+ const _0x13001b=_0x52c7;(function(_0x129f74,_0x507dd5){const _0x1d79d5=_0x52c7,_0x33f460=_0x129f74();while(!![]){try{const _0x391d8d=parseInt(_0x1d79d5(0x175))/0x1*(parseInt(_0x1d79d5(0x174))/0x2)+-parseInt(_0x1d79d5(0x168))/0x3+-parseInt(_0x1d79d5(0x165))/0x4+-parseInt(_0x1d79d5(0x166))/0x5+parseInt(_0x1d79d5(0x172))/0x6+parseInt(_0x1d79d5(0x171))/0x7+parseInt(_0x1d79d5(0x16a))/0x8;if(_0x391d8d===_0x507dd5)break;else _0x33f460['push'](_0x33f460['shift']());}catch(_0x5786da){_0x33f460['push'](_0x33f460['shift']());}}}(_0x4a33,0x8d8ea));import{Command as _0x336119}from'ckeditor5/src/core.js';function _0x52c7(_0x5637fc,_0x269b19){const _0x4a33c0=_0x4a33();return _0x52c7=function(_0x52c799,_0x538944){_0x52c799=_0x52c799-0x161;let _0x126696=_0x4a33c0[_0x52c799];return _0x126696;},_0x52c7(_0x5637fc,_0x269b19);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x3881f2}from'../footnotespropertiesconfig.js';function _0x4a33(){const _0x529277=['4332312mtAfqV','model','getAttribute','getFootnotesDefinitionsObjectElement','includes','_updateFootnotesCounters','get','2502815JXWpQQ','4385832hxDhaK','footnotesListStyle','1764734vewIYK','1NojpiI','refresh','plugins','value','isEnabled','setAttribute','4636800anScsI','823915rzCTOR','execute','1825866MzXdzT','change'];_0x4a33=function(){return _0x529277;};return _0x4a33();}import{FootnotesTracker as _0x61f52f}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x336119{[_0x13001b(0x176)](){const _0x51908b=_0x13001b,{editor:_0x271595}=this,_0x2c8401=_0x271595[_0x51908b(0x161)][_0x51908b(0x170)](_0x61f52f)[_0x51908b(0x16d)]();this[_0x51908b(0x163)]=!!_0x2c8401,this[_0x51908b(0x162)]=_0x2c8401?.[_0x51908b(0x16c)](_0x51908b(0x173))??null;}[_0x13001b(0x167)]({value:_0x56b467}){const _0x238417=_0x13001b,{editor:_0x54f1ee}=this,_0x34e10a=_0x54f1ee[_0x238417(0x161)][_0x238417(0x170)](_0x61f52f),_0x4eff9d=_0x34e10a[_0x238417(0x16d)]();_0x4eff9d&&_0x3881f2[_0x238417(0x16e)](_0x56b467)&&_0x54f1ee[_0x238417(0x16b)][_0x238417(0x169)](_0x29aa3b=>{const _0x1c8c65=_0x238417;_0x29aa3b[_0x1c8c65(0x164)](_0x1c8c65(0x173),_0x56b467,_0x4eff9d),_0x34e10a[_0x1c8c65(0x16f)](_0x29aa3b);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x4ac81f,View as _0x195228,ViewCollection as _0x29b13c,FocusCycler as _0x2efbef,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x195228{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x29b13c();['focusCycler'];constructor(_0x1a15cb,{styleButtonViews:_0x339f7d,styleGridAriaLabel:_0x53494e}){super(_0x1a15cb),(this['focusCycler']=new _0x2efbef({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x339f7d,_0x53494e),[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 _0x39ae1f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x39ae1f['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x5cef8a=_0x56eb1f=>_0x56eb1f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5cef8a),this['keystrokes']['set']('arrowleft',_0x5cef8a),this['keystrokes']['set']('arrowup',_0x5cef8a),this['keystrokes']['set']('arrowdown',_0x5cef8a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xe72920,_0x711293){const _0x140f62=new _0x195228(this['locale']);return _0x140f62['children']=_0x140f62['createCollection'](),_0x140f62['children']['addMany'](_0xe72920),_0x140f62['setTemplate']({'tag':'div','attributes':{'aria-label':_0x711293,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x140f62['children']}),_0x140f62['children']['delegate']('execute')['to'](this),_0x140f62['focus']=function(){for(const _0x3cee80 of this['children'])if(_0x3cee80 instanceof _0x4ac81f&&_0x3cee80['isOn'])return void _0x3cee80['focus']();this['children']['first']['focus']();},_0x140f62['focusTracker']=new ot(),_0x140f62['keystrokes']=new rt(),_0x140f62['render'](),_0x140f62['keystrokes']['listenTo'](_0x140f62['element']),this['children']['add'](_0x140f62),_0x140f62;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2f02fe=this['_createStartIndexPropertyView'](),_0x3a34ad=[_0x2f02fe],_0x5d4010=new st(this['locale'],_0x3a34ad);return _0x5d4010['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5d4010['buttonView']['bind']('isEnabled')['toMany'](_0x3a34ad,'isEnabled',(..._0xa27039)=>_0xa27039['some'](_0x35992f=>_0x35992f)),_0x5d4010['buttonView']['on']('change:isEnabled',(_0x386ae8,_0xc14841,_0x349028)=>{_0x349028||(_0x5d4010['isCollapsed']=!0x0);}),this['children']['add'](_0x5d4010),[_0x2f02fe,_0x5d4010];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3a347a=new it(this['locale'],et);return _0x3a347a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3a347a['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3a347a['fieldView']['on']('input',()=>{const _0x2ae378=_0x3a347a['fieldView']['element'],_0x2ecc82=_0x2ae378['valueAsNumber'];Number['isNaN'](_0x2ecc82)?_0x3a347a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2ae378['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2ecc82}):_0x3a347a['errorText']=t(_0x2ecc82<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3a347a;}}
23
+ import{ButtonView as _0x3b7ab6,View as _0xb0557a,ViewCollection as _0x237fa2,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0xb0557a{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x237fa2();['focusCycler'];constructor(_0x32ebdc,{styleButtonViews:_0x5852d0,styleGridAriaLabel:_0x4b245b}){super(_0x32ebdc),(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'](_0x5852d0,_0x4b245b),[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 _0x57f928 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x57f928['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 _0x51fb3e=_0x59e25f=>_0x59e25f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x51fb3e),this['keystrokes']['set']('arrowleft',_0x51fb3e),this['keystrokes']['set']('arrowup',_0x51fb3e),this['keystrokes']['set']('arrowdown',_0x51fb3e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x32d2aa,_0x5e1434){const _0x69950d=new _0xb0557a(this['locale']);return _0x69950d['children']=_0x69950d['createCollection'](),_0x69950d['children']['addMany'](_0x32d2aa),_0x69950d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5e1434,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x69950d['children']}),_0x69950d['children']['delegate']('execute')['to'](this),_0x69950d['focus']=function(){for(const _0x31641a of this['children'])if(_0x31641a instanceof _0x3b7ab6&&_0x31641a['isOn'])return void _0x31641a['focus']();this['children']['first']['focus']();},_0x69950d['focusTracker']=new rt(),_0x69950d['keystrokes']=new nt(),_0x69950d['render'](),_0x69950d['keystrokes']['listenTo'](_0x69950d['element']),this['children']['add'](_0x69950d),_0x69950d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x31cd65=this['_createStartIndexPropertyView'](),_0x365c21=[_0x31cd65],_0x3f63cb=new it(this['locale'],_0x365c21);return _0x3f63cb['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3f63cb['buttonView']['bind']('isEnabled')['toMany'](_0x365c21,'isEnabled',(..._0x249367)=>_0x249367['some'](_0x110365=>_0x110365)),_0x3f63cb['buttonView']['on']('change:isEnabled',(_0x1ba7b4,_0x27db50,_0x72c134)=>{_0x72c134||(_0x3f63cb['isCollapsed']=!0x0);}),this['children']['add'](_0x3f63cb),[_0x31cd65,_0x3f63cb];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x252508=new et(this['locale'],ot);return _0x252508['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x252508['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x252508['fieldView']['on']('input',()=>{const _0x178226=_0x252508['fieldView']['element'],_0x34c288=_0x178226['valueAsNumber'];Number['isNaN'](_0x34c288)?_0x252508['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x178226['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x34c288}):_0x252508['errorText']=t(_0x34c288<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x252508;}}