/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ var SF=function(){function t(t){return(t=t.attributes?t.attributes.getNamedItem("class"):null)?t.value.split(" "):[]}function e(t){var e=document.createAttribute("class");return e.value=t.join(" "),e}var n={attachListener:function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else{if(!t.attachEvent)throw Error("Could not attach event.");t.attachEvent("on"+e,function(){n.apply(t,arguments)})}}};return n.indexOf=function(){var t=Array.prototype.indexOf;return"function"===t?function(e,n){return t.call(e,n)}:function(t,e){for(var n=t.length,o=0;n>o;o++)if(t[o]===e)return o;return-1}}(),n.accept=function(t,e){var o;t.children?(o=t.children,e(t)):"number"==typeof t.length&&(o=t);for(var i=o?o.length||0:0;i--;)n.accept(o[i],e)},n.getByClass=function(){var t=document.getElementsByClassName;return"function"==typeof t?function(e,n){return"string"==typeof e&&(n=e,e=document),t.call(e,n)}:function(t,e){"string"==typeof t&&(e=t,t=document.getElementsByTagName("html")[0]);var o=[];return n.accept(t,function(t){n.classList.contains(t,e)&&o.push(t)}),o}}(),n.classList={},n.classList.add=function(n,o){var i=t(n);i.push(o),n.attributes.setNamedItem(e(i))},n.classList.remove=function(o,i){var r=t(o,i),s=n.indexOf(r,i);-1!==s&&(r.splice(s,1),o.attributes.setNamedItem(e(r)))},n.classList.contains=function(e,o){return-1!==n.indexOf(t(e),o)},n.classList.toggle=function(t,e){this.contains(t,e)?this.remove(t,e):this.add(t,e)},n}();!function(){function t(t){for(var e in t)delete t[e]}SF.modal=function(e){function n(t){27==t.keyCode&&r.close()}e.modalClass="modal content",e.closeClass="modal-close",e.modalStyles=t,e.closeStyles=t;var o=e.afterCreate,i=e.afterClose;e.afterCreate=function(t){o&&o(t),window.addEventListener("keydown",n)},e.afterClose=function(t){i&&i(t),window.removeEventListener("keydown",n)};var r=new picoModal(e).afterCreate(e.afterCreate).afterClose(e.afterClose);return r}}(),function(){for(var t=SF.getByClass("toggler"),e=t.length;e--;)SF.attachListener(t[e],"click",function(){var t=SF.classList.contains(this,"icon-toggler-expanded")||SF.classList.contains(this,"icon-toggler-collapsed"),e=document.getElementById(this.getAttribute("data-for"));SF.classList.toggle(this,"collapsed"),SF.classList.contains(this,"collapsed")?(SF.classList.add(e,"collapsed"),t&&(SF.classList.remove(this,"icon-toggler-expanded"),SF.classList.add(this,"icon-toggler-collapsed"))):(SF.classList.remove(e,"collapsed"),t&&(SF.classList.remove(this,"icon-toggler-collapsed"),SF.classList.add(this,"icon-toggler-expanded")))})}(),function(){for(var t=SF.getByClass("tree-a"),e=t.length;e--;)SF.attachListener(t[e],"click",function(t){t=t.target||t.srcElement,"H2"!==t.nodeName||SF.classList.contains(t,"tree-a-no-sub")||SF.classList.toggle(t,"tree-a-active")})}(),function(t,e){function n(t){return"object"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType}function o(){var t=[];return{watch:t.push.bind(t),trigger:function(e){for(var n=!0,o={preventDefault:function(){n=!1}},i=0;i