!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.TOC=t():e.TOC=t()}(self,(()=>(()=>{"use strict";var e={424:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(81),o=n.n(r),a=n(645),i=n.n(a)()(o());i.push([e.id,"a:link { text-decoration: none; }\na:hover { text-decoration: underline; }\n\n.toc-wrapper {\n padding: 0.6em 0 3px;\n}\n\n.toc-paragraph {\n display: block;\n line-height: 2;\n}\n\n.toc-l-1 {\n padding-left: 0;\n}\n\n.toc-l-2 {\n padding-left: 1.0em;\n}\n\n.toc-l-3 {\n padding-left: 2.0em;\n}\n\n.toc-l-4 {\n padding-left: 3.0em;\n}\n\n.toc-l-5 {\n padding-left: 4.0em;\n}\n\n.toc-l-6 {\n padding-left: 5.0em;\n}\n",""]);const s=i},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},81:e=>{e.exports=function(e){return e[1]}},379:e=>{var t=[];function n(e){for(var n=-1,r=0;r{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0;var r={};return(()=>{n.d(r,{default:()=>m});var e=n(379),t=n.n(e),o=n(795),a=n.n(o),i=n(569),s=n.n(i),c=n(565),d=n.n(c),l=n(216),p=n.n(l),u=n(589),h=n.n(u),f=n(424),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=s().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=p(),t()(f.Z,v),f.Z&&f.Z.locals&&f.Z.locals;class m{static get toolbox(){return{title:"TOC",icon:'\n \n '}}constructor({data:e,api:t,block:n}){this.api=t,this.data=e,this.block=n,this.wrapper=void 0,this.data.items=e.items||[]}render(){return this.wrapper=document.createElement("div"),this.wrapper.id=this.block.id,this.wrapper.classList.add("toc-wrapper"),this.data.items.length<1&&this._getHeadings(),this._createTOC(),this.wrapper}static get isReadOnlySupported(){return!0}_getHeadings(){this.data.items=[];for(var e=this.api.blocks.getBlocksCount(),t=0;t{e.preventDefault(),document.getElementById(e.target.hash.substring(1))?.scrollIntoView({behavior:"smooth",block:"start",inline:"start"}),location.hash=e.target.hash})),this.wrapper.appendChild(r)}}renderSettings(){return[{icon:'\n \n ',name:"refresh",label:this.api.i18n.t("Refresh"),toggle:"toc",onActivate:()=>{this._getHeadings()}}]}save(e){return{items:this.data.items}}}})(),r.default})()));