@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251209.0 → 0.0.0-nightly-20251210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=451]})(t,e)}function c(){const t=["getChanges","nodeAfter","2362265IIPIcT","8607762RKZPxJ","_trackedElements","getItems","length","reset","slice","insert","797406jKpnGW","_getElementKey","name","rootName","element","root","remove","elementName","1874416VoEUFW","34WUWJtH","from","attributes","getElementKey","add","clear","type","3237018uLHiUq","values","position","$text","delete","createRangeOn","_elementName","push","5165811pXIpfG","flat","_model","$graveyard","has","set","26603spTfyJ","12zPWGYG","get"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(428062===-parseInt(e(492))/1*(parseInt(e(471))/2)+-parseInt(e(462))/3*(-parseInt(e(493))/4)+-parseInt(e(454))/5+parseInt(e(478))/6+parseInt(e(486))/7+parseInt(e(470))/8+-parseInt(e(455))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(488)];[r(484)];[r(463)];[r(456)]=new Map;constructor(t,e){const o=r;this[o(488)]=t,this[o(484)]=e[o(469)],this[o(463)]=e[o(474)]}[r(459)](){const t=r;this[t(456)][t(476)]()}[r(452)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(461)===i[e(477)]&&e(481)!==i[e(464)]&&i[e(480)][e(453)]){const t=this[e(488)][e(483)](i[e(480)][e(453)]);for(const o of t[e(457)]()){if(!o.is(e(466),this[e(484)]))continue;const t=this[e(463)](o);n[e(490)](t)||n[e(491)](t,[]),n[e(451)](t)[e(485)](o)}}if(e(468)===i[e(477)]&&i[e(464)]===this[e(484)]){const t=this[e(463)]({getAttribute:t=>i[e(473)][e(451)](t)});o[e(475)](t)}}for(const[t,n]of this[e(456)])e(489)===n[e(467)][e(465)]&&o[e(475)](t);for(const t of o)this[e(456)][e(482)](t);for(const[t,o]of n)this[e(456)][e(491)](t,o[o[e(458)]-1]);const i=new Set;for(const[t,s]of n)o[e(490)](t)&&(i[e(475)](s[0]),s[e(458)]>1?n[e(491)](t,s[e(460)](1)):n[e(482)](t),o[e(482)](t));return{removed:Array[e(472)](o),inserted:Array[e(472)](n[e(479)]())[e(487)](),moved:Array[e(472)](i)}}}const u=h;function f(){const t=["_handleFootnotesDefinitionsObjectChanges","move","model","setFootnoteFormatter","find","_footnoteDefsContainerTracker","footnotes.multiBlock","getRootNames","_footnoteFormatter","some","94568opLusA","change:data","createPositionBefore","reset","62770wqXYDu","has","_footnoteDefsTracker","2785902vuENhY","high","49464USikYH","findIndex","isPremiumPlugin","_updateFootnoteRefCounter","$graveyard","root","from","compareWith","_footnotesDefinitions","listenTo","_footnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","_ensureFootnotesReferencesHaveProperOrder","_handleInsertedFootnoteReference","6958470rksSZH","getFootnote","singleton","min","createRangeOn","splice","insert","footnoteInlineContent","push","_ensureFootnotesDefinitionsContainerExists","setAttribute","set","length","parent","3202284BmPHRt","FootnotesTracker","end","reference","_handleRemoveFootnoteReferenceById","enqueueChange","getFootnotes","footnoteRef","createRangeIn","getChanges","indexOf","getFootnotesFormatter","footnoteDefinition","add","_handleFootnotesDefinitionsObjectSync","append","195MioaFB","config","before","_updateFootnotesCounters","get","unshift","getChildren","getAttribute","_handleMovedFootnoteReference","_footnoteRefsTracker","differ","init","remove","createElement","1926aEEaXj","footnoteId","map","paragraph","editor","54BwOvVo","definition","19825720GiNBvW","createPositionAt","after","_handleFootnoteDefinitionsChanges","pluginName","registerPostFixer","footnotesDefinitions","rootName","document","getFootnotesDefinitionsObjectElement","childCount","isEqual","footnoteCounter","isOfficialPlugin","_insertEmptyFootnotesDefinitionsContainer","low"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(941859===parseInt(e(403))/1*(parseInt(e(472))/2)+parseInt(e(437))/3+-parseInt(e(399))/4*(parseInt(e(453))/5)+-parseInt(e(423))/6+-parseInt(e(406))/7+parseInt(e(408))/8*(-parseInt(e(467))/9)+parseInt(e(474))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(418)]=[];[u(416)]=null;[u(397)]=null;[u(394)];[u(462)];[u(405)];static get[u(478)](){return u(438)}static get[u(487)](){return!0}static get[u(410)](){return!0}constructor(t){const e=u;super(t),this[e(394)]=new l(this[e(471)][e(492)],{elementName:e(480),getElementKey:()=>e(425)}),this[e(462)]=new l(this[e(471)][e(492)],{elementName:e(444),getElementKey:t=>t[e(460)](e(468))}),this[e(405)]=new l(this[e(471)][e(492)],{elementName:e(449),getElementKey:t=>t[e(460)](e(468))})}[u(464)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(482)][t(479)](e=>{const n=t,i=o[n(482)][n(463)][n(446)]();let s=!1;return this[n(490)](e,i)&&(s=!0),this[n(477)](e,i)&&(s=!0),this[n(419)](e,i)&&(s=!0),this[n(421)](e)&&(s=!0),this[n(451)](e)&&(s=!0),this[n(420)](e)&&(s=!0),s}),this[t(417)](o[t(482)],t(400),()=>{const e=t;o[e(442)]({isUndoable:!1},t=>{this[e(432)](t)})},{priority:t(489)}),this[t(417)](n,t(434),()=>{const e=t;this[e(418)]=[],this[e(394)][e(402)](),this[e(462)][e(402)](),this[e(405)][e(402)]()},{priority:t(407)})}[u(483)](){return this[u(416)]}[u(424)](t){const e=u;return this[e(418)][e(494)](e=>e.id===t)||null}[u(443)](){const t=u;return Array[t(414)](this[t(418)])}[u(448)](){return this[u(397)]}[u(493)](t){this[u(397)]=t}[u(456)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(418)][o(435)];i++)this[o(411)](t,i)&&(n=!0);return n}[u(488)](t,e){const o=u,n=t[o(466)](o(480),{});return t[o(452)](n,e),this[o(416)]=n,n}[u(432)](t){const e=u;if(!this[e(418)][e(435)]||this[e(416)])return;const o=this[e(418)][0][e(440)][e(413)],n=this[e(488)](t,o);for(const o of this[e(418)])o[e(473)][e(436)]||t[e(429)](o[e(473)],n,e(439));this[e(456)](t)}[u(490)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(394)][o(446)](e);if(r[o(435)]&&(this[o(416)]=r[0]),i[o(435)])if(i[o(435)]>1||this[o(416)]&&i[o(398)](t=>t!==this[o(416)])){const e=t[o(466)](o(480),{}),s=[];this[o(416)]&&s[o(431)](this[o(416)]),s[o(431)](...i),t[o(429)](e,s[0],o(455));for(const n of s)t[o(491)](t[o(445)](n),t[o(475)](e,o(439))),t[o(465)](n);this[o(416)]=e,this[o(456)](t),n=!0}else this[o(416)]=i[0];if(s[o(435)]&&o(412)===this[o(416)]?.[o(413)][o(481)]){for(const e of this[o(418)])t[o(465)](e[o(440)]),n=!0;this[o(418)]=[],this[o(416)]=null}return n}[u(477)](t,e){const o=u;let n=!1;const i=this[o(471)][o(454)][o(457)](o(395)),{inserted:s,moved:r}=this[o(405)][o(446)](e);for(const e of[...r,...s]){const s=e[o(460)](o(468)),r=this[o(424)](s);r&&(r[o(473)]=e),p(t,i,e)&&(n=!0)}return n}[u(419)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(462)][o(446)](e);for(const e of i)this[o(441)](t,e)&&(n=!0);for(const e of s)this[o(422)](t,e)&&(n=!0);for(const e of r)this[o(461)](t,e)&&(n=!0);return n}[u(451)](t){const e=u;if(!this[e(416)])return!1;let o=!1;if(this[e(416)][e(484)]!==this[e(418)][e(435)]){const n=[];for(const t of this[e(416)][e(459)]()){const i=t[e(460)](e(468));this[e(424)](i)||(n[e(458)](t),o=!0)}for(const o of n)t[e(465)](o)}const n=new Set,i=[];for(const t of this[e(416)][e(459)]()){const s=t[e(460)](e(468));n[e(404)](s)?(i[e(458)](t),o=!0):n[e(450)](s)}for(const o of i)t[e(465)](o);return this[e(416)][e(484)]||(t[e(465)](this[e(416)]),this[e(416)]=null,o=!0),o}[u(422)](t,e){const o=u;if(this[o(418)][o(494)](t=>t[o(440)]===e))return!1;let n=!1;const i=e[o(460)](o(468)),s=this[o(418)][o(409)](t=>t.id===i);-1!==s&&(t[o(465)](this[o(418)][s][o(440)]),this[o(418)][o(428)](s,1),n=!0);let r=this[o(416)]?function(t,e){const n=o;for(const o of t[n(459)]())if(o[n(460)](n(468))===e)return o;return null}(this[o(416)],i):null;r||(r=t[o(466)](o(449),{footnoteId:i}),this[o(416)]&&(t[o(429)](r,this[o(416)],o(439)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(471)][o(492)],this[o(418)],e);this[o(418)][o(428)](c,0,a);let l=c;return-1!==s&&(l=Math[o(426)](c,s)),this[o(456)](t,l)&&(n=!0),n}[u(441)](t,e){const o=u,n=this[o(418)][o(409)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(418)][n];return o(412)!==s[o(473)][o(413)][o(481)]&&(t[o(465)](s[o(473)]),i=!0),this[o(418)][o(428)](n,1),this[o(456)](t,n)&&(i=!0),i}[u(461)](t,e){const o=u,n=e[o(460)](o(468)),i=this[o(418)][o(409)](t=>t.id===n),s=this[o(418)][i];let r=!1;s[o(440)]=e,this[o(418)][o(428)](i,1);const a=m(this[o(471)][o(492)],this[o(418)],e);return this[o(418)][o(428)](a,0,s),this[o(456)](t,Math[o(426)](i,a))&&(r=!0),r}[u(411)](t,e){const o=u;if(!this[o(416)])return!1;const n=this[o(418)][e];let i;return i=this[o(397)]?this[o(397)]({footnote:n,container:this[o(416)],digits:String(this[o(418)][o(435)])[o(435)],value:e+1}):String(e+1),n[o(440)][o(460)](o(486))!=i&&(t[o(433)](o(486),i,n[o(440)]),!0)}[u(420)](t){const e=u;if(!this[e(416)]||this[e(418)][e(435)]<2)return!1;if(function(t,o){const n=e;if(t[n(435)]!==o[n(435)])return!1;for(let e=0;e<t[n(435)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(418)][e(469)](t=>t.id),Array[e(414)](this[e(416)][e(459)]())[e(469)](t=>t[e(460)](e(468)))))return!1;let o=!1;for(let n=0;n<this[e(418)][e(435)];n++){const i=this[e(418)][n],s=t[e(401)](i[e(473)]),r=t[e(475)](this[e(416)],n);s[e(485)](r)||(t[e(491)](t[e(427)](i[e(473)]),r),o=!0)}return o}[u(421)](t){const e=u;if(!this[e(418)][e(435)])return!1;const{model:o}=this[e(471)];let n=!1;for(let i=0;i<this[e(418)][e(435)]-1;i++){const s=this[e(418)][i],r=this[e(418)][i+1],a=o[e(401)](s[e(440)]),c=o[e(401)](r[e(440)]);e(476)===a[e(415)](c)&&(this[e(461)](t,s[e(440)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(484)])return!1;const i=n(e?470:430);return t[n(429)](t[n(466)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=394]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(435)])return 0;const i=t[n(401)](o);for(let o=0;o<e[n(435)];o++){const s=e[o],r=t[n(401)](s[n(440)]);if(n(455)===i[n(415)](r))return o}const s=o[n(413)];let r=-1;for(let t=e[n(435)]-1;t>=0;t--)if(e[t][n(440)][n(413)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(482)][n(396)](),c=a[n(447)](s[n(481)]),l=a[c+1];if(l)for(let t=0;t<e[n(435)];t++)if(e[t][n(440)][n(413)][n(481)]===l)return t;return e[n(435)]}const g=y;function w(){const t=["6tgrkvo","20gXWLDN","isEnabled","length","plugins","isBlock","footnoteId","insertObject","insert-footnote-command-executed-with-invalid-id","test","execute","1364830ReGFHA","get","2677905tasaPJ","selection","_getPositionToInsertFootnote","string","editor","getItems","getFirstRange","2718749xxRQRD","checkChild","document","3TIJbsZ","674222homXcj","_moveSelectionToFootnoteDefinition","188321qFJpSU","end","1832348OUYNJu","footnoteRef","isObject","refresh","createElement","change","8DxeORZ","FootnotesEditing","model","3313444sjiQdU"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=177]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(422438===parseInt(e(194))/1+-parseInt(e(192))/2+-parseInt(e(191))/3*(-parseInt(e(205))/4)+parseInt(e(179))/5*(parseInt(e(206))/6)+parseInt(e(196))/7+-parseInt(e(202))/8*(parseInt(e(181))/9)+-parseInt(e(207))/10*(parseInt(e(188))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(199)](){const t=g,e=this[t(185)][t(204)][t(190)][t(182)],o=this[t(183)](e);this[t(208)]=!!o}[g(178)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(190)],r=this[e(183)](s);if(!r)return;const a=o[e(210)][e(180)](e(203)),c=t?.[e(212)]??(0,i.uid)();!function(t){const o=e;return o(184)==typeof t&&t[o(209)]>0&&!/\s/[o(177)](t)&&!/^\d/[o(177)](t)}(c)?(0,i.logWarning)(e(214)):(n[e(201)](t=>{const o=e,i=t[o(200)](o(197),{footnoteId:c});n[o(213)](i,r,null)}),a[e(193)](c))}[g(183)](t){const e=g,{model:o}=this[e(185)],{schema:n}=o,i=t[e(187)]();for(const t of i[e(186)]())if(n[e(211)](t)||n[e(198)](t))return null;const s=i[e(195)];return n[e(189)](s,e(197))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765238400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const S=A;function D(){const t=["push","method","_defineClipboardIntegration","270313XOjavk","footnoteInlineContent","getFootnotes","createRangeIn","563087TFzuUc","759835liIDHl","htmlProcessor","footnotesDefinitions","content","_insertEmptyFootnotesDefinitionsContainer","32PaRPdL","_handleCopyFootnotesDefinitions","element","document","drop","listenTo","_handlePasteFootnotesDefinitions","reduce","setData","insert","stringify","parse","application/ckeditor5-footnotes","end","getFirstRange","562743tZJlXZ","includes","toView","footnoteId","get","setAttribute","change","length","FootnotesClipboard","root","remove","isOfficialPlugin","getFootnotesDefinitionsObjectElement","append","isPremiumPlugin","toModel","4wIxAlM","dataTransfer","55KRmSEx","sourceEditorId","getSelectedBlocks","createElement","outputTransformation","config","305367sFGnZU","getAttribute","entries","editor","footnotes.multiBlock","toData","find","selection","pluginName","680718iJCxfl","clipboardInput","contentInsertion","getRanges","from","create","footnoteDefinition","getFootnote","4PdZAma","add","1291420VTdVyz","editing","data","getData","flatMap","footnoteRef","requires","definition","init"];return(D=function(){return t})()}function A(t,e){const o=D();return(A=function(t,e){return o[t-=458]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(165636===-parseInt(e(527))/1+-parseInt(e(488))/2*(parseInt(e(496))/3)+-parseInt(e(513))/4*(parseInt(e(532))/5)+-parseInt(e(505))/6+-parseInt(e(531))/7*(-parseInt(e(537))/8)+-parseInt(e(472))/9+parseInt(e(515))/10*(parseInt(e(490))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[S(504)](){return S(480)}static get[S(521)](){return[v,P.ClipboardPipeline]}static get[S(483)](){return!0}static get[S(486)](){return!0}[S(523)](){this[S(526)]()}[S(526)](){const t=S;this[t(458)](),this[t(463)]()}[S(458)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(476)](P.ClipboardPipeline),s=o[t(476)](d);this[t(462)](i,t(494),(o,i)=>{const r=t,a=L(n[r(530)](i[r(535)]));if(!a[r(479)])return;const c=s[r(529)](),l=a[r(464)]((t,o)=>{const n=r,i=c[n(502)](t=>t.id===o);if(i){const o=e[n(517)][n(474)](i[n(522)],{isClipboardPipeline:!0}),s=e[n(517)][n(533)][n(501)](o);t[i.id]=s}return t},Object[r(510)](null));i[r(489)][r(465)](r(469),JSON[r(467)](l))})}[S(463)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(516)],r=n[t(476)](P.ClipboardPipeline),a=n[t(476)](d),c=e[t(495)][t(476)](t(500));let l=null;this[t(462)](s[t(460)],t(506),(e,o)=>{const n=t,i=o[n(489)][n(518)](n(469));l=i?JSON[n(468)](i):null}),this[t(462)](r,t(507),(n,s)=>{const r=t,u=s[r(491)]===this[r(499)].id;u&&r(461)===s[r(525)]||o[r(478)](t=>{const n=r;let f=a[n(484)]();const d=!!f&&Array[n(509)](o[n(460)][n(503)][n(492)]())[n(473)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(530)](e))n.is(o(459),o(534))&&i[o(524)](n);for(const e of i)t[o(482)](e)}(t,s[n(535)]),!l)return;const{selection:p}=o[n(460)],h=p[n(471)]()[n(481)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(530)](e))if(n.is(o(459),o(534)))return n;return null}(t,s[n(535)]),f||=a[n(536)](t,h));const m=Array[n(509)](p[n(508)]())[n(519)](L),g=function(t,e,o){const s=n,r=Object[s(510)](null);for(const{item:n}of t[s(530)](e))if(n.is(s(459),s(520))){const e=n[s(497)](s(475));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(477)](s(475),r[e],n)}return r}(t,s[n(535)],t=>{const e=n;return!u||!!a[e(512)](t)&&!m[e(473)](t)});for(const[o,i]of Object[n(498)](l)){const s=g[o]||o,r=t[n(493)](n(511),{footnoteId:s}),a=e[n(517)][n(533)][n(474)](i);let l;if(c)l=e[n(517)][n(487)](a,r);else{l=t[n(493)](n(528));const o=e[n(517)][n(487)](a,l);t[n(466)](o,l)}t[n(485)](l,r),t[n(466)](r,f,n(470))}l=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(459),e(520))&&o[e(514)](n[e(497)](e(475)));return Array[e(509)](o)}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),U=o.n(M),B=o(123),W=o.n(B),z=o(741),q=o.n(z),H=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=W(),J.insert=U().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();O()(H.A,J);H.A&&H.A.locals&&H.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,R.ButtonView)),e.add("menuBar:insertFootnote",G(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Y(){var t=["6492462sKCHBv","isOfficialPlugin","499640cDdHNn","5714305dCprXR","2537012MTymZw","isPremiumPlugin","13799394ZzfIzh","3079983AMoMaW","1143136swBaGq","pluginName","Footnotes","requires"];return(Y=function(){return t})()}var Z=Q;function Q(t,e){var o=Y();return(Q=function(t,e){return o[t-=349]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(746402===-parseInt(e(360))/1+parseInt(e(354))/2+-parseInt(e(359))/3+parseInt(e(356))/4+parseInt(e(355))/5+-parseInt(e(352))/6+parseInt(e(358))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[Z(349)](){return Z(350)}static get[Z(351)](){return[v,_,X]}static get[Z(353)](){return!0}static get[Z(357)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=132]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(832630===-parseInt(e(146))/1+parseInt(e(137))/2+-parseInt(e(141))/3+-parseInt(e(140))/4*(parseInt(e(145))/5)+-parseInt(e(133))/6*(parseInt(e(135))/7)+-parseInt(e(132))/8+parseInt(e(143))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(147),tt(134),tt(139),tt(136),tt(148),tt(138),tt(144),tt(142)];function nt(){const t=["upper-roman","23712525TtvfDW","lower-roman","70DrupUU","120529RqkEsO","decimal","lower-alpha","12093296ozgbKQ","6BmJTel","decimal-leading-zero","58989pSOgRJ","upper-latin","2936850LhUfNF","upper-alpha","lower-latin","227312yNKgBn","2502930mnwvxs"];return(nt=function(){return t})()}const it=rt;function st(){const t=["3978591tzqBGD","6lQneQO","56oxBlUC","isEnabled","includes","835394MCUuEX","getAttribute","44thnzwv","get","3902530nUUtrU","_updateFootnotesCounters","footnotesListStyle","getFootnotesDefinitionsObjectElement","change","execute","650964ncLYSq","plugins","6314024rTjOAY","9DXTzYv","144190QLMGfT","refresh","value","setAttribute","model","275naxooP","24446qUWFQj"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(855634===parseInt(e(118))/1*(parseInt(e(121))/2)+parseInt(e(119))/3+parseInt(e(126))/4*(-parseInt(e(138))/5)+-parseInt(e(120))/6*(-parseInt(e(124))/7)+-parseInt(e(136))/8*(-parseInt(e(137))/9)+-parseInt(e(128))/10+-parseInt(e(117))/11*(parseInt(e(134))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(139)](){const t=it,{editor:e}=this,o=e[t(135)][t(127)](d)[t(131)]();this[t(122)]=!!o,this[t(140)]=o?.[t(125)](t(130))??null}[it(133)]({value:t}){const e=it,{editor:o}=this,n=o[e(135)][e(127)](d),i=n[e(131)]();i&&ot[e(123)](t)&&o[e(116)][e(132)](o=>{const s=e;o[s(141)](s(130),t,i),n[s(129)](o)})}}function ct(){const t=["1173690psrdaa","getAttribute","3859788cJrRWz","21773510najZxm","get","isInteger","refresh","1293zYkjtu","3303GVayOa","setAttribute","change","432qKLqzm","62tPZIap","1771ZszHlt","model","_updateFootnotesCounters","footnotesListStart","11124DWWfnr","value","execute","214wsKPXP","getFootnotesDefinitionsObjectElement","isEnabled","plugins","23960TKNAav"];return(ct=function(){return t})()}function lt(t,e){const o=ct();return(lt=function(t,e){return o[t-=358]})(t,e)}const ut=lt;!function(t){const e=lt,o=t();for(;;)try{if(799799===-parseInt(e(374))/1*(-parseInt(e(382))/2)+parseInt(e(369))/3*(-parseInt(e(379))/4)+parseInt(e(362))/5+parseInt(e(364))/6+-parseInt(e(375))/7*(-parseInt(e(373))/8)+-parseInt(e(370))/9*(parseInt(e(361))/10)+parseInt(e(365))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[ut(368)](){const t=ut,{editor:e}=this,o=e[t(360)][t(366)](d)[t(358)]();this[t(359)]=!!o,this[t(380)]=o?.[t(363)](t(378))??null}[ut(381)]({value:t}){const e=ut,{editor:o}=this,n=o[e(360)][e(366)](d),i=n[e(358)]();i&&Number[e(367)](t)&&o[e(376)][e(372)](o=>{const s=e;o[s(371)](s(378),t,i),n[s(377)](o)})}}const dt=ht;function pt(){const t=["_formatFootnoteListValue","footnotesDefinitions","floor","_defineFormatter","footnotesListStart","get","977814xRFRdg","nodeAfter","_defineSchema","upper-roman","from","isOfficialPlugin","insert","toLowerCase","list-style-type","fromCharCode","footnotes-list","decimal-leading-zero","mapper","FootnotesPropertiesEditing","attribute:footnotesListStyle:footnotesDefinitions","differ","_defineConverters","setAttribute","6DnmpgX","1508360LyuKhC","footnotesListStyle","_getDefaultStartIndex","item","toUpperCase","type","add","getStyle","setStyle","define","position","getItems","_definePostfixer","_updateFootnotesCounters","pluginName","parseInt","$text","find","requires","writer","padStart","upper-alpha","footnotes.footnotesProperties.defaultListStyle","hasClass","document","parent","plugins","1083296yMHviP","footnotesStyle","consume","upper-latin","isNaN","isPremiumPlugin","lower-alpha","consumable","editor","schema","config","createRangeOn","lower-latin","25tXMbPy","669822pUqYCT","206084NbJxss","getAttribute","footnotesStart","_getDefaultListStyle","viewItem","14849NYjhYM","1895993rfDjLB","checkAttribute","getChildren","upcast","removeAttribute","element","2TpJnJY","max","init","hasAttribute","footnotes.footnotesProperties.defaultStartIndex","extend","setFootnoteFormatter","name","element:ol","registerPostFixer","commands","start","toViewElement","lower-roman","modelCursor","model","downcast","getChanges","for","attribute:footnotesListStart:footnotesDefinitions","decimal","removeStyle","10FUmXFS"];return(pt=function(){return t})()}function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=281]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(136173===-parseInt(e(344))/1+parseInt(e(351))/2*(-parseInt(e(338))/3)+-parseInt(e(339))/4*(parseInt(e(337))/5)+-parseInt(e(296))/6*(-parseInt(e(297))/7)+parseInt(e(324))/8+parseInt(e(380))/9*(parseInt(e(373))/10)+parseInt(e(345))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(311)](){return dt(291)}static get[dt(315)](){return[v,d]}static get[dt(283)](){return!0}static get[dt(329)](){return!0}[dt(353)](){const t=dt,{editor:e}=this;e[t(334)][t(306)](t(319),t(371)),e[t(334)][t(306)](t(355),1),e[t(361)][t(303)](t(325),new at(e)),e[t(361)][t(303)](t(341),new ft(e)),this[t(382)](),this[t(294)](),this[t(377)](),this[t(309)]()}[dt(382)](){const t=dt,{editor:e}=this,{schema:o}=e[t(366)];o[t(356)](t(375),{allowAttributes:[t(298),t(378)]})}[dt(294)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(369)](t(348))[t(303)](e=>{const o=t;e.on(o(359),(t,e,n)=>{const s=o,r=e[s(343)],a=e[s(365)]?.[s(322)];r[s(320)](s(288))&&a?.is(s(350),s(375))&&(function(t,e,o,n){const i=s;if(!n[i(346)](e,i(378)))return;let r=1;const a=o[i(331)][i(326)](t,{attributes:i(362)});if(a){const e=Number[i(312)](t[i(340)](i(362)),10);Number[i(328)](e)||(r=e)}!a&&e[i(354)](i(378))||o[i(316)][i(295)](i(378),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(346)](e,i(298)))return;let r=i(371),a=!1;if(o[i(331)][i(326)](t,{attributes:i(302)})){const e={1:i(371),a:i(330),A:i(318),i:i(364),I:i(281)}[t[i(340)](i(302))];e&&(r=e),a=!0}o[i(331)][i(326)](t,{styles:i(286)})&&(r=function(t){const e=i;switch(t){case e(330):return e(336);case e(318):return e(327);default:return t}}(t[i(304)](i(286))),a=!0),!a&&e[i(354)](i(298))||o[i(316)][i(295)](i(298),r,e)}(r,a,n,i))})}),o[t(369)](t(367))[t(303)](e=>{const o=t;e.on(o(370),(t,e,n)=>{const i=o;if(!n[i(331)][i(326)](e[i(300)],t[i(358)]))return;const s=gt(e[i(300)],n[i(290)]),{attributeNewValue:r}=e;null==r||1===r?n[i(316)][i(349)](i(362),s):n[i(316)][i(295)](i(362),String(r),s)}),e.on(o(292),(t,e,n)=>{const i=o;if(!n[i(331)][i(326)](e[i(300)],t[i(358)]))return;const s=gt(e[i(300)],n[i(290)]),{attributeNewValue:r}=e;r&&i(371)!==r?n[i(316)][i(305)](i(286),r,s):n[i(316)][i(372)](i(286),s)})})}[dt(309)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(323)][t(379)](d),i=this[t(342)](),s=this[t(299)]();o[t(321)][t(360)](e=>{const r=t,a=o[r(321)][r(293)][r(368)]();let c=!1;for(const t of a){if(r(284)!==t[r(302)]||r(313)===t[r(358)])continue;const n=o[r(335)](t[r(307)][r(381)]);for(const t of n[r(308)]())t.is(r(350),r(375))&&(!t[r(354)](r(378))&&o[r(333)][r(346)](t,r(378))&&(e[r(295)](r(378),s,t),c=!0),!t[r(354)](r(298))&&o[r(333)][r(346)](t,r(298))&&(e[r(295)](r(298),i,t),c=!0))}return c&&n[r(310)](e),c})}[dt(377)](){const t=dt,{editor:e}=this;e[t(323)][t(379)](d)[t(357)](e=>this[t(374)](e))}[dt(342)](){const t=dt;return this[t(332)][t(334)][t(379)](t(319))}[dt(299)](){const t=dt;return this[t(332)][t(334)][t(379)](t(355))}[dt(374)]({container:t,value:e,digits:o}){const n=dt,i=t[n(340)](n(298)),s=t[n(340)](n(378)),r=Math[n(376)](e)+(s??1)-1;switch(i){case n(289):return function(t,e){const o=n;return String(t)[o(317)](e,"0")}(r,Math[n(352)](2,o));case n(330):case n(336):return wt(r,!1);case n(318):case n(327):return wt(r,!0);case n(364):return bt(r,!1);case n(281):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(363)](t);return Array[o(282)](n[o(347)]())[o(314)](t=>t.is(o(350),"ol")&&t[o(320)](o(288)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(287)](97+t)+n,i=Math[o(376)]((i-1)/26)}return e?n[o(301)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(285)]()}class vt extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=U().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=q();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=351]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(365046===-parseInt(e(352))/1*(-parseInt(e(355))/2)+-parseInt(e(358))/3*(-parseInt(e(353))/4)+parseInt(e(367))/5+-parseInt(e(356))/6*(parseInt(e(359))/7)+parseInt(e(364))/8*(-parseInt(e(351))/9)+parseInt(e(360))/10*(parseInt(e(354))/11)+-parseInt(e(361))/12*(parseInt(e(363))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(362)](){return Ft(365)}static get[Ft(368)](){return[mt,Ct]}static get[Ft(357)](){return!0}static get[Ft(366)](){return!0}}function Tt(){var t=["804282Leecun","isOfficialPlugin","3vlqqVM","7rYlytn","2980060ErQTMD","12cstLaK","pluginName","7152197TaOvXD","2265096XayFRQ","FootnotesProperties","isPremiumPlugin","1132155rJEOLh","requires","9UuqJuY","112cjAbtn","519208JZXDNG","11UJmZVe","12110AkImJR"];return(Tt=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=119]})(t,e)}function St(){var t=["876492CISUiS","3877492AyLTIl","2324264nJacGr","32515aiqNYR","3373pXIeuY","1878meWbFb","6915360kMQnNL","478QWEsmK","3972485sTZsGV","9Riursl"];return(St=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(801371===-parseInt(e(124))/1*(-parseInt(e(127))/2)+parseInt(e(120))/3+parseInt(e(121))/4+-parseInt(e(128))/5+parseInt(e(125))/6*(-parseInt(e(123))/7)+parseInt(e(122))/8*(parseInt(e(119))/9)+parseInt(e(126))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=451]})(t,e)}function c(){const t=["getChanges","nodeAfter","2362265IIPIcT","8607762RKZPxJ","_trackedElements","getItems","length","reset","slice","insert","797406jKpnGW","_getElementKey","name","rootName","element","root","remove","elementName","1874416VoEUFW","34WUWJtH","from","attributes","getElementKey","add","clear","type","3237018uLHiUq","values","position","$text","delete","createRangeOn","_elementName","push","5165811pXIpfG","flat","_model","$graveyard","has","set","26603spTfyJ","12zPWGYG","get"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(428062===-parseInt(e(492))/1*(parseInt(e(471))/2)+-parseInt(e(462))/3*(-parseInt(e(493))/4)+-parseInt(e(454))/5+parseInt(e(478))/6+parseInt(e(486))/7+parseInt(e(470))/8+-parseInt(e(455))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(488)];[r(484)];[r(463)];[r(456)]=new Map;constructor(t,e){const o=r;this[o(488)]=t,this[o(484)]=e[o(469)],this[o(463)]=e[o(474)]}[r(459)](){const t=r;this[t(456)][t(476)]()}[r(452)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(461)===i[e(477)]&&e(481)!==i[e(464)]&&i[e(480)][e(453)]){const t=this[e(488)][e(483)](i[e(480)][e(453)]);for(const o of t[e(457)]()){if(!o.is(e(466),this[e(484)]))continue;const t=this[e(463)](o);n[e(490)](t)||n[e(491)](t,[]),n[e(451)](t)[e(485)](o)}}if(e(468)===i[e(477)]&&i[e(464)]===this[e(484)]){const t=this[e(463)]({getAttribute:t=>i[e(473)][e(451)](t)});o[e(475)](t)}}for(const[t,n]of this[e(456)])e(489)===n[e(467)][e(465)]&&o[e(475)](t);for(const t of o)this[e(456)][e(482)](t);for(const[t,o]of n)this[e(456)][e(491)](t,o[o[e(458)]-1]);const i=new Set;for(const[t,s]of n)o[e(490)](t)&&(i[e(475)](s[0]),s[e(458)]>1?n[e(491)](t,s[e(460)](1)):n[e(482)](t),o[e(482)](t));return{removed:Array[e(472)](o),inserted:Array[e(472)](n[e(479)]())[e(487)](),moved:Array[e(472)](i)}}}const u=h;function f(){const t=["_handleFootnotesDefinitionsObjectChanges","move","model","setFootnoteFormatter","find","_footnoteDefsContainerTracker","footnotes.multiBlock","getRootNames","_footnoteFormatter","some","94568opLusA","change:data","createPositionBefore","reset","62770wqXYDu","has","_footnoteDefsTracker","2785902vuENhY","high","49464USikYH","findIndex","isPremiumPlugin","_updateFootnoteRefCounter","$graveyard","root","from","compareWith","_footnotesDefinitions","listenTo","_footnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","_ensureFootnotesReferencesHaveProperOrder","_handleInsertedFootnoteReference","6958470rksSZH","getFootnote","singleton","min","createRangeOn","splice","insert","footnoteInlineContent","push","_ensureFootnotesDefinitionsContainerExists","setAttribute","set","length","parent","3202284BmPHRt","FootnotesTracker","end","reference","_handleRemoveFootnoteReferenceById","enqueueChange","getFootnotes","footnoteRef","createRangeIn","getChanges","indexOf","getFootnotesFormatter","footnoteDefinition","add","_handleFootnotesDefinitionsObjectSync","append","195MioaFB","config","before","_updateFootnotesCounters","get","unshift","getChildren","getAttribute","_handleMovedFootnoteReference","_footnoteRefsTracker","differ","init","remove","createElement","1926aEEaXj","footnoteId","map","paragraph","editor","54BwOvVo","definition","19825720GiNBvW","createPositionAt","after","_handleFootnoteDefinitionsChanges","pluginName","registerPostFixer","footnotesDefinitions","rootName","document","getFootnotesDefinitionsObjectElement","childCount","isEqual","footnoteCounter","isOfficialPlugin","_insertEmptyFootnotesDefinitionsContainer","low"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(941859===parseInt(e(403))/1*(parseInt(e(472))/2)+parseInt(e(437))/3+-parseInt(e(399))/4*(parseInt(e(453))/5)+-parseInt(e(423))/6+-parseInt(e(406))/7+parseInt(e(408))/8*(-parseInt(e(467))/9)+parseInt(e(474))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(418)]=[];[u(416)]=null;[u(397)]=null;[u(394)];[u(462)];[u(405)];static get[u(478)](){return u(438)}static get[u(487)](){return!0}static get[u(410)](){return!0}constructor(t){const e=u;super(t),this[e(394)]=new l(this[e(471)][e(492)],{elementName:e(480),getElementKey:()=>e(425)}),this[e(462)]=new l(this[e(471)][e(492)],{elementName:e(444),getElementKey:t=>t[e(460)](e(468))}),this[e(405)]=new l(this[e(471)][e(492)],{elementName:e(449),getElementKey:t=>t[e(460)](e(468))})}[u(464)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(482)][t(479)](e=>{const n=t,i=o[n(482)][n(463)][n(446)]();let s=!1;return this[n(490)](e,i)&&(s=!0),this[n(477)](e,i)&&(s=!0),this[n(419)](e,i)&&(s=!0),this[n(421)](e)&&(s=!0),this[n(451)](e)&&(s=!0),this[n(420)](e)&&(s=!0),s}),this[t(417)](o[t(482)],t(400),()=>{const e=t;o[e(442)]({isUndoable:!1},t=>{this[e(432)](t)})},{priority:t(489)}),this[t(417)](n,t(434),()=>{const e=t;this[e(418)]=[],this[e(394)][e(402)](),this[e(462)][e(402)](),this[e(405)][e(402)]()},{priority:t(407)})}[u(483)](){return this[u(416)]}[u(424)](t){const e=u;return this[e(418)][e(494)](e=>e.id===t)||null}[u(443)](){const t=u;return Array[t(414)](this[t(418)])}[u(448)](){return this[u(397)]}[u(493)](t){this[u(397)]=t}[u(456)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(418)][o(435)];i++)this[o(411)](t,i)&&(n=!0);return n}[u(488)](t,e){const o=u,n=t[o(466)](o(480),{});return t[o(452)](n,e),this[o(416)]=n,n}[u(432)](t){const e=u;if(!this[e(418)][e(435)]||this[e(416)])return;const o=this[e(418)][0][e(440)][e(413)],n=this[e(488)](t,o);for(const o of this[e(418)])o[e(473)][e(436)]||t[e(429)](o[e(473)],n,e(439));this[e(456)](t)}[u(490)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(394)][o(446)](e);if(r[o(435)]&&(this[o(416)]=r[0]),i[o(435)])if(i[o(435)]>1||this[o(416)]&&i[o(398)](t=>t!==this[o(416)])){const e=t[o(466)](o(480),{}),s=[];this[o(416)]&&s[o(431)](this[o(416)]),s[o(431)](...i),t[o(429)](e,s[0],o(455));for(const n of s)t[o(491)](t[o(445)](n),t[o(475)](e,o(439))),t[o(465)](n);this[o(416)]=e,this[o(456)](t),n=!0}else this[o(416)]=i[0];if(s[o(435)]&&o(412)===this[o(416)]?.[o(413)][o(481)]){for(const e of this[o(418)])t[o(465)](e[o(440)]),n=!0;this[o(418)]=[],this[o(416)]=null}return n}[u(477)](t,e){const o=u;let n=!1;const i=this[o(471)][o(454)][o(457)](o(395)),{inserted:s,moved:r}=this[o(405)][o(446)](e);for(const e of[...r,...s]){const s=e[o(460)](o(468)),r=this[o(424)](s);r&&(r[o(473)]=e),p(t,i,e)&&(n=!0)}return n}[u(419)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(462)][o(446)](e);for(const e of i)this[o(441)](t,e)&&(n=!0);for(const e of s)this[o(422)](t,e)&&(n=!0);for(const e of r)this[o(461)](t,e)&&(n=!0);return n}[u(451)](t){const e=u;if(!this[e(416)])return!1;let o=!1;if(this[e(416)][e(484)]!==this[e(418)][e(435)]){const n=[];for(const t of this[e(416)][e(459)]()){const i=t[e(460)](e(468));this[e(424)](i)||(n[e(458)](t),o=!0)}for(const o of n)t[e(465)](o)}const n=new Set,i=[];for(const t of this[e(416)][e(459)]()){const s=t[e(460)](e(468));n[e(404)](s)?(i[e(458)](t),o=!0):n[e(450)](s)}for(const o of i)t[e(465)](o);return this[e(416)][e(484)]||(t[e(465)](this[e(416)]),this[e(416)]=null,o=!0),o}[u(422)](t,e){const o=u;if(this[o(418)][o(494)](t=>t[o(440)]===e))return!1;let n=!1;const i=e[o(460)](o(468)),s=this[o(418)][o(409)](t=>t.id===i);-1!==s&&(t[o(465)](this[o(418)][s][o(440)]),this[o(418)][o(428)](s,1),n=!0);let r=this[o(416)]?function(t,e){const n=o;for(const o of t[n(459)]())if(o[n(460)](n(468))===e)return o;return null}(this[o(416)],i):null;r||(r=t[o(466)](o(449),{footnoteId:i}),this[o(416)]&&(t[o(429)](r,this[o(416)],o(439)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(471)][o(492)],this[o(418)],e);this[o(418)][o(428)](c,0,a);let l=c;return-1!==s&&(l=Math[o(426)](c,s)),this[o(456)](t,l)&&(n=!0),n}[u(441)](t,e){const o=u,n=this[o(418)][o(409)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(418)][n];return o(412)!==s[o(473)][o(413)][o(481)]&&(t[o(465)](s[o(473)]),i=!0),this[o(418)][o(428)](n,1),this[o(456)](t,n)&&(i=!0),i}[u(461)](t,e){const o=u,n=e[o(460)](o(468)),i=this[o(418)][o(409)](t=>t.id===n),s=this[o(418)][i];let r=!1;s[o(440)]=e,this[o(418)][o(428)](i,1);const a=m(this[o(471)][o(492)],this[o(418)],e);return this[o(418)][o(428)](a,0,s),this[o(456)](t,Math[o(426)](i,a))&&(r=!0),r}[u(411)](t,e){const o=u;if(!this[o(416)])return!1;const n=this[o(418)][e];let i;return i=this[o(397)]?this[o(397)]({footnote:n,container:this[o(416)],digits:String(this[o(418)][o(435)])[o(435)],value:e+1}):String(e+1),n[o(440)][o(460)](o(486))!=i&&(t[o(433)](o(486),i,n[o(440)]),!0)}[u(420)](t){const e=u;if(!this[e(416)]||this[e(418)][e(435)]<2)return!1;if(function(t,o){const n=e;if(t[n(435)]!==o[n(435)])return!1;for(let e=0;e<t[n(435)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(418)][e(469)](t=>t.id),Array[e(414)](this[e(416)][e(459)]())[e(469)](t=>t[e(460)](e(468)))))return!1;let o=!1;for(let n=0;n<this[e(418)][e(435)];n++){const i=this[e(418)][n],s=t[e(401)](i[e(473)]),r=t[e(475)](this[e(416)],n);s[e(485)](r)||(t[e(491)](t[e(427)](i[e(473)]),r),o=!0)}return o}[u(421)](t){const e=u;if(!this[e(418)][e(435)])return!1;const{model:o}=this[e(471)];let n=!1;for(let i=0;i<this[e(418)][e(435)]-1;i++){const s=this[e(418)][i],r=this[e(418)][i+1],a=o[e(401)](s[e(440)]),c=o[e(401)](r[e(440)]);e(476)===a[e(415)](c)&&(this[e(461)](t,s[e(440)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(484)])return!1;const i=n(e?470:430);return t[n(429)](t[n(466)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=394]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(435)])return 0;const i=t[n(401)](o);for(let o=0;o<e[n(435)];o++){const s=e[o],r=t[n(401)](s[n(440)]);if(n(455)===i[n(415)](r))return o}const s=o[n(413)];let r=-1;for(let t=e[n(435)]-1;t>=0;t--)if(e[t][n(440)][n(413)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(482)][n(396)](),c=a[n(447)](s[n(481)]),l=a[c+1];if(l)for(let t=0;t<e[n(435)];t++)if(e[t][n(440)][n(413)][n(481)]===l)return t;return e[n(435)]}const g=y;function w(){const t=["6tgrkvo","20gXWLDN","isEnabled","length","plugins","isBlock","footnoteId","insertObject","insert-footnote-command-executed-with-invalid-id","test","execute","1364830ReGFHA","get","2677905tasaPJ","selection","_getPositionToInsertFootnote","string","editor","getItems","getFirstRange","2718749xxRQRD","checkChild","document","3TIJbsZ","674222homXcj","_moveSelectionToFootnoteDefinition","188321qFJpSU","end","1832348OUYNJu","footnoteRef","isObject","refresh","createElement","change","8DxeORZ","FootnotesEditing","model","3313444sjiQdU"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=177]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(422438===parseInt(e(194))/1+-parseInt(e(192))/2+-parseInt(e(191))/3*(-parseInt(e(205))/4)+parseInt(e(179))/5*(parseInt(e(206))/6)+parseInt(e(196))/7+-parseInt(e(202))/8*(parseInt(e(181))/9)+-parseInt(e(207))/10*(parseInt(e(188))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(199)](){const t=g,e=this[t(185)][t(204)][t(190)][t(182)],o=this[t(183)](e);this[t(208)]=!!o}[g(178)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(190)],r=this[e(183)](s);if(!r)return;const a=o[e(210)][e(180)](e(203)),c=t?.[e(212)]??(0,i.uid)();!function(t){const o=e;return o(184)==typeof t&&t[o(209)]>0&&!/\s/[o(177)](t)&&!/^\d/[o(177)](t)}(c)?(0,i.logWarning)(e(214)):(n[e(201)](t=>{const o=e,i=t[o(200)](o(197),{footnoteId:c});n[o(213)](i,r,null)}),a[e(193)](c))}[g(183)](t){const e=g,{model:o}=this[e(185)],{schema:n}=o,i=t[e(187)]();for(const t of i[e(186)]())if(n[e(211)](t)||n[e(198)](t))return null;const s=i[e(195)];return n[e(189)](s,e(197))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765324800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const S=A;function D(){const t=["push","method","_defineClipboardIntegration","270313XOjavk","footnoteInlineContent","getFootnotes","createRangeIn","563087TFzuUc","759835liIDHl","htmlProcessor","footnotesDefinitions","content","_insertEmptyFootnotesDefinitionsContainer","32PaRPdL","_handleCopyFootnotesDefinitions","element","document","drop","listenTo","_handlePasteFootnotesDefinitions","reduce","setData","insert","stringify","parse","application/ckeditor5-footnotes","end","getFirstRange","562743tZJlXZ","includes","toView","footnoteId","get","setAttribute","change","length","FootnotesClipboard","root","remove","isOfficialPlugin","getFootnotesDefinitionsObjectElement","append","isPremiumPlugin","toModel","4wIxAlM","dataTransfer","55KRmSEx","sourceEditorId","getSelectedBlocks","createElement","outputTransformation","config","305367sFGnZU","getAttribute","entries","editor","footnotes.multiBlock","toData","find","selection","pluginName","680718iJCxfl","clipboardInput","contentInsertion","getRanges","from","create","footnoteDefinition","getFootnote","4PdZAma","add","1291420VTdVyz","editing","data","getData","flatMap","footnoteRef","requires","definition","init"];return(D=function(){return t})()}function A(t,e){const o=D();return(A=function(t,e){return o[t-=458]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(165636===-parseInt(e(527))/1+-parseInt(e(488))/2*(parseInt(e(496))/3)+-parseInt(e(513))/4*(parseInt(e(532))/5)+-parseInt(e(505))/6+-parseInt(e(531))/7*(-parseInt(e(537))/8)+-parseInt(e(472))/9+parseInt(e(515))/10*(parseInt(e(490))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[S(504)](){return S(480)}static get[S(521)](){return[v,P.ClipboardPipeline]}static get[S(483)](){return!0}static get[S(486)](){return!0}[S(523)](){this[S(526)]()}[S(526)](){const t=S;this[t(458)](),this[t(463)]()}[S(458)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(476)](P.ClipboardPipeline),s=o[t(476)](d);this[t(462)](i,t(494),(o,i)=>{const r=t,a=L(n[r(530)](i[r(535)]));if(!a[r(479)])return;const c=s[r(529)](),l=a[r(464)]((t,o)=>{const n=r,i=c[n(502)](t=>t.id===o);if(i){const o=e[n(517)][n(474)](i[n(522)],{isClipboardPipeline:!0}),s=e[n(517)][n(533)][n(501)](o);t[i.id]=s}return t},Object[r(510)](null));i[r(489)][r(465)](r(469),JSON[r(467)](l))})}[S(463)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(516)],r=n[t(476)](P.ClipboardPipeline),a=n[t(476)](d),c=e[t(495)][t(476)](t(500));let l=null;this[t(462)](s[t(460)],t(506),(e,o)=>{const n=t,i=o[n(489)][n(518)](n(469));l=i?JSON[n(468)](i):null}),this[t(462)](r,t(507),(n,s)=>{const r=t,u=s[r(491)]===this[r(499)].id;u&&r(461)===s[r(525)]||o[r(478)](t=>{const n=r;let f=a[n(484)]();const d=!!f&&Array[n(509)](o[n(460)][n(503)][n(492)]())[n(473)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(530)](e))n.is(o(459),o(534))&&i[o(524)](n);for(const e of i)t[o(482)](e)}(t,s[n(535)]),!l)return;const{selection:p}=o[n(460)],h=p[n(471)]()[n(481)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(530)](e))if(n.is(o(459),o(534)))return n;return null}(t,s[n(535)]),f||=a[n(536)](t,h));const m=Array[n(509)](p[n(508)]())[n(519)](L),g=function(t,e,o){const s=n,r=Object[s(510)](null);for(const{item:n}of t[s(530)](e))if(n.is(s(459),s(520))){const e=n[s(497)](s(475));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(477)](s(475),r[e],n)}return r}(t,s[n(535)],t=>{const e=n;return!u||!!a[e(512)](t)&&!m[e(473)](t)});for(const[o,i]of Object[n(498)](l)){const s=g[o]||o,r=t[n(493)](n(511),{footnoteId:s}),a=e[n(517)][n(533)][n(474)](i);let l;if(c)l=e[n(517)][n(487)](a,r);else{l=t[n(493)](n(528));const o=e[n(517)][n(487)](a,l);t[n(466)](o,l)}t[n(485)](l,r),t[n(466)](r,f,n(470))}l=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(459),e(520))&&o[e(514)](n[e(497)](e(475)));return Array[e(509)](o)}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),U=o.n(M),B=o(123),W=o.n(B),z=o(741),q=o.n(z),H=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=W(),J.insert=U().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();O()(H.A,J);H.A&&H.A.locals&&H.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,R.ButtonView)),e.add("menuBar:insertFootnote",G(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Y(){var t=["6492462sKCHBv","isOfficialPlugin","499640cDdHNn","5714305dCprXR","2537012MTymZw","isPremiumPlugin","13799394ZzfIzh","3079983AMoMaW","1143136swBaGq","pluginName","Footnotes","requires"];return(Y=function(){return t})()}var Z=Q;function Q(t,e){var o=Y();return(Q=function(t,e){return o[t-=349]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(746402===-parseInt(e(360))/1+parseInt(e(354))/2+-parseInt(e(359))/3+parseInt(e(356))/4+parseInt(e(355))/5+-parseInt(e(352))/6+parseInt(e(358))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[Z(349)](){return Z(350)}static get[Z(351)](){return[v,_,X]}static get[Z(353)](){return!0}static get[Z(357)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=132]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(832630===-parseInt(e(146))/1+parseInt(e(137))/2+-parseInt(e(141))/3+-parseInt(e(140))/4*(parseInt(e(145))/5)+-parseInt(e(133))/6*(parseInt(e(135))/7)+-parseInt(e(132))/8+parseInt(e(143))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(147),tt(134),tt(139),tt(136),tt(148),tt(138),tt(144),tt(142)];function nt(){const t=["upper-roman","23712525TtvfDW","lower-roman","70DrupUU","120529RqkEsO","decimal","lower-alpha","12093296ozgbKQ","6BmJTel","decimal-leading-zero","58989pSOgRJ","upper-latin","2936850LhUfNF","upper-alpha","lower-latin","227312yNKgBn","2502930mnwvxs"];return(nt=function(){return t})()}const it=rt;function st(){const t=["3978591tzqBGD","6lQneQO","56oxBlUC","isEnabled","includes","835394MCUuEX","getAttribute","44thnzwv","get","3902530nUUtrU","_updateFootnotesCounters","footnotesListStyle","getFootnotesDefinitionsObjectElement","change","execute","650964ncLYSq","plugins","6314024rTjOAY","9DXTzYv","144190QLMGfT","refresh","value","setAttribute","model","275naxooP","24446qUWFQj"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(855634===parseInt(e(118))/1*(parseInt(e(121))/2)+parseInt(e(119))/3+parseInt(e(126))/4*(-parseInt(e(138))/5)+-parseInt(e(120))/6*(-parseInt(e(124))/7)+-parseInt(e(136))/8*(-parseInt(e(137))/9)+-parseInt(e(128))/10+-parseInt(e(117))/11*(parseInt(e(134))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(139)](){const t=it,{editor:e}=this,o=e[t(135)][t(127)](d)[t(131)]();this[t(122)]=!!o,this[t(140)]=o?.[t(125)](t(130))??null}[it(133)]({value:t}){const e=it,{editor:o}=this,n=o[e(135)][e(127)](d),i=n[e(131)]();i&&ot[e(123)](t)&&o[e(116)][e(132)](o=>{const s=e;o[s(141)](s(130),t,i),n[s(129)](o)})}}function ct(){const t=["1173690psrdaa","getAttribute","3859788cJrRWz","21773510najZxm","get","isInteger","refresh","1293zYkjtu","3303GVayOa","setAttribute","change","432qKLqzm","62tPZIap","1771ZszHlt","model","_updateFootnotesCounters","footnotesListStart","11124DWWfnr","value","execute","214wsKPXP","getFootnotesDefinitionsObjectElement","isEnabled","plugins","23960TKNAav"];return(ct=function(){return t})()}function lt(t,e){const o=ct();return(lt=function(t,e){return o[t-=358]})(t,e)}const ut=lt;!function(t){const e=lt,o=t();for(;;)try{if(799799===-parseInt(e(374))/1*(-parseInt(e(382))/2)+parseInt(e(369))/3*(-parseInt(e(379))/4)+parseInt(e(362))/5+parseInt(e(364))/6+-parseInt(e(375))/7*(-parseInt(e(373))/8)+-parseInt(e(370))/9*(parseInt(e(361))/10)+parseInt(e(365))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[ut(368)](){const t=ut,{editor:e}=this,o=e[t(360)][t(366)](d)[t(358)]();this[t(359)]=!!o,this[t(380)]=o?.[t(363)](t(378))??null}[ut(381)]({value:t}){const e=ut,{editor:o}=this,n=o[e(360)][e(366)](d),i=n[e(358)]();i&&Number[e(367)](t)&&o[e(376)][e(372)](o=>{const s=e;o[s(371)](s(378),t,i),n[s(377)](o)})}}const dt=ht;function pt(){const t=["_formatFootnoteListValue","footnotesDefinitions","floor","_defineFormatter","footnotesListStart","get","977814xRFRdg","nodeAfter","_defineSchema","upper-roman","from","isOfficialPlugin","insert","toLowerCase","list-style-type","fromCharCode","footnotes-list","decimal-leading-zero","mapper","FootnotesPropertiesEditing","attribute:footnotesListStyle:footnotesDefinitions","differ","_defineConverters","setAttribute","6DnmpgX","1508360LyuKhC","footnotesListStyle","_getDefaultStartIndex","item","toUpperCase","type","add","getStyle","setStyle","define","position","getItems","_definePostfixer","_updateFootnotesCounters","pluginName","parseInt","$text","find","requires","writer","padStart","upper-alpha","footnotes.footnotesProperties.defaultListStyle","hasClass","document","parent","plugins","1083296yMHviP","footnotesStyle","consume","upper-latin","isNaN","isPremiumPlugin","lower-alpha","consumable","editor","schema","config","createRangeOn","lower-latin","25tXMbPy","669822pUqYCT","206084NbJxss","getAttribute","footnotesStart","_getDefaultListStyle","viewItem","14849NYjhYM","1895993rfDjLB","checkAttribute","getChildren","upcast","removeAttribute","element","2TpJnJY","max","init","hasAttribute","footnotes.footnotesProperties.defaultStartIndex","extend","setFootnoteFormatter","name","element:ol","registerPostFixer","commands","start","toViewElement","lower-roman","modelCursor","model","downcast","getChanges","for","attribute:footnotesListStart:footnotesDefinitions","decimal","removeStyle","10FUmXFS"];return(pt=function(){return t})()}function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=281]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(136173===-parseInt(e(344))/1+parseInt(e(351))/2*(-parseInt(e(338))/3)+-parseInt(e(339))/4*(parseInt(e(337))/5)+-parseInt(e(296))/6*(-parseInt(e(297))/7)+parseInt(e(324))/8+parseInt(e(380))/9*(parseInt(e(373))/10)+parseInt(e(345))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(311)](){return dt(291)}static get[dt(315)](){return[v,d]}static get[dt(283)](){return!0}static get[dt(329)](){return!0}[dt(353)](){const t=dt,{editor:e}=this;e[t(334)][t(306)](t(319),t(371)),e[t(334)][t(306)](t(355),1),e[t(361)][t(303)](t(325),new at(e)),e[t(361)][t(303)](t(341),new ft(e)),this[t(382)](),this[t(294)](),this[t(377)](),this[t(309)]()}[dt(382)](){const t=dt,{editor:e}=this,{schema:o}=e[t(366)];o[t(356)](t(375),{allowAttributes:[t(298),t(378)]})}[dt(294)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(369)](t(348))[t(303)](e=>{const o=t;e.on(o(359),(t,e,n)=>{const s=o,r=e[s(343)],a=e[s(365)]?.[s(322)];r[s(320)](s(288))&&a?.is(s(350),s(375))&&(function(t,e,o,n){const i=s;if(!n[i(346)](e,i(378)))return;let r=1;const a=o[i(331)][i(326)](t,{attributes:i(362)});if(a){const e=Number[i(312)](t[i(340)](i(362)),10);Number[i(328)](e)||(r=e)}!a&&e[i(354)](i(378))||o[i(316)][i(295)](i(378),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(346)](e,i(298)))return;let r=i(371),a=!1;if(o[i(331)][i(326)](t,{attributes:i(302)})){const e={1:i(371),a:i(330),A:i(318),i:i(364),I:i(281)}[t[i(340)](i(302))];e&&(r=e),a=!0}o[i(331)][i(326)](t,{styles:i(286)})&&(r=function(t){const e=i;switch(t){case e(330):return e(336);case e(318):return e(327);default:return t}}(t[i(304)](i(286))),a=!0),!a&&e[i(354)](i(298))||o[i(316)][i(295)](i(298),r,e)}(r,a,n,i))})}),o[t(369)](t(367))[t(303)](e=>{const o=t;e.on(o(370),(t,e,n)=>{const i=o;if(!n[i(331)][i(326)](e[i(300)],t[i(358)]))return;const s=gt(e[i(300)],n[i(290)]),{attributeNewValue:r}=e;null==r||1===r?n[i(316)][i(349)](i(362),s):n[i(316)][i(295)](i(362),String(r),s)}),e.on(o(292),(t,e,n)=>{const i=o;if(!n[i(331)][i(326)](e[i(300)],t[i(358)]))return;const s=gt(e[i(300)],n[i(290)]),{attributeNewValue:r}=e;r&&i(371)!==r?n[i(316)][i(305)](i(286),r,s):n[i(316)][i(372)](i(286),s)})})}[dt(309)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(323)][t(379)](d),i=this[t(342)](),s=this[t(299)]();o[t(321)][t(360)](e=>{const r=t,a=o[r(321)][r(293)][r(368)]();let c=!1;for(const t of a){if(r(284)!==t[r(302)]||r(313)===t[r(358)])continue;const n=o[r(335)](t[r(307)][r(381)]);for(const t of n[r(308)]())t.is(r(350),r(375))&&(!t[r(354)](r(378))&&o[r(333)][r(346)](t,r(378))&&(e[r(295)](r(378),s,t),c=!0),!t[r(354)](r(298))&&o[r(333)][r(346)](t,r(298))&&(e[r(295)](r(298),i,t),c=!0))}return c&&n[r(310)](e),c})}[dt(377)](){const t=dt,{editor:e}=this;e[t(323)][t(379)](d)[t(357)](e=>this[t(374)](e))}[dt(342)](){const t=dt;return this[t(332)][t(334)][t(379)](t(319))}[dt(299)](){const t=dt;return this[t(332)][t(334)][t(379)](t(355))}[dt(374)]({container:t,value:e,digits:o}){const n=dt,i=t[n(340)](n(298)),s=t[n(340)](n(378)),r=Math[n(376)](e)+(s??1)-1;switch(i){case n(289):return function(t,e){const o=n;return String(t)[o(317)](e,"0")}(r,Math[n(352)](2,o));case n(330):case n(336):return wt(r,!1);case n(318):case n(327):return wt(r,!0);case n(364):return bt(r,!1);case n(281):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(363)](t);return Array[o(282)](n[o(347)]())[o(314)](t=>t.is(o(350),"ol")&&t[o(320)](o(288)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(287)](97+t)+n,i=Math[o(376)]((i-1)/26)}return e?n[o(301)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(285)]()}class vt extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=U().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=q();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=351]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(365046===-parseInt(e(352))/1*(-parseInt(e(355))/2)+-parseInt(e(358))/3*(-parseInt(e(353))/4)+parseInt(e(367))/5+-parseInt(e(356))/6*(parseInt(e(359))/7)+parseInt(e(364))/8*(-parseInt(e(351))/9)+parseInt(e(360))/10*(parseInt(e(354))/11)+-parseInt(e(361))/12*(parseInt(e(363))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(362)](){return Ft(365)}static get[Ft(368)](){return[mt,Ct]}static get[Ft(357)](){return!0}static get[Ft(366)](){return!0}}function Tt(){var t=["804282Leecun","isOfficialPlugin","3vlqqVM","7rYlytn","2980060ErQTMD","12cstLaK","pluginName","7152197TaOvXD","2265096XayFRQ","FootnotesProperties","isPremiumPlugin","1132155rJEOLh","requires","9UuqJuY","112cjAbtn","519208JZXDNG","11UJmZVe","12110AkImJR"];return(Tt=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=119]})(t,e)}function St(){var t=["876492CISUiS","3877492AyLTIl","2324264nJacGr","32515aiqNYR","3373pXIeuY","1878meWbFb","6915360kMQnNL","478QWEsmK","3972485sTZsGV","9Riursl"];return(St=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(801371===-parseInt(e(124))/1*(-parseInt(e(127))/2)+parseInt(e(120))/3+parseInt(e(121))/4+-parseInt(e(128))/5+parseInt(e(125))/6*(-parseInt(e(123))/7)+parseInt(e(122))/8*(parseInt(e(119))/9)+parseInt(e(126))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2e1d26,Command as _0x43786c}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4e379c,isWidget as _0x25bf72,toWidgetEditable as _0x1ff871,WidgetToolbarRepository as _0x2994d7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1d035b,logWarning as _0x3db33e,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x7a0c6f,ClickObserver as _0x12e1af}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1815bd}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x9714a,ButtonView as _0x31da72,View as _0x22dafb,ViewCollection as _0x589ea8,FocusCycler as _0x328ca3,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x579298,BalloonPanelView as _0x1d2395,createDropdown as _0x13246a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1f13ef,IconListStyleDecimal as _0x39352c,IconListStyleDecimalLeadingZero as _0x5498d7,IconListStyleLowerRoman as _0x94ed4e,IconListStyleUpperRoman as _0x57d357,IconListStyleLowerLatin as _0xbbf0ef,IconListStyleUpperLatin as _0x2961e4}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x270c27,_0x5e7b3a){this['_model']=_0x270c27,this['_elementName']=_0x5e7b3a['elementName'],this['_getElementKey']=_0x5e7b3a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xc613ae){const _0x180b51=new Set(),_0x2f3ab1=new Map();for(const _0xa62b45 of _0xc613ae){if('insert'===_0xa62b45['type']&&'$text'!==_0xa62b45['name']&&_0xa62b45['position']['nodeAfter']){const _0x128760=this['_model']['createRangeOn'](_0xa62b45['position']['nodeAfter']);for(const _0x1db912 of _0x128760['getItems']()){if(!_0x1db912['is']('element',this['_elementName']))continue;const _0x42213b=this['_getElementKey'](_0x1db912);_0x2f3ab1['has'](_0x42213b)||_0x2f3ab1['set'](_0x42213b,[]),_0x2f3ab1['get'](_0x42213b)['push'](_0x1db912);}}if('remove'===_0xa62b45['type']&&_0xa62b45['name']===this['_elementName']){const _0x471164=this['_getElementKey']({'getAttribute':_0x2a28f1=>_0xa62b45['attributes']['get'](_0x2a28f1)});_0x180b51['add'](_0x471164);}}for(const [_0x4bde7c,_0x37a327]of this['_trackedElements'])'$graveyard'===_0x37a327['root']['rootName']&&_0x180b51['add'](_0x4bde7c);for(const _0x57a465 of _0x180b51)this['_trackedElements']['delete'](_0x57a465);for(const [_0x54693f,_0x4e0a4c]of _0x2f3ab1)this['_trackedElements']['set'](_0x54693f,_0x4e0a4c[_0x4e0a4c['length']-0x1]);const _0x1da9bd=new Set();for(const [_0x1f7b3b,_0x34ca9f]of _0x2f3ab1)_0x180b51['has'](_0x1f7b3b)&&(_0x1da9bd['add'](_0x34ca9f[0x0]),_0x34ca9f['length']>0x1?_0x2f3ab1['set'](_0x1f7b3b,_0x34ca9f['slice'](0x1)):_0x2f3ab1['delete'](_0x1f7b3b),_0x180b51['delete'](_0x1f7b3b));return{'removed':Array['from'](_0x180b51),'inserted':Array['from'](_0x2f3ab1['values']())['flat'](),'moved':Array['from'](_0x1da9bd)};}}class f extends _0x2e1d26{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ab6bc){super(_0x2ab6bc),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3e2a81=>_0x3e2a81['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x60e0a2=>_0x60e0a2['getAttribute']('footnoteId')});}['init'](){const {editor:_0xc79207}=this,{model:_0x3ae91f,data:_0x3ea187}=_0xc79207;_0x3ae91f['document']['registerPostFixer'](_0x232afb=>{const _0x58dcc7=_0x3ae91f['document']['differ']['getChanges']();let _0x48322b=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x232afb,_0x58dcc7)&&(_0x48322b=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x232afb,_0x58dcc7)&&(_0x48322b=!0x0),this['_handleFootnoteReferencesChanges'](_0x232afb,_0x58dcc7)&&(_0x48322b=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x232afb)&&(_0x48322b=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x232afb)&&(_0x48322b=!0x0),this['_sortFootnoteDefinitions'](_0x232afb)&&(_0x48322b=!0x0),_0x48322b;}),this['listenTo'](_0x3ae91f['document'],'change:data',()=>{_0x3ae91f['enqueueChange']({'isUndoable':!0x1},_0x4eed55=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x4eed55);});},{'priority':'low'}),this['listenTo'](_0x3ea187,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x583353){return this['_footnotes']['find'](_0x2886e6=>_0x2886e6['id']===_0x583353)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4ec1ba){this['_footnoteFormatter']=_0x4ec1ba;}['_updateFootnotesCounters'](_0x17e7c0,_0x55fc7b=0x0){let _0x187008=!0x1;for(let _0x3e623b=_0x55fc7b;_0x3e623b<this['_footnotes']['length'];_0x3e623b++)this['_updateFootnoteRefCounter'](_0x17e7c0,_0x3e623b)&&(_0x187008=!0x0);return _0x187008;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1a40a8,_0x3a9a40){const _0x4d06af=_0x1a40a8['createElement']('footnotesDefinitions',{});return _0x1a40a8['append'](_0x4d06af,_0x3a9a40),this['_footnotesDefinitions']=_0x4d06af,_0x4d06af;}['_ensureFootnotesDefinitionsContainerExists'](_0x12155f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x312a00=this['_footnotes'][0x0]['reference']['root'],_0x2c31a2=this['_insertEmptyFootnotesDefinitionsContainer'](_0x12155f,_0x312a00);for(const _0x3a376e of this['_footnotes'])_0x3a376e['definition']['parent']||_0x12155f['insert'](_0x3a376e['definition'],_0x2c31a2,'end');this['_updateFootnotesCounters'](_0x12155f);}['_handleFootnotesDefinitionsObjectChanges'](_0x42c6f2,_0x3acb78){let _0x5d0e31=!0x1;const {inserted:_0x1a7c49,removed:_0x5c4765,moved:_0x1c2906}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3acb78);if(_0x1c2906['length']&&(this['_footnotesDefinitions']=_0x1c2906[0x0]),_0x1a7c49['length']){if(_0x1a7c49['length']>0x1||this['_footnotesDefinitions']&&_0x1a7c49['some'](_0x583df7=>_0x583df7!==this['_footnotesDefinitions'])){const _0x16d421=_0x42c6f2['createElement']('footnotesDefinitions',{}),_0x4d654c=[];this['_footnotesDefinitions']&&_0x4d654c['push'](this['_footnotesDefinitions']),_0x4d654c['push'](..._0x1a7c49),_0x42c6f2['insert'](_0x16d421,_0x4d654c[0x0],'before');for(const _0x4ecc71 of _0x4d654c)_0x42c6f2['move'](_0x42c6f2['createRangeIn'](_0x4ecc71),_0x42c6f2['createPositionAt'](_0x16d421,'end')),_0x42c6f2['remove'](_0x4ecc71);this['_footnotesDefinitions']=_0x16d421,this['_updateFootnotesCounters'](_0x42c6f2),_0x5d0e31=!0x0;}else this['_footnotesDefinitions']=_0x1a7c49[0x0];}if(_0x5c4765['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1f6b89 of this['_footnotes'])_0x42c6f2['remove'](_0x1f6b89['reference']),_0x5d0e31=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d0e31;}['_handleFootnoteDefinitionsChanges'](_0x37937a,_0x1a1a31){let _0x42b959=!0x1;const _0x53cbfc=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x8cd57d,moved:_0x55259f}=this['_footnoteDefsTracker']['getChanges'](_0x1a1a31);for(const _0x29a6fa of[..._0x55259f,..._0x8cd57d]){const _0x4c6fdb=_0x29a6fa['getAttribute']('footnoteId'),_0x2b1dbc=this['getFootnote'](_0x4c6fdb);_0x2b1dbc&&(_0x2b1dbc['definition']=_0x29a6fa),_(_0x37937a,_0x53cbfc,_0x29a6fa)&&(_0x42b959=!0x0);}return _0x42b959;}['_handleFootnoteReferencesChanges'](_0x2d1e05,_0x43b531){let _0x2cee73=!0x1;const {removed:_0x2b361e,inserted:_0x6e0486,moved:_0x138994}=this['_footnoteRefsTracker']['getChanges'](_0x43b531);for(const _0x26358f of _0x2b361e)this['_handleRemoveFootnoteReferenceById'](_0x2d1e05,_0x26358f)&&(_0x2cee73=!0x0);for(const _0x2c6fb1 of _0x6e0486)this['_handleInsertedFootnoteReference'](_0x2d1e05,_0x2c6fb1)&&(_0x2cee73=!0x0);for(const _0x29a19b of _0x138994)this['_handleMovedFootnoteReference'](_0x2d1e05,_0x29a19b)&&(_0x2cee73=!0x0);return _0x2cee73;}['_handleFootnotesDefinitionsObjectSync'](_0x3593e7){if(!this['_footnotesDefinitions'])return!0x1;let _0x4ab875=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3804cc=[];for(const _0x38e3e7 of this['_footnotesDefinitions']['getChildren']()){const _0x124e04=_0x38e3e7['getAttribute']('footnoteId');this['getFootnote'](_0x124e04)||(_0x3804cc['unshift'](_0x38e3e7),_0x4ab875=!0x0);}for(const _0x5db43c of _0x3804cc)_0x3593e7['remove'](_0x5db43c);}const _0x11330e=new Set(),_0x4c7035=[];for(const _0xcc25c of this['_footnotesDefinitions']['getChildren']()){const _0x3fd58f=_0xcc25c['getAttribute']('footnoteId');_0x11330e['has'](_0x3fd58f)?(_0x4c7035['unshift'](_0xcc25c),_0x4ab875=!0x0):_0x11330e['add'](_0x3fd58f);}for(const _0xfe93d6 of _0x4c7035)_0x3593e7['remove'](_0xfe93d6);return this['_footnotesDefinitions']['childCount']||(_0x3593e7['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4ab875=!0x0),_0x4ab875;}['_handleInsertedFootnoteReference'](_0x5aebae,_0x4e866e){if(this['_footnotes']['find'](_0x4e0cc0=>_0x4e0cc0['reference']===_0x4e866e))return!0x1;let _0x16f98c=!0x1;const _0x4ef2f2=_0x4e866e['getAttribute']('footnoteId'),_0x406ae1=this['_footnotes']['findIndex'](_0x23ef16=>_0x23ef16['id']===_0x4ef2f2);-0x1!==_0x406ae1&&(_0x5aebae['remove'](this['_footnotes'][_0x406ae1]['reference']),this['_footnotes']['splice'](_0x406ae1,0x1),_0x16f98c=!0x0);let _0x1bb7e0=this['_footnotesDefinitions']?function(_0xe8b53b,_0x1db7bb){for(const _0x4890e7 of _0xe8b53b['getChildren']())if(_0x4890e7['getAttribute']('footnoteId')===_0x1db7bb)return _0x4890e7;return null;}(this['_footnotesDefinitions'],_0x4ef2f2):null;_0x1bb7e0||(_0x1bb7e0=_0x5aebae['createElement']('footnoteDefinition',{'footnoteId':_0x4ef2f2}),this['_footnotesDefinitions']&&(_0x5aebae['insert'](_0x1bb7e0,this['_footnotesDefinitions'],'end'),_0x16f98c=!0x0));const _0xe6694f={'id':_0x4ef2f2,'reference':_0x4e866e,'definition':_0x1bb7e0},_0x23f4e4=I(this['editor']['model'],this['_footnotes'],_0x4e866e);this['_footnotes']['splice'](_0x23f4e4,0x0,_0xe6694f);let _0x2b6ed7=_0x23f4e4;return-0x1!==_0x406ae1&&(_0x2b6ed7=Math['min'](_0x23f4e4,_0x406ae1)),this['_updateFootnotesCounters'](_0x5aebae,_0x2b6ed7)&&(_0x16f98c=!0x0),_0x16f98c;}['_handleRemoveFootnoteReferenceById'](_0x2f74ea,_0x560ad1){const _0x214b08=this['_footnotes']['findIndex'](_0x233c59=>_0x233c59['id']===_0x560ad1);if(-0x1===_0x214b08)return!0x1;let _0x8364b=!0x1;const _0x2b1337=this['_footnotes'][_0x214b08];return'$graveyard'!==_0x2b1337['definition']['root']['rootName']&&(_0x2f74ea['remove'](_0x2b1337['definition']),_0x8364b=!0x0),this['_footnotes']['splice'](_0x214b08,0x1),this['_updateFootnotesCounters'](_0x2f74ea,_0x214b08)&&(_0x8364b=!0x0),_0x8364b;}['_handleMovedFootnoteReference'](_0x4877f0,_0x1ec8da){const _0x448fd5=_0x1ec8da['getAttribute']('footnoteId'),_0x2e95ef=this['_footnotes']['findIndex'](_0x1bd331=>_0x1bd331['id']===_0x448fd5),_0x196612=this['_footnotes'][_0x2e95ef];let _0x576b12=!0x1;_0x196612['reference']=_0x1ec8da,this['_footnotes']['splice'](_0x2e95ef,0x1);const _0x543c17=I(this['editor']['model'],this['_footnotes'],_0x1ec8da);return this['_footnotes']['splice'](_0x543c17,0x0,_0x196612),this['_updateFootnotesCounters'](_0x4877f0,Math['min'](_0x2e95ef,_0x543c17))&&(_0x576b12=!0x0),_0x576b12;}['_updateFootnoteRefCounter'](_0x1c9eb2,_0x35161a){if(!this['_footnotesDefinitions'])return!0x1;const _0x5ebbdd=this['_footnotes'][_0x35161a];let _0x22bb08;return _0x22bb08=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5ebbdd,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x35161a+0x1}):String(_0x35161a+0x1),_0x5ebbdd['reference']['getAttribute']('footnoteCounter')!=_0x22bb08&&(_0x1c9eb2['setAttribute']('footnoteCounter',_0x22bb08,_0x5ebbdd['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2c835a){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x24fb8e,_0xdfc7d6){if(_0x24fb8e['length']!==_0xdfc7d6['length'])return!0x1;for(let _0x56ba08=0x0;_0x56ba08<_0x24fb8e['length'];_0x56ba08++)if(_0x24fb8e[_0x56ba08]!==_0xdfc7d6[_0x56ba08])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3e756a=>_0x3e756a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x14024c=>_0x14024c['getAttribute']('footnoteId'))))return!0x1;let _0x29f372=!0x1;for(let _0x3e8d04=0x0;_0x3e8d04<this['_footnotes']['length'];_0x3e8d04++){const _0x3986dc=this['_footnotes'][_0x3e8d04],_0xf1e003=_0x2c835a['createPositionBefore'](_0x3986dc['definition']),_0x1db709=_0x2c835a['createPositionAt'](this['_footnotesDefinitions'],_0x3e8d04);_0xf1e003['isEqual'](_0x1db709)||(_0x2c835a['move'](_0x2c835a['createRangeOn'](_0x3986dc['definition']),_0x1db709),_0x29f372=!0x0);}return _0x29f372;}['_ensureFootnotesReferencesHaveProperOrder'](_0xcf401){if(!this['_footnotes']['length'])return!0x1;const {model:_0x92fabe}=this['editor'];let _0x41d07b=!0x1;for(let _0xfc6d93=0x0;_0xfc6d93<this['_footnotes']['length']-0x1;_0xfc6d93++){const _0x512fbe=this['_footnotes'][_0xfc6d93],_0x950a22=this['_footnotes'][_0xfc6d93+0x1],_0x404688=_0x92fabe['createPositionBefore'](_0x512fbe['reference']),_0x579b5a=_0x92fabe['createPositionBefore'](_0x950a22['reference']);'after'===_0x404688['compareWith'](_0x579b5a)&&(this['_handleMovedFootnoteReference'](_0xcf401,_0x512fbe['reference']),_0xfc6d93=-0x1,_0x41d07b=!0x0);}return _0x41d07b;}}function _(_0x5540e4,_0xf6c334,_0x460561){if(_0x460561['childCount'])return!0x1;const _0x13b57b=_0xf6c334?'paragraph':'footnoteInlineContent';return _0x5540e4['insert'](_0x5540e4['createElement'](_0x13b57b),_0x460561),!0x0;}function I(_0x222dfc,_0x4a01e4,_0x43a518){if(0x0===_0x4a01e4['length'])return 0x0;const _0x270b6e=_0x222dfc['createPositionBefore'](_0x43a518);for(let _0x445714=0x0;_0x445714<_0x4a01e4['length'];_0x445714++){const _0x39b64b=_0x4a01e4[_0x445714],_0x488bf5=_0x222dfc['createPositionBefore'](_0x39b64b['reference']);if('before'===_0x270b6e['compareWith'](_0x488bf5))return _0x445714;}const _0x5f36b8=_0x43a518['root'];let _0x3121b0=-0x1;for(let _0x1dc3b9=_0x4a01e4['length']-0x1;_0x1dc3b9>=0x0;_0x1dc3b9--)if(_0x4a01e4[_0x1dc3b9]['reference']['root']===_0x5f36b8){_0x3121b0=_0x1dc3b9;break;}if(-0x1!==_0x3121b0)return _0x3121b0+0x1;const _0x4f9276=_0x222dfc['document']['getRootNames'](),_0x2ce1bc=_0x4f9276['indexOf'](_0x5f36b8['rootName']),_0x437c92=_0x4f9276[_0x2ce1bc+0x1];if(_0x437c92){for(let _0x570432=0x0;_0x570432<_0x4a01e4['length'];_0x570432++)if(_0x4a01e4[_0x570432]['reference']['root']['rootName']===_0x437c92)return _0x570432;}return _0x4a01e4['length'];}class m extends _0x43786c{['refresh'](){const _0x4494c8=this['editor']['model']['document']['selection'],_0x435e54=this['_getPositionToInsertFootnote'](_0x4494c8);this['isEnabled']=!!_0x435e54;}['execute'](_0x5f228a){const {editor:_0x26e2e2}=this,{model:_0x33e06c}=_0x26e2e2,{selection:_0x55fa55}=_0x33e06c['document'],_0x42699f=this['_getPositionToInsertFootnote'](_0x55fa55);if(!_0x42699f)return;const _0xfc3337=_0x26e2e2['plugins']['get']('FootnotesEditing'),_0x3412cb=_0x5f228a?.['footnoteId']??_0x1d035b();!function(_0x37f187){return'string'==typeof _0x37f187&&_0x37f187['length']>0x0&&!/\s/['test'](_0x37f187)&&!/^\d/['test'](_0x37f187);}(_0x3412cb)?_0x3db33e('insert-footnote-command-executed-with-invalid-id'):(_0x33e06c['change'](_0x20b065=>{const _0x2daff2=_0x20b065['createElement']('footnoteRef',{'footnoteId':_0x3412cb});_0x33e06c['insertObject'](_0x2daff2,_0x42699f,null);}),_0xfc3337['_moveSelectionToFootnoteDefinition'](_0x3412cb));}['_getPositionToInsertFootnote'](_0x1b4a83){const {model:_0x3bc2dd}=this['editor'],{schema:_0x2118f6}=_0x3bc2dd,_0xb0792e=_0x1b4a83['getFirstRange']();for(const _0x451fb4 of _0xb0792e['getItems']())if(_0x2118f6['isBlock'](_0x451fb4)||_0x2118f6['isObject'](_0x451fb4))return null;const _0x57856a=_0xb0792e['end'];return _0x2118f6['checkChild'](_0x57856a,'footnoteRef')?_0x57856a:null;}}class r extends _0x2e1d26{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x105a80}=this;_0x105a80['config']['define']('footnotes.multiBlock',!0x0),_0x105a80['commands']['add']('insertFootnote',new m(_0x105a80)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x58785f){const _0x44b716=_0x157e90([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]),_0x182b9e=0x47a28506,_0x196c96=0x47a5fe6e^_0x182b9e,_0x4bc567=window[_0x157e90([0x44,0x61,0x74,0x65])][_0x157e90([0x6e,0x6f,0x77])](),_0x5a9140=_0x58785f[_0x157e90([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38bba3=new window[(_0x157e90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30c75e=>{_0x5a9140[_0x157e90([0x6f,0x6e,0x63,0x65])](_0x157e90([0x72,0x65,0x61,0x64,0x79]),_0x30c75e);}),_0x29938b={[_0x157e90([0x6b,0x74,0x79])]:_0x157e90([0x45,0x43]),[_0x157e90([0x75,0x73,0x65])]:_0x157e90([0x73,0x69,0x67]),[_0x157e90([0x63,0x72,0x76])]:_0x157e90([0x50,0x2d,0x32,0x35,0x36]),[_0x157e90([0x78])]:_0x157e90([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]),[_0x157e90([0x79])]:_0x157e90([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]),[_0x157e90([0x61,0x6c,0x67])]:_0x157e90([0x45,0x53,0x32,0x35,0x36])},_0x4ba1fd=_0x5a9140[_0x157e90([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x157e90([0x67,0x65,0x74])](_0x157e90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x143ddd(){let _0x3c1da2,_0x5752e=null,_0xbb2200=null;try{if(_0x4ba1fd==_0x157e90([0x47,0x50,0x4c]))return _0x157e90([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c1da2=_0x1f7cec(),!_0x3c1da2)return _0x157e90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c1da2[_0x157e90([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbb2200=_0x1c2154(_0x3c1da2[_0x157e90([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c1da2[_0x157e90([0x6a,0x74,0x69])])),await _0x147dd4()?_0x37b9bc()?_0x2a813b()?_0x157e90([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x286edc()?(_0x3c1da2[_0x157e90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x157e90([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5752e=_0x59a985(_0x157e90([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c1da2[_0x157e90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x157e90([0x74,0x72,0x69,0x61,0x6c])&&(_0x5752e=_0x59a985(_0x157e90([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf7cd73()):_0x157e90([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x157e90([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x157e90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x157e90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a813b(){const _0x32294a=[_0x157e90([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x157e90([0x74,0x72,0x69,0x61,0x6c])][_0x157e90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1da2[_0x157e90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bc567/0x3e8:0xe10*_0x196c96;return _0x3c1da2[_0x157e90([0x65,0x78,0x70])]<_0x32294a;}function _0x37b9bc(){const _0x402b53=_0x3c1da2[_0x157e90([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x402b53&&(!!_0x402b53[_0x157e90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x157e90([0x2a]))||!!_0x402b53[_0x157e90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x157e90([0x46,0x4f,0x4f])));}function _0x286edc(){const _0x413d83=_0x3c1da2[_0x157e90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x413d83||0x0==_0x413d83[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19b2bb}=new URL(window[_0x157e90([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x413d83[_0x157e90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b2bb))return!0x0;const _0x40c9f5=_0x19b2bb[_0x157e90([0x73,0x70,0x6c,0x69,0x74])](_0x157e90([0x2e]));return _0x413d83[_0x157e90([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5854de=>_0x5854de[_0x157e90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x157e90([0x2a])))[_0x157e90([0x6d,0x61,0x70])](_0x33340e=>_0x33340e[_0x157e90([0x73,0x70,0x6c,0x69,0x74])](_0x157e90([0x2e])))[_0x157e90([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x253943=>_0x253943[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40c9f5[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x157e90([0x6d,0x61,0x70])](_0x38ce01=>Array(_0x40c9f5[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38ce01[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x157e90([0x66,0x69,0x6c,0x6c])](_0x38ce01[0x0]===_0x157e90([0x2a])?_0x157e90([0x2a]):'')[_0x157e90([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38ce01))[_0x157e90([0x73,0x6f,0x6d,0x65])](_0x27b14e=>_0x40c9f5[_0x157e90([0x65,0x76,0x65,0x72,0x79])]((_0x1567a9,_0xc7f617)=>_0x27b14e[_0xc7f617]===_0x1567a9||_0x27b14e[_0xc7f617]===_0x157e90([0x2a])));}function _0xf7cd73(){return _0x5752e&&_0xbb2200?new window[(_0x157e90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x368a68,_0x3ac4fe)=>{_0x5752e[_0x157e90([0x74,0x68,0x65,0x6e])](_0x368a68,_0x3ac4fe),_0xbb2200[_0x157e90([0x74,0x68,0x65,0x6e])](_0x5efa1b=>{_0x5efa1b!=_0x157e90([0x56,0x61,0x6c,0x69,0x64])&&_0x368a68(_0x5efa1b);},_0x3ac4fe);}):_0x5752e||_0xbb2200||_0x157e90([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c2154(_0x24d7ed,_0x547dbe){return new window[(_0x157e90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b02bc=>{if(_0x22b0d6())return _0x1b02bc(_0x157e90([0x56,0x61,0x6c,0x69,0x64]));_0x2ce1fb(),_0x5a9140[_0x157e90([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x157e90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb34a99=!0x1;const _0xa887=_0x1d035b();function _0x11242b(_0x328fd5){return!!_0x328fd5&&(typeof _0x328fd5===_0x157e90([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x328fd5===_0x157e90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x328fd5[_0x157e90([0x74,0x68,0x65,0x6e])]===_0x157e90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x328fd5[_0x157e90([0x63,0x61,0x74,0x63,0x68])]===_0x157e90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a1f1a(_0x2d1b8f){_0x3f9a02(_0x2d1b8f)[_0x157e90([0x74,0x68,0x65,0x6e])](_0x7888e0=>{if(!_0x7888e0||_0x7888e0[_0x157e90([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x157e90([0x6f,0x6b]))return _0x157e90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42a5ac(_0x3b077d(_0xa887+_0x547dbe))!=_0x7888e0[_0x157e90([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x157e90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x157e90([0x56,0x61,0x6c,0x69,0x64]);})[_0x157e90([0x74,0x68,0x65,0x6e])](_0x3fdb37=>(_0x3c3d66(),_0x3fdb37),()=>{const _0x5c5b83=_0x15f58e();return null==_0x5c5b83?(_0x3c3d66(),_0x157e90([0x56,0x61,0x6c,0x69,0x64])):_0x157e90(_0x4bc567-_0x5c5b83>(0x63ae0106^_0x182b9e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x157e90([0x74,0x68,0x65,0x6e])](_0x1b02bc)[_0x157e90([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b02bc(_0x157e90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33b76a=0x47946b86^_0x182b9e;function _0x3c3d66(){const _0x4a24b6=_0x157e90([0x6c,0x6c,0x63,0x74,0x2d])+_0x42a5ac(_0x3b077d(_0x24d7ed)),_0xda8530=_0x5c9b1e(_0x42a5ac(window[_0x157e90([0x4d,0x61,0x74,0x68])][_0x157e90([0x63,0x65,0x69,0x6c])](_0x4bc567/_0x33b76a)));window[_0x157e90([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x157e90([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a24b6,_0xda8530);}function _0x15f58e(){const _0x50d83b=_0x157e90([0x6c,0x6c,0x63,0x74,0x2d])+_0x42a5ac(_0x3b077d(_0x24d7ed)),_0x3c776c=window[_0x157e90([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x157e90([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50d83b);return _0x3c776c?window[_0x157e90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c9b1e(_0x3c776c),0x10)*_0x33b76a:null;}function _0x3f9a02(_0x399403){return new window[(_0x157e90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bc07b,_0x568ece)=>{_0x399403[_0x157e90([0x74,0x68,0x65,0x6e])](_0x4bc07b,_0x568ece),window[_0x157e90([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x568ece,0x47a351c6^_0x182b9e);});}}_0x5a9140[_0x157e90([0x6f,0x6e])](_0x157e90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29a579,_0x3bac00)=>{if(_0x3bac00[0x0]!=_0x24d7ed)return _0x1b02bc(_0x157e90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3bac00[0x1]={..._0x3bac00[0x1],[_0x157e90([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa887};},{[_0x157e90([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x157e90([0x68,0x69,0x67,0x68])}),_0x5a9140[_0x157e90([0x6f,0x6e])](_0x157e90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4635fe=>{_0x11242b(_0x4635fe[_0x157e90([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb34a99=!0x0,_0x3a1f1a(_0x4635fe[_0x157e90([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x157e90([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x157e90([0x6c,0x6f,0x77])}),_0x38bba3[_0x157e90([0x74,0x68,0x65,0x6e])](()=>{_0xb34a99||_0x1b02bc(_0x157e90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22b0d6(){return _0x5a9140[_0x157e90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x157e90([0x76,0x69,0x65,0x77])][_0x157e90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x157e90([0x61,0x75,0x74,0x6f]);}function _0x2ce1fb(){_0x5a9140[_0x157e90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x157e90([0x76,0x69,0x65,0x77])][_0x157e90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x157e90([0x61,0x75,0x74,0x6f]);}}function _0x59a985(_0x55c56b){const _0x2b9b7f=[new window[(_0x157e90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4802e9=>setTimeout(_0x4802e9,0x47abbbca^_0x182b9e)),_0x38bba3[_0x157e90([0x74,0x68,0x65,0x6e])](()=>new window[(_0x157e90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30e630=>{let _0x46d1aa=0x0;_0x5a9140[_0x157e90([0x6d,0x6f,0x64,0x65,0x6c])][_0x157e90([0x6f,0x6e])](_0x157e90([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd934ac,_0x292153)=>{_0x292153[0x0][_0x157e90([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x46d1aa++,_0x46d1aa==(0x47a284fe^_0x182b9e)&&(_0x30e630(),_0xd934ac[_0x157e90([0x6f,0x66,0x66])]());});}))];return window[_0x157e90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x157e90([0x72,0x61,0x63,0x65])](_0x2b9b7f)[_0x157e90([0x74,0x68,0x65,0x6e])](()=>_0x55c56b);}async function _0x38be89(){await _0x38bba3,_0x5a9140[_0x157e90([0x6d,0x6f,0x64,0x65,0x6c])][_0x157e90([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40d234,_0x5a9140[_0x157e90([0x6d,0x6f,0x64,0x65,0x6c])][_0x157e90([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40d234,_0x5a9140[_0x157e90([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x157e90([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x196463(_0x460583){const _0x3f3390=_0x56bcf4();_0x5a9140[_0x3f3390]=_0x157e90([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x460583,_0x460583!=_0x157e90([0x56,0x61,0x6c,0x69,0x64])&&_0x38be89();}function _0x56bcf4(){const _0x27ed3c=window[_0x157e90([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x157e90([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x157e90([0x6e,0x6f,0x77])]())[_0x157e90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x157e90([0x2e]),'');let _0x2a5c6c=_0x157e90([0x75]);for(let _0x428446=0x0;_0x428446<_0x27ed3c[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x428446+=0x2){let _0x473d8d=window[_0x157e90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27ed3c[_0x157e90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x428446,_0x428446+0x2));_0x473d8d>=_0x44b716[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x473d8d-=_0x44b716[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a5c6c+=_0x44b716[_0x473d8d];}return _0x2a5c6c;}function _0x1f7cec(){const _0x1b6648=_0x4ba1fd[_0x157e90([0x73,0x70,0x6c,0x69,0x74])](_0x157e90([0x2e]));if(0x3!=_0x1b6648[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ed49f(_0x1b6648[0x1]);function _0x4ed49f(_0x234d5e){const _0x220339=_0x22fbcc(_0x234d5e);return _0x220339&&_0x592c52()?_0x220339:null;function _0x592c52(){const _0x66d6ab=_0x220339[_0x157e90([0x6a,0x74,0x69])],_0x4debdb=window[_0x157e90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x66d6ab[_0x157e90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x66d6ab[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fae26={..._0x220339,[_0x157e90([0x6a,0x74,0x69])]:_0x66d6ab[_0x157e90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x66d6ab[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fae26[_0x157e90([0x76,0x63])],_0x3b077d(_0x2fae26)==_0x4debdb;}}}async function _0x147dd4(){let _0xeb7772=!0x0;try{const _0x57bce3=_0x4ba1fd[_0x157e90([0x73,0x70,0x6c,0x69,0x74])](_0x157e90([0x2e])),[_0x41ef03,_0x35b43c,_0x1827f9]=_0x57bce3;return _0x5df3f0(_0x41ef03),await _0x2a9f16(_0x41ef03,_0x35b43c,_0x1827f9),_0xeb7772;}catch{return!0x1;}function _0x5df3f0(_0x441282){const _0x4948d5=_0x22fbcc(_0x441282);_0x4948d5&&_0x4948d5[_0x157e90([0x61,0x6c,0x67])]==_0x157e90([0x45,0x53,0x32,0x35,0x36])||(_0xeb7772=!0x1);}async function _0x2a9f16(_0x1264da,_0xeb3417,_0x4f842e){const _0xaad112=window[_0x157e90([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x157e90([0x66,0x72,0x6f,0x6d])](_0x2387fa(_0x4f842e),_0x1efec5=>_0x1efec5[_0x157e90([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a402d=new window[(_0x157e90([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x157e90([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1264da+_0x157e90([0x2e])+_0xeb3417),_0x554468=window[_0x157e90([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x157e90([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x554468)return;const _0x4ea1a8=await _0x554468[_0x157e90([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x157e90([0x6a,0x77,0x6b]),_0x29938b,{[_0x157e90([0x6e,0x61,0x6d,0x65])]:_0x157e90([0x45,0x43,0x44,0x53,0x41]),[_0x157e90([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x157e90([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x157e90([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x554468[_0x157e90([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x157e90([0x6e,0x61,0x6d,0x65])]:_0x157e90([0x45,0x43,0x44,0x53,0x41]),[_0x157e90([0x68,0x61,0x73,0x68])]:{[_0x157e90([0x6e,0x61,0x6d,0x65])]:_0x157e90([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ea1a8,_0xaad112,_0x2a402d)||(_0xeb7772=!0x1);}}function _0x22fbcc(_0x4e6860){return _0x4e6860[_0x157e90([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x157e90([0x65,0x79]))?JSON[_0x157e90([0x70,0x61,0x72,0x73,0x65])](_0x2387fa(_0x4e6860)):null;}function _0x2387fa(_0x35ce57){return window[_0x157e90([0x61,0x74,0x6f,0x62])](_0x35ce57[_0x157e90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x157e90([0x2b]))[_0x157e90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x157e90([0x2f])));}function _0x3b077d(_0x50fc58){let _0x4cc133=0x1505;function _0x5ab1d1(_0x28fbe5){for(let _0x30a032=0x0;_0x30a032<_0x28fbe5[_0x157e90([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a032++){const _0x53cad3=_0x28fbe5[_0x157e90([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a032);_0x4cc133=(_0x4cc133<<0x5)+_0x4cc133+_0x53cad3,_0x4cc133&=_0x4cc133;}}function _0x2e2eb5(_0x468f0a){Array[_0x157e90([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x468f0a)?_0x468f0a[_0x157e90([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e2eb5):_0x468f0a&&typeof _0x468f0a==_0x157e90([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x157e90([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x468f0a)[_0x157e90([0x73,0x6f,0x72,0x74])]()[_0x157e90([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55d2fa,_0x19b499])=>{_0x5ab1d1(_0x55d2fa),_0x2e2eb5(_0x19b499);}):_0x5ab1d1(window[_0x157e90([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x468f0a));}return _0x2e2eb5(_0x50fc58),_0x4cc133>>>0x0;}function _0x42a5ac(_0x7cd555){return _0x7cd555[_0x157e90([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x157e90([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x157e90([0x30]));}function _0x5c9b1e(_0x3baf07){return _0x3baf07[_0x157e90([0x73,0x70,0x6c,0x69,0x74])]('')[_0x157e90([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x157e90([0x6a,0x6f,0x69,0x6e])]('');}function _0x40d234(){}function _0x157e90(_0x2b02e3){return _0x2b02e3['map'](_0x3dd307=>String['fromCharCode'](_0x3dd307))['join']('');}_0x196463(await _0x143ddd());}(this);}['_moveSelectionToFootnoteDefinition'](_0x344289){const {plugins:_0x244dc1,editing:_0x18855d,model:_0x1fc2a5}=this['editor'],_0x2b7982=_0x244dc1['get'](f)['getFootnote'](_0x344289);return!!_0x2b7982&&(_0x1fc2a5['change'](_0x4c7f39=>{_0x4c7f39['setSelection'](_0x4c7f39['createPositionAt'](_0x2b7982['definition'],'end'));}),_0x18855d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x47953d){const {plugins:_0x1dff08,editing:_0x59624f,model:_0x5da4b4}=this['editor'],_0x138157=_0x1dff08['get'](f)['getFootnote'](_0x47953d);return!!_0x138157&&(_0x5da4b4['change'](_0x13e8cb=>{_0x13e8cb['setSelection'](_0x138157['reference'],'on');}),_0x59624f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x12e30f}=this['editor']['model'],_0x5003e2=this['editor']['config']['get']('footnotes.multiBlock');_0x12e30f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x12e30f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x12e30f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5003e2?_0x12e30f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x12e30f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x12e30f['addChildCheck'](_0x56bcd8=>{for(const _0x43f1f3 of _0x56bcd8)if('footnoteDefinition'===_0x43f1f3['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2c9008}=this,{conversion:_0x38a7d5,editing:_0x29c2ba}=_0x2c9008,{t:t}=_0x2c9008['locale'];_0x38a7d5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5d270e,{writer:_0x1f59ff,consumable:_0x4cf112})=>{const _0x2a50b2=_0x5d270e['getChild'](0x0);if(!_0x2a50b2||!_0x2a50b2['is']('element','a'))return null;const _0x3ad8d0=_0x2a50b2['getAttribute']('href')||'';if(!_0x3ad8d0['startsWith']('#'))return null;const _0x2541f3=_0x3ad8d0['replace'](/^#/,'');if(!_0x2541f3)return null;_0x4cf112['consume'](_0x2a50b2,{'name':!0x0,'attributes':['href']});for(const {item:_0x5bd33a}of _0x29c2ba['view']['createRangeIn'](_0x2a50b2))_0x5bd33a['is']('$textProxy')?_0x4cf112['consume'](_0x5bd33a['textNode'],{'name':!0x0}):_0x5bd33a['is']('element')&&_0x4cf112['consume'](_0x5bd33a,{'name':!0x0});return _0x1f59ff['createElement']('footnoteRef',{'footnoteId':_0x2541f3});}}),_0x38a7d5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x310201,{writer:_0x18071c})=>D(_0x310201,_0x18071c)}),_0x38a7d5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x107c8b,{writer:_0x3a5f53})=>{const _0x33e1d3=_0x107c8b['getAttribute']('footnoteCounter');return _0x4e379c(D(_0x107c8b,_0x3a5f53),_0x3a5f53,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x33e1d3)});}});}['_defineDefinitionsConverters'](){const {editor:_0x30f8cb}=this,{t:t}=_0x30f8cb['locale'],{conversion:_0x510d4a}=_0x30f8cb;_0x510d4a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x510d4a['for']('upcast')['add'](_0x4fe11d=>{_0x4fe11d['on']('element:ol',(_0x4b356d,_0x7fbad,_0x90f293)=>{const _0x24991a=_0x7fbad['viewItem'];if(!_0x24991a['hasClass']('footnotes-list')||!_0x7fbad['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x90f293['consumable']['consume'](_0x24991a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x20f729,modelCursor:_0x30b4e9}=_0x90f293['convertChildren'](_0x7fbad['viewItem'],_0x7fbad['modelCursor']);_0x7fbad['modelRange']=_0x20f729,_0x7fbad['modelCursor']=_0x30b4e9;}),_0x4fe11d['on']('element:hr',(_0x3670ce,_0x6c70f8,_0x5b03bc)=>{const _0x39ae16=_0x6c70f8['viewItem'];_0x39ae16['hasClass']('footnotes-divider')&&_0x6c70f8['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5b03bc['consumable']['consume'](_0x39ae16,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x510d4a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4cc1b3,{writer:_0x25badc})=>v(_0x25badc)}),_0x510d4a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3a800b,{writer:_0x4c3a41})=>{const _0x3e4302=v(_0x4c3a41,{'data-footnotes-list-label':t('Footnotes')}),_0x1dfd59=_0x4e379c(_0x3e4302,_0x4c3a41,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4c3a41['setCustomProperty']('footnotesDefinitions',!0x0,_0x1dfd59),_0x1dfd59;}});}['_defineDefinitionConverters'](){const {editor:_0x295fb5}=this,{conversion:_0x1a8d6e,locale:_0x1fd0de}=_0x295fb5,_0x5e9a24=_0x295fb5['config']['get']('footnotes.multiBlock');_0x1a8d6e['for']('upcast')['add'](_0xd3e766=>{_0xd3e766['on']('element:li',(_0x3e3980,_0x459d3a,_0xa3e9e9)=>{const _0x186956=_0x459d3a['viewItem'];if(!_0x186956['hasClass']('footnote-definition')||!_0x186956['getAttribute']('id'))return;const _0x27b10c=_0x186956['parent'];if(!_0x27b10c['is']('element','ol')||!_0x27b10c['hasClass']('footnotes-list'))return;if(!_0xa3e9e9['consumable']['test'](_0x186956,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5da241=_0xa3e9e9['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x186956['getAttribute']('id')});if(!_0xa3e9e9['safeInsert'](_0x5da241,_0x459d3a['modelCursor']))return;_0xa3e9e9['consumable']['consume'](_0x186956,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x27c22a=Array['from'](_0x186956['getChildren']())['find'](_0x12f30c=>_0x12f30c['is']('element')&&_0x12f30c['hasClass']('footnote-content'));for(const _0x2575cc of _0x186956['getChildren']())_0x2575cc['is']('element')&&(_0xa3e9e9['consumable']['consume'](_0x2575cc,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xa3e9e9['consumable']['consume'](_0x2575cc,{'name':!0x0,'classes':'footnote-content'}));if(_0x27c22a){if(_0x5e9a24)_0xa3e9e9['convertChildren'](_0x27c22a,_0x5da241);else{const _0x53ba80=_0xa3e9e9['writer']['createElement']('footnoteInlineContent');_0xa3e9e9['writer']['insert'](_0x53ba80,_0x5da241),_0xa3e9e9['convertChildren'](_0x27c22a,_0x53ba80);}}_0xa3e9e9['updateConversionResult'](_0x5da241,_0x459d3a);});}),_0x1a8d6e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x29755f,{writer:_0x1cd6e5})=>b(_0x29755f,_0x1cd6e5,_0x1fd0de,{'dataPipeline':!0x0})}),_0x1a8d6e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d1609,{writer:_0x2de264})=>b(_0x4d1609,_0x2de264,_0x1fd0de)});}['_defineBogusParagraphConverters'](){const {editor:_0xa3acbe}=this,{conversion:_0x4f2146}=_0xa3acbe;_0xa3acbe['config']['get']('footnotes.multiBlock')?(_0x4f2146['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4f2146['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xa3acbe['model']['document'],'change:data',()=>{!function(_0x5f45d9,_0x5c5c63){const _0x2dbff0=_0x5f45d9['document']['differ'],_0x9f9ba2=new Set();for(const _0x36752b of _0x2dbff0['getChanges']()){const _0xcaff80='attribute'==_0x36752b['type']?_0x36752b['range']['start']['parent']:_0x36752b['position']['parent'];_0xcaff80['is']('element','footnoteDefinition')&&_0x9f9ba2['add'](_0xcaff80);}for(const _0x30b0cb of _0x9f9ba2['values']()){const _0x29b928=Array['from'](_0x30b0cb['getChildren']())['filter'](_0x32f907=>g(_0x32f907,_0x5c5c63['mapper']));for(const _0x4eab18 of _0x29b928)_0x5c5c63['reconvertItem'](_0x4eab18);}}(_0xa3acbe['model'],_0xa3acbe['editing']);})):(_0x4f2146['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4f2146['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x11484d,{writer:_0x17f26a})=>{const _0x374def=_0x17f26a['createContainerElement']('span');return _0x17f26a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x374def),_0x374def;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3836f0}=this,{editing:_0x1f7926,t:t}=_0x3836f0,_0x56b21a=_0x3836f0['model']['document']['selection'];_0x3836f0['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3836f0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1f7926['view']['document'],'enter',(_0x28606d,_0x5a8fc7)=>{const _0x454a22=function(_0x3a01fd){const _0x15e2ea=_0x3a01fd['getSelectedElement']();if(_0x15e2ea?.['is']('element','footnoteRef'))return _0x15e2ea;return null;}(_0x56b21a);if(_0x454a22){const _0x254502=_0x454a22['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x254502),_0x5a8fc7['preventDefault'](),_0x28606d['stop']();}},{'context':_0x25bf72});}['_defineClickHandlers'](){const {editor:_0x576bf6}=this,{editing:_0x551336}=_0x576bf6;_0x576bf6['editing']['view']['addObserver'](_0x7a0c6f),_0x576bf6['editing']['view']['addObserver'](_0x12e1af);let _0x20ce70=!0x1;this['listenTo'](_0x551336['view']['document'],'pointerdown',(_0x41fde0,_0x2f9d4e)=>{const {target:_0x3d8052}=_0x2f9d4e,_0x4525f3=_0x551336['view']['document']['selection'];_0x20ce70=!!(_0x3d8052?.['is']('element','a')&&_0x3d8052['parent']?.['is']('element','sup')&&_0x3d8052['parent']['hasClass']('footnote'))&&_0x4525f3['getSelectedElement']()===_0x3d8052['parent'];},{'priority':'high'}),this['listenTo'](_0x551336['view']['document'],'click',(_0x6b2ce5,_0x2795c1)=>{const {target:_0x1d6d5c}=_0x2795c1;if(!_0x1d6d5c?.['is']('element','a'))return;if(_0x1d6d5c['parent']?.['is']('element','sup')&&_0x1d6d5c['parent']['hasClass']('footnote')&&!_0x20ce70)return void _0x2795c1['preventDefault']();let _0x2e0ec4=_0x1d6d5c['getAttribute']('href');if(!_0x2e0ec4?.['startsWith']('#'))return;_0x2e0ec4=_0x2e0ec4['slice'](0x1);let _0x528aed=!0x1;(_0x2e0ec4['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2e0ec4['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2e0ec4))&&(_0x528aed=!0x0),_0x528aed&&(_0x2795c1['preventDefault'](),_0x6b2ce5['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4c0c58}={}){return(_0x114db7,{writer:_0x3a3910})=>{if(!p(_0x114db7))return null;if(!_0x4c0c58)return _0x3a3910['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xe4ce0c=_0x3a3910['createContainerElement']('p');return _0x3a3910['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xe4ce0c),_0xe4ce0c;};}function p(_0x403453){const {parent:_0x1ff445}=_0x403453;if(!_0x1ff445?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1ff445['childCount'])return!0x1;for(const _0x5565d of _0x403453['getAttributeKeys']())if(!_0x5565d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5565d)return!0x1;return!0x0;}function g(_0x39cf88,_0x212755){if(!_0x39cf88['is']('element','paragraph'))return!0x1;const _0x4a5229=_0x212755['toViewElement'](_0x39cf88);return!!_0x4a5229&&p(_0x39cf88)!==_0x4a5229['is']('element','span');}function J(_0x1e3d9c){return _0x25bf72(_0x1e3d9c)&&_0x1e3d9c['is']('containerElement')&&!!_0x1e3d9c['getCustomProperty']('footnotesDefinitions');}function v(_0x24a5a1,_0x27c17c={}){const _0x32be19=_0x24a5a1['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xc1377=_0x24a5a1['createContainerElement']('ol',{'class':'footnotes-list'},_0x24a5a1['createSlot']());return _0x24a5a1['createContainerElement']('div',{'class':'footnotes',..._0x27c17c},[_0x32be19,_0xc1377]);}function D(_0x4d999a,_0x541864){const _0x2e9abe=_0x4d999a['getAttribute']('footnoteId'),_0x2a31b7=_0x4d999a['getAttribute']('footnoteCounter'),_0x429bdd=_0x541864['createUIElement']('a',{'href':'#'+_0x2e9abe},function(_0x36f2ce){const _0x3bed2e=this['toDomElement'](_0x36f2ce);return _0x3bed2e['textContent']=_0x2a31b7,_0x3bed2e;}),_0x5a6eab=_0x541864['createContainerElement']('sup',{'id':'ref-'+_0x2e9abe,'class':'footnote'},[_0x429bdd]);return _0x5a6eab['getFillerOffset']=()=>null,_0x5a6eab;}function b(_0x3bcb45,_0x55fa43,_0x460f1b,{dataPipeline:_0x5345c0}={}){const {t:t}=_0x460f1b,_0x22630c=_0x3bcb45['getAttribute']('footnoteId'),_0x42630f=_0x55fa43['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x22630c},function(_0x123ffa){const _0x2694b9=this['toDomElement'](_0x123ffa);return _0x2694b9['innerText']='^',_0x2694b9;}),_0x45c6a5=_0x5345c0?_0x55fa43['createContainerElement']('div',{'class':'footnote-content'}):_0x1ff871(_0x55fa43['createEditableElement']('div',{'class':'footnote-content'}),_0x55fa43,{'label':t('Footnote\x20content.')});return _0x55fa43['insert'](_0x55fa43['createPositionAt'](_0x45c6a5,0x0),_0x55fa43['createSlot']()),_0x55fa43['createContainerElement']('li',{'class':'footnote-definition','id':_0x22630c},[_0x42630f,_0x45c6a5]);}class e extends _0x2e1d26{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1815bd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0xbe9403}=this,{plugins:_0xe65f8b,model:_0x196850}=_0xbe9403,_0x2688c3=_0xe65f8b['get'](_0x1815bd),_0x5a6d56=_0xe65f8b['get'](f);this['listenTo'](_0x2688c3,'outputTransformation',(_0x173af5,_0x5bd0dd)=>{const _0xdc58dd=c(_0x196850['createRangeIn'](_0x5bd0dd['content']));if(!_0xdc58dd['length'])return;const _0x3a1a27=_0x5a6d56['getFootnotes'](),_0x356ede=_0xdc58dd['reduce']((_0x34b607,_0xc53d3b)=>{const _0x441953=_0x3a1a27['find'](_0x4c186c=>_0x4c186c['id']===_0xc53d3b);if(_0x441953){const _0x5125f6=_0xbe9403['data']['toView'](_0x441953['definition'],{'isClipboardPipeline':!0x0}),_0x29e78a=_0xbe9403['data']['htmlProcessor']['toData'](_0x5125f6);_0x34b607[_0x441953['id']]=_0x29e78a;}return _0x34b607;},Object['create'](null));_0x5bd0dd['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x356ede));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x366403}=this,{model:_0x42dc8c,plugins:_0x2a67f7}=_0x366403,{view:_0x5ebaff}=_0x366403['editing'],_0xd1ff25=_0x2a67f7['get'](_0x1815bd),_0x485790=_0x2a67f7['get'](f),_0x4bc9da=_0x366403['config']['get']('footnotes.multiBlock');let _0x13047e=null;this['listenTo'](_0x5ebaff['document'],'clipboardInput',(_0x2d56f9,_0x288eae)=>{const _0x18bf6f=_0x288eae['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x13047e=_0x18bf6f?JSON['parse'](_0x18bf6f):null;}),this['listenTo'](_0xd1ff25,'contentInsertion',(_0x18b252,_0x291746)=>{const _0x1facf7=_0x291746['sourceEditorId']===this['editor']['id'];_0x1facf7&&'drop'===_0x291746['method']||_0x42dc8c['change'](_0x183981=>{let _0x4e1a90=_0x485790['getFootnotesDefinitionsObjectElement']();const _0x2119d2=!!_0x4e1a90&&Array['from'](_0x42dc8c['document']['selection']['getSelectedBlocks']())['includes'](_0x4e1a90);if((_0x4e1a90&&!_0x2119d2||!_0x4e1a90&&!_0x13047e)&&function(_0x370b35,_0x1b5b20){const _0x244fcc=[];for(const {item:_0x185e7f}of _0x370b35['createRangeIn'](_0x1b5b20))_0x185e7f['is']('element','footnotesDefinitions')&&_0x244fcc['push'](_0x185e7f);for(const _0x27946a of _0x244fcc)_0x370b35['remove'](_0x27946a);}(_0x183981,_0x291746['content']),!_0x13047e)return;const {selection:_0x57ef08}=_0x42dc8c['document'],_0xf6809d=_0x57ef08['getFirstRange']()['root'];_0x4e1a90&&!_0x2119d2||(_0x4e1a90=function(_0x23950f,_0x2f9992){for(const {item:_0x1697f0}of _0x23950f['createRangeIn'](_0x2f9992))if(_0x1697f0['is']('element','footnotesDefinitions'))return _0x1697f0;return null;}(_0x183981,_0x291746['content']),_0x4e1a90||=_0x485790['_insertEmptyFootnotesDefinitionsContainer'](_0x183981,_0xf6809d));const _0x4d807e=Array['from'](_0x57ef08['getRanges']())['flatMap'](c),_0xcde8b6=function(_0x239874,_0x1bfa72,_0x474c22){const _0x52e06a=Object['create'](null);for(const {item:_0x9ebe6f}of _0x239874['createRangeIn'](_0x1bfa72))if(_0x9ebe6f['is']('element','footnoteRef')){const _0x440f98=_0x9ebe6f['getAttribute']('footnoteId');if(!_0x474c22(_0x440f98))continue;_0x52e06a[_0x440f98]||(_0x52e06a[_0x440f98]=_0x1d035b()),_0x239874['setAttribute']('footnoteId',_0x52e06a[_0x440f98],_0x9ebe6f);}return _0x52e06a;}(_0x183981,_0x291746['content'],_0x133923=>{if(!_0x1facf7)return!0x0;return!!_0x485790['getFootnote'](_0x133923)&&!_0x4d807e['includes'](_0x133923);});for(const [_0x34a34e,_0x466338]of Object['entries'](_0x13047e)){const _0x3ab7f7=_0xcde8b6[_0x34a34e]||_0x34a34e,_0x227fe7=_0x183981['createElement']('footnoteDefinition',{'footnoteId':_0x3ab7f7}),_0x389feb=_0x366403['data']['htmlProcessor']['toView'](_0x466338);let _0x359cda;if(_0x4bc9da)_0x359cda=_0x366403['data']['toModel'](_0x389feb,_0x227fe7);else{_0x359cda=_0x183981['createElement']('footnoteInlineContent');const _0x20c0c0=_0x366403['data']['toModel'](_0x389feb,_0x359cda);_0x183981['insert'](_0x20c0c0,_0x359cda);}_0x183981['append'](_0x359cda,_0x227fe7),_0x183981['insert'](_0x227fe7,_0x4e1a90,'end');}_0x13047e=null;});});}}function c(_0x2fa8ab){const _0x4a4d08=new Set();for(const {item:_0x363e33}of _0x2fa8ab)_0x363e33['is']('element','footnoteRef')&&_0x4a4d08['add'](_0x363e33['getAttribute']('footnoteId'));return Array['from'](_0x4a4d08);}class i extends _0x2e1d26{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x36be24}=this,{componentFactory:_0x47198a}=_0x36be24['ui'];_0x47198a['add']('insertFootnote',x(_0x36be24,_0x31da72)),_0x47198a['add']('menuBar:insertFootnote',x(_0x36be24,_0x9714a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10ad5d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a23cd;for(const _0x5eb3bf in _0x10ad5d){const _0xced4e0=_0x5eb3bf,_0x29536b=_0x10ad5d[_0xced4e0];if('footnotesLicenseKeyValid'==_0x29536b||'footnotesLicenseKeyInvalid'==_0x29536b||'footnotesLicenseKeyExpired'==_0x29536b||'footnotesLicenseKeyDomainLimit'==_0x29536b||'footnotesLicenseKeyNotAllowed'==_0x29536b||'footnotesLicenseKeyEvaluationLimit'==_0x29536b||'footnotesLicenseKeyTrialLimit'==_0x29536b||'footnotesLicenseKeyUsageLimit'==_0x29536b){delete _0x10ad5d[_0xced4e0],_0x3a23cd=_0x29536b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3a23cd&&_0x10ad5d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3a23cd&&_0x10ad5d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3a23cd&&_0x10ad5d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3a23cd&&_0x10ad5d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3a23cd&&_0x10ad5d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x3a23cd&&_0x10ad5d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x3a23cd&&_0x10ad5d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x425d67,_0xa3cd7a){const _0x12a1e1=_0x425d67['commands']['get']('insertFootnote');return _0x9fd889=>{const {t:t}=_0x9fd889,_0x5b0604=new _0xa3cd7a(_0x9fd889),_0x335b08=_0x5b0604 instanceof _0x9714a;return _0x5b0604['bind']('isEnabled')['to'](_0x12a1e1,'isEnabled'),_0x5b0604['set']({'label':t(_0x335b08?'Footnote':'Insert\x20footnote'),'icon':_0x1f13ef,'tooltip':!0x0}),_0x5b0604['on']('execute',()=>{_0x12a1e1['execute'](),_0x425d67['editing']['view']['focus']();}),_0x5b0604;};}class lt extends _0x2e1d26{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x43786c{['refresh'](){const {editor:_0x3a70b6}=this,_0x2b955c=_0x3a70b6['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2b955c,this['value']=_0x2b955c?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5e7eaa}){const {editor:_0x5938c0}=this,_0x32f5d6=_0x5938c0['plugins']['get'](f),_0x533e10=_0x32f5d6['getFootnotesDefinitionsObjectElement']();_0x533e10&&Q['includes'](_0x5e7eaa)&&_0x5938c0['model']['change'](_0x1b30bf=>{_0x1b30bf['setAttribute']('footnotesListStyle',_0x5e7eaa,_0x533e10),_0x32f5d6['_updateFootnotesCounters'](_0x1b30bf);});}}class C extends _0x43786c{['refresh'](){const {editor:_0x11b92e}=this,_0x1e1f27=_0x11b92e['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1e1f27,this['value']=_0x1e1f27?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x42003a}){const {editor:_0x7c77bf}=this,_0x24c21e=_0x7c77bf['plugins']['get'](f),_0x5251a0=_0x24c21e['getFootnotesDefinitionsObjectElement']();_0x5251a0&&Number['isInteger'](_0x42003a)&&_0x7c77bf['model']['change'](_0x5e03a2=>{_0x5e03a2['setAttribute']('footnotesListStart',_0x42003a,_0x5251a0),_0x24c21e['_updateFootnotesCounters'](_0x5e03a2);});}}class P extends _0x2e1d26{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x120b79}=this;_0x120b79['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x120b79['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x120b79['commands']['add']('footnotesStyle',new S(_0x120b79)),_0x120b79['commands']['add']('footnotesStart',new C(_0x120b79)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x154c8e}=this,{schema:_0x25a24b}=_0x154c8e['model'];_0x25a24b['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4ff209}=this,{conversion:_0x5b9e95,model:_0x1861c2}=_0x4ff209,{schema:_0x587977}=_0x1861c2;_0x5b9e95['for']('upcast')['add'](_0x1bde04=>{_0x1bde04['on']('element:ol',(_0x547e40,_0x52f1de,_0x443332)=>{const _0x194b45=_0x52f1de['viewItem'],_0x5db76f=_0x52f1de['modelCursor']?.['parent'];_0x194b45['hasClass']('footnotes-list')&&_0x5db76f?.['is']('element','footnotesDefinitions')&&(function(_0x36dce7,_0x466f36,_0x203dc3,_0x50be51){if(!_0x50be51['checkAttribute'](_0x466f36,'footnotesListStart'))return;let _0x5b86e2=0x1;const _0x1cf4ea=_0x203dc3['consumable']['consume'](_0x36dce7,{'attributes':'start'});if(_0x1cf4ea){const _0x5f5a55=Number['parseInt'](_0x36dce7['getAttribute']('start'),0xa);Number['isNaN'](_0x5f5a55)||(_0x5b86e2=_0x5f5a55);}!_0x1cf4ea&&_0x466f36['hasAttribute']('footnotesListStart')||_0x203dc3['writer']['setAttribute']('footnotesListStart',_0x5b86e2,_0x466f36);}(_0x194b45,_0x5db76f,_0x443332,_0x587977),function(_0x4d05d8,_0xd5b817,_0x8f421f,_0x28b7f9){if(!_0x28b7f9['checkAttribute'](_0xd5b817,'footnotesListStyle'))return;let _0x363d3f='decimal',_0x54da9b=!0x1;if(_0x8f421f['consumable']['consume'](_0x4d05d8,{'attributes':'type'})){const _0x118a88={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4d05d8['getAttribute']('type')];_0x118a88&&(_0x363d3f=_0x118a88),_0x54da9b=!0x0;}_0x8f421f['consumable']['consume'](_0x4d05d8,{'styles':'list-style-type'})&&(_0x363d3f=function(_0x4bd308){switch(_0x4bd308){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x4bd308;}}(_0x4d05d8['getStyle']('list-style-type')),_0x54da9b=!0x0),!_0x54da9b&&_0xd5b817['hasAttribute']('footnotesListStyle')||_0x8f421f['writer']['setAttribute']('footnotesListStyle',_0x363d3f,_0xd5b817);}(_0x194b45,_0x5db76f,_0x443332,_0x587977));});}),_0x5b9e95['for']('downcast')['add'](_0xd9e6b1=>{_0xd9e6b1['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xee4db4,_0x5771c7,_0x2897f0)=>{if(!_0x2897f0['consumable']['consume'](_0x5771c7['item'],_0xee4db4['name']))return;const _0x26cff9=M(_0x5771c7['item'],_0x2897f0['mapper']),{attributeNewValue:_0x460754}=_0x5771c7;null==_0x460754||0x1===_0x460754?_0x2897f0['writer']['removeAttribute']('start',_0x26cff9):_0x2897f0['writer']['setAttribute']('start',String(_0x460754),_0x26cff9);}),_0xd9e6b1['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x492d68,_0x5b9192,_0x1fec34)=>{if(!_0x1fec34['consumable']['consume'](_0x5b9192['item'],_0x492d68['name']))return;const _0x360812=M(_0x5b9192['item'],_0x1fec34['mapper']),{attributeNewValue:_0x5de46f}=_0x5b9192;_0x5de46f&&'decimal'!==_0x5de46f?_0x1fec34['writer']['setStyle']('list-style-type',_0x5de46f,_0x360812):_0x1fec34['writer']['removeStyle']('list-style-type',_0x360812);});});}['_definePostfixer'](){const {editor:_0x28bab8}=this,{model:_0x19a498}=_0x28bab8,_0x52763b=_0x28bab8['plugins']['get'](f),_0x12bb76=this['_getDefaultListStyle'](),_0x569d8f=this['_getDefaultStartIndex']();_0x19a498['document']['registerPostFixer'](_0x428203=>{const _0x69015d=_0x19a498['document']['differ']['getChanges']();let _0x241446=!0x1;for(const _0x411a67 of _0x69015d){if('insert'!==_0x411a67['type']||'$text'===_0x411a67['name'])continue;const _0x16839d=_0x19a498['createRangeOn'](_0x411a67['position']['nodeAfter']);for(const _0x337263 of _0x16839d['getItems']())_0x337263['is']('element','footnotesDefinitions')&&(!_0x337263['hasAttribute']('footnotesListStart')&&_0x19a498['schema']['checkAttribute'](_0x337263,'footnotesListStart')&&(_0x428203['setAttribute']('footnotesListStart',_0x569d8f,_0x337263),_0x241446=!0x0),!_0x337263['hasAttribute']('footnotesListStyle')&&_0x19a498['schema']['checkAttribute'](_0x337263,'footnotesListStyle')&&(_0x428203['setAttribute']('footnotesListStyle',_0x12bb76,_0x337263),_0x241446=!0x0));}return _0x241446&&_0x52763b['_updateFootnotesCounters'](_0x428203),_0x241446;});}['_defineFormatter'](){const {editor:_0x3a5cb4}=this;_0x3a5cb4['plugins']['get'](f)['setFootnoteFormatter'](_0x21d3ea=>this['_formatFootnoteListValue'](_0x21d3ea));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1b9bfb,value:_0x1a2e56,digits:_0x539738}){const _0x3bd2fa=_0x1b9bfb['getAttribute']('footnotesListStyle'),_0x9a281c=_0x1b9bfb['getAttribute']('footnotesListStart'),_0x55fe7=Math['floor'](_0x1a2e56)+(_0x9a281c??0x1)-0x1;switch(_0x3bd2fa){case'decimal-leading-zero':return function(_0x47fadb,_0x509f20){return String(_0x47fadb)['padStart'](_0x509f20,'0');}(_0x55fe7,Math['max'](0x2,_0x539738));case'lower-alpha':case'lower-latin':return N(_0x55fe7,!0x1);case'upper-alpha':case'upper-latin':return N(_0x55fe7,!0x0);case'lower-roman':return X(_0x55fe7,!0x1);case'upper-roman':return X(_0x55fe7,!0x0);default:return String(_0x55fe7);}}}function M(_0x3664d3,_0x4ebdfc){const _0x761719=_0x4ebdfc['toViewElement'](_0x3664d3);return Array['from'](_0x761719['getChildren']())['find'](_0x3f3366=>_0x3f3366['is']('element','ol')&&_0x3f3366['hasClass']('footnotes-list'));}function N(_0x396942,_0x338147){let _0x476d92='',_0x2a77bd=_0x396942;for(;_0x2a77bd>0x0;){const _0x30925a=(_0x2a77bd-0x1)%0x1a;_0x476d92=String['fromCharCode'](0x61+_0x30925a)+_0x476d92,_0x2a77bd=Math['floor']((_0x2a77bd-0x1)/0x1a);}return _0x338147?_0x476d92['toUpperCase']():_0x476d92;}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(_0x26e5b8,_0x35a903){let _0x228fb1='',_0x7d0d9e=_0x26e5b8;for(const {value:_0x4acf05,numeral:_0x4a45e1}of V)for(;_0x7d0d9e>=_0x4acf05;)_0x228fb1+=_0x4a45e1,_0x7d0d9e-=_0x4acf05;return _0x35a903?_0x228fb1:_0x228fb1['toLowerCase']();}class H extends _0x22dafb{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x589ea8();['focusCycler'];constructor(_0x4478bb,{styleButtonViews:_0x17586e,styleGridAriaLabel:_0x5a88c4}){super(_0x4478bb),(this['focusCycler']=new _0x328ca3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x17586e,_0x5a88c4),[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 _0x1a4d55 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1a4d55['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 _0x3a419c=_0x2c9f84=>_0x2c9f84['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a419c),this['keystrokes']['set']('arrowleft',_0x3a419c),this['keystrokes']['set']('arrowup',_0x3a419c),this['keystrokes']['set']('arrowdown',_0x3a419c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x42d27b,_0x50630a){const _0x27886b=new _0x22dafb(this['locale']);return _0x27886b['children']=_0x27886b['createCollection'](),_0x27886b['children']['addMany'](_0x42d27b),_0x27886b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x50630a,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x27886b['children']}),_0x27886b['children']['delegate']('execute')['to'](this),_0x27886b['focus']=function(){for(const _0xe63a4a of this['children'])if(_0xe63a4a instanceof _0x31da72&&_0xe63a4a['isOn'])return void _0xe63a4a['focus']();this['children']['first']['focus']();},_0x27886b['focusTracker']=new ot(),_0x27886b['keystrokes']=new rt(),_0x27886b['render'](),_0x27886b['keystrokes']['listenTo'](_0x27886b['element']),this['children']['add'](_0x27886b),_0x27886b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3b9951=this['_createStartIndexPropertyView'](),_0x16acc5=[_0x3b9951],_0x2143b0=new st(this['locale'],_0x16acc5);return _0x2143b0['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2143b0['buttonView']['bind']('isEnabled')['toMany'](_0x16acc5,'isEnabled',(..._0x46395b)=>_0x46395b['some'](_0x4f4a75=>_0x4f4a75)),_0x2143b0['buttonView']['on']('change:isEnabled',(_0x47cb69,_0x34d15a,_0x32fa3b)=>{_0x32fa3b||(_0x2143b0['isCollapsed']=!0x0);}),this['children']['add'](_0x2143b0),[_0x3b9951,_0x2143b0];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4d7754=new it(this['locale'],et);return _0x4d7754['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4d7754['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4d7754['fieldView']['on']('input',()=>{const _0x2f592d=_0x4d7754['fieldView']['element'],_0x432c03=_0x2f592d['valueAsNumber'];Number['isNaN'](_0x432c03)?_0x4d7754['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2f592d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x432c03}):_0x4d7754['errorText']=t(_0x432c03<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4d7754;}}class j extends _0x2e1d26{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x579298,_0x2994d7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5f4a87}=this,{componentFactory:_0x32a4ce}=_0x5f4a87['ui'];_0x5f4a87['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x32a4ce['add']('footnotesStyle',function(_0xc7843a){return _0x2cb748=>{const {t:t}=_0x2cb748,_0x1d34b8=_0xc7843a['commands']['get']('footnotesStyle'),_0x2d6b3e=_0x13246a(_0x2cb748),{buttonView:_0x10992a}=_0x2d6b3e;return _0x2d6b3e['class']='ck-footnotes-styles-dropdown',_0x2d6b3e['bind']('isEnabled')['to'](_0x1d34b8,'isEnabled'),_0x10992a['set']({'label':t('Footnotes\x20style'),'icon':_0x1f13ef,'tooltip':!0x0}),_0x2d6b3e['once']('change:isOpen',()=>{const _0x927912=function({editor:_0x332325,dropdownView:_0x45683d}){const {t:t}=_0x332325['locale'],_0x5a6ef5=t('Footnotes\x20definitions\x20styles'),_0x440dca=function(_0x3c838f){const t=_0x3c838f['locale']['t'],_0x467ad5=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x39352c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5498d7},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x94ed4e},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x57d357},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xbbf0ef},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2961e4}];return _0x467ad5['map'](function(_0x18c034){const _0x5dfd1e=_0x18c034['locale'];return({label:_0x5e72a9,icon:_0x20d1c9,tooltip:_0x26f293,style:_0x1c1a31})=>{const _0x53210e=_0x18c034['commands']['get']('footnotesStyle'),_0x3a388e=new _0x31da72(_0x5dfd1e);return _0x3a388e['set']({'label':_0x5e72a9,'icon':_0x20d1c9,'tooltip':_0x26f293}),_0x3a388e['bind']('isOn')['to'](_0x53210e,'value',_0x14c1a9=>_0x14c1a9===_0x1c1a31),_0x3a388e['bind']('isEnabled')['to'](_0x53210e,'isEnabled'),_0x3a388e['on']('execute',()=>{_0x18c034['execute']('footnotesStyle',{'value':_0x1c1a31}),_0x18c034['editing']['view']['focus']();}),_0x3a388e;};}(_0x3c838f));}(_0x332325),_0xe7e8f1=new H(_0x332325['locale'],{'styleGridAriaLabel':_0x5a6ef5,'styleButtonViews':_0x440dca}),_0x4febae=_0x332325['commands']['get']('footnotesStart');return _0xe7e8f1['startIndexFieldView']['bind']('isEnabled')['to'](_0x4febae),_0xe7e8f1['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x4febae),_0xe7e8f1['on']('footnotesListStart',(_0x46e757,_0x27b182)=>{_0x332325['execute']('footnotesStart',{'value':_0x27b182['startIndex']});}),_0xe7e8f1['delegate']('execute')['to'](_0x45683d),_0xe7e8f1;}({'editor':_0xc7843a,'dropdownView':_0x2d6b3e});_0x2d6b3e['panelView']['children']['add'](_0x927912);}),_0x2d6b3e;};}(_0x5f4a87));}['afterInit'](){const {editor:_0x67877f}=this,{t:t}=_0x67877f['locale'],_0x1e0a9b=_0x67877f['plugins']['get'](_0x2994d7),{defaultPositions:_0x15be8a}=_0x1d2395;_0x1e0a9b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x67877f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x42997e=>{let _0x3f9770=_0x42997e['getFirstPosition']()?.['parent'];return _0x3f9770?.['is']('$text')&&(_0x3f9770=_0x3f9770['parent']),_0x3f9770?.['is']('element')?_0x3f9770['findAncestor'](J):null;},'positions':[_0x15be8a['southArrowNorth'],_0x15be8a['southArrowNorthMiddleWest'],_0x15be8a['southArrowNorthMiddleEast'],_0x15be8a['southArrowNorthWest'],_0x15be8a['southArrowNorthEast'],_0x15be8a['northArrowSouth'],_0x15be8a['northArrowSouthMiddleWest'],_0x15be8a['northArrowSouthMiddleEast'],_0x15be8a['northArrowSouthWest'],_0x15be8a['northArrowSouthEast'],_0x15be8a['viewportStickyNorth']]});}}class ft extends _0x2e1d26{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0xd62532,Command as _0x45d31d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5c3508,isWidget as _0x208382,toWidgetEditable as _0x525d27,WidgetToolbarRepository as _0x18f029}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x35a928,logWarning as _0xf9eb08,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5efc24,ClickObserver as _0x13740d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x833588}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1c4869,ButtonView as _0x190394,View as _0x2dfd86,ViewCollection as _0x16cd73,FocusCycler as _0xb612c8,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0xd29b5,BalloonPanelView as _0x456029,createDropdown as _0x209405}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5c2f45,IconListStyleDecimal as _0x3f0806,IconListStyleDecimalLeadingZero as _0x1007cb,IconListStyleLowerRoman as _0x2c7244,IconListStyleUpperRoman as _0x51cf35,IconListStyleLowerLatin as _0x252d52,IconListStyleUpperLatin as _0x9aa7f9}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1cc6e2,_0x482737){this['_model']=_0x1cc6e2,this['_elementName']=_0x482737['elementName'],this['_getElementKey']=_0x482737['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x180944){const _0x4f1642=new Set(),_0x105e11=new Map();for(const _0xaac527 of _0x180944){if('insert'===_0xaac527['type']&&'$text'!==_0xaac527['name']&&_0xaac527['position']['nodeAfter']){const _0x4ce728=this['_model']['createRangeOn'](_0xaac527['position']['nodeAfter']);for(const _0x2d7b42 of _0x4ce728['getItems']()){if(!_0x2d7b42['is']('element',this['_elementName']))continue;const _0x4eb073=this['_getElementKey'](_0x2d7b42);_0x105e11['has'](_0x4eb073)||_0x105e11['set'](_0x4eb073,[]),_0x105e11['get'](_0x4eb073)['push'](_0x2d7b42);}}if('remove'===_0xaac527['type']&&_0xaac527['name']===this['_elementName']){const _0x234c96=this['_getElementKey']({'getAttribute':_0x259547=>_0xaac527['attributes']['get'](_0x259547)});_0x4f1642['add'](_0x234c96);}}for(const [_0x2fde09,_0x3a4004]of this['_trackedElements'])'$graveyard'===_0x3a4004['root']['rootName']&&_0x4f1642['add'](_0x2fde09);for(const _0x5a6ade of _0x4f1642)this['_trackedElements']['delete'](_0x5a6ade);for(const [_0x413bdb,_0x54d678]of _0x105e11)this['_trackedElements']['set'](_0x413bdb,_0x54d678[_0x54d678['length']-0x1]);const _0x21c534=new Set();for(const [_0x2d82e6,_0xc0f05c]of _0x105e11)_0x4f1642['has'](_0x2d82e6)&&(_0x21c534['add'](_0xc0f05c[0x0]),_0xc0f05c['length']>0x1?_0x105e11['set'](_0x2d82e6,_0xc0f05c['slice'](0x1)):_0x105e11['delete'](_0x2d82e6),_0x4f1642['delete'](_0x2d82e6));return{'removed':Array['from'](_0x4f1642),'inserted':Array['from'](_0x105e11['values']())['flat'](),'moved':Array['from'](_0x21c534)};}}class f extends _0xd62532{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x282009){super(_0x282009),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4b0687=>_0x4b0687['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x43d1d3=>_0x43d1d3['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5b4825}=this,{model:_0x2f296b,data:_0x588249}=_0x5b4825;_0x2f296b['document']['registerPostFixer'](_0x34b3a2=>{const _0x3b503f=_0x2f296b['document']['differ']['getChanges']();let _0x106835=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x34b3a2,_0x3b503f)&&(_0x106835=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x34b3a2,_0x3b503f)&&(_0x106835=!0x0),this['_handleFootnoteReferencesChanges'](_0x34b3a2,_0x3b503f)&&(_0x106835=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x34b3a2)&&(_0x106835=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x34b3a2)&&(_0x106835=!0x0),this['_sortFootnoteDefinitions'](_0x34b3a2)&&(_0x106835=!0x0),_0x106835;}),this['listenTo'](_0x2f296b['document'],'change:data',()=>{_0x2f296b['enqueueChange']({'isUndoable':!0x1},_0x21dce0=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x21dce0);});},{'priority':'low'}),this['listenTo'](_0x588249,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x33a461){return this['_footnotes']['find'](_0x4f66b3=>_0x4f66b3['id']===_0x33a461)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x14fc02){this['_footnoteFormatter']=_0x14fc02;}['_updateFootnotesCounters'](_0x3e4845,_0x559e39=0x0){let _0x36ed10=!0x1;for(let _0x2008ff=_0x559e39;_0x2008ff<this['_footnotes']['length'];_0x2008ff++)this['_updateFootnoteRefCounter'](_0x3e4845,_0x2008ff)&&(_0x36ed10=!0x0);return _0x36ed10;}['_insertEmptyFootnotesDefinitionsContainer'](_0x34a070,_0x237eff){const _0x55b2db=_0x34a070['createElement']('footnotesDefinitions',{});return _0x34a070['append'](_0x55b2db,_0x237eff),this['_footnotesDefinitions']=_0x55b2db,_0x55b2db;}['_ensureFootnotesDefinitionsContainerExists'](_0x19c02e){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x10020b=this['_footnotes'][0x0]['reference']['root'],_0x4624b8=this['_insertEmptyFootnotesDefinitionsContainer'](_0x19c02e,_0x10020b);for(const _0x1c4779 of this['_footnotes'])_0x1c4779['definition']['parent']||_0x19c02e['insert'](_0x1c4779['definition'],_0x4624b8,'end');this['_updateFootnotesCounters'](_0x19c02e);}['_handleFootnotesDefinitionsObjectChanges'](_0x1fd6de,_0x610d71){let _0x3a8e36=!0x1;const {inserted:_0xe969bb,removed:_0x3e002d,moved:_0x4a2c30}=this['_footnoteDefsContainerTracker']['getChanges'](_0x610d71);if(_0x4a2c30['length']&&(this['_footnotesDefinitions']=_0x4a2c30[0x0]),_0xe969bb['length']){if(_0xe969bb['length']>0x1||this['_footnotesDefinitions']&&_0xe969bb['some'](_0x5c5ddc=>_0x5c5ddc!==this['_footnotesDefinitions'])){const _0x2352ee=_0x1fd6de['createElement']('footnotesDefinitions',{}),_0xd3dc7f=[];this['_footnotesDefinitions']&&_0xd3dc7f['push'](this['_footnotesDefinitions']),_0xd3dc7f['push'](..._0xe969bb),_0x1fd6de['insert'](_0x2352ee,_0xd3dc7f[0x0],'before');for(const _0x274ad8 of _0xd3dc7f)_0x1fd6de['move'](_0x1fd6de['createRangeIn'](_0x274ad8),_0x1fd6de['createPositionAt'](_0x2352ee,'end')),_0x1fd6de['remove'](_0x274ad8);this['_footnotesDefinitions']=_0x2352ee,this['_updateFootnotesCounters'](_0x1fd6de),_0x3a8e36=!0x0;}else this['_footnotesDefinitions']=_0xe969bb[0x0];}if(_0x3e002d['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x385d92 of this['_footnotes'])_0x1fd6de['remove'](_0x385d92['reference']),_0x3a8e36=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x3a8e36;}['_handleFootnoteDefinitionsChanges'](_0x3a40b6,_0x696d04){let _0x4ab284=!0x1;const _0x458725=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x26576f,moved:_0x14e191}=this['_footnoteDefsTracker']['getChanges'](_0x696d04);for(const _0xb634ef of[..._0x14e191,..._0x26576f]){const _0x45912b=_0xb634ef['getAttribute']('footnoteId'),_0x4d80e0=this['getFootnote'](_0x45912b);_0x4d80e0&&(_0x4d80e0['definition']=_0xb634ef),_(_0x3a40b6,_0x458725,_0xb634ef)&&(_0x4ab284=!0x0);}return _0x4ab284;}['_handleFootnoteReferencesChanges'](_0x382f38,_0x862153){let _0x4dcf6e=!0x1;const {removed:_0x214116,inserted:_0x333972,moved:_0x115c77}=this['_footnoteRefsTracker']['getChanges'](_0x862153);for(const _0x2f7294 of _0x214116)this['_handleRemoveFootnoteReferenceById'](_0x382f38,_0x2f7294)&&(_0x4dcf6e=!0x0);for(const _0x9a919 of _0x333972)this['_handleInsertedFootnoteReference'](_0x382f38,_0x9a919)&&(_0x4dcf6e=!0x0);for(const _0x1d6d1a of _0x115c77)this['_handleMovedFootnoteReference'](_0x382f38,_0x1d6d1a)&&(_0x4dcf6e=!0x0);return _0x4dcf6e;}['_handleFootnotesDefinitionsObjectSync'](_0x42b5c7){if(!this['_footnotesDefinitions'])return!0x1;let _0x31d01a=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2a4480=[];for(const _0x236f2d of this['_footnotesDefinitions']['getChildren']()){const _0x39efea=_0x236f2d['getAttribute']('footnoteId');this['getFootnote'](_0x39efea)||(_0x2a4480['unshift'](_0x236f2d),_0x31d01a=!0x0);}for(const _0xa086ee of _0x2a4480)_0x42b5c7['remove'](_0xa086ee);}const _0x99c5e6=new Set(),_0x318ce5=[];for(const _0x57bd77 of this['_footnotesDefinitions']['getChildren']()){const _0x1c94df=_0x57bd77['getAttribute']('footnoteId');_0x99c5e6['has'](_0x1c94df)?(_0x318ce5['unshift'](_0x57bd77),_0x31d01a=!0x0):_0x99c5e6['add'](_0x1c94df);}for(const _0x3006d1 of _0x318ce5)_0x42b5c7['remove'](_0x3006d1);return this['_footnotesDefinitions']['childCount']||(_0x42b5c7['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x31d01a=!0x0),_0x31d01a;}['_handleInsertedFootnoteReference'](_0x191296,_0x53c152){if(this['_footnotes']['find'](_0x1f850e=>_0x1f850e['reference']===_0x53c152))return!0x1;let _0x485ba8=!0x1;const _0xe2973f=_0x53c152['getAttribute']('footnoteId'),_0x52625c=this['_footnotes']['findIndex'](_0x2aaad6=>_0x2aaad6['id']===_0xe2973f);-0x1!==_0x52625c&&(_0x191296['remove'](this['_footnotes'][_0x52625c]['reference']),this['_footnotes']['splice'](_0x52625c,0x1),_0x485ba8=!0x0);let _0x348a7c=this['_footnotesDefinitions']?function(_0x2e5665,_0x14e6b9){for(const _0x85cb8d of _0x2e5665['getChildren']())if(_0x85cb8d['getAttribute']('footnoteId')===_0x14e6b9)return _0x85cb8d;return null;}(this['_footnotesDefinitions'],_0xe2973f):null;_0x348a7c||(_0x348a7c=_0x191296['createElement']('footnoteDefinition',{'footnoteId':_0xe2973f}),this['_footnotesDefinitions']&&(_0x191296['insert'](_0x348a7c,this['_footnotesDefinitions'],'end'),_0x485ba8=!0x0));const _0x30d430={'id':_0xe2973f,'reference':_0x53c152,'definition':_0x348a7c},_0x16a996=I(this['editor']['model'],this['_footnotes'],_0x53c152);this['_footnotes']['splice'](_0x16a996,0x0,_0x30d430);let _0x14f6ac=_0x16a996;return-0x1!==_0x52625c&&(_0x14f6ac=Math['min'](_0x16a996,_0x52625c)),this['_updateFootnotesCounters'](_0x191296,_0x14f6ac)&&(_0x485ba8=!0x0),_0x485ba8;}['_handleRemoveFootnoteReferenceById'](_0x444583,_0x219d01){const _0x1b7c5c=this['_footnotes']['findIndex'](_0x4dd41b=>_0x4dd41b['id']===_0x219d01);if(-0x1===_0x1b7c5c)return!0x1;let _0x4b9110=!0x1;const _0x57804f=this['_footnotes'][_0x1b7c5c];return'$graveyard'!==_0x57804f['definition']['root']['rootName']&&(_0x444583['remove'](_0x57804f['definition']),_0x4b9110=!0x0),this['_footnotes']['splice'](_0x1b7c5c,0x1),this['_updateFootnotesCounters'](_0x444583,_0x1b7c5c)&&(_0x4b9110=!0x0),_0x4b9110;}['_handleMovedFootnoteReference'](_0x5a3405,_0x2de61e){const _0x4c687c=_0x2de61e['getAttribute']('footnoteId'),_0xc161f6=this['_footnotes']['findIndex'](_0x2c961d=>_0x2c961d['id']===_0x4c687c),_0x360ab8=this['_footnotes'][_0xc161f6];let _0xd0347c=!0x1;_0x360ab8['reference']=_0x2de61e,this['_footnotes']['splice'](_0xc161f6,0x1);const _0x449e2f=I(this['editor']['model'],this['_footnotes'],_0x2de61e);return this['_footnotes']['splice'](_0x449e2f,0x0,_0x360ab8),this['_updateFootnotesCounters'](_0x5a3405,Math['min'](_0xc161f6,_0x449e2f))&&(_0xd0347c=!0x0),_0xd0347c;}['_updateFootnoteRefCounter'](_0x4b5dcb,_0x4bcf9e){if(!this['_footnotesDefinitions'])return!0x1;const _0x594fcc=this['_footnotes'][_0x4bcf9e];let _0x1309a3;return _0x1309a3=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x594fcc,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4bcf9e+0x1}):String(_0x4bcf9e+0x1),_0x594fcc['reference']['getAttribute']('footnoteCounter')!=_0x1309a3&&(_0x4b5dcb['setAttribute']('footnoteCounter',_0x1309a3,_0x594fcc['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4ea04c){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2f7d5c,_0x3b7181){if(_0x2f7d5c['length']!==_0x3b7181['length'])return!0x1;for(let _0x1d37c7=0x0;_0x1d37c7<_0x2f7d5c['length'];_0x1d37c7++)if(_0x2f7d5c[_0x1d37c7]!==_0x3b7181[_0x1d37c7])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x56f68a=>_0x56f68a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x251d12=>_0x251d12['getAttribute']('footnoteId'))))return!0x1;let _0x398dfb=!0x1;for(let _0x3dbae6=0x0;_0x3dbae6<this['_footnotes']['length'];_0x3dbae6++){const _0x1c015a=this['_footnotes'][_0x3dbae6],_0xcbb858=_0x4ea04c['createPositionBefore'](_0x1c015a['definition']),_0x3d4c29=_0x4ea04c['createPositionAt'](this['_footnotesDefinitions'],_0x3dbae6);_0xcbb858['isEqual'](_0x3d4c29)||(_0x4ea04c['move'](_0x4ea04c['createRangeOn'](_0x1c015a['definition']),_0x3d4c29),_0x398dfb=!0x0);}return _0x398dfb;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2a31d7){if(!this['_footnotes']['length'])return!0x1;const {model:_0x671318}=this['editor'];let _0x49d86b=!0x1;for(let _0x4092e9=0x0;_0x4092e9<this['_footnotes']['length']-0x1;_0x4092e9++){const _0x23470a=this['_footnotes'][_0x4092e9],_0x4e9af5=this['_footnotes'][_0x4092e9+0x1],_0x2f82c8=_0x671318['createPositionBefore'](_0x23470a['reference']),_0x58f5ed=_0x671318['createPositionBefore'](_0x4e9af5['reference']);'after'===_0x2f82c8['compareWith'](_0x58f5ed)&&(this['_handleMovedFootnoteReference'](_0x2a31d7,_0x23470a['reference']),_0x4092e9=-0x1,_0x49d86b=!0x0);}return _0x49d86b;}}function _(_0x339868,_0x548c39,_0x53582b){if(_0x53582b['childCount'])return!0x1;const _0x270abf=_0x548c39?'paragraph':'footnoteInlineContent';return _0x339868['insert'](_0x339868['createElement'](_0x270abf),_0x53582b),!0x0;}function I(_0x3d78ff,_0x48f0de,_0x5c9e7f){if(0x0===_0x48f0de['length'])return 0x0;const _0x476413=_0x3d78ff['createPositionBefore'](_0x5c9e7f);for(let _0x424b3a=0x0;_0x424b3a<_0x48f0de['length'];_0x424b3a++){const _0x4a767b=_0x48f0de[_0x424b3a],_0x4b53a3=_0x3d78ff['createPositionBefore'](_0x4a767b['reference']);if('before'===_0x476413['compareWith'](_0x4b53a3))return _0x424b3a;}const _0x175c70=_0x5c9e7f['root'];let _0x1e669e=-0x1;for(let _0x3ab7b6=_0x48f0de['length']-0x1;_0x3ab7b6>=0x0;_0x3ab7b6--)if(_0x48f0de[_0x3ab7b6]['reference']['root']===_0x175c70){_0x1e669e=_0x3ab7b6;break;}if(-0x1!==_0x1e669e)return _0x1e669e+0x1;const _0x53a06e=_0x3d78ff['document']['getRootNames'](),_0x1c971f=_0x53a06e['indexOf'](_0x175c70['rootName']),_0x266c3b=_0x53a06e[_0x1c971f+0x1];if(_0x266c3b){for(let _0x4a72c2=0x0;_0x4a72c2<_0x48f0de['length'];_0x4a72c2++)if(_0x48f0de[_0x4a72c2]['reference']['root']['rootName']===_0x266c3b)return _0x4a72c2;}return _0x48f0de['length'];}class m extends _0x45d31d{['refresh'](){const _0x31d678=this['editor']['model']['document']['selection'],_0x1425d9=this['_getPositionToInsertFootnote'](_0x31d678);this['isEnabled']=!!_0x1425d9;}['execute'](_0x2e87db){const {editor:_0x50086b}=this,{model:_0x56c435}=_0x50086b,{selection:_0x4a63a2}=_0x56c435['document'],_0x1cf17c=this['_getPositionToInsertFootnote'](_0x4a63a2);if(!_0x1cf17c)return;const _0x4c9758=_0x50086b['plugins']['get']('FootnotesEditing'),_0x2c3a46=_0x2e87db?.['footnoteId']??_0x35a928();!function(_0x15af8f){return'string'==typeof _0x15af8f&&_0x15af8f['length']>0x0&&!/\s/['test'](_0x15af8f)&&!/^\d/['test'](_0x15af8f);}(_0x2c3a46)?_0xf9eb08('insert-footnote-command-executed-with-invalid-id'):(_0x56c435['change'](_0x5dc3c6=>{const _0x51ec44=_0x5dc3c6['createElement']('footnoteRef',{'footnoteId':_0x2c3a46});_0x56c435['insertObject'](_0x51ec44,_0x1cf17c,null);}),_0x4c9758['_moveSelectionToFootnoteDefinition'](_0x2c3a46));}['_getPositionToInsertFootnote'](_0x423598){const {model:_0x464785}=this['editor'],{schema:_0x365057}=_0x464785,_0x92cb24=_0x423598['getFirstRange']();for(const _0x5a7c21 of _0x92cb24['getItems']())if(_0x365057['isBlock'](_0x5a7c21)||_0x365057['isObject'](_0x5a7c21))return null;const _0x586e3a=_0x92cb24['end'];return _0x365057['checkChild'](_0x586e3a,'footnoteRef')?_0x586e3a:null;}}class r extends _0xd62532{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e53af}=this;_0x5e53af['config']['define']('footnotes.multiBlock',!0x0),_0x5e53af['commands']['add']('insertFootnote',new m(_0x5e53af)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2915e8){const _0x2b1915=_0x4eb51e([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]),_0x267214=0x47a28506,_0x363923=0x47a5fe86^_0x267214,_0xcb4120=window[_0x4eb51e([0x44,0x61,0x74,0x65])][_0x4eb51e([0x6e,0x6f,0x77])](),_0x6a6d7d=_0x2915e8[_0x4eb51e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5642e1=new window[(_0x4eb51e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4147a7=>{_0x6a6d7d[_0x4eb51e([0x6f,0x6e,0x63,0x65])](_0x4eb51e([0x72,0x65,0x61,0x64,0x79]),_0x4147a7);}),_0x58303a={[_0x4eb51e([0x6b,0x74,0x79])]:_0x4eb51e([0x45,0x43]),[_0x4eb51e([0x75,0x73,0x65])]:_0x4eb51e([0x73,0x69,0x67]),[_0x4eb51e([0x63,0x72,0x76])]:_0x4eb51e([0x50,0x2d,0x32,0x35,0x36]),[_0x4eb51e([0x78])]:_0x4eb51e([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]),[_0x4eb51e([0x79])]:_0x4eb51e([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]),[_0x4eb51e([0x61,0x6c,0x67])]:_0x4eb51e([0x45,0x53,0x32,0x35,0x36])},_0x51fed0=_0x6a6d7d[_0x4eb51e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4eb51e([0x67,0x65,0x74])](_0x4eb51e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21b08f(){let _0x40d26a,_0x439111=null,_0x1b655a=null;try{if(_0x51fed0==_0x4eb51e([0x47,0x50,0x4c]))return _0x4eb51e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40d26a=_0x23f055(),!_0x40d26a)return _0x4eb51e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40d26a[_0x4eb51e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b655a=_0x59e0b0(_0x40d26a[_0x4eb51e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40d26a[_0x4eb51e([0x6a,0x74,0x69])])),await _0x4678dc()?_0x2d6731()?_0x4cbca6()?_0x4eb51e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x555672()?(_0x40d26a[_0x4eb51e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eb51e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x439111=_0x446ab8(_0x4eb51e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40d26a[_0x4eb51e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eb51e([0x74,0x72,0x69,0x61,0x6c])&&(_0x439111=_0x446ab8(_0x4eb51e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x122735()):_0x4eb51e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4eb51e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4eb51e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4eb51e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4cbca6(){const _0x460e90=[_0x4eb51e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4eb51e([0x74,0x72,0x69,0x61,0x6c])][_0x4eb51e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40d26a[_0x4eb51e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcb4120/0x3e8:0xe10*_0x363923;return _0x40d26a[_0x4eb51e([0x65,0x78,0x70])]<_0x460e90;}function _0x2d6731(){const _0x479ade=_0x40d26a[_0x4eb51e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x479ade&&(!!_0x479ade[_0x4eb51e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eb51e([0x2a]))||!!_0x479ade[_0x4eb51e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eb51e([0x46,0x4f,0x4f])));}function _0x555672(){const _0x87be0f=_0x40d26a[_0x4eb51e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x87be0f||0x0==_0x87be0f[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x113ae2}=new URL(window[_0x4eb51e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x87be0f[_0x4eb51e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x113ae2))return!0x0;const _0xb0a56d=_0x113ae2[_0x4eb51e([0x73,0x70,0x6c,0x69,0x74])](_0x4eb51e([0x2e]));return _0x87be0f[_0x4eb51e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x531218=>_0x531218[_0x4eb51e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eb51e([0x2a])))[_0x4eb51e([0x6d,0x61,0x70])](_0x25d69b=>_0x25d69b[_0x4eb51e([0x73,0x70,0x6c,0x69,0x74])](_0x4eb51e([0x2e])))[_0x4eb51e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x534b82=>_0x534b82[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb0a56d[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4eb51e([0x6d,0x61,0x70])](_0x53c83b=>Array(_0xb0a56d[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53c83b[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4eb51e([0x66,0x69,0x6c,0x6c])](_0x53c83b[0x0]===_0x4eb51e([0x2a])?_0x4eb51e([0x2a]):'')[_0x4eb51e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53c83b))[_0x4eb51e([0x73,0x6f,0x6d,0x65])](_0x386d83=>_0xb0a56d[_0x4eb51e([0x65,0x76,0x65,0x72,0x79])]((_0x588028,_0x22bc16)=>_0x386d83[_0x22bc16]===_0x588028||_0x386d83[_0x22bc16]===_0x4eb51e([0x2a])));}function _0x122735(){return _0x439111&&_0x1b655a?new window[(_0x4eb51e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f4344,_0x485e8d)=>{_0x439111[_0x4eb51e([0x74,0x68,0x65,0x6e])](_0x4f4344,_0x485e8d),_0x1b655a[_0x4eb51e([0x74,0x68,0x65,0x6e])](_0x4df053=>{_0x4df053!=_0x4eb51e([0x56,0x61,0x6c,0x69,0x64])&&_0x4f4344(_0x4df053);},_0x485e8d);}):_0x439111||_0x1b655a||_0x4eb51e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59e0b0(_0x2122e6,_0xa86d2){return new window[(_0x4eb51e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30491=>{if(_0x2076bc())return _0x30491(_0x4eb51e([0x56,0x61,0x6c,0x69,0x64]));_0x24708c(),_0x6a6d7d[_0x4eb51e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4eb51e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ad650=!0x1;const _0x2769ad=_0x35a928();function _0x1ac195(_0x1744e7){return!!_0x1744e7&&(typeof _0x1744e7===_0x4eb51e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1744e7===_0x4eb51e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1744e7[_0x4eb51e([0x74,0x68,0x65,0x6e])]===_0x4eb51e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1744e7[_0x4eb51e([0x63,0x61,0x74,0x63,0x68])]===_0x4eb51e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50026f(_0x530fce){_0x1f3bb8(_0x530fce)[_0x4eb51e([0x74,0x68,0x65,0x6e])](_0x58225f=>{if(!_0x58225f||_0x58225f[_0x4eb51e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4eb51e([0x6f,0x6b]))return _0x4eb51e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ad70a(_0x34cbed(_0x2769ad+_0xa86d2))!=_0x58225f[_0x4eb51e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4eb51e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4eb51e([0x56,0x61,0x6c,0x69,0x64]);})[_0x4eb51e([0x74,0x68,0x65,0x6e])](_0x19cc0d=>(_0x69fabc(),_0x19cc0d),()=>{const _0xd861ba=_0xe8ffb4();return null==_0xd861ba?(_0x69fabc(),_0x4eb51e([0x56,0x61,0x6c,0x69,0x64])):_0x4eb51e(_0xcb4120-_0xd861ba>(0x63ae0106^_0x267214)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4eb51e([0x74,0x68,0x65,0x6e])](_0x30491)[_0x4eb51e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30491(_0x4eb51e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c64c4=0x47946b86^_0x267214;function _0x69fabc(){const _0x5b5f96=_0x4eb51e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad70a(_0x34cbed(_0x2122e6)),_0x5a7b93=_0x47f9cb(_0x4ad70a(window[_0x4eb51e([0x4d,0x61,0x74,0x68])][_0x4eb51e([0x63,0x65,0x69,0x6c])](_0xcb4120/_0x3c64c4)));window[_0x4eb51e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eb51e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b5f96,_0x5a7b93);}function _0xe8ffb4(){const _0x22ea14=_0x4eb51e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad70a(_0x34cbed(_0x2122e6)),_0x538fbf=window[_0x4eb51e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eb51e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22ea14);return _0x538fbf?window[_0x4eb51e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47f9cb(_0x538fbf),0x10)*_0x3c64c4:null;}function _0x1f3bb8(_0x2dcda0){return new window[(_0x4eb51e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b4d8f,_0x4d8097)=>{_0x2dcda0[_0x4eb51e([0x74,0x68,0x65,0x6e])](_0x2b4d8f,_0x4d8097),window[_0x4eb51e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d8097,0x47a351c6^_0x267214);});}}_0x6a6d7d[_0x4eb51e([0x6f,0x6e])](_0x4eb51e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58ff0b,_0x464413)=>{if(_0x464413[0x0]!=_0x2122e6)return _0x30491(_0x4eb51e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x464413[0x1]={..._0x464413[0x1],[_0x4eb51e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2769ad};},{[_0x4eb51e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eb51e([0x68,0x69,0x67,0x68])}),_0x6a6d7d[_0x4eb51e([0x6f,0x6e])](_0x4eb51e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26c33d=>{_0x1ac195(_0x26c33d[_0x4eb51e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ad650=!0x0,_0x50026f(_0x26c33d[_0x4eb51e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4eb51e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eb51e([0x6c,0x6f,0x77])}),_0x5642e1[_0x4eb51e([0x74,0x68,0x65,0x6e])](()=>{_0x2ad650||_0x30491(_0x4eb51e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2076bc(){return _0x6a6d7d[_0x4eb51e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eb51e([0x76,0x69,0x65,0x77])][_0x4eb51e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4eb51e([0x61,0x75,0x74,0x6f]);}function _0x24708c(){_0x6a6d7d[_0x4eb51e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eb51e([0x76,0x69,0x65,0x77])][_0x4eb51e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eb51e([0x61,0x75,0x74,0x6f]);}}function _0x446ab8(_0x1ca79c){const _0x3a3c7c=[new window[(_0x4eb51e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227bba=>setTimeout(_0x227bba,0x47abbbca^_0x267214)),_0x5642e1[_0x4eb51e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4eb51e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40b76f=>{let _0x113457=0x0;_0x6a6d7d[_0x4eb51e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eb51e([0x6f,0x6e])](_0x4eb51e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xeb163e,_0x540cbb)=>{_0x540cbb[0x0][_0x4eb51e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x113457++,_0x113457==(0x47a284fe^_0x267214)&&(_0x40b76f(),_0xeb163e[_0x4eb51e([0x6f,0x66,0x66])]());});}))];return window[_0x4eb51e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eb51e([0x72,0x61,0x63,0x65])](_0x3a3c7c)[_0x4eb51e([0x74,0x68,0x65,0x6e])](()=>_0x1ca79c);}async function _0x43dc8e(){await _0x5642e1,_0x6a6d7d[_0x4eb51e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eb51e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4da753,_0x6a6d7d[_0x4eb51e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eb51e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4da753,_0x6a6d7d[_0x4eb51e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4eb51e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5808a4(_0x170ca5){const _0x589623=_0x1f1052();_0x6a6d7d[_0x589623]=_0x4eb51e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x170ca5,_0x170ca5!=_0x4eb51e([0x56,0x61,0x6c,0x69,0x64])&&_0x43dc8e();}function _0x1f1052(){const _0x443e3b=window[_0x4eb51e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4eb51e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4eb51e([0x6e,0x6f,0x77])]())[_0x4eb51e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4eb51e([0x2e]),'');let _0x2d0f97=_0x4eb51e([0x75]);for(let _0x8320b2=0x0;_0x8320b2<_0x443e3b[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8320b2+=0x2){let _0x373804=window[_0x4eb51e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443e3b[_0x4eb51e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8320b2,_0x8320b2+0x2));_0x373804>=_0x2b1915[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x373804-=_0x2b1915[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d0f97+=_0x2b1915[_0x373804];}return _0x2d0f97;}function _0x23f055(){const _0x453e56=_0x51fed0[_0x4eb51e([0x73,0x70,0x6c,0x69,0x74])](_0x4eb51e([0x2e]));if(0x3!=_0x453e56[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x228709(_0x453e56[0x1]);function _0x228709(_0x2ff7d3){const _0x36f33e=_0x266558(_0x2ff7d3);return _0x36f33e&&_0x1fbfcd()?_0x36f33e:null;function _0x1fbfcd(){const _0x522512=_0x36f33e[_0x4eb51e([0x6a,0x74,0x69])],_0x4b66d9=window[_0x4eb51e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x522512[_0x4eb51e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x522512[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xaf580f={..._0x36f33e,[_0x4eb51e([0x6a,0x74,0x69])]:_0x522512[_0x4eb51e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x522512[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xaf580f[_0x4eb51e([0x76,0x63])],_0x34cbed(_0xaf580f)==_0x4b66d9;}}}async function _0x4678dc(){let _0x3d28b1=!0x0;try{const _0x1f2dce=_0x51fed0[_0x4eb51e([0x73,0x70,0x6c,0x69,0x74])](_0x4eb51e([0x2e])),[_0x3430f6,_0x1e6940,_0x5bc604]=_0x1f2dce;return _0x32f0fd(_0x3430f6),await _0x29ba26(_0x3430f6,_0x1e6940,_0x5bc604),_0x3d28b1;}catch{return!0x1;}function _0x32f0fd(_0x13a93d){const _0xa45c4b=_0x266558(_0x13a93d);_0xa45c4b&&_0xa45c4b[_0x4eb51e([0x61,0x6c,0x67])]==_0x4eb51e([0x45,0x53,0x32,0x35,0x36])||(_0x3d28b1=!0x1);}async function _0x29ba26(_0x359abe,_0x48e6a3,_0x1b815d){const _0x4678c9=window[_0x4eb51e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4eb51e([0x66,0x72,0x6f,0x6d])](_0x41ad84(_0x1b815d),_0x14564a=>_0x14564a[_0x4eb51e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd3a42a=new window[(_0x4eb51e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4eb51e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x359abe+_0x4eb51e([0x2e])+_0x48e6a3),_0x104b99=window[_0x4eb51e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4eb51e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x104b99)return;const _0x3b44cf=await _0x104b99[_0x4eb51e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4eb51e([0x6a,0x77,0x6b]),_0x58303a,{[_0x4eb51e([0x6e,0x61,0x6d,0x65])]:_0x4eb51e([0x45,0x43,0x44,0x53,0x41]),[_0x4eb51e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4eb51e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4eb51e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x104b99[_0x4eb51e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4eb51e([0x6e,0x61,0x6d,0x65])]:_0x4eb51e([0x45,0x43,0x44,0x53,0x41]),[_0x4eb51e([0x68,0x61,0x73,0x68])]:{[_0x4eb51e([0x6e,0x61,0x6d,0x65])]:_0x4eb51e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b44cf,_0x4678c9,_0xd3a42a)||(_0x3d28b1=!0x1);}}function _0x266558(_0x52adc4){return _0x52adc4[_0x4eb51e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4eb51e([0x65,0x79]))?JSON[_0x4eb51e([0x70,0x61,0x72,0x73,0x65])](_0x41ad84(_0x52adc4)):null;}function _0x41ad84(_0x5c5ca1){return window[_0x4eb51e([0x61,0x74,0x6f,0x62])](_0x5c5ca1[_0x4eb51e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4eb51e([0x2b]))[_0x4eb51e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4eb51e([0x2f])));}function _0x34cbed(_0x3de2b4){let _0x6e73e6=0x1505;function _0x589086(_0x4aeaaa){for(let _0x516c45=0x0;_0x516c45<_0x4aeaaa[_0x4eb51e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516c45++){const _0x374787=_0x4aeaaa[_0x4eb51e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x516c45);_0x6e73e6=(_0x6e73e6<<0x5)+_0x6e73e6+_0x374787,_0x6e73e6&=_0x6e73e6;}}function _0x15c31c(_0x8a4cf1){Array[_0x4eb51e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8a4cf1)?_0x8a4cf1[_0x4eb51e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15c31c):_0x8a4cf1&&typeof _0x8a4cf1==_0x4eb51e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4eb51e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8a4cf1)[_0x4eb51e([0x73,0x6f,0x72,0x74])]()[_0x4eb51e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5df0eb,_0x1247c5])=>{_0x589086(_0x5df0eb),_0x15c31c(_0x1247c5);}):_0x589086(window[_0x4eb51e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8a4cf1));}return _0x15c31c(_0x3de2b4),_0x6e73e6>>>0x0;}function _0x4ad70a(_0x504427){return _0x504427[_0x4eb51e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4eb51e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4eb51e([0x30]));}function _0x47f9cb(_0x3e0516){return _0x3e0516[_0x4eb51e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4eb51e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4eb51e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4da753(){}function _0x4eb51e(_0x5b21af){return _0x5b21af['map'](_0x520e74=>String['fromCharCode'](_0x520e74))['join']('');}_0x5808a4(await _0x21b08f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x720024){const {plugins:_0x27ca56,editing:_0x4014e4,model:_0x386765}=this['editor'],_0x3dd451=_0x27ca56['get'](f)['getFootnote'](_0x720024);return!!_0x3dd451&&(_0x386765['change'](_0x222b9c=>{_0x222b9c['setSelection'](_0x222b9c['createPositionAt'](_0x3dd451['definition'],'end'));}),_0x4014e4['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x14fe3e){const {plugins:_0x4fd108,editing:_0x3c2771,model:_0x5047a1}=this['editor'],_0x270954=_0x4fd108['get'](f)['getFootnote'](_0x14fe3e);return!!_0x270954&&(_0x5047a1['change'](_0x2a7d11=>{_0x2a7d11['setSelection'](_0x270954['reference'],'on');}),_0x3c2771['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1170a6}=this['editor']['model'],_0x89e07a=this['editor']['config']['get']('footnotes.multiBlock');_0x1170a6['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1170a6['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1170a6['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x89e07a?_0x1170a6['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1170a6['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1170a6['addChildCheck'](_0x2a209b=>{for(const _0x585708 of _0x2a209b)if('footnoteDefinition'===_0x585708['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1bab1c}=this,{conversion:_0x21dc78,editing:_0x520c1d}=_0x1bab1c,{t:t}=_0x1bab1c['locale'];_0x21dc78['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1bce44,{writer:_0xab150f,consumable:_0x1e9888})=>{const _0x143348=_0x1bce44['getChild'](0x0);if(!_0x143348||!_0x143348['is']('element','a'))return null;const _0x33ac87=_0x143348['getAttribute']('href')||'';if(!_0x33ac87['startsWith']('#'))return null;const _0x4dcf3d=_0x33ac87['replace'](/^#/,'');if(!_0x4dcf3d)return null;_0x1e9888['consume'](_0x143348,{'name':!0x0,'attributes':['href']});for(const {item:_0xdfedb4}of _0x520c1d['view']['createRangeIn'](_0x143348))_0xdfedb4['is']('$textProxy')?_0x1e9888['consume'](_0xdfedb4['textNode'],{'name':!0x0}):_0xdfedb4['is']('element')&&_0x1e9888['consume'](_0xdfedb4,{'name':!0x0});return _0xab150f['createElement']('footnoteRef',{'footnoteId':_0x4dcf3d});}}),_0x21dc78['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x334614,{writer:_0x1cbaf5})=>D(_0x334614,_0x1cbaf5)}),_0x21dc78['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x56e390,{writer:_0x4d1b50})=>{const _0x3556e6=_0x56e390['getAttribute']('footnoteCounter');return _0x5c3508(D(_0x56e390,_0x4d1b50),_0x4d1b50,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3556e6)});}});}['_defineDefinitionsConverters'](){const {editor:_0x10879b}=this,{t:t}=_0x10879b['locale'],{conversion:_0x4e5d12}=_0x10879b;_0x4e5d12['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4e5d12['for']('upcast')['add'](_0x5c3e6d=>{_0x5c3e6d['on']('element:ol',(_0x382a2e,_0x3cf3fb,_0x4e1b83)=>{const _0x338f43=_0x3cf3fb['viewItem'];if(!_0x338f43['hasClass']('footnotes-list')||!_0x3cf3fb['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4e1b83['consumable']['consume'](_0x338f43,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x35d619,modelCursor:_0x19f914}=_0x4e1b83['convertChildren'](_0x3cf3fb['viewItem'],_0x3cf3fb['modelCursor']);_0x3cf3fb['modelRange']=_0x35d619,_0x3cf3fb['modelCursor']=_0x19f914;}),_0x5c3e6d['on']('element:hr',(_0x96587d,_0x3004fd,_0x18f0ac)=>{const _0x535085=_0x3004fd['viewItem'];_0x535085['hasClass']('footnotes-divider')&&_0x3004fd['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x18f0ac['consumable']['consume'](_0x535085,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4e5d12['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1dee4b,{writer:_0x1c19ac})=>v(_0x1c19ac)}),_0x4e5d12['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x31e290,{writer:_0x4e52f0})=>{const _0x12330c=v(_0x4e52f0,{'data-footnotes-list-label':t('Footnotes')}),_0x3f95b0=_0x5c3508(_0x12330c,_0x4e52f0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4e52f0['setCustomProperty']('footnotesDefinitions',!0x0,_0x3f95b0),_0x3f95b0;}});}['_defineDefinitionConverters'](){const {editor:_0x1adc87}=this,{conversion:_0x30020b,locale:_0x3e26bc}=_0x1adc87,_0x36a887=_0x1adc87['config']['get']('footnotes.multiBlock');_0x30020b['for']('upcast')['add'](_0x1a10ca=>{_0x1a10ca['on']('element:li',(_0x2ea2ef,_0x4a7372,_0x23fe5a)=>{const _0x15c48f=_0x4a7372['viewItem'];if(!_0x15c48f['hasClass']('footnote-definition')||!_0x15c48f['getAttribute']('id'))return;const _0x173cbe=_0x15c48f['parent'];if(!_0x173cbe['is']('element','ol')||!_0x173cbe['hasClass']('footnotes-list'))return;if(!_0x23fe5a['consumable']['test'](_0x15c48f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5978c4=_0x23fe5a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x15c48f['getAttribute']('id')});if(!_0x23fe5a['safeInsert'](_0x5978c4,_0x4a7372['modelCursor']))return;_0x23fe5a['consumable']['consume'](_0x15c48f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x37191c=Array['from'](_0x15c48f['getChildren']())['find'](_0xd5895c=>_0xd5895c['is']('element')&&_0xd5895c['hasClass']('footnote-content'));for(const _0x22c602 of _0x15c48f['getChildren']())_0x22c602['is']('element')&&(_0x23fe5a['consumable']['consume'](_0x22c602,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x23fe5a['consumable']['consume'](_0x22c602,{'name':!0x0,'classes':'footnote-content'}));if(_0x37191c){if(_0x36a887)_0x23fe5a['convertChildren'](_0x37191c,_0x5978c4);else{const _0x280c40=_0x23fe5a['writer']['createElement']('footnoteInlineContent');_0x23fe5a['writer']['insert'](_0x280c40,_0x5978c4),_0x23fe5a['convertChildren'](_0x37191c,_0x280c40);}}_0x23fe5a['updateConversionResult'](_0x5978c4,_0x4a7372);});}),_0x30020b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3a022c,{writer:_0x1b136c})=>b(_0x3a022c,_0x1b136c,_0x3e26bc,{'dataPipeline':!0x0})}),_0x30020b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xaa9cd3,{writer:_0x5d265c})=>b(_0xaa9cd3,_0x5d265c,_0x3e26bc)});}['_defineBogusParagraphConverters'](){const {editor:_0xee5052}=this,{conversion:_0x2f281f}=_0xee5052;_0xee5052['config']['get']('footnotes.multiBlock')?(_0x2f281f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2f281f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xee5052['model']['document'],'change:data',()=>{!function(_0x28e391,_0xe4cfa5){const _0x4d0e0f=_0x28e391['document']['differ'],_0x1c41e8=new Set();for(const _0x5a75e9 of _0x4d0e0f['getChanges']()){const _0x1a316e='attribute'==_0x5a75e9['type']?_0x5a75e9['range']['start']['parent']:_0x5a75e9['position']['parent'];_0x1a316e['is']('element','footnoteDefinition')&&_0x1c41e8['add'](_0x1a316e);}for(const _0x1741ee of _0x1c41e8['values']()){const _0xd9c8ce=Array['from'](_0x1741ee['getChildren']())['filter'](_0x41e1bb=>g(_0x41e1bb,_0xe4cfa5['mapper']));for(const _0x5be023 of _0xd9c8ce)_0xe4cfa5['reconvertItem'](_0x5be023);}}(_0xee5052['model'],_0xee5052['editing']);})):(_0x2f281f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2f281f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x47320a,{writer:_0x506220})=>{const _0x35dc8c=_0x506220['createContainerElement']('span');return _0x506220['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35dc8c),_0x35dc8c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x22ae68}=this,{editing:_0x2072b6,t:t}=_0x22ae68,_0x4acb22=_0x22ae68['model']['document']['selection'];_0x22ae68['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x22ae68['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2072b6['view']['document'],'enter',(_0x32a2dc,_0x7cd14f)=>{const _0x5d2471=function(_0x447e96){const _0x2bd3e2=_0x447e96['getSelectedElement']();if(_0x2bd3e2?.['is']('element','footnoteRef'))return _0x2bd3e2;return null;}(_0x4acb22);if(_0x5d2471){const _0x6028cf=_0x5d2471['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x6028cf),_0x7cd14f['preventDefault'](),_0x32a2dc['stop']();}},{'context':_0x208382});}['_defineClickHandlers'](){const {editor:_0x1ee338}=this,{editing:_0x2275b9}=_0x1ee338;_0x1ee338['editing']['view']['addObserver'](_0x5efc24),_0x1ee338['editing']['view']['addObserver'](_0x13740d);let _0xbc0f77=!0x1;this['listenTo'](_0x2275b9['view']['document'],'pointerdown',(_0x1eb0fd,_0x10882c)=>{const {target:_0x54a081}=_0x10882c,_0x37241f=_0x2275b9['view']['document']['selection'];_0xbc0f77=!!(_0x54a081?.['is']('element','a')&&_0x54a081['parent']?.['is']('element','sup')&&_0x54a081['parent']['hasClass']('footnote'))&&_0x37241f['getSelectedElement']()===_0x54a081['parent'];},{'priority':'high'}),this['listenTo'](_0x2275b9['view']['document'],'click',(_0x2c0811,_0x13d1a1)=>{const {target:_0x227369}=_0x13d1a1;if(!_0x227369?.['is']('element','a'))return;if(_0x227369['parent']?.['is']('element','sup')&&_0x227369['parent']['hasClass']('footnote')&&!_0xbc0f77)return void _0x13d1a1['preventDefault']();let _0x417566=_0x227369['getAttribute']('href');if(!_0x417566?.['startsWith']('#'))return;_0x417566=_0x417566['slice'](0x1);let _0x2a9e98=!0x1;(_0x417566['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x417566['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x417566))&&(_0x2a9e98=!0x0),_0x2a9e98&&(_0x13d1a1['preventDefault'](),_0x2c0811['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x219110}={}){return(_0xfcc1b3,{writer:_0x535c65})=>{if(!p(_0xfcc1b3))return null;if(!_0x219110)return _0x535c65['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xf0e1af=_0x535c65['createContainerElement']('p');return _0x535c65['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xf0e1af),_0xf0e1af;};}function p(_0x554165){const {parent:_0x34bf47}=_0x554165;if(!_0x34bf47?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x34bf47['childCount'])return!0x1;for(const _0x121f2d of _0x554165['getAttributeKeys']())if(!_0x121f2d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x121f2d)return!0x1;return!0x0;}function g(_0x2d8e0b,_0xe5be26){if(!_0x2d8e0b['is']('element','paragraph'))return!0x1;const _0x2da03d=_0xe5be26['toViewElement'](_0x2d8e0b);return!!_0x2da03d&&p(_0x2d8e0b)!==_0x2da03d['is']('element','span');}function J(_0x23f15c){return _0x208382(_0x23f15c)&&_0x23f15c['is']('containerElement')&&!!_0x23f15c['getCustomProperty']('footnotesDefinitions');}function v(_0x1fdd95,_0x41c9d1={}){const _0x371e69=_0x1fdd95['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2aeb93=_0x1fdd95['createContainerElement']('ol',{'class':'footnotes-list'},_0x1fdd95['createSlot']());return _0x1fdd95['createContainerElement']('div',{'class':'footnotes',..._0x41c9d1},[_0x371e69,_0x2aeb93]);}function D(_0x123d21,_0x447ea8){const _0xe53da7=_0x123d21['getAttribute']('footnoteId'),_0x12ce66=_0x123d21['getAttribute']('footnoteCounter'),_0x550106=_0x447ea8['createUIElement']('a',{'href':'#'+_0xe53da7},function(_0x284626){const _0xc4ecee=this['toDomElement'](_0x284626);return _0xc4ecee['textContent']=_0x12ce66,_0xc4ecee;}),_0x5e9c6b=_0x447ea8['createContainerElement']('sup',{'id':'ref-'+_0xe53da7,'class':'footnote'},[_0x550106]);return _0x5e9c6b['getFillerOffset']=()=>null,_0x5e9c6b;}function b(_0x3ce0e4,_0x339701,_0x2a0d99,{dataPipeline:_0x446125}={}){const {t:t}=_0x2a0d99,_0x160ba9=_0x3ce0e4['getAttribute']('footnoteId'),_0x4d9ae0=_0x339701['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x160ba9},function(_0x2b8473){const _0x9c9b15=this['toDomElement'](_0x2b8473);return _0x9c9b15['innerText']='^',_0x9c9b15;}),_0x13a46f=_0x446125?_0x339701['createContainerElement']('div',{'class':'footnote-content'}):_0x525d27(_0x339701['createEditableElement']('div',{'class':'footnote-content'}),_0x339701,{'label':t('Footnote\x20content.')});return _0x339701['insert'](_0x339701['createPositionAt'](_0x13a46f,0x0),_0x339701['createSlot']()),_0x339701['createContainerElement']('li',{'class':'footnote-definition','id':_0x160ba9},[_0x4d9ae0,_0x13a46f]);}class e extends _0xd62532{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x833588];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x258d6a}=this,{plugins:_0x54b51e,model:_0x33cb08}=_0x258d6a,_0x582c26=_0x54b51e['get'](_0x833588),_0x3c00ff=_0x54b51e['get'](f);this['listenTo'](_0x582c26,'outputTransformation',(_0x277d06,_0x49aaee)=>{const _0x3c37f6=c(_0x33cb08['createRangeIn'](_0x49aaee['content']));if(!_0x3c37f6['length'])return;const _0xf5e1ff=_0x3c00ff['getFootnotes'](),_0x1e0184=_0x3c37f6['reduce']((_0x5d81cf,_0x357404)=>{const _0x4dcfb4=_0xf5e1ff['find'](_0xaa5bd3=>_0xaa5bd3['id']===_0x357404);if(_0x4dcfb4){const _0x89ffd6=_0x258d6a['data']['toView'](_0x4dcfb4['definition'],{'isClipboardPipeline':!0x0}),_0x1c309c=_0x258d6a['data']['htmlProcessor']['toData'](_0x89ffd6);_0x5d81cf[_0x4dcfb4['id']]=_0x1c309c;}return _0x5d81cf;},Object['create'](null));_0x49aaee['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x1e0184));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1ef4ed}=this,{model:_0x58fa0a,plugins:_0x41e896}=_0x1ef4ed,{view:_0xbe0a4}=_0x1ef4ed['editing'],_0x4f2df0=_0x41e896['get'](_0x833588),_0x5c230e=_0x41e896['get'](f),_0x3a03fc=_0x1ef4ed['config']['get']('footnotes.multiBlock');let _0x49d8d6=null;this['listenTo'](_0xbe0a4['document'],'clipboardInput',(_0x594f5a,_0x18d1c6)=>{const _0xcc6944=_0x18d1c6['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x49d8d6=_0xcc6944?JSON['parse'](_0xcc6944):null;}),this['listenTo'](_0x4f2df0,'contentInsertion',(_0x1244dc,_0x8f4846)=>{const _0x3d65ab=_0x8f4846['sourceEditorId']===this['editor']['id'];_0x3d65ab&&'drop'===_0x8f4846['method']||_0x58fa0a['change'](_0x6d97b3=>{let _0x458cdc=_0x5c230e['getFootnotesDefinitionsObjectElement']();const _0x21bbb6=!!_0x458cdc&&Array['from'](_0x58fa0a['document']['selection']['getSelectedBlocks']())['includes'](_0x458cdc);if((_0x458cdc&&!_0x21bbb6||!_0x458cdc&&!_0x49d8d6)&&function(_0x3fd262,_0x3dc9fe){const _0x39be14=[];for(const {item:_0x17288e}of _0x3fd262['createRangeIn'](_0x3dc9fe))_0x17288e['is']('element','footnotesDefinitions')&&_0x39be14['push'](_0x17288e);for(const _0x3cacdb of _0x39be14)_0x3fd262['remove'](_0x3cacdb);}(_0x6d97b3,_0x8f4846['content']),!_0x49d8d6)return;const {selection:_0x3c585c}=_0x58fa0a['document'],_0x16e8e4=_0x3c585c['getFirstRange']()['root'];_0x458cdc&&!_0x21bbb6||(_0x458cdc=function(_0x1c9d48,_0x1b4df2){for(const {item:_0x5e3a23}of _0x1c9d48['createRangeIn'](_0x1b4df2))if(_0x5e3a23['is']('element','footnotesDefinitions'))return _0x5e3a23;return null;}(_0x6d97b3,_0x8f4846['content']),_0x458cdc||=_0x5c230e['_insertEmptyFootnotesDefinitionsContainer'](_0x6d97b3,_0x16e8e4));const _0x263cad=Array['from'](_0x3c585c['getRanges']())['flatMap'](c),_0x1270ce=function(_0x236dff,_0x4e8d26,_0x599d95){const _0x276403=Object['create'](null);for(const {item:_0x8614aa}of _0x236dff['createRangeIn'](_0x4e8d26))if(_0x8614aa['is']('element','footnoteRef')){const _0x56a23a=_0x8614aa['getAttribute']('footnoteId');if(!_0x599d95(_0x56a23a))continue;_0x276403[_0x56a23a]||(_0x276403[_0x56a23a]=_0x35a928()),_0x236dff['setAttribute']('footnoteId',_0x276403[_0x56a23a],_0x8614aa);}return _0x276403;}(_0x6d97b3,_0x8f4846['content'],_0x396c9c=>{if(!_0x3d65ab)return!0x0;return!!_0x5c230e['getFootnote'](_0x396c9c)&&!_0x263cad['includes'](_0x396c9c);});for(const [_0x255f71,_0x3cec12]of Object['entries'](_0x49d8d6)){const _0x473810=_0x1270ce[_0x255f71]||_0x255f71,_0x293560=_0x6d97b3['createElement']('footnoteDefinition',{'footnoteId':_0x473810}),_0x496276=_0x1ef4ed['data']['htmlProcessor']['toView'](_0x3cec12);let _0x2e678a;if(_0x3a03fc)_0x2e678a=_0x1ef4ed['data']['toModel'](_0x496276,_0x293560);else{_0x2e678a=_0x6d97b3['createElement']('footnoteInlineContent');const _0x49d7f7=_0x1ef4ed['data']['toModel'](_0x496276,_0x2e678a);_0x6d97b3['insert'](_0x49d7f7,_0x2e678a);}_0x6d97b3['append'](_0x2e678a,_0x293560),_0x6d97b3['insert'](_0x293560,_0x458cdc,'end');}_0x49d8d6=null;});});}}function c(_0x29236b){const _0x359247=new Set();for(const {item:_0x15b044}of _0x29236b)_0x15b044['is']('element','footnoteRef')&&_0x359247['add'](_0x15b044['getAttribute']('footnoteId'));return Array['from'](_0x359247);}class i extends _0xd62532{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x43299e}=this,{componentFactory:_0x5561be}=_0x43299e['ui'];_0x5561be['add']('insertFootnote',x(_0x43299e,_0x190394)),_0x5561be['add']('menuBar:insertFootnote',x(_0x43299e,_0x1c4869)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21014f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x82dab;for(const _0x26e9cc in _0x21014f){const _0x3dad7f=_0x26e9cc,_0x16e6c1=_0x21014f[_0x3dad7f];if('footnotesLicenseKeyValid'==_0x16e6c1||'footnotesLicenseKeyInvalid'==_0x16e6c1||'footnotesLicenseKeyExpired'==_0x16e6c1||'footnotesLicenseKeyDomainLimit'==_0x16e6c1||'footnotesLicenseKeyNotAllowed'==_0x16e6c1||'footnotesLicenseKeyEvaluationLimit'==_0x16e6c1||'footnotesLicenseKeyTrialLimit'==_0x16e6c1||'footnotesLicenseKeyUsageLimit'==_0x16e6c1){delete _0x21014f[_0x3dad7f],_0x82dab=_0x16e6c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x82dab&&_0x21014f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x82dab&&_0x21014f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x82dab&&_0x21014f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x82dab&&_0x21014f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x82dab&&_0x21014f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x82dab&&_0x21014f['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x82dab&&_0x21014f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0xc6850c,_0xae37a2){const _0xd65b80=_0xc6850c['commands']['get']('insertFootnote');return _0x40915b=>{const {t:t}=_0x40915b,_0x16f84f=new _0xae37a2(_0x40915b),_0x495c57=_0x16f84f instanceof _0x1c4869;return _0x16f84f['bind']('isEnabled')['to'](_0xd65b80,'isEnabled'),_0x16f84f['set']({'label':t(_0x495c57?'Footnote':'Insert\x20footnote'),'icon':_0x5c2f45,'tooltip':!0x0}),_0x16f84f['on']('execute',()=>{_0xd65b80['execute'](),_0xc6850c['editing']['view']['focus']();}),_0x16f84f;};}class lt extends _0xd62532{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x45d31d{['refresh'](){const {editor:_0x56c015}=this,_0x34eaa6=_0x56c015['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x34eaa6,this['value']=_0x34eaa6?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x42a123}){const {editor:_0x1b3d1b}=this,_0x507434=_0x1b3d1b['plugins']['get'](f),_0x1543df=_0x507434['getFootnotesDefinitionsObjectElement']();_0x1543df&&Q['includes'](_0x42a123)&&_0x1b3d1b['model']['change'](_0x29b069=>{_0x29b069['setAttribute']('footnotesListStyle',_0x42a123,_0x1543df),_0x507434['_updateFootnotesCounters'](_0x29b069);});}}class C extends _0x45d31d{['refresh'](){const {editor:_0x1d6e49}=this,_0x1f898c=_0x1d6e49['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1f898c,this['value']=_0x1f898c?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3c58da}){const {editor:_0x28aa58}=this,_0x4a8fab=_0x28aa58['plugins']['get'](f),_0x26a041=_0x4a8fab['getFootnotesDefinitionsObjectElement']();_0x26a041&&Number['isInteger'](_0x3c58da)&&_0x28aa58['model']['change'](_0x4b8b16=>{_0x4b8b16['setAttribute']('footnotesListStart',_0x3c58da,_0x26a041),_0x4a8fab['_updateFootnotesCounters'](_0x4b8b16);});}}class P extends _0xd62532{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x440eda}=this;_0x440eda['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x440eda['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x440eda['commands']['add']('footnotesStyle',new S(_0x440eda)),_0x440eda['commands']['add']('footnotesStart',new C(_0x440eda)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2afe94}=this,{schema:_0xf38802}=_0x2afe94['model'];_0xf38802['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x23a9ee}=this,{conversion:_0x59815c,model:_0x3c48d2}=_0x23a9ee,{schema:_0x813c7b}=_0x3c48d2;_0x59815c['for']('upcast')['add'](_0x25f371=>{_0x25f371['on']('element:ol',(_0x1ba5c6,_0x66c198,_0x4d5074)=>{const _0x188396=_0x66c198['viewItem'],_0x531bba=_0x66c198['modelCursor']?.['parent'];_0x188396['hasClass']('footnotes-list')&&_0x531bba?.['is']('element','footnotesDefinitions')&&(function(_0x4701e2,_0x47d11e,_0x570c35,_0x3cceb2){if(!_0x3cceb2['checkAttribute'](_0x47d11e,'footnotesListStart'))return;let _0x520fae=0x1;const _0x11a48e=_0x570c35['consumable']['consume'](_0x4701e2,{'attributes':'start'});if(_0x11a48e){const _0x461761=Number['parseInt'](_0x4701e2['getAttribute']('start'),0xa);Number['isNaN'](_0x461761)||(_0x520fae=_0x461761);}!_0x11a48e&&_0x47d11e['hasAttribute']('footnotesListStart')||_0x570c35['writer']['setAttribute']('footnotesListStart',_0x520fae,_0x47d11e);}(_0x188396,_0x531bba,_0x4d5074,_0x813c7b),function(_0xba2508,_0x56fafc,_0x31d9fc,_0x14a12f){if(!_0x14a12f['checkAttribute'](_0x56fafc,'footnotesListStyle'))return;let _0x503b5e='decimal',_0x3356ec=!0x1;if(_0x31d9fc['consumable']['consume'](_0xba2508,{'attributes':'type'})){const _0x5044d6={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xba2508['getAttribute']('type')];_0x5044d6&&(_0x503b5e=_0x5044d6),_0x3356ec=!0x0;}_0x31d9fc['consumable']['consume'](_0xba2508,{'styles':'list-style-type'})&&(_0x503b5e=function(_0x50a881){switch(_0x50a881){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x50a881;}}(_0xba2508['getStyle']('list-style-type')),_0x3356ec=!0x0),!_0x3356ec&&_0x56fafc['hasAttribute']('footnotesListStyle')||_0x31d9fc['writer']['setAttribute']('footnotesListStyle',_0x503b5e,_0x56fafc);}(_0x188396,_0x531bba,_0x4d5074,_0x813c7b));});}),_0x59815c['for']('downcast')['add'](_0x34a117=>{_0x34a117['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x108160,_0x355185,_0x9fb579)=>{if(!_0x9fb579['consumable']['consume'](_0x355185['item'],_0x108160['name']))return;const _0x4b8e89=M(_0x355185['item'],_0x9fb579['mapper']),{attributeNewValue:_0x215bab}=_0x355185;null==_0x215bab||0x1===_0x215bab?_0x9fb579['writer']['removeAttribute']('start',_0x4b8e89):_0x9fb579['writer']['setAttribute']('start',String(_0x215bab),_0x4b8e89);}),_0x34a117['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x5e3f91,_0x581c9d,_0x2dac5e)=>{if(!_0x2dac5e['consumable']['consume'](_0x581c9d['item'],_0x5e3f91['name']))return;const _0x270944=M(_0x581c9d['item'],_0x2dac5e['mapper']),{attributeNewValue:_0x3ab980}=_0x581c9d;_0x3ab980&&'decimal'!==_0x3ab980?_0x2dac5e['writer']['setStyle']('list-style-type',_0x3ab980,_0x270944):_0x2dac5e['writer']['removeStyle']('list-style-type',_0x270944);});});}['_definePostfixer'](){const {editor:_0x400453}=this,{model:_0x10ba41}=_0x400453,_0x41bfab=_0x400453['plugins']['get'](f),_0x2661a7=this['_getDefaultListStyle'](),_0x4755b8=this['_getDefaultStartIndex']();_0x10ba41['document']['registerPostFixer'](_0x3143f2=>{const _0x4226d6=_0x10ba41['document']['differ']['getChanges']();let _0x26bf6e=!0x1;for(const _0x9d24e1 of _0x4226d6){if('insert'!==_0x9d24e1['type']||'$text'===_0x9d24e1['name'])continue;const _0x5ba1b8=_0x10ba41['createRangeOn'](_0x9d24e1['position']['nodeAfter']);for(const _0x430320 of _0x5ba1b8['getItems']())_0x430320['is']('element','footnotesDefinitions')&&(!_0x430320['hasAttribute']('footnotesListStart')&&_0x10ba41['schema']['checkAttribute'](_0x430320,'footnotesListStart')&&(_0x3143f2['setAttribute']('footnotesListStart',_0x4755b8,_0x430320),_0x26bf6e=!0x0),!_0x430320['hasAttribute']('footnotesListStyle')&&_0x10ba41['schema']['checkAttribute'](_0x430320,'footnotesListStyle')&&(_0x3143f2['setAttribute']('footnotesListStyle',_0x2661a7,_0x430320),_0x26bf6e=!0x0));}return _0x26bf6e&&_0x41bfab['_updateFootnotesCounters'](_0x3143f2),_0x26bf6e;});}['_defineFormatter'](){const {editor:_0x549bb0}=this;_0x549bb0['plugins']['get'](f)['setFootnoteFormatter'](_0x51c994=>this['_formatFootnoteListValue'](_0x51c994));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x20505f,value:_0x1fe393,digits:_0x2318be}){const _0x4b4ccf=_0x20505f['getAttribute']('footnotesListStyle'),_0x5dba7f=_0x20505f['getAttribute']('footnotesListStart'),_0x4f2a98=Math['floor'](_0x1fe393)+(_0x5dba7f??0x1)-0x1;switch(_0x4b4ccf){case'decimal-leading-zero':return function(_0x8d068,_0x1f87f4){return String(_0x8d068)['padStart'](_0x1f87f4,'0');}(_0x4f2a98,Math['max'](0x2,_0x2318be));case'lower-alpha':case'lower-latin':return N(_0x4f2a98,!0x1);case'upper-alpha':case'upper-latin':return N(_0x4f2a98,!0x0);case'lower-roman':return X(_0x4f2a98,!0x1);case'upper-roman':return X(_0x4f2a98,!0x0);default:return String(_0x4f2a98);}}}function M(_0x3d3e2c,_0x58ae92){const _0x3b1b75=_0x58ae92['toViewElement'](_0x3d3e2c);return Array['from'](_0x3b1b75['getChildren']())['find'](_0x28e0a0=>_0x28e0a0['is']('element','ol')&&_0x28e0a0['hasClass']('footnotes-list'));}function N(_0x46e2e4,_0x13fe74){let _0x331b43='',_0x5eb45e=_0x46e2e4;for(;_0x5eb45e>0x0;){const _0x435b51=(_0x5eb45e-0x1)%0x1a;_0x331b43=String['fromCharCode'](0x61+_0x435b51)+_0x331b43,_0x5eb45e=Math['floor']((_0x5eb45e-0x1)/0x1a);}return _0x13fe74?_0x331b43['toUpperCase']():_0x331b43;}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(_0xd41a7f,_0xfd3577){let _0x2abbb8='',_0x2bb8f0=_0xd41a7f;for(const {value:_0x1a72e7,numeral:_0x38bba7}of V)for(;_0x2bb8f0>=_0x1a72e7;)_0x2abbb8+=_0x38bba7,_0x2bb8f0-=_0x1a72e7;return _0xfd3577?_0x2abbb8:_0x2abbb8['toLowerCase']();}class H extends _0x2dfd86{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x16cd73();['focusCycler'];constructor(_0x5e9c2c,{styleButtonViews:_0x505aa3,styleGridAriaLabel:_0x879e30}){super(_0x5e9c2c),(this['focusCycler']=new _0xb612c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x505aa3,_0x879e30),[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 _0x1501eb of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1501eb['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 _0x2a5099=_0xae2356=>_0xae2356['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2a5099),this['keystrokes']['set']('arrowleft',_0x2a5099),this['keystrokes']['set']('arrowup',_0x2a5099),this['keystrokes']['set']('arrowdown',_0x2a5099);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x230221,_0x3fe5d6){const _0x3a6e7e=new _0x2dfd86(this['locale']);return _0x3a6e7e['children']=_0x3a6e7e['createCollection'](),_0x3a6e7e['children']['addMany'](_0x230221),_0x3a6e7e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3fe5d6,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3a6e7e['children']}),_0x3a6e7e['children']['delegate']('execute')['to'](this),_0x3a6e7e['focus']=function(){for(const _0x238eae of this['children'])if(_0x238eae instanceof _0x190394&&_0x238eae['isOn'])return void _0x238eae['focus']();this['children']['first']['focus']();},_0x3a6e7e['focusTracker']=new ot(),_0x3a6e7e['keystrokes']=new rt(),_0x3a6e7e['render'](),_0x3a6e7e['keystrokes']['listenTo'](_0x3a6e7e['element']),this['children']['add'](_0x3a6e7e),_0x3a6e7e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1a08c1=this['_createStartIndexPropertyView'](),_0x37eef6=[_0x1a08c1],_0x84213=new st(this['locale'],_0x37eef6);return _0x84213['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x84213['buttonView']['bind']('isEnabled')['toMany'](_0x37eef6,'isEnabled',(..._0x51f64c)=>_0x51f64c['some'](_0x3e15dd=>_0x3e15dd)),_0x84213['buttonView']['on']('change:isEnabled',(_0x11f1be,_0x5d2c7b,_0x8f04cb)=>{_0x8f04cb||(_0x84213['isCollapsed']=!0x0);}),this['children']['add'](_0x84213),[_0x1a08c1,_0x84213];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1ebcd9=new it(this['locale'],et);return _0x1ebcd9['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1ebcd9['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1ebcd9['fieldView']['on']('input',()=>{const _0x3c8239=_0x1ebcd9['fieldView']['element'],_0xf1e659=_0x3c8239['valueAsNumber'];Number['isNaN'](_0xf1e659)?_0x1ebcd9['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3c8239['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xf1e659}):_0x1ebcd9['errorText']=t(_0xf1e659<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1ebcd9;}}class j extends _0xd62532{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xd29b5,_0x18f029];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x54d2f7}=this,{componentFactory:_0x430c73}=_0x54d2f7['ui'];_0x54d2f7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x430c73['add']('footnotesStyle',function(_0x53d448){return _0x35ef8c=>{const {t:t}=_0x35ef8c,_0x15b495=_0x53d448['commands']['get']('footnotesStyle'),_0x27efdd=_0x209405(_0x35ef8c),{buttonView:_0x42fb8c}=_0x27efdd;return _0x27efdd['class']='ck-footnotes-styles-dropdown',_0x27efdd['bind']('isEnabled')['to'](_0x15b495,'isEnabled'),_0x42fb8c['set']({'label':t('Footnotes\x20style'),'icon':_0x5c2f45,'tooltip':!0x0}),_0x27efdd['once']('change:isOpen',()=>{const _0x4d8239=function({editor:_0x1360a,dropdownView:_0x2dae54}){const {t:t}=_0x1360a['locale'],_0x280354=t('Footnotes\x20definitions\x20styles'),_0x45d2cd=function(_0x5cafd5){const t=_0x5cafd5['locale']['t'],_0x10920a=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3f0806},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1007cb},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2c7244},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x51cf35},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x252d52},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x9aa7f9}];return _0x10920a['map'](function(_0x3d16d3){const _0x1fa0f4=_0x3d16d3['locale'];return({label:_0x28fef6,icon:_0x51b77b,tooltip:_0x425652,style:_0x4e21d4})=>{const _0x55631d=_0x3d16d3['commands']['get']('footnotesStyle'),_0x4fb4bf=new _0x190394(_0x1fa0f4);return _0x4fb4bf['set']({'label':_0x28fef6,'icon':_0x51b77b,'tooltip':_0x425652}),_0x4fb4bf['bind']('isOn')['to'](_0x55631d,'value',_0x2856e3=>_0x2856e3===_0x4e21d4),_0x4fb4bf['bind']('isEnabled')['to'](_0x55631d,'isEnabled'),_0x4fb4bf['on']('execute',()=>{_0x3d16d3['execute']('footnotesStyle',{'value':_0x4e21d4}),_0x3d16d3['editing']['view']['focus']();}),_0x4fb4bf;};}(_0x5cafd5));}(_0x1360a),_0x413876=new H(_0x1360a['locale'],{'styleGridAriaLabel':_0x280354,'styleButtonViews':_0x45d2cd}),_0x1f97e3=_0x1360a['commands']['get']('footnotesStart');return _0x413876['startIndexFieldView']['bind']('isEnabled')['to'](_0x1f97e3),_0x413876['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1f97e3),_0x413876['on']('footnotesListStart',(_0x3d69a5,_0x80a45f)=>{_0x1360a['execute']('footnotesStart',{'value':_0x80a45f['startIndex']});}),_0x413876['delegate']('execute')['to'](_0x2dae54),_0x413876;}({'editor':_0x53d448,'dropdownView':_0x27efdd});_0x27efdd['panelView']['children']['add'](_0x4d8239);}),_0x27efdd;};}(_0x54d2f7));}['afterInit'](){const {editor:_0x3f3f26}=this,{t:t}=_0x3f3f26['locale'],_0x5af6d9=_0x3f3f26['plugins']['get'](_0x18f029),{defaultPositions:_0x33cf91}=_0x456029;_0x5af6d9['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3f3f26['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x397850=>{let _0x7dc6a=_0x397850['getFirstPosition']()?.['parent'];return _0x7dc6a?.['is']('$text')&&(_0x7dc6a=_0x7dc6a['parent']),_0x7dc6a?.['is']('element')?_0x7dc6a['findAncestor'](J):null;},'positions':[_0x33cf91['southArrowNorth'],_0x33cf91['southArrowNorthMiddleWest'],_0x33cf91['southArrowNorthMiddleEast'],_0x33cf91['southArrowNorthWest'],_0x33cf91['southArrowNorthEast'],_0x33cf91['northArrowSouth'],_0x33cf91['northArrowSouthMiddleWest'],_0x33cf91['northArrowSouthMiddleEast'],_0x33cf91['northArrowSouthWest'],_0x33cf91['northArrowSouthEast'],_0x33cf91['viewportStickyNorth']]});}}class ft extends _0xd62532{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251210.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251210.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251210.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251210.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251210.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251210.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251210.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251210.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251210.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x98b562}from'ckeditor5/src/core.js';import{isWidget as _0x37529a,toWidget as _0x19f232,toWidgetEditable as _0x4f888f}from'ckeditor5/src/widget.js';import{uid as _0x1779aa}from'ckeditor5/src/utils.js';import{PointerObserver as _0xa80f45,ClickObserver as _0x12c292}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x458380}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x49801f}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x98b562{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x458380];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x172e69}=this;_0x172e69['config']['define']('footnotes.multiBlock',!0x0),_0x172e69['commands']['add']('insertFootnote',new _0x49801f(_0x172e69)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1358aa){const _0x348cc1=_0x401619([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]),_0x358828=0x47a28506,_0xbe1ec1=0x47a5fe6e^_0x358828,_0xaac01=window[_0x401619([0x44,0x61,0x74,0x65])][_0x401619([0x6e,0x6f,0x77])](),_0x2417db=_0x1358aa[_0x401619([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ca497=new window[(_0x401619([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9a04=>{_0x2417db[_0x401619([0x6f,0x6e,0x63,0x65])](_0x401619([0x72,0x65,0x61,0x64,0x79]),_0x4b9a04);}),_0x422844={[_0x401619([0x6b,0x74,0x79])]:_0x401619([0x45,0x43]),[_0x401619([0x75,0x73,0x65])]:_0x401619([0x73,0x69,0x67]),[_0x401619([0x63,0x72,0x76])]:_0x401619([0x50,0x2d,0x32,0x35,0x36]),[_0x401619([0x78])]:_0x401619([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]),[_0x401619([0x79])]:_0x401619([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]),[_0x401619([0x61,0x6c,0x67])]:_0x401619([0x45,0x53,0x32,0x35,0x36])},_0x32b609=_0x2417db[_0x401619([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x401619([0x67,0x65,0x74])](_0x401619([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x123982(){let _0x290255,_0x31e9fc=null,_0x2f2cfb=null;try{if(_0x32b609==_0x401619([0x47,0x50,0x4c]))return _0x401619([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x290255=_0x429728(),!_0x290255)return _0x401619([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x290255[_0x401619([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f2cfb=_0x173b9b(_0x290255[_0x401619([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x290255[_0x401619([0x6a,0x74,0x69])])),await _0x4add1f()?_0x44864b()?_0x21eb63()?_0x401619([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e5b1b()?(_0x290255[_0x401619([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401619([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31e9fc=_0x17e574(_0x401619([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x290255[_0x401619([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401619([0x74,0x72,0x69,0x61,0x6c])&&(_0x31e9fc=_0x17e574(_0x401619([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x216fd0()):_0x401619([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x401619([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x401619([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x401619([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21eb63(){const _0x46a4d6=[_0x401619([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x401619([0x74,0x72,0x69,0x61,0x6c])][_0x401619([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290255[_0x401619([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaac01/0x3e8:0xe10*_0xbe1ec1;return _0x290255[_0x401619([0x65,0x78,0x70])]<_0x46a4d6;}function _0x44864b(){const _0x104df5=_0x290255[_0x401619([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x104df5&&(!!_0x104df5[_0x401619([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401619([0x2a]))||!!_0x104df5[_0x401619([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401619([0x46,0x4f,0x4f])));}function _0x2e5b1b(){const _0x546bc9=_0x290255[_0x401619([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546bc9||0x0==_0x546bc9[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2082c9}=new URL(window[_0x401619([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x546bc9[_0x401619([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2082c9))return!0x0;const _0x24b00b=_0x2082c9[_0x401619([0x73,0x70,0x6c,0x69,0x74])](_0x401619([0x2e]));return _0x546bc9[_0x401619([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20355b=>_0x20355b[_0x401619([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401619([0x2a])))[_0x401619([0x6d,0x61,0x70])](_0x53c907=>_0x53c907[_0x401619([0x73,0x70,0x6c,0x69,0x74])](_0x401619([0x2e])))[_0x401619([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c999d=>_0x4c999d[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24b00b[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401619([0x6d,0x61,0x70])](_0x5e38c2=>Array(_0x24b00b[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e38c2[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401619([0x66,0x69,0x6c,0x6c])](_0x5e38c2[0x0]===_0x401619([0x2a])?_0x401619([0x2a]):'')[_0x401619([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e38c2))[_0x401619([0x73,0x6f,0x6d,0x65])](_0x710824=>_0x24b00b[_0x401619([0x65,0x76,0x65,0x72,0x79])]((_0x2196c3,_0x3543c8)=>_0x710824[_0x3543c8]===_0x2196c3||_0x710824[_0x3543c8]===_0x401619([0x2a])));}function _0x216fd0(){return _0x31e9fc&&_0x2f2cfb?new window[(_0x401619([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ab3a3,_0x563d2e)=>{_0x31e9fc[_0x401619([0x74,0x68,0x65,0x6e])](_0x5ab3a3,_0x563d2e),_0x2f2cfb[_0x401619([0x74,0x68,0x65,0x6e])](_0x174a38=>{_0x174a38!=_0x401619([0x56,0x61,0x6c,0x69,0x64])&&_0x5ab3a3(_0x174a38);},_0x563d2e);}):_0x31e9fc||_0x2f2cfb||_0x401619([0x56,0x61,0x6c,0x69,0x64]);}}function _0x173b9b(_0x471e48,_0x4875ac){return new window[(_0x401619([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46b2cb=>{if(_0x157bf1())return _0x46b2cb(_0x401619([0x56,0x61,0x6c,0x69,0x64]));_0x1e73ce(),_0x2417db[_0x401619([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x401619([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x24d481=!0x1;const _0x1b711b=_0x1779aa();function _0xa811c7(_0x2ab153){return!!_0x2ab153&&(typeof _0x2ab153===_0x401619([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ab153===_0x401619([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ab153[_0x401619([0x74,0x68,0x65,0x6e])]===_0x401619([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ab153[_0x401619([0x63,0x61,0x74,0x63,0x68])]===_0x401619([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x175243(_0x434b43){_0x1703ae(_0x434b43)[_0x401619([0x74,0x68,0x65,0x6e])](_0x8e3f56=>{if(!_0x8e3f56||_0x8e3f56[_0x401619([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x401619([0x6f,0x6b]))return _0x401619([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x433cf6(_0x2703a4(_0x1b711b+_0x4875ac))!=_0x8e3f56[_0x401619([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x401619([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x401619([0x56,0x61,0x6c,0x69,0x64]);})[_0x401619([0x74,0x68,0x65,0x6e])](_0x2452cd=>(_0x1cbfdb(),_0x2452cd),()=>{const _0x32e50b=_0xdb9fa9();return null==_0x32e50b?(_0x1cbfdb(),_0x401619([0x56,0x61,0x6c,0x69,0x64])):_0x401619(_0xaac01-_0x32e50b>(0x63ae0106^_0x358828)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x401619([0x74,0x68,0x65,0x6e])](_0x46b2cb)[_0x401619([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46b2cb(_0x401619([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x279c2f=0x47946b86^_0x358828;function _0x1cbfdb(){const _0x2e79f3=_0x401619([0x6c,0x6c,0x63,0x74,0x2d])+_0x433cf6(_0x2703a4(_0x471e48)),_0x2815f6=_0x5d84df(_0x433cf6(window[_0x401619([0x4d,0x61,0x74,0x68])][_0x401619([0x63,0x65,0x69,0x6c])](_0xaac01/_0x279c2f)));window[_0x401619([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401619([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e79f3,_0x2815f6);}function _0xdb9fa9(){const _0x351e80=_0x401619([0x6c,0x6c,0x63,0x74,0x2d])+_0x433cf6(_0x2703a4(_0x471e48)),_0xf613e6=window[_0x401619([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401619([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x351e80);return _0xf613e6?window[_0x401619([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d84df(_0xf613e6),0x10)*_0x279c2f:null;}function _0x1703ae(_0x47b71a){return new window[(_0x401619([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x391464,_0x3f7f35)=>{_0x47b71a[_0x401619([0x74,0x68,0x65,0x6e])](_0x391464,_0x3f7f35),window[_0x401619([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f7f35,0x47a351c6^_0x358828);});}}_0x2417db[_0x401619([0x6f,0x6e])](_0x401619([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x173d03,_0x37b673)=>{if(_0x37b673[0x0]!=_0x471e48)return _0x46b2cb(_0x401619([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37b673[0x1]={..._0x37b673[0x1],[_0x401619([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b711b};},{[_0x401619([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401619([0x68,0x69,0x67,0x68])}),_0x2417db[_0x401619([0x6f,0x6e])](_0x401619([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45c949=>{_0xa811c7(_0x45c949[_0x401619([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x24d481=!0x0,_0x175243(_0x45c949[_0x401619([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x401619([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401619([0x6c,0x6f,0x77])}),_0x3ca497[_0x401619([0x74,0x68,0x65,0x6e])](()=>{_0x24d481||_0x46b2cb(_0x401619([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x157bf1(){return _0x2417db[_0x401619([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401619([0x76,0x69,0x65,0x77])][_0x401619([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x401619([0x61,0x75,0x74,0x6f]);}function _0x1e73ce(){_0x2417db[_0x401619([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401619([0x76,0x69,0x65,0x77])][_0x401619([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x401619([0x61,0x75,0x74,0x6f]);}}function _0x17e574(_0x1a38e9){const _0x300e2a=[new window[(_0x401619([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e7380=>setTimeout(_0x2e7380,0x47abbbca^_0x358828)),_0x3ca497[_0x401619([0x74,0x68,0x65,0x6e])](()=>new window[(_0x401619([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2163=>{let _0x859456=0x0;_0x2417db[_0x401619([0x6d,0x6f,0x64,0x65,0x6c])][_0x401619([0x6f,0x6e])](_0x401619([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27d176,_0x15d6f9)=>{_0x15d6f9[0x0][_0x401619([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x859456++,_0x859456==(0x47a284fe^_0x358828)&&(_0x5b2163(),_0x27d176[_0x401619([0x6f,0x66,0x66])]());});}))];return window[_0x401619([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x401619([0x72,0x61,0x63,0x65])](_0x300e2a)[_0x401619([0x74,0x68,0x65,0x6e])](()=>_0x1a38e9);}async function _0x21f38f(){await _0x3ca497,_0x2417db[_0x401619([0x6d,0x6f,0x64,0x65,0x6c])][_0x401619([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3afb6e,_0x2417db[_0x401619([0x6d,0x6f,0x64,0x65,0x6c])][_0x401619([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3afb6e,_0x2417db[_0x401619([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x401619([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4addb7(_0x5bbfdd){const _0x552cbf=_0x28a5b5();_0x2417db[_0x552cbf]=_0x401619([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5bbfdd,_0x5bbfdd!=_0x401619([0x56,0x61,0x6c,0x69,0x64])&&_0x21f38f();}function _0x28a5b5(){const _0x5ab0c4=window[_0x401619([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x401619([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x401619([0x6e,0x6f,0x77])]())[_0x401619([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x401619([0x2e]),'');let _0x311752=_0x401619([0x75]);for(let _0x4f42ce=0x0;_0x4f42ce<_0x5ab0c4[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f42ce+=0x2){let _0x11a74a=window[_0x401619([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ab0c4[_0x401619([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f42ce,_0x4f42ce+0x2));_0x11a74a>=_0x348cc1[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11a74a-=_0x348cc1[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x311752+=_0x348cc1[_0x11a74a];}return _0x311752;}function _0x429728(){const _0x2e642a=_0x32b609[_0x401619([0x73,0x70,0x6c,0x69,0x74])](_0x401619([0x2e]));if(0x3!=_0x2e642a[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ac443(_0x2e642a[0x1]);function _0x1ac443(_0x2c16cb){const _0x20a6e8=_0x1697bf(_0x2c16cb);return _0x20a6e8&&_0x11fd22()?_0x20a6e8:null;function _0x11fd22(){const _0x26ddf4=_0x20a6e8[_0x401619([0x6a,0x74,0x69])],_0x4938bb=window[_0x401619([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26ddf4[_0x401619([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26ddf4[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3596ed={..._0x20a6e8,[_0x401619([0x6a,0x74,0x69])]:_0x26ddf4[_0x401619([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26ddf4[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3596ed[_0x401619([0x76,0x63])],_0x2703a4(_0x3596ed)==_0x4938bb;}}}async function _0x4add1f(){let _0x3127f9=!0x0;try{const _0x56cc28=_0x32b609[_0x401619([0x73,0x70,0x6c,0x69,0x74])](_0x401619([0x2e])),[_0x3121e9,_0x315cf2,_0x50a7ff]=_0x56cc28;return _0xb4eb91(_0x3121e9),await _0x32d5a6(_0x3121e9,_0x315cf2,_0x50a7ff),_0x3127f9;}catch{return!0x1;}function _0xb4eb91(_0x48c7ab){const _0x3b5dd5=_0x1697bf(_0x48c7ab);_0x3b5dd5&&_0x3b5dd5[_0x401619([0x61,0x6c,0x67])]==_0x401619([0x45,0x53,0x32,0x35,0x36])||(_0x3127f9=!0x1);}async function _0x32d5a6(_0x481bc1,_0x215a00,_0x26d49b){const _0x4dadd7=window[_0x401619([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x401619([0x66,0x72,0x6f,0x6d])](_0x151fb3(_0x26d49b),_0x4f4422=>_0x4f4422[_0x401619([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cc087=new window[(_0x401619([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x401619([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x481bc1+_0x401619([0x2e])+_0x215a00),_0x5d8fd9=window[_0x401619([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x401619([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d8fd9)return;const _0x58af84=await _0x5d8fd9[_0x401619([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x401619([0x6a,0x77,0x6b]),_0x422844,{[_0x401619([0x6e,0x61,0x6d,0x65])]:_0x401619([0x45,0x43,0x44,0x53,0x41]),[_0x401619([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x401619([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x401619([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d8fd9[_0x401619([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x401619([0x6e,0x61,0x6d,0x65])]:_0x401619([0x45,0x43,0x44,0x53,0x41]),[_0x401619([0x68,0x61,0x73,0x68])]:{[_0x401619([0x6e,0x61,0x6d,0x65])]:_0x401619([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58af84,_0x4dadd7,_0x1cc087)||(_0x3127f9=!0x1);}}function _0x1697bf(_0x124975){return _0x124975[_0x401619([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x401619([0x65,0x79]))?JSON[_0x401619([0x70,0x61,0x72,0x73,0x65])](_0x151fb3(_0x124975)):null;}function _0x151fb3(_0x477cb9){return window[_0x401619([0x61,0x74,0x6f,0x62])](_0x477cb9[_0x401619([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x401619([0x2b]))[_0x401619([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x401619([0x2f])));}function _0x2703a4(_0x3da123){let _0x2716e8=0x1505;function _0x4b1212(_0x5cc796){for(let _0x35173c=0x0;_0x35173c<_0x5cc796[_0x401619([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35173c++){const _0xb0e325=_0x5cc796[_0x401619([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35173c);_0x2716e8=(_0x2716e8<<0x5)+_0x2716e8+_0xb0e325,_0x2716e8&=_0x2716e8;}}function _0x4d4e8d(_0x543cfa){Array[_0x401619([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x543cfa)?_0x543cfa[_0x401619([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d4e8d):_0x543cfa&&typeof _0x543cfa==_0x401619([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x401619([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x543cfa)[_0x401619([0x73,0x6f,0x72,0x74])]()[_0x401619([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1daabd,_0x1d78c1])=>{_0x4b1212(_0x1daabd),_0x4d4e8d(_0x1d78c1);}):_0x4b1212(window[_0x401619([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x543cfa));}return _0x4d4e8d(_0x3da123),_0x2716e8>>>0x0;}function _0x433cf6(_0x5e506a){return _0x5e506a[_0x401619([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x401619([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x401619([0x30]));}function _0x5d84df(_0x113eed){return _0x113eed[_0x401619([0x73,0x70,0x6c,0x69,0x74])]('')[_0x401619([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x401619([0x6a,0x6f,0x69,0x6e])]('');}function _0x3afb6e(){}function _0x401619(_0x3e99e7){return _0x3e99e7['map'](_0x407669=>String['fromCharCode'](_0x407669))['join']('');}_0x4addb7(await _0x123982());}(this);}['_moveSelectionToFootnoteDefinition'](_0x372886){const {plugins:_0x47d7f2,editing:_0x4dfaa6,model:_0x57d5e9}=this['editor'],_0x30d691=_0x47d7f2['get'](_0x458380)['getFootnote'](_0x372886);return!!_0x30d691&&(_0x57d5e9['change'](_0x2c9db1=>{_0x2c9db1['setSelection'](_0x2c9db1['createPositionAt'](_0x30d691['definition'],'end'));}),_0x4dfaa6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5b8098){const {plugins:_0x471c55,editing:_0x1e79df,model:_0x45b0c9}=this['editor'],_0xf2d2e4=_0x471c55['get'](_0x458380)['getFootnote'](_0x5b8098);return!!_0xf2d2e4&&(_0x45b0c9['change'](_0x2c3442=>{_0x2c3442['setSelection'](_0xf2d2e4['reference'],'on');}),_0x1e79df['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1a31df}=this['editor']['model'],_0x418d9b=this['editor']['config']['get']('footnotes.multiBlock');_0x1a31df['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1a31df['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1a31df['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x418d9b?_0x1a31df['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1a31df['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1a31df['addChildCheck'](_0x445c85=>{for(const _0x26c49c of _0x445c85)if('footnoteDefinition'===_0x26c49c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x27a7d1}=this,{conversion:_0x488d66,editing:_0x30fa1e}=_0x27a7d1,{t:t}=_0x27a7d1['locale'];_0x488d66['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5879be,{writer:_0x17d8e9,consumable:_0x4260c9})=>{const _0x29339b=_0x5879be['getChild'](0x0);if(!_0x29339b||!_0x29339b['is']('element','a'))return null;const _0x3c0a01=_0x29339b['getAttribute']('href')||'';if(!_0x3c0a01['startsWith']('#'))return null;const _0x5b8382=_0x3c0a01['replace'](/^#/,'');if(!_0x5b8382)return null;_0x4260c9['consume'](_0x29339b,{'name':!0x0,'attributes':['href']});for(const {item:_0xcbfe35}of _0x30fa1e['view']['createRangeIn'](_0x29339b))_0xcbfe35['is']('$textProxy')?_0x4260c9['consume'](_0xcbfe35['textNode'],{'name':!0x0}):_0xcbfe35['is']('element')&&_0x4260c9['consume'](_0xcbfe35,{'name':!0x0});return _0x17d8e9['createElement']('footnoteRef',{'footnoteId':_0x5b8382});}}),_0x488d66['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x169f9f,{writer:_0x214dad})=>D(_0x169f9f,_0x214dad)}),_0x488d66['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2348a9,{writer:_0x482597})=>{const _0x3f2a6f=_0x2348a9['getAttribute']('footnoteCounter');return _0x19f232(D(_0x2348a9,_0x482597),_0x482597,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3f2a6f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5c5a6a}=this,{t:t}=_0x5c5a6a['locale'],{conversion:_0x189738}=_0x5c5a6a;_0x189738['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x189738['for']('upcast')['add'](_0x15bb98=>{_0x15bb98['on']('element:ol',(_0xbc5cd6,_0x2ce0aa,_0x46df62)=>{const _0x91a9ec=_0x2ce0aa['viewItem'];if(!_0x91a9ec['hasClass']('footnotes-list')||!_0x2ce0aa['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x46df62['consumable']['consume'](_0x91a9ec,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x22f8da,modelCursor:_0x3fc349}=_0x46df62['convertChildren'](_0x2ce0aa['viewItem'],_0x2ce0aa['modelCursor']);_0x2ce0aa['modelRange']=_0x22f8da,_0x2ce0aa['modelCursor']=_0x3fc349;}),_0x15bb98['on']('element:hr',(_0x46e3e6,_0x2e4d7e,_0x137085)=>{const _0x21e85b=_0x2e4d7e['viewItem'];_0x21e85b['hasClass']('footnotes-divider')&&_0x2e4d7e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x137085['consumable']['consume'](_0x21e85b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x189738['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x51763e,{writer:_0x2bad27})=>v(_0x2bad27)}),_0x189738['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1c2acb,{writer:_0xc92ba0})=>{const _0x2afeac=v(_0xc92ba0,{'data-footnotes-list-label':t('Footnotes')}),_0x1ba88c=_0x19f232(_0x2afeac,_0xc92ba0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xc92ba0['setCustomProperty']('footnotesDefinitions',!0x0,_0x1ba88c),_0x1ba88c;}});}['_defineDefinitionConverters'](){const {editor:_0x110c85}=this,{conversion:_0x26942e,locale:_0xf668bf}=_0x110c85,_0x182fbb=_0x110c85['config']['get']('footnotes.multiBlock');_0x26942e['for']('upcast')['add'](_0x1aea9d=>{_0x1aea9d['on']('element:li',(_0x24dcfa,_0x1d8e7e,_0x427042)=>{const _0x32b9ab=_0x1d8e7e['viewItem'];if(!_0x32b9ab['hasClass']('footnote-definition')||!_0x32b9ab['getAttribute']('id'))return;const _0x2bbd87=_0x32b9ab['parent'];if(!_0x2bbd87['is']('element','ol')||!_0x2bbd87['hasClass']('footnotes-list'))return;if(!_0x427042['consumable']['test'](_0x32b9ab,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x411c03=_0x427042['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x32b9ab['getAttribute']('id')});if(!_0x427042['safeInsert'](_0x411c03,_0x1d8e7e['modelCursor']))return;_0x427042['consumable']['consume'](_0x32b9ab,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5d0275=Array['from'](_0x32b9ab['getChildren']())['find'](_0x50a7c8=>_0x50a7c8['is']('element')&&_0x50a7c8['hasClass']('footnote-content'));for(const _0xac79b of _0x32b9ab['getChildren']())_0xac79b['is']('element')&&(_0x427042['consumable']['consume'](_0xac79b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x427042['consumable']['consume'](_0xac79b,{'name':!0x0,'classes':'footnote-content'}));if(_0x5d0275){if(_0x182fbb)_0x427042['convertChildren'](_0x5d0275,_0x411c03);else{const _0x548449=_0x427042['writer']['createElement']('footnoteInlineContent');_0x427042['writer']['insert'](_0x548449,_0x411c03),_0x427042['convertChildren'](_0x5d0275,_0x548449);}}_0x427042['updateConversionResult'](_0x411c03,_0x1d8e7e);});}),_0x26942e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4527a6,{writer:_0x28b481})=>b(_0x4527a6,_0x28b481,_0xf668bf,{'dataPipeline':!0x0})}),_0x26942e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3b5145,{writer:_0x873823})=>b(_0x3b5145,_0x873823,_0xf668bf)});}['_defineBogusParagraphConverters'](){const {editor:_0xff55fb}=this,{conversion:_0x2e1a85}=_0xff55fb;_0xff55fb['config']['get']('footnotes.multiBlock')?(_0x2e1a85['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2e1a85['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xff55fb['model']['document'],'change:data',()=>{!function(_0x459cf7,_0x5bff9e){const _0x4d26b4=_0x459cf7['document']['differ'],_0x585ce3=new Set();for(const _0x202d1f of _0x4d26b4['getChanges']()){const _0x4ba010='attribute'==_0x202d1f['type']?_0x202d1f['range']['start']['parent']:_0x202d1f['position']['parent'];_0x4ba010['is']('element','footnoteDefinition')&&_0x585ce3['add'](_0x4ba010);}for(const _0x43db08 of _0x585ce3['values']()){const _0x2baa04=Array['from'](_0x43db08['getChildren']())['filter'](_0x36d6cc=>g(_0x36d6cc,_0x5bff9e['mapper']));for(const _0x5efcf6 of _0x2baa04)_0x5bff9e['reconvertItem'](_0x5efcf6);}}(_0xff55fb['model'],_0xff55fb['editing']);})):(_0x2e1a85['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2e1a85['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5887ea,{writer:_0x5aedce})=>{const _0x446814=_0x5aedce['createContainerElement']('span');return _0x5aedce['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x446814),_0x446814;}}));}['_defineKeyboardHandlers'](){const {editor:_0x500ee0}=this,{editing:_0x28783c,t:t}=_0x500ee0,_0x5e39dc=_0x500ee0['model']['document']['selection'];_0x500ee0['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x500ee0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x28783c['view']['document'],'enter',(_0x4621ef,_0x2595ca)=>{const _0x16f972=function(_0x1e25a0){const _0x28ae52=_0x1e25a0['getSelectedElement']();if(_0x28ae52?.['is']('element','footnoteRef'))return _0x28ae52;return null;}(_0x5e39dc);if(_0x16f972){const _0x308fa2=_0x16f972['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x308fa2),_0x2595ca['preventDefault'](),_0x4621ef['stop']();}},{'context':_0x37529a});}['_defineClickHandlers'](){const {editor:_0x24fa7b}=this,{editing:_0x2e71a2}=_0x24fa7b;_0x24fa7b['editing']['view']['addObserver'](_0xa80f45),_0x24fa7b['editing']['view']['addObserver'](_0x12c292);let _0xbb4ddf=!0x1;this['listenTo'](_0x2e71a2['view']['document'],'pointerdown',(_0x16d39a,_0x2c161d)=>{const {target:_0x16e5f7}=_0x2c161d,_0x1906ee=_0x2e71a2['view']['document']['selection'];_0xbb4ddf=!!(_0x16e5f7?.['is']('element','a')&&_0x16e5f7['parent']?.['is']('element','sup')&&_0x16e5f7['parent']['hasClass']('footnote'))&&_0x1906ee['getSelectedElement']()===_0x16e5f7['parent'];},{'priority':'high'}),this['listenTo'](_0x2e71a2['view']['document'],'click',(_0x15ceb4,_0x4e9046)=>{const {target:_0x24e739}=_0x4e9046;if(!_0x24e739?.['is']('element','a'))return;if(_0x24e739['parent']?.['is']('element','sup')&&_0x24e739['parent']['hasClass']('footnote')&&!_0xbb4ddf)return void _0x4e9046['preventDefault']();let _0x329730=_0x24e739['getAttribute']('href');if(!_0x329730?.['startsWith']('#'))return;_0x329730=_0x329730['slice'](0x1);let _0x1ce6ee=!0x1;(_0x329730['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x329730['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x329730))&&(_0x1ce6ee=!0x0),_0x1ce6ee&&(_0x4e9046['preventDefault'](),_0x15ceb4['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x55c52c}={}){return(_0x37ca6c,{writer:_0x2895d5})=>{if(!p(_0x37ca6c))return null;if(!_0x55c52c)return _0x2895d5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2573f7=_0x2895d5['createContainerElement']('p');return _0x2895d5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2573f7),_0x2573f7;};}function p(_0x5b0c80){const {parent:_0x2874ab}=_0x5b0c80;if(!_0x2874ab?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2874ab['childCount'])return!0x1;for(const _0x133140 of _0x5b0c80['getAttributeKeys']())if(!_0x133140['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x133140)return!0x1;return!0x0;}function g(_0x39545c,_0x530233){if(!_0x39545c['is']('element','paragraph'))return!0x1;const _0x2259fa=_0x530233['toViewElement'](_0x39545c);return!!_0x2259fa&&p(_0x39545c)!==_0x2259fa['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1731c9){return _0x37529a(_0x1731c9)&&_0x1731c9['is']('containerElement')&&!!_0x1731c9['getCustomProperty']('footnotesDefinitions');}function v(_0x330727,_0x56d2e2={}){const _0x51b89b=_0x330727['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x276867=_0x330727['createContainerElement']('ol',{'class':'footnotes-list'},_0x330727['createSlot']());return _0x330727['createContainerElement']('div',{'class':'footnotes',..._0x56d2e2},[_0x51b89b,_0x276867]);}function D(_0x204c8f,_0x47e296){const _0x1d4a5b=_0x204c8f['getAttribute']('footnoteId'),_0x2e1825=_0x204c8f['getAttribute']('footnoteCounter'),_0x2a3656=_0x47e296['createUIElement']('a',{'href':'#'+_0x1d4a5b},function(_0x435a91){const _0x37b276=this['toDomElement'](_0x435a91);return _0x37b276['textContent']=_0x2e1825,_0x37b276;}),_0x4882db=_0x47e296['createContainerElement']('sup',{'id':'ref-'+_0x1d4a5b,'class':'footnote'},[_0x2a3656]);return _0x4882db['getFillerOffset']=()=>null,_0x4882db;}function b(_0x259ab2,_0x1c2200,_0x4c101b,{dataPipeline:_0x2cadd4}={}){const {t:t}=_0x4c101b,_0x1c624e=_0x259ab2['getAttribute']('footnoteId'),_0x31be91=_0x1c2200['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1c624e},function(_0x1c2ff3){const _0x2f8919=this['toDomElement'](_0x1c2ff3);return _0x2f8919['innerText']='^',_0x2f8919;}),_0x4fdfb6=_0x2cadd4?_0x1c2200['createContainerElement']('div',{'class':'footnote-content'}):_0x4f888f(_0x1c2200['createEditableElement']('div',{'class':'footnote-content'}),_0x1c2200,{'label':t('Footnote\x20content.')});return _0x1c2200['insert'](_0x1c2200['createPositionAt'](_0x4fdfb6,0x0),_0x1c2200['createSlot']()),_0x1c2200['createContainerElement']('li',{'class':'footnote-definition','id':_0x1c624e},[_0x31be91,_0x4fdfb6]);}
|
|
23
|
+
import{Plugin as _0x3a093f}from'ckeditor5/src/core.js';import{isWidget as _0x108c67,toWidget as _0x17566d,toWidgetEditable as _0x1c1d91}from'ckeditor5/src/widget.js';import{uid as _0x5075a2}from'ckeditor5/src/utils.js';import{PointerObserver as _0x2cd589,ClickObserver as _0x6e58b}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3f88c7}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4c198d}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3a093f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3f88c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x162b44}=this;_0x162b44['config']['define']('footnotes.multiBlock',!0x0),_0x162b44['commands']['add']('insertFootnote',new _0x4c198d(_0x162b44)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x100446){const _0x34fa33=_0x3eee85([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]),_0x22eb1c=0x47a28506,_0x46ec3e=0x47a5fe86^_0x22eb1c,_0x3e196c=window[_0x3eee85([0x44,0x61,0x74,0x65])][_0x3eee85([0x6e,0x6f,0x77])](),_0x4d9313=_0x100446[_0x3eee85([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a8069=new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25cd2f=>{_0x4d9313[_0x3eee85([0x6f,0x6e,0x63,0x65])](_0x3eee85([0x72,0x65,0x61,0x64,0x79]),_0x25cd2f);}),_0x574327={[_0x3eee85([0x6b,0x74,0x79])]:_0x3eee85([0x45,0x43]),[_0x3eee85([0x75,0x73,0x65])]:_0x3eee85([0x73,0x69,0x67]),[_0x3eee85([0x63,0x72,0x76])]:_0x3eee85([0x50,0x2d,0x32,0x35,0x36]),[_0x3eee85([0x78])]:_0x3eee85([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]),[_0x3eee85([0x79])]:_0x3eee85([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]),[_0x3eee85([0x61,0x6c,0x67])]:_0x3eee85([0x45,0x53,0x32,0x35,0x36])},_0x4ecb0b=_0x4d9313[_0x3eee85([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3eee85([0x67,0x65,0x74])](_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34a7d7(){let _0x3f30f5,_0x47e603=null,_0x3a265e=null;try{if(_0x4ecb0b==_0x3eee85([0x47,0x50,0x4c]))return _0x3eee85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f30f5=_0x3df0f0(),!_0x3f30f5)return _0x3eee85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f30f5[_0x3eee85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a265e=_0x2bdd1c(_0x3f30f5[_0x3eee85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f30f5[_0x3eee85([0x6a,0x74,0x69])])),await _0x2214f0()?_0x4f8b16()?_0x22c392()?_0x3eee85([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x326313()?(_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3eee85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47e603=_0x31471e(_0x3eee85([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3eee85([0x74,0x72,0x69,0x61,0x6c])&&(_0x47e603=_0x31471e(_0x3eee85([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22db51()):_0x3eee85([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3eee85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3eee85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3eee85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22c392(){const _0x117d12=[_0x3eee85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3eee85([0x74,0x72,0x69,0x61,0x6c])][_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e196c/0x3e8:0xe10*_0x46ec3e;return _0x3f30f5[_0x3eee85([0x65,0x78,0x70])]<_0x117d12;}function _0x4f8b16(){const _0x2a1eab=_0x3f30f5[_0x3eee85([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a1eab&&(!!_0x2a1eab[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eee85([0x2a]))||!!_0x2a1eab[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eee85([0x46,0x4f,0x4f])));}function _0x326313(){const _0x4569fc=_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4569fc||0x0==_0x4569fc[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x181cbb}=new URL(window[_0x3eee85([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4569fc[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x181cbb))return!0x0;const _0x1235b2=_0x181cbb[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e]));return _0x4569fc[_0x3eee85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f0b5f=>_0x1f0b5f[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eee85([0x2a])))[_0x3eee85([0x6d,0x61,0x70])](_0x141e45=>_0x141e45[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e])))[_0x3eee85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x114384=>_0x114384[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1235b2[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3eee85([0x6d,0x61,0x70])](_0xf29bfe=>Array(_0x1235b2[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf29bfe[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3eee85([0x66,0x69,0x6c,0x6c])](_0xf29bfe[0x0]===_0x3eee85([0x2a])?_0x3eee85([0x2a]):'')[_0x3eee85([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf29bfe))[_0x3eee85([0x73,0x6f,0x6d,0x65])](_0x510ffb=>_0x1235b2[_0x3eee85([0x65,0x76,0x65,0x72,0x79])]((_0x5322b2,_0x13527d)=>_0x510ffb[_0x13527d]===_0x5322b2||_0x510ffb[_0x13527d]===_0x3eee85([0x2a])));}function _0x22db51(){return _0x47e603&&_0x3a265e?new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x460cef,_0x250975)=>{_0x47e603[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x460cef,_0x250975),_0x3a265e[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x378097=>{_0x378097!=_0x3eee85([0x56,0x61,0x6c,0x69,0x64])&&_0x460cef(_0x378097);},_0x250975);}):_0x47e603||_0x3a265e||_0x3eee85([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2bdd1c(_0x2bdd1a,_0x44cf41){return new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45d91a=>{if(_0x487ba9())return _0x45d91a(_0x3eee85([0x56,0x61,0x6c,0x69,0x64]));_0x414c83(),_0x4d9313[_0x3eee85([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3eee85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46e55c=!0x1;const _0x17ad70=_0x5075a2();function _0x5d06af(_0x35e7ae){return!!_0x35e7ae&&(typeof _0x35e7ae===_0x3eee85([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35e7ae===_0x3eee85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35e7ae[_0x3eee85([0x74,0x68,0x65,0x6e])]===_0x3eee85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35e7ae[_0x3eee85([0x63,0x61,0x74,0x63,0x68])]===_0x3eee85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50d720(_0x1fdb06){_0x3e38c5(_0x1fdb06)[_0x3eee85([0x74,0x68,0x65,0x6e])](_0xadc5cb=>{if(!_0xadc5cb||_0xadc5cb[_0x3eee85([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3eee85([0x6f,0x6b]))return _0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cbf66(_0x108b5c(_0x17ad70+_0x44cf41))!=_0xadc5cb[_0x3eee85([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3eee85([0x56,0x61,0x6c,0x69,0x64]);})[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x55ee94=>(_0x503d7f(),_0x55ee94),()=>{const _0x11ae88=_0x47225e();return null==_0x11ae88?(_0x503d7f(),_0x3eee85([0x56,0x61,0x6c,0x69,0x64])):_0x3eee85(_0x3e196c-_0x11ae88>(0x63ae0106^_0x22eb1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x45d91a)[_0x3eee85([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45d91a(_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54c344=0x47946b86^_0x22eb1c;function _0x503d7f(){const _0x156f57=_0x3eee85([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cbf66(_0x108b5c(_0x2bdd1a)),_0x3b84ac=_0x521309(_0x1cbf66(window[_0x3eee85([0x4d,0x61,0x74,0x68])][_0x3eee85([0x63,0x65,0x69,0x6c])](_0x3e196c/_0x54c344)));window[_0x3eee85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3eee85([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x156f57,_0x3b84ac);}function _0x47225e(){const _0x5c1f47=_0x3eee85([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cbf66(_0x108b5c(_0x2bdd1a)),_0x446e16=window[_0x3eee85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3eee85([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c1f47);return _0x446e16?window[_0x3eee85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521309(_0x446e16),0x10)*_0x54c344:null;}function _0x3e38c5(_0x5728ff){return new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28bdf6,_0x8baa87)=>{_0x5728ff[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x28bdf6,_0x8baa87),window[_0x3eee85([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8baa87,0x47a351c6^_0x22eb1c);});}}_0x4d9313[_0x3eee85([0x6f,0x6e])](_0x3eee85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45c574,_0x459ae1)=>{if(_0x459ae1[0x0]!=_0x2bdd1a)return _0x45d91a(_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x459ae1[0x1]={..._0x459ae1[0x1],[_0x3eee85([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17ad70};},{[_0x3eee85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3eee85([0x68,0x69,0x67,0x68])}),_0x4d9313[_0x3eee85([0x6f,0x6e])](_0x3eee85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f8dd3=>{_0x5d06af(_0x4f8dd3[_0x3eee85([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46e55c=!0x0,_0x50d720(_0x4f8dd3[_0x3eee85([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3eee85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3eee85([0x6c,0x6f,0x77])}),_0x3a8069[_0x3eee85([0x74,0x68,0x65,0x6e])](()=>{_0x46e55c||_0x45d91a(_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x487ba9(){return _0x4d9313[_0x3eee85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3eee85([0x76,0x69,0x65,0x77])][_0x3eee85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3eee85([0x61,0x75,0x74,0x6f]);}function _0x414c83(){_0x4d9313[_0x3eee85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3eee85([0x76,0x69,0x65,0x77])][_0x3eee85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3eee85([0x61,0x75,0x74,0x6f]);}}function _0x31471e(_0x5005aa){const _0x401fd8=[new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e39e6=>setTimeout(_0x1e39e6,0x47abbbca^_0x22eb1c)),_0x3a8069[_0x3eee85([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d1be3=>{let _0x2f58a1=0x0;_0x4d9313[_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c])][_0x3eee85([0x6f,0x6e])](_0x3eee85([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c1fd8,_0x2faf5c)=>{_0x2faf5c[0x0][_0x3eee85([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f58a1++,_0x2f58a1==(0x47a284fe^_0x22eb1c)&&(_0x5d1be3(),_0x4c1fd8[_0x3eee85([0x6f,0x66,0x66])]());});}))];return window[_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3eee85([0x72,0x61,0x63,0x65])](_0x401fd8)[_0x3eee85([0x74,0x68,0x65,0x6e])](()=>_0x5005aa);}async function _0x30afff(){await _0x3a8069,_0x4d9313[_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c])][_0x3eee85([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e8e7e,_0x4d9313[_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c])][_0x3eee85([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e8e7e,_0x4d9313[_0x3eee85([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x306654(_0x2d2548){const _0x5a9382=_0x68c689();_0x4d9313[_0x5a9382]=_0x3eee85([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d2548,_0x2d2548!=_0x3eee85([0x56,0x61,0x6c,0x69,0x64])&&_0x30afff();}function _0x68c689(){const _0xb591d4=window[_0x3eee85([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3eee85([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3eee85([0x6e,0x6f,0x77])]())[_0x3eee85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3eee85([0x2e]),'');let _0x4e4fad=_0x3eee85([0x75]);for(let _0x2f2bf8=0x0;_0x2f2bf8<_0xb591d4[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f2bf8+=0x2){let _0x35cd52=window[_0x3eee85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb591d4[_0x3eee85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f2bf8,_0x2f2bf8+0x2));_0x35cd52>=_0x34fa33[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35cd52-=_0x34fa33[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e4fad+=_0x34fa33[_0x35cd52];}return _0x4e4fad;}function _0x3df0f0(){const _0x190936=_0x4ecb0b[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e]));if(0x3!=_0x190936[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6b029f(_0x190936[0x1]);function _0x6b029f(_0x5d6ebb){const _0x2f109c=_0x77fca2(_0x5d6ebb);return _0x2f109c&&_0x458366()?_0x2f109c:null;function _0x458366(){const _0x2d07a3=_0x2f109c[_0x3eee85([0x6a,0x74,0x69])],_0x5803e9=window[_0x3eee85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d07a3[_0x3eee85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d07a3[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45642a={..._0x2f109c,[_0x3eee85([0x6a,0x74,0x69])]:_0x2d07a3[_0x3eee85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d07a3[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45642a[_0x3eee85([0x76,0x63])],_0x108b5c(_0x45642a)==_0x5803e9;}}}async function _0x2214f0(){let _0x4f9231=!0x0;try{const _0x347249=_0x4ecb0b[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e])),[_0x3fb3bf,_0x21e194,_0x35d45c]=_0x347249;return _0x18c667(_0x3fb3bf),await _0xf8612c(_0x3fb3bf,_0x21e194,_0x35d45c),_0x4f9231;}catch{return!0x1;}function _0x18c667(_0xbd583a){const _0x454dd6=_0x77fca2(_0xbd583a);_0x454dd6&&_0x454dd6[_0x3eee85([0x61,0x6c,0x67])]==_0x3eee85([0x45,0x53,0x32,0x35,0x36])||(_0x4f9231=!0x1);}async function _0xf8612c(_0xfd21a1,_0xa5f9ef,_0x14e39b){const _0x5d12d3=window[_0x3eee85([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3eee85([0x66,0x72,0x6f,0x6d])](_0x2abe22(_0x14e39b),_0x2e7e98=>_0x2e7e98[_0x3eee85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36d163=new window[(_0x3eee85([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3eee85([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfd21a1+_0x3eee85([0x2e])+_0xa5f9ef),_0x3ab2d6=window[_0x3eee85([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3eee85([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ab2d6)return;const _0x1409c5=await _0x3ab2d6[_0x3eee85([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3eee85([0x6a,0x77,0x6b]),_0x574327,{[_0x3eee85([0x6e,0x61,0x6d,0x65])]:_0x3eee85([0x45,0x43,0x44,0x53,0x41]),[_0x3eee85([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3eee85([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3eee85([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ab2d6[_0x3eee85([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3eee85([0x6e,0x61,0x6d,0x65])]:_0x3eee85([0x45,0x43,0x44,0x53,0x41]),[_0x3eee85([0x68,0x61,0x73,0x68])]:{[_0x3eee85([0x6e,0x61,0x6d,0x65])]:_0x3eee85([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1409c5,_0x5d12d3,_0x36d163)||(_0x4f9231=!0x1);}}function _0x77fca2(_0x241488){return _0x241488[_0x3eee85([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3eee85([0x65,0x79]))?JSON[_0x3eee85([0x70,0x61,0x72,0x73,0x65])](_0x2abe22(_0x241488)):null;}function _0x2abe22(_0x16252a){return window[_0x3eee85([0x61,0x74,0x6f,0x62])](_0x16252a[_0x3eee85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3eee85([0x2b]))[_0x3eee85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3eee85([0x2f])));}function _0x108b5c(_0xc8621f){let _0x12fe70=0x1505;function _0x3dd198(_0x330eff){for(let _0x46f067=0x0;_0x46f067<_0x330eff[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46f067++){const _0x2492c1=_0x330eff[_0x3eee85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46f067);_0x12fe70=(_0x12fe70<<0x5)+_0x12fe70+_0x2492c1,_0x12fe70&=_0x12fe70;}}function _0x26b059(_0x388288){Array[_0x3eee85([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x388288)?_0x388288[_0x3eee85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26b059):_0x388288&&typeof _0x388288==_0x3eee85([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3eee85([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x388288)[_0x3eee85([0x73,0x6f,0x72,0x74])]()[_0x3eee85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x321715,_0x3198c9])=>{_0x3dd198(_0x321715),_0x26b059(_0x3198c9);}):_0x3dd198(window[_0x3eee85([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x388288));}return _0x26b059(_0xc8621f),_0x12fe70>>>0x0;}function _0x1cbf66(_0x2ff45d){return _0x2ff45d[_0x3eee85([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3eee85([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3eee85([0x30]));}function _0x521309(_0x513cc1){return _0x513cc1[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3eee85([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3eee85([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e8e7e(){}function _0x3eee85(_0x13f1ac){return _0x13f1ac['map'](_0x366593=>String['fromCharCode'](_0x366593))['join']('');}_0x306654(await _0x34a7d7());}(this);}['_moveSelectionToFootnoteDefinition'](_0xc08e3){const {plugins:_0x5404c0,editing:_0x1b59d3,model:_0x1f39d9}=this['editor'],_0x546dc4=_0x5404c0['get'](_0x3f88c7)['getFootnote'](_0xc08e3);return!!_0x546dc4&&(_0x1f39d9['change'](_0x480c21=>{_0x480c21['setSelection'](_0x480c21['createPositionAt'](_0x546dc4['definition'],'end'));}),_0x1b59d3['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x25bd42){const {plugins:_0x8a088a,editing:_0x5b86cd,model:_0x4978fb}=this['editor'],_0x17ab22=_0x8a088a['get'](_0x3f88c7)['getFootnote'](_0x25bd42);return!!_0x17ab22&&(_0x4978fb['change'](_0x34e829=>{_0x34e829['setSelection'](_0x17ab22['reference'],'on');}),_0x5b86cd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x443cbe}=this['editor']['model'],_0xc4dcc0=this['editor']['config']['get']('footnotes.multiBlock');_0x443cbe['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x443cbe['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x443cbe['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xc4dcc0?_0x443cbe['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x443cbe['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x443cbe['addChildCheck'](_0x3499dc=>{for(const _0x67e22c of _0x3499dc)if('footnoteDefinition'===_0x67e22c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5633ef}=this,{conversion:_0x1a8359,editing:_0x2464f6}=_0x5633ef,{t:t}=_0x5633ef['locale'];_0x1a8359['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x258a16,{writer:_0x22960d,consumable:_0x5ee4d3})=>{const _0x209031=_0x258a16['getChild'](0x0);if(!_0x209031||!_0x209031['is']('element','a'))return null;const _0x4a5a80=_0x209031['getAttribute']('href')||'';if(!_0x4a5a80['startsWith']('#'))return null;const _0x24c9c5=_0x4a5a80['replace'](/^#/,'');if(!_0x24c9c5)return null;_0x5ee4d3['consume'](_0x209031,{'name':!0x0,'attributes':['href']});for(const {item:_0x24f048}of _0x2464f6['view']['createRangeIn'](_0x209031))_0x24f048['is']('$textProxy')?_0x5ee4d3['consume'](_0x24f048['textNode'],{'name':!0x0}):_0x24f048['is']('element')&&_0x5ee4d3['consume'](_0x24f048,{'name':!0x0});return _0x22960d['createElement']('footnoteRef',{'footnoteId':_0x24c9c5});}}),_0x1a8359['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x18c2dc,{writer:_0x297e8d})=>D(_0x18c2dc,_0x297e8d)}),_0x1a8359['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xff88f5,{writer:_0x4118d8})=>{const _0x2be9ca=_0xff88f5['getAttribute']('footnoteCounter');return _0x17566d(D(_0xff88f5,_0x4118d8),_0x4118d8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2be9ca)});}});}['_defineDefinitionsConverters'](){const {editor:_0x32a7b8}=this,{t:t}=_0x32a7b8['locale'],{conversion:_0x5ded0e}=_0x32a7b8;_0x5ded0e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5ded0e['for']('upcast')['add'](_0x499c91=>{_0x499c91['on']('element:ol',(_0x5800a4,_0x411e86,_0x487dd0)=>{const _0x20124e=_0x411e86['viewItem'];if(!_0x20124e['hasClass']('footnotes-list')||!_0x411e86['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x487dd0['consumable']['consume'](_0x20124e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xca16ad,modelCursor:_0x4608cf}=_0x487dd0['convertChildren'](_0x411e86['viewItem'],_0x411e86['modelCursor']);_0x411e86['modelRange']=_0xca16ad,_0x411e86['modelCursor']=_0x4608cf;}),_0x499c91['on']('element:hr',(_0x4a49ca,_0x20f79d,_0x14875f)=>{const _0x2fd482=_0x20f79d['viewItem'];_0x2fd482['hasClass']('footnotes-divider')&&_0x20f79d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x14875f['consumable']['consume'](_0x2fd482,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5ded0e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x9da38b,{writer:_0x23fbf5})=>v(_0x23fbf5)}),_0x5ded0e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4f637b,{writer:_0x57ca55})=>{const _0xff8199=v(_0x57ca55,{'data-footnotes-list-label':t('Footnotes')}),_0x774f32=_0x17566d(_0xff8199,_0x57ca55,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x57ca55['setCustomProperty']('footnotesDefinitions',!0x0,_0x774f32),_0x774f32;}});}['_defineDefinitionConverters'](){const {editor:_0x3b3411}=this,{conversion:_0x1d34ad,locale:_0x5da54a}=_0x3b3411,_0x42f082=_0x3b3411['config']['get']('footnotes.multiBlock');_0x1d34ad['for']('upcast')['add'](_0x5d8745=>{_0x5d8745['on']('element:li',(_0x1c571e,_0x4feff3,_0x31baf4)=>{const _0x20765b=_0x4feff3['viewItem'];if(!_0x20765b['hasClass']('footnote-definition')||!_0x20765b['getAttribute']('id'))return;const _0x34de61=_0x20765b['parent'];if(!_0x34de61['is']('element','ol')||!_0x34de61['hasClass']('footnotes-list'))return;if(!_0x31baf4['consumable']['test'](_0x20765b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x12610f=_0x31baf4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x20765b['getAttribute']('id')});if(!_0x31baf4['safeInsert'](_0x12610f,_0x4feff3['modelCursor']))return;_0x31baf4['consumable']['consume'](_0x20765b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3955cd=Array['from'](_0x20765b['getChildren']())['find'](_0x3bd242=>_0x3bd242['is']('element')&&_0x3bd242['hasClass']('footnote-content'));for(const _0x4523e8 of _0x20765b['getChildren']())_0x4523e8['is']('element')&&(_0x31baf4['consumable']['consume'](_0x4523e8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x31baf4['consumable']['consume'](_0x4523e8,{'name':!0x0,'classes':'footnote-content'}));if(_0x3955cd){if(_0x42f082)_0x31baf4['convertChildren'](_0x3955cd,_0x12610f);else{const _0x345883=_0x31baf4['writer']['createElement']('footnoteInlineContent');_0x31baf4['writer']['insert'](_0x345883,_0x12610f),_0x31baf4['convertChildren'](_0x3955cd,_0x345883);}}_0x31baf4['updateConversionResult'](_0x12610f,_0x4feff3);});}),_0x1d34ad['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5a787d,{writer:_0x34e7dc})=>b(_0x5a787d,_0x34e7dc,_0x5da54a,{'dataPipeline':!0x0})}),_0x1d34ad['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x421455,{writer:_0x414700})=>b(_0x421455,_0x414700,_0x5da54a)});}['_defineBogusParagraphConverters'](){const {editor:_0xe839c9}=this,{conversion:_0x1225c1}=_0xe839c9;_0xe839c9['config']['get']('footnotes.multiBlock')?(_0x1225c1['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1225c1['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xe839c9['model']['document'],'change:data',()=>{!function(_0x5f2fa7,_0x301d30){const _0x9a0435=_0x5f2fa7['document']['differ'],_0x44b1c0=new Set();for(const _0xe6e8a of _0x9a0435['getChanges']()){const _0x21536a='attribute'==_0xe6e8a['type']?_0xe6e8a['range']['start']['parent']:_0xe6e8a['position']['parent'];_0x21536a['is']('element','footnoteDefinition')&&_0x44b1c0['add'](_0x21536a);}for(const _0xf6d412 of _0x44b1c0['values']()){const _0xc8d31d=Array['from'](_0xf6d412['getChildren']())['filter'](_0x21ef0e=>g(_0x21ef0e,_0x301d30['mapper']));for(const _0x6b1786 of _0xc8d31d)_0x301d30['reconvertItem'](_0x6b1786);}}(_0xe839c9['model'],_0xe839c9['editing']);})):(_0x1225c1['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1225c1['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2705fc,{writer:_0x434b7b})=>{const _0x5efce8=_0x434b7b['createContainerElement']('span');return _0x434b7b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5efce8),_0x5efce8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x416032}=this,{editing:_0x3b9888,t:t}=_0x416032,_0x5e5ef5=_0x416032['model']['document']['selection'];_0x416032['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x416032['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3b9888['view']['document'],'enter',(_0x47dea4,_0x41127a)=>{const _0x1f7f5e=function(_0x2a8e65){const _0x2c197a=_0x2a8e65['getSelectedElement']();if(_0x2c197a?.['is']('element','footnoteRef'))return _0x2c197a;return null;}(_0x5e5ef5);if(_0x1f7f5e){const _0x5099db=_0x1f7f5e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5099db),_0x41127a['preventDefault'](),_0x47dea4['stop']();}},{'context':_0x108c67});}['_defineClickHandlers'](){const {editor:_0x2e51f3}=this,{editing:_0x1a50ef}=_0x2e51f3;_0x2e51f3['editing']['view']['addObserver'](_0x2cd589),_0x2e51f3['editing']['view']['addObserver'](_0x6e58b);let _0x592dbf=!0x1;this['listenTo'](_0x1a50ef['view']['document'],'pointerdown',(_0x42713f,_0x3216d8)=>{const {target:_0x30630d}=_0x3216d8,_0x1bf42f=_0x1a50ef['view']['document']['selection'];_0x592dbf=!!(_0x30630d?.['is']('element','a')&&_0x30630d['parent']?.['is']('element','sup')&&_0x30630d['parent']['hasClass']('footnote'))&&_0x1bf42f['getSelectedElement']()===_0x30630d['parent'];},{'priority':'high'}),this['listenTo'](_0x1a50ef['view']['document'],'click',(_0x24229f,_0xfa8567)=>{const {target:_0x11d8b5}=_0xfa8567;if(!_0x11d8b5?.['is']('element','a'))return;if(_0x11d8b5['parent']?.['is']('element','sup')&&_0x11d8b5['parent']['hasClass']('footnote')&&!_0x592dbf)return void _0xfa8567['preventDefault']();let _0x548fac=_0x11d8b5['getAttribute']('href');if(!_0x548fac?.['startsWith']('#'))return;_0x548fac=_0x548fac['slice'](0x1);let _0x4135c7=!0x1;(_0x548fac['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x548fac['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x548fac))&&(_0x4135c7=!0x0),_0x4135c7&&(_0xfa8567['preventDefault'](),_0x24229f['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5979f7}={}){return(_0x100733,{writer:_0x1d234a})=>{if(!p(_0x100733))return null;if(!_0x5979f7)return _0x1d234a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2fa433=_0x1d234a['createContainerElement']('p');return _0x1d234a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2fa433),_0x2fa433;};}function p(_0x20d6eb){const {parent:_0x7422a1}=_0x20d6eb;if(!_0x7422a1?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x7422a1['childCount'])return!0x1;for(const _0x313b57 of _0x20d6eb['getAttributeKeys']())if(!_0x313b57['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x313b57)return!0x1;return!0x0;}function g(_0x1cdcb2,_0x401f07){if(!_0x1cdcb2['is']('element','paragraph'))return!0x1;const _0x1d1a6c=_0x401f07['toViewElement'](_0x1cdcb2);return!!_0x1d1a6c&&p(_0x1cdcb2)!==_0x1d1a6c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x245166){return _0x108c67(_0x245166)&&_0x245166['is']('containerElement')&&!!_0x245166['getCustomProperty']('footnotesDefinitions');}function v(_0x1c0903,_0xa60260={}){const _0x1ded1e=_0x1c0903['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x56ed87=_0x1c0903['createContainerElement']('ol',{'class':'footnotes-list'},_0x1c0903['createSlot']());return _0x1c0903['createContainerElement']('div',{'class':'footnotes',..._0xa60260},[_0x1ded1e,_0x56ed87]);}function D(_0x599c99,_0x5813af){const _0x3e8f2d=_0x599c99['getAttribute']('footnoteId'),_0x5e7a47=_0x599c99['getAttribute']('footnoteCounter'),_0x3b9687=_0x5813af['createUIElement']('a',{'href':'#'+_0x3e8f2d},function(_0x32bc17){const _0x5c6882=this['toDomElement'](_0x32bc17);return _0x5c6882['textContent']=_0x5e7a47,_0x5c6882;}),_0x4c1f34=_0x5813af['createContainerElement']('sup',{'id':'ref-'+_0x3e8f2d,'class':'footnote'},[_0x3b9687]);return _0x4c1f34['getFillerOffset']=()=>null,_0x4c1f34;}function b(_0x1b46a7,_0x3fdd23,_0x5c3b1b,{dataPipeline:_0x13884c}={}){const {t:t}=_0x5c3b1b,_0x8a86e5=_0x1b46a7['getAttribute']('footnoteId'),_0x96b6f0=_0x3fdd23['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x8a86e5},function(_0xdb95da){const _0x59bbb5=this['toDomElement'](_0xdb95da);return _0x59bbb5['innerText']='^',_0x59bbb5;}),_0x343a9a=_0x13884c?_0x3fdd23['createContainerElement']('div',{'class':'footnote-content'}):_0x1c1d91(_0x3fdd23['createEditableElement']('div',{'class':'footnote-content'}),_0x3fdd23,{'label':t('Footnote\x20content.')});return _0x3fdd23['insert'](_0x3fdd23['createPositionAt'](_0x343a9a,0x0),_0x3fdd23['createSlot']()),_0x3fdd23['createContainerElement']('li',{'class':'footnote-definition','id':_0x8a86e5},[_0x96b6f0,_0x343a9a]);}
|