. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),t?(0,o.cloneElement)(e,{ref:e=>{_e(t,e),_e(a,e)}}):(0,o.cloneElement)(e,{ref:a})}(l,t?a=>e(a,t):e)}}(l);a[t]=()=>e}})),a}function _e(e,a){"function"==typeof e?e(a):e.current=a}class Oe{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,a=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return a&&this.disconnectDragSource(),this.handlerId?e?(a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),a):(this.lastConnectedDragSource=e,a):a}reconnectDragPreview(e=!1){const a=this.dragPreview,t=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(a?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=a,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,a,this.dragPreviewOptions)):this.lastConnectedDragPreview=a)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Se(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Se(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=ke({dragSource:(e,a)=>{this.clearDragSource(),this.dragSourceOptions=a||null,Ee(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,a)=>{this.clearDragPreview(),this.dragPreviewOptions=a||null,Ee(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}function Te(){const{dragDropManager:e}=(0,o.useContext)(l);return c(null!=e,"Expected drag drop context"),e}let Me=!1,Pe=!1;class Re{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){c(!Me,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Me=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Me=!1}}isDragging(){if(!this.sourceId)return!1;c(!Pe,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Pe=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pe=!1}}subscribeToStateChange(e,a){return this.internalMonitor.subscribeToStateChange(e,a)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,a){return this.internalMonitor.isOverTarget(e,a)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}class Le{beginDrag(){const e=this.spec,a=this.monitor;let t=null;return t="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(a):{},null!=t?t:null}canDrag(){const e=this.spec,a=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(a)}isDragging(e,a){const t=this.spec,o=this.monitor,{isDragging:l}=t;return l?l(o):a===e.getSourceId()}endDrag(){const e=this.spec,a=this.monitor,t=this.connector,{end:o}=e;o&&o(a.getItem(),a),t.reconnect()}constructor(e,a,t){this.spec=e,this.monitor=a,this.connector=t}}function Ie(e,a){const t=Ae(e,a);c(!t.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const l=function(){const e=Te();return(0,o.useMemo)((()=>new Re(e)),[e])}(),s=function(e,a){const t=Te(),l=(0,o.useMemo)((()=>new Oe(t.getBackend())),[t]);return me((()=>(l.dragSourceOptions=e||null,l.reconnect(),()=>l.disconnectDragSource())),[l,e]),me((()=>(l.dragPreviewOptions=a||null,l.reconnect(),()=>l.disconnectDragPreview())),[l,a]),l}(t.options,t.previewOptions);return function(e,a,t){const l=Te(),s=function(e,a,t){const l=(0,o.useMemo)((()=>new Le(e,a,t)),[a,t]);return(0,o.useEffect)((()=>{l.spec=e}),[e]),l}(e,a,t),n=function(e){return(0,o.useMemo)((()=>{const a=e.type;return c(null!=a,"spec.type must be defined"),a}),[e])}(e);me((function(){if(null!=n){const[e,o]=function(e,a,t){const o=t.getRegistry(),l=o.addSource(e,a);return[l,()=>o.removeSource(l)]}(n,s,l);return a.receiveHandlerId(e),t.receiveHandlerId(e),o}}),[l,a,t,s,n])}(t,l,s),[ve(t.collect,l,s),we(s),xe(s)]}function De(e){const a=Te().getMonitor(),[t,l]=ye(a,e);return(0,o.useEffect)((()=>a.subscribeToOffsetChange(l))),(0,o.useEffect)((()=>a.subscribeToStateChange(l))),t}function Ne(e){return(0,o.useMemo)((()=>e.hooks.dropTarget()),[e])}class je{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const a=this.dropTarget;this.handlerId&&(a?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=a,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,a,this.dropTargetOptions)):this.lastConnectedDropTarget=a)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Se(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=ke({dropTarget:(e,a)=>{this.clearDropTarget(),this.dropTargetOptions=a,Ee(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}let Fe=!1;class Be{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,a){return this.internalMonitor.subscribeToStateChange(e,a)}canDrop(){if(!this.targetId)return!1;c(!Fe,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Fe=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Fe=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class ze{canDrop(){const e=this.spec,a=this.monitor;return!e.canDrop||e.canDrop(a.getItem(),a)}hover(){const e=this.spec,a=this.monitor;e.hover&&e.hover(a.getItem(),a)}drop(){const e=this.spec,a=this.monitor;if(e.drop)return e.drop(a.getItem(),a)}constructor(e,a){this.spec=e,this.monitor=a}}function $e(e,a){const t=Ae(e,a),l=function(){const e=Te();return(0,o.useMemo)((()=>new Be(e)),[e])}(),s=function(e){const a=Te(),t=(0,o.useMemo)((()=>new je(a.getBackend())),[a]);return me((()=>(t.dropTargetOptions=e||null,t.reconnect(),()=>t.disconnectDropTarget())),[e]),t}(t.options);return function(e,a,t){const l=Te(),s=function(e,a){const t=(0,o.useMemo)((()=>new ze(e,a)),[a]);return(0,o.useEffect)((()=>{t.spec=e}),[e]),t}(e,a),n=function(e){const{accept:a}=e;return(0,o.useMemo)((()=>(c(null!=e.accept,"accept must be defined"),Array.isArray(a)?a:[a])),[a])}(e);me((function(){const[e,o]=function(e,a,t){const o=t.getRegistry(),l=o.addTarget(e,a);return[l,()=>o.removeTarget(l)]}(n,s,l);return a.receiveHandlerId(e),t.receiveHandlerId(e),o}),[l,a,s,t,n.map((e=>e.toString())).join("|")])}(t,l,s),[ve(t.collect,l,s),Ne(s)]}},9323:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return eo},defaultUrlTransform:function(){return ao}});var o={};t.r(o),t.d(o,{boolean:function(){return C},booleanish:function(){return m},commaOrSpaceSeparated:function(){return x},commaSeparated:function(){return w},number:function(){return v},overloadedBoolean:function(){return y},spaceSeparated:function(){return A}});var l={};t.r(l),t.d(l,{attentionMarkers:function(){return Ia},contentInitial:function(){return Oa},disable:function(){return Da},document:function(){return _a},flow:function(){return Ma},flowInitial:function(){return Ta},insideSpan:function(){return La},string:function(){return Pa},text:function(){return Ra}});var s=t(97471);const n=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,r={};function b(e,a){return((a||r).jsx?d:n).test(e)}const i=/[ \t\n\f\r]/g;function c(e){return""===e.replace(i,"")}class u{constructor(e,a,t){this.property=e,this.normal=a,t&&(this.space=t)}}function f(e,a){const t={},o={};let l=-1;for(;++l
0&&"number"==typeof t.column&&t.column>0)return{line:t.line,column:t.column,offset:"number"==typeof t.offset&&t.offset>-1?t.offset:void 0}}}function Q(e){return e&&"object"==typeof e?"position"in e||"type"in e?Z(e.position):"start"in e||"end"in e?Z(e):"line"in e||"column"in e?J(e):"":""}function J(e){return ee(e&&e.line)+":"+ee(e&&e.column)}function Z(e){return J(e&&e.start)+"-"+J(e&&e.end)}function ee(e){return e&&"number"==typeof e?e:1}class ae extends Error{constructor(e,a,t){super(),"string"==typeof a&&(t=a,a=void 0);let o="",l={},s=!1;if(a&&(l="line"in a&&"column"in a||"start"in a&&"end"in a?{place:a}:"type"in a?{ancestors:[a],place:a.position}:{...a}),"string"==typeof e?o=e:!l.cause&&e&&(s=!0,o=e.message,l.cause=e),!l.ruleId&&!l.source&&"string"==typeof t){const e=t.indexOf(":");-1===e?l.ruleId=t:(l.source=t.slice(0,e),l.ruleId=t.slice(e+1))}if(!l.place&&l.ancestors&&l.ancestors){const e=l.ancestors[l.ancestors.length-1];e&&(l.place=e.position)}const n=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=n?n.line:void 0,this.name=Q(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=s&&l.cause&&"string"==typeof l.cause.stack?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}ae.prototype.file="",ae.prototype.name="",ae.prototype.reason="",ae.prototype.message="",ae.prototype.stack="",ae.prototype.column=void 0,ae.prototype.line=void 0,ae.prototype.ancestors=void 0,ae.prototype.cause=void 0,ae.prototype.fatal=void 0,ae.prototype.place=void 0,ae.prototype.ruleId=void 0,ae.prototype.source=void 0;const te={}.hasOwnProperty,oe=new Map,le=/[A-Z]/g,se=/-([a-z])/g,ne=new Set(["table","tbody","thead","tfoot","tr"]),de=new Set(["td","th"]),re="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function be(e,a,t){return"element"===a.type?function(e,a,t){const o=e.schema;let l=o;"svg"===a.tagName.toLowerCase()&&"html"===o.space&&(l=B,e.schema=l),e.ancestors.push(a);const s=he(e,a.tagName,!1),n=function(e,a){const t={};let o,l;for(l in a.properties)if("children"!==l&&te.call(a.properties,l)){const s=fe(e,l,a.properties[l]);if(s){const[l,n]=s;e.tableCellAlignToStyle&&"align"===l&&"string"==typeof n&&de.has(a.tagName)?o=n:t[l]=n}}return o&&((t.style||(t.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=o),t}(e,a);let d=ue(e,a);return ne.has(a.tagName)&&(d=d.filter((function(e){return"string"!=typeof e||!("object"==typeof(a=e)?"text"===a.type&&c(a.value):c(a));var a}))),ie(e,n,s,a),ce(n,d),e.ancestors.pop(),e.schema=o,e.create(a,s,n,t)}(e,a,t):"mdxFlowExpression"===a.type||"mdxTextExpression"===a.type?function(e,a){if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];return(0,s.ok)("ExpressionStatement"===t.type),e.evaluater.evaluateExpression(t.expression)}pe(e,a.position)}(e,a):"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?function(e,a,t){const o=e.schema;let l=o;"svg"===a.name&&"html"===o.space&&(l=B,e.schema=l),e.ancestors.push(a);const n=null===a.name?e.Fragment:he(e,a.name,!0),d=function(e,a){const t={};for(const o of a.attributes)if("mdxJsxExpressionAttribute"===o.type)if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];(0,s.ok)("ExpressionStatement"===a.type);const l=a.expression;(0,s.ok)("ObjectExpression"===l.type);const n=l.properties[0];(0,s.ok)("SpreadElement"===n.type),Object.assign(t,e.evaluater.evaluateExpression(n.argument))}else pe(e,a.position);else{const l=o.name;let n;if(o.value&&"object"==typeof o.value)if(o.value.data&&o.value.data.estree&&e.evaluater){const a=o.value.data.estree.body[0];(0,s.ok)("ExpressionStatement"===a.type),n=e.evaluater.evaluateExpression(a.expression)}else pe(e,a.position);else n=null===o.value||o.value;t[l]=n}return t}(e,a),r=ue(e,a);return ie(e,d,n,a),ce(d,r),e.ancestors.pop(),e.schema=o,e.create(a,n,d,t)}(e,a,t):"mdxjsEsm"===a.type?function(e,a){if(a.data&&a.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(a.data.estree);pe(e,a.position)}(e,a):"root"===a.type?function(e,a,t){const o={};return ce(o,ue(e,a)),e.create(a,e.Fragment,o,t)}(e,a,t):"text"===a.type?function(e,a){return a.value}(0,a):void 0}function ie(e,a,t,o){"string"!=typeof t&&t!==e.Fragment&&e.passNode&&(a.node=o)}function ce(e,a){if(a.length>0){const t=a.length>1?a:a[0];t&&(e.children=t)}}function ue(e,a){const t=[];let o=-1;const l=e.passKeys?new Map:oe;for(;++o4&&"data"===t.slice(0,4)&&z.test(a)){if("-"===a.charAt(4)){const e=a.slice(5).replace($,H);o="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=a.slice(4);if(!$.test(e)){let t=e.replace(U,W);"-"!==t.charAt(0)&&(t="-"+t),a="data"+t}}l=k}return new l(o,a)}(e.schema,a);if(!(null==t||"number"==typeof t&&Number.isNaN(t))){if(Array.isArray(t)&&(t=o.commaSeparated?function(e,a){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(t):t.join(" ").trim()),"style"===o.property){let a="object"==typeof t?t:function(e,a){const t={};try{Y(a,(function(e,a){let o=e;"--"!==o.slice(0,2)&&("-ms-"===o.slice(0,4)&&(o="ms-"+o.slice(4)),o=o.replace(se,Ce)),t[o]=a}))}catch(a){if(!e.ignoreInvalidStyle){const t=a,o=new ae("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=re+"#cannot-parse-style-attribute",o}}return t}(e,String(t));return"css"===e.stylePropertyNameCase&&(a=function(e){const a={};let t;for(t in e)te.call(e,t)&&(a[ge(t)]=e[t]);return a}(a)),["style",a]}return["react"===e.elementAttributeNameCase&&o.space?K[o.property]||o.property:o.attribute,t]}}function he(e,a,t){let o;if(t)if(a.includes(".")){const e=a.split(".");let t,l=-1;for(;++ls))return;const t=a.events.length;let l,d,r=t;for(;r--;)if("exit"===a.events[r][0]&&"chunkFlow"===a.events[r][1].type){if(l){d=a.events[r][1].end;break}l=!0}for(C(n),e=t;eo;){const o=t[l];a.containerState=o[1],o[0].exit.call(a,e)}t.length=o}function m(){o.write([null]),l=void 0,o=void 0,a.containerState._closeFlow=void 0}}},Me={tokenize:function(e,a,t){return(0,ke.N)(e,e.attempt(this.parser.constructs.document,a,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var Pe=t(9283);const Re={tokenize:function(e,a){let t;return function(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),o(a)};function o(a){return null===a?l(a):(0,_e.HP)(a)?e.check(Le,s,l)(a):(e.consume(a),o)}function l(t){return e.exit("chunkContent"),e.exit("content"),a(t)}function s(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,o}},resolve:function(e){return xe(e),e}},Le={tokenize:function(e,a,t){const o=this;return function(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),(0,ke.N)(e,l,"linePrefix")};function l(l){if(null===l||(0,_e.HP)(l))return t(l);const s=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?a(l):e.interrupt(o.parser.constructs.flow,t,a)(l)}},partial:!0},Ie={tokenize:function(e){const a=this,t=e.attempt(Pe.B,(function(o){if(null!==o)return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),a.currentConstruct=void 0,t;e.consume(o)}),e.attempt(this.parser.constructs.flowInitial,o,(0,ke.N)(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Re,o)),"linePrefix")));return t;function o(o){if(null!==o)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a.currentConstruct=void 0,t;e.consume(o)}}},De={resolveAll:Be()},Ne=Fe("string"),je=Fe("text");function Fe(e){return{tokenize:function(a){const t=this,o=this.parser.constructs[e],l=a.attempt(o,s,n);return s;function s(e){return r(e)?l(e):n(e)}function n(e){if(null!==e)return a.enter("data"),a.consume(e),d;a.consume(e)}function d(e){return r(e)?(a.exit("data"),l(e)):(a.consume(e),d)}function r(e){if(null===e)return!0;const a=o[e];let l=-1;if(a)for(;++l-1){const e=n[0];"string"==typeof e?n[0]=e.slice(o):n.shift()}s>0&&n.push(e[l].slice(0,s))}return n}(n,e)}function h(){const{line:e,column:a,offset:t,_index:l,_bufferIndex:s}=o;return{line:e,column:a,offset:t,_index:l,_bufferIndex:s}}function p(e){r=void 0,c=e,u=u(e)}function g(e,a){a.restore()}function C(e,a){return function(t,l,s){let n,c,u,f;return Array.isArray(t)?g(t):"tokenize"in t?g([t]):(p=t,function(e){const a=null!==e&&p[e],t=null!==e&&p.null;return g([...Array.isArray(a)?a:a?[a]:[],...Array.isArray(t)?t:t?[t]:[]])(e)});var p;function g(e){return n=e,c=0,0===e.length?s:C(e[c])}function C(e){return function(t){return f=function(){const e=h(),a=i.previous,t=i.currentConstruct,l=i.events.length,s=Array.from(d);return{restore:function(){o=e,i.previous=a,i.currentConstruct=t,i.events.length=l,d=s,y()},from:l}}(),u=e,e.partial||(i.currentConstruct=e),e.name&&i.parser.constructs.disable.null.includes(e.name)?v():e.tokenize.call(a?Object.assign(Object.create(i),a):i,b,m,v)(t)}}function m(a){return r=!0,e(u,f),l}function v(e){return r=!0,f.restore(),++c=3&&(null===s||(0,_e.HP)(s))?(e.exit("thematicBreak"),a(s)):t(s)}function n(a){return a===o?(e.consume(a),l++,n):(e.exit("thematicBreakSequence"),(0,_e.On)(a)?(0,ke.N)(e,s,"whitespace")(a):s(a))}}},He={name:"list",tokenize:function(e,a,t){const o=this,l=o.events[o.events.length-1];let s=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,n=0;return function(a){const l=o.containerState.type||(42===a||43===a||45===a?"listUnordered":"listOrdered");if("listUnordered"===l?!o.containerState.marker||a===o.containerState.marker:(0,_e.BM)(a)){if(o.containerState.type||(o.containerState.type=l,e.enter(l,{_container:!0})),"listUnordered"===l)return e.enter("listItemPrefix"),42===a||45===a?e.check(We,t,r)(a):r(a);if(!o.interrupt||49===a)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(a)}return t(a)};function d(a){return(0,_e.BM)(a)&&++n<10?(e.consume(a),d):(!o.interrupt||n<2)&&(o.containerState.marker?a===o.containerState.marker:41===a||46===a)?(e.exit("listItemValue"),r(a)):t(a)}function r(a){return e.enter("listItemMarker"),e.consume(a),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||a,e.check(Pe.B,o.interrupt?t:b,e.attempt(Ke,c,i))}function b(e){return o.containerState.initialBlankLine=!0,s++,c(e)}function i(a){return(0,_e.On)(a)?(e.enter("listItemPrefixWhitespace"),e.consume(a),e.exit("listItemPrefixWhitespace"),c):t(a)}function c(t){return o.containerState.size=s+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,a(t)}},continuation:{tokenize:function(e,a,t){const o=this;return o.containerState._closeFlow=void 0,e.check(Pe.B,(function(t){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,(0,ke.N)(e,a,"listItemIndent",o.containerState.size+1)(t)}),(function(t){return o.containerState.furtherBlankLines||!(0,_e.On)(t)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,l(t)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(Ve,a,l)(t))}));function l(l){return o.containerState._closeFlow=!0,o.interrupt=void 0,(0,ke.N)(e,e.attempt(He,a,t),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}},exit:function(e){e.exit(this.containerState.type)}},Ke={tokenize:function(e,a,t){const o=this;return(0,ke.N)(e,(function(e){const l=o.events[o.events.length-1];return!(0,_e.On)(e)&&l&&"listItemPrefixWhitespace"===l[1].type?a(e):t(e)}),"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ve={tokenize:function(e,a,t){const o=this;return(0,ke.N)(e,(function(e){const l=o.events[o.events.length-1];return l&&"listItemIndent"===l[1].type&&l[2].sliceSerialize(l[1],!0).length===o.containerState.size?a(e):t(e)}),"listItemIndent",o.containerState.size+1)},partial:!0},Ye={name:"blockQuote",tokenize:function(e,a,t){const o=this;return function(a){if(62===a){const t=o.containerState;return t.open||(e.enter("blockQuote",{_container:!0}),t.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)};function l(t){return(0,_e.On)(t)?(e.enter("blockQuotePrefixWhitespace"),e.consume(t),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),a):(e.exit("blockQuotePrefix"),a(t))}},continuation:{tokenize:function(e,a,t){const o=this;return function(a){return(0,_e.On)(a)?(0,ke.N)(e,l,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)};function l(o){return e.attempt(Ye,a,t)(o)}}},exit:function(e){e.exit("blockQuote")}};function Ge(e,a,t,o,l,s,n,d,r){const b=r||Number.POSITIVE_INFINITY;let i=0;return function(a){return 60===a?(e.enter(o),e.enter(l),e.enter(s),e.consume(a),e.exit(s),c):null===a||32===a||41===a||(0,_e.JQ)(a)?t(a):(e.enter(o),e.enter(n),e.enter(d),e.enter("chunkString",{contentType:"string"}),h(a))};function c(t){return 62===t?(e.enter(s),e.consume(t),e.exit(s),e.exit(l),e.exit(o),a):(e.enter(d),e.enter("chunkString",{contentType:"string"}),u(t))}function u(a){return 62===a?(e.exit("chunkString"),e.exit(d),c(a)):null===a||60===a||(0,_e.HP)(a)?t(a):(e.consume(a),92===a?f:u)}function f(a){return 60===a||62===a||92===a?(e.consume(a),u):u(a)}function h(l){return i||null!==l&&41!==l&&!(0,_e.Ee)(l)?i999||null===c||91===c||93===c&&!d||94===c&&!r&&"_hiddenFootnoteSupport"in n.parser.constructs?t(c):93===c?(e.exit(s),e.enter(l),e.consume(c),e.exit(l),e.exit(o),a):(0,_e.HP)(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),i(c))}function i(a){return null===a||91===a||93===a||(0,_e.HP)(a)||r++>999?(e.exit("chunkString"),b(a)):(e.consume(a),d||(d=!(0,_e.On)(a)),92===a?c:i)}function c(a){return 91===a||92===a||93===a?(e.consume(a),r++,i):i(a)}}function Xe(e,a,t,o,l,s){let n;return function(a){return 34===a||39===a||40===a?(e.enter(o),e.enter(l),e.consume(a),e.exit(l),n=40===a?41:a,d):t(a)};function d(t){return t===n?(e.enter(l),e.consume(t),e.exit(l),e.exit(o),a):(e.enter(s),r(t))}function r(a){return a===n?(e.exit(s),d(n)):null===a?t(a):(0,_e.HP)(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),(0,ke.N)(e,r,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(a))}function b(a){return a===n||null===a||(0,_e.HP)(a)?(e.exit("chunkString"),r(a)):(e.consume(a),92===a?i:b)}function i(a){return a===n||92===a?(e.consume(a),b):b(a)}}function Qe(e,a){let t;return function o(l){return(0,_e.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t=!0,o):(0,_e.On)(l)?(0,ke.N)(e,o,t?"linePrefix":"lineSuffix")(l):a(l)}}var Je=t(9638);const Ze={name:"definition",tokenize:function(e,a,t){const o=this;let l;return function(a){return e.enter("definition"),function(a){return qe.call(o,e,s,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(a)}(a)};function s(a){return l=(0,Je.B)(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===a?(e.enter("definitionMarker"),e.consume(a),e.exit("definitionMarker"),n):t(a)}function n(a){return(0,_e.Ee)(a)?Qe(e,d)(a):d(a)}function d(a){return Ge(e,r,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(a)}function r(a){return e.attempt(ea,b,b)(a)}function b(a){return(0,_e.On)(a)?(0,ke.N)(e,i,"whitespace")(a):i(a)}function i(s){return null===s||(0,_e.HP)(s)?(e.exit("definition"),o.parser.defined.push(l),a(s)):t(s)}}},ea={tokenize:function(e,a,t){return function(a){return(0,_e.Ee)(a)?Qe(e,o)(a):t(a)};function o(a){return Xe(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return(0,_e.On)(a)?(0,ke.N)(e,s,"whitespace")(a):s(a)}function s(e){return null===e||(0,_e.HP)(e)?a(e):t(e)}},partial:!0},aa={name:"codeIndented",tokenize:function(e,a,t){const o=this;return function(a){return e.enter("codeIndented"),(0,ke.N)(e,l,"linePrefix",5)(a)};function l(e){const a=o.events[o.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?s(e):t(e)}function s(a){return null===a?d(a):(0,_e.HP)(a)?e.attempt(ta,s,d)(a):(e.enter("codeFlowValue"),n(a))}function n(a){return null===a||(0,_e.HP)(a)?(e.exit("codeFlowValue"),s(a)):(e.consume(a),n)}function d(t){return e.exit("codeIndented"),a(t)}}},ta={tokenize:function(e,a,t){const o=this;return l;function l(a){return o.parser.lazy[o.now().line]?t(a):(0,_e.HP)(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):(0,ke.N)(e,s,"linePrefix",5)(a)}function s(e){const s=o.events[o.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?a(e):(0,_e.HP)(e)?l(e):t(e)}},partial:!0},oa={name:"headingAtx",tokenize:function(e,a,t){let o=0;return function(a){return e.enter("atxHeading"),function(a){return e.enter("atxHeadingSequence"),l(a)}(a)};function l(a){return 35===a&&o++<6?(e.consume(a),l):null===a||(0,_e.Ee)(a)?(e.exit("atxHeadingSequence"),s(a)):t(a)}function s(t){return 35===t?(e.enter("atxHeadingSequence"),n(t)):null===t||(0,_e.HP)(t)?(e.exit("atxHeading"),a(t)):(0,_e.On)(t)?(0,ke.N)(e,s,"whitespace")(t):(e.enter("atxHeadingText"),d(t))}function n(a){return 35===a?(e.consume(a),n):(e.exit("atxHeadingSequence"),s(a))}function d(a){return null===a||35===a||(0,_e.Ee)(a)?(e.exit("atxHeadingText"),s(a)):(e.consume(a),d)}},resolve:function(e,a){let t,o,l=e.length-2,s=3;return"whitespace"===e[s][1].type&&(s+=2),l-2>s&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(s===l-1||l-4>s&&"whitespace"===e[l-2][1].type)&&(l-=s+1===l?2:4),l>s&&(t={type:"atxHeadingText",start:e[s][1].start,end:e[l][1].end},o={type:"chunkText",start:e[s][1].start,end:e[l][1].end,contentType:"text"},(0,we.m)(e,s,l-s+1,[["enter",t,a],["enter",o,a],["exit",o,a],["exit",t,a]])),e}},la={name:"setextUnderline",tokenize:function(e,a,t){const o=this;let l;return function(a){let n,d=o.events.length;for(;d--;)if("lineEnding"!==o.events[d][1].type&&"linePrefix"!==o.events[d][1].type&&"content"!==o.events[d][1].type){n="paragraph"===o.events[d][1].type;break}return o.parser.lazy[o.now().line]||!o.interrupt&&!n?t(a):(e.enter("setextHeadingLine"),l=a,function(a){return e.enter("setextHeadingLineSequence"),s(a)}(a))};function s(a){return a===l?(e.consume(a),s):(e.exit("setextHeadingLineSequence"),(0,_e.On)(a)?(0,ke.N)(e,n,"lineSuffix")(a):n(a))}function n(o){return null===o||(0,_e.HP)(o)?(e.exit("setextHeadingLine"),a(o)):t(o)}},resolveTo:function(e,a){let t,o,l,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){t=s;break}"paragraph"===e[s][1].type&&(o=s)}else"content"===e[s][1].type&&e.splice(s,1),l||"definition"!==e[s][1].type||(l=s);const n={type:"setextHeading",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",l?(e.splice(o,0,["enter",n,a]),e.splice(l+1,0,["exit",e[t][1],a]),e[t][1].end=Object.assign({},e[l][1].end)):e[t][1]=n,e.push(["exit",n,a]),e}},sa=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],na=["pre","script","style","textarea"],da={name:"htmlFlow",tokenize:function(e,a,t){const o=this;let l,s,n,d,r;return function(a){return function(a){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(a),b}(a)};function b(d){return 33===d?(e.consume(d),i):47===d?(e.consume(d),s=!0,f):63===d?(e.consume(d),l=3,o.interrupt?a:I):(0,_e.CW)(d)?(e.consume(d),n=String.fromCharCode(d),h):t(d)}function i(s){return 45===s?(e.consume(s),l=2,c):91===s?(e.consume(s),l=5,d=0,u):(0,_e.CW)(s)?(e.consume(s),l=4,o.interrupt?a:I):t(s)}function c(l){return 45===l?(e.consume(l),o.interrupt?a:I):t(l)}function u(l){return l==="CDATA[".charCodeAt(d++)?(e.consume(l),6===d?o.interrupt?a:k:u):t(l)}function f(a){return(0,_e.CW)(a)?(e.consume(a),n=String.fromCharCode(a),h):t(a)}function h(d){if(null===d||47===d||62===d||(0,_e.Ee)(d)){const r=47===d,b=n.toLowerCase();return r||s||!na.includes(b)?sa.includes(n.toLowerCase())?(l=6,r?(e.consume(d),p):o.interrupt?a(d):k(d)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?t(d):s?g(d):C(d)):(l=1,o.interrupt?a(d):k(d))}return 45===d||(0,_e.lV)(d)?(e.consume(d),n+=String.fromCharCode(d),h):t(d)}function p(l){return 62===l?(e.consume(l),o.interrupt?a:k):t(l)}function g(a){return(0,_e.On)(a)?(e.consume(a),g):S(a)}function C(a){return 47===a?(e.consume(a),S):58===a||95===a||(0,_e.CW)(a)?(e.consume(a),m):(0,_e.On)(a)?(e.consume(a),C):S(a)}function m(a){return 45===a||46===a||58===a||95===a||(0,_e.lV)(a)?(e.consume(a),m):y(a)}function y(a){return 61===a?(e.consume(a),v):(0,_e.On)(a)?(e.consume(a),y):C(a)}function v(a){return null===a||60===a||61===a||62===a||96===a?t(a):34===a||39===a?(e.consume(a),r=a,A):(0,_e.On)(a)?(e.consume(a),v):w(a)}function A(a){return a===r?(e.consume(a),r=null,x):null===a||(0,_e.HP)(a)?t(a):(e.consume(a),A)}function w(a){return null===a||34===a||39===a||47===a||60===a||61===a||62===a||96===a||(0,_e.Ee)(a)?y(a):(e.consume(a),w)}function x(e){return 47===e||62===e||(0,_e.On)(e)?C(e):t(e)}function S(a){return 62===a?(e.consume(a),E):t(a)}function E(a){return null===a||(0,_e.HP)(a)?k(a):(0,_e.On)(a)?(e.consume(a),E):t(a)}function k(a){return 45===a&&2===l?(e.consume(a),M):60===a&&1===l?(e.consume(a),P):62===a&&4===l?(e.consume(a),D):63===a&&3===l?(e.consume(a),I):93===a&&5===l?(e.consume(a),L):!(0,_e.HP)(a)||6!==l&&7!==l?null===a||(0,_e.HP)(a)?(e.exit("htmlFlowData"),_(a)):(e.consume(a),k):(e.exit("htmlFlowData"),e.check(ra,N,_)(a))}function _(a){return e.check(ba,O,N)(a)}function O(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),T}function T(a){return null===a||(0,_e.HP)(a)?_(a):(e.enter("htmlFlowData"),k(a))}function M(a){return 45===a?(e.consume(a),I):k(a)}function P(a){return 47===a?(e.consume(a),n="",R):k(a)}function R(a){if(62===a){const t=n.toLowerCase();return na.includes(t)?(e.consume(a),D):k(a)}return(0,_e.CW)(a)&&n.length<8?(e.consume(a),n+=String.fromCharCode(a),R):k(a)}function L(a){return 93===a?(e.consume(a),I):k(a)}function I(a){return 62===a?(e.consume(a),D):45===a&&2===l?(e.consume(a),I):k(a)}function D(a){return null===a||(0,_e.HP)(a)?(e.exit("htmlFlowData"),N(a)):(e.consume(a),D)}function N(t){return e.exit("htmlFlow"),a(t)}},resolveTo:function(e){let a=e.length;for(;a--&&("enter"!==e[a][0]||"htmlFlow"!==e[a][1].type););return a>1&&"linePrefix"===e[a-2][1].type&&(e[a][1].start=e[a-2][1].start,e[a+1][1].start=e[a-2][1].start,e.splice(a-2,2)),e},concrete:!0},ra={tokenize:function(e,a,t){return function(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Pe.B,a,t)}},partial:!0},ba={tokenize:function(e,a,t){const o=this;return function(a){return(0,_e.HP)(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)};function l(e){return o.parser.lazy[o.now().line]?t(e):a(e)}},partial:!0},ia={tokenize:function(e,a,t){const o=this;return function(a){return null===a?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)};function l(e){return o.parser.lazy[o.now().line]?t(e):a(e)}},partial:!0},ca={name:"codeFenced",tokenize:function(e,a,t){const o=this,l={tokenize:function(e,a,t){let l=0;return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n};function n(a){return e.enter("codeFencedFence"),(0,_e.On)(a)?(0,ke.N)(e,r,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):r(a)}function r(a){return a===s?(e.enter("codeFencedFenceSequence"),b(a)):t(a)}function b(a){return a===s?(l++,e.consume(a),b):l>=d?(e.exit("codeFencedFenceSequence"),(0,_e.On)(a)?(0,ke.N)(e,i,"whitespace")(a):i(a)):t(a)}function i(o){return null===o||(0,_e.HP)(o)?(e.exit("codeFencedFence"),a(o)):t(o)}},partial:!0};let s,n=0,d=0;return function(a){return function(a){const t=o.events[o.events.length-1];return n=t&&"linePrefix"===t[1].type?t[2].sliceSerialize(t[1],!0).length:0,s=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),r(a)}(a)};function r(a){return a===s?(d++,e.consume(a),r):d<3?t(a):(e.exit("codeFencedFenceSequence"),(0,_e.On)(a)?(0,ke.N)(e,b,"whitespace")(a):b(a))}function b(t){return null===t||(0,_e.HP)(t)?(e.exit("codeFencedFence"),o.interrupt?a(t):e.check(ia,f,m)(t)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),i(t))}function i(a){return null===a||(0,_e.HP)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),b(a)):(0,_e.On)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,ke.N)(e,c,"whitespace")(a)):96===a&&a===s?t(a):(e.consume(a),i)}function c(a){return null===a||(0,_e.HP)(a)?b(a):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),u(a))}function u(a){return null===a||(0,_e.HP)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),b(a)):96===a&&a===s?t(a):(e.consume(a),u)}function f(a){return e.attempt(l,m,h)(a)}function h(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),p}function p(a){return n>0&&(0,_e.On)(a)?(0,ke.N)(e,g,"linePrefix",n+1)(a):g(a)}function g(a){return null===a||(0,_e.HP)(a)?e.check(ia,f,m)(a):(e.enter("codeFlowValue"),C(a))}function C(a){return null===a||(0,_e.HP)(a)?(e.exit("codeFlowValue"),g(a)):(e.consume(a),C)}function m(t){return e.exit("codeFenced"),a(t)}},concrete:!0},ua=document.createElement("i");function fa(e){const a="&"+e+";";ua.innerHTML=a;const t=ua.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&t!==a&&t}const ha={name:"characterReference",tokenize:function(e,a,t){const o=this;let l,s,n=0;return function(a){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),d};function d(a){return 35===a?(e.enter("characterReferenceMarkerNumeric"),e.consume(a),e.exit("characterReferenceMarkerNumeric"),r):(e.enter("characterReferenceValue"),l=31,s=_e.lV,b(a))}function r(a){return 88===a||120===a?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(a),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,s=_e.ok,b):(e.enter("characterReferenceValue"),l=7,s=_e.BM,b(a))}function b(d){if(59===d&&n){const l=e.exit("characterReferenceValue");return s!==_e.lV||fa(o.sliceSerialize(l))?(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),a):t(d)}return s(d)&&n++1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const c=Object.assign({},e[t][1].end),u=Object.assign({},e[i][1].start);Sa(c,-d),Sa(u,d),s={type:d>1?"strongSequence":"emphasisSequence",start:c,end:Object.assign({},e[t][1].end)},n={type:d>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[i][1].start),end:u},l={type:d>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[i][1].start)},o={type:d>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},n.end)},e[t][1].end=Object.assign({},s.start),e[i][1].start=Object.assign({},n.end),r=[],e[t][1].end.offset-e[t][1].start.offset&&(r=(0,we.V)(r,[["enter",e[t][1],a],["exit",e[t][1],a]])),r=(0,we.V)(r,[["enter",o,a],["enter",s,a],["exit",s,a],["enter",l,a]]),r=(0,we.V)(r,(0,$e.W)(a.parser.constructs.insideSpan.null,e.slice(t+1,i),a)),r=(0,we.V)(r,[["exit",l,a],["enter",n,a],["exit",n,a],["exit",o,a]]),e[i][1].end.offset-e[i][1].start.offset?(b=2,r=(0,we.V)(r,[["enter",e[i][1],a],["exit",e[i][1],a]])):b=0,(0,we.m)(e,t-1,i-t+3,r),i=t+r.length-b-2;break}for(i=-1;++i13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535==(65535&t)||65534==(65535&t)||t>1114111?"�":String.fromCodePoint(t)}const Fa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ba(e,a,t){if(a)return a;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),a=120===e||88===e;return ja(t.slice(a?2:1),a?16:10)}return fa(t)||e}const za={}.hasOwnProperty;function $a(e,a,t){return"string"!=typeof a&&(t=a,a=void 0),function(e){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(m),autolinkProtocol:i,autolinkEmail:i,atxHeading:l(p),blockQuote:l((function(){return{type:"blockquote",children:[]}})),characterEscape:i,characterReference:i,codeFenced:l(h),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:l(h,s),codeText:l((function(){return{type:"inlineCode",value:""}}),s),codeTextData:i,data:i,codeFlowValue:i,definition:l((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:l((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:l(g),hardBreakTrailing:l(g),htmlFlow:l(C,s),htmlFlowData:i,htmlText:l(C,s),htmlTextData:i,image:l((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:l(m),listItem:l((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:l(y,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:l(y),paragraph:l((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:l(p),strong:l((function(){return{type:"strong",children:[]}})),thematicBreak:l((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:d(),atxHeadingSequence:function(e){const a=this.stack[this.stack.length-1];if(!a.depth){const t=this.sliceSerialize(e).length;a.depth=t}},autolink:d(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:d(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){const a=this.sliceSerialize(e),t=this.data.characterReferenceType;let o;t?(o=ja(a,"characterReferenceMarkerNumeric"===t?10:16),this.data.characterReferenceType=void 0):o=fa(a);const l=this.stack.pop();l.value+=o,l.position.end=Ua(e.end)},codeFenced:d((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:d((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:d((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:c,data:c,definition:d(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const a=this.resume(),t=this.stack[this.stack.length-1];t.label=a,t.identifier=(0,Je.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:d(),hardBreakEscape:d(u),hardBreakTrailing:d(u),htmlFlow:d((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:c,htmlText:d((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:c,image:d((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const a=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=a,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],a=this.resume(),t=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===t.type){const a=e.children;t.children=a}else t.alt=a},labelText:function(e){const a=this.sliceSerialize(e),t=this.stack[this.stack.length-2];t.label=function(e){return e.replace(Fa,Ba)}(a),t.identifier=(0,Je.B)(a).toLowerCase()},lineEnding:function(e){const t=this.stack[this.stack.length-1];if(this.data.atHardBreak)return t.children[t.children.length-1].position.end=Ua(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(t.type)&&(i.call(this,e),c.call(this,e))},link:d((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const a=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=a,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:function(e){const a=this.resume(),t=this.stack[this.stack.length-1];t.label=a,t.identifier=(0,Je.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:d((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:d(),thematicBreak:d()}};Wa(a,(e||{}).mdastExtensions||[]);const t={};return function(e){let l={type:"root",children:[]};const d={stack:[l],tokenStack:[],config:a,enter:n,exit:r,buffer:s,resume:b,data:t},i=[];let c=-1;for(;++c0){const e=d.tokenStack[d.tokenStack.length-1];(e[1]||Ka).call(d,void 0,e[0])}for(l.position={start:Ua(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ua(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c((e,a)=>{const t=(a,t)=>(e.set(t,a),a),o=l=>{if(e.has(l))return e.get(l);const[s,n]=a[l];switch(s){case 0:case-1:return t(n,l);case 1:{const e=t([],l);for(const a of n)e.push(o(a));return e}case 2:{const e=t({},l);for(const[a,t]of n)e[o(a)]=o(t);return e}case 3:return t(new Date(n),l);case 4:{const{source:e,flags:a}=n;return t(new RegExp(e,a),l)}case 5:{const e=t(new Map,l);for(const[a,t]of n)e.set(o(a),o(t));return e}case 6:{const e=t(new Set,l);for(const a of n)e.add(o(a));return e}case 7:{const{name:e,message:a}=n;return t(new Ya[e](a),l)}case 8:return t(BigInt(n),l);case"BigInt":return t(Object(BigInt(n)),l)}return t(new Ya[s](n),l)};return o})(new Map,e)(0),qa="",{toString:Xa}={},{keys:Qa}=Object,Ja=e=>{const a=typeof e;if("object"!==a||!e)return[0,a];const t=Xa.call(e).slice(8,-1);switch(t){case"Array":return[1,qa];case"Object":return[2,qa];case"Date":return[3,qa];case"RegExp":return[4,qa];case"Map":return[5,qa];case"Set":return[6,qa]}return t.includes("Array")?[1,t]:t.includes("Error")?[7,t]:[2,t]},Za=([e,a])=>0===e&&("function"===a||"symbol"===a),et=(e,{json:a,lossy:t}={})=>{const o=[];return((e,a,t,o)=>{const l=(e,a)=>{const l=o.push(e)-1;return t.set(a,l),l},s=o=>{if(t.has(o))return t.get(o);let[n,d]=Ja(o);switch(n){case 0:{let a=o;switch(d){case"bigint":n=8,a=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);a=null;break;case"undefined":return l([-1],o)}return l([n,a],o)}case 1:{if(d)return l([d,[...o]],o);const e=[],a=l([n,e],o);for(const a of o)e.push(s(a));return a}case 2:{if(d)switch(d){case"BigInt":return l([d,o.toString()],o);case"Boolean":case"Number":case"String":return l([d,o.valueOf()],o)}if(a&&"toJSON"in o)return s(o.toJSON());const t=[],r=l([n,t],o);for(const a of Qa(o))!e&&Za(Ja(o[a]))||t.push([s(a),s(o[a])]);return r}case 3:return l([n,o.toISOString()],o);case 4:{const{source:e,flags:a}=o;return l([n,{source:e,flags:a}],o)}case 5:{const a=[],t=l([n,a],o);for(const[t,l]of o)(e||!Za(Ja(t))&&!Za(Ja(l)))&&a.push([s(t),s(l)]);return t}case 6:{const a=[],t=l([n,a],o);for(const t of o)!e&&Za(Ja(t))||a.push(s(t));return t}}const{message:r}=o;return l([n,{name:d,message:r}],o)};return s})(!(a||t),!!a,new Map,o)(e),o};var at="function"==typeof structuredClone?(e,a)=>a&&("json"in a||"lossy"in a)?Ga(et(e,a)):structuredClone(e):(e,a)=>Ga(et(e,a));function tt(e){const a=[];let t=-1,o=0,l=0;for(;++t55295&&s<57344){const a=e.charCodeAt(t+1);s<56320&&a>56319&&a<57344?(n=String.fromCharCode(s,a),l=1):n="�"}else n=String.fromCharCode(s);n&&(a.push(e.slice(o,t),encodeURIComponent(n)),o=t+l+1,n=""),l&&(t+=l,l=0)}return a.join("")+e.slice(o)}function ot(e,a){const t=[{type:"text",value:"↩"}];return a>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),t}function lt(e,a){return"Back to reference "+(e+1)+(a>1?"-"+a:"")}var st=t(47970);function nt(e,a){const t=a.referenceType;let o="]";if("collapsed"===t?o+="[]":"full"===t&&(o+="["+(a.label||a.identifier)+"]"),"imageReference"===a.type)return[{type:"text",value:"!["+a.alt+o}];const l=e.all(a),s=l[0];s&&"text"===s.type?s.value="["+s.value:l.unshift({type:"text",value:"["});const n=l[l.length-1];return n&&"text"===n.type?n.value+=o:l.push({type:"text",value:o}),l}function dt(e){const a=e.spread;return null==a?e.children.length>1:a}const rt=9,bt=32;function it(e){const a=String(e),t=/\r?\n|\r/g;let o=t.exec(a),l=0;const s=[];for(;o;)s.push(ct(a.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=t.exec(a);return s.push(ct(a.slice(l),l>0,!1)),s.join("")}function ct(e,a,t){let o=0,l=e.length;if(a){let a=e.codePointAt(o);for(;a===rt||a===bt;)o++,a=e.codePointAt(o)}if(t){let a=e.codePointAt(l-1);for(;a===rt||a===bt;)l--,a=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}const ut={blockquote:function(e,a){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(a),!0)};return e.patch(a,t),e.applyData(a,t)},break:function(e,a){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(a,t),[e.applyData(a,t),{type:"text",value:"\n"}]},code:function(e,a){const t=a.value?a.value+"\n":"",o={};a.lang&&(o.className=["language-"+a.lang]);let l={type:"element",tagName:"code",properties:o,children:[{type:"text",value:t}]};return a.meta&&(l.data={meta:a.meta}),e.patch(a,l),l=e.applyData(a,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(a,l),l},delete:function(e,a){const t={type:"element",tagName:"del",properties:{},children:e.all(a)};return e.patch(a,t),e.applyData(a,t)},emphasis:function(e,a){const t={type:"element",tagName:"em",properties:{},children:e.all(a)};return e.patch(a,t),e.applyData(a,t)},footnoteReference:function(e,a){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",o=String(a.identifier).toUpperCase(),l=tt(o.toLowerCase()),s=e.footnoteOrder.indexOf(o);let n,d=e.footnoteCounts.get(o);void 0===d?(d=0,e.footnoteOrder.push(o),n=e.footnoteOrder.length):n=s+1,d+=1,e.footnoteCounts.set(o,d);const r={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+l,id:t+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(a,r);const b={type:"element",tagName:"sup",properties:{},children:[r]};return e.patch(a,b),e.applyData(a,b)},heading:function(e,a){const t={type:"element",tagName:"h"+a.depth,properties:{},children:e.all(a)};return e.patch(a,t),e.applyData(a,t)},html:function(e,a){if(e.options.allowDangerousHtml){const t={type:"raw",value:a.value};return e.patch(a,t),e.applyData(a,t)}},imageReference:function(e,a){const t=String(a.identifier).toUpperCase(),o=e.definitionById.get(t);if(!o)return nt(e,a);const l={src:tt(o.url||""),alt:a.alt};null!==o.title&&void 0!==o.title&&(l.title=o.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(a,s),e.applyData(a,s)},image:function(e,a){const t={src:tt(a.url)};null!==a.alt&&void 0!==a.alt&&(t.alt=a.alt),null!==a.title&&void 0!==a.title&&(t.title=a.title);const o={type:"element",tagName:"img",properties:t,children:[]};return e.patch(a,o),e.applyData(a,o)},inlineCode:function(e,a){const t={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};e.patch(a,t);const o={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(a,o),e.applyData(a,o)},linkReference:function(e,a){const t=String(a.identifier).toUpperCase(),o=e.definitionById.get(t);if(!o)return nt(e,a);const l={href:tt(o.url||"")};null!==o.title&&void 0!==o.title&&(l.title=o.title);const s={type:"element",tagName:"a",properties:l,children:e.all(a)};return e.patch(a,s),e.applyData(a,s)},link:function(e,a){const t={href:tt(a.url)};null!==a.title&&void 0!==a.title&&(t.title=a.title);const o={type:"element",tagName:"a",properties:t,children:e.all(a)};return e.patch(a,o),e.applyData(a,o)},listItem:function(e,a,t){const o=e.all(a),l=t?function(e){let a=!1;if("list"===e.type){a=e.spread||!1;const t=e.children;let o=-1;for(;!a&&++o0&&t.children.unshift({type:"text",value:" "}),t.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},s=q(a.children[1]),n=G(a.children[a.children.length-1]);s&&n&&(o.position={start:s,end:n}),l.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(a,s),e.applyData(a,s)},tableCell:function(e,a){const t={type:"element",tagName:"td",properties:{},children:e.all(a)};return e.patch(a,t),e.applyData(a,t)},tableRow:function(e,a,t){const o=t?t.children:void 0,l=0===(o?o.indexOf(a):1)?"th":"td",s=t&&"table"===t.type?t.align:void 0,n=s?s.length:a.children.length;let d=-1;const r=[];for(;++d0&&t.push({type:"text",value:"\n"}),t}function vt(e){let a=0,t=e.charCodeAt(a);for(;9===t||32===t;)a++,t=e.charCodeAt(a);return e.slice(a)}function At(e,a){const t=function(e,a){const t=a||pt,o=new Map,l=new Map,s=new Map,n={...ut,...t.handlers},d={all:function(e){const a=[];if("children"in e){const t=e.children;let o=-1;for(;++o