@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251221.0 → 0.0.0-nightly-20251222.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/commands/insertfootnotecommand.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>J,InsertFootnoteCommand:()=>y});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-=472]})(t,e)}function c(){const t=["length","position","_elementName","_model","12qgtnFh","flat","3195756atQJob","3006bhNaxd","push","$graveyard","175360KujckF","add","9976884yuUozj","has","1544LuZtHA","74367QUcJLp","251DfUkJX","_getElementKey","nodeAfter","root","13gMdBIr","name","3786167jSFfwu","set","getChanges","from","reset","getElementKey","insert","element","elementName","type","createRangeOn","22iwdhnO","$text","_trackedElements","get","rootName","slice","2972xCCRMM","5baUqLC","remove","getItems","clear","delete","attributes","values"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(276265===parseInt(e(516))/1*(-parseInt(e(492))/2)+parseInt(e(515))/3*(-parseInt(e(504))/4)+-parseInt(e(493))/5*(-parseInt(e(506))/6)+-parseInt(e(475))/7+parseInt(e(514))/8*(-parseInt(e(507))/9)+parseInt(e(510))/10*(-parseInt(e(486))/11)+-parseInt(e(512))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(503)];[r(502)];[r(517)];[r(488)]=new Map;constructor(t,e){const o=r;this[o(503)]=t,this[o(502)]=e[o(483)],this[o(517)]=e[o(480)]}[r(479)](){const t=r;this[t(488)][t(496)]()}[r(477)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(481)===i[e(484)]&&e(487)!==i[e(474)]&&i[e(501)][e(518)]){const t=this[e(503)][e(485)](i[e(501)][e(518)]);for(const o of t[e(495)]()){if(!o.is(e(482),this[e(502)]))continue;const t=this[e(517)](o);n[e(513)](t)||n[e(476)](t,[]),n[e(489)](t)[e(508)](o)}}if(e(494)===i[e(484)]&&i[e(474)]===this[e(502)]){const t=this[e(517)]({getAttribute:t=>i[e(498)][e(489)](t)});o[e(511)](t)}}for(const[t,n]of this[e(488)])e(509)===n[e(472)][e(490)]&&o[e(511)](t);for(const t of o)this[e(488)][e(497)](t);for(const[t,o]of n)this[e(488)][e(476)](t,o[o[e(500)]-1]);const i=new Set;for(const[t,s]of n)o[e(513)](t)&&(i[e(511)](s[0]),s[e(500)]>1?n[e(476)](t,s[e(491)](1)):n[e(497)](t),o[e(497)](t));return{removed:Array[e(478)](o),inserted:Array[e(478)](n[e(499)]())[e(505)](),moved:Array[e(478)](i)}}}function f(){const t=["createRangeOn","low","_footnoteDefsContainerTracker","before","map","reference","1903592EkCGCB","setAttribute","footnoteId","init","config","isOfficialPlugin","has","get","_ensureFootnotesReferencesHaveProperOrder","_handleFootnoteDefinitionsChanges","createRangeIn","getFootnotesDefinitionsObjectElement","isEqual","7hqWtJw","getFootnotes","length","getChanges","isPremiumPlugin","getRootNames","getAttribute","getFootnote","childCount","root","_footnoteDefsTracker","createPositionAt","min","_handleRemoveFootnoteReferenceById","setFootnoteFormatter","parent","FootnotesTracker","footnoteInlineContent","footnotesDefinitions","footnoteRef","pluginName","enqueueChange","12fsXECj","findIndex","add","indexOf","model","remove","_updateFootnoteRefCounter","_ensureFootnotesDefinitionsContainerExists","_updateFootnotesCounters","_footnotes","_footnotesDefinitions","footnoteDefinition","getChildren","_handleInsertedFootnoteReference","85407mDFVnq","createPositionBefore","_footnoteRefsTracker","5072QvNVxr","splice","_footnoteFormatter","insert","_handleFootnotesDefinitionsObjectChanges","document","append","_sortFootnoteDefinitions","151314poXLel","footnoteCounter","getFootnotesFormatter","listenTo","push","_handleFootnoteReferencesChanges","change:data","30dNgOGp","footnotes.multiBlock","definition","1790074nnRUrz","end","paragraph","set","singleton","compareWith","from","151921JwpSXc","2959650QEZcwR","createElement","40srkllL","some","_handleMovedFootnoteReference","unshift","find","_insertEmptyFootnotesDefinitionsContainer","editor","reset","$graveyard","high","move","16fCcdaL","differ","_handleFootnotesDefinitionsObjectSync","rootName","after","registerPostFixer","15HnTYpI"];return(f=function(){return t})()}const u=d;function d(t,e){const o=f();return(d=function(t,e){return o[t-=363]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(181939===-parseInt(e(388))/1*(-parseInt(e(464))/2)+-parseInt(e(461))/3*(parseInt(e(399))/4)+-parseInt(e(405))/5*(parseInt(e(368))/6)+parseInt(e(425))/7*(-parseInt(e(412))/8)+parseInt(e(386))/9+parseInt(e(375))/10*(parseInt(e(385))/11)+parseInt(e(447))/12*(parseInt(e(378))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class p extends t.Plugin{[u(456)]=[];[u(457)]=null;[u(466)]=null;[u(408)];[u(463)];[u(435)];static get[u(445)](){return u(441)}static get[u(417)](){return!0}static get[u(429)](){return!0}constructor(t){const e=u;super(t),this[e(408)]=new l(this[e(394)][e(451)],{elementName:e(443),getElementKey:()=>e(382)}),this[e(463)]=new l(this[e(394)][e(451)],{elementName:e(444),getElementKey:t=>t[e(431)](e(414))}),this[e(435)]=new l(this[e(394)][e(451)],{elementName:e(458),getElementKey:t=>t[e(431)](e(414))})}[u(415)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(365)][t(404)](e=>{const n=t,i=o[n(365)][n(400)][n(428)]();let s=!1;return this[n(364)](e,i)&&(s=!0),this[n(421)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(420)](e)&&(s=!0),this[n(401)](e)&&(s=!0),this[n(367)](e)&&(s=!0),s}),this[t(371)](o[t(365)],t(374),()=>{const e=t;o[e(446)]({isUndoable:!1},t=>{this[e(454)](t)})},{priority:t(407)}),this[t(371)](n,t(381),()=>{const e=t;this[e(456)]=[],this[e(408)][e(395)](),this[e(463)][e(395)](),this[e(435)][e(395)]()},{priority:t(397)})}[u(423)](){return this[u(457)]}[u(432)](t){const e=u;return this[e(456)][e(392)](e=>e.id===t)||null}[u(426)](){const t=u;return Array[t(384)](this[t(456)])}[u(370)](){return this[u(466)]}[u(439)](t){this[u(466)]=t}[u(455)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(456)][o(427)];i++)this[o(453)](t,i)&&(n=!0);return n}[u(393)](t,e){const o=u,n=t[o(387)](o(443),{});return t[o(366)](n,e),this[o(457)]=n,n}[u(454)](t){const e=u;if(!this[e(456)][e(427)]||this[e(457)])return;const o=this[e(456)][0][e(411)][e(434)],n=this[e(393)](t,o);for(const o of this[e(456)])o[e(377)][e(440)]||t[e(363)](o[e(377)],n,e(379));this[e(455)](t)}[u(364)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(408)][o(428)](e);if(r[o(427)]&&(this[o(457)]=r[0]),i[o(427)])if(i[o(427)]>1||this[o(457)]&&i[o(389)](t=>t!==this[o(457)])){const e=t[o(387)](o(443),{}),s=[];this[o(457)]&&s[o(372)](this[o(457)]),s[o(372)](...i),t[o(363)](e,s[0],o(409));for(const n of s)t[o(398)](t[o(422)](n),t[o(436)](e,o(379))),t[o(452)](n);this[o(457)]=e,this[o(455)](t),n=!0}else this[o(457)]=i[0];if(s[o(427)]&&o(396)===this[o(457)]?.[o(434)][o(402)]){for(const e of this[o(456)])t[o(452)](e[o(411)]),n=!0;this[o(456)]=[],this[o(457)]=null}return n}[u(421)](t,e){const o=u;let n=!1;const i=this[o(394)][o(416)][o(419)](o(376)),{inserted:s,moved:r}=this[o(435)][o(428)](e);for(const e of[...r,...s]){const s=e[o(431)](o(414)),r=this[o(432)](s);r&&(r[o(377)]=e),h(t,i,e)&&(n=!0)}return n}[u(373)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(428)](e);for(const e of i)this[o(438)](t,e)&&(n=!0);for(const e of s)this[o(460)](t,e)&&(n=!0);for(const e of r)this[o(390)](t,e)&&(n=!0);return n}[u(401)](t){const e=u;if(!this[e(457)])return!1;let o=!1;if(this[e(457)][e(433)]!==this[e(456)][e(427)]){const n=[];for(const t of this[e(457)][e(459)]()){const i=t[e(431)](e(414));this[e(432)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(452)](o)}const n=new Set,i=[];for(const t of this[e(457)][e(459)]()){const s=t[e(431)](e(414));n[e(418)](s)?(i[e(391)](t),o=!0):n[e(449)](s)}for(const o of i)t[e(452)](o);return this[e(457)][e(433)]||(t[e(452)](this[e(457)]),this[e(457)]=null,o=!0),o}[u(460)](t,e){const o=u;if(this[o(456)][o(392)](t=>t[o(411)]===e))return!1;let n=!1;const i=e[o(431)](o(414)),s=this[o(456)][o(448)](t=>t.id===i);-1!==s&&(t[o(452)](this[o(456)][s][o(411)]),this[o(456)][o(465)](s,1),n=!0);let r=this[o(457)]?function(t,e){const n=o;for(const o of t[n(459)]())if(o[n(431)](n(414))===e)return o;return null}(this[o(457)],i):null;r||(r=t[o(387)](o(458),{footnoteId:i}),this[o(457)]&&(t[o(363)](r,this[o(457)],o(379)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(394)][o(451)],this[o(456)],e);this[o(456)][o(465)](c,0,a);let l=c;return-1!==s&&(l=Math[o(437)](c,s)),this[o(455)](t,l)&&(n=!0),n}[u(438)](t,e){const o=u,n=this[o(456)][o(448)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(456)][n];return o(396)!==s[o(377)][o(434)][o(402)]&&(t[o(452)](s[o(377)]),i=!0),this[o(456)][o(465)](n,1),this[o(455)](t,n)&&(i=!0),i}[u(390)](t,e){const o=u,n=e[o(431)](o(414)),i=this[o(456)][o(448)](t=>t.id===n),s=this[o(456)][i];let r=!1;s[o(411)]=e,this[o(456)][o(465)](i,1);const a=m(this[o(394)][o(451)],this[o(456)],e);return this[o(456)][o(465)](a,0,s),this[o(455)](t,Math[o(437)](i,a))&&(r=!0),r}[u(453)](t,e){const o=u;if(!this[o(457)])return!1;const n=this[o(456)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(457)],digits:String(this[o(456)][o(427)])[o(427)],value:e+1}):String(e+1),n[o(411)][o(431)](o(369))!=i&&(t[o(413)](o(369),i,n[o(411)]),!0)}[u(367)](t){const e=u;if(!this[e(457)]||this[e(456)][e(427)]<2)return!1;if(function(t,o){const n=e;if(t[n(427)]!==o[n(427)])return!1;for(let e=0;e<t[n(427)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(456)][e(410)](t=>t.id),Array[e(384)](this[e(457)][e(459)]())[e(410)](t=>t[e(431)](e(414)))))return!1;let o=!1;for(let n=0;n<this[e(456)][e(427)];n++){const i=this[e(456)][n],s=t[e(462)](i[e(377)]),r=t[e(436)](this[e(457)],n);s[e(424)](r)||(t[e(398)](t[e(406)](i[e(377)]),r),o=!0)}return o}[u(420)](t){const e=u;if(!this[e(456)][e(427)])return!1;const{model:o}=this[e(394)];let n=!1;for(let i=0;i<this[e(456)][e(427)]-1;i++){const s=this[e(456)][i],r=this[e(456)][i+1],a=o[e(462)](s[e(411)]),c=o[e(462)](r[e(411)]);e(403)===a[e(383)](c)&&(this[e(390)](t,s[e(411)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(433)])return!1;const i=n(e?380:442);return t[n(363)](t[n(387)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(427)])return 0;const i=t[n(462)](o);for(let o=0;o<e[n(427)];o++){const s=e[o],r=t[n(462)](s[n(411)]);if(n(409)===i[n(383)](r))return o}const s=o[n(434)];let r=-1;for(let t=e[n(427)]-1;t>=0;t--)if(e[t][n(411)][n(434)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(365)][n(430)](),c=a[n(450)](s[n(402)]),l=a[c+1];if(l)for(let t=0;t<e[n(427)];t++)if(e[t][n(411)][n(434)][n(402)]===l)return t;return e[n(427)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=209]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(757244===parseInt(e(228))/1+-parseInt(e(217))/2+-parseInt(e(220))/3+parseInt(e(226))/4+parseInt(e(230))/5+parseInt(e(209))/6+-parseInt(e(242))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(219)](){const t=g,e=this[t(212)][t(223)][t(215)][t(224)],o=this[t(234)](e);this[t(239)]=!!o}[g(214)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(215)],r=this[e(234)](s);if(!r)return;const a=o[e(238)][e(232)](e(236)),c=t?.[e(213)]??(0,i.uid)();!function(t){const o=e;return o(221)==typeof t&&t[o(229)]>0&&!/\s/[o(216)](t)&&!/^\d/[o(216)](t)}(c)?(0,i.logWarning)(e(231)):(n[e(218)](t=>{const o=e,i=t[o(211)](o(233),{footnoteId:c});n[o(240)](i,r,null)}),a[e(235)](c))}[g(234)](t){const e=g,{model:o}=this[e(212)],{schema:n}=o,i=t[e(210)]();for(const t of i[e(227)]())if(n[e(241)](t)||n[e(222)](t))return null;const s=i[e(225)];return n[e(237)](s,e(233))?s:null}}function b(){const t=["plugins","isEnabled","insertObject","isBlock","5035464mDoYjj","6935850DlmJEl","getFirstRange","createElement","editor","footnoteId","execute","document","test","2637204NvpGzy","change","refresh","2336133bWKwvW","string","isObject","model","selection","end","3931120UwEXxl","getItems","853534DmWzgK","length","2908100KEEJQG","insert-footnote-command-executed-with-invalid-id","get","footnoteRef","_getPositionToInsertFootnote","_moveSelectionToFootnoteDefinition","FootnotesEditing","checkChild"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766275200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const D=T;function P(){const t=["_handlePasteFootnotesDefinitions","insert","getFirstRange","end","1236676uRBdMv","createElement","23736ECozZR","cloneElement","getRanges","contentInsertion","root","pluginName","append","element","88660PWReUg","toView","string","definition","1140732yzOwlN","clipboardInput","dataTransfer","footnotes.multiBlock","init","footnoteDefinition","method","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","18Xspmkh","push","application/ckeditor5-footnotes","isOfficialPlugin","get","340368DPiDqE","448wlJqpm","stringify","toModel","footnoteId","getFootnotesDefinitionsObjectElement","731042ucGlON","requires","data","find","_handleCopyFootnotesDefinitions","setAttribute","sourceEditorId","getFootnote","getChildren","includes","document","entries","FootnotesClipboard","getFootnotes","getSelectedBlocks","add","getData","listenTo","outputTransformation","from","selection","drop","config","toData","editing","footnotesDefinitions","content","createRangeIn","hasAttribute","change","create","remove","parse","length","keys","footnoteRef","isPremiumPlugin","htmlProcessor","flatMap","868100VNKdaX","1JWIVQY","footnoteInlineContent","setData","reduce","editor","getAttribute"];return(P=function(){return t})()}function T(t,e){const o=P();return(T=function(t,e){return o[t-=437]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(281226===parseInt(e(454))/1*(-parseInt(e(498))/2)+parseInt(e(492))/3+parseInt(e(464))/4+parseInt(e(474))/5+parseInt(e(478))/6+-parseInt(e(493))/7*(-parseInt(e(466))/8)+parseInt(e(487))/9*(-parseInt(e(453))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class _ extends t.Plugin{static get[D(471)](){return D(510)}static get[D(499)](){return[v,A.ClipboardPipeline]}static get[D(490)](){return!0}static get[D(450)](){return!0}[D(482)](){this[D(486)]()}[D(486)](){const t=D;this[t(502)](),this[t(460)]()}[D(502)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(491)](A.ClipboardPipeline),s=o[t(491)](p);this[t(515)](i,t(516),(o,i)=>{const r=t,a=V(n[r(441)](i[r(440)]));if(!a[r(447)])return;const c=s[r(511)](),l=a[r(457)]((t,o)=>{const n=r,i=c[n(501)](t=>t.id===o);if(i){const o=e[n(500)][n(475)](i[n(477)],{isClipboardPipeline:!0}),s=e[n(500)][n(451)][n(437)](o);t[i.id]=s}return t},Object[r(444)](null));i[r(480)][r(456)](r(489),JSON[r(494)](l))})}[D(460)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(438)],r=n[t(491)](A.ClipboardPipeline),a=n[t(491)](p),c=e[t(520)][t(491)](t(481));let l=null;this[t(515)](s[t(508)],t(479),(e,o)=>{const n=t,i=o[n(480)][n(514)](n(489));l=i?JSON[n(446)](i):null}),this[t(515)](r,t(469),(n,s)=>{const r=t,f=s[r(504)]===this[r(458)].id;f&&r(519)===s[r(484)]||o[r(443)](t=>{const n=r;let u=a[n(497)]();const d=!!u&&Array[n(517)](o[n(508)][n(518)][n(512)]())[n(507)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(473),e(449)))return!0;return!1}(o[n(441)](s[n(440)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(444)](null);for(const e of i[o(506)]())e.is(o(473),o(483))&&e[o(442)](o(496))&&(s[e[o(459)](o(496))]=t[o(467)](e,!0));return Object[o(448)](s)[o(447)]?s:null}(t,s[n(440)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(441)](e))n.is(o(473),o(439))&&i[o(488)](n);for(const e of i)t[o(445)](e)}(t,s[n(440)]),!l)return;const{selection:p}=o[n(508)],h=p[n(462)]()[n(470)];u&&!d||(u=L(t,s[n(440)]),u||=a[n(485)](t,h));const m=Array[n(517)](p[n(468)]())[n(452)](V),g=function(t,e,o){const s=n,r=Object[s(444)](null);for(const{item:n}of t[s(441)](e))if(n.is(s(473),s(449))){const e=n[s(459)](s(496));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(503)](s(496),r[e],n)}return r}(t,s[n(440)],t=>{const e=n;return!f||!!a[e(505)](t)&&!m[e(507)](t)});for(const[o,i]of Object[n(509)](l)){const s=g[o]||o;let r;if(n(476)!=typeof i)r=i,s!==o&&t[n(503)](n(496),s,r);else{r=t[n(465)](n(483),{footnoteId:s});const o=e[n(500)][n(451)][n(475)](i);let a;if(c)a=e[n(500)][n(495)](o,r);else{a=t[n(465)](n(455));const i=e[n(500)][n(495)](o,a);t[n(461)](i,a)}t[n(472)](a,r)}t[n(461)](r,u,n(463))}l=null})})}}function L(t,e){const o=D;for(const{item:n}of t[o(441)](e))if(n.is(o(473),o(439)))return n;return null}function V(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(473),e(449))&&o[e(513)](n[e(459)](e(496)));return Array[e(517)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),H=o(741),q=o.n(H),G=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=q();K()(G.A,X);G.A&&G.A.locals&&G.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(){var t=["282372XufIGR","671fSxGIJ","requires","Footnotes","pluginName","81VVCDwO","452470knqbKb","44zYbxzg","isPremiumPlugin","isOfficialPlugin","892984QWuAHm","348787KNAfpK","2281600TPselH","47595GwbOkO","3921470XxtCGy","85SMhref"];return(Q=function(){return t})()}var Y=$;function $(t,e){var o=Q();return($=function(t,e){return o[t-=234]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(571332===-parseInt(e(243))/1+parseInt(e(244))/2+parseInt(e(245))/3*(parseInt(e(239))/4)+parseInt(e(247))/5*(parseInt(e(248))/6)+parseInt(e(246))/7+-parseInt(e(242))/8*(-parseInt(e(237))/9)+parseInt(e(238))/10*(-parseInt(e(249))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class tt extends t.Plugin{static get[Y(236)](){return Y(235)}static get[Y(234)](){return[v,_,J]}static get[Y(241)](){return!0}static get[Y(240)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=355]})(t,e)}function nt(){const t=["lower-alpha","upper-roman","9121VowbAS","1395392iWOISb","decimal-leading-zero","lower-latin","2898ngPbSZ","decimal","326294sCONfs","40615FaRYdj","47786DkIrSM","upper-alpha","2612592zCKCzz","100ZUObXG","upper-latin","1614CVZMaA","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(298837===parseInt(e(363))/1+parseInt(e(361))/2+-parseInt(e(359))/3+parseInt(e(366))/4*(parseInt(e(362))/5)+parseInt(e(368))/6*(parseInt(e(355))/7)+-parseInt(e(356))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(360),et(357),et(358),et(367),et(370),et(364),et(369),et(371)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=499]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(909083===-parseInt(e(503))/1*(parseInt(e(511))/2)+-parseInt(e(505))/3+-parseInt(e(512))/4*(parseInt(e(501))/5)+-parseInt(e(518))/6*(-parseInt(e(520))/7)+-parseInt(e(517))/8*(-parseInt(e(509))/9)+-parseInt(e(522))/10+-parseInt(e(508))/11*(-parseInt(e(519))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(523)](){const t=st,{editor:e}=this,o=e[t(507)][t(510)](p)[t(502)]();this[t(515)]=!!o,this[t(504)]=o?.[t(521)](t(500))??null}[st(513)]({value:t}){const e=st,{editor:o}=this,n=o[e(507)][e(510)](p),i=n[e(502)]();i&&it[e(506)](t)&&o[e(499)][e(514)](o=>{const s=e;o[s(516)](s(500),t,i),n[s(524)](o)})}}function ct(){const t=["20xTLQkA","execute","change","isEnabled","setAttribute","8vHFbjJ","5953530lPyxaf","12PIDwXF","7CGROFC","getAttribute","14951740DHfrgi","refresh","_updateFootnotesCounters","model","footnotesListStyle","1032235wJelkq","getFootnotesDefinitionsObjectElement","11ursSlI","value","1554942mNLDcL","includes","plugins","37032985jvSTrm","10657161ySphEF","get","288766hNXJQL"];return(ct=function(){return t})()}const lt=ut;function ft(){const t=["isInteger","model","isEnabled","2576798dAVExn","10748547MAnkSL","plugins","27313396RXGGKL","change","7538418qwNpZA","3234555HhkGOl","getAttribute","setAttribute","getFootnotesDefinitionsObjectElement","get","value","execute","footnotesListStart","24djhSqq","_updateFootnotesCounters","859171wZTRFS","348878PZUDSG","10vvkxBZ","refresh","4OYklGp","9mFqqZp"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=106]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(712825===parseInt(e(111))/1+parseInt(e(112))/2*(parseInt(e(116))/3)+parseInt(e(115))/4*(parseInt(e(126))/5)+parseInt(e(125))/6+-parseInt(e(120))/7*(-parseInt(e(109))/8)+-parseInt(e(121))/9+parseInt(e(113))/10*(-parseInt(e(123))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(114)](){const t=lt,{editor:e}=this,o=e[t(122)][t(130)](p)[t(129)]();this[t(119)]=!!o,this[t(106)]=o?.[t(127)](t(108))??null}[lt(107)]({value:t}){const e=lt,{editor:o}=this,n=o[e(122)][e(130)](p),i=n[e(129)]();i&&Number[e(117)](t)&&o[e(118)][e(124)](o=>{const s=e;o[s(128)](s(108),t,i),n[s(110)](o)})}}const pt=ht;function ht(t,e){const o=bt();return(ht=function(t,e){return o[t-=162]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(410913===parseInt(e(225))/1*(-parseInt(e(173))/2)+-parseInt(e(177))/3*(-parseInt(e(171))/4)+-parseInt(e(223))/5*(parseInt(e(256))/6)+-parseInt(e(183))/7+parseInt(e(213))/8+-parseInt(e(240))/9+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[pt(187)](){return pt(237)}static get[pt(182)](){return[v,p]}static get[pt(248)](){return!0}static get[pt(217)](){return!0}[pt(172)](){const t=pt,{editor:e}=this;e[t(221)][t(246)](t(262),t(203)),e[t(221)][t(246)](t(186),1),e[t(176)][t(205)](t(180),new at(e)),e[t(176)][t(205)](t(179),new dt(e)),this[t(231)](),this[t(207)](),this[t(245)](),this[t(234)]()}[pt(231)](){const t=pt,{editor:e}=this,{schema:o}=e[t(197)];o[t(257)](t(189),{allowAttributes:[t(178),t(253)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(218)](t(192))[t(205)](e=>{const o=t;e.on(o(202),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(214)]?.[s(251)];r[s(242)](s(229))&&a?.is(s(162),s(189))&&(function(t,e,o,n){const i=s;if(!n[i(167)](e,i(253)))return;let r=1;const a=o[i(215)][i(236)](t,{attributes:i(260)});if(a){const e=Number[i(204)](t[i(209)](i(260)),10);Number[i(201)](e)||(r=e)}!a&&e[i(198)](i(253))||o[i(259)][i(216)](i(253),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(167)](e,i(178)))return;let r=i(203),a=!1;if(o[i(215)][i(236)](t,{attributes:i(222)})){const e={1:i(203),a:i(191),A:i(261),i:i(224),I:i(200)}[t[i(209)](i(222))];e&&(r=e),a=!0}o[i(215)][i(236)](t,{styles:i(199)})&&(r=function(t){const e=i;switch(t){case e(191):return e(188);case e(261):return e(164);default:return t}}(t[i(190)](i(199))),a=!0),!a&&e[i(198)](i(178))||o[i(259)][i(216)](i(178),r,e)}(r,a,n,i))})}),o[t(218)](t(249))[t(205)](e=>{const o=t;e.on(o(184),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;null==r||1===r?n[i(259)][i(169)](i(260),s):n[i(259)][i(216)](i(260),String(r),s)}),e.on(o(208),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;r&&i(203)!==r?n[i(259)][i(254)](i(199),r,s):n[i(259)][i(232)](i(199),s)})})}[pt(234)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(196)][t(163)](p),i=this[t(239)](),s=this[t(193)]();o[t(185)][t(174)](e=>{const r=t,a=o[r(185)][r(244)][r(241)]();let c=!1;for(const t of a){if(r(243)!==t[r(222)]||r(258)===t[r(226)])continue;const n=o[r(250)](t[r(227)][r(219)]);for(const t of n[r(170)]())t.is(r(162),r(189))&&(!t[r(198)](r(253))&&o[r(206)][r(167)](t,r(253))&&(e[r(216)](r(253),s,t),c=!0),!t[r(198)](r(178))&&o[r(206)][r(167)](t,r(178))&&(e[r(216)](r(178),i,t),c=!0))}return c&&n[r(235)](e),c})}[pt(245)](){const t=pt,{editor:e}=this;e[t(196)][t(163)](p)[t(165)](e=>this[t(195)](e))}[pt(239)](){const t=pt;return this[t(255)][t(221)][t(163)](t(262))}[pt(193)](){const t=pt;return this[t(255)][t(221)][t(163)](t(186))}[pt(195)]({container:t,value:e,digits:o}){const n=pt,i=t[n(209)](n(178)),s=t[n(209)](n(253)),r=Math[n(168)](e)+(s??1)-1;switch(i){case n(233):return function(t,e){const o=n;return String(t)[o(212)](e,"0")}(r,Math[n(194)](2,o));case n(191):case n(188):return wt(r,!1);case n(261):case n(164):return wt(r,!0);case n(224):return vt(r,!1);case n(200):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(211)](t);return Array[o(252)](n[o(210)]())[o(166)](t=>t.is(o(162),"ol")&&t[o(242)](o(229)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(247)](97+t)+n,i=Math[o(168)]((i-1)/26)}return e?n[o(220)]():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(){const t=["getChildren","toViewElement","padStart","6345040kMvlTk","modelCursor","consumable","setAttribute","isPremiumPlugin","for","nodeAfter","toUpperCase","config","type","25XKxJpn","lower-roman","1fGATxK","name","position","item","footnotes-list","12534680BWcERA","_defineSchema","removeStyle","decimal-leading-zero","_definePostfixer","_updateFootnotesCounters","consume","FootnotesPropertiesEditing","toLowerCase","_getDefaultListStyle","5324355eChYIt","getChanges","hasClass","insert","differ","_defineFormatter","define","fromCharCode","isOfficialPlugin","downcast","createRangeOn","parent","from","footnotesListStart","setStyle","editor","715806FDETvs","extend","$text","writer","start","upper-alpha","footnotes.footnotesProperties.defaultListStyle","element","get","upper-latin","setFootnoteFormatter","find","checkAttribute","floor","removeAttribute","getItems","848228kDfmkC","init","1138226LGxxWb","registerPostFixer","mapper","commands","3VdeYoD","footnotesListStyle","footnotesStart","footnotesStyle","viewItem","requires","633703XUssmv","attribute:footnotesListStart:footnotesDefinitions","document","footnotes.footnotesProperties.defaultStartIndex","pluginName","lower-latin","footnotesDefinitions","getStyle","lower-alpha","upcast","_getDefaultStartIndex","max","_formatFootnoteListValue","plugins","model","hasAttribute","list-style-type","upper-roman","isNaN","element:ol","decimal","parseInt","add","schema","_defineConverters","attribute:footnotesListStyle:footnotesDefinitions","getAttribute"];return(bt=function(){return t})()}function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(238)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.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:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=245]})(t,e)}var Et=xt;function St(){var t=["3322360qhbRQY","2675940eSyvkc","FootnotesProperties","requires","isPremiumPlugin","pluginName","133dzGFHO","4030782GCvMlU","2977265uWBpho","12747320eygUYV","7979461gNGENL","isOfficialPlugin","21784BoYPLB"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(769387===parseInt(e(254))/1*(parseInt(e(247))/2)+-parseInt(e(255))/3+-parseInt(e(248))/4+parseInt(e(256))/5+parseInt(e(249))/6+-parseInt(e(245))/7+parseInt(e(257))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[Et(253)](){return Et(250)}static get[Et(251)](){return[mt,Ft]}static get[Et(246)](){return!0}static get[Et(252)](){return!0}}function Dt(t,e){var o=Pt();return(Dt=function(t,e){return o[t-=395]})(t,e)}function Pt(){var t=["152madaxy","30501qSHgcF","61407pTHlVz","44nhPRUc","1360403VVRuaN","5faIKAN","1zHoqHi","13ZGEQgK","162626JYoVKF","13122NHbceW","530EScDWG","4924380qAmHfx","37261rtfQVT"];return(Pt=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(204401===-parseInt(e(398))/1*(parseInt(e(400))/2)+parseInt(e(406))/3*(parseInt(e(395))/4)+-parseInt(e(397))/5*(parseInt(e(401))/6)+-parseInt(e(404))/7*(-parseInt(e(405))/8)+-parseInt(e(407))/9*(-parseInt(e(402))/10)+parseInt(e(396))/11+parseInt(e(403))/12*(-parseInt(e(399))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>D,FootnotesEditing:()=>I,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>p,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-=472]})(t,e)}function c(){const t=["length","position","_elementName","_model","12qgtnFh","flat","3195756atQJob","3006bhNaxd","push","$graveyard","175360KujckF","add","9976884yuUozj","has","1544LuZtHA","74367QUcJLp","251DfUkJX","_getElementKey","nodeAfter","root","13gMdBIr","name","3786167jSFfwu","set","getChanges","from","reset","getElementKey","insert","element","elementName","type","createRangeOn","22iwdhnO","$text","_trackedElements","get","rootName","slice","2972xCCRMM","5baUqLC","remove","getItems","clear","delete","attributes","values"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(276265===parseInt(e(516))/1*(-parseInt(e(492))/2)+parseInt(e(515))/3*(-parseInt(e(504))/4)+-parseInt(e(493))/5*(-parseInt(e(506))/6)+-parseInt(e(475))/7+parseInt(e(514))/8*(-parseInt(e(507))/9)+parseInt(e(510))/10*(-parseInt(e(486))/11)+-parseInt(e(512))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(503)];[r(502)];[r(517)];[r(488)]=new Map;constructor(t,e){const o=r;this[o(503)]=t,this[o(502)]=e[o(483)],this[o(517)]=e[o(480)]}[r(479)](){const t=r;this[t(488)][t(496)]()}[r(477)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(481)===i[e(484)]&&e(487)!==i[e(474)]&&i[e(501)][e(518)]){const t=this[e(503)][e(485)](i[e(501)][e(518)]);for(const o of t[e(495)]()){if(!o.is(e(482),this[e(502)]))continue;const t=this[e(517)](o);n[e(513)](t)||n[e(476)](t,[]),n[e(489)](t)[e(508)](o)}}if(e(494)===i[e(484)]&&i[e(474)]===this[e(502)]){const t=this[e(517)]({getAttribute:t=>i[e(498)][e(489)](t)});o[e(511)](t)}}for(const[t,n]of this[e(488)])e(509)===n[e(472)][e(490)]&&o[e(511)](t);for(const t of o)this[e(488)][e(497)](t);for(const[t,o]of n)this[e(488)][e(476)](t,o[o[e(500)]-1]);const i=new Set;for(const[t,s]of n)o[e(513)](t)&&(i[e(511)](s[0]),s[e(500)]>1?n[e(476)](t,s[e(491)](1)):n[e(497)](t),o[e(497)](t));return{removed:Array[e(478)](o),inserted:Array[e(478)](n[e(499)]())[e(505)](),moved:Array[e(478)](i)}}}function f(){const t=["createRangeOn","low","_footnoteDefsContainerTracker","before","map","reference","1903592EkCGCB","setAttribute","footnoteId","init","config","isOfficialPlugin","has","get","_ensureFootnotesReferencesHaveProperOrder","_handleFootnoteDefinitionsChanges","createRangeIn","getFootnotesDefinitionsObjectElement","isEqual","7hqWtJw","getFootnotes","length","getChanges","isPremiumPlugin","getRootNames","getAttribute","getFootnote","childCount","root","_footnoteDefsTracker","createPositionAt","min","_handleRemoveFootnoteReferenceById","setFootnoteFormatter","parent","FootnotesTracker","footnoteInlineContent","footnotesDefinitions","footnoteRef","pluginName","enqueueChange","12fsXECj","findIndex","add","indexOf","model","remove","_updateFootnoteRefCounter","_ensureFootnotesDefinitionsContainerExists","_updateFootnotesCounters","_footnotes","_footnotesDefinitions","footnoteDefinition","getChildren","_handleInsertedFootnoteReference","85407mDFVnq","createPositionBefore","_footnoteRefsTracker","5072QvNVxr","splice","_footnoteFormatter","insert","_handleFootnotesDefinitionsObjectChanges","document","append","_sortFootnoteDefinitions","151314poXLel","footnoteCounter","getFootnotesFormatter","listenTo","push","_handleFootnoteReferencesChanges","change:data","30dNgOGp","footnotes.multiBlock","definition","1790074nnRUrz","end","paragraph","set","singleton","compareWith","from","151921JwpSXc","2959650QEZcwR","createElement","40srkllL","some","_handleMovedFootnoteReference","unshift","find","_insertEmptyFootnotesDefinitionsContainer","editor","reset","$graveyard","high","move","16fCcdaL","differ","_handleFootnotesDefinitionsObjectSync","rootName","after","registerPostFixer","15HnTYpI"];return(f=function(){return t})()}const u=d;function d(t,e){const o=f();return(d=function(t,e){return o[t-=363]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(181939===-parseInt(e(388))/1*(-parseInt(e(464))/2)+-parseInt(e(461))/3*(parseInt(e(399))/4)+-parseInt(e(405))/5*(parseInt(e(368))/6)+parseInt(e(425))/7*(-parseInt(e(412))/8)+parseInt(e(386))/9+parseInt(e(375))/10*(parseInt(e(385))/11)+parseInt(e(447))/12*(parseInt(e(378))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class p extends t.Plugin{[u(456)]=[];[u(457)]=null;[u(466)]=null;[u(408)];[u(463)];[u(435)];static get[u(445)](){return u(441)}static get[u(417)](){return!0}static get[u(429)](){return!0}constructor(t){const e=u;super(t),this[e(408)]=new l(this[e(394)][e(451)],{elementName:e(443),getElementKey:()=>e(382)}),this[e(463)]=new l(this[e(394)][e(451)],{elementName:e(444),getElementKey:t=>t[e(431)](e(414))}),this[e(435)]=new l(this[e(394)][e(451)],{elementName:e(458),getElementKey:t=>t[e(431)](e(414))})}[u(415)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(365)][t(404)](e=>{const n=t,i=o[n(365)][n(400)][n(428)]();let s=!1;return this[n(364)](e,i)&&(s=!0),this[n(421)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(420)](e)&&(s=!0),this[n(401)](e)&&(s=!0),this[n(367)](e)&&(s=!0),s}),this[t(371)](o[t(365)],t(374),()=>{const e=t;o[e(446)]({isUndoable:!1},t=>{this[e(454)](t)})},{priority:t(407)}),this[t(371)](n,t(381),()=>{const e=t;this[e(456)]=[],this[e(408)][e(395)](),this[e(463)][e(395)](),this[e(435)][e(395)]()},{priority:t(397)})}[u(423)](){return this[u(457)]}[u(432)](t){const e=u;return this[e(456)][e(392)](e=>e.id===t)||null}[u(426)](){const t=u;return Array[t(384)](this[t(456)])}[u(370)](){return this[u(466)]}[u(439)](t){this[u(466)]=t}[u(455)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(456)][o(427)];i++)this[o(453)](t,i)&&(n=!0);return n}[u(393)](t,e){const o=u,n=t[o(387)](o(443),{});return t[o(366)](n,e),this[o(457)]=n,n}[u(454)](t){const e=u;if(!this[e(456)][e(427)]||this[e(457)])return;const o=this[e(456)][0][e(411)][e(434)],n=this[e(393)](t,o);for(const o of this[e(456)])o[e(377)][e(440)]||t[e(363)](o[e(377)],n,e(379));this[e(455)](t)}[u(364)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(408)][o(428)](e);if(r[o(427)]&&(this[o(457)]=r[0]),i[o(427)])if(i[o(427)]>1||this[o(457)]&&i[o(389)](t=>t!==this[o(457)])){const e=t[o(387)](o(443),{}),s=[];this[o(457)]&&s[o(372)](this[o(457)]),s[o(372)](...i),t[o(363)](e,s[0],o(409));for(const n of s)t[o(398)](t[o(422)](n),t[o(436)](e,o(379))),t[o(452)](n);this[o(457)]=e,this[o(455)](t),n=!0}else this[o(457)]=i[0];if(s[o(427)]&&o(396)===this[o(457)]?.[o(434)][o(402)]){for(const e of this[o(456)])t[o(452)](e[o(411)]),n=!0;this[o(456)]=[],this[o(457)]=null}return n}[u(421)](t,e){const o=u;let n=!1;const i=this[o(394)][o(416)][o(419)](o(376)),{inserted:s,moved:r}=this[o(435)][o(428)](e);for(const e of[...r,...s]){const s=e[o(431)](o(414)),r=this[o(432)](s);r&&(r[o(377)]=e),h(t,i,e)&&(n=!0)}return n}[u(373)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(428)](e);for(const e of i)this[o(438)](t,e)&&(n=!0);for(const e of s)this[o(460)](t,e)&&(n=!0);for(const e of r)this[o(390)](t,e)&&(n=!0);return n}[u(401)](t){const e=u;if(!this[e(457)])return!1;let o=!1;if(this[e(457)][e(433)]!==this[e(456)][e(427)]){const n=[];for(const t of this[e(457)][e(459)]()){const i=t[e(431)](e(414));this[e(432)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(452)](o)}const n=new Set,i=[];for(const t of this[e(457)][e(459)]()){const s=t[e(431)](e(414));n[e(418)](s)?(i[e(391)](t),o=!0):n[e(449)](s)}for(const o of i)t[e(452)](o);return this[e(457)][e(433)]||(t[e(452)](this[e(457)]),this[e(457)]=null,o=!0),o}[u(460)](t,e){const o=u;if(this[o(456)][o(392)](t=>t[o(411)]===e))return!1;let n=!1;const i=e[o(431)](o(414)),s=this[o(456)][o(448)](t=>t.id===i);-1!==s&&(t[o(452)](this[o(456)][s][o(411)]),this[o(456)][o(465)](s,1),n=!0);let r=this[o(457)]?function(t,e){const n=o;for(const o of t[n(459)]())if(o[n(431)](n(414))===e)return o;return null}(this[o(457)],i):null;r||(r=t[o(387)](o(458),{footnoteId:i}),this[o(457)]&&(t[o(363)](r,this[o(457)],o(379)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(394)][o(451)],this[o(456)],e);this[o(456)][o(465)](c,0,a);let l=c;return-1!==s&&(l=Math[o(437)](c,s)),this[o(455)](t,l)&&(n=!0),n}[u(438)](t,e){const o=u,n=this[o(456)][o(448)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(456)][n];return o(396)!==s[o(377)][o(434)][o(402)]&&(t[o(452)](s[o(377)]),i=!0),this[o(456)][o(465)](n,1),this[o(455)](t,n)&&(i=!0),i}[u(390)](t,e){const o=u,n=e[o(431)](o(414)),i=this[o(456)][o(448)](t=>t.id===n),s=this[o(456)][i];let r=!1;s[o(411)]=e,this[o(456)][o(465)](i,1);const a=m(this[o(394)][o(451)],this[o(456)],e);return this[o(456)][o(465)](a,0,s),this[o(455)](t,Math[o(437)](i,a))&&(r=!0),r}[u(453)](t,e){const o=u;if(!this[o(457)])return!1;const n=this[o(456)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(457)],digits:String(this[o(456)][o(427)])[o(427)],value:e+1}):String(e+1),n[o(411)][o(431)](o(369))!=i&&(t[o(413)](o(369),i,n[o(411)]),!0)}[u(367)](t){const e=u;if(!this[e(457)]||this[e(456)][e(427)]<2)return!1;if(function(t,o){const n=e;if(t[n(427)]!==o[n(427)])return!1;for(let e=0;e<t[n(427)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(456)][e(410)](t=>t.id),Array[e(384)](this[e(457)][e(459)]())[e(410)](t=>t[e(431)](e(414)))))return!1;let o=!1;for(let n=0;n<this[e(456)][e(427)];n++){const i=this[e(456)][n],s=t[e(462)](i[e(377)]),r=t[e(436)](this[e(457)],n);s[e(424)](r)||(t[e(398)](t[e(406)](i[e(377)]),r),o=!0)}return o}[u(420)](t){const e=u;if(!this[e(456)][e(427)])return!1;const{model:o}=this[e(394)];let n=!1;for(let i=0;i<this[e(456)][e(427)]-1;i++){const s=this[e(456)][i],r=this[e(456)][i+1],a=o[e(462)](s[e(411)]),c=o[e(462)](r[e(411)]);e(403)===a[e(383)](c)&&(this[e(390)](t,s[e(411)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(433)])return!1;const i=n(e?380:442);return t[n(363)](t[n(387)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(427)])return 0;const i=t[n(462)](o);for(let o=0;o<e[n(427)];o++){const s=e[o],r=t[n(462)](s[n(411)]);if(n(409)===i[n(383)](r))return o}const s=o[n(434)];let r=-1;for(let t=e[n(427)]-1;t>=0;t--)if(e[t][n(411)][n(434)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(365)][n(430)](),c=a[n(450)](s[n(402)]),l=a[c+1];if(l)for(let t=0;t<e[n(427)];t++)if(e[t][n(411)][n(434)][n(402)]===l)return t;return e[n(427)]}const g=y;function w(){const t=["change","7263585ObxJRR","2871PxVvSC","getItems","footnoteId","_getPositionToInsertFootnote","selection","editor","createElement","1119522TatFJt","FootnotesEditing","execute","length","isObject","2762469VhMoFE","getFirstRange","checkChild","refresh","insert-footnote-command-executed-with-invalid-id","insertObject","plugins","end","footnoteRef","116140buYLxW","_moveSelectionToFootnoteDefinition","754383FjRfDd","8WtcfgK","isEnabled","isBlock","773417eaktsg","test","2665260YjOJGr","2SolYlr","get","model","8EIpCSr","document","string"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=271]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(962224===-parseInt(e(302))/1*(-parseInt(e(305))/2)+-parseInt(e(282))/3*(parseInt(e(308))/4)+-parseInt(e(274))/5+-parseInt(e(304))/6+parseInt(e(298))/7+parseInt(e(299))/8*(-parseInt(e(287))/9)+parseInt(e(296))/10*(parseInt(e(275))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(290)](){const t=g,e=this[t(280)][t(307)][t(271)][t(279)],o=this[t(278)](e);this[t(300)]=!!o}[g(284)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(271)],r=this[e(278)](s);if(!r)return;const a=o[e(293)][e(306)](e(283)),c=t?.[e(277)]??(0,i.uid)();!function(t){const o=e;return o(272)==typeof t&&t[o(285)]>0&&!/\s/[o(303)](t)&&!/^\d/[o(303)](t)}(c)?(0,i.logWarning)(e(291)):(n[e(273)](t=>{const o=e,i=t[o(281)](o(295),{footnoteId:c});n[o(292)](i,r,null)}),a[e(297)](c))}[g(278)](t){const e=g,{model:o}=this[e(280)],{schema:n}=o,i=t[e(288)]();for(const t of i[e(276)]())if(n[e(301)](t)||n[e(286)](t))return null;const s=i[e(294)];return n[e(289)](s,e(295))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766361600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({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:v()}),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 v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const P=_;function T(){const t=["_handlePasteFootnotesDefinitions","insert","getFirstRange","end","1236676uRBdMv","createElement","23736ECozZR","cloneElement","getRanges","contentInsertion","root","pluginName","append","element","88660PWReUg","toView","string","definition","1140732yzOwlN","clipboardInput","dataTransfer","footnotes.multiBlock","init","footnoteDefinition","method","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","18Xspmkh","push","application/ckeditor5-footnotes","isOfficialPlugin","get","340368DPiDqE","448wlJqpm","stringify","toModel","footnoteId","getFootnotesDefinitionsObjectElement","731042ucGlON","requires","data","find","_handleCopyFootnotesDefinitions","setAttribute","sourceEditorId","getFootnote","getChildren","includes","document","entries","FootnotesClipboard","getFootnotes","getSelectedBlocks","add","getData","listenTo","outputTransformation","from","selection","drop","config","toData","editing","footnotesDefinitions","content","createRangeIn","hasAttribute","change","create","remove","parse","length","keys","footnoteRef","isPremiumPlugin","htmlProcessor","flatMap","868100VNKdaX","1JWIVQY","footnoteInlineContent","setData","reduce","editor","getAttribute"];return(T=function(){return t})()}function _(t,e){const o=T();return(_=function(t,e){return o[t-=437]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(281226===parseInt(e(454))/1*(-parseInt(e(498))/2)+parseInt(e(492))/3+parseInt(e(464))/4+parseInt(e(474))/5+parseInt(e(478))/6+-parseInt(e(493))/7*(-parseInt(e(466))/8)+parseInt(e(487))/9*(-parseInt(e(453))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class D extends t.Plugin{static get[P(471)](){return P(510)}static get[P(499)](){return[I,A.ClipboardPipeline]}static get[P(490)](){return!0}static get[P(450)](){return!0}[P(482)](){this[P(486)]()}[P(486)](){const t=P;this[t(502)](),this[t(460)]()}[P(502)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(491)](A.ClipboardPipeline),s=o[t(491)](p);this[t(515)](i,t(516),(o,i)=>{const r=t,a=V(n[r(441)](i[r(440)]));if(!a[r(447)])return;const c=s[r(511)](),l=a[r(457)]((t,o)=>{const n=r,i=c[n(501)](t=>t.id===o);if(i){const o=e[n(500)][n(475)](i[n(477)],{isClipboardPipeline:!0}),s=e[n(500)][n(451)][n(437)](o);t[i.id]=s}return t},Object[r(444)](null));i[r(480)][r(456)](r(489),JSON[r(494)](l))})}[P(460)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(438)],r=n[t(491)](A.ClipboardPipeline),a=n[t(491)](p),c=e[t(520)][t(491)](t(481));let l=null;this[t(515)](s[t(508)],t(479),(e,o)=>{const n=t,i=o[n(480)][n(514)](n(489));l=i?JSON[n(446)](i):null}),this[t(515)](r,t(469),(n,s)=>{const r=t,f=s[r(504)]===this[r(458)].id;f&&r(519)===s[r(484)]||o[r(443)](t=>{const n=r;let u=a[n(497)]();const d=!!u&&Array[n(517)](o[n(508)][n(518)][n(512)]())[n(507)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(473),e(449)))return!0;return!1}(o[n(441)](s[n(440)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(444)](null);for(const e of i[o(506)]())e.is(o(473),o(483))&&e[o(442)](o(496))&&(s[e[o(459)](o(496))]=t[o(467)](e,!0));return Object[o(448)](s)[o(447)]?s:null}(t,s[n(440)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(441)](e))n.is(o(473),o(439))&&i[o(488)](n);for(const e of i)t[o(445)](e)}(t,s[n(440)]),!l)return;const{selection:p}=o[n(508)],h=p[n(462)]()[n(470)];u&&!d||(u=L(t,s[n(440)]),u||=a[n(485)](t,h));const m=Array[n(517)](p[n(468)]())[n(452)](V),g=function(t,e,o){const s=n,r=Object[s(444)](null);for(const{item:n}of t[s(441)](e))if(n.is(s(473),s(449))){const e=n[s(459)](s(496));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(503)](s(496),r[e],n)}return r}(t,s[n(440)],t=>{const e=n;return!f||!!a[e(505)](t)&&!m[e(507)](t)});for(const[o,i]of Object[n(509)](l)){const s=g[o]||o;let r;if(n(476)!=typeof i)r=i,s!==o&&t[n(503)](n(496),s,r);else{r=t[n(465)](n(483),{footnoteId:s});const o=e[n(500)][n(451)][n(475)](i);let a;if(c)a=e[n(500)][n(495)](o,r);else{a=t[n(465)](n(455));const i=e[n(500)][n(495)](o,a);t[n(461)](i,a)}t[n(472)](a,r)}t[n(461)](r,u,n(463))}l=null})})}}function L(t,e){const o=P;for(const{item:n}of t[o(441)](e))if(n.is(o(473),o(439)))return n;return null}function V(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(473),e(449))&&o[e(513)](n[e(459)](e(496)));return Array[e(517)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=W(),J.insert=U().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,O.ButtonView)),e.add("menuBar:insertFootnote",Y(t,O.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 Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function $(){var t=["282372XufIGR","671fSxGIJ","requires","Footnotes","pluginName","81VVCDwO","452470knqbKb","44zYbxzg","isPremiumPlugin","isOfficialPlugin","892984QWuAHm","348787KNAfpK","2281600TPselH","47595GwbOkO","3921470XxtCGy","85SMhref"];return($=function(){return t})()}var Q=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=234]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(571332===-parseInt(e(243))/1+parseInt(e(244))/2+parseInt(e(245))/3*(parseInt(e(239))/4)+parseInt(e(247))/5*(parseInt(e(248))/6)+parseInt(e(246))/7+-parseInt(e(242))/8*(-parseInt(e(237))/9)+parseInt(e(238))/10*(-parseInt(e(249))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(236)](){return Q(235)}static get[Q(234)](){return[I,D,X]}static get[Q(241)](){return!0}static get[Q(240)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=355]})(t,e)}function nt(){const t=["lower-alpha","upper-roman","9121VowbAS","1395392iWOISb","decimal-leading-zero","lower-latin","2898ngPbSZ","decimal","326294sCONfs","40615FaRYdj","47786DkIrSM","upper-alpha","2612592zCKCzz","100ZUObXG","upper-latin","1614CVZMaA","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(298837===parseInt(e(363))/1+parseInt(e(361))/2+-parseInt(e(359))/3+parseInt(e(366))/4*(parseInt(e(362))/5)+parseInt(e(368))/6*(parseInt(e(355))/7)+-parseInt(e(356))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(360),et(357),et(358),et(367),et(370),et(364),et(369),et(371)],st=at;!function(t){const e=at,o=t();for(;;)try{if(574703===-parseInt(e(380))/1*(parseInt(e(399))/2)+-parseInt(e(390))/3*(-parseInt(e(379))/4)+parseInt(e(388))/5+-parseInt(e(384))/6+parseInt(e(395))/7*(parseInt(e(397))/8)+parseInt(e(378))/9*(parseInt(e(387))/10)+-parseInt(e(377))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class rt extends t.Command{[st(396)](){const t=st,{editor:e}=this,o=e[t(400)][t(386)](p)[t(381)]();this[t(401)]=!!o,this[t(392)]=o?.[t(389)](t(394))??null}[st(382)]({value:t}){const e=st,{editor:o}=this,n=o[e(400)][e(386)](p),i=n[e(381)]();i&&it[e(398)](t)&&o[e(393)][e(383)](o=>{const s=e;o[s(391)](s(394),t,i),n[s(385)](o)})}}function at(t,e){const o=ct();return(at=function(t,e){return o[t-=377]})(t,e)}function ct(){const t=["plugins","isEnabled","3242888jfgSiF","1377cwhXof","58556ERRFAo","7spahYh","getFootnotesDefinitionsObjectElement","execute","change","5069034BJfCCs","_updateFootnotesCounters","get","56060CWMwEd","5364385fUfoXk","getAttribute","39BmIkQj","setAttribute","value","model","footnotesListStyle","497BxAZDs","refresh","51528hctzzl","includes","246818ZCisdg"];return(ct=function(){return t})()}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=372]})(t,e)}const ft=lt;function ut(){const t=["5677392boHozO","execute","get","2YRiipF","plugins","isEnabled","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","149916aikipf","1883175nonmMy","20gknsfi","getAttribute","change","4296924MLUjJJ","isInteger","model","23242690ucYAiL","value","setAttribute","refresh","1289750UfVLsg","28UCKuWh","footnotesListStart","1212184pCXCBA"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(806618===parseInt(e(380))/1*(-parseInt(e(385))/2)+-parseInt(e(386))/3+-parseInt(e(387))/4*(-parseInt(e(373))/5)+-parseInt(e(377))/6+parseInt(e(374))/7*(-parseInt(e(376))/8)+-parseInt(e(390))/9+parseInt(e(393))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(372)](){const t=ft,{editor:e}=this,o=e[t(381)][t(379)](p)[t(384)]();this[t(382)]=!!o,this[t(394)]=o?.[t(388)](t(375))??null}[ft(378)]({value:t}){const e=ft,{editor:o}=this,n=o[e(381)][e(379)](p),i=n[e(384)]();i&&Number[e(391)](t)&&o[e(392)][e(389)](o=>{const s=e;o[s(395)](s(375),t,i),n[s(383)](o)})}}const pt=ht;function ht(t,e){const o=bt();return(ht=function(t,e){return o[t-=162]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(410913===parseInt(e(225))/1*(-parseInt(e(173))/2)+-parseInt(e(177))/3*(-parseInt(e(171))/4)+-parseInt(e(223))/5*(parseInt(e(256))/6)+-parseInt(e(183))/7+parseInt(e(213))/8+-parseInt(e(240))/9+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[pt(187)](){return pt(237)}static get[pt(182)](){return[I,p]}static get[pt(248)](){return!0}static get[pt(217)](){return!0}[pt(172)](){const t=pt,{editor:e}=this;e[t(221)][t(246)](t(262),t(203)),e[t(221)][t(246)](t(186),1),e[t(176)][t(205)](t(180),new rt(e)),e[t(176)][t(205)](t(179),new dt(e)),this[t(231)](),this[t(207)](),this[t(245)](),this[t(234)]()}[pt(231)](){const t=pt,{editor:e}=this,{schema:o}=e[t(197)];o[t(257)](t(189),{allowAttributes:[t(178),t(253)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(218)](t(192))[t(205)](e=>{const o=t;e.on(o(202),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(214)]?.[s(251)];r[s(242)](s(229))&&a?.is(s(162),s(189))&&(function(t,e,o,n){const i=s;if(!n[i(167)](e,i(253)))return;let r=1;const a=o[i(215)][i(236)](t,{attributes:i(260)});if(a){const e=Number[i(204)](t[i(209)](i(260)),10);Number[i(201)](e)||(r=e)}!a&&e[i(198)](i(253))||o[i(259)][i(216)](i(253),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(167)](e,i(178)))return;let r=i(203),a=!1;if(o[i(215)][i(236)](t,{attributes:i(222)})){const e={1:i(203),a:i(191),A:i(261),i:i(224),I:i(200)}[t[i(209)](i(222))];e&&(r=e),a=!0}o[i(215)][i(236)](t,{styles:i(199)})&&(r=function(t){const e=i;switch(t){case e(191):return e(188);case e(261):return e(164);default:return t}}(t[i(190)](i(199))),a=!0),!a&&e[i(198)](i(178))||o[i(259)][i(216)](i(178),r,e)}(r,a,n,i))})}),o[t(218)](t(249))[t(205)](e=>{const o=t;e.on(o(184),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;null==r||1===r?n[i(259)][i(169)](i(260),s):n[i(259)][i(216)](i(260),String(r),s)}),e.on(o(208),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;r&&i(203)!==r?n[i(259)][i(254)](i(199),r,s):n[i(259)][i(232)](i(199),s)})})}[pt(234)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(196)][t(163)](p),i=this[t(239)](),s=this[t(193)]();o[t(185)][t(174)](e=>{const r=t,a=o[r(185)][r(244)][r(241)]();let c=!1;for(const t of a){if(r(243)!==t[r(222)]||r(258)===t[r(226)])continue;const n=o[r(250)](t[r(227)][r(219)]);for(const t of n[r(170)]())t.is(r(162),r(189))&&(!t[r(198)](r(253))&&o[r(206)][r(167)](t,r(253))&&(e[r(216)](r(253),s,t),c=!0),!t[r(198)](r(178))&&o[r(206)][r(167)](t,r(178))&&(e[r(216)](r(178),i,t),c=!0))}return c&&n[r(235)](e),c})}[pt(245)](){const t=pt,{editor:e}=this;e[t(196)][t(163)](p)[t(165)](e=>this[t(195)](e))}[pt(239)](){const t=pt;return this[t(255)][t(221)][t(163)](t(262))}[pt(193)](){const t=pt;return this[t(255)][t(221)][t(163)](t(186))}[pt(195)]({container:t,value:e,digits:o}){const n=pt,i=t[n(209)](n(178)),s=t[n(209)](n(253)),r=Math[n(168)](e)+(s??1)-1;switch(i){case n(233):return function(t,e){const o=n;return String(t)[o(212)](e,"0")}(r,Math[n(194)](2,o));case n(191):case n(188):return wt(r,!1);case n(261):case n(164):return wt(r,!0);case n(224):return It(r,!1);case n(200):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(211)](t);return Array[o(252)](n[o(210)]())[o(166)](t=>t.is(o(162),"ol")&&t[o(242)](o(229)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(247)](97+t)+n,i=Math[o(168)]((i-1)/26)}return e?n[o(220)]():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(){const t=["getChildren","toViewElement","padStart","6345040kMvlTk","modelCursor","consumable","setAttribute","isPremiumPlugin","for","nodeAfter","toUpperCase","config","type","25XKxJpn","lower-roman","1fGATxK","name","position","item","footnotes-list","12534680BWcERA","_defineSchema","removeStyle","decimal-leading-zero","_definePostfixer","_updateFootnotesCounters","consume","FootnotesPropertiesEditing","toLowerCase","_getDefaultListStyle","5324355eChYIt","getChanges","hasClass","insert","differ","_defineFormatter","define","fromCharCode","isOfficialPlugin","downcast","createRangeOn","parent","from","footnotesListStart","setStyle","editor","715806FDETvs","extend","$text","writer","start","upper-alpha","footnotes.footnotesProperties.defaultListStyle","element","get","upper-latin","setFootnoteFormatter","find","checkAttribute","floor","removeAttribute","getItems","848228kDfmkC","init","1138226LGxxWb","registerPostFixer","mapper","commands","3VdeYoD","footnotesListStyle","footnotesStart","footnotesStyle","viewItem","requires","633703XUssmv","attribute:footnotesListStart:footnotesDefinitions","document","footnotes.footnotesProperties.defaultStartIndex","pluginName","lower-latin","footnotesDefinitions","getStyle","lower-alpha","upcast","_getDefaultStartIndex","max","_formatFootnoteListValue","plugins","model","hasAttribute","list-style-type","upper-roman","isNaN","element:ol","decimal","parseInt","add","schema","_defineConverters","attribute:footnotesListStyle:footnotesDefinitions","getAttribute"];return(bt=function(){return t})()}function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(238)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.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,O.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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.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 O.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}=O.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]})}}function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=245]})(t,e)}var Et=xt;function St(){var t=["3322360qhbRQY","2675940eSyvkc","FootnotesProperties","requires","isPremiumPlugin","pluginName","133dzGFHO","4030782GCvMlU","2977265uWBpho","12747320eygUYV","7979461gNGENL","isOfficialPlugin","21784BoYPLB"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(769387===parseInt(e(254))/1*(parseInt(e(247))/2)+-parseInt(e(255))/3+-parseInt(e(248))/4+parseInt(e(256))/5+parseInt(e(249))/6+-parseInt(e(245))/7+parseInt(e(257))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[Et(253)](){return Et(250)}static get[Et(251)](){return[mt,Ft]}static get[Et(246)](){return!0}static get[Et(252)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=395]})(t,e)}function Tt(){var t=["152madaxy","30501qSHgcF","61407pTHlVz","44nhPRUc","1360403VVRuaN","5faIKAN","1zHoqHi","13ZGEQgK","162626JYoVKF","13122NHbceW","530EScDWG","4924380qAmHfx","37261rtfQVT"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(204401===-parseInt(e(398))/1*(parseInt(e(400))/2)+parseInt(e(406))/3*(parseInt(e(395))/4)+-parseInt(e(397))/5*(parseInt(e(401))/6)+-parseInt(e(404))/7*(-parseInt(e(405))/8)+-parseInt(e(407))/9*(-parseInt(e(402))/10)+parseInt(e(396))/11+parseInt(e(403))/12*(-parseInt(e(399))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x33f338,Command as _0x206b50}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2d619d,isWidget as _0x46519d,toWidgetEditable as _0x1eb08a,WidgetToolbarRepository as _0x298294}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x8553f0,logWarning as _0x17c0b4,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x4678e1,ClickObserver as _0x153404}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5bf402}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0xa176a3,ButtonView as _0x205b9d,View as _0x3cfec0,ViewCollection as _0x1490d9,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x5cd06c,BalloonPanelView as _0x4a808e,createDropdown as _0x945a55}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x317f87,IconListStyleDecimal as _0x71874c,IconListStyleDecimalLeadingZero as _0x17fdd6,IconListStyleLowerRoman as _0x19d412,IconListStyleUpperRoman as _0x3d9b37,IconListStyleLowerLatin as _0x108238,IconListStyleUpperLatin as _0x466849}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x477f23,_0x38c6a3){this['_model']=_0x477f23,this['_elementName']=_0x38c6a3['elementName'],this['_getElementKey']=_0x38c6a3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x233800){const _0x1742a5=new Set(),_0x4459cf=new Map();for(const _0x1b3d3f of _0x233800){if('insert'===_0x1b3d3f['type']&&'$text'!==_0x1b3d3f['name']&&_0x1b3d3f['position']['nodeAfter']){const _0x27a5ea=this['_model']['createRangeOn'](_0x1b3d3f['position']['nodeAfter']);for(const _0x182c52 of _0x27a5ea['getItems']()){if(!_0x182c52['is']('element',this['_elementName']))continue;const _0x2e96f9=this['_getElementKey'](_0x182c52);_0x4459cf['has'](_0x2e96f9)||_0x4459cf['set'](_0x2e96f9,[]),_0x4459cf['get'](_0x2e96f9)['push'](_0x182c52);}}if('remove'===_0x1b3d3f['type']&&_0x1b3d3f['name']===this['_elementName']){const _0x2aecbe=this['_getElementKey']({'getAttribute':_0x4b8da4=>_0x1b3d3f['attributes']['get'](_0x4b8da4)});_0x1742a5['add'](_0x2aecbe);}}for(const [_0x162033,_0x3d11b9]of this['_trackedElements'])'$graveyard'===_0x3d11b9['root']['rootName']&&_0x1742a5['add'](_0x162033);for(const _0x19adb4 of _0x1742a5)this['_trackedElements']['delete'](_0x19adb4);for(const [_0x19bc40,_0x29680a]of _0x4459cf)this['_trackedElements']['set'](_0x19bc40,_0x29680a[_0x29680a['length']-0x1]);const _0x37c20a=new Set();for(const [_0x63608e,_0x31ff7f]of _0x4459cf)_0x1742a5['has'](_0x63608e)&&(_0x37c20a['add'](_0x31ff7f[0x0]),_0x31ff7f['length']>0x1?_0x4459cf['set'](_0x63608e,_0x31ff7f['slice'](0x1)):_0x4459cf['delete'](_0x63608e),_0x1742a5['delete'](_0x63608e));return{'removed':Array['from'](_0x1742a5),'inserted':Array['from'](_0x4459cf['values']())['flat'](),'moved':Array['from'](_0x37c20a)};}}class f extends _0x33f338{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cca5b){super(_0x4cca5b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x421f21=>_0x421f21['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3eacc8=>_0x3eacc8['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3ca335}=this,{model:_0x290ecd,data:_0x105f42}=_0x3ca335;_0x290ecd['document']['registerPostFixer'](_0x1234f2=>{const _0x3b475c=_0x290ecd['document']['differ']['getChanges']();let _0x47ea57=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x1234f2,_0x3b475c)&&(_0x47ea57=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x1234f2,_0x3b475c)&&(_0x47ea57=!0x0),this['_handleFootnoteReferencesChanges'](_0x1234f2,_0x3b475c)&&(_0x47ea57=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x1234f2)&&(_0x47ea57=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x1234f2)&&(_0x47ea57=!0x0),this['_sortFootnoteDefinitions'](_0x1234f2)&&(_0x47ea57=!0x0),_0x47ea57;}),this['listenTo'](_0x290ecd['document'],'change:data',()=>{_0x290ecd['enqueueChange']({'isUndoable':!0x1},_0x66713=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x66713);});},{'priority':'low'}),this['listenTo'](_0x105f42,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1c4e25){return this['_footnotes']['find'](_0x564c14=>_0x564c14['id']===_0x1c4e25)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1436cc){this['_footnoteFormatter']=_0x1436cc;}['_updateFootnotesCounters'](_0x5534ef,_0x393f18=0x0){let _0x9ee630=!0x1;for(let _0x17bd4b=_0x393f18;_0x17bd4b<this['_footnotes']['length'];_0x17bd4b++)this['_updateFootnoteRefCounter'](_0x5534ef,_0x17bd4b)&&(_0x9ee630=!0x0);return _0x9ee630;}['_insertEmptyFootnotesDefinitionsContainer'](_0x334866,_0x41caf4){const _0x2d9597=_0x334866['createElement']('footnotesDefinitions',{});return _0x334866['append'](_0x2d9597,_0x41caf4),this['_footnotesDefinitions']=_0x2d9597,_0x2d9597;}['_ensureFootnotesDefinitionsContainerExists'](_0x3c4baf){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x28302f=this['_footnotes'][0x0]['reference']['root'],_0x221209=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3c4baf,_0x28302f);for(const _0x33d802 of this['_footnotes'])_0x33d802['definition']['parent']||_0x3c4baf['insert'](_0x33d802['definition'],_0x221209,'end');this['_updateFootnotesCounters'](_0x3c4baf);}['_handleFootnotesDefinitionsObjectChanges'](_0x1293ba,_0x16e2c7){let _0x2268e0=!0x1;const {inserted:_0x5031b4,removed:_0x44d3b9,moved:_0x49f882}=this['_footnoteDefsContainerTracker']['getChanges'](_0x16e2c7);if(_0x49f882['length']&&(this['_footnotesDefinitions']=_0x49f882[0x0]),_0x5031b4['length']){if(_0x5031b4['length']>0x1||this['_footnotesDefinitions']&&_0x5031b4['some'](_0x2b4054=>_0x2b4054!==this['_footnotesDefinitions'])){const _0x12c7e6=_0x1293ba['createElement']('footnotesDefinitions',{}),_0x48b95d=[];this['_footnotesDefinitions']&&_0x48b95d['push'](this['_footnotesDefinitions']),_0x48b95d['push'](..._0x5031b4),_0x1293ba['insert'](_0x12c7e6,_0x48b95d[0x0],'before');for(const _0x219fdf of _0x48b95d)_0x1293ba['move'](_0x1293ba['createRangeIn'](_0x219fdf),_0x1293ba['createPositionAt'](_0x12c7e6,'end')),_0x1293ba['remove'](_0x219fdf);this['_footnotesDefinitions']=_0x12c7e6,this['_updateFootnotesCounters'](_0x1293ba),_0x2268e0=!0x0;}else this['_footnotesDefinitions']=_0x5031b4[0x0];}if(_0x44d3b9['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4ba839 of this['_footnotes'])_0x1293ba['remove'](_0x4ba839['reference']),_0x2268e0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2268e0;}['_handleFootnoteDefinitionsChanges'](_0x306788,_0x904522){let _0x2a6dc8=!0x1;const _0x307e47=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x428d54,moved:_0x48fc70}=this['_footnoteDefsTracker']['getChanges'](_0x904522);for(const _0x24a718 of[..._0x48fc70,..._0x428d54]){const _0x1489d9=_0x24a718['getAttribute']('footnoteId'),_0x37d5d6=this['getFootnote'](_0x1489d9);_0x37d5d6&&(_0x37d5d6['definition']=_0x24a718),_(_0x306788,_0x307e47,_0x24a718)&&(_0x2a6dc8=!0x0);}return _0x2a6dc8;}['_handleFootnoteReferencesChanges'](_0xef1f95,_0xc2f0ec){let _0x25c64f=!0x1;const {removed:_0x45219b,inserted:_0x44062b,moved:_0x1951ed}=this['_footnoteRefsTracker']['getChanges'](_0xc2f0ec);for(const _0x27deb0 of _0x45219b)this['_handleRemoveFootnoteReferenceById'](_0xef1f95,_0x27deb0)&&(_0x25c64f=!0x0);for(const _0x5d1f14 of _0x44062b)this['_handleInsertedFootnoteReference'](_0xef1f95,_0x5d1f14)&&(_0x25c64f=!0x0);for(const _0x4b4a45 of _0x1951ed)this['_handleMovedFootnoteReference'](_0xef1f95,_0x4b4a45)&&(_0x25c64f=!0x0);return _0x25c64f;}['_handleFootnotesDefinitionsObjectSync'](_0x3f682b){if(!this['_footnotesDefinitions'])return!0x1;let _0x578fd6=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x485ad3=[];for(const _0x4c6023 of this['_footnotesDefinitions']['getChildren']()){const _0x56df70=_0x4c6023['getAttribute']('footnoteId');this['getFootnote'](_0x56df70)||(_0x485ad3['unshift'](_0x4c6023),_0x578fd6=!0x0);}for(const _0x32d07d of _0x485ad3)_0x3f682b['remove'](_0x32d07d);}const _0x3f4675=new Set(),_0x13d35d=[];for(const _0x1a0a54 of this['_footnotesDefinitions']['getChildren']()){const _0x273843=_0x1a0a54['getAttribute']('footnoteId');_0x3f4675['has'](_0x273843)?(_0x13d35d['unshift'](_0x1a0a54),_0x578fd6=!0x0):_0x3f4675['add'](_0x273843);}for(const _0x404695 of _0x13d35d)_0x3f682b['remove'](_0x404695);return this['_footnotesDefinitions']['childCount']||(_0x3f682b['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x578fd6=!0x0),_0x578fd6;}['_handleInsertedFootnoteReference'](_0x352b2b,_0x59ae81){if(this['_footnotes']['find'](_0x52e7e8=>_0x52e7e8['reference']===_0x59ae81))return!0x1;let _0x50bc3d=!0x1;const _0x3c0757=_0x59ae81['getAttribute']('footnoteId'),_0x177704=this['_footnotes']['findIndex'](_0x5509b5=>_0x5509b5['id']===_0x3c0757);-0x1!==_0x177704&&(_0x352b2b['remove'](this['_footnotes'][_0x177704]['reference']),this['_footnotes']['splice'](_0x177704,0x1),_0x50bc3d=!0x0);let _0x2c279e=this['_footnotesDefinitions']?function(_0x495a6b,_0x487f33){for(const _0x3049f3 of _0x495a6b['getChildren']())if(_0x3049f3['getAttribute']('footnoteId')===_0x487f33)return _0x3049f3;return null;}(this['_footnotesDefinitions'],_0x3c0757):null;_0x2c279e||(_0x2c279e=_0x352b2b['createElement']('footnoteDefinition',{'footnoteId':_0x3c0757}),this['_footnotesDefinitions']&&(_0x352b2b['insert'](_0x2c279e,this['_footnotesDefinitions'],'end'),_0x50bc3d=!0x0));const _0x5a245b={'id':_0x3c0757,'reference':_0x59ae81,'definition':_0x2c279e},_0x7daec8=I(this['editor']['model'],this['_footnotes'],_0x59ae81);this['_footnotes']['splice'](_0x7daec8,0x0,_0x5a245b);let _0x12556f=_0x7daec8;return-0x1!==_0x177704&&(_0x12556f=Math['min'](_0x7daec8,_0x177704)),this['_updateFootnotesCounters'](_0x352b2b,_0x12556f)&&(_0x50bc3d=!0x0),_0x50bc3d;}['_handleRemoveFootnoteReferenceById'](_0x5080e5,_0x45cc32){const _0x272201=this['_footnotes']['findIndex'](_0x2e3eb1=>_0x2e3eb1['id']===_0x45cc32);if(-0x1===_0x272201)return!0x1;let _0x1e76d8=!0x1;const _0x58f84c=this['_footnotes'][_0x272201];return'$graveyard'!==_0x58f84c['definition']['root']['rootName']&&(_0x5080e5['remove'](_0x58f84c['definition']),_0x1e76d8=!0x0),this['_footnotes']['splice'](_0x272201,0x1),this['_updateFootnotesCounters'](_0x5080e5,_0x272201)&&(_0x1e76d8=!0x0),_0x1e76d8;}['_handleMovedFootnoteReference'](_0x375c98,_0x19948f){const _0x5e8b33=_0x19948f['getAttribute']('footnoteId'),_0x41985f=this['_footnotes']['findIndex'](_0x2f5669=>_0x2f5669['id']===_0x5e8b33),_0x39b323=this['_footnotes'][_0x41985f];let _0xa53d7a=!0x1;_0x39b323['reference']=_0x19948f,this['_footnotes']['splice'](_0x41985f,0x1);const _0x5e330=I(this['editor']['model'],this['_footnotes'],_0x19948f);return this['_footnotes']['splice'](_0x5e330,0x0,_0x39b323),this['_updateFootnotesCounters'](_0x375c98,Math['min'](_0x41985f,_0x5e330))&&(_0xa53d7a=!0x0),_0xa53d7a;}['_updateFootnoteRefCounter'](_0x2fd184,_0x2fffac){if(!this['_footnotesDefinitions'])return!0x1;const _0x1da068=this['_footnotes'][_0x2fffac];let _0x4df62b;return _0x4df62b=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1da068,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2fffac+0x1}):String(_0x2fffac+0x1),_0x1da068['reference']['getAttribute']('footnoteCounter')!=_0x4df62b&&(_0x2fd184['setAttribute']('footnoteCounter',_0x4df62b,_0x1da068['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x37242e){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x51d91f,_0x240503){if(_0x51d91f['length']!==_0x240503['length'])return!0x1;for(let _0x3ccfd4=0x0;_0x3ccfd4<_0x51d91f['length'];_0x3ccfd4++)if(_0x51d91f[_0x3ccfd4]!==_0x240503[_0x3ccfd4])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4cca72=>_0x4cca72['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x1def27=>_0x1def27['getAttribute']('footnoteId'))))return!0x1;let _0x3a4772=!0x1;for(let _0x53c60e=0x0;_0x53c60e<this['_footnotes']['length'];_0x53c60e++){const _0x37ba84=this['_footnotes'][_0x53c60e],_0x8ffea5=_0x37242e['createPositionBefore'](_0x37ba84['definition']),_0x28c1d9=_0x37242e['createPositionAt'](this['_footnotesDefinitions'],_0x53c60e);_0x8ffea5['isEqual'](_0x28c1d9)||(_0x37242e['move'](_0x37242e['createRangeOn'](_0x37ba84['definition']),_0x28c1d9),_0x3a4772=!0x0);}return _0x3a4772;}['_ensureFootnotesReferencesHaveProperOrder'](_0x55ef77){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2f25f9}=this['editor'];let _0x2e1043=!0x1;for(let _0x410c55=0x0;_0x410c55<this['_footnotes']['length']-0x1;_0x410c55++){const _0x509eb6=this['_footnotes'][_0x410c55],_0xa9ed50=this['_footnotes'][_0x410c55+0x1],_0x342059=_0x2f25f9['createPositionBefore'](_0x509eb6['reference']),_0x199c92=_0x2f25f9['createPositionBefore'](_0xa9ed50['reference']);'after'===_0x342059['compareWith'](_0x199c92)&&(this['_handleMovedFootnoteReference'](_0x55ef77,_0x509eb6['reference']),_0x410c55=-0x1,_0x2e1043=!0x0);}return _0x2e1043;}}function _(_0x16cb25,_0x41b05d,_0x1aeb55){if(_0x1aeb55['childCount'])return!0x1;const _0x8a5f8c=_0x41b05d?'paragraph':'footnoteInlineContent';return _0x16cb25['insert'](_0x16cb25['createElement'](_0x8a5f8c),_0x1aeb55),!0x0;}function I(_0x41744a,_0x57c4c1,_0x262f99){if(0x0===_0x57c4c1['length'])return 0x0;const _0x570d26=_0x41744a['createPositionBefore'](_0x262f99);for(let _0x5bea47=0x0;_0x5bea47<_0x57c4c1['length'];_0x5bea47++){const _0x2c96b7=_0x57c4c1[_0x5bea47],_0x3911ce=_0x41744a['createPositionBefore'](_0x2c96b7['reference']);if('before'===_0x570d26['compareWith'](_0x3911ce))return _0x5bea47;}const _0x1cd53c=_0x262f99['root'];let _0x238995=-0x1;for(let _0x1d6935=_0x57c4c1['length']-0x1;_0x1d6935>=0x0;_0x1d6935--)if(_0x57c4c1[_0x1d6935]['reference']['root']===_0x1cd53c){_0x238995=_0x1d6935;break;}if(-0x1!==_0x238995)return _0x238995+0x1;const _0xa67174=_0x41744a['document']['getRootNames'](),_0x19bd10=_0xa67174['indexOf'](_0x1cd53c['rootName']),_0x8647c9=_0xa67174[_0x19bd10+0x1];if(_0x8647c9){for(let _0xdd0a26=0x0;_0xdd0a26<_0x57c4c1['length'];_0xdd0a26++)if(_0x57c4c1[_0xdd0a26]['reference']['root']['rootName']===_0x8647c9)return _0xdd0a26;}return _0x57c4c1['length'];}class h extends _0x206b50{['refresh'](){const _0x18ddd0=this['editor']['model']['document']['selection'],_0x20af4f=this['_getPositionToInsertFootnote'](_0x18ddd0);this['isEnabled']=!!_0x20af4f;}['execute'](_0x2db831){const {editor:_0x3c4977}=this,{model:_0x488f08}=_0x3c4977,{selection:_0x506f40}=_0x488f08['document'],_0x56e329=this['_getPositionToInsertFootnote'](_0x506f40);if(!_0x56e329)return;const _0x547f76=_0x3c4977['plugins']['get']('FootnotesEditing'),_0x1c90e5=_0x2db831?.['footnoteId']??_0x8553f0();!function(_0x194cfa){return'string'==typeof _0x194cfa&&_0x194cfa['length']>0x0&&!/\s/['test'](_0x194cfa)&&!/^\d/['test'](_0x194cfa);}(_0x1c90e5)?_0x17c0b4('insert-footnote-command-executed-with-invalid-id'):(_0x488f08['change'](_0x5099c1=>{const _0xa1bfed=_0x5099c1['createElement']('footnoteRef',{'footnoteId':_0x1c90e5});_0x488f08['insertObject'](_0xa1bfed,_0x56e329,null);}),_0x547f76['_moveSelectionToFootnoteDefinition'](_0x1c90e5));}['_getPositionToInsertFootnote'](_0x50aea8){const {model:_0x282459}=this['editor'],{schema:_0x5f112f}=_0x282459,_0x2a7de2=_0x50aea8['getFirstRange']();for(const _0xe4eb3b of _0x2a7de2['getItems']())if(_0x5f112f['isBlock'](_0xe4eb3b)||_0x5f112f['isObject'](_0xe4eb3b))return null;const _0x18f289=_0x2a7de2['end'];return _0x5f112f['checkChild'](_0x18f289,'footnoteRef')?_0x18f289:null;}}class r extends _0x33f338{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4deacb}=this;_0x4deacb['config']['define']('footnotes.multiBlock',!0x0),_0x4deacb['commands']['add']('insertFootnote',new h(_0x4deacb)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3b9645){const _0x3c09a2=_0x16e3f1([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]),_0x40e85c=0x47a28506,_0x2a98b8=0x47a5f98e^_0x40e85c,_0x1f1b5d=window[_0x16e3f1([0x44,0x61,0x74,0x65])][_0x16e3f1([0x6e,0x6f,0x77])](),_0x1d8053=_0x3b9645[_0x16e3f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x231cd9=new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c23e=>{_0x1d8053[_0x16e3f1([0x6f,0x6e,0x63,0x65])](_0x16e3f1([0x72,0x65,0x61,0x64,0x79]),_0x32c23e);}),_0x1c4741={[_0x16e3f1([0x6b,0x74,0x79])]:_0x16e3f1([0x45,0x43]),[_0x16e3f1([0x75,0x73,0x65])]:_0x16e3f1([0x73,0x69,0x67]),[_0x16e3f1([0x63,0x72,0x76])]:_0x16e3f1([0x50,0x2d,0x32,0x35,0x36]),[_0x16e3f1([0x78])]:_0x16e3f1([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]),[_0x16e3f1([0x79])]:_0x16e3f1([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]),[_0x16e3f1([0x61,0x6c,0x67])]:_0x16e3f1([0x45,0x53,0x32,0x35,0x36])},_0x3c9201=_0x1d8053[_0x16e3f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16e3f1([0x67,0x65,0x74])](_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a5a88(){let _0x4141de,_0x42dacb=null,_0x319c7b=null;try{if(_0x3c9201==_0x16e3f1([0x47,0x50,0x4c]))return _0x16e3f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4141de=_0x1d782c(),!_0x4141de)return _0x16e3f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4141de[_0x16e3f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x319c7b=_0xdfe7e4(_0x4141de[_0x16e3f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4141de[_0x16e3f1([0x6a,0x74,0x69])])),await _0x19fb31()?_0x4eb80e()?_0x14a079()?_0x16e3f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb8d74c()?(_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16e3f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42dacb=_0xa44caf(_0x16e3f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16e3f1([0x74,0x72,0x69,0x61,0x6c])&&(_0x42dacb=_0xa44caf(_0x16e3f1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5367d4()):_0x16e3f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16e3f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16e3f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16e3f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14a079(){const _0x55a29c=[_0x16e3f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16e3f1([0x74,0x72,0x69,0x61,0x6c])][_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f1b5d/0x3e8:0xe10*_0x2a98b8;return _0x4141de[_0x16e3f1([0x65,0x78,0x70])]<_0x55a29c;}function _0x4eb80e(){const _0x280765=_0x4141de[_0x16e3f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x280765&&(!!_0x280765[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e3f1([0x2a]))||!!_0x280765[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e3f1([0x46,0x4f,0x4f])));}function _0xb8d74c(){const _0x553671=_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x553671||0x0==_0x553671[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x508543}=new URL(window[_0x16e3f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x553671[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508543))return!0x0;const _0x257418=_0x508543[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e]));return _0x553671[_0x16e3f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1699cf=>_0x1699cf[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e3f1([0x2a])))[_0x16e3f1([0x6d,0x61,0x70])](_0x7067fd=>_0x7067fd[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e])))[_0x16e3f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b773c=>_0x5b773c[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x257418[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e3f1([0x6d,0x61,0x70])](_0x2ed3af=>Array(_0x257418[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ed3af[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e3f1([0x66,0x69,0x6c,0x6c])](_0x2ed3af[0x0]===_0x16e3f1([0x2a])?_0x16e3f1([0x2a]):'')[_0x16e3f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ed3af))[_0x16e3f1([0x73,0x6f,0x6d,0x65])](_0x447aba=>_0x257418[_0x16e3f1([0x65,0x76,0x65,0x72,0x79])]((_0x37e9eb,_0x52e7a9)=>_0x447aba[_0x52e7a9]===_0x37e9eb||_0x447aba[_0x52e7a9]===_0x16e3f1([0x2a])));}function _0x5367d4(){return _0x42dacb&&_0x319c7b?new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46e178,_0x73560c)=>{_0x42dacb[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x46e178,_0x73560c),_0x319c7b[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x3c35af=>{_0x3c35af!=_0x16e3f1([0x56,0x61,0x6c,0x69,0x64])&&_0x46e178(_0x3c35af);},_0x73560c);}):_0x42dacb||_0x319c7b||_0x16e3f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdfe7e4(_0x34a7c7,_0x4cc99e){return new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30aa47=>{if(_0x308b12())return _0x30aa47(_0x16e3f1([0x56,0x61,0x6c,0x69,0x64]));_0x4f1174(),_0x1d8053[_0x16e3f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16e3f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25a9da=!0x1;const _0x2be00f=_0x8553f0();function _0xf9977b(_0x399e78){return!!_0x399e78&&(typeof _0x399e78===_0x16e3f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x399e78===_0x16e3f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x399e78[_0x16e3f1([0x74,0x68,0x65,0x6e])]===_0x16e3f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x399e78[_0x16e3f1([0x63,0x61,0x74,0x63,0x68])]===_0x16e3f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1446a6(_0x528937){_0x2f80a0(_0x528937)[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0xbafcf7=>{if(!_0xbafcf7||_0xbafcf7[_0x16e3f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16e3f1([0x6f,0x6b]))return _0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5dbb30(_0x32190b(_0x2be00f+_0x4cc99e))!=_0xbafcf7[_0x16e3f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16e3f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x8d13ba=>(_0x490237(),_0x8d13ba),()=>{const _0xd0cdb2=_0x359166();return null==_0xd0cdb2?(_0x490237(),_0x16e3f1([0x56,0x61,0x6c,0x69,0x64])):_0x16e3f1(_0x1f1b5d-_0xd0cdb2>(0x63ae0106^_0x40e85c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x30aa47)[_0x16e3f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30aa47(_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e9103=0x47946b86^_0x40e85c;function _0x490237(){const _0x274693=_0x16e3f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb30(_0x32190b(_0x34a7c7)),_0x299f18=_0x52dc60(_0x5dbb30(window[_0x16e3f1([0x4d,0x61,0x74,0x68])][_0x16e3f1([0x63,0x65,0x69,0x6c])](_0x1f1b5d/_0x2e9103)));window[_0x16e3f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e3f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274693,_0x299f18);}function _0x359166(){const _0x5e3fb2=_0x16e3f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb30(_0x32190b(_0x34a7c7)),_0xca8051=window[_0x16e3f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e3f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e3fb2);return _0xca8051?window[_0x16e3f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52dc60(_0xca8051),0x10)*_0x2e9103:null;}function _0x2f80a0(_0x1d8651){return new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x329a59,_0x434c0e)=>{_0x1d8651[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x329a59,_0x434c0e),window[_0x16e3f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x434c0e,0x47a351c6^_0x40e85c);});}}_0x1d8053[_0x16e3f1([0x6f,0x6e])](_0x16e3f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5756db,_0xa6cfb6)=>{if(_0xa6cfb6[0x0]!=_0x34a7c7)return _0x30aa47(_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa6cfb6[0x1]={..._0xa6cfb6[0x1],[_0x16e3f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2be00f};},{[_0x16e3f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e3f1([0x68,0x69,0x67,0x68])}),_0x1d8053[_0x16e3f1([0x6f,0x6e])](_0x16e3f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51509d=>{_0xf9977b(_0x51509d[_0x16e3f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25a9da=!0x0,_0x1446a6(_0x51509d[_0x16e3f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16e3f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e3f1([0x6c,0x6f,0x77])}),_0x231cd9[_0x16e3f1([0x74,0x68,0x65,0x6e])](()=>{_0x25a9da||_0x30aa47(_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x308b12(){return _0x1d8053[_0x16e3f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e3f1([0x76,0x69,0x65,0x77])][_0x16e3f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16e3f1([0x61,0x75,0x74,0x6f]);}function _0x4f1174(){_0x1d8053[_0x16e3f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e3f1([0x76,0x69,0x65,0x77])][_0x16e3f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16e3f1([0x61,0x75,0x74,0x6f]);}}function _0xa44caf(_0x345273){const _0x1dae29=[new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d5bf3=>setTimeout(_0x3d5bf3,0x47abbbca^_0x40e85c)),_0x231cd9[_0x16e3f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e73be=>{let _0x307141=0x0;_0x1d8053[_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e3f1([0x6f,0x6e])](_0x16e3f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd39ac3,_0x5098d6)=>{_0x5098d6[0x0][_0x16e3f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x307141++,_0x307141==(0x47a280ee^_0x40e85c)&&(_0x2e73be(),_0xd39ac3[_0x16e3f1([0x6f,0x66,0x66])]());});}))];return window[_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16e3f1([0x72,0x61,0x63,0x65])](_0x1dae29)[_0x16e3f1([0x74,0x68,0x65,0x6e])](()=>_0x345273);}async function _0x4b74df(){await _0x231cd9,_0x1d8053[_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e3f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58db77,_0x1d8053[_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e3f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58db77,_0x1d8053[_0x16e3f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3aaa80(_0x4b788e){const _0x1981aa=_0x55a3ec();_0x1d8053[_0x1981aa]=_0x16e3f1([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b788e,_0x4b788e!=_0x16e3f1([0x56,0x61,0x6c,0x69,0x64])&&_0x4b74df();}function _0x55a3ec(){const _0x3e77ac=window[_0x16e3f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16e3f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16e3f1([0x6e,0x6f,0x77])]())[_0x16e3f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16e3f1([0x2e]),'');let _0x143981=_0x16e3f1([0x75]);for(let _0x1cd48d=0x0;_0x1cd48d<_0x3e77ac[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cd48d+=0x2){let _0x1d0293=window[_0x16e3f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e77ac[_0x16e3f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cd48d,_0x1cd48d+0x2));_0x1d0293>=_0x3c09a2[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d0293-=_0x3c09a2[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x143981+=_0x3c09a2[_0x1d0293];}return _0x143981;}function _0x1d782c(){const _0x3d0f54=_0x3c9201[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e]));if(0x3!=_0x3d0f54[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3627be(_0x3d0f54[0x1]);function _0x3627be(_0x2128c8){const _0x4b238f=_0x596633(_0x2128c8);return _0x4b238f&&_0x32f54c()?_0x4b238f:null;function _0x32f54c(){const _0x76576f=_0x4b238f[_0x16e3f1([0x6a,0x74,0x69])],_0x23f72d=window[_0x16e3f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x76576f[_0x16e3f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x76576f[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b4aed={..._0x4b238f,[_0x16e3f1([0x6a,0x74,0x69])]:_0x76576f[_0x16e3f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x76576f[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b4aed[_0x16e3f1([0x76,0x63])],_0x32190b(_0x4b4aed)==_0x23f72d;}}}async function _0x19fb31(){let _0x5287f8=!0x0;try{const _0x5532d6=_0x3c9201[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e])),[_0x33333a,_0xcafd6b,_0x19cc6b]=_0x5532d6;return _0x29cfdc(_0x33333a),await _0x2a3eea(_0x33333a,_0xcafd6b,_0x19cc6b),_0x5287f8;}catch{return!0x1;}function _0x29cfdc(_0x4086b4){const _0x51e238=_0x596633(_0x4086b4);_0x51e238&&_0x51e238[_0x16e3f1([0x61,0x6c,0x67])]==_0x16e3f1([0x45,0x53,0x32,0x35,0x36])||(_0x5287f8=!0x1);}async function _0x2a3eea(_0xc574a6,_0x461d37,_0x1e568e){const _0x5713f9=window[_0x16e3f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16e3f1([0x66,0x72,0x6f,0x6d])](_0x11f568(_0x1e568e),_0x3c313a=>_0x3c313a[_0x16e3f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29fd34=new window[(_0x16e3f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16e3f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc574a6+_0x16e3f1([0x2e])+_0x461d37),_0x4f5dba=window[_0x16e3f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16e3f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f5dba)return;const _0xbbeaf1=await _0x4f5dba[_0x16e3f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16e3f1([0x6a,0x77,0x6b]),_0x1c4741,{[_0x16e3f1([0x6e,0x61,0x6d,0x65])]:_0x16e3f1([0x45,0x43,0x44,0x53,0x41]),[_0x16e3f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16e3f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16e3f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f5dba[_0x16e3f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16e3f1([0x6e,0x61,0x6d,0x65])]:_0x16e3f1([0x45,0x43,0x44,0x53,0x41]),[_0x16e3f1([0x68,0x61,0x73,0x68])]:{[_0x16e3f1([0x6e,0x61,0x6d,0x65])]:_0x16e3f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbbeaf1,_0x5713f9,_0x29fd34)||(_0x5287f8=!0x1);}}function _0x596633(_0x33603e){return _0x33603e[_0x16e3f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16e3f1([0x65,0x79]))?JSON[_0x16e3f1([0x70,0x61,0x72,0x73,0x65])](_0x11f568(_0x33603e)):null;}function _0x11f568(_0x3d1a4e){return window[_0x16e3f1([0x61,0x74,0x6f,0x62])](_0x3d1a4e[_0x16e3f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16e3f1([0x2b]))[_0x16e3f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16e3f1([0x2f])));}function _0x32190b(_0x4e10df){let _0x204b72=0x1505;function _0x535d53(_0x2f2215){for(let _0xdaf33=0x0;_0xdaf33<_0x2f2215[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdaf33++){const _0x4dd040=_0x2f2215[_0x16e3f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdaf33);_0x204b72=(_0x204b72<<0x5)+_0x204b72+_0x4dd040,_0x204b72&=_0x204b72;}}function _0x257b72(_0x2a9012){Array[_0x16e3f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a9012)?_0x2a9012[_0x16e3f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x257b72):_0x2a9012&&typeof _0x2a9012==_0x16e3f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16e3f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a9012)[_0x16e3f1([0x73,0x6f,0x72,0x74])]()[_0x16e3f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28bee8,_0x559785])=>{_0x535d53(_0x28bee8),_0x257b72(_0x559785);}):_0x535d53(window[_0x16e3f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a9012));}return _0x257b72(_0x4e10df),_0x204b72>>>0x0;}function _0x5dbb30(_0x148e5e){return _0x148e5e[_0x16e3f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16e3f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16e3f1([0x30]));}function _0x52dc60(_0x650627){return _0x650627[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16e3f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16e3f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x58db77(){}function _0x16e3f1(_0x4cf4d6){return _0x4cf4d6['map'](_0x36adaf=>String['fromCharCode'](_0x36adaf))['join']('');}_0x3aaa80(await _0x5a5a88());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3396f9){const {plugins:_0x52c8d5,editing:_0x29908d,model:_0x33da77}=this['editor'],_0x99f05=_0x52c8d5['get'](f)['getFootnote'](_0x3396f9);return!!_0x99f05&&(_0x33da77['change'](_0x342ca1=>{_0x342ca1['setSelection'](_0x342ca1['createPositionAt'](_0x99f05['definition'],'end'));}),_0x29908d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1e3abf){const {plugins:_0x2c66e5,editing:_0x4e6e48,model:_0x6afaa3}=this['editor'],_0x59a886=_0x2c66e5['get'](f)['getFootnote'](_0x1e3abf);return!!_0x59a886&&(_0x6afaa3['change'](_0x21e71c=>{_0x21e71c['setSelection'](_0x59a886['reference'],'on');}),_0x4e6e48['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x25b925}=this['editor']['model'],_0x9fefe=this['editor']['config']['get']('footnotes.multiBlock');_0x25b925['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x25b925['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x25b925['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x9fefe?_0x25b925['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x25b925['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x25b925['addChildCheck'](_0x23181c=>{for(const _0x1c290a of _0x23181c)if('footnoteDefinition'===_0x1c290a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1d8540}=this,{conversion:_0x350920,editing:_0x8f15b5}=_0x1d8540,{t:t}=_0x1d8540['locale'];_0x350920['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x196450,{writer:_0x31593f,consumable:_0x4945a9})=>{const _0x17d5a0=_0x196450['getChild'](0x0);if(!_0x17d5a0||!_0x17d5a0['is']('element','a'))return null;const _0x57c000=_0x17d5a0['getAttribute']('href')||'';if(!_0x57c000['startsWith']('#'))return null;const _0x47dd74=_0x57c000['replace'](/^#/,'');if(!_0x47dd74)return null;_0x4945a9['consume'](_0x17d5a0,{'name':!0x0,'attributes':['href']});for(const {item:_0x1697d1}of _0x8f15b5['view']['createRangeIn'](_0x17d5a0))_0x1697d1['is']('$textProxy')?_0x4945a9['consume'](_0x1697d1['textNode'],{'name':!0x0}):_0x1697d1['is']('element')&&_0x4945a9['consume'](_0x1697d1,{'name':!0x0});return _0x31593f['createElement']('footnoteRef',{'footnoteId':_0x47dd74});}}),_0x350920['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x52ed01,{writer:_0xfa63b})=>b(_0x52ed01,_0xfa63b)}),_0x350920['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x52610c,{writer:_0x1bb7d3})=>{const _0x29a4b1=_0x52610c['getAttribute']('footnoteCounter');return _0x2d619d(b(_0x52610c,_0x1bb7d3),_0x1bb7d3,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x29a4b1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x38b217}=this,{t:t}=_0x38b217['locale'],{conversion:_0x11dc36}=_0x38b217;_0x11dc36['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x11dc36['for']('upcast')['add'](_0x28bf6e=>{_0x28bf6e['on']('element:ol',(_0x2b4b74,_0x424fec,_0x4188cb)=>{const _0x39e2f6=_0x424fec['viewItem'];if(!_0x39e2f6['hasClass']('footnotes-list')||!_0x424fec['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4188cb['consumable']['consume'](_0x39e2f6,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x24b29b,modelCursor:_0x5790c8}=_0x4188cb['convertChildren'](_0x424fec['viewItem'],_0x424fec['modelCursor']);_0x424fec['modelRange']=_0x24b29b,_0x424fec['modelCursor']=_0x5790c8;}),_0x28bf6e['on']('element:hr',(_0x5be5e8,_0x8d8d14,_0x416f30)=>{const _0x336b9b=_0x8d8d14['viewItem'];_0x336b9b['hasClass']('footnotes-divider')&&_0x8d8d14['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x416f30['consumable']['consume'](_0x336b9b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x11dc36['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xfab51b,{writer:_0x5a1bc8})=>D(_0x5a1bc8)}),_0x11dc36['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2725f2,{writer:_0x357626})=>{const _0x240646=D(_0x357626,{'data-footnotes-list-label':t('Footnotes')}),_0x232a94=_0x2d619d(_0x240646,_0x357626,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x357626['setCustomProperty']('footnotesDefinitions',!0x0,_0x232a94),_0x232a94;}});}['_defineDefinitionConverters'](){const {editor:_0x1a9df2}=this,{conversion:_0x50bc2e,locale:_0x2deb9d}=_0x1a9df2,_0xf9a737=_0x1a9df2['config']['get']('footnotes.multiBlock');_0x50bc2e['for']('upcast')['add'](_0x841dae=>{_0x841dae['on']('element:li',(_0x49c264,_0x5c5507,_0x2ff7a3)=>{const _0x775cf1=_0x5c5507['viewItem'];if(!_0x775cf1['hasClass']('footnote-definition')||!_0x775cf1['getAttribute']('id'))return;const _0x557b23=_0x775cf1['parent'];if(!_0x557b23['is']('element','ol')||!_0x557b23['hasClass']('footnotes-list'))return;if(!_0x2ff7a3['consumable']['test'](_0x775cf1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x26e9c1=_0x2ff7a3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x775cf1['getAttribute']('id')});if(!_0x2ff7a3['safeInsert'](_0x26e9c1,_0x5c5507['modelCursor']))return;_0x2ff7a3['consumable']['consume'](_0x775cf1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x24933c=Array['from'](_0x775cf1['getChildren']())['find'](_0x4f04a0=>_0x4f04a0['is']('element')&&_0x4f04a0['hasClass']('footnote-content'));for(const _0x3785fd of _0x775cf1['getChildren']())_0x3785fd['is']('element')&&(_0x2ff7a3['consumable']['consume'](_0x3785fd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ff7a3['consumable']['consume'](_0x3785fd,{'name':!0x0,'classes':'footnote-content'}));if(_0x24933c){if(_0xf9a737)_0x2ff7a3['convertChildren'](_0x24933c,_0x26e9c1);else{const _0x6baf26=_0x2ff7a3['writer']['createElement']('footnoteInlineContent');_0x2ff7a3['writer']['insert'](_0x6baf26,_0x26e9c1),_0x2ff7a3['convertChildren'](_0x24933c,_0x6baf26);}}_0x2ff7a3['updateConversionResult'](_0x26e9c1,_0x5c5507);});}),_0x50bc2e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1fc9eb,{writer:_0x26e7cf})=>y(_0x1fc9eb,_0x26e7cf,_0x2deb9d,{'dataPipeline':!0x0})}),_0x50bc2e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3bd349,{writer:_0x5cd162})=>y(_0x3bd349,_0x5cd162,_0x2deb9d)});}['_defineBogusParagraphConverters'](){const {editor:_0x3287f3}=this,{conversion:_0x3bc54f}=_0x3287f3;_0x3287f3['config']['get']('footnotes.multiBlock')?(_0x3bc54f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3bc54f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3287f3['model']['document'],'change:data',()=>{!function(_0x487a4e,_0x13fa8a){const _0xe673df=_0x487a4e['document']['differ'],_0x2ac0c4=new Set();for(const _0x50a55f of _0xe673df['getChanges']()){const _0x1bd1dc='attribute'==_0x50a55f['type']?_0x50a55f['range']['start']['parent']:_0x50a55f['position']['parent'];_0x1bd1dc['is']('element','footnoteDefinition')&&_0x2ac0c4['add'](_0x1bd1dc);}for(const _0x17fa27 of _0x2ac0c4['values']()){const _0x1a9422=Array['from'](_0x17fa27['getChildren']())['filter'](_0x2a05f9=>v(_0x2a05f9,_0x13fa8a['mapper']));for(const _0x5873b3 of _0x1a9422)_0x13fa8a['reconvertItem'](_0x5873b3);}}(_0x3287f3['model'],_0x3287f3['editing']);})):(_0x3bc54f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3bc54f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5e0774,{writer:_0x1d0ef7})=>{const _0x374ba5=_0x1d0ef7['createContainerElement']('span');return _0x1d0ef7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x374ba5),_0x374ba5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4c537f}=this,{editing:_0x5a4517,t:t}=_0x4c537f,_0x39780a=_0x4c537f['model']['document']['selection'];_0x4c537f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4c537f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5a4517['view']['document'],'enter',(_0xd82de6,_0x179b4e)=>{const _0x2663b6=function(_0x2ff02b){const _0x507b74=_0x2ff02b['getSelectedElement']();if(_0x507b74?.['is']('element','footnoteRef'))return _0x507b74;return null;}(_0x39780a);if(_0x2663b6){const _0x17897b=_0x2663b6['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x17897b),_0x179b4e['preventDefault'](),_0xd82de6['stop']();}},{'context':_0x46519d});}['_defineClickHandlers'](){const {editor:_0x5a2dea}=this,{editing:_0x46389a}=_0x5a2dea;_0x5a2dea['editing']['view']['addObserver'](_0x4678e1),_0x5a2dea['editing']['view']['addObserver'](_0x153404);let _0x33b3f1=!0x1;this['listenTo'](_0x46389a['view']['document'],'pointerdown',(_0x10791b,_0x4204d5)=>{const {target:_0x2caf7b}=_0x4204d5,_0x5cb35a=_0x46389a['view']['document']['selection'];_0x33b3f1=!!(_0x2caf7b?.['is']('element','a')&&_0x2caf7b['parent']?.['is']('element','sup')&&_0x2caf7b['parent']['hasClass']('footnote'))&&_0x5cb35a['getSelectedElement']()===_0x2caf7b['parent'];},{'priority':'high'}),this['listenTo'](_0x46389a['view']['document'],'click',(_0x170350,_0x14f7b6)=>{const {target:_0x2b7644}=_0x14f7b6;if(!_0x2b7644?.['is']('element','a'))return;if(_0x2b7644['parent']?.['is']('element','sup')&&_0x2b7644['parent']['hasClass']('footnote')&&!_0x33b3f1)return void _0x14f7b6['preventDefault']();let _0x1245f5=_0x2b7644['getAttribute']('href');if(!_0x1245f5?.['startsWith']('#'))return;_0x1245f5=_0x1245f5['slice'](0x1);let _0x36de9a=!0x1;(_0x1245f5['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1245f5['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1245f5))&&(_0x36de9a=!0x0),_0x36de9a&&(_0x14f7b6['preventDefault'](),_0x170350['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x540d5d}={}){return(_0xcba574,{writer:_0x183b09})=>{if(!g(_0xcba574))return null;if(!_0x540d5d)return _0x183b09['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x18ed0a=_0x183b09['createContainerElement']('p');return _0x183b09['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x18ed0a),_0x18ed0a;};}function g(_0x5b98ee){const {parent:_0x508596}=_0x5b98ee;if(!_0x508596?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x508596['childCount'])return!0x1;for(const _0x4ce077 of _0x5b98ee['getAttributeKeys']())if(!_0x4ce077['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4ce077)return!0x1;return!0x0;}function v(_0x5e25c2,_0x59e047){if(!_0x5e25c2['is']('element','paragraph'))return!0x1;const _0x177eac=_0x59e047['toViewElement'](_0x5e25c2);return!!_0x177eac&&g(_0x5e25c2)!==_0x177eac['is']('element','span');}function H(_0x1ed089){return _0x46519d(_0x1ed089)&&_0x1ed089['is']('containerElement')&&!!_0x1ed089['getCustomProperty']('footnotesDefinitions');}function D(_0x4b4e02,_0x191737={}){const _0x2a3062=_0x4b4e02['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x251886=_0x4b4e02['createContainerElement']('ol',{'class':'footnotes-list'},_0x4b4e02['createSlot']());return _0x4b4e02['createContainerElement']('div',{'class':'footnotes',..._0x191737},[_0x2a3062,_0x251886]);}function b(_0x28a2cc,_0x32affe){const _0x5d582b=_0x28a2cc['getAttribute']('footnoteId'),_0x185fd5=_0x28a2cc['getAttribute']('footnoteCounter'),_0x39bc8e=_0x32affe['createUIElement']('a',{'href':'#'+_0x5d582b},function(_0x4b2ac3){const _0x5cc6a4=this['toDomElement'](_0x4b2ac3);return _0x5cc6a4['textContent']=_0x185fd5,_0x5cc6a4;}),_0xa95bb5=_0x32affe['createContainerElement']('sup',{'id':'ref-'+_0x5d582b,'class':'footnote'},[_0x39bc8e]);return _0xa95bb5['getFillerOffset']=()=>null,_0xa95bb5;}function y(_0x4f8169,_0x45f31d,_0x570840,{dataPipeline:_0x39c61c}={}){const {t:t}=_0x570840,_0x1c1b36=_0x4f8169['getAttribute']('footnoteId'),_0x287cbb=_0x45f31d['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1c1b36},function(_0x277c48){const _0x2e2d3d=this['toDomElement'](_0x277c48);return _0x2e2d3d['innerText']='^',_0x2e2d3d;}),_0x278365=_0x39c61c?_0x45f31d['createContainerElement']('div',{'class':'footnote-content'}):_0x1eb08a(_0x45f31d['createEditableElement']('div',{'class':'footnote-content'}),_0x45f31d,{'label':t('Footnote\x20content.')});return _0x45f31d['insert'](_0x45f31d['createPositionAt'](_0x278365,0x0),_0x45f31d['createSlot']()),_0x45f31d['createContainerElement']('li',{'class':'footnote-definition','id':_0x1c1b36},[_0x287cbb,_0x278365]);}class e extends _0x33f338{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5bf402];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x424be0}=this,{plugins:_0x429102,model:_0x4c0b35}=_0x424be0,_0x578e91=_0x429102['get'](_0x5bf402),_0x428736=_0x429102['get'](f);this['listenTo'](_0x578e91,'outputTransformation',(_0x2b86d1,_0x2c4ed5)=>{const _0x1d126f=l(_0x4c0b35['createRangeIn'](_0x2c4ed5['content']));if(!_0x1d126f['length'])return;const _0x4bea1f=_0x428736['getFootnotes'](),_0x349949=_0x1d126f['reduce']((_0x5a4740,_0x474cdc)=>{const _0x35d5e6=_0x4bea1f['find'](_0x1b2931=>_0x1b2931['id']===_0x474cdc);if(_0x35d5e6){const _0x4c3613=_0x424be0['data']['toView'](_0x35d5e6['definition'],{'isClipboardPipeline':!0x0}),_0x4931fe=_0x424be0['data']['htmlProcessor']['toData'](_0x4c3613);_0x5a4740[_0x35d5e6['id']]=_0x4931fe;}return _0x5a4740;},Object['create'](null));_0x2c4ed5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x349949));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4b46c5}=this,{model:_0x2f4747,plugins:_0xcf470b}=_0x4b46c5,{view:_0xfadd}=_0x4b46c5['editing'],_0x55444b=_0xcf470b['get'](_0x5bf402),_0x144901=_0xcf470b['get'](f),_0x328fa4=_0x4b46c5['config']['get']('footnotes.multiBlock');let _0xc6747e=null;this['listenTo'](_0xfadd['document'],'clipboardInput',(_0x7b134e,_0x29a444)=>{const _0x18fa61=_0x29a444['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xc6747e=_0x18fa61?JSON['parse'](_0x18fa61):null;}),this['listenTo'](_0x55444b,'contentInsertion',(_0x311f0b,_0x14e328)=>{const _0x12740c=_0x14e328['sourceEditorId']===this['editor']['id'];_0x12740c&&'drop'===_0x14e328['method']||_0x2f4747['change'](_0x41737f=>{let _0x3cbdf8=_0x144901['getFootnotesDefinitionsObjectElement']();const _0x57b46d=!!_0x3cbdf8&&Array['from'](_0x2f4747['document']['selection']['getSelectedBlocks']())['includes'](_0x3cbdf8);if(!_0xc6747e&&function(_0x347952){for(const {item:_0x38f810}of _0x347952)if(_0x38f810['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2f4747['createRangeIn'](_0x14e328['content']))&&(_0xc6747e=function(_0x5b407b,_0x3cd632){const _0x568577=c(_0x5b407b,_0x3cd632);if(!_0x568577)return null;const _0x4d5595=Object['create'](null);for(const _0x40bb16 of _0x568577['getChildren']())_0x40bb16['is']('element','footnoteDefinition')&&_0x40bb16['hasAttribute']('footnoteId')&&(_0x4d5595[_0x40bb16['getAttribute']('footnoteId')]=_0x5b407b['cloneElement'](_0x40bb16,!0x0));return Object['keys'](_0x4d5595)['length']?_0x4d5595:null;}(_0x41737f,_0x14e328['content'])),(_0x3cbdf8&&!_0x57b46d||!_0x3cbdf8&&!_0xc6747e)&&function(_0x4ddbed,_0x3e3360){const _0x494771=[];for(const {item:_0x76f948}of _0x4ddbed['createRangeIn'](_0x3e3360))_0x76f948['is']('element','footnotesDefinitions')&&_0x494771['push'](_0x76f948);for(const _0x379ebd of _0x494771)_0x4ddbed['remove'](_0x379ebd);}(_0x41737f,_0x14e328['content']),!_0xc6747e)return;const {selection:_0x21cba6}=_0x2f4747['document'],_0x5b4d9a=_0x21cba6['getFirstRange']()['root'];_0x3cbdf8&&!_0x57b46d||(_0x3cbdf8=c(_0x41737f,_0x14e328['content']),_0x3cbdf8||=_0x144901['_insertEmptyFootnotesDefinitionsContainer'](_0x41737f,_0x5b4d9a));const _0x1909d9=Array['from'](_0x21cba6['getRanges']())['flatMap'](l),_0x295721=function(_0x5cca31,_0xa3e72,_0x47ff83){const _0x5b9a77=Object['create'](null);for(const {item:_0x25927e}of _0x5cca31['createRangeIn'](_0xa3e72))if(_0x25927e['is']('element','footnoteRef')){const _0x25662f=_0x25927e['getAttribute']('footnoteId');if(!_0x47ff83(_0x25662f))continue;_0x5b9a77[_0x25662f]||(_0x5b9a77[_0x25662f]=_0x8553f0()),_0x5cca31['setAttribute']('footnoteId',_0x5b9a77[_0x25662f],_0x25927e);}return _0x5b9a77;}(_0x41737f,_0x14e328['content'],_0x23bc5a=>{if(!_0x12740c)return!0x0;return!!_0x144901['getFootnote'](_0x23bc5a)&&!_0x1909d9['includes'](_0x23bc5a);});for(const [_0x566eea,_0x27302d]of Object['entries'](_0xc6747e)){const _0x1f0a62=_0x295721[_0x566eea]||_0x566eea;let _0x15416b;if('string'!=typeof _0x27302d)_0x15416b=_0x27302d,_0x1f0a62!==_0x566eea&&_0x41737f['setAttribute']('footnoteId',_0x1f0a62,_0x15416b);else{_0x15416b=_0x41737f['createElement']('footnoteDefinition',{'footnoteId':_0x1f0a62});const _0x37d4ae=_0x4b46c5['data']['htmlProcessor']['toView'](_0x27302d);let _0x383bf8;if(_0x328fa4)_0x383bf8=_0x4b46c5['data']['toModel'](_0x37d4ae,_0x15416b);else{_0x383bf8=_0x41737f['createElement']('footnoteInlineContent');const _0x1bdd2a=_0x4b46c5['data']['toModel'](_0x37d4ae,_0x383bf8);_0x41737f['insert'](_0x1bdd2a,_0x383bf8);}_0x41737f['append'](_0x383bf8,_0x15416b);}_0x41737f['insert'](_0x15416b,_0x3cbdf8,'end');}_0xc6747e=null;});});}}function c(_0x46e954,_0x2569c0){for(const {item:_0x1cc92d}of _0x46e954['createRangeIn'](_0x2569c0))if(_0x1cc92d['is']('element','footnotesDefinitions'))return _0x1cc92d;return null;}function l(_0x34fb03){const _0x845785=new Set();for(const {item:_0x3f9fcf}of _0x34fb03)_0x3f9fcf['is']('element','footnoteRef')&&_0x845785['add'](_0x3f9fcf['getAttribute']('footnoteId'));return Array['from'](_0x845785);}class i extends _0x33f338{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x21f03a}=this,{componentFactory:_0x3ffe92}=_0x21f03a['ui'];_0x3ffe92['add']('insertFootnote',E(_0x21f03a,_0x205b9d)),_0x3ffe92['add']('menuBar:insertFootnote',E(_0x21f03a,_0xa176a3)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a85b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f3bc3;for(const _0x49c6aa in _0x5a85b2){const _0x38873d=_0x49c6aa,_0x4de495=_0x5a85b2[_0x38873d];if('footnotesLicenseKeyValid'==_0x4de495||'footnotesLicenseKeyInvalid'==_0x4de495||'footnotesLicenseKeyExpired'==_0x4de495||'footnotesLicenseKeyDomainLimit'==_0x4de495||'footnotesLicenseKeyNotAllowed'==_0x4de495||'footnotesLicenseKeyEvaluationLimit'==_0x4de495||'footnotesLicenseKeyTrialLimit'==_0x4de495||'footnotesLicenseKeyUsageLimit'==_0x4de495){delete _0x5a85b2[_0x38873d],_0x1f3bc3=_0x4de495,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x15ff6b,_0x3879a4){const _0x264924=_0x15ff6b['commands']['get']('insertFootnote');return _0x8fe7a8=>{const {t:t}=_0x8fe7a8,_0xde69c5=new _0x3879a4(_0x8fe7a8),_0xab8461=_0xde69c5 instanceof _0xa176a3;return _0xde69c5['bind']('isEnabled')['to'](_0x264924,'isEnabled'),_0xde69c5['set']({'label':t(_0xab8461?'Footnote':'Insert\x20footnote'),'icon':_0x317f87,'tooltip':!0x0}),_0xde69c5['on']('execute',()=>{_0x264924['execute'](),_0x15ff6b['editing']['view']['focus']();}),_0xde69c5;};}class lt extends _0x33f338{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x206b50{['refresh'](){const {editor:_0x4be354}=this,_0x209759=_0x4be354['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x209759,this['value']=_0x209759?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5ddba9}){const {editor:_0x455dcf}=this,_0x2af37c=_0x455dcf['plugins']['get'](f),_0x102903=_0x2af37c['getFootnotesDefinitionsObjectElement']();_0x102903&&W['includes'](_0x5ddba9)&&_0x455dcf['model']['change'](_0x5dcb48=>{_0x5dcb48['setAttribute']('footnotesListStyle',_0x5ddba9,_0x102903),_0x2af37c['_updateFootnotesCounters'](_0x5dcb48);});}}class C extends _0x206b50{['refresh'](){const {editor:_0x5546f6}=this,_0x904745=_0x5546f6['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x904745,this['value']=_0x904745?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x494ad2}){const {editor:_0x1188d4}=this,_0x56c7a2=_0x1188d4['plugins']['get'](f),_0x4a91b8=_0x56c7a2['getFootnotesDefinitionsObjectElement']();_0x4a91b8&&Number['isInteger'](_0x494ad2)&&_0x1188d4['model']['change'](_0x68d51c=>{_0x68d51c['setAttribute']('footnotesListStart',_0x494ad2,_0x4a91b8),_0x56c7a2['_updateFootnotesCounters'](_0x68d51c);});}}class P extends _0x33f338{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c6213}=this;_0x5c6213['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5c6213['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5c6213['commands']['add']('footnotesStyle',new S(_0x5c6213)),_0x5c6213['commands']['add']('footnotesStart',new C(_0x5c6213)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3efbbe}=this,{schema:_0x16009d}=_0x3efbbe['model'];_0x16009d['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x48a778}=this,{conversion:_0x145783,model:_0xc545c0}=_0x48a778,{schema:_0x5030bf}=_0xc545c0;_0x145783['for']('upcast')['add'](_0x3c1a7b=>{_0x3c1a7b['on']('element:ol',(_0x9a0ad3,_0x74a2cb,_0x3cbf59)=>{const _0x2ddda4=_0x74a2cb['viewItem'],_0x3d9615=_0x74a2cb['modelCursor']?.['parent'];_0x2ddda4['hasClass']('footnotes-list')&&_0x3d9615?.['is']('element','footnotesDefinitions')&&(function(_0x4ac5c2,_0x2463d1,_0x2e8138,_0x1b1381){if(!_0x1b1381['checkAttribute'](_0x2463d1,'footnotesListStart'))return;let _0x486f76=0x1;const _0x594e26=_0x2e8138['consumable']['consume'](_0x4ac5c2,{'attributes':'start'});if(_0x594e26){const _0x3290ff=Number['parseInt'](_0x4ac5c2['getAttribute']('start'),0xa);Number['isNaN'](_0x3290ff)||(_0x486f76=_0x3290ff);}!_0x594e26&&_0x2463d1['hasAttribute']('footnotesListStart')||_0x2e8138['writer']['setAttribute']('footnotesListStart',_0x486f76,_0x2463d1);}(_0x2ddda4,_0x3d9615,_0x3cbf59,_0x5030bf),function(_0x13f156,_0x316969,_0x26e700,_0x5332c0){if(!_0x5332c0['checkAttribute'](_0x316969,'footnotesListStyle'))return;let _0x1e35b3='decimal',_0x5e5703=!0x1;if(_0x26e700['consumable']['consume'](_0x13f156,{'attributes':'type'})){const _0x40446f={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x13f156['getAttribute']('type')];_0x40446f&&(_0x1e35b3=_0x40446f),_0x5e5703=!0x0;}_0x26e700['consumable']['consume'](_0x13f156,{'styles':'list-style-type'})&&(_0x1e35b3=function(_0x17de4c){switch(_0x17de4c){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x17de4c;}}(_0x13f156['getStyle']('list-style-type')),_0x5e5703=!0x0),!_0x5e5703&&_0x316969['hasAttribute']('footnotesListStyle')||_0x26e700['writer']['setAttribute']('footnotesListStyle',_0x1e35b3,_0x316969);}(_0x2ddda4,_0x3d9615,_0x3cbf59,_0x5030bf));});}),_0x145783['for']('downcast')['add'](_0x32e13d=>{_0x32e13d['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x3497c3,_0x2b8fb9,_0x2c2bdb)=>{if(!_0x2c2bdb['consumable']['consume'](_0x2b8fb9['item'],_0x3497c3['name']))return;const _0x442510=M(_0x2b8fb9['item'],_0x2c2bdb['mapper']),{attributeNewValue:_0xb65d4c}=_0x2b8fb9;null==_0xb65d4c||0x1===_0xb65d4c?_0x2c2bdb['writer']['removeAttribute']('start',_0x442510):_0x2c2bdb['writer']['setAttribute']('start',String(_0xb65d4c),_0x442510);}),_0x32e13d['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x29c5c1,_0x4d8e4a,_0x3ae681)=>{if(!_0x3ae681['consumable']['consume'](_0x4d8e4a['item'],_0x29c5c1['name']))return;const _0x3b5239=M(_0x4d8e4a['item'],_0x3ae681['mapper']),{attributeNewValue:_0x36ddc1}=_0x4d8e4a;_0x36ddc1&&'decimal'!==_0x36ddc1?_0x3ae681['writer']['setStyle']('list-style-type',_0x36ddc1,_0x3b5239):_0x3ae681['writer']['removeStyle']('list-style-type',_0x3b5239);});});}['_definePostfixer'](){const {editor:_0x3b0bca}=this,{model:_0x46576e}=_0x3b0bca,_0x32166e=_0x3b0bca['plugins']['get'](f),_0x364f7e=this['_getDefaultListStyle'](),_0x1e3eb3=this['_getDefaultStartIndex']();_0x46576e['document']['registerPostFixer'](_0x17e24a=>{const _0x5588cd=_0x46576e['document']['differ']['getChanges']();let _0x24c523=!0x1;for(const _0x58e939 of _0x5588cd){if('insert'!==_0x58e939['type']||'$text'===_0x58e939['name'])continue;const _0x5168ae=_0x46576e['createRangeOn'](_0x58e939['position']['nodeAfter']);for(const _0x2154c4 of _0x5168ae['getItems']())_0x2154c4['is']('element','footnotesDefinitions')&&(!_0x2154c4['hasAttribute']('footnotesListStart')&&_0x46576e['schema']['checkAttribute'](_0x2154c4,'footnotesListStart')&&(_0x17e24a['setAttribute']('footnotesListStart',_0x1e3eb3,_0x2154c4),_0x24c523=!0x0),!_0x2154c4['hasAttribute']('footnotesListStyle')&&_0x46576e['schema']['checkAttribute'](_0x2154c4,'footnotesListStyle')&&(_0x17e24a['setAttribute']('footnotesListStyle',_0x364f7e,_0x2154c4),_0x24c523=!0x0));}return _0x24c523&&_0x32166e['_updateFootnotesCounters'](_0x17e24a),_0x24c523;});}['_defineFormatter'](){const {editor:_0x89fe38}=this;_0x89fe38['plugins']['get'](f)['setFootnoteFormatter'](_0x1f68bb=>this['_formatFootnoteListValue'](_0x1f68bb));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2bc5a1,value:_0x33930b,digits:_0x489e66}){const _0x5acaba=_0x2bc5a1['getAttribute']('footnotesListStyle'),_0x224ee0=_0x2bc5a1['getAttribute']('footnotesListStart'),_0x54b8db=Math['floor'](_0x33930b)+(_0x224ee0??0x1)-0x1;switch(_0x5acaba){case'decimal-leading-zero':return function(_0x5344b4,_0x1f0b87){return String(_0x5344b4)['padStart'](_0x1f0b87,'0');}(_0x54b8db,Math['max'](0x2,_0x489e66));case'lower-alpha':case'lower-latin':return N(_0x54b8db,!0x1);case'upper-alpha':case'upper-latin':return N(_0x54b8db,!0x0);case'lower-roman':return X(_0x54b8db,!0x1);case'upper-roman':return X(_0x54b8db,!0x0);default:return String(_0x54b8db);}}}function M(_0x283a00,_0x2fcea0){const _0x3b50ee=_0x2fcea0['toViewElement'](_0x283a00);return Array['from'](_0x3b50ee['getChildren']())['find'](_0x3dbec1=>_0x3dbec1['is']('element','ol')&&_0x3dbec1['hasClass']('footnotes-list'));}function N(_0x3447a4,_0x2ce152){let _0x188acf='',_0x3e9051=_0x3447a4;for(;_0x3e9051>0x0;){const _0x5793ca=(_0x3e9051-0x1)%0x1a;_0x188acf=String['fromCharCode'](0x61+_0x5793ca)+_0x188acf,_0x3e9051=Math['floor']((_0x3e9051-0x1)/0x1a);}return _0x2ce152?_0x188acf['toUpperCase']():_0x188acf;}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(_0x15424c,_0x6f091d){let _0x167625='',_0x146dbf=_0x15424c;for(const {value:_0x146a22,numeral:_0x3d4849}of V)for(;_0x146dbf>=_0x146a22;)_0x167625+=_0x3d4849,_0x146dbf-=_0x146a22;return _0x6f091d?_0x167625:_0x167625['toLowerCase']();}class $ extends _0x3cfec0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1490d9();['focusCycler'];constructor(_0x318184,{styleButtonViews:_0x8f492a,styleGridAriaLabel:_0x55f8ce}){super(_0x318184),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x8f492a,_0x55f8ce),[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 _0x49aaf1 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x49aaf1['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x23db71=_0x388953=>_0x388953['stopPropagation']();this['keystrokes']['set']('arrowright',_0x23db71),this['keystrokes']['set']('arrowleft',_0x23db71),this['keystrokes']['set']('arrowup',_0x23db71),this['keystrokes']['set']('arrowdown',_0x23db71);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3c3d29,_0x186946){const _0x38b318=new _0x3cfec0(this['locale']);return _0x38b318['children']=_0x38b318['createCollection'](),_0x38b318['children']['addMany'](_0x3c3d29),_0x38b318['setTemplate']({'tag':'div','attributes':{'aria-label':_0x186946,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x38b318['children']}),_0x38b318['children']['delegate']('execute')['to'](this),_0x38b318['focus']=function(){for(const _0x446fd2 of this['children'])if(_0x446fd2 instanceof _0x205b9d&&_0x446fd2['isOn'])return void _0x446fd2['focus']();this['children']['first']['focus']();},_0x38b318['focusTracker']=new rt(),_0x38b318['keystrokes']=new nt(),_0x38b318['render'](),_0x38b318['keystrokes']['listenTo'](_0x38b318['element']),this['children']['add'](_0x38b318),_0x38b318;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x438a32=this['_createStartIndexPropertyView'](),_0x528b7c=[_0x438a32],_0x2fab58=new it(this['locale'],_0x528b7c);return _0x2fab58['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2fab58['buttonView']['bind']('isEnabled')['toMany'](_0x528b7c,'isEnabled',(..._0x27c6bc)=>_0x27c6bc['some'](_0x3ed9c5=>_0x3ed9c5)),_0x2fab58['buttonView']['on']('change:isEnabled',(_0x14ed5c,_0x11b43f,_0x502cea)=>{_0x502cea||(_0x2fab58['isCollapsed']=!0x0);}),this['children']['add'](_0x2fab58),[_0x438a32,_0x2fab58];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2c938d=new et(this['locale'],ot);return _0x2c938d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2c938d['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2c938d['fieldView']['on']('input',()=>{const _0x4b0f94=_0x2c938d['fieldView']['element'],_0x2d280d=_0x4b0f94['valueAsNumber'];Number['isNaN'](_0x2d280d)?_0x2c938d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4b0f94['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2d280d}):_0x2c938d['errorText']=t(_0x2d280d<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2c938d;}}class j extends _0x33f338{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5cd06c,_0x298294];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58fe4d}=this,{componentFactory:_0x335928}=_0x58fe4d['ui'];_0x58fe4d['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x335928['add']('footnotesStyle',function(_0x2e4424){return _0xf7a532=>{const {t:t}=_0xf7a532,_0xbbfc3d=_0x2e4424['commands']['get']('footnotesStyle'),_0x5c3a55=_0x945a55(_0xf7a532),{buttonView:_0x4ec479}=_0x5c3a55;return _0x5c3a55['class']='ck-footnotes-styles-dropdown',_0x5c3a55['bind']('isEnabled')['to'](_0xbbfc3d,'isEnabled'),_0x4ec479['set']({'label':t('Footnotes\x20style'),'icon':_0x317f87,'tooltip':!0x0}),_0x5c3a55['once']('change:isOpen',()=>{const _0x3a2417=function({editor:_0x262616,dropdownView:_0x4f705b}){const {t:t}=_0x262616['locale'],_0x41d877=t('Footnotes\x20definitions\x20styles'),_0x24a422=function(_0x40d011){const t=_0x40d011['locale']['t'],_0x3098be=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x71874c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x17fdd6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x19d412},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3d9b37},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x108238},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x466849}];return _0x3098be['map'](function(_0x8d5de2){const _0x198ef3=_0x8d5de2['locale'];return({label:_0x20d250,icon:_0x530e7d,tooltip:_0xcf2fd9,style:_0x221662})=>{const _0x1dd4e8=_0x8d5de2['commands']['get']('footnotesStyle'),_0x325e17=new _0x205b9d(_0x198ef3);return _0x325e17['set']({'label':_0x20d250,'icon':_0x530e7d,'tooltip':_0xcf2fd9}),_0x325e17['bind']('isOn')['to'](_0x1dd4e8,'value',_0x10fad7=>_0x10fad7===_0x221662),_0x325e17['bind']('isEnabled')['to'](_0x1dd4e8,'isEnabled'),_0x325e17['on']('execute',()=>{_0x8d5de2['execute']('footnotesStyle',{'value':_0x221662}),_0x8d5de2['editing']['view']['focus']();}),_0x325e17;};}(_0x40d011));}(_0x262616),_0x30f3ba=new $(_0x262616['locale'],{'styleGridAriaLabel':_0x41d877,'styleButtonViews':_0x24a422}),_0x5eca78=_0x262616['commands']['get']('footnotesStart');return _0x30f3ba['startIndexFieldView']['bind']('isEnabled')['to'](_0x5eca78),_0x30f3ba['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5eca78),_0x30f3ba['on']('footnotesListStart',(_0x352aa0,_0x243874)=>{_0x262616['execute']('footnotesStart',{'value':_0x243874['startIndex']});}),_0x30f3ba['delegate']('execute')['to'](_0x4f705b),_0x30f3ba;}({'editor':_0x2e4424,'dropdownView':_0x5c3a55});_0x5c3a55['panelView']['children']['add'](_0x3a2417);}),_0x5c3a55;};}(_0x58fe4d));}['afterInit'](){const {editor:_0x1cde39}=this,{t:t}=_0x1cde39['locale'],_0x36890c=_0x1cde39['plugins']['get'](_0x298294),{defaultPositions:_0x3818f8}=_0x4a808e;_0x36890c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1cde39['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x519dae=>{let _0x1a62ff=_0x519dae['getFirstPosition']()?.['parent'];return _0x1a62ff?.['is']('$text')&&(_0x1a62ff=_0x1a62ff['parent']),_0x1a62ff?.['is']('element')?_0x1a62ff['findAncestor'](H):null;},'positions':[_0x3818f8['southArrowNorth'],_0x3818f8['southArrowNorthMiddleWest'],_0x3818f8['southArrowNorthMiddleEast'],_0x3818f8['southArrowNorthWest'],_0x3818f8['southArrowNorthEast'],_0x3818f8['northArrowSouth'],_0x3818f8['northArrowSouthMiddleWest'],_0x3818f8['northArrowSouthMiddleEast'],_0x3818f8['northArrowSouthWest'],_0x3818f8['northArrowSouthEast'],_0x3818f8['viewportStickyNorth']]});}}class ft extends _0x33f338{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x1710cd,Command as _0x41eb48}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3df5a3,isWidget as _0x3a4250,toWidgetEditable as _0x3698cf,WidgetToolbarRepository as _0x3beff2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xbe9a79,logWarning as _0x5c6277,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3d6e46,ClickObserver as _0x1ac324}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x221a8b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5db380,ButtonView as _0x350ac0,View as _0x1dd507,ViewCollection as _0x352e5d,FocusCycler as _0x95ad87,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x4d686c,BalloonPanelView as _0xdd54a5,createDropdown as _0x2ede11}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1d63ee,IconListStyleDecimal as _0x1f671c,IconListStyleDecimalLeadingZero as _0x49efc3,IconListStyleLowerRoman as _0x4f8c01,IconListStyleUpperRoman as _0x8c4f37,IconListStyleLowerLatin as _0x2fb348,IconListStyleUpperLatin as _0x5a7aff}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4ccfd7,_0x260d47){this['_model']=_0x4ccfd7,this['_elementName']=_0x260d47['elementName'],this['_getElementKey']=_0x260d47['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xf0115a){const _0x2fde06=new Set(),_0x362acb=new Map();for(const _0x498941 of _0xf0115a){if('insert'===_0x498941['type']&&'$text'!==_0x498941['name']&&_0x498941['position']['nodeAfter']){const _0x3b1804=this['_model']['createRangeOn'](_0x498941['position']['nodeAfter']);for(const _0x4eb16e of _0x3b1804['getItems']()){if(!_0x4eb16e['is']('element',this['_elementName']))continue;const _0x3f9528=this['_getElementKey'](_0x4eb16e);_0x362acb['has'](_0x3f9528)||_0x362acb['set'](_0x3f9528,[]),_0x362acb['get'](_0x3f9528)['push'](_0x4eb16e);}}if('remove'===_0x498941['type']&&_0x498941['name']===this['_elementName']){const _0x53e27c=this['_getElementKey']({'getAttribute':_0x58a14a=>_0x498941['attributes']['get'](_0x58a14a)});_0x2fde06['add'](_0x53e27c);}}for(const [_0x3d3391,_0x102e8a]of this['_trackedElements'])'$graveyard'===_0x102e8a['root']['rootName']&&_0x2fde06['add'](_0x3d3391);for(const _0x2f950b of _0x2fde06)this['_trackedElements']['delete'](_0x2f950b);for(const [_0x53882f,_0x30d600]of _0x362acb)this['_trackedElements']['set'](_0x53882f,_0x30d600[_0x30d600['length']-0x1]);const _0x254d5d=new Set();for(const [_0x597d89,_0x391220]of _0x362acb)_0x2fde06['has'](_0x597d89)&&(_0x254d5d['add'](_0x391220[0x0]),_0x391220['length']>0x1?_0x362acb['set'](_0x597d89,_0x391220['slice'](0x1)):_0x362acb['delete'](_0x597d89),_0x2fde06['delete'](_0x597d89));return{'removed':Array['from'](_0x2fde06),'inserted':Array['from'](_0x362acb['values']())['flat'](),'moved':Array['from'](_0x254d5d)};}}class f extends _0x1710cd{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57f5c5){super(_0x57f5c5),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1e2cf8=>_0x1e2cf8['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2d8ff4=>_0x2d8ff4['getAttribute']('footnoteId')});}['init'](){const {editor:_0x733764}=this,{model:_0x41e2d4,data:_0x1765a7}=_0x733764;_0x41e2d4['document']['registerPostFixer'](_0x32ef36=>{const _0x49e61e=_0x41e2d4['document']['differ']['getChanges']();let _0x5a9631=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x32ef36,_0x49e61e)&&(_0x5a9631=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x32ef36,_0x49e61e)&&(_0x5a9631=!0x0),this['_handleFootnoteReferencesChanges'](_0x32ef36,_0x49e61e)&&(_0x5a9631=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x32ef36)&&(_0x5a9631=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x32ef36)&&(_0x5a9631=!0x0),this['_sortFootnoteDefinitions'](_0x32ef36)&&(_0x5a9631=!0x0),_0x5a9631;}),this['listenTo'](_0x41e2d4['document'],'change:data',()=>{_0x41e2d4['enqueueChange']({'isUndoable':!0x1},_0x194ca6=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x194ca6);});},{'priority':'low'}),this['listenTo'](_0x1765a7,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x21eb48){return this['_footnotes']['find'](_0x5a9b30=>_0x5a9b30['id']===_0x21eb48)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x500c00){this['_footnoteFormatter']=_0x500c00;}['_updateFootnotesCounters'](_0x16e87f,_0x5bbf39=0x0){let _0x4c180e=!0x1;for(let _0x59ce6d=_0x5bbf39;_0x59ce6d<this['_footnotes']['length'];_0x59ce6d++)this['_updateFootnoteRefCounter'](_0x16e87f,_0x59ce6d)&&(_0x4c180e=!0x0);return _0x4c180e;}['_insertEmptyFootnotesDefinitionsContainer'](_0x499614,_0x5ee986){const _0x213cb3=_0x499614['createElement']('footnotesDefinitions',{});return _0x499614['append'](_0x213cb3,_0x5ee986),this['_footnotesDefinitions']=_0x213cb3,_0x213cb3;}['_ensureFootnotesDefinitionsContainerExists'](_0x3b93ff){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x25de09=this['_footnotes'][0x0]['reference']['root'],_0x36e71f=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3b93ff,_0x25de09);for(const _0x5723e2 of this['_footnotes'])_0x5723e2['definition']['parent']||_0x3b93ff['insert'](_0x5723e2['definition'],_0x36e71f,'end');this['_updateFootnotesCounters'](_0x3b93ff);}['_handleFootnotesDefinitionsObjectChanges'](_0x31fb84,_0x50f64f){let _0x7c81fe=!0x1;const {inserted:_0xb61a5a,removed:_0x128283,moved:_0x3e1efb}=this['_footnoteDefsContainerTracker']['getChanges'](_0x50f64f);if(_0x3e1efb['length']&&(this['_footnotesDefinitions']=_0x3e1efb[0x0]),_0xb61a5a['length']){if(_0xb61a5a['length']>0x1||this['_footnotesDefinitions']&&_0xb61a5a['some'](_0x75e7d8=>_0x75e7d8!==this['_footnotesDefinitions'])){const _0x320a6e=_0x31fb84['createElement']('footnotesDefinitions',{}),_0x505366=[];this['_footnotesDefinitions']&&_0x505366['push'](this['_footnotesDefinitions']),_0x505366['push'](..._0xb61a5a),_0x31fb84['insert'](_0x320a6e,_0x505366[0x0],'before');for(const _0x59bb56 of _0x505366)_0x31fb84['move'](_0x31fb84['createRangeIn'](_0x59bb56),_0x31fb84['createPositionAt'](_0x320a6e,'end')),_0x31fb84['remove'](_0x59bb56);this['_footnotesDefinitions']=_0x320a6e,this['_updateFootnotesCounters'](_0x31fb84),_0x7c81fe=!0x0;}else this['_footnotesDefinitions']=_0xb61a5a[0x0];}if(_0x128283['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x591e5e of this['_footnotes'])_0x31fb84['remove'](_0x591e5e['reference']),_0x7c81fe=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x7c81fe;}['_handleFootnoteDefinitionsChanges'](_0x4089ed,_0x1a7717){let _0x4c6892=!0x1;const _0x40c82a=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xedbce4,moved:_0x8739d8}=this['_footnoteDefsTracker']['getChanges'](_0x1a7717);for(const _0x1cc598 of[..._0x8739d8,..._0xedbce4]){const _0x39fd46=_0x1cc598['getAttribute']('footnoteId'),_0x2200f6=this['getFootnote'](_0x39fd46);_0x2200f6&&(_0x2200f6['definition']=_0x1cc598),_(_0x4089ed,_0x40c82a,_0x1cc598)&&(_0x4c6892=!0x0);}return _0x4c6892;}['_handleFootnoteReferencesChanges'](_0x576f1a,_0x365db5){let _0x1d4b25=!0x1;const {removed:_0x4116a4,inserted:_0x242d72,moved:_0x238294}=this['_footnoteRefsTracker']['getChanges'](_0x365db5);for(const _0x51d591 of _0x4116a4)this['_handleRemoveFootnoteReferenceById'](_0x576f1a,_0x51d591)&&(_0x1d4b25=!0x0);for(const _0x7b8aea of _0x242d72)this['_handleInsertedFootnoteReference'](_0x576f1a,_0x7b8aea)&&(_0x1d4b25=!0x0);for(const _0x1d12ad of _0x238294)this['_handleMovedFootnoteReference'](_0x576f1a,_0x1d12ad)&&(_0x1d4b25=!0x0);return _0x1d4b25;}['_handleFootnotesDefinitionsObjectSync'](_0x1f7a68){if(!this['_footnotesDefinitions'])return!0x1;let _0x224d5d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1076f9=[];for(const _0x419e20 of this['_footnotesDefinitions']['getChildren']()){const _0x10a195=_0x419e20['getAttribute']('footnoteId');this['getFootnote'](_0x10a195)||(_0x1076f9['unshift'](_0x419e20),_0x224d5d=!0x0);}for(const _0x2231b8 of _0x1076f9)_0x1f7a68['remove'](_0x2231b8);}const _0x75f020=new Set(),_0x5a9080=[];for(const _0x4850cb of this['_footnotesDefinitions']['getChildren']()){const _0x40c338=_0x4850cb['getAttribute']('footnoteId');_0x75f020['has'](_0x40c338)?(_0x5a9080['unshift'](_0x4850cb),_0x224d5d=!0x0):_0x75f020['add'](_0x40c338);}for(const _0xdeb260 of _0x5a9080)_0x1f7a68['remove'](_0xdeb260);return this['_footnotesDefinitions']['childCount']||(_0x1f7a68['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x224d5d=!0x0),_0x224d5d;}['_handleInsertedFootnoteReference'](_0x6b764f,_0x4590fc){if(this['_footnotes']['find'](_0x467f43=>_0x467f43['reference']===_0x4590fc))return!0x1;let _0xdef314=!0x1;const _0x43d727=_0x4590fc['getAttribute']('footnoteId'),_0x104c94=this['_footnotes']['findIndex'](_0x411cd0=>_0x411cd0['id']===_0x43d727);-0x1!==_0x104c94&&(_0x6b764f['remove'](this['_footnotes'][_0x104c94]['reference']),this['_footnotes']['splice'](_0x104c94,0x1),_0xdef314=!0x0);let _0x245218=this['_footnotesDefinitions']?function(_0x1962f9,_0x55387a){for(const _0x3f5a4c of _0x1962f9['getChildren']())if(_0x3f5a4c['getAttribute']('footnoteId')===_0x55387a)return _0x3f5a4c;return null;}(this['_footnotesDefinitions'],_0x43d727):null;_0x245218||(_0x245218=_0x6b764f['createElement']('footnoteDefinition',{'footnoteId':_0x43d727}),this['_footnotesDefinitions']&&(_0x6b764f['insert'](_0x245218,this['_footnotesDefinitions'],'end'),_0xdef314=!0x0));const _0x2aebeb={'id':_0x43d727,'reference':_0x4590fc,'definition':_0x245218},_0x4e0ebe=I(this['editor']['model'],this['_footnotes'],_0x4590fc);this['_footnotes']['splice'](_0x4e0ebe,0x0,_0x2aebeb);let _0x371ecd=_0x4e0ebe;return-0x1!==_0x104c94&&(_0x371ecd=Math['min'](_0x4e0ebe,_0x104c94)),this['_updateFootnotesCounters'](_0x6b764f,_0x371ecd)&&(_0xdef314=!0x0),_0xdef314;}['_handleRemoveFootnoteReferenceById'](_0x14c123,_0x7ef54e){const _0xfa65e9=this['_footnotes']['findIndex'](_0x4de198=>_0x4de198['id']===_0x7ef54e);if(-0x1===_0xfa65e9)return!0x1;let _0xabf3ed=!0x1;const _0x5e0516=this['_footnotes'][_0xfa65e9];return'$graveyard'!==_0x5e0516['definition']['root']['rootName']&&(_0x14c123['remove'](_0x5e0516['definition']),_0xabf3ed=!0x0),this['_footnotes']['splice'](_0xfa65e9,0x1),this['_updateFootnotesCounters'](_0x14c123,_0xfa65e9)&&(_0xabf3ed=!0x0),_0xabf3ed;}['_handleMovedFootnoteReference'](_0x3209d1,_0x4e7da6){const _0x4e5064=_0x4e7da6['getAttribute']('footnoteId'),_0x489c59=this['_footnotes']['findIndex'](_0x1b40af=>_0x1b40af['id']===_0x4e5064),_0x5738f4=this['_footnotes'][_0x489c59];let _0x2c2168=!0x1;_0x5738f4['reference']=_0x4e7da6,this['_footnotes']['splice'](_0x489c59,0x1);const _0x3b58a3=I(this['editor']['model'],this['_footnotes'],_0x4e7da6);return this['_footnotes']['splice'](_0x3b58a3,0x0,_0x5738f4),this['_updateFootnotesCounters'](_0x3209d1,Math['min'](_0x489c59,_0x3b58a3))&&(_0x2c2168=!0x0),_0x2c2168;}['_updateFootnoteRefCounter'](_0x2786b3,_0x5cbacf){if(!this['_footnotesDefinitions'])return!0x1;const _0xb9f40a=this['_footnotes'][_0x5cbacf];let _0x239150;return _0x239150=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xb9f40a,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x5cbacf+0x1}):String(_0x5cbacf+0x1),_0xb9f40a['reference']['getAttribute']('footnoteCounter')!=_0x239150&&(_0x2786b3['setAttribute']('footnoteCounter',_0x239150,_0xb9f40a['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x20bc92){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x23aeb0,_0x1af5ee){if(_0x23aeb0['length']!==_0x1af5ee['length'])return!0x1;for(let _0x5a1a16=0x0;_0x5a1a16<_0x23aeb0['length'];_0x5a1a16++)if(_0x23aeb0[_0x5a1a16]!==_0x1af5ee[_0x5a1a16])return!0x1;return!0x0;}(this['_footnotes']['map'](_0xbdca83=>_0xbdca83['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x4363b6=>_0x4363b6['getAttribute']('footnoteId'))))return!0x1;let _0x4b0c10=!0x1;for(let _0x1f487d=0x0;_0x1f487d<this['_footnotes']['length'];_0x1f487d++){const _0x99a64d=this['_footnotes'][_0x1f487d],_0x1c7092=_0x20bc92['createPositionBefore'](_0x99a64d['definition']),_0x498996=_0x20bc92['createPositionAt'](this['_footnotesDefinitions'],_0x1f487d);_0x1c7092['isEqual'](_0x498996)||(_0x20bc92['move'](_0x20bc92['createRangeOn'](_0x99a64d['definition']),_0x498996),_0x4b0c10=!0x0);}return _0x4b0c10;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4e74db){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4bf359}=this['editor'];let _0x528f1b=!0x1;for(let _0x1c847b=0x0;_0x1c847b<this['_footnotes']['length']-0x1;_0x1c847b++){const _0x50abd8=this['_footnotes'][_0x1c847b],_0x39b276=this['_footnotes'][_0x1c847b+0x1],_0x56b595=_0x4bf359['createPositionBefore'](_0x50abd8['reference']),_0x42e973=_0x4bf359['createPositionBefore'](_0x39b276['reference']);'after'===_0x56b595['compareWith'](_0x42e973)&&(this['_handleMovedFootnoteReference'](_0x4e74db,_0x50abd8['reference']),_0x1c847b=-0x1,_0x528f1b=!0x0);}return _0x528f1b;}}function _(_0x4edb35,_0x33610d,_0x27da4d){if(_0x27da4d['childCount'])return!0x1;const _0x3606f8=_0x33610d?'paragraph':'footnoteInlineContent';return _0x4edb35['insert'](_0x4edb35['createElement'](_0x3606f8),_0x27da4d),!0x0;}function I(_0x17b871,_0x2b2d6b,_0x18811d){if(0x0===_0x2b2d6b['length'])return 0x0;const _0x44b791=_0x17b871['createPositionBefore'](_0x18811d);for(let _0x381f4d=0x0;_0x381f4d<_0x2b2d6b['length'];_0x381f4d++){const _0x871aad=_0x2b2d6b[_0x381f4d],_0x5287da=_0x17b871['createPositionBefore'](_0x871aad['reference']);if('before'===_0x44b791['compareWith'](_0x5287da))return _0x381f4d;}const _0x36168a=_0x18811d['root'];let _0x2d6659=-0x1;for(let _0x3b06b0=_0x2b2d6b['length']-0x1;_0x3b06b0>=0x0;_0x3b06b0--)if(_0x2b2d6b[_0x3b06b0]['reference']['root']===_0x36168a){_0x2d6659=_0x3b06b0;break;}if(-0x1!==_0x2d6659)return _0x2d6659+0x1;const _0x17fbac=_0x17b871['document']['getRootNames'](),_0x43f1ad=_0x17fbac['indexOf'](_0x36168a['rootName']),_0x498e09=_0x17fbac[_0x43f1ad+0x1];if(_0x498e09){for(let _0x1684c7=0x0;_0x1684c7<_0x2b2d6b['length'];_0x1684c7++)if(_0x2b2d6b[_0x1684c7]['reference']['root']['rootName']===_0x498e09)return _0x1684c7;}return _0x2b2d6b['length'];}class h extends _0x41eb48{['refresh'](){const _0x144d87=this['editor']['model']['document']['selection'],_0x44b917=this['_getPositionToInsertFootnote'](_0x144d87);this['isEnabled']=!!_0x44b917;}['execute'](_0x155ea7){const {editor:_0x5dcdfa}=this,{model:_0x437e56}=_0x5dcdfa,{selection:_0x4199ec}=_0x437e56['document'],_0x13e374=this['_getPositionToInsertFootnote'](_0x4199ec);if(!_0x13e374)return;const _0xcb181=_0x5dcdfa['plugins']['get']('FootnotesEditing'),_0x3d617c=_0x155ea7?.['footnoteId']??_0xbe9a79();!function(_0x4cfdbd){return'string'==typeof _0x4cfdbd&&_0x4cfdbd['length']>0x0&&!/\s/['test'](_0x4cfdbd)&&!/^\d/['test'](_0x4cfdbd);}(_0x3d617c)?_0x5c6277('insert-footnote-command-executed-with-invalid-id'):(_0x437e56['change'](_0x229060=>{const _0xf2c060=_0x229060['createElement']('footnoteRef',{'footnoteId':_0x3d617c});_0x437e56['insertObject'](_0xf2c060,_0x13e374,null);}),_0xcb181['_moveSelectionToFootnoteDefinition'](_0x3d617c));}['_getPositionToInsertFootnote'](_0x4f6225){const {model:_0xa4d6a1}=this['editor'],{schema:_0x416769}=_0xa4d6a1,_0x79e6c1=_0x4f6225['getFirstRange']();for(const _0x7679dd of _0x79e6c1['getItems']())if(_0x416769['isBlock'](_0x7679dd)||_0x416769['isObject'](_0x7679dd))return null;const _0x8bb83c=_0x79e6c1['end'];return _0x416769['checkChild'](_0x8bb83c,'footnoteRef')?_0x8bb83c:null;}}class r extends _0x1710cd{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5f2cd8}=this;_0x5f2cd8['config']['define']('footnotes.multiBlock',!0x0),_0x5f2cd8['commands']['add']('insertFootnote',new h(_0x5f2cd8)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x51d2bd){const _0x17950a=_0x2c9f35([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]),_0x3ee831=0x47a28506,_0x1147c6=0x47a5f9a6^_0x3ee831,_0x5f3367=window[_0x2c9f35([0x44,0x61,0x74,0x65])][_0x2c9f35([0x6e,0x6f,0x77])](),_0xd0f309=_0x51d2bd[_0x2c9f35([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30627a=new window[(_0x2c9f35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf33c5a=>{_0xd0f309[_0x2c9f35([0x6f,0x6e,0x63,0x65])](_0x2c9f35([0x72,0x65,0x61,0x64,0x79]),_0xf33c5a);}),_0x1c79ab={[_0x2c9f35([0x6b,0x74,0x79])]:_0x2c9f35([0x45,0x43]),[_0x2c9f35([0x75,0x73,0x65])]:_0x2c9f35([0x73,0x69,0x67]),[_0x2c9f35([0x63,0x72,0x76])]:_0x2c9f35([0x50,0x2d,0x32,0x35,0x36]),[_0x2c9f35([0x78])]:_0x2c9f35([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]),[_0x2c9f35([0x79])]:_0x2c9f35([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]),[_0x2c9f35([0x61,0x6c,0x67])]:_0x2c9f35([0x45,0x53,0x32,0x35,0x36])},_0x5bd5ef=_0xd0f309[_0x2c9f35([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c9f35([0x67,0x65,0x74])](_0x2c9f35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59cce5(){let _0x279820,_0x5382e3=null,_0x23ce29=null;try{if(_0x5bd5ef==_0x2c9f35([0x47,0x50,0x4c]))return _0x2c9f35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x279820=_0x4d0b1c(),!_0x279820)return _0x2c9f35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x279820[_0x2c9f35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23ce29=_0x40dc9b(_0x279820[_0x2c9f35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x279820[_0x2c9f35([0x6a,0x74,0x69])])),await _0x282c01()?_0x50b513()?_0x426410()?_0x2c9f35([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2870a2()?(_0x279820[_0x2c9f35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c9f35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5382e3=_0x198381(_0x2c9f35([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x279820[_0x2c9f35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c9f35([0x74,0x72,0x69,0x61,0x6c])&&(_0x5382e3=_0x198381(_0x2c9f35([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35157d()):_0x2c9f35([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c9f35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c9f35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c9f35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x426410(){const _0x4d96b1=[_0x2c9f35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c9f35([0x74,0x72,0x69,0x61,0x6c])][_0x2c9f35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279820[_0x2c9f35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f3367/0x3e8:0xe10*_0x1147c6;return _0x279820[_0x2c9f35([0x65,0x78,0x70])]<_0x4d96b1;}function _0x50b513(){const _0x4d3d06=_0x279820[_0x2c9f35([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d3d06&&(!!_0x4d3d06[_0x2c9f35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9f35([0x2a]))||!!_0x4d3d06[_0x2c9f35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9f35([0x46,0x4f,0x4f])));}function _0x2870a2(){const _0x4bf3a3=_0x279820[_0x2c9f35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4bf3a3||0x0==_0x4bf3a3[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x169ae9}=new URL(window[_0x2c9f35([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4bf3a3[_0x2c9f35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x169ae9))return!0x0;const _0x2ef932=_0x169ae9[_0x2c9f35([0x73,0x70,0x6c,0x69,0x74])](_0x2c9f35([0x2e]));return _0x4bf3a3[_0x2c9f35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52d1b7=>_0x52d1b7[_0x2c9f35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9f35([0x2a])))[_0x2c9f35([0x6d,0x61,0x70])](_0x8e2f2f=>_0x8e2f2f[_0x2c9f35([0x73,0x70,0x6c,0x69,0x74])](_0x2c9f35([0x2e])))[_0x2c9f35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x314a8c=>_0x314a8c[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ef932[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c9f35([0x6d,0x61,0x70])](_0x170731=>Array(_0x2ef932[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x170731[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c9f35([0x66,0x69,0x6c,0x6c])](_0x170731[0x0]===_0x2c9f35([0x2a])?_0x2c9f35([0x2a]):'')[_0x2c9f35([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x170731))[_0x2c9f35([0x73,0x6f,0x6d,0x65])](_0x2bc40d=>_0x2ef932[_0x2c9f35([0x65,0x76,0x65,0x72,0x79])]((_0x5bff03,_0x168925)=>_0x2bc40d[_0x168925]===_0x5bff03||_0x2bc40d[_0x168925]===_0x2c9f35([0x2a])));}function _0x35157d(){return _0x5382e3&&_0x23ce29?new window[(_0x2c9f35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2db561,_0x2ed6f2)=>{_0x5382e3[_0x2c9f35([0x74,0x68,0x65,0x6e])](_0x2db561,_0x2ed6f2),_0x23ce29[_0x2c9f35([0x74,0x68,0x65,0x6e])](_0x305cc5=>{_0x305cc5!=_0x2c9f35([0x56,0x61,0x6c,0x69,0x64])&&_0x2db561(_0x305cc5);},_0x2ed6f2);}):_0x5382e3||_0x23ce29||_0x2c9f35([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40dc9b(_0x39e939,_0xebeeb7){return new window[(_0x2c9f35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38cf3d=>{if(_0x2926ac())return _0x38cf3d(_0x2c9f35([0x56,0x61,0x6c,0x69,0x64]));_0x26224a(),_0xd0f309[_0x2c9f35([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c9f35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a1e18=!0x1;const _0xa7afe0=_0xbe9a79();function _0x57e305(_0x41c547){return!!_0x41c547&&(typeof _0x41c547===_0x2c9f35([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41c547===_0x2c9f35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41c547[_0x2c9f35([0x74,0x68,0x65,0x6e])]===_0x2c9f35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41c547[_0x2c9f35([0x63,0x61,0x74,0x63,0x68])]===_0x2c9f35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cd57b(_0x51c30f){_0x38350a(_0x51c30f)[_0x2c9f35([0x74,0x68,0x65,0x6e])](_0x251f4e=>{if(!_0x251f4e||_0x251f4e[_0x2c9f35([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c9f35([0x6f,0x6b]))return _0x2c9f35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x457f73(_0x2a0ac2(_0xa7afe0+_0xebeeb7))!=_0x251f4e[_0x2c9f35([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c9f35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c9f35([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c9f35([0x74,0x68,0x65,0x6e])](_0x595289=>(_0x3f4f99(),_0x595289),()=>{const _0x624cbe=_0x38385c();return null==_0x624cbe?(_0x3f4f99(),_0x2c9f35([0x56,0x61,0x6c,0x69,0x64])):_0x2c9f35(_0x5f3367-_0x624cbe>(0x63ae0106^_0x3ee831)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c9f35([0x74,0x68,0x65,0x6e])](_0x38cf3d)[_0x2c9f35([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38cf3d(_0x2c9f35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3cca9a=0x47946b86^_0x3ee831;function _0x3f4f99(){const _0xaa85d4=_0x2c9f35([0x6c,0x6c,0x63,0x74,0x2d])+_0x457f73(_0x2a0ac2(_0x39e939)),_0x595185=_0x3b54fc(_0x457f73(window[_0x2c9f35([0x4d,0x61,0x74,0x68])][_0x2c9f35([0x63,0x65,0x69,0x6c])](_0x5f3367/_0x3cca9a)));window[_0x2c9f35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c9f35([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xaa85d4,_0x595185);}function _0x38385c(){const _0x499d94=_0x2c9f35([0x6c,0x6c,0x63,0x74,0x2d])+_0x457f73(_0x2a0ac2(_0x39e939)),_0x24c777=window[_0x2c9f35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c9f35([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x499d94);return _0x24c777?window[_0x2c9f35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b54fc(_0x24c777),0x10)*_0x3cca9a:null;}function _0x38350a(_0x1d235d){return new window[(_0x2c9f35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x207ee9,_0x4b2cf6)=>{_0x1d235d[_0x2c9f35([0x74,0x68,0x65,0x6e])](_0x207ee9,_0x4b2cf6),window[_0x2c9f35([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b2cf6,0x47a351c6^_0x3ee831);});}}_0xd0f309[_0x2c9f35([0x6f,0x6e])](_0x2c9f35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b4a4d,_0xc45d7a)=>{if(_0xc45d7a[0x0]!=_0x39e939)return _0x38cf3d(_0x2c9f35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc45d7a[0x1]={..._0xc45d7a[0x1],[_0x2c9f35([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa7afe0};},{[_0x2c9f35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c9f35([0x68,0x69,0x67,0x68])}),_0xd0f309[_0x2c9f35([0x6f,0x6e])](_0x2c9f35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b93c3=>{_0x57e305(_0x5b93c3[_0x2c9f35([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a1e18=!0x0,_0x2cd57b(_0x5b93c3[_0x2c9f35([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c9f35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c9f35([0x6c,0x6f,0x77])}),_0x30627a[_0x2c9f35([0x74,0x68,0x65,0x6e])](()=>{_0x5a1e18||_0x38cf3d(_0x2c9f35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2926ac(){return _0xd0f309[_0x2c9f35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9f35([0x76,0x69,0x65,0x77])][_0x2c9f35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c9f35([0x61,0x75,0x74,0x6f]);}function _0x26224a(){_0xd0f309[_0x2c9f35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9f35([0x76,0x69,0x65,0x77])][_0x2c9f35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c9f35([0x61,0x75,0x74,0x6f]);}}function _0x198381(_0x49de7d){const _0x1f2769=[new window[(_0x2c9f35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a50b6=>setTimeout(_0x5a50b6,0x47abbbca^_0x3ee831)),_0x30627a[_0x2c9f35([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c9f35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46b12b=>{let _0x17fd63=0x0;_0xd0f309[_0x2c9f35([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9f35([0x6f,0x6e])](_0x2c9f35([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13170c,_0x4256aa)=>{_0x4256aa[0x0][_0x2c9f35([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17fd63++,_0x17fd63==(0x47a280ee^_0x3ee831)&&(_0x46b12b(),_0x13170c[_0x2c9f35([0x6f,0x66,0x66])]());});}))];return window[_0x2c9f35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c9f35([0x72,0x61,0x63,0x65])](_0x1f2769)[_0x2c9f35([0x74,0x68,0x65,0x6e])](()=>_0x49de7d);}async function _0x4b29f1(){await _0x30627a,_0xd0f309[_0x2c9f35([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9f35([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd50e15,_0xd0f309[_0x2c9f35([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9f35([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd50e15,_0xd0f309[_0x2c9f35([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c9f35([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32d96e(_0x3b8742){const _0x52038a=_0x44063a();_0xd0f309[_0x52038a]=_0x2c9f35([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b8742,_0x3b8742!=_0x2c9f35([0x56,0x61,0x6c,0x69,0x64])&&_0x4b29f1();}function _0x44063a(){const _0x26efff=window[_0x2c9f35([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c9f35([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c9f35([0x6e,0x6f,0x77])]())[_0x2c9f35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c9f35([0x2e]),'');let _0x9e3701=_0x2c9f35([0x75]);for(let _0x549d2f=0x0;_0x549d2f<_0x26efff[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x549d2f+=0x2){let _0x4c8fc0=window[_0x2c9f35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26efff[_0x2c9f35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x549d2f,_0x549d2f+0x2));_0x4c8fc0>=_0x17950a[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c8fc0-=_0x17950a[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9e3701+=_0x17950a[_0x4c8fc0];}return _0x9e3701;}function _0x4d0b1c(){const _0x37abfd=_0x5bd5ef[_0x2c9f35([0x73,0x70,0x6c,0x69,0x74])](_0x2c9f35([0x2e]));if(0x3!=_0x37abfd[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e7e89(_0x37abfd[0x1]);function _0x1e7e89(_0x29714c){const _0x45d62a=_0x90085d(_0x29714c);return _0x45d62a&&_0x3901cc()?_0x45d62a:null;function _0x3901cc(){const _0x565929=_0x45d62a[_0x2c9f35([0x6a,0x74,0x69])],_0x4bea9c=window[_0x2c9f35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x565929[_0x2c9f35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x565929[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x400b9d={..._0x45d62a,[_0x2c9f35([0x6a,0x74,0x69])]:_0x565929[_0x2c9f35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x565929[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x400b9d[_0x2c9f35([0x76,0x63])],_0x2a0ac2(_0x400b9d)==_0x4bea9c;}}}async function _0x282c01(){let _0x24e8ac=!0x0;try{const _0xfed56a=_0x5bd5ef[_0x2c9f35([0x73,0x70,0x6c,0x69,0x74])](_0x2c9f35([0x2e])),[_0x192e5a,_0x4f977d,_0x40db60]=_0xfed56a;return _0x1d3330(_0x192e5a),await _0x3e4946(_0x192e5a,_0x4f977d,_0x40db60),_0x24e8ac;}catch{return!0x1;}function _0x1d3330(_0x5bbec8){const _0x55a272=_0x90085d(_0x5bbec8);_0x55a272&&_0x55a272[_0x2c9f35([0x61,0x6c,0x67])]==_0x2c9f35([0x45,0x53,0x32,0x35,0x36])||(_0x24e8ac=!0x1);}async function _0x3e4946(_0xeb2989,_0x1b3d74,_0x3a3566){const _0x2c19ab=window[_0x2c9f35([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c9f35([0x66,0x72,0x6f,0x6d])](_0x5bc29e(_0x3a3566),_0xb00a2=>_0xb00a2[_0x2c9f35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x383ccd=new window[(_0x2c9f35([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c9f35([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeb2989+_0x2c9f35([0x2e])+_0x1b3d74),_0x1bb2b9=window[_0x2c9f35([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c9f35([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bb2b9)return;const _0x493d72=await _0x1bb2b9[_0x2c9f35([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c9f35([0x6a,0x77,0x6b]),_0x1c79ab,{[_0x2c9f35([0x6e,0x61,0x6d,0x65])]:_0x2c9f35([0x45,0x43,0x44,0x53,0x41]),[_0x2c9f35([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c9f35([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c9f35([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bb2b9[_0x2c9f35([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c9f35([0x6e,0x61,0x6d,0x65])]:_0x2c9f35([0x45,0x43,0x44,0x53,0x41]),[_0x2c9f35([0x68,0x61,0x73,0x68])]:{[_0x2c9f35([0x6e,0x61,0x6d,0x65])]:_0x2c9f35([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x493d72,_0x2c19ab,_0x383ccd)||(_0x24e8ac=!0x1);}}function _0x90085d(_0xd9472b){return _0xd9472b[_0x2c9f35([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c9f35([0x65,0x79]))?JSON[_0x2c9f35([0x70,0x61,0x72,0x73,0x65])](_0x5bc29e(_0xd9472b)):null;}function _0x5bc29e(_0x32de5c){return window[_0x2c9f35([0x61,0x74,0x6f,0x62])](_0x32de5c[_0x2c9f35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c9f35([0x2b]))[_0x2c9f35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c9f35([0x2f])));}function _0x2a0ac2(_0x5269b3){let _0x4a29c6=0x1505;function _0x11bf2e(_0x350cb5){for(let _0x2e63f6=0x0;_0x2e63f6<_0x350cb5[_0x2c9f35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e63f6++){const _0x252704=_0x350cb5[_0x2c9f35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e63f6);_0x4a29c6=(_0x4a29c6<<0x5)+_0x4a29c6+_0x252704,_0x4a29c6&=_0x4a29c6;}}function _0xf67b0(_0x40f546){Array[_0x2c9f35([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40f546)?_0x40f546[_0x2c9f35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf67b0):_0x40f546&&typeof _0x40f546==_0x2c9f35([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c9f35([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40f546)[_0x2c9f35([0x73,0x6f,0x72,0x74])]()[_0x2c9f35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31b7fa,_0x354a9d])=>{_0x11bf2e(_0x31b7fa),_0xf67b0(_0x354a9d);}):_0x11bf2e(window[_0x2c9f35([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40f546));}return _0xf67b0(_0x5269b3),_0x4a29c6>>>0x0;}function _0x457f73(_0x452e48){return _0x452e48[_0x2c9f35([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c9f35([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c9f35([0x30]));}function _0x3b54fc(_0x423a0a){return _0x423a0a[_0x2c9f35([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c9f35([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c9f35([0x6a,0x6f,0x69,0x6e])]('');}function _0xd50e15(){}function _0x2c9f35(_0xea9a7c){return _0xea9a7c['map'](_0x4bf6ac=>String['fromCharCode'](_0x4bf6ac))['join']('');}_0x32d96e(await _0x59cce5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x137c29){const {plugins:_0x5a6209,editing:_0x241e65,model:_0xd1560f}=this['editor'],_0xbe7961=_0x5a6209['get'](f)['getFootnote'](_0x137c29);return!!_0xbe7961&&(_0xd1560f['change'](_0x5cc5fc=>{_0x5cc5fc['setSelection'](_0x5cc5fc['createPositionAt'](_0xbe7961['definition'],'end'));}),_0x241e65['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x19f7c7){const {plugins:_0x54e674,editing:_0x2d781a,model:_0x1d3c0d}=this['editor'],_0x49a7bb=_0x54e674['get'](f)['getFootnote'](_0x19f7c7);return!!_0x49a7bb&&(_0x1d3c0d['change'](_0x58b214=>{_0x58b214['setSelection'](_0x49a7bb['reference'],'on');}),_0x2d781a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x410286}=this['editor']['model'],_0x4d3d39=this['editor']['config']['get']('footnotes.multiBlock');_0x410286['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x410286['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x410286['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4d3d39?_0x410286['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x410286['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x410286['addChildCheck'](_0x3ca512=>{for(const _0x34b780 of _0x3ca512)if('footnoteDefinition'===_0x34b780['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x755e51}=this,{conversion:_0x37bd88,editing:_0xdaa544}=_0x755e51,{t:t}=_0x755e51['locale'];_0x37bd88['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2bc922,{writer:_0x12e2e1,consumable:_0x5ef522})=>{const _0x19f30c=_0x2bc922['getChild'](0x0);if(!_0x19f30c||!_0x19f30c['is']('element','a'))return null;const _0x24c5b2=_0x19f30c['getAttribute']('href')||'';if(!_0x24c5b2['startsWith']('#'))return null;const _0x114c7b=_0x24c5b2['replace'](/^#/,'');if(!_0x114c7b)return null;_0x5ef522['consume'](_0x19f30c,{'name':!0x0,'attributes':['href']});for(const {item:_0x4aa773}of _0xdaa544['view']['createRangeIn'](_0x19f30c))_0x4aa773['is']('$textProxy')?_0x5ef522['consume'](_0x4aa773['textNode'],{'name':!0x0}):_0x4aa773['is']('element')&&_0x5ef522['consume'](_0x4aa773,{'name':!0x0});return _0x12e2e1['createElement']('footnoteRef',{'footnoteId':_0x114c7b});}}),_0x37bd88['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x20858e,{writer:_0x1aa98a})=>b(_0x20858e,_0x1aa98a)}),_0x37bd88['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x28320a,{writer:_0x3aa6f4})=>{const _0x5aba0d=_0x28320a['getAttribute']('footnoteCounter');return _0x3df5a3(b(_0x28320a,_0x3aa6f4),_0x3aa6f4,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5aba0d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c8d96}=this,{t:t}=_0x4c8d96['locale'],{conversion:_0x35d0be}=_0x4c8d96;_0x35d0be['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x35d0be['for']('upcast')['add'](_0x1384e3=>{_0x1384e3['on']('element:ol',(_0x317820,_0x1f4ade,_0x532733)=>{const _0x66539a=_0x1f4ade['viewItem'];if(!_0x66539a['hasClass']('footnotes-list')||!_0x1f4ade['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x532733['consumable']['consume'](_0x66539a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5ee861,modelCursor:_0xe2a26e}=_0x532733['convertChildren'](_0x1f4ade['viewItem'],_0x1f4ade['modelCursor']);_0x1f4ade['modelRange']=_0x5ee861,_0x1f4ade['modelCursor']=_0xe2a26e;}),_0x1384e3['on']('element:hr',(_0x23bec9,_0x1ca153,_0x3e58c8)=>{const _0x1766f5=_0x1ca153['viewItem'];_0x1766f5['hasClass']('footnotes-divider')&&_0x1ca153['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3e58c8['consumable']['consume'](_0x1766f5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x35d0be['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5814c9,{writer:_0x12e84d})=>D(_0x12e84d)}),_0x35d0be['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x138d77,{writer:_0x3e1170})=>{const _0x2bde6f=D(_0x3e1170,{'data-footnotes-list-label':t('Footnotes')}),_0x34f3e9=_0x3df5a3(_0x2bde6f,_0x3e1170,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3e1170['setCustomProperty']('footnotesDefinitions',!0x0,_0x34f3e9),_0x34f3e9;}});}['_defineDefinitionConverters'](){const {editor:_0x3c71b8}=this,{conversion:_0x5618d0,locale:_0x36f424}=_0x3c71b8,_0x409716=_0x3c71b8['config']['get']('footnotes.multiBlock');_0x5618d0['for']('upcast')['add'](_0x29294e=>{_0x29294e['on']('element:li',(_0x41298c,_0x105ffb,_0x22f984)=>{const _0xe5ca0c=_0x105ffb['viewItem'];if(!_0xe5ca0c['hasClass']('footnote-definition')||!_0xe5ca0c['getAttribute']('id'))return;const _0x4b90c9=_0xe5ca0c['parent'];if(!_0x4b90c9['is']('element','ol')||!_0x4b90c9['hasClass']('footnotes-list'))return;if(!_0x22f984['consumable']['test'](_0xe5ca0c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x214d62=_0x22f984['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xe5ca0c['getAttribute']('id')});if(!_0x22f984['safeInsert'](_0x214d62,_0x105ffb['modelCursor']))return;_0x22f984['consumable']['consume'](_0xe5ca0c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x52c0a8=Array['from'](_0xe5ca0c['getChildren']())['find'](_0x51b620=>_0x51b620['is']('element')&&_0x51b620['hasClass']('footnote-content'));for(const _0x25c162 of _0xe5ca0c['getChildren']())_0x25c162['is']('element')&&(_0x22f984['consumable']['consume'](_0x25c162,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x22f984['consumable']['consume'](_0x25c162,{'name':!0x0,'classes':'footnote-content'}));if(_0x52c0a8){if(_0x409716)_0x22f984['convertChildren'](_0x52c0a8,_0x214d62);else{const _0x2247e7=_0x22f984['writer']['createElement']('footnoteInlineContent');_0x22f984['writer']['insert'](_0x2247e7,_0x214d62),_0x22f984['convertChildren'](_0x52c0a8,_0x2247e7);}}_0x22f984['updateConversionResult'](_0x214d62,_0x105ffb);});}),_0x5618d0['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1cfafc,{writer:_0x49371d})=>y(_0x1cfafc,_0x49371d,_0x36f424,{'dataPipeline':!0x0})}),_0x5618d0['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1696ec,{writer:_0xb73c00})=>y(_0x1696ec,_0xb73c00,_0x36f424)});}['_defineBogusParagraphConverters'](){const {editor:_0x1f40b7}=this,{conversion:_0x324c4f}=_0x1f40b7;_0x1f40b7['config']['get']('footnotes.multiBlock')?(_0x324c4f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x324c4f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1f40b7['model']['document'],'change:data',()=>{!function(_0x3c1b1f,_0x10194c){const _0x9214ef=_0x3c1b1f['document']['differ'],_0x55b4a9=new Set();for(const _0x2b0392 of _0x9214ef['getChanges']()){const _0x3b56fc='attribute'==_0x2b0392['type']?_0x2b0392['range']['start']['parent']:_0x2b0392['position']['parent'];_0x3b56fc['is']('element','footnoteDefinition')&&_0x55b4a9['add'](_0x3b56fc);}for(const _0x3f0d17 of _0x55b4a9['values']()){const _0x422483=Array['from'](_0x3f0d17['getChildren']())['filter'](_0x4be618=>v(_0x4be618,_0x10194c['mapper']));for(const _0x3128aa of _0x422483)_0x10194c['reconvertItem'](_0x3128aa);}}(_0x1f40b7['model'],_0x1f40b7['editing']);})):(_0x324c4f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x324c4f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2be59e,{writer:_0x3f9fa6})=>{const _0x54d023=_0x3f9fa6['createContainerElement']('span');return _0x3f9fa6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x54d023),_0x54d023;}}));}['_defineKeyboardHandlers'](){const {editor:_0x388aa0}=this,{editing:_0x4a27a2,t:t}=_0x388aa0,_0x47f784=_0x388aa0['model']['document']['selection'];_0x388aa0['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x388aa0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4a27a2['view']['document'],'enter',(_0x1036c5,_0x41146a)=>{const _0x1c3711=function(_0xe15234){const _0x55874e=_0xe15234['getSelectedElement']();if(_0x55874e?.['is']('element','footnoteRef'))return _0x55874e;return null;}(_0x47f784);if(_0x1c3711){const _0x3b7feb=_0x1c3711['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3b7feb),_0x41146a['preventDefault'](),_0x1036c5['stop']();}},{'context':_0x3a4250});}['_defineClickHandlers'](){const {editor:_0x3f436f}=this,{editing:_0x391243}=_0x3f436f;_0x3f436f['editing']['view']['addObserver'](_0x3d6e46),_0x3f436f['editing']['view']['addObserver'](_0x1ac324);let _0x8de2b=!0x1;this['listenTo'](_0x391243['view']['document'],'pointerdown',(_0x51c794,_0x8f2af9)=>{const {target:_0x3ccf95}=_0x8f2af9,_0x2b78e0=_0x391243['view']['document']['selection'];_0x8de2b=!!(_0x3ccf95?.['is']('element','a')&&_0x3ccf95['parent']?.['is']('element','sup')&&_0x3ccf95['parent']['hasClass']('footnote'))&&_0x2b78e0['getSelectedElement']()===_0x3ccf95['parent'];},{'priority':'high'}),this['listenTo'](_0x391243['view']['document'],'click',(_0x539b9d,_0x2fe288)=>{const {target:_0x276c4b}=_0x2fe288;if(!_0x276c4b?.['is']('element','a'))return;if(_0x276c4b['parent']?.['is']('element','sup')&&_0x276c4b['parent']['hasClass']('footnote')&&!_0x8de2b)return void _0x2fe288['preventDefault']();let _0x2f3c50=_0x276c4b['getAttribute']('href');if(!_0x2f3c50?.['startsWith']('#'))return;_0x2f3c50=_0x2f3c50['slice'](0x1);let _0x222234=!0x1;(_0x2f3c50['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2f3c50['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2f3c50))&&(_0x222234=!0x0),_0x222234&&(_0x2fe288['preventDefault'](),_0x539b9d['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x4b1a9b}={}){return(_0xecdb09,{writer:_0x253ff7})=>{if(!g(_0xecdb09))return null;if(!_0x4b1a9b)return _0x253ff7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x21a8b7=_0x253ff7['createContainerElement']('p');return _0x253ff7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x21a8b7),_0x21a8b7;};}function g(_0x43097d){const {parent:_0x270944}=_0x43097d;if(!_0x270944?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x270944['childCount'])return!0x1;for(const _0x2bc5dd of _0x43097d['getAttributeKeys']())if(!_0x2bc5dd['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2bc5dd)return!0x1;return!0x0;}function v(_0x3fb5a7,_0x5da6bb){if(!_0x3fb5a7['is']('element','paragraph'))return!0x1;const _0xed199=_0x5da6bb['toViewElement'](_0x3fb5a7);return!!_0xed199&&g(_0x3fb5a7)!==_0xed199['is']('element','span');}function Q(_0x4c1db8){return _0x3a4250(_0x4c1db8)&&_0x4c1db8['is']('containerElement')&&!!_0x4c1db8['getCustomProperty']('footnotesDefinitions');}function D(_0x33ab7d,_0x148035={}){const _0x4e68f0=_0x33ab7d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xbf0f1=_0x33ab7d['createContainerElement']('ol',{'class':'footnotes-list'},_0x33ab7d['createSlot']());return _0x33ab7d['createContainerElement']('div',{'class':'footnotes',..._0x148035},[_0x4e68f0,_0xbf0f1]);}function b(_0x49e4d0,_0x1e237a){const _0x21d629=_0x49e4d0['getAttribute']('footnoteId'),_0x1ca711=_0x49e4d0['getAttribute']('footnoteCounter'),_0x587038=_0x1e237a['createUIElement']('a',{'href':'#'+_0x21d629},function(_0x146872){const _0x12bf73=this['toDomElement'](_0x146872);return _0x12bf73['textContent']=_0x1ca711,_0x12bf73;}),_0x3ae91a=_0x1e237a['createContainerElement']('sup',{'id':'ref-'+_0x21d629,'class':'footnote'},[_0x587038]);return _0x3ae91a['getFillerOffset']=()=>null,_0x3ae91a;}function y(_0x328d4c,_0x56b100,_0x2abf28,{dataPipeline:_0x35a600}={}){const {t:t}=_0x2abf28,_0x2fef6d=_0x328d4c['getAttribute']('footnoteId'),_0x5368ba=_0x56b100['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2fef6d},function(_0x1d6271){const _0x538bce=this['toDomElement'](_0x1d6271);return _0x538bce['innerText']='^',_0x538bce;}),_0x3aca08=_0x35a600?_0x56b100['createContainerElement']('div',{'class':'footnote-content'}):_0x3698cf(_0x56b100['createEditableElement']('div',{'class':'footnote-content'}),_0x56b100,{'label':t('Footnote\x20content.')});return _0x56b100['insert'](_0x56b100['createPositionAt'](_0x3aca08,0x0),_0x56b100['createSlot']()),_0x56b100['createContainerElement']('li',{'class':'footnote-definition','id':_0x2fef6d},[_0x5368ba,_0x3aca08]);}class e extends _0x1710cd{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x221a8b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x36bef8}=this,{plugins:_0x3faa99,model:_0x165c25}=_0x36bef8,_0xf6c8d0=_0x3faa99['get'](_0x221a8b),_0x58c817=_0x3faa99['get'](f);this['listenTo'](_0xf6c8d0,'outputTransformation',(_0x3a24ef,_0x479e81)=>{const _0x50e66d=l(_0x165c25['createRangeIn'](_0x479e81['content']));if(!_0x50e66d['length'])return;const _0x49eab8=_0x58c817['getFootnotes'](),_0x59161b=_0x50e66d['reduce']((_0x3888e0,_0x2d8fad)=>{const _0x57aad3=_0x49eab8['find'](_0x2b8664=>_0x2b8664['id']===_0x2d8fad);if(_0x57aad3){const _0x2c567e=_0x36bef8['data']['toView'](_0x57aad3['definition'],{'isClipboardPipeline':!0x0}),_0x133987=_0x36bef8['data']['htmlProcessor']['toData'](_0x2c567e);_0x3888e0[_0x57aad3['id']]=_0x133987;}return _0x3888e0;},Object['create'](null));_0x479e81['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x59161b));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x59569e}=this,{model:_0x10d4ec,plugins:_0x342ed3}=_0x59569e,{view:_0x169d21}=_0x59569e['editing'],_0x1d79ae=_0x342ed3['get'](_0x221a8b),_0x5dc75a=_0x342ed3['get'](f),_0x1d9821=_0x59569e['config']['get']('footnotes.multiBlock');let _0x499575=null;this['listenTo'](_0x169d21['document'],'clipboardInput',(_0x696216,_0x22082a)=>{const _0x2948b1=_0x22082a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x499575=_0x2948b1?JSON['parse'](_0x2948b1):null;}),this['listenTo'](_0x1d79ae,'contentInsertion',(_0x2fed72,_0x161b41)=>{const _0x48e1a6=_0x161b41['sourceEditorId']===this['editor']['id'];_0x48e1a6&&'drop'===_0x161b41['method']||_0x10d4ec['change'](_0x548203=>{let _0x20c180=_0x5dc75a['getFootnotesDefinitionsObjectElement']();const _0x30934d=!!_0x20c180&&Array['from'](_0x10d4ec['document']['selection']['getSelectedBlocks']())['includes'](_0x20c180);if(!_0x499575&&function(_0x4d06aa){for(const {item:_0x188f68}of _0x4d06aa)if(_0x188f68['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x10d4ec['createRangeIn'](_0x161b41['content']))&&(_0x499575=function(_0x483c2d,_0xb4567c){const _0x416196=c(_0x483c2d,_0xb4567c);if(!_0x416196)return null;const _0x1c13a2=Object['create'](null);for(const _0x3591c1 of _0x416196['getChildren']())_0x3591c1['is']('element','footnoteDefinition')&&_0x3591c1['hasAttribute']('footnoteId')&&(_0x1c13a2[_0x3591c1['getAttribute']('footnoteId')]=_0x483c2d['cloneElement'](_0x3591c1,!0x0));return Object['keys'](_0x1c13a2)['length']?_0x1c13a2:null;}(_0x548203,_0x161b41['content'])),(_0x20c180&&!_0x30934d||!_0x20c180&&!_0x499575)&&function(_0x50ca54,_0x3fa73a){const _0x32ded8=[];for(const {item:_0x5ed223}of _0x50ca54['createRangeIn'](_0x3fa73a))_0x5ed223['is']('element','footnotesDefinitions')&&_0x32ded8['push'](_0x5ed223);for(const _0x2a8e70 of _0x32ded8)_0x50ca54['remove'](_0x2a8e70);}(_0x548203,_0x161b41['content']),!_0x499575)return;const {selection:_0x5e3aaf}=_0x10d4ec['document'],_0x2bd9a7=_0x5e3aaf['getFirstRange']()['root'];_0x20c180&&!_0x30934d||(_0x20c180=c(_0x548203,_0x161b41['content']),_0x20c180||=_0x5dc75a['_insertEmptyFootnotesDefinitionsContainer'](_0x548203,_0x2bd9a7));const _0xef0140=Array['from'](_0x5e3aaf['getRanges']())['flatMap'](l),_0x366513=function(_0x273113,_0x301b37,_0x3cacdb){const _0x126b45=Object['create'](null);for(const {item:_0xe17077}of _0x273113['createRangeIn'](_0x301b37))if(_0xe17077['is']('element','footnoteRef')){const _0x83ba86=_0xe17077['getAttribute']('footnoteId');if(!_0x3cacdb(_0x83ba86))continue;_0x126b45[_0x83ba86]||(_0x126b45[_0x83ba86]=_0xbe9a79()),_0x273113['setAttribute']('footnoteId',_0x126b45[_0x83ba86],_0xe17077);}return _0x126b45;}(_0x548203,_0x161b41['content'],_0xaff233=>{if(!_0x48e1a6)return!0x0;return!!_0x5dc75a['getFootnote'](_0xaff233)&&!_0xef0140['includes'](_0xaff233);});for(const [_0x13fd0a,_0x176186]of Object['entries'](_0x499575)){const _0x7b9c13=_0x366513[_0x13fd0a]||_0x13fd0a;let _0x4fcb46;if('string'!=typeof _0x176186)_0x4fcb46=_0x176186,_0x7b9c13!==_0x13fd0a&&_0x548203['setAttribute']('footnoteId',_0x7b9c13,_0x4fcb46);else{_0x4fcb46=_0x548203['createElement']('footnoteDefinition',{'footnoteId':_0x7b9c13});const _0x2f9635=_0x59569e['data']['htmlProcessor']['toView'](_0x176186);let _0xf0edeb;if(_0x1d9821)_0xf0edeb=_0x59569e['data']['toModel'](_0x2f9635,_0x4fcb46);else{_0xf0edeb=_0x548203['createElement']('footnoteInlineContent');const _0x511c00=_0x59569e['data']['toModel'](_0x2f9635,_0xf0edeb);_0x548203['insert'](_0x511c00,_0xf0edeb);}_0x548203['append'](_0xf0edeb,_0x4fcb46);}_0x548203['insert'](_0x4fcb46,_0x20c180,'end');}_0x499575=null;});});}}function c(_0x41470c,_0x51f54d){for(const {item:_0x10421c}of _0x41470c['createRangeIn'](_0x51f54d))if(_0x10421c['is']('element','footnotesDefinitions'))return _0x10421c;return null;}function l(_0x14ff38){const _0x22c101=new Set();for(const {item:_0x5a5246}of _0x14ff38)_0x5a5246['is']('element','footnoteRef')&&_0x22c101['add'](_0x5a5246['getAttribute']('footnoteId'));return Array['from'](_0x22c101);}class i extends _0x1710cd{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3815c8}=this,{componentFactory:_0x86914}=_0x3815c8['ui'];_0x86914['add']('insertFootnote',E(_0x3815c8,_0x350ac0)),_0x86914['add']('menuBar:insertFootnote',E(_0x3815c8,_0x5db380)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x432cd8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x243630;for(const _0x3bc2d6 in _0x432cd8){const _0x3e1192=_0x3bc2d6,_0x458ad1=_0x432cd8[_0x3e1192];if('footnotesLicenseKeyValid'==_0x458ad1||'footnotesLicenseKeyInvalid'==_0x458ad1||'footnotesLicenseKeyExpired'==_0x458ad1||'footnotesLicenseKeyDomainLimit'==_0x458ad1||'footnotesLicenseKeyNotAllowed'==_0x458ad1||'footnotesLicenseKeyEvaluationLimit'==_0x458ad1||'footnotesLicenseKeyTrialLimit'==_0x458ad1||'footnotesLicenseKeyUsageLimit'==_0x458ad1){delete _0x432cd8[_0x3e1192],_0x243630=_0x458ad1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x243630&&_0x432cd8['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x243630&&_0x432cd8['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x243630&&_0x432cd8['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x243630&&_0x432cd8['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x243630&&_0x432cd8['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x243630&&_0x432cd8['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x243630&&_0x432cd8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x430a36,_0x13dde5){const _0x5c0af5=_0x430a36['commands']['get']('insertFootnote');return _0x920b17=>{const {t:t}=_0x920b17,_0x3a3bd3=new _0x13dde5(_0x920b17),_0x4d63e9=_0x3a3bd3 instanceof _0x5db380;return _0x3a3bd3['bind']('isEnabled')['to'](_0x5c0af5,'isEnabled'),_0x3a3bd3['set']({'label':t(_0x4d63e9?'Footnote':'Insert\x20footnote'),'icon':_0x1d63ee,'tooltip':!0x0}),_0x3a3bd3['on']('execute',()=>{_0x5c0af5['execute'](),_0x430a36['editing']['view']['focus']();}),_0x3a3bd3;};}class lt extends _0x1710cd{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const ct=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x41eb48{['refresh'](){const {editor:_0x43c205}=this,_0x4b1de1=_0x43c205['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b1de1,this['value']=_0x4b1de1?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1e9bc5}){const {editor:_0x107826}=this,_0x458f48=_0x107826['plugins']['get'](f),_0x14e829=_0x458f48['getFootnotesDefinitionsObjectElement']();_0x14e829&&ct['includes'](_0x1e9bc5)&&_0x107826['model']['change'](_0x32faa7=>{_0x32faa7['setAttribute']('footnotesListStyle',_0x1e9bc5,_0x14e829),_0x458f48['_updateFootnotesCounters'](_0x32faa7);});}}class C extends _0x41eb48{['refresh'](){const {editor:_0x34e94e}=this,_0x531ec5=_0x34e94e['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x531ec5,this['value']=_0x531ec5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x38fefa}){const {editor:_0x1af5e8}=this,_0x55261a=_0x1af5e8['plugins']['get'](f),_0x5ccca6=_0x55261a['getFootnotesDefinitionsObjectElement']();_0x5ccca6&&Number['isInteger'](_0x38fefa)&&_0x1af5e8['model']['change'](_0x18a706=>{_0x18a706['setAttribute']('footnotesListStart',_0x38fefa,_0x5ccca6),_0x55261a['_updateFootnotesCounters'](_0x18a706);});}}class P extends _0x1710cd{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ed739}=this;_0x4ed739['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4ed739['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4ed739['commands']['add']('footnotesStyle',new S(_0x4ed739)),_0x4ed739['commands']['add']('footnotesStart',new C(_0x4ed739)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1cce16}=this,{schema:_0x1df04c}=_0x1cce16['model'];_0x1df04c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1b0788}=this,{conversion:_0x4c3c85,model:_0x447891}=_0x1b0788,{schema:_0x128a46}=_0x447891;_0x4c3c85['for']('upcast')['add'](_0x433740=>{_0x433740['on']('element:ol',(_0x531099,_0x5ee317,_0xb68a3a)=>{const _0x1ea698=_0x5ee317['viewItem'],_0x41c699=_0x5ee317['modelCursor']?.['parent'];_0x1ea698['hasClass']('footnotes-list')&&_0x41c699?.['is']('element','footnotesDefinitions')&&(function(_0x49a0d7,_0x15a5d8,_0x49bdfe,_0x59f240){if(!_0x59f240['checkAttribute'](_0x15a5d8,'footnotesListStart'))return;let _0x125e39=0x1;const _0x5ca455=_0x49bdfe['consumable']['consume'](_0x49a0d7,{'attributes':'start'});if(_0x5ca455){const _0x182f3d=Number['parseInt'](_0x49a0d7['getAttribute']('start'),0xa);Number['isNaN'](_0x182f3d)||(_0x125e39=_0x182f3d);}!_0x5ca455&&_0x15a5d8['hasAttribute']('footnotesListStart')||_0x49bdfe['writer']['setAttribute']('footnotesListStart',_0x125e39,_0x15a5d8);}(_0x1ea698,_0x41c699,_0xb68a3a,_0x128a46),function(_0x34700d,_0xdcbc19,_0x532840,_0x1e28b6){if(!_0x1e28b6['checkAttribute'](_0xdcbc19,'footnotesListStyle'))return;let _0x513923='decimal',_0xeae5da=!0x1;if(_0x532840['consumable']['consume'](_0x34700d,{'attributes':'type'})){const _0x522509={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x34700d['getAttribute']('type')];_0x522509&&(_0x513923=_0x522509),_0xeae5da=!0x0;}_0x532840['consumable']['consume'](_0x34700d,{'styles':'list-style-type'})&&(_0x513923=function(_0x451f49){switch(_0x451f49){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x451f49;}}(_0x34700d['getStyle']('list-style-type')),_0xeae5da=!0x0),!_0xeae5da&&_0xdcbc19['hasAttribute']('footnotesListStyle')||_0x532840['writer']['setAttribute']('footnotesListStyle',_0x513923,_0xdcbc19);}(_0x1ea698,_0x41c699,_0xb68a3a,_0x128a46));});}),_0x4c3c85['for']('downcast')['add'](_0x30c950=>{_0x30c950['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x265311,_0x21b3ce,_0x343557)=>{if(!_0x343557['consumable']['consume'](_0x21b3ce['item'],_0x265311['name']))return;const _0x39c419=M(_0x21b3ce['item'],_0x343557['mapper']),{attributeNewValue:_0x3663b5}=_0x21b3ce;null==_0x3663b5||0x1===_0x3663b5?_0x343557['writer']['removeAttribute']('start',_0x39c419):_0x343557['writer']['setAttribute']('start',String(_0x3663b5),_0x39c419);}),_0x30c950['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x8150f3,_0x4fc65a,_0xc7ec04)=>{if(!_0xc7ec04['consumable']['consume'](_0x4fc65a['item'],_0x8150f3['name']))return;const _0x51c398=M(_0x4fc65a['item'],_0xc7ec04['mapper']),{attributeNewValue:_0x27100f}=_0x4fc65a;_0x27100f&&'decimal'!==_0x27100f?_0xc7ec04['writer']['setStyle']('list-style-type',_0x27100f,_0x51c398):_0xc7ec04['writer']['removeStyle']('list-style-type',_0x51c398);});});}['_definePostfixer'](){const {editor:_0x462b90}=this,{model:_0x349fba}=_0x462b90,_0x2cda0c=_0x462b90['plugins']['get'](f),_0x3a70cb=this['_getDefaultListStyle'](),_0x10213c=this['_getDefaultStartIndex']();_0x349fba['document']['registerPostFixer'](_0xa39e7e=>{const _0xdb119d=_0x349fba['document']['differ']['getChanges']();let _0x3e9feb=!0x1;for(const _0x13b5c8 of _0xdb119d){if('insert'!==_0x13b5c8['type']||'$text'===_0x13b5c8['name'])continue;const _0x8a0eb9=_0x349fba['createRangeOn'](_0x13b5c8['position']['nodeAfter']);for(const _0x111434 of _0x8a0eb9['getItems']())_0x111434['is']('element','footnotesDefinitions')&&(!_0x111434['hasAttribute']('footnotesListStart')&&_0x349fba['schema']['checkAttribute'](_0x111434,'footnotesListStart')&&(_0xa39e7e['setAttribute']('footnotesListStart',_0x10213c,_0x111434),_0x3e9feb=!0x0),!_0x111434['hasAttribute']('footnotesListStyle')&&_0x349fba['schema']['checkAttribute'](_0x111434,'footnotesListStyle')&&(_0xa39e7e['setAttribute']('footnotesListStyle',_0x3a70cb,_0x111434),_0x3e9feb=!0x0));}return _0x3e9feb&&_0x2cda0c['_updateFootnotesCounters'](_0xa39e7e),_0x3e9feb;});}['_defineFormatter'](){const {editor:_0x1f4020}=this;_0x1f4020['plugins']['get'](f)['setFootnoteFormatter'](_0x1af2fe=>this['_formatFootnoteListValue'](_0x1af2fe));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4e9642,value:_0x17af91,digits:_0x39d320}){const _0xe8f3ab=_0x4e9642['getAttribute']('footnotesListStyle'),_0x56ec4b=_0x4e9642['getAttribute']('footnotesListStart'),_0x31138f=Math['floor'](_0x17af91)+(_0x56ec4b??0x1)-0x1;switch(_0xe8f3ab){case'decimal-leading-zero':return function(_0x4b962f,_0x361a72){return String(_0x4b962f)['padStart'](_0x361a72,'0');}(_0x31138f,Math['max'](0x2,_0x39d320));case'lower-alpha':case'lower-latin':return N(_0x31138f,!0x1);case'upper-alpha':case'upper-latin':return N(_0x31138f,!0x0);case'lower-roman':return X(_0x31138f,!0x1);case'upper-roman':return X(_0x31138f,!0x0);default:return String(_0x31138f);}}}function M(_0x4497e7,_0x164464){const _0xb23f0f=_0x164464['toViewElement'](_0x4497e7);return Array['from'](_0xb23f0f['getChildren']())['find'](_0x227c36=>_0x227c36['is']('element','ol')&&_0x227c36['hasClass']('footnotes-list'));}function N(_0x5f1b89,_0x358138){let _0x3c87c9='',_0x231585=_0x5f1b89;for(;_0x231585>0x0;){const _0x1b4386=(_0x231585-0x1)%0x1a;_0x3c87c9=String['fromCharCode'](0x61+_0x1b4386)+_0x3c87c9,_0x231585=Math['floor']((_0x231585-0x1)/0x1a);}return _0x358138?_0x3c87c9['toUpperCase']():_0x3c87c9;}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(_0x2bfe93,_0x3515a1){let _0x4177b2='',_0x16cd87=_0x2bfe93;for(const {value:_0x6a9a93,numeral:_0x34b9e0}of V)for(;_0x16cd87>=_0x6a9a93;)_0x4177b2+=_0x34b9e0,_0x16cd87-=_0x6a9a93;return _0x3515a1?_0x4177b2:_0x4177b2['toLowerCase']();}class J extends _0x1dd507{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x352e5d();['focusCycler'];constructor(_0xc17245,{styleButtonViews:_0xbe6099,styleGridAriaLabel:_0x12dfea}){super(_0xc17245),(this['focusCycler']=new _0x95ad87({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xbe6099,_0x12dfea),[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 _0x521da3 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x521da3['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 _0x1d7c76=_0x34bf95=>_0x34bf95['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1d7c76),this['keystrokes']['set']('arrowleft',_0x1d7c76),this['keystrokes']['set']('arrowup',_0x1d7c76),this['keystrokes']['set']('arrowdown',_0x1d7c76);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5b5cdd,_0x3f5930){const _0x15a33d=new _0x1dd507(this['locale']);return _0x15a33d['children']=_0x15a33d['createCollection'](),_0x15a33d['children']['addMany'](_0x5b5cdd),_0x15a33d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3f5930,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x15a33d['children']}),_0x15a33d['children']['delegate']('execute')['to'](this),_0x15a33d['focus']=function(){for(const _0xd8c2a of this['children'])if(_0xd8c2a instanceof _0x350ac0&&_0xd8c2a['isOn'])return void _0xd8c2a['focus']();this['children']['first']['focus']();},_0x15a33d['focusTracker']=new ot(),_0x15a33d['keystrokes']=new rt(),_0x15a33d['render'](),_0x15a33d['keystrokes']['listenTo'](_0x15a33d['element']),this['children']['add'](_0x15a33d),_0x15a33d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x31c431=this['_createStartIndexPropertyView'](),_0x53fbd0=[_0x31c431],_0x56825e=new st(this['locale'],_0x53fbd0);return _0x56825e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x56825e['buttonView']['bind']('isEnabled')['toMany'](_0x53fbd0,'isEnabled',(..._0x265d11)=>_0x265d11['some'](_0x2f6a21=>_0x2f6a21)),_0x56825e['buttonView']['on']('change:isEnabled',(_0x11f790,_0x4ba331,_0x5588a6)=>{_0x5588a6||(_0x56825e['isCollapsed']=!0x0);}),this['children']['add'](_0x56825e),[_0x31c431,_0x56825e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x53cf8d=new it(this['locale'],et);return _0x53cf8d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x53cf8d['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x53cf8d['fieldView']['on']('input',()=>{const _0x270750=_0x53cf8d['fieldView']['element'],_0x5886ae=_0x270750['valueAsNumber'];Number['isNaN'](_0x5886ae)?_0x53cf8d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x270750['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5886ae}):_0x53cf8d['errorText']=t(_0x5886ae<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x53cf8d;}}class j extends _0x1710cd{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4d686c,_0x3beff2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e67a8}=this,{componentFactory:_0x16e3cd}=_0x4e67a8['ui'];_0x4e67a8['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x16e3cd['add']('footnotesStyle',function(_0x62e84e){return _0x1f9ba6=>{const {t:t}=_0x1f9ba6,_0x5b4e10=_0x62e84e['commands']['get']('footnotesStyle'),_0x3702e6=_0x2ede11(_0x1f9ba6),{buttonView:_0x26cdcb}=_0x3702e6;return _0x3702e6['class']='ck-footnotes-styles-dropdown',_0x3702e6['bind']('isEnabled')['to'](_0x5b4e10,'isEnabled'),_0x26cdcb['set']({'label':t('Footnotes\x20style'),'icon':_0x1d63ee,'tooltip':!0x0}),_0x3702e6['once']('change:isOpen',()=>{const _0x34e527=function({editor:_0x1d7693,dropdownView:_0x444b3f}){const {t:t}=_0x1d7693['locale'],_0x24de99=t('Footnotes\x20definitions\x20styles'),_0x4a568f=function(_0x4e8769){const t=_0x4e8769['locale']['t'],_0x38aae9=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1f671c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x49efc3},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4f8c01},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x8c4f37},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2fb348},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5a7aff}];return _0x38aae9['map'](function(_0x47f9c0){const _0x17521=_0x47f9c0['locale'];return({label:_0x295156,icon:_0x1df331,tooltip:_0x389f57,style:_0x308e75})=>{const _0x40d879=_0x47f9c0['commands']['get']('footnotesStyle'),_0x553b96=new _0x350ac0(_0x17521);return _0x553b96['set']({'label':_0x295156,'icon':_0x1df331,'tooltip':_0x389f57}),_0x553b96['bind']('isOn')['to'](_0x40d879,'value',_0x5c58fb=>_0x5c58fb===_0x308e75),_0x553b96['bind']('isEnabled')['to'](_0x40d879,'isEnabled'),_0x553b96['on']('execute',()=>{_0x47f9c0['execute']('footnotesStyle',{'value':_0x308e75}),_0x47f9c0['editing']['view']['focus']();}),_0x553b96;};}(_0x4e8769));}(_0x1d7693),_0x318e51=new J(_0x1d7693['locale'],{'styleGridAriaLabel':_0x24de99,'styleButtonViews':_0x4a568f}),_0x5d3742=_0x1d7693['commands']['get']('footnotesStart');return _0x318e51['startIndexFieldView']['bind']('isEnabled')['to'](_0x5d3742),_0x318e51['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5d3742),_0x318e51['on']('footnotesListStart',(_0x46428a,_0x493235)=>{_0x1d7693['execute']('footnotesStart',{'value':_0x493235['startIndex']});}),_0x318e51['delegate']('execute')['to'](_0x444b3f),_0x318e51;}({'editor':_0x62e84e,'dropdownView':_0x3702e6});_0x3702e6['panelView']['children']['add'](_0x34e527);}),_0x3702e6;};}(_0x4e67a8));}['afterInit'](){const {editor:_0x55cb36}=this,{t:t}=_0x55cb36['locale'],_0x4804e8=_0x55cb36['plugins']['get'](_0x3beff2),{defaultPositions:_0x84eeb}=_0xdd54a5;_0x4804e8['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x55cb36['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4831f2=>{let _0x397926=_0x4831f2['getFirstPosition']()?.['parent'];return _0x397926?.['is']('$text')&&(_0x397926=_0x397926['parent']),_0x397926?.['is']('element')?_0x397926['findAncestor'](Q):null;},'positions':[_0x84eeb['southArrowNorth'],_0x84eeb['southArrowNorthMiddleWest'],_0x84eeb['southArrowNorthMiddleEast'],_0x84eeb['southArrowNorthWest'],_0x84eeb['southArrowNorthEast'],_0x84eeb['northArrowSouth'],_0x84eeb['northArrowSouthMiddleWest'],_0x84eeb['northArrowSouthMiddleEast'],_0x84eeb['northArrowSouthWest'],_0x84eeb['northArrowSouthEast'],_0x84eeb['viewportStickyNorth']]});}}class ft extends _0x1710cd{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251222.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-20251222.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251222.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251222.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251222.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251222.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251222.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251222.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251222.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15b9cf=_0x21b3;(function(_0x34880e,_0x38ff06){const _0x4b7bb5=_0x21b3,_0x1e52f3=_0x34880e();while(!![]){try{const _0x1acf1d=-parseInt(_0x4b7bb5(0x12e))/0x1*(-parseInt(_0x4b7bb5(0x131))/0x2)+-parseInt(_0x4b7bb5(0x11a))/0x3*(parseInt(_0x4b7bb5(0x134))/0x4)+-parseInt(_0x4b7bb5(0x112))/0x5+-parseInt(_0x4b7bb5(0x130))/0x6+parseInt(_0x4b7bb5(0x12a))/0x7+parseInt(_0x4b7bb5(0x12b))/0x8*(-parseInt(_0x4b7bb5(0x11f))/0x9)+parseInt(_0x4b7bb5(0x128))/0xa*(parseInt(_0x4b7bb5(0x113))/0xb);if(_0x1acf1d===_0x38ff06)break;else _0x1e52f3['push'](_0x1e52f3['shift']());}catch(_0x3d4c65){_0x1e52f3['push'](_0x1e52f3['shift']());}}}(_0x48ec,0xeaeb0));import{logWarning as _0x47472c,uid as _0x5ecf8c}from'ckeditor5/src/utils.js';import{Command as _0x193a10}from'ckeditor5/src/core.js';function _0x48ec(){const _0x3a9f27=['change','7263585ObxJRR','2871PxVvSC','getItems','footnoteId','_getPositionToInsertFootnote','selection','editor','createElement','1119522TatFJt','FootnotesEditing','execute','length','isObject','2762469VhMoFE','getFirstRange','checkChild','refresh','insert-footnote-command-executed-with-invalid-id','insertObject','plugins','end','footnoteRef','116140buYLxW','_moveSelectionToFootnoteDefinition','754383FjRfDd','8WtcfgK','isEnabled','isBlock','773417eaktsg','test','2665260YjOJGr','2SolYlr','get','model','8EIpCSr','document','string'];_0x48ec=function(){return _0x3a9f27;};return _0x48ec();}function _0x21b3(_0x50e1c4,_0x397114){const _0x48ec1e=_0x48ec();return _0x21b3=function(_0x21b397,_0x39aa62){_0x21b397=_0x21b397-0x10f;let _0x2f67e0=_0x48ec1e[_0x21b397];return _0x2f67e0;},_0x21b3(_0x50e1c4,_0x397114);}export class InsertFootnoteCommand extends _0x193a10{[_0x15b9cf(0x122)](){const _0x1e6129=_0x15b9cf,_0x26de3a=this[_0x1e6129(0x118)][_0x1e6129(0x133)][_0x1e6129(0x10f)][_0x1e6129(0x117)],_0x228f19=this[_0x1e6129(0x116)](_0x26de3a);this[_0x1e6129(0x12c)]=!!_0x228f19;}[_0x15b9cf(0x11c)](_0x11ca51){const _0x298919=_0x15b9cf,{editor:_0x46641b}=this,{model:_0x3eaa5a}=_0x46641b,{selection:_0xb9ac2c}=_0x3eaa5a[_0x298919(0x10f)],_0x5cab68=this[_0x298919(0x116)](_0xb9ac2c);if(!_0x5cab68)return;const _0x1df527=_0x46641b[_0x298919(0x125)][_0x298919(0x132)](_0x298919(0x11b)),_0x74f19c=_0x11ca51?.[_0x298919(0x115)]??_0x5ecf8c();!function(_0x4ef8ce){const _0x3eb16c=_0x298919;return _0x3eb16c(0x110)==typeof _0x4ef8ce&&_0x4ef8ce[_0x3eb16c(0x11d)]>0x0&&!/\s/[_0x3eb16c(0x12f)](_0x4ef8ce)&&!/^\d/[_0x3eb16c(0x12f)](_0x4ef8ce);}(_0x74f19c)?_0x47472c(_0x298919(0x123)):(_0x3eaa5a[_0x298919(0x111)](_0x2d0e51=>{const _0x12541b=_0x298919,_0x28422b=_0x2d0e51[_0x12541b(0x119)](_0x12541b(0x127),{'footnoteId':_0x74f19c});_0x3eaa5a[_0x12541b(0x124)](_0x28422b,_0x5cab68,null);}),_0x1df527[_0x298919(0x129)](_0x74f19c));}[_0x15b9cf(0x116)](_0x477152){const _0x1e7625=_0x15b9cf,{model:_0xc63963}=this[_0x1e7625(0x118)],{schema:_0x20c918}=_0xc63963,_0x5df0d2=_0x477152[_0x1e7625(0x120)]();for(const _0x396845 of _0x5df0d2[_0x1e7625(0x114)]())if(_0x20c918[_0x1e7625(0x12d)](_0x396845)||_0x20c918[_0x1e7625(0x11e)](_0x396845))return null;const _0x470353=_0x5df0d2[_0x1e7625(0x126)];return _0x20c918[_0x1e7625(0x121)](_0x470353,_0x1e7625(0x127))?_0x470353:null;}}
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4e8dc7}from'ckeditor5/src/core.js';import{isWidget as _0x5eeb14,toWidget as _0x343848,toWidgetEditable as _0xe96de1}from'ckeditor5/src/widget.js';import{uid as _0x10e963}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1bdd58,ClickObserver as _0x4d644d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x21f5d8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x84e82c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e8dc7{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x21f5d8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x288a46}=this;_0x288a46['config']['define']('footnotes.multiBlock',!0x0),_0x288a46['commands']['add']('insertFootnote',new _0x84e82c(_0x288a46)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x586641){const _0x4ff5f5=_0x585b71([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]),_0x2f4633=0x47a28506,_0x4619f8=0x47a5f98e^_0x2f4633,_0x18ef9e=window[_0x585b71([0x44,0x61,0x74,0x65])][_0x585b71([0x6e,0x6f,0x77])](),_0x4c91d6=_0x586641[_0x585b71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23c930=new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e77e=>{_0x4c91d6[_0x585b71([0x6f,0x6e,0x63,0x65])](_0x585b71([0x72,0x65,0x61,0x64,0x79]),_0x43e77e);}),_0x36a171={[_0x585b71([0x6b,0x74,0x79])]:_0x585b71([0x45,0x43]),[_0x585b71([0x75,0x73,0x65])]:_0x585b71([0x73,0x69,0x67]),[_0x585b71([0x63,0x72,0x76])]:_0x585b71([0x50,0x2d,0x32,0x35,0x36]),[_0x585b71([0x78])]:_0x585b71([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]),[_0x585b71([0x79])]:_0x585b71([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]),[_0x585b71([0x61,0x6c,0x67])]:_0x585b71([0x45,0x53,0x32,0x35,0x36])},_0xd3ea52=_0x4c91d6[_0x585b71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x585b71([0x67,0x65,0x74])](_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e036b(){let _0x2642f9,_0x479a4f=null,_0x3d787a=null;try{if(_0xd3ea52==_0x585b71([0x47,0x50,0x4c]))return _0x585b71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2642f9=_0x131b74(),!_0x2642f9)return _0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2642f9[_0x585b71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d787a=_0x425e16(_0x2642f9[_0x585b71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2642f9[_0x585b71([0x6a,0x74,0x69])])),await _0x407c54()?_0x3fedfb()?_0x47a2b6()?_0x585b71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1253fb()?(_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x479a4f=_0x13bebb(_0x585b71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b71([0x74,0x72,0x69,0x61,0x6c])&&(_0x479a4f=_0x13bebb(_0x585b71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b6e47()):_0x585b71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x585b71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47a2b6(){const _0x52b179=[_0x585b71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x585b71([0x74,0x72,0x69,0x61,0x6c])][_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18ef9e/0x3e8:0xe10*_0x4619f8;return _0x2642f9[_0x585b71([0x65,0x78,0x70])]<_0x52b179;}function _0x3fedfb(){const _0x351438=_0x2642f9[_0x585b71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x351438&&(!!_0x351438[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x2a]))||!!_0x351438[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x46,0x4f,0x4f])));}function _0x1253fb(){const _0x10b803=_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10b803||0x0==_0x10b803[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29d36c}=new URL(window[_0x585b71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10b803[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d36c))return!0x0;const _0x1ee901=_0x29d36c[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e]));return _0x10b803[_0x585b71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e9504=>_0x3e9504[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x2a])))[_0x585b71([0x6d,0x61,0x70])](_0x1e0bc4=>_0x1e0bc4[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e])))[_0x585b71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x107312=>_0x107312[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ee901[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b71([0x6d,0x61,0x70])](_0x29bf49=>Array(_0x1ee901[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29bf49[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b71([0x66,0x69,0x6c,0x6c])](_0x29bf49[0x0]===_0x585b71([0x2a])?_0x585b71([0x2a]):'')[_0x585b71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29bf49))[_0x585b71([0x73,0x6f,0x6d,0x65])](_0xec846e=>_0x1ee901[_0x585b71([0x65,0x76,0x65,0x72,0x79])]((_0x1700ac,_0x5b791a)=>_0xec846e[_0x5b791a]===_0x1700ac||_0xec846e[_0x5b791a]===_0x585b71([0x2a])));}function _0x3b6e47(){return _0x479a4f&&_0x3d787a?new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x237932,_0xe9cfd3)=>{_0x479a4f[_0x585b71([0x74,0x68,0x65,0x6e])](_0x237932,_0xe9cfd3),_0x3d787a[_0x585b71([0x74,0x68,0x65,0x6e])](_0x3265e2=>{_0x3265e2!=_0x585b71([0x56,0x61,0x6c,0x69,0x64])&&_0x237932(_0x3265e2);},_0xe9cfd3);}):_0x479a4f||_0x3d787a||_0x585b71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x425e16(_0x409c25,_0x4b0f1d){return new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee67b=>{if(_0x55df12())return _0x4ee67b(_0x585b71([0x56,0x61,0x6c,0x69,0x64]));_0x512608(),_0x4c91d6[_0x585b71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x559612=!0x1;const _0x2e6090=_0x10e963();function _0x4fd25a(_0x285849){return!!_0x285849&&(typeof _0x285849===_0x585b71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x285849===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x285849[_0x585b71([0x74,0x68,0x65,0x6e])]===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x285849[_0x585b71([0x63,0x61,0x74,0x63,0x68])]===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46e3ba(_0x3c0638){_0x2155da(_0x3c0638)[_0x585b71([0x74,0x68,0x65,0x6e])](_0x32fa1f=>{if(!_0x32fa1f||_0x32fa1f[_0x585b71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x585b71([0x6f,0x6b]))return _0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2124eb(_0x2e00af(_0x2e6090+_0x4b0f1d))!=_0x32fa1f[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x585b71([0x56,0x61,0x6c,0x69,0x64]);})[_0x585b71([0x74,0x68,0x65,0x6e])](_0x4a90f0=>(_0x322c36(),_0x4a90f0),()=>{const _0x15371f=_0x33dc8e();return null==_0x15371f?(_0x322c36(),_0x585b71([0x56,0x61,0x6c,0x69,0x64])):_0x585b71(_0x18ef9e-_0x15371f>(0x63ae0106^_0x2f4633)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x585b71([0x74,0x68,0x65,0x6e])](_0x4ee67b)[_0x585b71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32f742=0x47946b86^_0x2f4633;function _0x322c36(){const _0x6e125e=_0x585b71([0x6c,0x6c,0x63,0x74,0x2d])+_0x2124eb(_0x2e00af(_0x409c25)),_0x3aed5d=_0x2d9750(_0x2124eb(window[_0x585b71([0x4d,0x61,0x74,0x68])][_0x585b71([0x63,0x65,0x69,0x6c])](_0x18ef9e/_0x32f742)));window[_0x585b71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e125e,_0x3aed5d);}function _0x33dc8e(){const _0x2386fc=_0x585b71([0x6c,0x6c,0x63,0x74,0x2d])+_0x2124eb(_0x2e00af(_0x409c25)),_0x1e27d2=window[_0x585b71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2386fc);return _0x1e27d2?window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9750(_0x1e27d2),0x10)*_0x32f742:null;}function _0x2155da(_0x4682bd){return new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32bb31,_0x29e4db)=>{_0x4682bd[_0x585b71([0x74,0x68,0x65,0x6e])](_0x32bb31,_0x29e4db),window[_0x585b71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29e4db,0x47a351c6^_0x2f4633);});}}_0x4c91d6[_0x585b71([0x6f,0x6e])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x310044,_0x204bc4)=>{if(_0x204bc4[0x0]!=_0x409c25)return _0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x204bc4[0x1]={..._0x204bc4[0x1],[_0x585b71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e6090};},{[_0x585b71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b71([0x68,0x69,0x67,0x68])}),_0x4c91d6[_0x585b71([0x6f,0x6e])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x501e55=>{_0x4fd25a(_0x501e55[_0x585b71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x559612=!0x0,_0x46e3ba(_0x501e55[_0x585b71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x585b71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b71([0x6c,0x6f,0x77])}),_0x23c930[_0x585b71([0x74,0x68,0x65,0x6e])](()=>{_0x559612||_0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55df12(){return _0x4c91d6[_0x585b71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b71([0x76,0x69,0x65,0x77])][_0x585b71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x585b71([0x61,0x75,0x74,0x6f]);}function _0x512608(){_0x4c91d6[_0x585b71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b71([0x76,0x69,0x65,0x77])][_0x585b71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x585b71([0x61,0x75,0x74,0x6f]);}}function _0x13bebb(_0x175165){const _0x18536b=[new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x381412=>setTimeout(_0x381412,0x47abbbca^_0x2f4633)),_0x23c930[_0x585b71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bfddc=>{let _0x5453c3=0x0;_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x6f,0x6e])](_0x585b71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bec6c,_0x237546)=>{_0x237546[0x0][_0x585b71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5453c3++,_0x5453c3==(0x47a280ee^_0x2f4633)&&(_0x3bfddc(),_0x2bec6c[_0x585b71([0x6f,0x66,0x66])]());});}))];return window[_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x585b71([0x72,0x61,0x63,0x65])](_0x18536b)[_0x585b71([0x74,0x68,0x65,0x6e])](()=>_0x175165);}async function _0x5b6947(){await _0x23c930,_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x308875,_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x308875,_0x4c91d6[_0x585b71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x585b71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2205c9(_0x51261b){const _0x273d74=_0xc44363();_0x4c91d6[_0x273d74]=_0x585b71([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51261b,_0x51261b!=_0x585b71([0x56,0x61,0x6c,0x69,0x64])&&_0x5b6947();}function _0xc44363(){const _0x362195=window[_0x585b71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x585b71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x585b71([0x6e,0x6f,0x77])]())[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x585b71([0x2e]),'');let _0xa0c7d8=_0x585b71([0x75]);for(let _0xdc3f92=0x0;_0xdc3f92<_0x362195[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdc3f92+=0x2){let _0x2ba3a8=window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362195[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdc3f92,_0xdc3f92+0x2));_0x2ba3a8>=_0x4ff5f5[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ba3a8-=_0x4ff5f5[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa0c7d8+=_0x4ff5f5[_0x2ba3a8];}return _0xa0c7d8;}function _0x131b74(){const _0xe2ff12=_0xd3ea52[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e]));if(0x3!=_0xe2ff12[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12cf61(_0xe2ff12[0x1]);function _0x12cf61(_0x575d6b){const _0x261a16=_0x272bf2(_0x575d6b);return _0x261a16&&_0x1733da()?_0x261a16:null;function _0x1733da(){const _0x2353e6=_0x261a16[_0x585b71([0x6a,0x74,0x69])],_0x412d7a=window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2353e6[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2353e6[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fe396={..._0x261a16,[_0x585b71([0x6a,0x74,0x69])]:_0x2353e6[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2353e6[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fe396[_0x585b71([0x76,0x63])],_0x2e00af(_0x1fe396)==_0x412d7a;}}}async function _0x407c54(){let _0x2f20d2=!0x0;try{const _0x3f86ac=_0xd3ea52[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e])),[_0x3b08dc,_0x1859d0,_0xdae30b]=_0x3f86ac;return _0x4a2671(_0x3b08dc),await _0x4fb437(_0x3b08dc,_0x1859d0,_0xdae30b),_0x2f20d2;}catch{return!0x1;}function _0x4a2671(_0x34c633){const _0x170d01=_0x272bf2(_0x34c633);_0x170d01&&_0x170d01[_0x585b71([0x61,0x6c,0x67])]==_0x585b71([0x45,0x53,0x32,0x35,0x36])||(_0x2f20d2=!0x1);}async function _0x4fb437(_0x4d8c51,_0x205633,_0x52a8b2){const _0x41ec3a=window[_0x585b71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x585b71([0x66,0x72,0x6f,0x6d])](_0x12ff25(_0x52a8b2),_0x1869be=>_0x1869be[_0x585b71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x412086=new window[(_0x585b71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x585b71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d8c51+_0x585b71([0x2e])+_0x205633),_0x44023f=window[_0x585b71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x585b71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44023f)return;const _0x274a4f=await _0x44023f[_0x585b71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x585b71([0x6a,0x77,0x6b]),_0x36a171,{[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x45,0x43,0x44,0x53,0x41]),[_0x585b71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x585b71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44023f[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x45,0x43,0x44,0x53,0x41]),[_0x585b71([0x68,0x61,0x73,0x68])]:{[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x274a4f,_0x41ec3a,_0x412086)||(_0x2f20d2=!0x1);}}function _0x272bf2(_0x32f23d){return _0x32f23d[_0x585b71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x585b71([0x65,0x79]))?JSON[_0x585b71([0x70,0x61,0x72,0x73,0x65])](_0x12ff25(_0x32f23d)):null;}function _0x12ff25(_0x1efc55){return window[_0x585b71([0x61,0x74,0x6f,0x62])](_0x1efc55[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x585b71([0x2b]))[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x585b71([0x2f])));}function _0x2e00af(_0x29cc6f){let _0x34cac7=0x1505;function _0x471070(_0x4be47b){for(let _0x3d29b2=0x0;_0x3d29b2<_0x4be47b[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d29b2++){const _0x32a03d=_0x4be47b[_0x585b71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d29b2);_0x34cac7=(_0x34cac7<<0x5)+_0x34cac7+_0x32a03d,_0x34cac7&=_0x34cac7;}}function _0x152388(_0x4a768b){Array[_0x585b71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a768b)?_0x4a768b[_0x585b71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x152388):_0x4a768b&&typeof _0x4a768b==_0x585b71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x585b71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a768b)[_0x585b71([0x73,0x6f,0x72,0x74])]()[_0x585b71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x275c83,_0x478895])=>{_0x471070(_0x275c83),_0x152388(_0x478895);}):_0x471070(window[_0x585b71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a768b));}return _0x152388(_0x29cc6f),_0x34cac7>>>0x0;}function _0x2124eb(_0x1137f6){return _0x1137f6[_0x585b71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x585b71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x585b71([0x30]));}function _0x2d9750(_0x2406d1){return _0x2406d1[_0x585b71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x585b71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x585b71([0x6a,0x6f,0x69,0x6e])]('');}function _0x308875(){}function _0x585b71(_0x11c726){return _0x11c726['map'](_0x149a0e=>String['fromCharCode'](_0x149a0e))['join']('');}_0x2205c9(await _0x4e036b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x364499){const {plugins:_0x21e7bd,editing:_0x54e766,model:_0x112490}=this['editor'],_0xcab313=_0x21e7bd['get'](_0x21f5d8)['getFootnote'](_0x364499);return!!_0xcab313&&(_0x112490['change'](_0xcbd982=>{_0xcbd982['setSelection'](_0xcbd982['createPositionAt'](_0xcab313['definition'],'end'));}),_0x54e766['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2db3d7){const {plugins:_0x51f8af,editing:_0x40b527,model:_0xef780a}=this['editor'],_0x40b543=_0x51f8af['get'](_0x21f5d8)['getFootnote'](_0x2db3d7);return!!_0x40b543&&(_0xef780a['change'](_0x18ade5=>{_0x18ade5['setSelection'](_0x40b543['reference'],'on');}),_0x40b527['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2ec543}=this['editor']['model'],_0x58fc96=this['editor']['config']['get']('footnotes.multiBlock');_0x2ec543['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2ec543['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2ec543['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x58fc96?_0x2ec543['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2ec543['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2ec543['addChildCheck'](_0x10d15f=>{for(const _0x4c9229 of _0x10d15f)if('footnoteDefinition'===_0x4c9229['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1ccae7}=this,{conversion:_0x3a785e,editing:_0x26a39a}=_0x1ccae7,{t:t}=_0x1ccae7['locale'];_0x3a785e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x31795d,{writer:_0x7bc22a,consumable:_0x56eb59})=>{const _0x5aaf2b=_0x31795d['getChild'](0x0);if(!_0x5aaf2b||!_0x5aaf2b['is']('element','a'))return null;const _0x2b4be0=_0x5aaf2b['getAttribute']('href')||'';if(!_0x2b4be0['startsWith']('#'))return null;const _0x18df8d=_0x2b4be0['replace'](/^#/,'');if(!_0x18df8d)return null;_0x56eb59['consume'](_0x5aaf2b,{'name':!0x0,'attributes':['href']});for(const {item:_0x3b004e}of _0x26a39a['view']['createRangeIn'](_0x5aaf2b))_0x3b004e['is']('$textProxy')?_0x56eb59['consume'](_0x3b004e['textNode'],{'name':!0x0}):_0x3b004e['is']('element')&&_0x56eb59['consume'](_0x3b004e,{'name':!0x0});return _0x7bc22a['createElement']('footnoteRef',{'footnoteId':_0x18df8d});}}),_0x3a785e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x35d12f,{writer:_0x4c6c7d})=>b(_0x35d12f,_0x4c6c7d)}),_0x3a785e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48676e,{writer:_0x374d77})=>{const _0x34c951=_0x48676e['getAttribute']('footnoteCounter');return _0x343848(b(_0x48676e,_0x374d77),_0x374d77,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x34c951)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3c0793}=this,{t:t}=_0x3c0793['locale'],{conversion:_0x5e3d96}=_0x3c0793;_0x5e3d96['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5e3d96['for']('upcast')['add'](_0x31ad0c=>{_0x31ad0c['on']('element:ol',(_0x413459,_0x5bec27,_0x2be1b0)=>{const _0x5c1628=_0x5bec27['viewItem'];if(!_0x5c1628['hasClass']('footnotes-list')||!_0x5bec27['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2be1b0['consumable']['consume'](_0x5c1628,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x21efac,modelCursor:_0x62a69}=_0x2be1b0['convertChildren'](_0x5bec27['viewItem'],_0x5bec27['modelCursor']);_0x5bec27['modelRange']=_0x21efac,_0x5bec27['modelCursor']=_0x62a69;}),_0x31ad0c['on']('element:hr',(_0x31361c,_0x4ddae2,_0x5c8122)=>{const _0x424298=_0x4ddae2['viewItem'];_0x424298['hasClass']('footnotes-divider')&&_0x4ddae2['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5c8122['consumable']['consume'](_0x424298,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5e3d96['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x16850a,{writer:_0x20c68c})=>D(_0x20c68c)}),_0x5e3d96['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x44d876,{writer:_0x41a212})=>{const _0x26c9f6=D(_0x41a212,{'data-footnotes-list-label':t('Footnotes')}),_0x23ca91=_0x343848(_0x26c9f6,_0x41a212,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x41a212['setCustomProperty']('footnotesDefinitions',!0x0,_0x23ca91),_0x23ca91;}});}['_defineDefinitionConverters'](){const {editor:_0x33ce26}=this,{conversion:_0x10be58,locale:_0x5c5d0f}=_0x33ce26,_0xc4df5b=_0x33ce26['config']['get']('footnotes.multiBlock');_0x10be58['for']('upcast')['add'](_0x23f05d=>{_0x23f05d['on']('element:li',(_0x45c2d2,_0x31fd36,_0x2ce42f)=>{const _0x382bd9=_0x31fd36['viewItem'];if(!_0x382bd9['hasClass']('footnote-definition')||!_0x382bd9['getAttribute']('id'))return;const _0x508989=_0x382bd9['parent'];if(!_0x508989['is']('element','ol')||!_0x508989['hasClass']('footnotes-list'))return;if(!_0x2ce42f['consumable']['test'](_0x382bd9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4f44d7=_0x2ce42f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x382bd9['getAttribute']('id')});if(!_0x2ce42f['safeInsert'](_0x4f44d7,_0x31fd36['modelCursor']))return;_0x2ce42f['consumable']['consume'](_0x382bd9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4b3b4c=Array['from'](_0x382bd9['getChildren']())['find'](_0x118e15=>_0x118e15['is']('element')&&_0x118e15['hasClass']('footnote-content'));for(const _0x43c225 of _0x382bd9['getChildren']())_0x43c225['is']('element')&&(_0x2ce42f['consumable']['consume'](_0x43c225,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ce42f['consumable']['consume'](_0x43c225,{'name':!0x0,'classes':'footnote-content'}));if(_0x4b3b4c){if(_0xc4df5b)_0x2ce42f['convertChildren'](_0x4b3b4c,_0x4f44d7);else{const _0x50528a=_0x2ce42f['writer']['createElement']('footnoteInlineContent');_0x2ce42f['writer']['insert'](_0x50528a,_0x4f44d7),_0x2ce42f['convertChildren'](_0x4b3b4c,_0x50528a);}}_0x2ce42f['updateConversionResult'](_0x4f44d7,_0x31fd36);});}),_0x10be58['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x594b40,{writer:_0x2268b1})=>y(_0x594b40,_0x2268b1,_0x5c5d0f,{'dataPipeline':!0x0})}),_0x10be58['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1eed07,{writer:_0x2aec87})=>y(_0x1eed07,_0x2aec87,_0x5c5d0f)});}['_defineBogusParagraphConverters'](){const {editor:_0x808f5c}=this,{conversion:_0xf3731e}=_0x808f5c;_0x808f5c['config']['get']('footnotes.multiBlock')?(_0xf3731e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xf3731e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x808f5c['model']['document'],'change:data',()=>{!function(_0x9a9d58,_0x3f9203){const _0x358309=_0x9a9d58['document']['differ'],_0x309979=new Set();for(const _0x8d65e8 of _0x358309['getChanges']()){const _0x56cc06='attribute'==_0x8d65e8['type']?_0x8d65e8['range']['start']['parent']:_0x8d65e8['position']['parent'];_0x56cc06['is']('element','footnoteDefinition')&&_0x309979['add'](_0x56cc06);}for(const _0x32e77e of _0x309979['values']()){const _0x993fd4=Array['from'](_0x32e77e['getChildren']())['filter'](_0x567ebf=>v(_0x567ebf,_0x3f9203['mapper']));for(const _0x19017f of _0x993fd4)_0x3f9203['reconvertItem'](_0x19017f);}}(_0x808f5c['model'],_0x808f5c['editing']);})):(_0xf3731e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xf3731e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x304542,{writer:_0x34bbb6})=>{const _0xb56d38=_0x34bbb6['createContainerElement']('span');return _0x34bbb6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb56d38),_0xb56d38;}}));}['_defineKeyboardHandlers'](){const {editor:_0x22cf3a}=this,{editing:_0x7cbc12,t:t}=_0x22cf3a,_0x5d8cfd=_0x22cf3a['model']['document']['selection'];_0x22cf3a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x22cf3a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x7cbc12['view']['document'],'enter',(_0x36da44,_0x7cd548)=>{const _0xcdd2b2=function(_0x25b911){const _0x1c9bdf=_0x25b911['getSelectedElement']();if(_0x1c9bdf?.['is']('element','footnoteRef'))return _0x1c9bdf;return null;}(_0x5d8cfd);if(_0xcdd2b2){const _0x27f4f9=_0xcdd2b2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x27f4f9),_0x7cd548['preventDefault'](),_0x36da44['stop']();}},{'context':_0x5eeb14});}['_defineClickHandlers'](){const {editor:_0x17d245}=this,{editing:_0x1875b2}=_0x17d245;_0x17d245['editing']['view']['addObserver'](_0x1bdd58),_0x17d245['editing']['view']['addObserver'](_0x4d644d);let _0x4436c8=!0x1;this['listenTo'](_0x1875b2['view']['document'],'pointerdown',(_0x56ab9c,_0x96f6ec)=>{const {target:_0x2c8ae2}=_0x96f6ec,_0x25c4e3=_0x1875b2['view']['document']['selection'];_0x4436c8=!!(_0x2c8ae2?.['is']('element','a')&&_0x2c8ae2['parent']?.['is']('element','sup')&&_0x2c8ae2['parent']['hasClass']('footnote'))&&_0x25c4e3['getSelectedElement']()===_0x2c8ae2['parent'];},{'priority':'high'}),this['listenTo'](_0x1875b2['view']['document'],'click',(_0x59fa0c,_0x52fb59)=>{const {target:_0x3ac1e3}=_0x52fb59;if(!_0x3ac1e3?.['is']('element','a'))return;if(_0x3ac1e3['parent']?.['is']('element','sup')&&_0x3ac1e3['parent']['hasClass']('footnote')&&!_0x4436c8)return void _0x52fb59['preventDefault']();let _0x349bbc=_0x3ac1e3['getAttribute']('href');if(!_0x349bbc?.['startsWith']('#'))return;_0x349bbc=_0x349bbc['slice'](0x1);let _0x478595=!0x1;(_0x349bbc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x349bbc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x349bbc))&&(_0x478595=!0x0),_0x478595&&(_0x52fb59['preventDefault'](),_0x59fa0c['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1e239c}={}){return(_0x11894d,{writer:_0x2e5efb})=>{if(!g(_0x11894d))return null;if(!_0x1e239c)return _0x2e5efb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x10a32b=_0x2e5efb['createContainerElement']('p');return _0x2e5efb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x10a32b),_0x10a32b;};}function g(_0x5787a5){const {parent:_0x209119}=_0x5787a5;if(!_0x209119?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x209119['childCount'])return!0x1;for(const _0x379498 of _0x5787a5['getAttributeKeys']())if(!_0x379498['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x379498)return!0x1;return!0x0;}function v(_0x2b508e,_0xb27b88){if(!_0x2b508e['is']('element','paragraph'))return!0x1;const _0x476bc8=_0xb27b88['toViewElement'](_0x2b508e);return!!_0x476bc8&&g(_0x2b508e)!==_0x476bc8['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x14be75){return _0x5eeb14(_0x14be75)&&_0x14be75['is']('containerElement')&&!!_0x14be75['getCustomProperty']('footnotesDefinitions');}function D(_0x2ea841,_0x49138e={}){const _0x4a75d1=_0x2ea841['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3cc183=_0x2ea841['createContainerElement']('ol',{'class':'footnotes-list'},_0x2ea841['createSlot']());return _0x2ea841['createContainerElement']('div',{'class':'footnotes',..._0x49138e},[_0x4a75d1,_0x3cc183]);}function b(_0x556346,_0x561653){const _0x173748=_0x556346['getAttribute']('footnoteId'),_0x15166b=_0x556346['getAttribute']('footnoteCounter'),_0x506ba4=_0x561653['createUIElement']('a',{'href':'#'+_0x173748},function(_0x100907){const _0x3cdb76=this['toDomElement'](_0x100907);return _0x3cdb76['textContent']=_0x15166b,_0x3cdb76;}),_0x304075=_0x561653['createContainerElement']('sup',{'id':'ref-'+_0x173748,'class':'footnote'},[_0x506ba4]);return _0x304075['getFillerOffset']=()=>null,_0x304075;}function y(_0x4625e4,_0x137e28,_0x52d570,{dataPipeline:_0x442362}={}){const {t:t}=_0x52d570,_0x1f653d=_0x4625e4['getAttribute']('footnoteId'),_0x4f0c1a=_0x137e28['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1f653d},function(_0x28dbb2){const _0x48bfe9=this['toDomElement'](_0x28dbb2);return _0x48bfe9['innerText']='^',_0x48bfe9;}),_0x5e9352=_0x442362?_0x137e28['createContainerElement']('div',{'class':'footnote-content'}):_0xe96de1(_0x137e28['createEditableElement']('div',{'class':'footnote-content'}),_0x137e28,{'label':t('Footnote\x20content.')});return _0x137e28['insert'](_0x137e28['createPositionAt'](_0x5e9352,0x0),_0x137e28['createSlot']()),_0x137e28['createContainerElement']('li',{'class':'footnote-definition','id':_0x1f653d},[_0x4f0c1a,_0x5e9352]);}
|
|
23
|
+
import{Plugin as _0x3b4b73}from'ckeditor5/src/core.js';import{isWidget as _0x52eebb,toWidget as _0x49b4da,toWidgetEditable as _0x325556}from'ckeditor5/src/widget.js';import{uid as _0x2f93e9}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3def11,ClickObserver as _0x2c51f9}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x6f37fc}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5861ab}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3b4b73{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x6f37fc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4cce41}=this;_0x4cce41['config']['define']('footnotes.multiBlock',!0x0),_0x4cce41['commands']['add']('insertFootnote',new _0x5861ab(_0x4cce41)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2b66a6){const _0x216e8f=_0x19061c([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]),_0x33f886=0x47a28506,_0x33adef=0x47a5f9a6^_0x33f886,_0x373ed7=window[_0x19061c([0x44,0x61,0x74,0x65])][_0x19061c([0x6e,0x6f,0x77])](),_0x112e41=_0x2b66a6[_0x19061c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5998e4=new window[(_0x19061c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7cd5dc=>{_0x112e41[_0x19061c([0x6f,0x6e,0x63,0x65])](_0x19061c([0x72,0x65,0x61,0x64,0x79]),_0x7cd5dc);}),_0x21a6df={[_0x19061c([0x6b,0x74,0x79])]:_0x19061c([0x45,0x43]),[_0x19061c([0x75,0x73,0x65])]:_0x19061c([0x73,0x69,0x67]),[_0x19061c([0x63,0x72,0x76])]:_0x19061c([0x50,0x2d,0x32,0x35,0x36]),[_0x19061c([0x78])]:_0x19061c([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]),[_0x19061c([0x79])]:_0x19061c([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]),[_0x19061c([0x61,0x6c,0x67])]:_0x19061c([0x45,0x53,0x32,0x35,0x36])},_0x36311d=_0x112e41[_0x19061c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19061c([0x67,0x65,0x74])](_0x19061c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x616a2b(){let _0x3ae060,_0x1b9523=null,_0x4fc8d5=null;try{if(_0x36311d==_0x19061c([0x47,0x50,0x4c]))return _0x19061c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ae060=_0x4b27ae(),!_0x3ae060)return _0x19061c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ae060[_0x19061c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4fc8d5=_0x5eb5bd(_0x3ae060[_0x19061c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ae060[_0x19061c([0x6a,0x74,0x69])])),await _0x4622ed()?_0x5f2c3d()?_0x37172d()?_0x19061c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32ccfe()?(_0x3ae060[_0x19061c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19061c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b9523=_0x3cc490(_0x19061c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ae060[_0x19061c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19061c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b9523=_0x3cc490(_0x19061c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d0509()):_0x19061c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19061c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19061c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x19061c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37172d(){const _0x1a3954=[_0x19061c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19061c([0x74,0x72,0x69,0x61,0x6c])][_0x19061c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ae060[_0x19061c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x373ed7/0x3e8:0xe10*_0x33adef;return _0x3ae060[_0x19061c([0x65,0x78,0x70])]<_0x1a3954;}function _0x5f2c3d(){const _0x5211d2=_0x3ae060[_0x19061c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5211d2&&(!!_0x5211d2[_0x19061c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19061c([0x2a]))||!!_0x5211d2[_0x19061c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19061c([0x46,0x4f,0x4f])));}function _0x32ccfe(){const _0x115b2f=_0x3ae060[_0x19061c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x115b2f||0x0==_0x115b2f[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x283579}=new URL(window[_0x19061c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x115b2f[_0x19061c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283579))return!0x0;const _0x2090fd=_0x283579[_0x19061c([0x73,0x70,0x6c,0x69,0x74])](_0x19061c([0x2e]));return _0x115b2f[_0x19061c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34d1a2=>_0x34d1a2[_0x19061c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19061c([0x2a])))[_0x19061c([0x6d,0x61,0x70])](_0x4dbdfa=>_0x4dbdfa[_0x19061c([0x73,0x70,0x6c,0x69,0x74])](_0x19061c([0x2e])))[_0x19061c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48ff27=>_0x48ff27[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2090fd[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x19061c([0x6d,0x61,0x70])](_0x2ff3bb=>Array(_0x2090fd[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ff3bb[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x19061c([0x66,0x69,0x6c,0x6c])](_0x2ff3bb[0x0]===_0x19061c([0x2a])?_0x19061c([0x2a]):'')[_0x19061c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ff3bb))[_0x19061c([0x73,0x6f,0x6d,0x65])](_0x25bb65=>_0x2090fd[_0x19061c([0x65,0x76,0x65,0x72,0x79])]((_0x54a45f,_0x3c7456)=>_0x25bb65[_0x3c7456]===_0x54a45f||_0x25bb65[_0x3c7456]===_0x19061c([0x2a])));}function _0x3d0509(){return _0x1b9523&&_0x4fc8d5?new window[(_0x19061c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16ebbd,_0x53e4cd)=>{_0x1b9523[_0x19061c([0x74,0x68,0x65,0x6e])](_0x16ebbd,_0x53e4cd),_0x4fc8d5[_0x19061c([0x74,0x68,0x65,0x6e])](_0x4d64b9=>{_0x4d64b9!=_0x19061c([0x56,0x61,0x6c,0x69,0x64])&&_0x16ebbd(_0x4d64b9);},_0x53e4cd);}):_0x1b9523||_0x4fc8d5||_0x19061c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5eb5bd(_0x549d77,_0xd2f7){return new window[(_0x19061c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed998=>{if(_0x593146())return _0x1ed998(_0x19061c([0x56,0x61,0x6c,0x69,0x64]));_0x4630b2(),_0x112e41[_0x19061c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19061c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f0526=!0x1;const _0x11b2b3=_0x2f93e9();function _0x5512ee(_0x32c7d0){return!!_0x32c7d0&&(typeof _0x32c7d0===_0x19061c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32c7d0===_0x19061c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32c7d0[_0x19061c([0x74,0x68,0x65,0x6e])]===_0x19061c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32c7d0[_0x19061c([0x63,0x61,0x74,0x63,0x68])]===_0x19061c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x209fb0(_0x4e5f41){_0x2b580a(_0x4e5f41)[_0x19061c([0x74,0x68,0x65,0x6e])](_0x3bd4a7=>{if(!_0x3bd4a7||_0x3bd4a7[_0x19061c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19061c([0x6f,0x6b]))return _0x19061c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x182a13(_0x3887f6(_0x11b2b3+_0xd2f7))!=_0x3bd4a7[_0x19061c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19061c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19061c([0x56,0x61,0x6c,0x69,0x64]);})[_0x19061c([0x74,0x68,0x65,0x6e])](_0x31f338=>(_0x35688b(),_0x31f338),()=>{const _0x175453=_0x1f2400();return null==_0x175453?(_0x35688b(),_0x19061c([0x56,0x61,0x6c,0x69,0x64])):_0x19061c(_0x373ed7-_0x175453>(0x63ae0106^_0x33f886)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19061c([0x74,0x68,0x65,0x6e])](_0x1ed998)[_0x19061c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ed998(_0x19061c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x272f33=0x47946b86^_0x33f886;function _0x35688b(){const _0x195584=_0x19061c([0x6c,0x6c,0x63,0x74,0x2d])+_0x182a13(_0x3887f6(_0x549d77)),_0x2405c1=_0x14184c(_0x182a13(window[_0x19061c([0x4d,0x61,0x74,0x68])][_0x19061c([0x63,0x65,0x69,0x6c])](_0x373ed7/_0x272f33)));window[_0x19061c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19061c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x195584,_0x2405c1);}function _0x1f2400(){const _0x3415af=_0x19061c([0x6c,0x6c,0x63,0x74,0x2d])+_0x182a13(_0x3887f6(_0x549d77)),_0x171977=window[_0x19061c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19061c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3415af);return _0x171977?window[_0x19061c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14184c(_0x171977),0x10)*_0x272f33:null;}function _0x2b580a(_0xcc2c1){return new window[(_0x19061c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf935bd,_0x1da43c)=>{_0xcc2c1[_0x19061c([0x74,0x68,0x65,0x6e])](_0xf935bd,_0x1da43c),window[_0x19061c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1da43c,0x47a351c6^_0x33f886);});}}_0x112e41[_0x19061c([0x6f,0x6e])](_0x19061c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x547d24,_0x46d184)=>{if(_0x46d184[0x0]!=_0x549d77)return _0x1ed998(_0x19061c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46d184[0x1]={..._0x46d184[0x1],[_0x19061c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11b2b3};},{[_0x19061c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19061c([0x68,0x69,0x67,0x68])}),_0x112e41[_0x19061c([0x6f,0x6e])](_0x19061c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30405c=>{_0x5512ee(_0x30405c[_0x19061c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f0526=!0x0,_0x209fb0(_0x30405c[_0x19061c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19061c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19061c([0x6c,0x6f,0x77])}),_0x5998e4[_0x19061c([0x74,0x68,0x65,0x6e])](()=>{_0x5f0526||_0x1ed998(_0x19061c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x593146(){return _0x112e41[_0x19061c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19061c([0x76,0x69,0x65,0x77])][_0x19061c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19061c([0x61,0x75,0x74,0x6f]);}function _0x4630b2(){_0x112e41[_0x19061c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19061c([0x76,0x69,0x65,0x77])][_0x19061c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19061c([0x61,0x75,0x74,0x6f]);}}function _0x3cc490(_0x5e5d7b){const _0x530ed3=[new window[(_0x19061c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1236a1=>setTimeout(_0x1236a1,0x47abbbca^_0x33f886)),_0x5998e4[_0x19061c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19061c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfab424=>{let _0x38c420=0x0;_0x112e41[_0x19061c([0x6d,0x6f,0x64,0x65,0x6c])][_0x19061c([0x6f,0x6e])](_0x19061c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46b960,_0x2e415b)=>{_0x2e415b[0x0][_0x19061c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38c420++,_0x38c420==(0x47a280ee^_0x33f886)&&(_0xfab424(),_0x46b960[_0x19061c([0x6f,0x66,0x66])]());});}))];return window[_0x19061c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19061c([0x72,0x61,0x63,0x65])](_0x530ed3)[_0x19061c([0x74,0x68,0x65,0x6e])](()=>_0x5e5d7b);}async function _0x5c047c(){await _0x5998e4,_0x112e41[_0x19061c([0x6d,0x6f,0x64,0x65,0x6c])][_0x19061c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19aff1,_0x112e41[_0x19061c([0x6d,0x6f,0x64,0x65,0x6c])][_0x19061c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19aff1,_0x112e41[_0x19061c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19061c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x298531(_0xfe9571){const _0x58e6c2=_0x520496();_0x112e41[_0x58e6c2]=_0x19061c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xfe9571,_0xfe9571!=_0x19061c([0x56,0x61,0x6c,0x69,0x64])&&_0x5c047c();}function _0x520496(){const _0x7cfa1f=window[_0x19061c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19061c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19061c([0x6e,0x6f,0x77])]())[_0x19061c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19061c([0x2e]),'');let _0x48198d=_0x19061c([0x75]);for(let _0x30700f=0x0;_0x30700f<_0x7cfa1f[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30700f+=0x2){let _0x34a4e9=window[_0x19061c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7cfa1f[_0x19061c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30700f,_0x30700f+0x2));_0x34a4e9>=_0x216e8f[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34a4e9-=_0x216e8f[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48198d+=_0x216e8f[_0x34a4e9];}return _0x48198d;}function _0x4b27ae(){const _0x189727=_0x36311d[_0x19061c([0x73,0x70,0x6c,0x69,0x74])](_0x19061c([0x2e]));if(0x3!=_0x189727[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39e278(_0x189727[0x1]);function _0x39e278(_0x24545d){const _0x105c31=_0x453339(_0x24545d);return _0x105c31&&_0xac9229()?_0x105c31:null;function _0xac9229(){const _0x3dbbbe=_0x105c31[_0x19061c([0x6a,0x74,0x69])],_0x57cdbe=window[_0x19061c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dbbbe[_0x19061c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dbbbe[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52c2b1={..._0x105c31,[_0x19061c([0x6a,0x74,0x69])]:_0x3dbbbe[_0x19061c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3dbbbe[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52c2b1[_0x19061c([0x76,0x63])],_0x3887f6(_0x52c2b1)==_0x57cdbe;}}}async function _0x4622ed(){let _0xe55fe2=!0x0;try{const _0x1e8b79=_0x36311d[_0x19061c([0x73,0x70,0x6c,0x69,0x74])](_0x19061c([0x2e])),[_0x65f689,_0x42577a,_0x3dcef2]=_0x1e8b79;return _0x4439e8(_0x65f689),await _0xeb8cf6(_0x65f689,_0x42577a,_0x3dcef2),_0xe55fe2;}catch{return!0x1;}function _0x4439e8(_0x5b5219){const _0x4989e2=_0x453339(_0x5b5219);_0x4989e2&&_0x4989e2[_0x19061c([0x61,0x6c,0x67])]==_0x19061c([0x45,0x53,0x32,0x35,0x36])||(_0xe55fe2=!0x1);}async function _0xeb8cf6(_0x33eb23,_0x4c0c28,_0x5eeff8){const _0x7dd486=window[_0x19061c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19061c([0x66,0x72,0x6f,0x6d])](_0x1eb80d(_0x5eeff8),_0x53bca4=>_0x53bca4[_0x19061c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15083a=new window[(_0x19061c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19061c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33eb23+_0x19061c([0x2e])+_0x4c0c28),_0x159d66=window[_0x19061c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19061c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x159d66)return;const _0x4ec805=await _0x159d66[_0x19061c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19061c([0x6a,0x77,0x6b]),_0x21a6df,{[_0x19061c([0x6e,0x61,0x6d,0x65])]:_0x19061c([0x45,0x43,0x44,0x53,0x41]),[_0x19061c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19061c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19061c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x159d66[_0x19061c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19061c([0x6e,0x61,0x6d,0x65])]:_0x19061c([0x45,0x43,0x44,0x53,0x41]),[_0x19061c([0x68,0x61,0x73,0x68])]:{[_0x19061c([0x6e,0x61,0x6d,0x65])]:_0x19061c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ec805,_0x7dd486,_0x15083a)||(_0xe55fe2=!0x1);}}function _0x453339(_0x51d110){return _0x51d110[_0x19061c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19061c([0x65,0x79]))?JSON[_0x19061c([0x70,0x61,0x72,0x73,0x65])](_0x1eb80d(_0x51d110)):null;}function _0x1eb80d(_0x4224e4){return window[_0x19061c([0x61,0x74,0x6f,0x62])](_0x4224e4[_0x19061c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19061c([0x2b]))[_0x19061c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19061c([0x2f])));}function _0x3887f6(_0x46278f){let _0x557516=0x1505;function _0x478c2d(_0x5c6e7d){for(let _0x3f533e=0x0;_0x3f533e<_0x5c6e7d[_0x19061c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f533e++){const _0x30a95f=_0x5c6e7d[_0x19061c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f533e);_0x557516=(_0x557516<<0x5)+_0x557516+_0x30a95f,_0x557516&=_0x557516;}}function _0xde1fde(_0x337dee){Array[_0x19061c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x337dee)?_0x337dee[_0x19061c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xde1fde):_0x337dee&&typeof _0x337dee==_0x19061c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19061c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x337dee)[_0x19061c([0x73,0x6f,0x72,0x74])]()[_0x19061c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45d74e,_0x2e73ca])=>{_0x478c2d(_0x45d74e),_0xde1fde(_0x2e73ca);}):_0x478c2d(window[_0x19061c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x337dee));}return _0xde1fde(_0x46278f),_0x557516>>>0x0;}function _0x182a13(_0x4e9ea2){return _0x4e9ea2[_0x19061c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19061c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19061c([0x30]));}function _0x14184c(_0x2761ad){return _0x2761ad[_0x19061c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19061c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19061c([0x6a,0x6f,0x69,0x6e])]('');}function _0x19aff1(){}function _0x19061c(_0x1d3bd8){return _0x1d3bd8['map'](_0xb953f4=>String['fromCharCode'](_0xb953f4))['join']('');}_0x298531(await _0x616a2b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x35455b){const {plugins:_0x492166,editing:_0x1cbc3d,model:_0x1ce0ea}=this['editor'],_0x4cd09e=_0x492166['get'](_0x6f37fc)['getFootnote'](_0x35455b);return!!_0x4cd09e&&(_0x1ce0ea['change'](_0xf091b9=>{_0xf091b9['setSelection'](_0xf091b9['createPositionAt'](_0x4cd09e['definition'],'end'));}),_0x1cbc3d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x359ad9){const {plugins:_0x186341,editing:_0x5cd356,model:_0x1e6697}=this['editor'],_0xd506f6=_0x186341['get'](_0x6f37fc)['getFootnote'](_0x359ad9);return!!_0xd506f6&&(_0x1e6697['change'](_0xee1b98=>{_0xee1b98['setSelection'](_0xd506f6['reference'],'on');}),_0x5cd356['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x6758d6}=this['editor']['model'],_0x3d7bab=this['editor']['config']['get']('footnotes.multiBlock');_0x6758d6['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x6758d6['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x6758d6['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3d7bab?_0x6758d6['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x6758d6['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x6758d6['addChildCheck'](_0x61fc84=>{for(const _0x14c76c of _0x61fc84)if('footnoteDefinition'===_0x14c76c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x25aa4b}=this,{conversion:_0xe35ae0,editing:_0x5c597a}=_0x25aa4b,{t:t}=_0x25aa4b['locale'];_0xe35ae0['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5d06d3,{writer:_0x36fea1,consumable:_0x2946a2})=>{const _0x5e0223=_0x5d06d3['getChild'](0x0);if(!_0x5e0223||!_0x5e0223['is']('element','a'))return null;const _0x4f922d=_0x5e0223['getAttribute']('href')||'';if(!_0x4f922d['startsWith']('#'))return null;const _0x925c22=_0x4f922d['replace'](/^#/,'');if(!_0x925c22)return null;_0x2946a2['consume'](_0x5e0223,{'name':!0x0,'attributes':['href']});for(const {item:_0x37d8e9}of _0x5c597a['view']['createRangeIn'](_0x5e0223))_0x37d8e9['is']('$textProxy')?_0x2946a2['consume'](_0x37d8e9['textNode'],{'name':!0x0}):_0x37d8e9['is']('element')&&_0x2946a2['consume'](_0x37d8e9,{'name':!0x0});return _0x36fea1['createElement']('footnoteRef',{'footnoteId':_0x925c22});}}),_0xe35ae0['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3a6bce,{writer:_0x55e074})=>b(_0x3a6bce,_0x55e074)}),_0xe35ae0['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xdd2e8d,{writer:_0x5168fb})=>{const _0x4e1e7e=_0xdd2e8d['getAttribute']('footnoteCounter');return _0x49b4da(b(_0xdd2e8d,_0x5168fb),_0x5168fb,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4e1e7e)});}});}['_defineDefinitionsConverters'](){const {editor:_0x18aa19}=this,{t:t}=_0x18aa19['locale'],{conversion:_0x4951e9}=_0x18aa19;_0x4951e9['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4951e9['for']('upcast')['add'](_0x28ddb4=>{_0x28ddb4['on']('element:ol',(_0x74315d,_0x13a5f5,_0x127518)=>{const _0x5eb6e1=_0x13a5f5['viewItem'];if(!_0x5eb6e1['hasClass']('footnotes-list')||!_0x13a5f5['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x127518['consumable']['consume'](_0x5eb6e1,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x514c36,modelCursor:_0x17524f}=_0x127518['convertChildren'](_0x13a5f5['viewItem'],_0x13a5f5['modelCursor']);_0x13a5f5['modelRange']=_0x514c36,_0x13a5f5['modelCursor']=_0x17524f;}),_0x28ddb4['on']('element:hr',(_0x4a5a41,_0x118034,_0x53daae)=>{const _0x3dd563=_0x118034['viewItem'];_0x3dd563['hasClass']('footnotes-divider')&&_0x118034['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x53daae['consumable']['consume'](_0x3dd563,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4951e9['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4fe8b7,{writer:_0x5c1b79})=>D(_0x5c1b79)}),_0x4951e9['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3bf0c7,{writer:_0x3466b1})=>{const _0x52d762=D(_0x3466b1,{'data-footnotes-list-label':t('Footnotes')}),_0x4da88f=_0x49b4da(_0x52d762,_0x3466b1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3466b1['setCustomProperty']('footnotesDefinitions',!0x0,_0x4da88f),_0x4da88f;}});}['_defineDefinitionConverters'](){const {editor:_0x480cb1}=this,{conversion:_0x1e5a78,locale:_0x37c3d6}=_0x480cb1,_0x55d73d=_0x480cb1['config']['get']('footnotes.multiBlock');_0x1e5a78['for']('upcast')['add'](_0x3d71a7=>{_0x3d71a7['on']('element:li',(_0x34b17d,_0x701040,_0x333eab)=>{const _0x6c4de3=_0x701040['viewItem'];if(!_0x6c4de3['hasClass']('footnote-definition')||!_0x6c4de3['getAttribute']('id'))return;const _0x5274f0=_0x6c4de3['parent'];if(!_0x5274f0['is']('element','ol')||!_0x5274f0['hasClass']('footnotes-list'))return;if(!_0x333eab['consumable']['test'](_0x6c4de3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xa176c1=_0x333eab['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x6c4de3['getAttribute']('id')});if(!_0x333eab['safeInsert'](_0xa176c1,_0x701040['modelCursor']))return;_0x333eab['consumable']['consume'](_0x6c4de3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xe04687=Array['from'](_0x6c4de3['getChildren']())['find'](_0xcf7d6d=>_0xcf7d6d['is']('element')&&_0xcf7d6d['hasClass']('footnote-content'));for(const _0x432c4b of _0x6c4de3['getChildren']())_0x432c4b['is']('element')&&(_0x333eab['consumable']['consume'](_0x432c4b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x333eab['consumable']['consume'](_0x432c4b,{'name':!0x0,'classes':'footnote-content'}));if(_0xe04687){if(_0x55d73d)_0x333eab['convertChildren'](_0xe04687,_0xa176c1);else{const _0xf3e5e2=_0x333eab['writer']['createElement']('footnoteInlineContent');_0x333eab['writer']['insert'](_0xf3e5e2,_0xa176c1),_0x333eab['convertChildren'](_0xe04687,_0xf3e5e2);}}_0x333eab['updateConversionResult'](_0xa176c1,_0x701040);});}),_0x1e5a78['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x42f04f,{writer:_0x5186ac})=>y(_0x42f04f,_0x5186ac,_0x37c3d6,{'dataPipeline':!0x0})}),_0x1e5a78['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x54e434,{writer:_0x7c1aec})=>y(_0x54e434,_0x7c1aec,_0x37c3d6)});}['_defineBogusParagraphConverters'](){const {editor:_0x13eb83}=this,{conversion:_0x5531ba}=_0x13eb83;_0x13eb83['config']['get']('footnotes.multiBlock')?(_0x5531ba['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x5531ba['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x13eb83['model']['document'],'change:data',()=>{!function(_0x4d3735,_0x1f8aa4){const _0x3e8f26=_0x4d3735['document']['differ'],_0x186f79=new Set();for(const _0x4c9b14 of _0x3e8f26['getChanges']()){const _0x26d08c='attribute'==_0x4c9b14['type']?_0x4c9b14['range']['start']['parent']:_0x4c9b14['position']['parent'];_0x26d08c['is']('element','footnoteDefinition')&&_0x186f79['add'](_0x26d08c);}for(const _0x5f2cf9 of _0x186f79['values']()){const _0x2a80f9=Array['from'](_0x5f2cf9['getChildren']())['filter'](_0x13b4fa=>v(_0x13b4fa,_0x1f8aa4['mapper']));for(const _0x722b05 of _0x2a80f9)_0x1f8aa4['reconvertItem'](_0x722b05);}}(_0x13eb83['model'],_0x13eb83['editing']);})):(_0x5531ba['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x5531ba['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2dc0d7,{writer:_0x1b8419})=>{const _0x1113e8=_0x1b8419['createContainerElement']('span');return _0x1b8419['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1113e8),_0x1113e8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x35034d}=this,{editing:_0x5e72b9,t:t}=_0x35034d,_0x3e4236=_0x35034d['model']['document']['selection'];_0x35034d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x35034d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5e72b9['view']['document'],'enter',(_0x48eb3a,_0x31041b)=>{const _0x1aeb5c=function(_0x1f643b){const _0x4e42e5=_0x1f643b['getSelectedElement']();if(_0x4e42e5?.['is']('element','footnoteRef'))return _0x4e42e5;return null;}(_0x3e4236);if(_0x1aeb5c){const _0x2da70f=_0x1aeb5c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2da70f),_0x31041b['preventDefault'](),_0x48eb3a['stop']();}},{'context':_0x52eebb});}['_defineClickHandlers'](){const {editor:_0xa6442b}=this,{editing:_0x54a261}=_0xa6442b;_0xa6442b['editing']['view']['addObserver'](_0x3def11),_0xa6442b['editing']['view']['addObserver'](_0x2c51f9);let _0x20f0ea=!0x1;this['listenTo'](_0x54a261['view']['document'],'pointerdown',(_0x5de3cc,_0xc5f5d2)=>{const {target:_0x595f68}=_0xc5f5d2,_0x5ce6cb=_0x54a261['view']['document']['selection'];_0x20f0ea=!!(_0x595f68?.['is']('element','a')&&_0x595f68['parent']?.['is']('element','sup')&&_0x595f68['parent']['hasClass']('footnote'))&&_0x5ce6cb['getSelectedElement']()===_0x595f68['parent'];},{'priority':'high'}),this['listenTo'](_0x54a261['view']['document'],'click',(_0x22f54b,_0x31d192)=>{const {target:_0x26ef38}=_0x31d192;if(!_0x26ef38?.['is']('element','a'))return;if(_0x26ef38['parent']?.['is']('element','sup')&&_0x26ef38['parent']['hasClass']('footnote')&&!_0x20f0ea)return void _0x31d192['preventDefault']();let _0x11b3be=_0x26ef38['getAttribute']('href');if(!_0x11b3be?.['startsWith']('#'))return;_0x11b3be=_0x11b3be['slice'](0x1);let _0x2b8363=!0x1;(_0x11b3be['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x11b3be['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x11b3be))&&(_0x2b8363=!0x0),_0x2b8363&&(_0x31d192['preventDefault'](),_0x22f54b['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x540880}={}){return(_0x344e25,{writer:_0x24be05})=>{if(!g(_0x344e25))return null;if(!_0x540880)return _0x24be05['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1c2b04=_0x24be05['createContainerElement']('p');return _0x24be05['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1c2b04),_0x1c2b04;};}function g(_0x118978){const {parent:_0x5e3208}=_0x118978;if(!_0x5e3208?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5e3208['childCount'])return!0x1;for(const _0xeccac3 of _0x118978['getAttributeKeys']())if(!_0xeccac3['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xeccac3)return!0x1;return!0x0;}function v(_0x2115a2,_0x5220b9){if(!_0x2115a2['is']('element','paragraph'))return!0x1;const _0xbd4254=_0x5220b9['toViewElement'](_0x2115a2);return!!_0xbd4254&&g(_0x2115a2)!==_0xbd4254['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x46058a){return _0x52eebb(_0x46058a)&&_0x46058a['is']('containerElement')&&!!_0x46058a['getCustomProperty']('footnotesDefinitions');}function D(_0x2996e7,_0x1da101={}){const _0x4c1717=_0x2996e7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2caeda=_0x2996e7['createContainerElement']('ol',{'class':'footnotes-list'},_0x2996e7['createSlot']());return _0x2996e7['createContainerElement']('div',{'class':'footnotes',..._0x1da101},[_0x4c1717,_0x2caeda]);}function b(_0x586ad4,_0x141f66){const _0xe18b2e=_0x586ad4['getAttribute']('footnoteId'),_0x38c7eb=_0x586ad4['getAttribute']('footnoteCounter'),_0x3a9605=_0x141f66['createUIElement']('a',{'href':'#'+_0xe18b2e},function(_0x22a861){const _0x3f0867=this['toDomElement'](_0x22a861);return _0x3f0867['textContent']=_0x38c7eb,_0x3f0867;}),_0x5bdeeb=_0x141f66['createContainerElement']('sup',{'id':'ref-'+_0xe18b2e,'class':'footnote'},[_0x3a9605]);return _0x5bdeeb['getFillerOffset']=()=>null,_0x5bdeeb;}function y(_0x22f145,_0x5d5286,_0x4554ee,{dataPipeline:_0x1b016d}={}){const {t:t}=_0x4554ee,_0x111b33=_0x22f145['getAttribute']('footnoteId'),_0x354550=_0x5d5286['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x111b33},function(_0x4ebe2b){const _0xa9a275=this['toDomElement'](_0x4ebe2b);return _0xa9a275['innerText']='^',_0xa9a275;}),_0x5e379c=_0x1b016d?_0x5d5286['createContainerElement']('div',{'class':'footnote-content'}):_0x325556(_0x5d5286['createEditableElement']('div',{'class':'footnote-content'}),_0x5d5286,{'label':t('Footnote\x20content.')});return _0x5d5286['insert'](_0x5d5286['createPositionAt'](_0x5e379c,0x0),_0x5d5286['createSlot']()),_0x5d5286['createContainerElement']('li',{'class':'footnote-definition','id':_0x111b33},[_0x354550,_0x5e379c]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3d1e(_0x45a56e,_0x5c77f4){const _0x4946eb=_0x4946();return _0x3d1e=function(_0x3d1e7b,_0xeb314a){_0x3d1e7b=_0x3d1e7b-0x174;let _0x80ae64=_0x4946eb[_0x3d1e7b];return _0x80ae64;},_0x3d1e(_0x45a56e,_0x5c77f4);}const _0x1173b7=_0x3d1e;function _0x4946(){const _0x31d187=['5677392boHozO','execute','get','2YRiipF','plugins','isEnabled','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','149916aikipf','1883175nonmMy','20gknsfi','getAttribute','change','4296924MLUjJJ','isInteger','model','23242690ucYAiL','value','setAttribute','refresh','1289750UfVLsg','28UCKuWh','footnotesListStart','1212184pCXCBA'];_0x4946=function(){return _0x31d187;};return _0x4946();}(function(_0x24209c,_0xcaaf30){const _0x246052=_0x3d1e,_0x1e4e57=_0x24209c();while(!![]){try{const _0x975dc0=parseInt(_0x246052(0x17c))/0x1*(-parseInt(_0x246052(0x181))/0x2)+-parseInt(_0x246052(0x182))/0x3+-parseInt(_0x246052(0x183))/0x4*(-parseInt(_0x246052(0x175))/0x5)+-parseInt(_0x246052(0x179))/0x6+parseInt(_0x246052(0x176))/0x7*(-parseInt(_0x246052(0x178))/0x8)+-parseInt(_0x246052(0x186))/0x9+parseInt(_0x246052(0x189))/0xa;if(_0x975dc0===_0xcaaf30)break;else _0x1e4e57['push'](_0x1e4e57['shift']());}catch(_0x432886){_0x1e4e57['push'](_0x1e4e57['shift']());}}}(_0x4946,0xc4eda));import{Command as _0x2e9b6a}from'ckeditor5/src/core.js';import{FootnotesTracker as _0xcaedca}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x2e9b6a{[_0x1173b7(0x174)](){const _0x1ac9c0=_0x1173b7,{editor:_0x28a13f}=this,_0x404b9f=_0x28a13f[_0x1ac9c0(0x17d)][_0x1ac9c0(0x17b)](_0xcaedca)[_0x1ac9c0(0x180)]();this[_0x1ac9c0(0x17e)]=!!_0x404b9f,this[_0x1ac9c0(0x18a)]=_0x404b9f?.[_0x1ac9c0(0x184)](_0x1ac9c0(0x177))??null;}[_0x1173b7(0x17a)]({value:_0x5c526a}){const _0x58c531=_0x1173b7,{editor:_0x3d5b64}=this,_0x19bc0b=_0x3d5b64[_0x58c531(0x17d)][_0x58c531(0x17b)](_0xcaedca),_0x15c236=_0x19bc0b[_0x58c531(0x180)]();_0x15c236&&Number[_0x58c531(0x187)](_0x5c526a)&&_0x3d5b64[_0x58c531(0x188)][_0x58c531(0x185)](_0x2e5ba6=>{const _0x3899c4=_0x58c531;_0x2e5ba6[_0x3899c4(0x18b)](_0x3899c4(0x177),_0x5c526a,_0x15c236),_0x19bc0b[_0x3899c4(0x17f)](_0x2e5ba6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19725c=_0x36cd;(function(_0x204f19,_0x372738){const _0x313bcb=_0x36cd,_0x5eee7d=_0x204f19();while(!![]){try{const _0x1388bd=-parseInt(_0x313bcb(0x17c))/0x1*(parseInt(_0x313bcb(0x18f))/0x2)+-parseInt(_0x313bcb(0x186))/0x3*(-parseInt(_0x313bcb(0x17b))/0x4)+parseInt(_0x313bcb(0x184))/0x5+-parseInt(_0x313bcb(0x180))/0x6+parseInt(_0x313bcb(0x18b))/0x7*(parseInt(_0x313bcb(0x18d))/0x8)+parseInt(_0x313bcb(0x17a))/0x9*(parseInt(_0x313bcb(0x183))/0xa)+-parseInt(_0x313bcb(0x179))/0xb;if(_0x1388bd===_0x372738)break;else _0x5eee7d['push'](_0x5eee7d['shift']());}catch(_0x2a8925){_0x5eee7d['push'](_0x5eee7d['shift']());}}}(_0x149d,0x8c4ef));import{Command as _0x32568a}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x5d89d0}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x30d894}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x32568a{[_0x19725c(0x18c)](){const _0x3f9415=_0x19725c,{editor:_0x7953ba}=this,_0x1e31a8=_0x7953ba[_0x3f9415(0x190)][_0x3f9415(0x182)](_0x30d894)[_0x3f9415(0x17d)]();this[_0x3f9415(0x191)]=!!_0x1e31a8,this[_0x3f9415(0x188)]=_0x1e31a8?.[_0x3f9415(0x185)](_0x3f9415(0x18a))??null;}[_0x19725c(0x17e)]({value:_0x36e654}){const _0x52bda3=_0x19725c,{editor:_0x16af4a}=this,_0x5c0385=_0x16af4a[_0x52bda3(0x190)][_0x52bda3(0x182)](_0x30d894),_0x389b2a=_0x5c0385[_0x52bda3(0x17d)]();_0x389b2a&&_0x5d89d0[_0x52bda3(0x18e)](_0x36e654)&&_0x16af4a[_0x52bda3(0x189)][_0x52bda3(0x17f)](_0x3e290b=>{const _0x56c8fa=_0x52bda3;_0x3e290b[_0x56c8fa(0x187)](_0x56c8fa(0x18a),_0x36e654,_0x389b2a),_0x5c0385[_0x56c8fa(0x181)](_0x3e290b);});}}function _0x36cd(_0x2b8dd1,_0x133b2a){const _0x149d1a=_0x149d();return _0x36cd=function(_0x36cde1,_0x1a0c94){_0x36cde1=_0x36cde1-0x179;let _0xc40066=_0x149d1a[_0x36cde1];return _0xc40066;},_0x36cd(_0x2b8dd1,_0x133b2a);}function _0x149d(){const _0x2322df=['plugins','isEnabled','3242888jfgSiF','1377cwhXof','58556ERRFAo','7spahYh','getFootnotesDefinitionsObjectElement','execute','change','5069034BJfCCs','_updateFootnotesCounters','get','56060CWMwEd','5364385fUfoXk','getAttribute','39BmIkQj','setAttribute','value','model','footnotesListStyle','497BxAZDs','refresh','51528hctzzl','includes','246818ZCisdg'];_0x149d=function(){return _0x2322df;};return _0x149d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x218da3,ButtonView as _0x2958cd,ContextualBalloon as _0x1f93c2,createDropdown as _0x490f59}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x4647bb}from'ckeditor5/src/widget.js';import{Plugin as _0x40350a}from'ckeditor5/src/core.js';import{IconFootnote as _0x5c2ae6,IconListStyleDecimal as _0x35ab00,IconListStyleDecimalLeadingZero as _0x39e25c,IconListStyleLowerLatin as _0x317425,IconListStyleLowerRoman as _0x5cb38b,IconListStyleUpperLatin as _0x8ad891,IconListStyleUpperRoman as _0x460429}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x210af8}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x4c115b}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x40350a{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1f93c2,_0x4647bb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x239fc4}=this,{componentFactory:_0x3b6888}=_0x239fc4['ui'];_0x239fc4['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3b6888['add']('footnotesStyle',function(_0x3867bf){return _0x6727fd=>{const {t:t}=_0x6727fd,_0x2776c0=_0x3867bf['commands']['get']('footnotesStyle'),_0x287878=_0x490f59(_0x6727fd),{buttonView:_0x3f954a}=_0x287878;return _0x287878['class']='ck-footnotes-styles-dropdown',_0x287878['bind']('isEnabled')['to'](_0x2776c0,'isEnabled'),_0x3f954a['set']({'label':t('Footnotes\x20style'),'icon':_0x5c2ae6,'tooltip':!0x0}),_0x287878['once']('change:isOpen',()=>{const _0x31ea78=function({editor:_0x4f48e2,dropdownView:_0x3e8533}){const {t:t}=_0x4f48e2['locale'],_0x4c3a6a=t('Footnotes\x20definitions\x20styles'),_0x27ae2d=function(_0x19de80){const t=_0x19de80['locale']['t'],_0x2e3eff=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x35ab00},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x39e25c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5cb38b},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x460429},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x317425},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x8ad891}];return _0x2e3eff['map'](function(_0x55c8fa){const _0x3069a5=_0x55c8fa['locale'];return({label:_0x2634e8,icon:_0x345ac2,tooltip:_0x5dc15e,style:_0x5bda52})=>{const _0x5ed55a=_0x55c8fa['commands']['get']('footnotesStyle'),_0x332e10=new _0x2958cd(_0x3069a5);return _0x332e10['set']({'label':_0x2634e8,'icon':_0x345ac2,'tooltip':_0x5dc15e}),_0x332e10['bind']('isOn')['to'](_0x5ed55a,'value',_0x8c2ca5=>_0x8c2ca5===_0x5bda52),_0x332e10['bind']('isEnabled')['to'](_0x5ed55a,'isEnabled'),_0x332e10['on']('execute',()=>{_0x55c8fa['execute']('footnotesStyle',{'value':_0x5bda52}),_0x55c8fa['editing']['view']['focus']();}),_0x332e10;};}(_0x19de80));}(_0x4f48e2),_0x5cdecb=new _0x210af8(_0x4f48e2['locale'],{'styleGridAriaLabel':_0x4c3a6a,'styleButtonViews':_0x27ae2d}),_0x24c3fe=_0x4f48e2['commands']['get']('footnotesStart');return _0x5cdecb['startIndexFieldView']['bind']('isEnabled')['to'](_0x24c3fe),_0x5cdecb['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x24c3fe),_0x5cdecb['on']('footnotesListStart',(_0x45b471,_0x1ec16f)=>{_0x4f48e2['execute']('footnotesStart',{'value':_0x1ec16f['startIndex']});}),_0x5cdecb['delegate']('execute')['to'](_0x3e8533),_0x5cdecb;}({'editor':_0x3867bf,'dropdownView':_0x287878});_0x287878['panelView']['children']['add'](_0x31ea78);}),_0x287878;};}(_0x239fc4));}['afterInit'](){const {editor:_0x1fc1c5}=this,{t:t}=_0x1fc1c5['locale'],_0x4b9936=_0x1fc1c5['plugins']['get'](_0x4647bb),{defaultPositions:_0x1b7ba5}=_0x218da3;_0x4b9936['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1fc1c5['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x331726=>{let _0x4d326c=_0x331726['getFirstPosition']()?.['parent'];return _0x4d326c?.['is']('$text')&&(_0x4d326c=_0x4d326c['parent']),_0x4d326c?.['is']('element')?_0x4d326c['findAncestor'](_0x4c115b):null;},'positions':[_0x1b7ba5['southArrowNorth'],_0x1b7ba5['southArrowNorthMiddleWest'],_0x1b7ba5['southArrowNorthMiddleEast'],_0x1b7ba5['southArrowNorthWest'],_0x1b7ba5['southArrowNorthEast'],_0x1b7ba5['northArrowSouth'],_0x1b7ba5['northArrowSouthMiddleWest'],_0x1b7ba5['northArrowSouthMiddleEast'],_0x1b7ba5['northArrowSouthWest'],_0x1b7ba5['northArrowSouthEast'],_0x1b7ba5['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x9c9a5b,View as _0x1afbb9,ViewCollection as _0x24d9ae,FocusCycler as _0x42c888,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x1afbb9{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x24d9ae();['focusCycler'];constructor(_0x1c30c7,{styleButtonViews:_0x616f4d,styleGridAriaLabel:_0x59bcb8}){super(_0x1c30c7),(this['focusCycler']=new _0x42c888({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x616f4d,_0x59bcb8),[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 _0x5e71d6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5e71d6['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 _0xf2bdee=_0x4f88c5=>_0x4f88c5['stopPropagation']();this['keystrokes']['set']('arrowright',_0xf2bdee),this['keystrokes']['set']('arrowleft',_0xf2bdee),this['keystrokes']['set']('arrowup',_0xf2bdee),this['keystrokes']['set']('arrowdown',_0xf2bdee);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a211c,_0x2da2b3){const _0x3d1999=new _0x1afbb9(this['locale']);return _0x3d1999['children']=_0x3d1999['createCollection'](),_0x3d1999['children']['addMany'](_0x5a211c),_0x3d1999['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2da2b3,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3d1999['children']}),_0x3d1999['children']['delegate']('execute')['to'](this),_0x3d1999['focus']=function(){for(const _0x323a90 of this['children'])if(_0x323a90 instanceof _0x9c9a5b&&_0x323a90['isOn'])return void _0x323a90['focus']();this['children']['first']['focus']();},_0x3d1999['focusTracker']=new ot(),_0x3d1999['keystrokes']=new rt(),_0x3d1999['render'](),_0x3d1999['keystrokes']['listenTo'](_0x3d1999['element']),this['children']['add'](_0x3d1999),_0x3d1999;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4f0ff1=this['_createStartIndexPropertyView'](),_0x28f9e9=[_0x4f0ff1],_0x39d26f=new st(this['locale'],_0x28f9e9);return _0x39d26f['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x39d26f['buttonView']['bind']('isEnabled')['toMany'](_0x28f9e9,'isEnabled',(..._0x417088)=>_0x417088['some'](_0x127df1=>_0x127df1)),_0x39d26f['buttonView']['on']('change:isEnabled',(_0x9d7a77,_0x2668ea,_0x27e227)=>{_0x27e227||(_0x39d26f['isCollapsed']=!0x0);}),this['children']['add'](_0x39d26f),[_0x4f0ff1,_0x39d26f];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2073b6=new it(this['locale'],et);return _0x2073b6['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2073b6['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2073b6['fieldView']['on']('input',()=>{const _0x2d1f41=_0x2073b6['fieldView']['element'],_0x144015=_0x2d1f41['valueAsNumber'];Number['isNaN'](_0x144015)?_0x2073b6['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2d1f41['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x144015}):_0x2073b6['errorText']=t(_0x144015<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2073b6;}}
|