a.hChildren,i=e.data.hProperties;"string"==typeof n&&("element"===t.type?t.tagName=n:t={type:"element",tagName:n,properties:{},children:"children"in t?t.children:[t]}),"element"===t.type&&i&&Object.assign(t.properties,(0,l.Ay)(i)),"children"in t&&t.children&&null!=r&&(t.children=r)}return t}function b(e,n){let t=[],r=-1;for(n&&t.push({type:"text",value:` `});++r0&&t.push({type:"text",value:` `}),t}function x(e){let n=0,t=e.charCodeAt(n);for(;9===t||32===t;)n++,t=e.charCodeAt(n);return e.slice(n)}function v(e,n){let t=function(e,n){let t=n||g,r=new Map,i=new Map,o={all:function(e){let n=[];if("children"in e){let t=e.children,r=-1;for(;++r0&&c.push({type:"text",value:" "});let e="string"==typeof t?t:t(p,s);"string"==typeof e&&(e={type:"text",value:e}),c.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+u+(s>1?"-"+s:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(p,s),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...c)}else o.push(...c);let m={type:"element",tagName:"li",properties:{id:n+"fn-"+u},children:e.wrap(o,!0)};e.patch(l,m),f.push(m)}if(0!==f.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...(0,l.Ay)(c),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:` `}]}}(t),f=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return c&&((0,r.ok)("children"in f),f.children.push({type:"text",value:` `},c)),f}},22177:(e,n,t)=>{t.d(n,{s:()=>o});var r=t(96206),l=t(43589);let i=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function o(e){return e.replace(i,a)}function a(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){let e=t.charCodeAt(1),n=120===e||88===e;return(0,l.C)(t.slice(n?2:1),n?16:10)}return(0,r.s)(t)||e}},22305:(e,n,t)=>{t.d(n,{w:()=>i});var r=t(82777);let SpliceBuffer=class SpliceBuffer{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(n||0),1/0);return t&&l(this.left,t),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),l(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),l(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e{t.d(n,{N:()=>l});var r=t(40574);function l(e,n,t,l){let i=l?l-1:1/0,o=0;return function(l){return(0,r.On)(l)?(e.enter(t),function l(a){return(0,r.On)(a)&&o++{t.d(n,{BM:()=>a,CW:()=>r,Ee:()=>f,HP:()=>c,JQ:()=>o,Ny:()=>h,On:()=>p,cx:()=>i,es:()=>d,lV:()=>l,ok:()=>u,ol:()=>s});let r=m(/[A-Za-z]/),l=m(/[\dA-Za-z]/),i=m(/[#-'*+\--9=?A-Z^-~]/);function o(e){return null!==e&&(e<32||127===e)}let a=m(/\d/),u=m(/[\dA-Fa-f]/),s=m(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function f(e){return null!==e&&(e<0||32===e)}function p(e){return -2===e||-1===e||32===e}let d=m(/\p{P}|\p{S}/u),h=m(/\s/);function m(e){return function(n){return null!==n&&n>-1&&e.test(String.fromCharCode(n))}}},43589:(e,n,t)=>{t.d(n,{C:()=>r});function r(e,n){let t=Number.parseInt(e,n);return t<9||11===t||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(65535&t)==65535||(65535&t)==65534||t>1114111?"\uFFFD":String.fromCodePoint(t)}},43926:(e,n,t)=>{t.d(n,{_:()=>l});var r=t(22305);function l(e){for(;!(0,r.w)(e););return e}},45535:(e,n,t)=>{t.d(n,{W:()=>r});function r(e,n,t){let r=[],l=-1;for(;++l{function r(e){return e&&"object"==typeof e?"position"in e||"type"in e?i(e.position):"start"in e||"end"in e?i(e):"line"in e||"column"in e?l(e):"":""}function l(e){return o(e&&e.line)+":"+o(e&&e.column)}function i(e){return l(e&&e.start)+"-"+l(e&&e.end)}function o(e){return e&&"number"==typeof e?e:1}t.d(n,{L:()=>r})},47970:(e,n,t)=>{t.d(n,{YR:()=>l});var r=t(76814);function l(e,n,t,l){let i,o,a;"function"==typeof n&&"function"!=typeof t?(o=void 0,a=n,i=t):(o=n,a=t,i=l),(0,r.VG)(e,o,function(e,n){let t=n[n.length-1],r=t?t.children.indexOf(e):void 0;return a(e,r,t)},i)}},48627:(e,n,t)=>{t.d(n,{R:()=>Info});let Info=class Info{constructor(e,n){this.property=e,this.attribute=n}};Info.prototype.space=null,Info.prototype.boolean=!1,Info.prototype.booleanish=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.number=!1,Info.prototype.commaSeparated=!1,Info.prototype.spaceSeparated=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.mustUseProperty=!1,Info.prototype.defined=!1},55035:(e,n,t)=>{t.d(n,{qy:()=>y,JW:()=>k});let Schema=class Schema{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}};function r(e,n){let t={},r={},l=-1;for(;++l"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),s=a({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function c(e,n){return n in e?e[n]:n}function f(e,n){return c(e,n.toLowerCase())}let p=a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:f,properties:{xmlns:null,xmlnsXLink:null}});var d=t(65018);let h=a({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:d.booleanish,ariaAutoComplete:null,ariaBusy:d.booleanish,ariaChecked:d.booleanish,ariaColCount:d.number,ariaColIndex:d.number,ariaColSpan:d.number,ariaControls:d.spaceSeparated,ariaCurrent:null,ariaDescribedBy:d.spaceSeparated,ariaDetails:null,ariaDisabled:d.booleanish,ariaDropEffect:d.spaceSeparated,ariaErrorMessage:null,ariaExpanded:d.booleanish,ariaFlowTo:d.spaceSeparated,ariaGrabbed:d.booleanish,ariaHasPopup:null,ariaHidden:d.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:d.spaceSeparated,ariaLevel:d.number,ariaLive:null,ariaModal:d.booleanish,ariaMultiLine:d.booleanish,ariaMultiSelectable:d.booleanish,ariaOrientation:null,ariaOwns:d.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:d.number,ariaPressed:d.booleanish,ariaReadOnly:d.booleanish,ariaRelevant:null,ariaRequired:d.booleanish,ariaRoleDescription:d.spaceSeparated,ariaRowCount:d.number,ariaRowIndex:d.number,ariaRowSpan:d.number,ariaSelected:d.booleanish,ariaSetSize:d.number,ariaSort:null,ariaValueMax:d.number,ariaValueMin:d.number,ariaValueNow:d.number,ariaValueText:null,role:null}}),m=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:f,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d.commaSeparated,acceptCharset:d.spaceSeparated,accessKey:d.spaceSeparated,action:null,allow:null,allowFullScreen:d