diff --git a/build/Blocks/table-of-contents/view.asset.php b/build/Blocks/table-of-contents/view.asset.php index abdeb0a..b0af261 100644 --- a/build/Blocks/table-of-contents/view.asset.php +++ b/build/Blocks/table-of-contents/view.asset.php @@ -1 +1 @@ - array('react', 'react-jsx-runtime', 'wp-element'), 'version' => '6dff179d0c109bedfc1d'); + array('react-jsx-runtime', 'wp-element'), 'version' => '6b89b42100e2ca63a1d3'); diff --git a/build/Blocks/table-of-contents/view.js b/build/Blocks/table-of-contents/view.js index 92d1f2f..d8af1a0 100644 --- a/build/Blocks/table-of-contents/view.js +++ b/build/Blocks/table-of-contents/view.js @@ -1 +1 @@ -(()=>{var e={694(e,t,n){"use strict";var r=n(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},556(e,t,n){e.exports=n(694)()},925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},887(e,t,n){"use strict";var r=n(305),o=n(994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(634)),a=o(n(693)),l=o(n(847)),s=r(n(609)),c=n(556),u=o(n(894));function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{"use strict";const e=window.wp.element,t=window.ReactJSXRuntime;var r=n(609),o=n(906);const{entries:i,setPrototypeOf:a,isFrozen:l,getPrototypeOf:s,getOwnPropertyDescriptor:c}=Object;let{freeze:u,seal:d,create:f}=Object,{apply:p,construct:m}="undefined"!=typeof Reflect&&Reflect;u||(u=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:w;a&&a(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(l(t)||(t[r]=e),o=e)}e[o]=!0}return e}function k(e){for(let t=0;t/gm),X=d(/\$\{[\w\W]*/gm),V=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=d(/^aria-[\-\w]+$/),J=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),Q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=d(/^html$/i),te=d(/^[a-z][.\w]*(-[.\w]+)+$/i);var ne=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:te,DATA_ATTR:V,DOCTYPE_NAME:ee,ERB_EXPR:K,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:Z,MUSTACHE_EXPR:q,TMPLIT_EXPR:X});const re=function(){return"undefined"==typeof window?null:window};var oe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:c,Element:d,NodeFilter:p,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:R,trustedTypes:k}=t,q=d.prototype,K=L(q,"cloneNode"),X=L(q,"remove"),V=L(q,"nextSibling"),$=L(q,"childNodes"),Z=L(q,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,te="";const{implementation:oe,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:le}=r,{importNode:se}=o;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Z&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:me,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:be,CUSTOM_ELEMENT:ve}=ne;let{IS_ALLOWED_URI:ye}=ne,ge=null;const we=I({},[...M,...P,...j,...U,...H]);let Te=null;const Se=I({},[...B,...G,...W,...Y]);let xe=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,Ne=null;const Oe=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ae=!0,_e=!0,Ce=!1,Re=!0,Ie=!1,ke=!0,De=!1,Le=!1,Me=!1,Pe=!1,je=!1,Fe=!1,Ue=!0,ze=!1,He=!0,Be=!1,Ge={},We=null;const Ye=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Ke=I({},["audio","video","img","source","image","track"]);let Xe=null;const Ve=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Qe=Ze,et=!1,tt=null;const nt=I({},[$e,Je,Ze],T);let rt=I({},["mi","mo","mn","ms","mtext"]),ot=I({},["annotation-xml"]);const it=I({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let st=null,ct=null;const ut=r.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=D(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?T:w,ge=O(e,"ALLOWED_TAGS")?I({},e.ALLOWED_TAGS,st):we,Te=O(e,"ALLOWED_ATTR")?I({},e.ALLOWED_ATTR,st):Se,tt=O(e,"ALLOWED_NAMESPACES")?I({},e.ALLOWED_NAMESPACES,T):nt,Xe=O(e,"ADD_URI_SAFE_ATTR")?I(D(Ve),e.ADD_URI_SAFE_ATTR,st):Ve,qe=O(e,"ADD_DATA_URI_TAGS")?I(D(Ke),e.ADD_DATA_URI_TAGS,st):Ke,We=O(e,"FORBID_CONTENTS")?I({},e.FORBID_CONTENTS,st):Ye,Ee=O(e,"FORBID_TAGS")?I({},e.FORBID_TAGS,st):D({}),Ne=O(e,"FORBID_ATTR")?I({},e.FORBID_ATTR,st):D({}),Ge=!!O(e,"USE_PROFILES")&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,ke=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Ue=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,He=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||J,Qe=e.NAMESPACE||Ze,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,xe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(_e=!1),je&&(Pe=!0),Ge&&(ge=I({},H),Te=f(null),!0===Ge.html&&(I(ge,M),I(Te,B)),!0===Ge.svg&&(I(ge,P),I(Te,G),I(Te,Y)),!0===Ge.svgFilters&&(I(ge,j),I(Te,G),I(Te,Y)),!0===Ge.mathMl&&(I(ge,U),I(Te,W),I(Te,Y))),O(e,"ADD_TAGS")||(Oe.tagCheck=null),O(e,"ADD_ATTR")||(Oe.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Oe.tagCheck=e.ADD_TAGS:(ge===we&&(ge=D(ge)),I(ge,e.ADD_TAGS,st))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Oe.attributeCheck=e.ADD_ATTR:(Te===Se&&(Te=D(Te)),I(Te,e.ADD_ATTR,st))),e.ADD_URI_SAFE_ATTR&&I(Xe,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(We===Ye&&(We=D(We)),I(We,e.FORBID_CONTENTS,st)),e.ADD_FORBID_CONTENTS&&(We===Ye&&(We=D(We)),I(We,e.ADD_FORBID_CONTENTS,st)),He&&(ge["#text"]=!0),De&&I(ge,["html","head","body"]),ge.table&&(I(ge,["tbody"]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,te=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(k,a)),null!==Q&&"string"==typeof te&&(te=Q.createHTML(""));u&&u(e),ct=e}},pt=I({},[...P,...j,...F]),mt=I({},[...U,...z]),ht=function(e){y(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){X(e)}},bt=function(e,t){try{y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||je)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){let t=null,n=null;if(Me)e=""+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Qe===Ze&&(e=''+e+"");const o=Q?Q.createHTML(e):e;if(Qe===Ze)try{t=(new R).parseFromString(o,at)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?te:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Qe===Ze?le.call(t,De?"html":"body")[0]:De?t.documentElement:i},yt=function(e){return ie.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},gt=function(e){return e instanceof C&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof m)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof c&&e instanceof c};function Tt(e,t,r){h(e,e=>{e.call(n,t,r,ct)})}const St=function(e){let t=null;if(Tt(ce.beforeSanitizeElements,e,null),gt(e))return ht(e),!0;const r=st(e.nodeName);if(Tt(ce.uponSanitizeElement,e,{tagName:r,allowedTags:ge}),ke&&e.hasChildNodes()&&!wt(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(ke&&8===e.nodeType&&A(/<[/\w]/g,e.data))return ht(e),!0;if(!(Oe.tagCheck instanceof Function&&Oe.tagCheck(r))&&(!ge[r]||Ee[r])){if(!Ee[r]&&Et(r)){if(xe.tagNameCheck instanceof RegExp&&A(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}if(He&&!We[r]){const t=Z(e)||e.parentNode,n=$(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=K(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,V(e))}}return ht(e),!0}return e instanceof d&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=w(e.tagName),r=w(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(pt[n]):e.namespaceURI===$e?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Je?"math"===n&&ot[r]:Boolean(mt[n]):e.namespaceURI===Ze?!(t.namespaceURI===Je&&!ot[r])&&!(t.namespaceURI===$e&&!rt[r])&&!mt[n]&&(it[n]||!pt[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,h([ue,de,fe],e=>{t=x(t,e," ")}),e.textContent!==t&&(y(n.removed,{element:e.cloneNode()}),e.textContent=t)),Tt(ce.afterSanitizeElements,e,null),!1):(ht(e),!0)},xt=function(e,t,n){if(Ne[t])return!1;if(Ue&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(_e&&!Ne[t]&&A(pe,t));else if(Ae&&A(me,t));else if(Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e));else if(!Te[t]||Ne[t]){if(!(Et(e)&&(xe.tagNameCheck instanceof RegExp&&A(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&A(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t,e))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&A(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(Xe[t]);else if(A(ye,x(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!qe[e])if(Ce&&!A(he,x(n,be,"")));else if(n)return!1;return!0},Et=function(e){return"annotation-xml"!==e&&S(e,ve)},Nt=function(e){Tt(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||gt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:l,value:s}=i,c=st(a),u=s;let d="value"===a?u:N(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Tt(ce.uponSanitizeAttribute,e,r),d=r.attrValue,!ze||"id"!==c&&"name"!==c||(bt(a,e),d="user-content-"+d),ke&&A(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){bt(a,e);continue}if("attributename"===c&&S(d,"href")){bt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){bt(a,e);continue}if(!Re&&A(/\/>/i,d)){bt(a,e);continue}Ie&&h([ue,de,fe],e=>{d=x(d,e," ")});const f=st(e.nodeName);if(xt(f,c,d)){if(Q&&"object"==typeof k&&"function"==typeof k.getAttributeType)if(l);else switch(k.getAttributeType(f,c)){case"TrustedHTML":d=Q.createHTML(d);break;case"TrustedScriptURL":d=Q.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),gt(e)?ht(e):v(n.removed)}catch(t){bt(a,e)}}else bt(a,e)}Tt(ce.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const r=yt(t);for(Tt(ce.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Tt(ce.uponSanitizeShadowNode,n,null),St(n),Nt(n),n.content instanceof l&&e(n.content);Tt(ce.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Le||ft(t),n.removed=[],"string"==typeof e&&(Be=!1),Be){if(e.nodeName){const t=st(e.nodeName);if(!ge[t]||Ee[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=vt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Pe&&!Ie&&!De&&-1===e.indexOf("<"))return Q&&Fe?Q.createHTML(e):e;if(r=vt(e),!r)return Pe?null:Fe?te:""}r&&Me&&ht(r.firstChild);const u=yt(Be?e:r);for(;a=u.nextNode();)St(a),Nt(a),a.content instanceof l&&Ot(a.content);if(Be)return e;if(Pe){if(je)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(Te.shadowroot||Te.shadowrootmode)&&(s=se.call(o,s,!0)),s}let d=De?r.outerHTML:r.innerHTML;return De&&ge["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&A(ee,r.ownerDocument.doctype.name)&&(d="\n"+d),Ie&&h([ue,de,fe],e=>{d=x(d,e," ")}),Q&&Fe?Q.createHTML(d):d},n.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},n.clearConfig=function(){ct=null,Le=!1},n.isValidAttribute=function(e,t,n){ct||ft({});const r=st(e),o=st(t);return xt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&y(ce[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=b(ce[e],t);return-1===n?void 0:g(ce[e],n,1)[0]}return v(ce[e])},n.removeHooks=function(e){ce[e]=[]},n.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ie=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ae=ie.join(","),le="undefined"==typeof Element,se=le?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ce=!le&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ue=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):ue(e.parentNode))},de=function(e,t,n){if(ue(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ae));return t&&se.call(e,ae)&&r.unshift(e),r.filter(n)},fe=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!ue(i,!1))if("SLOT"===i.tagName){var a=i.assignedElements(),l=a.length?a:i.children,s=fe(l,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{se.call(i,ae)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!ue(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=fe(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},pe=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},me=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!pe(e)?0:e.tabIndex},he=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},be=function(e){return"INPUT"===e.tagName},ve=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ye=function(e,t){return!(t.disabled||function(e){return be(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=se.call(e,"details>summary:first-of-type")?e.parentElement:e;if(se.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ve(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,l=ce(e);if(a&&!a.shadowRoot&&!0===r(a))return ve(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=i}if(function(e){var t,n,r,o,i=e&&ce(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var s,c,u;l=!(null===(c=a=null===(s=i=ce(a))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},Te=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,a=function(e,t){var n=me(e);return n<0&&t&&!pe(e)?0:n}(i,o),l=o?Te(e.candidates):i;0===a?o?t.push.apply(t,l):t.push(i):n.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:l})}),n.sort(he).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Se=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==se.call(e,ae)&&ge(t,e)},xe=ie.concat("iframe:not([inert]):not([inert] *)").join(","),Ee=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==se.call(e,xe)&&ye(t,e)};function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t0?e[e.length-1]:null},activateTrap:function(e,t){t!==Ie.getActiveTrap(e)&&Ie.pauseTrap(e);var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),Ie.unpauseTrap(e)},pauseTrap:function(e){var t=Ie.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=Ie.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},ke=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},De=function(e){return ke(e)&&!e.shiftKey},Le=function(e){return ke(e)&&e.shiftKey},Me=function(e){return setTimeout(e,0)},Pe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},o=n.hasFallback,a=void 0!==o&&o,l=n.params,s=void 0===l?[]:l,c=i[e];if("function"==typeof c&&(c=c.apply(void 0,function(e){if(Array.isArray(e))return Ne(e)}(t=s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Re(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===c&&(c=void 0),!c){if(void 0===c||!1===c)return c;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=c;if("string"==typeof c){try{u=r.querySelector(c)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!u&&!a)throw new Error("`".concat(e,"` as selector refers to no known node"))}return u},u=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!Ee(e,i.tabbableOptions))if(s(r.activeElement)>=0)e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?fe([e],t.includeContainer,{filter:ge.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:we}):de(e,t.includeContainer,ge.bind(null,t)),Te(n)}(e,i.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?fe([e],t.includeContainer,{filter:ye.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):de(e,t.includeContainer,ye.bind(null,t))}(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find(function(e){return Se(e)}),l=n.slice().reverse().find(function(e){return Se(e)}),s=!!t.find(function(e){return me(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?r?n.slice(n.indexOf(e)+1).find(function(e){return Se(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return Se(e)}):t[o+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?f(t.shadowRoot):t},p=function(e){!1!==e&&e!==f(document)&&(e&&e.focus?(e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):p(u()))},m=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=void 0!==r&&r;t=t||je(n),d();var l=null;if(a.tabbableGroups.length>0){var u=s(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)l=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||Ee(t,i.tabbableOptions)&&!Se(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=0===p?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];l=me(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else ke(n)||(l=f.nextTabbableNode(t,!1))}else{var b=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(b<0&&(f.container===t||Ee(t,i.tabbableOptions)&&!Se(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(b=u),b>=0){var v=b===a.tabbableGroups.length-1?0:b+1,y=a.tabbableGroups[v];l=me(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else ke(n)||(l=f.nextTabbableNode(t))}}else l=c("fallbackFocus");return l},b=function(e){var t=je(e);s(t,e)>=0||(Pe(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):Pe(i.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=je(e),n=s(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var o=!0;if(a.mostRecentlyFocusedNode)if(me(a.mostRecentlyFocusedNode)>0){var l=s(a.mostRecentlyFocusedNode),c=a.containerGroups[l].tabbableNodes;if(c.length>0){var d=c.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1=0&&(r=c[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return me(e)>0})})||(o=!1);else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(ke(e)&&e.preventDefault(),p(n))}(e,i.isKeyBackward(e))},g=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Pe(i.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},w=function(e){var t=je(e);s(t,e)>=0||Pe(i.clickOutsideDeactivates,e)||Pe(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},T=function(){if(a.active)return Ie.activateTrap(o,n),a.delayInitialFocusTimer=i.delayInitialFocus?Me(function(){p(u())}):p(u()),r.addEventListener("focusin",v,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",w,{capture:!0,passive:!1}),r.addEventListener("keydown",y,{capture:!0,passive:!1}),r.addEventListener("keydown",g),n},S=function(){if(a.active)return r.removeEventListener("focusin",v,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",w,!0),r.removeEventListener("keydown",y,!0),r.removeEventListener("keydown",g),n},x="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}):void 0,E=function(){x&&(x.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){x.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t,s=l(e,"onActivate"),c=l(e,"onPostActivate"),u=l(e,"checkCanFocusTrap"),p=Ie.getActiveTrap(o),m=!1;p&&!p.paused&&(null===(t=p._setSubtreeIsolation)||void 0===t||t.call(p,!1),m=!0);try{u||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(r),null==s||s();var h=function(){u&&d(),T(),E(),i.isolateSubtrees&&n._setSubtreeIsolation(!0),null==c||c()};if(u)return u(a.containers.concat()).then(h,h),this;h()}catch(e){var b;throw p===Ie.getActiveTrap(o)&&m&&(null===(b=p._setSubtreeIsolation)||void 0===b||b.call(p,!0)),e}return this},deactivate:function(e){if(!a.active)return this;var t=Ce({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||n._setSubtreeIsolation(!1),a.alreadySilent.clear(),S(),a.active=!1,a.paused=!1,E(),Ie.deactivateTrap(o,n);var r=l(t,"onDeactivate"),s=l(t,"onPostDeactivate"),c=l(t,"checkCanReturnFocus"),u=l(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var d=function(){Me(function(){u&&p(m(a.nodeFocusedBeforeActivation)),null==s||s()})};return u&&c?(c(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return a.active?(a.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map(function(e){return"string"==typeof e?r.querySelector(e):e}),i.isolateSubtrees&&function(e){a.active&&!a.paused&&n._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t,r=new Set,o=new Set,i=Oe(e);try{for(i.s();!(t=i.n()).done;){var l=t.value;r.add(l);for(var s="undefined"!=typeof ShadowRoot&&l.getRootNode()instanceof ShadowRoot,c=l;c;){r.add(c);var u=c.parentElement,d=[];u?d=u.children:!u&&s&&(d=c.getRootNode().children,u=c.getRootNode().host,s="undefined"!=typeof ShadowRoot&&u.getRootNode()instanceof ShadowRoot);var f,p=Oe(d);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.add(m)}}catch(e){p.e(e)}finally{p.f()}c=u}}}catch(e){i.e(e)}finally{i.f()}r.forEach(function(e){o.delete(e)}),a.adjacentElements=o}(a.containers),a.active&&(d(),i.isolateSubtrees&&!a.paused&&n._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var r=l(t,"onPause"),o=l(t,"onPostPause");null==r||r(),S(),E(),n._setSubtreeIsolation(!1),null==o||o()}else{var i=l(t,"onUnpause"),s=l(t,"onPostUnpause");null==i||i(),n._setSubtreeIsolation(!0),d(),T(),E(),null==s||s()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){var n;e?"aria-hidden"===i.isolateSubtrees?("true"!==t.ariaHidden&&"true"!==(null===(n=t.getAttribute("aria-hidden"))||void 0===n?void 0:n.toLowerCase())||a.alreadySilent.add(t),t.setAttribute("aria-hidden","true")):((t.inert||t.hasAttribute("inert"))&&a.alreadySilent.add(t),t.setAttribute("inert",!0)):a.alreadySilent.has(t)||("aria-hidden"===i.isolateSubtrees?t.removeAttribute("aria-hidden"):t.removeAttribute("inert"))})}}}),n.updateContainerElements(e),n};function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"yard-toc-subheading-list-collapse-button",onClick:function(){return u(s)},"aria-expanded":!l,"aria-controls":"yard-toc-subheading-list-"+s,children:[h?(0,t.jsx)("span",{className:"yard-toc-subheading-list-collapse-button-icon",dangerouslySetInnerHTML:{__html:oe.sanitize(h)}}):m,(0,t.jsx)("span",{className:"yard-toc-subheading-list-collapse-button sr-only",children:l?"Ingeklapt":"Uitgeklapt"})]}),(0,t.jsx)(o.Ay,{isOpen:!l,children:(0,t.jsx)("ul",{id:"yard-toc-subheading-list-"+s,className:"yard-toc-subheading-list",children:r.map(function(e,n){var r=e.getAttribute(null!=p?p:"")||e.textContent,o=e.id||He(e.textContent||"");return(0,t.jsx)("li",{className:"yard-toc-list-item",children:(0,t.jsx)(Be,{heading:e,isActive:o===i,onClick:c,content:r},n)},n)})})})]})]},s)},We=(0,t.jsx)("svg",{className:"yard-toc-mobile-button-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:45,height:45,children:(0,t.jsx)("path",{d:"M112 48L16 48l0 96 96 0 0-96zm72 24l-24 0 0 48 24 0 304 0 24 0 0-48-24 0L184 72zm0 160l-24 0 0 48 24 0 304 0 24 0 0-48-24 0-304 0zm0 160l-24 0 0 48 24 0 304 0 24 0 0-48-24 0-304 0zM16 208l0 96 96 0 0-96-96 0zm96 160l-96 0 0 96 96 0 0-96z"})}),Ye=function(e){var n=e.isTOCOpen,r=e.onClick,o=e.buttonRef,i=e.icon,a=e.iconHtml,l=e.text;return(0,t.jsxs)("button",{ref:o,className:"yard-toc-mobile-button","aria-expanded":n,"aria-controls":"yard-toc-container",onClick:r,children:[a?(0,t.jsx)("span",{className:"yard-toc-mobile-button-icon",dangerouslySetInnerHTML:{__html:oe.sanitize(a)}}):i,(0,t.jsx)("span",{className:"yard-toc-mobile-button-text",children:l})]})},qe=(0,t.jsx)("svg",{className:"yard-toc-subheading-list-collapse-button-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:18,height:18,children:(0,t.jsx)("path",{d:"M256 417.9l17-17L465 209l17-17L448 158.1l-17 17-175 175L81 175l-17-17L30.1 192l17 17L239 401l17 17z"})}),Ke=function(e){var n=e.contentSelector,o=e.bodyClassName,i=void 0===o?"body-yard-toc-is-open":o,a=e.headingsSelector,l=void 0===a?"h2:not(.yard-toc-is-excluded), h3:not(.yard-toc-is-excluded)":a,s=e.includeSubheading,c=void 0===s||s,u=e.mobileButtonIcon,d=void 0===u?We:u,f=e.mobileButtonIconHtml,p=void 0===f?"":f,m=e.mobileButtonText,h=void 0===m?"Inhoudsopgave":m,b=e.observerOptions,v=void 0===b?{root:null,rootMargin:"-10% 0px -73% 0px",threshold:0}:b,y=e.titleText,g=void 0===y?"Op deze pagina":y,w=e.overwriteTextDataAttribute,T=void 0===w?"data-yard-toc-overwrite-heading":w,S=e.subheadingListCollapseIcon,x=void 0===S?qe:S,E=e.subheadingListCollapseIconHtml,N=void 0===E?"":E,O=e.viewportBreakpoint,A=void 0===O?782:O,_=(0,r.useState)(!1),C=_[0],R=_[1],I=(0,r.useState)({}),k=I[0],D=I[1],L=(0,r.useRef)(null),M=(0,r.useRef)(null),P=function(e,t){var n=(0,r.useState)([]),o=n[0],i=n[1];return(0,r.useEffect)(function(){i(function(){var n=document.querySelector(e);if(!n)return[];var r=Array.from(n.querySelectorAll(t)),o=[],i=null;return r.forEach(function(e){"h2"===e.tagName.toLowerCase()?(i&&o.push(i),i={element:e,children:[]}):"h3"===e.tagName.toLowerCase()&&i&&i.children.push(e)}),i&&o.push(i),o}())},[e,t]),o}(n,l),j=function(e){var t=e.tocElements,n=e.setCollapsedSections,o=e.observerOptions,i=(0,r.useState)(""),a=i[0],l=i[1],s=(0,r.useRef)(null);return(0,r.useEffect)(function(){if(t.length>0){var e=t[0].element.id||He(t[0].element.textContent||"");l(e)}},[t]),(0,r.useEffect)(function(){if(t.length)return s.current=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var r=e.target,o=r.id,i=r.tagName;if(l(o),"H2"===i){var a=t.findIndex(function(e){return e.element.id===o});-1!==a&&n(function(e){var t=ze({},e);return Object.keys(t).forEach(function(e){t[Number(e)]=!0}),t[a]=!1,JSON.stringify(e)!==JSON.stringify(t)?t:e})}if("H3"===i){var s=t.findIndex(function(t){return t.children.includes(e.target)});-1!==s&&n(function(e){var t=ze({},e);return Object.keys(t).forEach(function(e){t[Number(e)]=!0}),t[s]=!1,JSON.stringify(e)!==JSON.stringify(t)?t:e})}}})},o),t.flatMap(function(e){var t=e.element,n=e.children;return[t].concat(n)}).forEach(function(e){var t;return null==(t=s.current)?void 0:t.observe(e)}),function(){var e;null==(e=s.current)||e.disconnect()}},[t]),a}({tocElements:P,setCollapsedSections:D,observerOptions:v});!function(e,t){(0,r.useEffect)(function(){var n=t.current;if(n){var r=Ue(n,{allowOutsideClick:!0,returnFocusOnDeactivate:!1});return e?r.activate():r.deactivate(),function(){r.deactivate()}}},[e,t])}(C,L),function(e){var t=e.isTOCOpen,n=e.tocRef,o=e.buttonRef,i=e.setIsTOCOpen,a=e.viewportBreakpoint,l=e.bodyClassName;(0,r.useEffect)(function(){var e=function(e){var t=n.current,r=o.current;t&&!t.contains(e.target)&&r&&!r.contains(e.target)&&(i(!1),document.body.classList.remove(l))};return t&&window.innerWidthe.getAttribute(t)||window.yardTOC&&window.yardTOC[n]||void 0,Ve=(e,t,n)=>{const r=e.getAttribute(t);return null!==r?"true"===r:window.yardTOC&&void 0!==window.yardTOC[n]?window.yardTOC[n]:void 0},$e=e=>window.yardTOC&&void 0!==window.yardTOC[e]?window.yardTOC[e]:void 0;document.addEventListener("DOMContentLoaded",()=>{const n=document.getElementById("js-yard-table-of-contents");if(!n||!window.yardTOC)return;const r={contentSelector:Xe(n,"data-content-selector","contentSelector"),headingsSelector:Xe(n,"data-heading-selector","headingsSelector"),includeSubheading:Ve(n,"data-include-subheading","includeSubheading"),bodyClassName:$e("bodyClassName"),mobileButtonIcon:$e("mobileButtonIcon"),mobileButtonIconHtml:$e("mobileButtonIconHtml"),mobileButtonText:$e("mobileButtonText"),observerOptions:$e("observerOptions"),overwriteTextDataAttribute:$e("overwriteTextDataAttribute"),titleText:$e("titleText"),subheadingListCollapseIcon:$e("subheadingListCollapseIcon"),subheadingListCollapseIconHtml:$e("subheadingListCollapseIconHtml"),viewportBreakpoint:$e("viewportBreakpoint")};(0,e.createRoot)(n).render((0,t.jsx)(Ke,{...r}))})})()})(); \ No newline at end of file +(()=>{"use strict";const e=window.wp.element;function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n2?n-2:0),r=2;r1?t-1:0),o=1;o"u"?null:P(BigInt.prototype.toString),I=typeof Symbol>"u"?null:P(Symbol.prototype.toString),_=P(Object.prototype.hasOwnProperty),D=P(Object.prototype.toString),k=P(RegExp.prototype.test),x=(L=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:T;if(r&&r(e,null),!g(t))return e;let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(a(t)||(t[o]=e),r=e)}e[r]=!0}return e}function M(e){for(let t=0;t/g),Q=s(/\${[\w\W]*/g),ee=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=s(/^aria-[\-\w]+$/),ne=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=s(/^(?:\w+script|data):/i),re=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ae=s(/^html$/i),ie=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var _n=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window;const n=t=>e(t);if(n.version="3.4.8",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const a=r,i=a.currentScript;t.DocumentFragment;const l=t.HTMLTemplateElement,s=t.Node,d=t.Element,f=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const p=t.DOMParser,L=t.trustedTypes,P=d.prototype,M=U(P,"cloneNode"),le=U(P,"remove"),ce=U(P,"nextSibling"),se=U(P,"childNodes"),ue=U(P,"parentNode"),de=U(P,"shadowRoot"),fe=U(P,"attributes"),pe=s&&s.prototype?U(s.prototype,"nodeType"):null,me=s&&s.prototype?U(s.prototype,"nodeName"):null;if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let he,be="",ye=0;const ve=function(e){if(ye>0)throw x('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');ye++;try{return he.createHTML(e)}finally{ye--}},ge=r,Te=ge.implementation,we=ge.createNodeIterator,Se=ge.createDocumentFragment,Ee=ge.getElementsByTagName,Ne=a.importNode;let Ae={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof o&&"function"==typeof ue&&Te&&void 0!==Te.createHTMLDocument;const Oe=J,Re=Z,Ce=Q,Ie=ee,_e=te,De=oe,ke=re,xe=ie;let Le=ne,Pe=null;const Fe=F({},[...B,...j,...H,...W,...q]);let Me=null;const ze=F({},[...K,...$,...V,...X]);let Ue=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Be=null,je=null;const He=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ge=!0,We=!0,Ye=!1,qe=!0,Ke=!1,$e=!0,Ve=!1,Xe=!1,Je=!1,Ze=!1,Qe=!1,et=!1,tt=!0,nt=!1;const ot="user-content-";let rt=!0,at=!1,it={},lt=null;const ct=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let st=null;const ut=F({},["audio","video","img","source","image","track"]);let dt=null;const ft=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pt="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let bt=ht,yt=!1,vt=null;const gt=F({},[pt,mt,ht],w);let Tt=F({},["mi","mo","mn","ms","mtext"]),wt=F({},["annotation-xml"]);const St=F({},["title","style","font","a","script"]);let Et=null;const Nt=["application/xhtml+xml","text/html"];let At=null,Ot=null;const Rt=r.createElement("form"),Ct=function(e){return e instanceof RegExp||e instanceof Function},It=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ot&&Ot===e)return;(!e||"object"!=typeof e)&&(e={}),e=z(e),Et=-1===Nt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,At="application/xhtml+xml"===Et?w:T,Pe=_(e,"ALLOWED_TAGS")&&g(e.ALLOWED_TAGS)?F({},e.ALLOWED_TAGS,At):Fe,Me=_(e,"ALLOWED_ATTR")&&g(e.ALLOWED_ATTR)?F({},e.ALLOWED_ATTR,At):ze,vt=_(e,"ALLOWED_NAMESPACES")&&g(e.ALLOWED_NAMESPACES)?F({},e.ALLOWED_NAMESPACES,w):gt,dt=_(e,"ADD_URI_SAFE_ATTR")&&g(e.ADD_URI_SAFE_ATTR)?F(z(ft),e.ADD_URI_SAFE_ATTR,At):ft,st=_(e,"ADD_DATA_URI_TAGS")&&g(e.ADD_DATA_URI_TAGS)?F(z(ut),e.ADD_DATA_URI_TAGS,At):ut,lt=_(e,"FORBID_CONTENTS")&&g(e.FORBID_CONTENTS)?F({},e.FORBID_CONTENTS,At):ct,Be=_(e,"FORBID_TAGS")&&g(e.FORBID_TAGS)?F({},e.FORBID_TAGS,At):z({}),je=_(e,"FORBID_ATTR")&&g(e.FORBID_ATTR)?F({},e.FORBID_ATTR,At):z({}),it=!!_(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?z(e.USE_PROFILES):e.USE_PROFILES),Ge=!1!==e.ALLOW_ARIA_ATTR,We=!1!==e.ALLOW_DATA_ATTR,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ke=e.SAFE_FOR_TEMPLATES||!1,$e=!1!==e.SAFE_FOR_XML,Ve=e.WHOLE_DOCUMENT||!1,Ze=e.RETURN_DOM||!1,Qe=e.RETURN_DOM_FRAGMENT||!1,et=e.RETURN_TRUSTED_TYPE||!1,Je=e.FORCE_BODY||!1,tt=!1!==e.SANITIZE_DOM,nt=e.SANITIZE_NAMED_PROPS||!1,rt=!1!==e.KEEP_CONTENT,at=e.IN_PLACE||!1,Le=function(e){try{return k(e,""),!0}catch{return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ne,bt="string"==typeof e.NAMESPACE?e.NAMESPACE:ht,Tt=_(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?z(e.MATHML_TEXT_INTEGRATION_POINTS):F({},["mi","mo","mn","ms","mtext"]),wt=_(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?z(e.HTML_INTEGRATION_POINTS):F({},["annotation-xml"]);const t=_(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?z(e.CUSTOM_ELEMENT_HANDLING):u(null);if(Ue=u(null),_(t,"tagNameCheck")&&Ct(t.tagNameCheck)&&(Ue.tagNameCheck=t.tagNameCheck),_(t,"attributeNameCheck")&&Ct(t.attributeNameCheck)&&(Ue.attributeNameCheck=t.attributeNameCheck),_(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ue.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Ke&&(We=!1),Qe&&(Ze=!0),it&&(Pe=F({},q),Me=u(null),!0===it.html&&(F(Pe,B),F(Me,K)),!0===it.svg&&(F(Pe,j),F(Me,$),F(Me,X)),!0===it.svgFilters&&(F(Pe,H),F(Me,$),F(Me,X)),!0===it.mathMl&&(F(Pe,W),F(Me,V),F(Me,X))),He.tagCheck=null,He.attributeCheck=null,_(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?He.tagCheck=e.ADD_TAGS:g(e.ADD_TAGS)&&(Pe===Fe&&(Pe=z(Pe)),F(Pe,e.ADD_TAGS,At))),_(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?He.attributeCheck=e.ADD_ATTR:g(e.ADD_ATTR)&&(Me===ze&&(Me=z(Me)),F(Me,e.ADD_ATTR,At))),_(e,"ADD_URI_SAFE_ATTR")&&g(e.ADD_URI_SAFE_ATTR)&&F(dt,e.ADD_URI_SAFE_ATTR,At),_(e,"FORBID_CONTENTS")&&g(e.FORBID_CONTENTS)&&(lt===ct&&(lt=z(lt)),F(lt,e.FORBID_CONTENTS,At)),_(e,"ADD_FORBID_CONTENTS")&&g(e.ADD_FORBID_CONTENTS)&&(lt===ct&&(lt=z(lt)),F(lt,e.ADD_FORBID_CONTENTS,At)),rt&&(Pe["#text"]=!0),Ve&&F(Pe,["html","head","body"]),Pe.table&&(F(Pe,["tbody"]),delete Be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=he;he=e.TRUSTED_TYPES_POLICY;try{be=ve("")}catch(e){throw he=t,e}}else void 0===he&&null!==e.TRUSTED_TYPES_POLICY&&(he=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(L,i)),he&&"string"==typeof be&&(be=ve(""));(Ae.uponSanitizeElement.length>0||Ae.uponSanitizeAttribute.length>0)&&Pe===Fe&&(Pe=z(Pe)),Ae.uponSanitizeAttribute.length>0&&Me===ze&&(Me=z(Me)),c&&c(e),Ot=e},_t=F({},[...j,...H,...G]),Dt=F({},[...W,...Y]),kt=function(e){y(n.removed,{element:e});try{ue(e).removeChild(e)}catch{le(e)}},xt=function(e,t){try{y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ze||Qe)try{kt(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Lt=function(e){let t=null,n=null;if(Je)e=""+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Et&&bt===ht&&(e=''+e+"");const o=he?ve(e):e;if(bt===ht)try{t=(new p).parseFromString(o,Et)}catch{}if(!t||!t.documentElement){t=Te.createDocument(bt,"template",null);try{t.documentElement.innerHTML=yt?be:o}catch{}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),bt===ht?Ee.call(t,Ve?"html":"body")[0]:Ve?t.documentElement:a},Pt=function(e){return we.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ft=function(e){var t,n;e.normalize();const o=we.call(e.ownerDocument||e,e,f.SHOW_TEXT|f.SHOW_COMMENT|f.SHOW_CDATA_SECTION|f.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;){let e=r.data;m([Oe,Re,Ce],t=>{e=E(e,t," ")}),r.data=e,r=o.nextNode()}const a=null!==(t=null===(n=e.querySelectorAll)||void 0===n?void 0:n.call(e,"template"))&&void 0!==t?t:[];m(Array.from(a),e=>{zt(e.content)&&Ft(e.content)})},Mt=function(e){const t=me?me(e):null;return"string"==typeof t&&"form"===At(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==fe(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==pe(e)||e.childNodes!==se(e))},zt=function(e){if(!pe||"object"!=typeof e||null===e)return!1;try{return 11===pe(e)}catch{return!1}},Ut=function(e){if(!pe||"object"!=typeof e||null===e)return!1;try{return"number"==typeof pe(e)}catch{return!1}};function Bt(e,t,o){m(e,e=>{e.call(n,t,o,Ot)})}const jt=function(e){let t=null;if(Bt(Ae.beforeSanitizeElements,e,null),Mt(e))return kt(e),!0;const o=At(me?me(e):e.nodeName);if(Bt(Ae.uponSanitizeElement,e,{tagName:o,allowedTags:Pe}),$e&&e.hasChildNodes()&&!Ut(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent)||$e&&e.namespaceURI===ht&&"style"===o&&Ut(e.firstElementChild)||7===e.nodeType||$e&&8===e.nodeType&&k(/<[/\w]/g,e.data))return kt(e),!0;if(Be[o]||!(He.tagCheck instanceof Function&&He.tagCheck(o))&&!Pe[o]){if(!Be[o]&&Wt(o)&&(Ue.tagNameCheck instanceof RegExp&&k(Ue.tagNameCheck,o)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(o)))return!1;if(rt&&!lt[o]){const t=ue(e),n=se(e);if(n&&t)for(let o=n.length-1;o>=0;--o){const r=M(n[o],!0);t.insertBefore(r,ce(e))}}return kt(e),!0}return 1===(pe?pe(e):e.nodeType)&&!function(e){let t=ue(e);(!t||!t.tagName)&&(t={namespaceURI:bt,tagName:"template"});const n=T(e.tagName),o=T(t.tagName);return!!vt[e.namespaceURI]&&(e.namespaceURI===mt?t.namespaceURI===ht?"svg"===n:t.namespaceURI===pt?"svg"===n&&("annotation-xml"===o||Tt[o]):!!_t[n]:e.namespaceURI===pt?t.namespaceURI===ht?"math"===n:t.namespaceURI===mt?"math"===n&&wt[o]:!!Dt[n]:e.namespaceURI===ht?!(t.namespaceURI===mt&&!wt[o]||t.namespaceURI===pt&&!Tt[o])&&!Dt[n]&&(St[n]||!_t[n]):!("application/xhtml+xml"!==Et||!vt[e.namespaceURI]))}(e)||("noscript"===o||"noembed"===o||"noframes"===o)&&k(/<\/no(script|embed|frames)/i,e.innerHTML)?(kt(e),!0):(Ke&&3===e.nodeType&&(t=e.textContent,m([Oe,Re,Ce],e=>{t=E(t,e," ")}),e.textContent!==t&&(y(n.removed,{element:e.cloneNode()}),e.textContent=t)),Bt(Ae.afterSanitizeElements,e,null),!1)},Ht=function(e,t,n){if(je[t]||tt&&("id"===t||"name"===t)&&(n in r||n in Rt))return!1;const o=Me[t]||He.attributeCheck instanceof Function&&He.attributeCheck(t,e);if((!We||je[t]||!k(Ie,t))&&(!Ge||!k(_e,t)))if(!o||je[t]){if(!(Wt(e)&&(Ue.tagNameCheck instanceof RegExp&&k(Ue.tagNameCheck,e)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(e))&&(Ue.attributeNameCheck instanceof RegExp&&k(Ue.attributeNameCheck,t)||Ue.attributeNameCheck instanceof Function&&Ue.attributeNameCheck(t,e))||"is"===t&&Ue.allowCustomizedBuiltInElements&&(Ue.tagNameCheck instanceof RegExp&&k(Ue.tagNameCheck,n)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(n))))return!1}else if(!dt[t]&&!k(Le,E(n,ke,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==N(n,"data:")||!st[e])&&(!Ye||k(De,E(n,ke,"")))&&n)return!1;return!0},Gt=F({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wt=function(e){return!Gt[T(e)]&&k(xe,e)},Yt=function(e){Bt(Ae.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Mt(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Me,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],i=a.name,l=a.namespaceURI,c=a.value,s=At(i),u=c;let d="value"===i?u:A(u);if(o.attrName=s,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,Bt(Ae.uponSanitizeAttribute,e,o),d=o.attrValue,nt&&("id"===s||"name"===s)&&0!==N(d,ot)&&(xt(i,e),d=ot+d),$e&&k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){xt(i,e);continue}if("attributename"===s&&S(d,"href")){xt(i,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){xt(i,e);continue}if(!qe&&k(/\/>/i,d)){xt(i,e);continue}Ke&&m([Oe,Re,Ce],e=>{d=E(d,e," ")});const f=At(e.nodeName);if(Ht(f,s,d)){if(he&&"object"==typeof L&&"function"==typeof L.getAttributeType&&!l)switch(L.getAttributeType(f,s)){case"TrustedHTML":d=ve(d);break;case"TrustedScriptURL":d=he.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,i,d):e.setAttribute(i,d),Mt(e)?kt(e):b(n.removed)}catch{xt(i,e)}}else xt(i,e)}Bt(Ae.afterSanitizeAttributes,e,null)},qt=function(e){let t=null;const n=Pt(e);for(Bt(Ae.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Bt(Ae.uponSanitizeShadowNode,t,null),jt(t),Yt(t),zt(t.content)&&qt(t.content),1===(pe?pe(t):t.nodeType)){const e=de?de(t):t.shadowRoot;zt(e)&&(Kt(e),qt(e))}Bt(Ae.afterSanitizeShadowDOM,e,null)},Kt=function(e){const t=pe?pe(e):e.nodeType;if(1===t){const t=de?de(e):e.shadowRoot;zt(t)&&(Kt(t),qt(t))}const n=se?se(e):e.childNodes;if(!n)return;const o=[];m(n,e=>{y(o,e)});for(const e of o)Kt(e);if(1===t){const t=me?me(e):null;if("string"==typeof t&&"template"===At(t)){const t=e.content;zt(t)&&Kt(t)}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,r=null,i=null,l=null;if(yt=!e,yt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ut(e)&&(e=function(e){switch(typeof e){case"string":return e;case"number":return O(e);case"boolean":return R(e);case"bigint":return C?C(e):"0";case"symbol":return I?I(e):"Symbol()";case"undefined":default:return D(e);case"function":case"object":{if(null===e)return D(e);const t=e,n=U(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:D(e)}return D(e)}}}(e),"string"!=typeof e))throw x("dirty is not a string, aborting");if(!n.isSupported)return e;if(Xe||It(t),n.removed=[],"string"==typeof e&&(at=!1),at){const t=me?me(e):e.nodeName;if("string"==typeof t){const e=At(t);if(!Pe[e]||Be[e])throw x("root node is forbidden and cannot be sanitized in-place")}if(Mt(e))throw x("root node is clobbered and cannot be sanitized in-place");Kt(e)}else if(Ut(e))o=Lt("\x3c!----\x3e"),r=o.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?o=r:o.appendChild(r),Kt(r);else{if(!Ze&&!Ke&&!Ve&&-1===e.indexOf("<"))return he&&et?ve(e):e;if(o=Lt(e),!o)return Ze?null:et?be:""}o&&Je&&kt(o.firstChild);const c=Pt(at?e:o);for(;i=c.nextNode();)jt(i),Yt(i),zt(i.content)&&qt(i.content);if(at)return Ke&&Ft(e),e;if(Ze){if(Ke&&Ft(o),Qe)for(l=Se.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Me.shadowroot||Me.shadowrootmode)&&(l=Ne.call(a,l,!0)),l}let s=Ve?o.outerHTML:o.innerHTML;return Ve&&Pe["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&k(ae,o.ownerDocument.doctype.name)&&(s="\n"+s),Ke&&m([Oe,Re,Ce],e=>{s=E(s,e," ")}),he&&et?ve(s):s},n.setConfig=function(){It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Xe=!0},n.clearConfig=function(){Ot=null,Xe=!1},n.isValidAttribute=function(e,t,n){Ot||It({});const o=At(e),r=At(t);return Ht(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&y(Ae[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=h(Ae[e],t);return-1===n?void 0:v(Ae[e],n,1)[0]}return b(Ae[e])},n.removeHooks=function(e){Ae[e]=[]},n.removeAllHooks=function(){Ae={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const le=e=>e?e.toString().normalize("NFKD").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-"):"",ce=({heading:e,isActive:t,onClick:n,content:o})=>{const r=e.id||le(e.textContent||"");return e.id||(e.id=r),React.createElement("a",{href:`#${r}`,className:"yard-toc-link "+(t?"is-active":""),onClick:t=>{t.preventDefault(),n(e)}},o)},se=({heading:e,h3Elements:t,activeHeadingId:n,isActive:o,isCollapsed:r,index:a,onClick:i,toggleSection:l,content:c,includeSubheading:s,overwriteTextDataAttribute:u,subheadingListCollapseIcon:d,subheadingListCollapseIconHtml:f})=>React.createElement("li",{className:"yard-toc-list-item",key:a},React.createElement(ce,{heading:e,isActive:o,onClick:i,content:c,key:a}),s&&t.length>0&&React.createElement(React.Fragment,null,React.createElement("button",{className:"yard-toc-subheading-list-collapse-button",onClick:()=>l(a),"aria-expanded":!r,"aria-controls":`yard-toc-subheading-list-${a}`},f?React.createElement("span",{className:"yard-toc-subheading-list-collapse-button-icon",dangerouslySetInnerHTML:{__html:_n.sanitize(f)}}):d,React.createElement("span",{className:"yard-toc-subheading-list-collapse-button sr-only"},r?`Toon subhoofdstukken ${c??""}`:`Verberg subhoofdstukken ${c??""}`)),React.createElement("div",{style:{overflow:"hidden",display:"grid",gridTemplateRows:r?"0fr":"1fr",transition:"grid-template-rows 0.3s ease"}},React.createElement("div",{style:{minHeight:0}},React.createElement("ul",{id:`yard-toc-subheading-list-${a}`,className:"yard-toc-subheading-list"},t.map((e,t)=>{const o=e.getAttribute(u??"")||e.textContent,r=e.id||le(e.textContent||"");return React.createElement("li",{className:"yard-toc-list-item",key:t},React.createElement(ce,{key:t,heading:e,isActive:r===n,onClick:i,content:o}))})))))),ue=React.createElement("svg",{className:"yard-toc-mobile-button-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","aria-hidden":"true",width:45,height:45},React.createElement("path",{d:"M112 48L16 48l0 96 96 0 0-96zm72 24l-24 0 0 48 24 0 304 0 24 0 0-48-24 0L184 72zm0 160l-24 0 0 48 24 0 304 0 24 0 0-48-24 0-304 0zm0 160l-24 0 0 48 24 0 304 0 24 0 0-48-24 0-304 0zM16 208l0 96 96 0 0-96-96 0zm96 160l-96 0 0 96 96 0 0-96z"})),de=({isTOCOpen:e,onClick:t,buttonRef:n,icon:o,iconHtml:r,text:a})=>React.createElement("button",{ref:n,className:"yard-toc-mobile-button","aria-expanded":e,"aria-controls":"yard-toc-container",onClick:t},r?React.createElement("span",{className:"yard-toc-mobile-button-icon",dangerouslySetInnerHTML:{__html:_n.sanitize(r)}}):o,React.createElement("span",{className:"yard-toc-mobile-button-text"},a)),fe=React.createElement("svg",{className:"yard-toc-subheading-list-collapse-button-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","aria-hidden":"true",width:18,height:18},React.createElement("path",{d:"M256 417.9l17-17L465 209l17-17L448 158.1l-17 17-175 175L81 175l-17-17L30.1 192l17 17L239 401l17 17z"})),pe=window.React.useEffect,me=window.React.useState,he=window.React.useEffect,be=window.React.useRef,ye=window.React.useState;var ve=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ge=ve.join(","),Te=typeof Element>"u",we=Te?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Se=!Te&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return e?.ownerDocument},Ee=function(e,t){var n;void 0===t&&(t=!0);var o=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===o||"true"===o||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):Ee(e.parentNode))},Ne=function(e,t,n){if(Ee(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ge));return t&&we.call(e,ge)&&o.unshift(e),o.filter(n)},Ae=function(e,t,n){for(var o=[],r=Array.from(e);r.length;){var a=r.shift();if(!Ee(a,!1))if("SLOT"===a.tagName){var i=a.assignedElements(),l=i.length?i:a.children,c=Ae(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:a,candidates:c})}else{we.call(a,ge)&&n.filter(a)&&(t||!e.includes(a))&&o.push(a);var s=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),u=!Ee(s,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(s&&u){var d=Ae(!0===s?a.children:s.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else r.unshift.apply(r,a.children)}}return o},Oe=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Re=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Oe(e)?0:e.tabIndex},Ce=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ie=function(e){return"INPUT"===e.tagName},_e=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},De=function(e,t){return!(t.disabled||function(e){return Ie(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=we.call(e,"details>summary:first-of-type")?e.parentElement:e;if(we.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return _e(e)}else{if("function"==typeof o){for(var a=e;e;){var i=e.parentElement,l=Se(e);if(i&&!i.shadowRoot&&!0===o(i))return _e(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=a}if(function(e){var t,n,o,r,a=e&&Se(e),i=null===(t=a)||void 0===t?void 0:t.host,l=!1;if(a&&a!==e)for(l=!!(null!==(n=i)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(i)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!l&&i;){var c,s,u;l=!(null===(s=i=null===(c=a=Se(i))||void 0===c?void 0:c.host)||void 0===s||null===(u=s.ownerDocument)||void 0===u||!u.contains(i))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},Le=function(e){var t=[],n=[];return e.forEach(function(e,o){var r=!!e.scopeParent,a=r?e.scopeParent:e,i=function(e,t){var n=Re(e);return n<0&&t&&!Oe(e)?0:n}(a,r),l=r?Le(e.candidates):a;0===i?r?t.push.apply(t,l):t.push(a):n.push({documentOrder:o,tabIndex:i,item:e,isScope:r,content:l})}),n.sort(Ce).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Pe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==we.call(e,ge)&&ke(t,e)},Fe=ve.concat("iframe:not([inert]):not([inert] *)").join(","),Me=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==we.call(e,Fe)&&De(t,e)};function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function Be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function He(e){for(var t=1;t0?e[e.length-1]:null},activateTrap:function(e,t){t!==We.getActiveTrap(e)&&We.pauseTrap(e);var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),We.unpauseTrap(e)},pauseTrap:function(e){var t=We.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=We.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Ye=function(e){return"Tab"===e?.key||9===e?.keyCode},qe=function(e){return Ye(e)&&!e.shiftKey},Ke=function(e){return Ye(e)&&e.shiftKey},$e=function(e){return setTimeout(e,0)},Ve=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,r=void 0!==n&&n,i=t.params,l=void 0===i?[]:i,c=a[e];if("function"==typeof c&&(c=c.apply(void 0,function(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ge(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l))),!0===c&&(c=void 0),!c){if(void 0===c||!1===c)return c;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=c;if("string"==typeof c){try{s=o.querySelector(c)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!s&&!r)throw new Error("`".concat(e,"` as selector refers to no known node"))}return s},u=function(){var e=s("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!Me(e,a.tabbableOptions))if(c(o.activeElement)>=0)e=o.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}else null===e&&(e=s("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map(function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Ae([e],t.includeContainer,{filter:ke.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:xe}):Ne(e,t.includeContainer,ke.bind(null,t)),Le(n)}(e,a.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?Ae([e],t.includeContainer,{filter:De.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Ne(e,t.includeContainer,De.bind(null,t))}(e,a.tabbableOptions),o=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,i=n.find(function(e){return Pe(e)}),l=n.slice().reverse().find(function(e){return Pe(e)}),c=!!t.find(function(e){return Re(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:o,lastTabbableNode:r,firstDomTabbableNode:i,lastDomTabbableNode:l,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?o?n.slice(n.indexOf(e)+1).find(function(e){return Pe(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return Pe(e)}):t[r+(o?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(e){return e.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?f(t.shadowRoot):t},p=function(e){if(!1!==e&&e!==f(document)){if(!e||!e.focus)return void p(u());e.focus({preventScroll:!!a.preventScroll}),i.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()}},m=function(e){var t=s("setReturnFocus",{params:[e]});return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,o=e.isBackward,r=void 0!==o&&o;t=t||Xe(n),d();var l=null;if(i.tabbableGroups.length>0){var u=c(t,n),f=u>=0?i.containerGroups[u]:void 0;if(u<0)l=r?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(r){var p=i.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||Me(t,a.tabbableOptions)&&!Pe(t,a.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=0===p?i.tabbableGroups.length-1:p-1,h=i.tabbableGroups[m];l=Re(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else Ye(n)||(l=f.nextTabbableNode(t,!1))}else{var b=i.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(b<0&&(f.container===t||Me(t,a.tabbableOptions)&&!Pe(t,a.tabbableOptions)&&!f.nextTabbableNode(t))&&(b=u),b>=0){var y=b===i.tabbableGroups.length-1?0:b+1,v=i.tabbableGroups[y];l=Re(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else Ye(n)||(l=f.nextTabbableNode(t))}}else l=s("fallbackFocus");return l},b=function(e){var t=Xe(e);if(!(c(t,e)>=0)){if(Ve(a.clickOutsideDeactivates,e))return void n.deactivate({returnFocus:a.returnFocusOnDeactivate});Ve(a.allowOutsideClick,e)||e.preventDefault()}},y=function(e){var t=Xe(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(i.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var o,r=!0;if(i.mostRecentlyFocusedNode)if(Re(i.mostRecentlyFocusedNode)>0){var l=c(i.mostRecentlyFocusedNode),s=i.containerGroups[l].tabbableNodes;if(s.length>0){var d=s.findIndex(function(e){return e===i.mostRecentlyFocusedNode});d>=0&&(a.isKeyForward(i.recentNavEvent)?d+1=0&&(o=s[d-1],r=!1))}}else i.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return Re(e)>0})})||(r=!1);else r=!1;r&&(o=h({target:i.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(i.recentNavEvent)})),p(o||i.mostRecentlyFocusedNode||u())}i.recentNavEvent=void 0},v=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(Ye(e)&&e.preventDefault(),p(n))}(e,a.isKeyBackward(e))},g=function(e){(function(e){return"Escape"===e?.key||"Esc"===e?.key||27===e?.keyCode})(e)&&!1!==Ve(a.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},T=function(e){var t=Xe(e);c(t,e)>=0||Ve(a.clickOutsideDeactivates,e)||Ve(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(i.active)return We.activateTrap(r,n),i.delayInitialFocusTimer=a.delayInitialFocus?$e(function(){p(u())}):p(u()),o.addEventListener("focusin",y,!0),o.addEventListener("mousedown",b,{capture:!0,passive:!1}),o.addEventListener("touchstart",b,{capture:!0,passive:!1}),o.addEventListener("click",T,{capture:!0,passive:!1}),o.addEventListener("keydown",v,{capture:!0,passive:!1}),o.addEventListener("keydown",g),n},S=function(){if(i.active)return o.removeEventListener("focusin",y,!0),o.removeEventListener("mousedown",b,!0),o.removeEventListener("touchstart",b,!0),o.removeEventListener("click",T,!0),o.removeEventListener("keydown",v,!0),o.removeEventListener("keydown",g),n},E=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===i.mostRecentlyFocusedNode})})&&p(u())}):void 0,N=function(){E&&(E.disconnect(),i.active&&!i.paused&&i.containers.map(function(e){E.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t,c=l(e,"onActivate"),s=l(e,"onPostActivate"),u=l(e,"checkCanFocusTrap"),p=We.getActiveTrap(r),m=!1;p&&!p.paused&&(null===(t=p._setSubtreeIsolation)||void 0===t||t.call(p,!1),m=!0);try{u||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=f(o),c?.();var h=function(){u&&d(),w(),N(),a.isolateSubtrees&&n._setSubtreeIsolation(!0),s?.()};if(u)return u(i.containers.concat()).then(h,h),this;h()}catch(e){var b;throw p===We.getActiveTrap(r)&&m&&(null===(b=p._setSubtreeIsolation)||void 0===b||b.call(p,!0)),e}return this},deactivate:function(e){if(!i.active)return this;var t=He({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,i.paused||n._setSubtreeIsolation(!1),i.alreadySilent.clear(),S(),i.active=!1,i.paused=!1,N(),We.deactivateTrap(r,n);var o=l(t,"onDeactivate"),c=l(t,"onPostDeactivate"),s=l(t,"checkCanReturnFocus"),u=l(t,"returnFocus","returnFocusOnDeactivate");o?.();var d=function(){$e(function(){u&&p(m(i.nodeFocusedBeforeActivation)),c?.()})};return u&&s?(s(m(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return i.active?(i.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),a.isolateSubtrees&&function(e){i.active&&!i.paused&&n._setSubtreeIsolation(!1),i.adjacentElements.clear(),i.alreadySilent.clear();var t,o=new Set,r=new Set,a=Ue(e);try{for(a.s();!(t=a.n()).done;){var l=t.value;o.add(l);for(var c=typeof ShadowRoot<"u"&&l.getRootNode()instanceof ShadowRoot,s=l;s;){o.add(s);var u=s.parentElement,d=[];u?d=u.children:!u&&c&&(d=s.getRootNode().children,u=s.getRootNode().host,c=typeof ShadowRoot<"u"&&u.getRootNode()instanceof ShadowRoot);var f,p=Ue(d);try{for(p.s();!(f=p.n()).done;){var m=f.value;r.add(m)}}catch(e){p.e(e)}finally{p.f()}s=u}}}catch(e){a.e(e)}finally{a.f()}o.forEach(function(e){r.delete(e)}),i.adjacentElements=r}(i.containers),i.active&&(d(),a.isolateSubtrees&&!i.paused&&n._setSubtreeIsolation(!0)),N(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(e,t){if(i.paused===e)return this;if(i.paused=e,e){var o=l(t,"onPause"),r=l(t,"onPostPause");o?.(),S(),N(),n._setSubtreeIsolation(!1),r?.()}else{var a=l(t,"onUnpause"),c=l(t,"onPostUnpause");a?.(),n._setSubtreeIsolation(!0),d(),w(),N(),c?.()}return this}},_setSubtreeIsolation:{value:function(e){a.isolateSubtrees&&i.adjacentElements.forEach(function(t){var n;e?"aria-hidden"===a.isolateSubtrees?(("true"===t.ariaHidden||"true"===(null===(n=t.getAttribute("aria-hidden"))||void 0===n?void 0:n.toLowerCase()))&&i.alreadySilent.add(t),t.setAttribute("aria-hidden","true")):((t.inert||t.hasAttribute("inert"))&&i.alreadySilent.add(t),t.setAttribute("inert",!0)):i.alreadySilent.has(t)||("aria-hidden"===a.isolateSubtrees?t.removeAttribute("aria-hidden"):t.removeAttribute("inert"))})}}}),n.updateContainerElements(e),n};const Qe=window.React.useEffect,et=window.React.useEffect,tt=window.React,nt=window.React.useEffect,ot=window.React.useState,rt=window.React.useRef,at=({contentSelector:e,bodyClassName:t="body-yard-toc-is-open",headingsSelector:n="h2:not(.yard-toc-is-excluded), h3:not(.yard-toc-is-excluded)",includeSubheading:o=!0,mobileButtonIcon:r=ue,mobileButtonIconHtml:a="",mobileButtonText:i="Inhoudsopgave",observerOptions:l={root:null,rootMargin:"-10% 0px -73% 0px",threshold:0},titleText:c="Op deze pagina",overwriteTextDataAttribute:s="data-yard-toc-overwrite-heading",subheadingListCollapseIcon:u=fe,subheadingListCollapseIconHtml:d="",viewportBreakpoint:f=782})=>{const[p,m]=ot(!1),[h,b]=ot({}),y=rt(null),v=rt(null),g=((e,t)=>{const[n,o]=me([]);return pe(()=>{o((()=>{const n=document.querySelector(e);if(!n)return[];const o=Array.from(n.querySelectorAll(t)),r=[];let a=null;return o.forEach(e=>{"h2"===e.tagName.toLowerCase()?(a&&r.push(a),a={element:e,children:[]}):"h3"===e.tagName.toLowerCase()&&a&&a.children.push(e)}),a&&r.push(a),r})())},[e,t]),n})(e,n),T=(({tocElements:e,setCollapsedSections:t,observerOptions:n})=>{const[o,r]=ye(""),a=be(null);return he(()=>{if(e.length>0){const t=e[0].element.id||le(e[0].element.textContent||"");r(t)}},[e]),he(()=>{if(e.length)return a.current=new IntersectionObserver(n=>{n.forEach(n=>{if(!n.isIntersecting)return;const{id:o,tagName:a}=n.target;if(r(o),"H2"===a){const n=e.findIndex(({element:e})=>e.id===o);-1!==n&&t(e=>{const t={...e};return Object.keys(t).forEach(e=>{t[Number(e)]=!0}),t[n]=!1,JSON.stringify(e)!==JSON.stringify(t)?t:e})}if("H3"===a){const o=e.findIndex(({children:e})=>e.includes(n.target));-1!==o&&t(e=>{const t={...e};return Object.keys(t).forEach(e=>{t[Number(e)]=!0}),t[o]=!1,JSON.stringify(e)!==JSON.stringify(t)?t:e})}})},n),e.flatMap(({element:e,children:t})=>[e,...t]).forEach(e=>a.current?.observe(e)),()=>{a.current?.disconnect()}},[e]),o})({tocElements:g,setCollapsedSections:b,observerOptions:l});((e,t)=>{Qe(()=>{const n=t.current;if(!n)return;const o=Ze(n,{allowOutsideClick:!0,returnFocusOnDeactivate:!1});return e?o.activate():o.deactivate(),()=>{o.deactivate()}},[e,t])})(p,y),(({isTOCOpen:e,tocRef:t,buttonRef:n,setIsTOCOpen:o,viewportBreakpoint:r,bodyClassName:a})=>{et(()=>{const i=e=>{const r=t.current,i=n.current;r&&!r.contains(e.target)&&i&&!i.contains(e.target)&&(o(!1),document.body.classList.remove(a))};return e&&window.innerWidth{document.removeEventListener("click",i)}},[e,t,n,o,r,a])})({isTOCOpen:p,tocRef:y,buttonRef:v,setIsTOCOpen:m,viewportBreakpoint:f,bodyClassName:t}),nt(()=>{const e={};g.forEach((t,n)=>{e[n]=!0}),b(e)},[g]);const w=e=>{const n=void 0!==e?e:!p;m(n),document.body.classList.toggle(t,n)},S=e=>{e.scrollIntoView({behavior:"smooth",block:"start"}),e.classList.add("is-active"),setTimeout(()=>e.classList.remove("is-active"),2e3),window.innerWidth{b(t=>({...t,[e]:!t[e]}))};return 0===g.length?tt.createElement(tt.Fragment,null):tt.createElement("div",{ref:y,className:"yard-toc"},tt.createElement(de,{buttonRef:v,icon:r,iconHtml:a,isTOCOpen:p,onClick:()=>w(),text:i}),tt.createElement("div",{className:"yard-toc-container "+(p?"is-open":""),id:"yard-toc-container"},c&&tt.createElement("h2",{className:"yard-toc-title"},c),tt.createElement("ul",{className:"yard-toc-list"},g.map((e,t)=>{const{element:n,children:r}=e,a=le(n.textContent||"");n.id=a;const i=n.getAttribute(s)||n.textContent,l=h[t]??!1;return tt.createElement(se,{key:t,heading:n,h3Elements:r,activeHeadingId:T,isActive:T===a,isCollapsed:l,index:t,onClick:S,toggleSection:E,content:i,includeSubheading:o,overwriteTextDataAttribute:s,subheadingListCollapseIcon:u,subheadingListCollapseIconHtml:d})}))))},it=window.ReactJSXRuntime,lt=(e,t,n)=>e.getAttribute(t)||window.yardTOC&&window.yardTOC[n]||void 0,ct=(e,t,n)=>{const o=e.getAttribute(t);return null!==o?"true"===o:window.yardTOC&&void 0!==window.yardTOC[n]?window.yardTOC[n]:void 0},st=e=>window.yardTOC&&void 0!==window.yardTOC[e]?window.yardTOC[e]:void 0;document.addEventListener("DOMContentLoaded",()=>{const t=document.getElementById("js-yard-table-of-contents");if(!t||!window.yardTOC)return;const n={contentSelector:lt(t,"data-content-selector","contentSelector"),headingsSelector:lt(t,"data-heading-selector","headingsSelector"),includeSubheading:ct(t,"data-include-subheading","includeSubheading"),bodyClassName:st("bodyClassName"),mobileButtonIcon:st("mobileButtonIcon"),mobileButtonIconHtml:st("mobileButtonIconHtml"),mobileButtonText:st("mobileButtonText"),observerOptions:st("observerOptions"),overwriteTextDataAttribute:st("overwriteTextDataAttribute"),titleText:st("titleText"),subheadingListCollapseIcon:st("subheadingListCollapseIcon"),subheadingListCollapseIconHtml:st("subheadingListCollapseIconHtml"),viewportBreakpoint:st("viewportBreakpoint")};(0,e.createRoot)(t).render((0,it.jsx)(at,{...n}))})})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7eb69ab..11d422c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@yardinternet/gutenberg-components": "^1.3.3", "@yardinternet/gutenberg-hooks": "^1.0.5", "@yardinternet/gutenberg-webpack-loaders": "^0.1.2", - "@yardinternet/table-of-contents": "^0.1.1", + "@yardinternet/table-of-contents": "^0.2.5", "accordion-js": "^3.3.4", "countup.js": "^2.8.0" }, @@ -10065,17 +10065,13 @@ } }, "node_modules/@yardinternet/table-of-contents": { - "version": "0.1.1", - "resolved": "https://npm.pkg.github.com/download/@yardinternet/table-of-contents/0.1.1/7560cb4637029e0e30e961542c138655ff588a1a", - "integrity": "sha512-Vj23U/dtGhxofhYQQAup++b66cux9J3kzd5FmNtgl+BHpKuSKGmnNP6JvtIjLddXsBmCqrLWl/W8oYAeOxxyqQ==", + "version": "0.2.5", + "resolved": "https://npm.pkg.github.com/download/@yardinternet/table-of-contents/0.2.5/5d2e4a2de58fac15defe7d87470e1771d9407442", + "integrity": "sha512-OM5PBes9Io/J85gWgTQ782NcKTuuyEQKRXZrXylL/Hxx8H8GezzVQS1tuWUohwd4OTeN0Up/9xUhiri6Bzgb8g==", "license": "MIT", "dependencies": { "dompurify": "^3.2.6", - "focus-trap": "^7.6.2", - "react-css-collapse": "^4.1.0" - }, - "engines": { - "node": ">=12" + "focus-trap": "^7.6.2" } }, "node_modules/@yardinternet/toolkit": { @@ -24434,16 +24430,6 @@ "node": ">=0.10.0" } }, - "node_modules/react-css-collapse": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/react-css-collapse/-/react-css-collapse-4.1.0.tgz", - "integrity": "sha512-t9UNdEShbqbnsgfaejvgY7ghJXP42CBobuItfrccc4KKA8JsbQ4id6rmh2wdmU+QDMS3L4vg8/yTkjGmpyMa4g==", - "license": "MIT", - "peerDependencies": { - "react": ">=16.8", - "react-dom": ">=16.8" - } - }, "node_modules/react-dom": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", diff --git a/package.json b/package.json index cacc429..fb4dc75 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@yardinternet/gutenberg-components": "^1.3.3", "@yardinternet/gutenberg-hooks": "^1.0.5", "@yardinternet/gutenberg-webpack-loaders": "^0.1.2", - "@yardinternet/table-of-contents": "^0.1.1", + "@yardinternet/table-of-contents": "^0.2.5", "accordion-js": "^3.3.4", "countup.js": "^2.8.0" }