@coffer-org/web 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/assets/ExtendReasonInfo--21FkkoL.js +1 -0
  2. package/dist/assets/GeoMap-BQkjLI1p.js +1 -0
  3. package/dist/assets/MarkdownEditor-DojqYLfa.js +1059 -0
  4. package/dist/assets/NewRecordView-d9dzfC7R.js +1 -0
  5. package/dist/assets/NoMac-BhpqH06Q.js +1 -0
  6. package/dist/assets/PageBody-DXEdPT8C.js +1 -0
  7. package/dist/assets/PluginSettingsPage-BzNvTqpx.js +1 -0
  8. package/dist/assets/ScanSummary-CmBQJkl4.js +1 -0
  9. package/dist/assets/SettingsForm-Bhsv5BEu.js +1 -0
  10. package/dist/assets/SettingsPage-Dxv3eZrP.js +1 -0
  11. package/dist/assets/Toolbar-CXro4MxC.js +1 -0
  12. package/dist/assets/api-gSu-mjEH.js +1 -0
  13. package/dist/assets/auth-context-BLh4J0hg.js +1 -0
  14. package/dist/assets/button-CbB4uqRh.js +5 -0
  15. package/dist/assets/chunk-6CSD65Y2-FavEEIOj.js +3 -0
  16. package/dist/assets/chunk-QTnfLwEv.js +1 -0
  17. package/dist/assets/color-names-CKKZbleV.js +1 -0
  18. package/dist/assets/countries-BSm8PNWW.js +1 -0
  19. package/dist/assets/data-size-D-ZPRlPP.js +1 -0
  20. package/dist/assets/development-C9_TDKdP.js +1 -0
  21. package/dist/assets/dist-C-RcoeMS.js +1 -0
  22. package/dist/assets/dist-CdBkAqXL.js +1 -0
  23. package/dist/assets/dist-iFwZyFpC.js +1 -0
  24. package/dist/assets/{esm-ZmB8_rY0.js → esm-Bpmih92m.js} +11 -11
  25. package/dist/assets/esm-C4bBicMr.js +1 -0
  26. package/dist/assets/extend-DLMSdMhy.js +1 -0
  27. package/dist/assets/field-frame-BY_3TvHn.js +1 -0
  28. package/dist/assets/fields-DVMUyXbG.js +64 -0
  29. package/dist/assets/index-BWdgp_qe.js +318 -0
  30. package/dist/assets/json-Dm-WBmNs.js +41 -0
  31. package/dist/assets/jsx-dev-runtime-BMBl2lag.js +6 -0
  32. package/dist/assets/jsx-runtime-DV9KAPzc.js +6 -0
  33. package/dist/assets/lib-CMoTMQza.js +1 -0
  34. package/dist/assets/lib-lakrpPuj.js +1 -0
  35. package/dist/assets/micromark-extension-gfm-BCNbxHdH.js +3 -0
  36. package/dist/assets/module-DytlXfXo.js +1 -0
  37. package/dist/assets/plugin-b0fDTTXJ.js +1 -0
  38. package/dist/assets/react-D4J6PwTK.js +13 -0
  39. package/dist/assets/settings-Dfvzj6n2.js +1 -0
  40. package/dist/assets/shared-QzShdLB7.js +1 -0
  41. package/dist/assets/src-29EVe5AR.js +4 -0
  42. package/dist/assets/src-791s3ufb.js +1 -0
  43. package/dist/assets/src-7ex3j1NP.js +1 -0
  44. package/dist/assets/src-B8iacye4.js +1 -0
  45. package/dist/assets/src-BiPG5Wj0.js +1 -0
  46. package/dist/assets/src-BljX5hzg.js +1 -0
  47. package/dist/assets/src-C-Dv1uXg.js +1 -0
  48. package/dist/assets/src-C2Pe7TE7.js +1 -0
  49. package/dist/assets/src-CEDC2fUY.js +2 -0
  50. package/dist/assets/src-CLRRfAdi2.js +1 -0
  51. package/dist/assets/src-CSA8Ms7c.js +1 -0
  52. package/dist/assets/src-CVUcsaPt.js +1 -0
  53. package/dist/assets/src-CXN5nPkW.js +1 -0
  54. package/dist/assets/src-CsYFDJmY.js +1 -0
  55. package/dist/assets/src-CuLO2WBn2.js +1 -0
  56. package/dist/assets/src-D6UndSMF.js +1 -0
  57. package/dist/assets/src-D8ptIyqZ.js +1 -0
  58. package/dist/assets/src-DLcSAptE.js +1 -0
  59. package/dist/assets/src-DW-wOHmI.js +1 -0
  60. package/dist/assets/src-DiUhYfl4.js +1 -0
  61. package/dist/assets/src-Do7Z4dhu.js +4 -0
  62. package/dist/assets/src-YMuIAAH1.js +1 -0
  63. package/dist/assets/src-pd92-ym6.js +1 -0
  64. package/dist/assets/src-zakS1nJb.js +7 -0
  65. package/dist/assets/ui-Bl7rNE-K.js +2 -0
  66. package/dist/index.html +27 -13
  67. package/package.json +1 -1
  68. package/dist/assets/ExtendReasonInfo-BWE0jB4G.js +0 -41
  69. package/dist/assets/GeoMap-jaP2nIfo.js +0 -1
  70. package/dist/assets/MarkdownEditor-CX6oZ_kg.js +0 -1052
  71. package/dist/assets/NewRecordView-B-RqnN-Y.js +0 -1
  72. package/dist/assets/PageBody-vqdN-RMp.js +0 -1
  73. package/dist/assets/PluginSettingsPage-B31gFT22.js +0 -1
  74. package/dist/assets/SettingsForm-DDnhqBSj.js +0 -1
  75. package/dist/assets/SettingsPage-BV9UTEDe.js +0 -1
  76. package/dist/assets/Toolbar-BoxzX8xT.js +0 -64
  77. package/dist/assets/api-DkQSqUPw.js +0 -1
  78. package/dist/assets/auth-context-B_qjXnPP.js +0 -1
  79. package/dist/assets/button-kcc5r5Us.js +0 -3
  80. package/dist/assets/dist-BH3_IOMm.js +0 -1
  81. package/dist/assets/esm-CqGX0Bpt.js +0 -1
  82. package/dist/assets/index-a1UeYh9b.js +0 -104
  83. package/dist/assets/index.dom-DUzxw5W6.js +0 -1
  84. package/dist/assets/jsx-runtime-fBfwind-.js +0 -1
  85. package/dist/assets/lib-CypA9mh5.js +0 -1
  86. package/dist/assets/lib-DE723i2V.js +0 -1
  87. package/dist/assets/micromark-extension-gfm-BHHqR65A.js +0 -4
  88. package/dist/assets/react-B8IZ02wI.js +0 -1
  89. /package/dist/assets/{dist-DchZ6_p1.js → dist-DchZ6_p12.js} +0 -0
  90. /package/dist/assets/{dist-IN8WN7NI.js → dist-IN8WN7NI2.js} +0 -0
@@ -0,0 +1,41 @@
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";import{C as n,O as r}from"./button-CbB4uqRh.js";import{a as i,c as a,i as o,n as s,r as c,s as l}from"./dist-CdBkAqXL.js";import{t as u}from"./jsx-runtime-DV9KAPzc.js";import{a as d,c as f,i as p,l as m,n as h,o as g,r as _,s as v,t as y}from"./floating-ui.dom-CRUx2QLQ.js";var b=e(t(),1);function x(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>((...e)=>t.current?.(...e)),[])}function S(e,t=globalThis?.document){let n=x(e);b.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var C=u(),w=`DismissableLayer`,T=`dismissableLayer.update`,E=`dismissableLayer.pointerDownOutside`,D=`dismissableLayer.focusOutside`,O,k=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),A=b.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,onDismiss:u,...d}=e,f=b.useContext(k),[p,m]=b.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=b.useState({}),_=n(t,e=>m(e)),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y),w=p?v.indexOf(p):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,D=w>=x,A=ee(e=>{let t=e.target,n=[...f.branches].some(e=>e.contains(t));!D||n||(s?.(e),l?.(e),e.defaultPrevented||u?.())},h),j=N(e=>{let t=e.target;[...f.branches].some(e=>e.contains(t))||(c?.(e),l?.(e),e.defaultPrevented||u?.())},h);return S(e=>{w===f.layers.size-1&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},h),b.useEffect(()=>{if(p)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(O=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),P(),()=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=O))}},[p,h,r,f]),b.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),P())},[p,f]),b.useEffect(()=>{let e=()=>g({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),(0,C.jsx)(o.div,{...d,ref:_,style:{pointerEvents:E?D?`auto`:`none`:void 0,...e.style},onFocusCapture:a(e.onFocusCapture,j.onFocusCapture),onBlurCapture:a(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,A.onPointerDownCapture)})});A.displayName=w;var j=`DismissableLayerBranch`,M=b.forwardRef((e,t)=>{let r=b.useContext(k),i=b.useRef(null),a=n(t,i);return b.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,C.jsx)(o.div,{...e,ref:a})});M.displayName=j;function ee(e,t=globalThis?.document){let n=x(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){te(E,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function N(e,t=globalThis?.document){let n=x(e),r=b.useRef(!1);return b.useEffect(()=>{let e=e=>{e.target&&!r.current&&te(D,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function P(){let e=new CustomEvent(T);document.dispatchEvent(e)}function te(e,t,n,{discrete:r}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?i(a,o):a.dispatchEvent(o)}var F=0,I=null;function ne(){b.useEffect(()=>{I||={start:L(),end:L()};let{start:e,end:t}=I;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),F++,()=>{F===1&&(I?.start.remove(),I?.end.remove(),I=null),F=Math.max(0,F-1)}},[])}function L(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var R=`focusScope.autoFocusOnMount`,z=`focusScope.autoFocusOnUnmount`,B={bubbles:!1,cancelable:!0},re=`FocusScope`,V=b.forwardRef((e,t)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...c}=e,[l,u]=b.useState(null),d=x(a),f=x(s),p=b.useRef(null),m=n(t,e=>u(e)),h=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?p.current=t:H(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;t!==null&&(l.contains(t)||H(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&H(l)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,l,h.paused]),b.useEffect(()=>{if(l){ue.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(R,B);l.addEventListener(R,d),l.dispatchEvent(t),t.defaultPrevented||(ie(pe(oe(l)),{select:!0}),document.activeElement===e&&H(l))}return()=>{l.removeEventListener(R,d),setTimeout(()=>{let t=new CustomEvent(z,B);l.addEventListener(z,f),l.dispatchEvent(t),t.defaultPrevented||H(e??document.body,{select:!0}),l.removeEventListener(z,f),ue.remove(h)},0)}}},[l,d,f,h]);let g=b.useCallback(e=>{if(!r&&!i||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=ae(t);i&&a?!e.shiftKey&&n===a?(e.preventDefault(),r&&H(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&H(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,h.paused]);return(0,C.jsx)(o.div,{tabIndex:-1,...c,ref:m,onKeyDown:g})});V.displayName=re;function ie(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(H(r,{select:t}),document.activeElement!==n)return}function ae(e){let t=oe(e);return[se(t,e),se(t.reverse(),e)]}function oe(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function se(e,t){for(let n of e)if(!ce(n,{upTo:t}))return n}function ce(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function le(e){return e instanceof HTMLInputElement&&`select`in e}function H(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&le(e)&&t&&e.select()}}var ue=de();function de(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=fe(e,t),e.unshift(t)},remove(t){e=fe(e,t),e[0]?.resume()}}}function fe(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function pe(e){return e.filter(e=>e.tagName!==`A`)}var me=b.useId||(()=>void 0),he=0;function ge(e){let[t,n]=b.useState(me());return c(()=>{e||n(e=>e??String(he++))},[e]),e||(t?`radix-${t}`:``)}var _e=e(r(),1),ve=typeof document<`u`?b.useLayoutEffect:function(){};function U(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!U(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!U(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ye(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function be(e,t){let n=ye(e);return Math.round(t*n)/n}function xe(e){let t=b.useRef(e);return ve(()=>{t.current=e}),t}function Se(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);U(f,r)||p(r);let[m,h]=b.useState(null),[g,v]=b.useState(null),y=b.useCallback(e=>{e!==w.current&&(w.current=e,h(e))},[]),x=b.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),S=a||m,C=o||g,w=b.useRef(null),T=b.useRef(null),E=b.useRef(u),D=c!=null,O=xe(c),k=xe(i),A=xe(l),j=b.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),_(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!U(E.current,t)&&(E.current=t,_e.flushSync(()=>{d(t)}))})},[f,t,n,k,A]);ve(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let M=b.useRef(!1);ve(()=>(M.current=!0,()=>{M.current=!1}),[]),ve(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let ee=b.useMemo(()=>({reference:w,floating:T,setReference:y,setFloating:x}),[y,x]),N=b.useMemo(()=>({reference:S,floating:C}),[S,C]),P=b.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=be(N.floating,u.x),r=be(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ye(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:j,refs:ee,elements:N,floatingStyles:P}),[u,j,ee,N,P])}var Ce=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:y({element:r.current,padding:i}).fn(n):r?y({element:r,padding:i}).fn(n):{}}}},we=(e,t)=>{let n=v(e);return{name:n.name,fn:n.fn,options:[e,t]}},Te=(e,t)=>{let n=f(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ee=(e,t)=>({fn:g(e).fn,options:[e,t]}),De=(e,t)=>{let n=p(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oe=(e,t)=>{let n=m(e);return{name:n.name,fn:n.fn,options:[e,t]}},ke=(e,t)=>{let n=d(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ae=(e,t)=>{let n=Ce(e);return{name:n.name,fn:n.fn,options:[e,t]}},je=`Arrow`,Me=b.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,C.jsx)(o.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,C.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Me.displayName=je;var Ne=Me,Pe=`Popper`,[Fe,Ie]=l(Pe),[Le,Re]=Fe(Pe),ze=e=>{let{__scopePopper:t,children:n}=e,[r,i]=b.useState(null),[a,o]=b.useState(void 0);return(0,C.jsx)(Le,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};ze.displayName=Pe;var Be=`PopperAnchor`,Ve=b.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...a}=e,s=Re(Be,r),c=b.useRef(null),l=s.onAnchorChange,u=n(t,b.useCallback(e=>{c.current=e,e&&l(e)},[l])),d=b.useRef(null);b.useEffect(()=>{if(!i)return;let e=d.current;d.current=i.current,e!==d.current&&l(d.current)});let f=s.placementState&&Ze(s.placementState),p=f?.[0],m=f?.[1];return i?null:(0,C.jsx)(o.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...a,ref:u})});Ve.displayName=Be;var He=`PopperContent`,[Ue,We]=Fe(He),Ge=b.forwardRef((e,t)=>{let{__scopePopper:r,side:i=`bottom`,sideOffset:a=0,align:l=`center`,alignOffset:u=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p,collisionPadding:m=0,sticky:g=`partial`,hideWhenDetached:_=!1,updatePositionStrategy:v=`optimized`,onPlaced:y,...S}=e,w=Re(He,r),[T,E]=b.useState(null),D=n(t,e=>E(e)),[O,k]=b.useState(null),A=s(O),j=A?.width??0,M=A?.height??0,ee=i+(l===`center`?``:`-`+l),N=typeof m==`number`?m:{top:0,right:0,bottom:0,left:0,...m},P=p?Array.isArray(p)?p:[p]:void 0,te=P!==void 0&&P.length>0,F={padding:N,boundary:P?.filter(Ye),altBoundary:te},{refs:I,floatingStyles:ne,placement:L,isPositioned:R,middlewareData:z}=Se({strategy:`fixed`,placement:ee,whileElementsMounted:(...e)=>h(...e,{animationFrame:v===`always`}),elements:{reference:w.anchor},middleware:[we({mainAxis:a+M,alignmentAxis:u}),f&&Te({mainAxis:!0,crossAxis:!1,limiter:g===`partial`?Ee():void 0,...F}),f&&De({...F}),Oe({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),O&&Ae({element:O,padding:d}),Xe({arrowWidth:j,arrowHeight:M}),_&&ke({strategy:`referenceHidden`,...F})]}),B=w.setPlacementState;c(()=>(B(L),()=>{B(void 0)}),[L,B]);let[re,V]=Ze(L),ie=x(y);c(()=>{R&&ie?.()},[R,ie]);let ae=z.arrow?.x,oe=z.arrow?.y,se=z.arrow?.centerOffset!==0,[ce,le]=b.useState();return c(()=>{T&&le(window.getComputedStyle(T).zIndex)},[T]),(0,C.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:R?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(` `),...z.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,C.jsx)(Ue,{scope:r,placedSide:re,placedAlign:V,onArrowChange:k,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:(0,C.jsx)(o.div,{"data-side":re,"data-align":V,...S,ref:D,style:{...S.style,animation:R?void 0:`none`}})})})});Ge.displayName=He;var Ke=`PopperArrow`,qe={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Je=b.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=We(Ke,n),a=qe[i.placedSide];return(0,C.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,C.jsx)(Ne,{...r,ref:t,style:{...r.style,display:`block`}})})});Je.displayName=Ke;function Ye(e){return e!==null}var Xe=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ze(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Ze(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Qe=ze,$e=Ve,et=Ge,tt=Je,nt=`Portal`,rt=b.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=b.useState(!1);c(()=>a(!0),[]);let s=n||i&&globalThis?.document?.body;return s?_e.createPortal((0,C.jsx)(o.div,{...r,ref:t}),s):null});rt.displayName=nt;function it(e,t){return b.useReducer((e,n)=>t[e][n]??e,e)}var at=e=>{let{present:t,children:n}=e,r=ot(t),i=typeof n==`function`?n({present:r.isPresent}):b.Children.only(n),a=ct(r.ref,lt(i));return typeof n==`function`||r.isPresent?b.cloneElement(i,{ref:a}):null};at.displayName=`Presence`;function ot(e){let[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),a=b.useRef(`none`),[o,s]=it(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return b.useEffect(()=>{let e=W(r.current);a.current=o===`mounted`?e:`none`},[o]),c(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=W(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),c(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=W(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=W(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:b.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function st(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ct(...e){let t=b.useRef(e);return t.current=e,b.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=st(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():st(n[e],null)}}},[])}function W(e){return e?.animationName||`none`}function lt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ut=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},G=new WeakMap,K=new WeakMap,q={},dt=0,ft=function(e){return e&&(e.host||ft(e.parentNode))},pt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ft(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},mt=function(e,t,n,r){var i=pt(t,Array.isArray(e)?e:[e]);q[n]||(q[n]=new WeakMap);var a=q[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(G.get(e)||0)+1,l=(a.get(e)||0)+1;G.set(e,c),a.set(e,l),o.push(e),c===1&&i&&K.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),dt++,function(){o.forEach(function(e){var t=G.get(e)-1,i=a.get(e)-1;G.set(e,t),a.set(e,i),t||(K.has(e)||e.removeAttribute(r),K.delete(e)),i||e.removeAttribute(n)}),dt--,dt||(G=new WeakMap,G=new WeakMap,K=new WeakMap,q={})}},ht=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ut(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),mt(r,i,n,`aria-hidden`)):function(){return null}},J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J.apply(this,arguments)};function gt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function _t(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Y=`right-scroll-bar-position`,vt=`width-before-scroll-bar`,yt=`with-scroll-bars-hidden`,bt=`--removed-body-scroll-bar-size`;function xt(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function St(e,t){var n=(0,b.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Ct=typeof window<`u`?b.useLayoutEffect:b.useEffect,wt=new WeakMap;function Tt(e,t){var n=St(t||null,function(t){return e.forEach(function(e){return xt(e,t)})});return Ct(function(){var t=wt.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||xt(e,null)}),i.forEach(function(e){r.has(e)||xt(e,a)})}wt.set(n,e)},[e]),n}function Et(e){return e}function Dt(e,t){t===void 0&&(t=Et);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ot(e){e===void 0&&(e={});var t=Dt(null);return t.options=J({async:!0,ssr:!1},e),t}var kt=function(e){var t=e.sideCar,n=gt(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return b.createElement(r,J({},n))};kt.isSideCarExport=!0;function At(e,t){return e.useMedium(t),kt}var jt=Ot(),Mt=function(){},X=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:Mt,onWheelCapture:Mt,onTouchMoveCapture:Mt}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,x=gt(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Tt([n,t]),w=J(J({},x),i);return b.createElement(b.Fragment,null,u&&b.createElement(S,{sideCar:jt,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?b.cloneElement(b.Children.only(s),J(J({},w),{ref:C})):b.createElement(v,J({},w,{className:c,ref:C}),s))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},X.classNames={fullWidth:vt,zeroRight:Y};var Nt,Pt=function(){if(Nt)return Nt;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ft(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Pt();return t&&e.setAttribute(`nonce`,t),e}function It(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Lt(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Rt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ft())&&(It(t,n),Lt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zt=function(){var e=Rt();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bt=function(){var e=zt();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Vt={left:0,top:0,right:0,gap:0},Ht=function(e){return parseInt(e||``,10)||0},Ut=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Ht(n),Ht(r),Ht(i)]},Wt=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Vt;var t=Ut(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gt=Bt(),Z=`data-scroll-locked`,Kt=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${yt} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${s}px ${r};
5
+ }
6
+ body[${Z}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${a}px;
12
+ padding-right: ${o}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${s}px ${r};
16
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${Y} {
20
+ right: ${s}px ${r};
21
+ }
22
+
23
+ .${vt} {
24
+ margin-right: ${s}px ${r};
25
+ }
26
+
27
+ .${Y} .${Y} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${vt} .${vt} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${Z}] {
36
+ ${bt}: ${s}px;
37
+ }
38
+ `},qt=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Jt=function(){b.useEffect(function(){return document.body.setAttribute(Z,(qt()+1).toString()),function(){var e=qt()-1;e<=0?document.body.removeAttribute(Z):document.body.setAttribute(Z,e.toString())}},[])},Yt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Jt();var a=b.useMemo(function(){return Wt(i)},[i]);return b.createElement(Gt,{styles:Kt(a,!t,i,n?``:`!important`)})},Xt=!1;if(typeof window<`u`)try{var Zt=Object.defineProperty({},"passive",{get:function(){return Xt=!0,!0}});window.addEventListener(`test`,Zt,Zt),window.removeEventListener(`test`,Zt,Zt)}catch{Xt=!1}var Q=Xt?{passive:!1}:!1,Qt=function(e){return e.tagName===`TEXTAREA`},$t=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Qt(e)&&n[t]===`visible`)},en=function(e){return $t(e,`overflowY`)},tn=function(e){return $t(e,`overflowX`)},nn=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),on(e,r)){var i=sn(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rn=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},an=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},on=function(e,t){return e===`v`?en(t):tn(t)},sn=function(e,t){return e===`v`?rn(t):an(t)},cn=function(e,t){return e===`h`&&t===`rtl`?-1:1},ln=function(e,t,n,r,i){var a=cn(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=sn(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&on(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},un=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dn=function(e){return[e.deltaX,e.deltaY]},fn=function(e){return e&&`current`in e?e.current:e},pn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mn=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},hn=0,$=[];function gn(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(hn++)[0],a=b.useState(Bt)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=_t([e.lockRef.current],(e.shards||[]).map(fn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=b.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=un(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=nn(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=nn(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return ln(h,t,e,h===`h`?s:c,!0)},[]),c=b.useCallback(function(e){var n=e;if(!(!$.length||$[$.length-1]!==a)){var r=`deltaY`in n?dn(n):un(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&pn(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(fn).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=b.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:_n(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=b.useCallback(function(e){n.current=un(e),r.current=void 0},[]),d=b.useCallback(function(t){l(t.type,dn(t),t.target,s(t,e.lockRef.current))},[]),f=b.useCallback(function(t){l(t.type,un(t),t.target,s(t,e.lockRef.current))},[]);b.useEffect(function(){return $.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Q),document.addEventListener(`touchmove`,c,Q),document.addEventListener(`touchstart`,u,Q),function(){$=$.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Q),document.removeEventListener(`touchmove`,c,Q),document.removeEventListener(`touchstart`,u,Q)}},[]);var p=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(a,{styles:mn(i)}):null,p?b.createElement(Yt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _n(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var vn=At(jt,gn),yn=b.forwardRef(function(e,t){return b.createElement(X,J({},e,{ref:t,sideCar:vn}))});yn.classNames=X.classNames;function bn(e,t){if(e==null||e===``)return t;if(typeof e==`object`)return e;try{return JSON.parse(String(e))}catch{return t}}export{x as S,Se as _,rt as a,ne as b,et as c,De as d,ke as f,Oe as g,Te as h,at as i,Qe as l,we as m,yn as n,$e as o,Ee as p,ht as r,tt as s,bn as t,Ie as u,ge as v,A as x,V as y};
@@ -0,0 +1,6 @@
1
+ import{t as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";var n=e((e=>{(function(){function n(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?n(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function r(e){return``+e}function i(e){try{r(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),r(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var t=n(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function u(){var e=n(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,t,r,a,s,u){var f=t.children;if(f!==void 0)if(a)if(M(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(t,`key`)){f=n(e);var m=Object.keys(t).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,R[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,a,f,m,f),R[f+a]=!0)}if(f=null,r!==void 0&&(i(r),f=``+r),c(t)&&(i(t.key),f=``+t.key),`key`in t)for(var h in r={},t)h!==`key`&&(r[h]=t[h]);else r=t;return f&&l(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e),d(e,f,r,o(),s,u)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===D&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=t(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,M=Array.isArray,N=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var P,F={},I=h.react_stack_bottom_frame.bind(h,s)(),L=N(a(s)),R={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var i=1e4>A.recentlyCreatedOwnerStacks++;return f(e,t,n,r,i?Error(`react-stack-top-frame`):I,i?N(a(e)):L)}})()})),r=e(((e,t)=>{t.exports=n()}));export{r as t};
@@ -0,0 +1,6 @@
1
+ import{t as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";var n=e((e=>{(function(){function n(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?n(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function r(e){return``+e}function i(e){try{r(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),r(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var t=n(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function u(){var e=n(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,t,r,a,s,u){var f=t.children;if(f!==void 0)if(a)if(M(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(t,`key`)){f=n(e);var m=Object.keys(t).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,R[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,a,f,m,f),R[f+a]=!0)}if(f=null,r!==void 0&&(i(r),f=``+r),c(t)&&(i(t.key),f=``+t.key),`key`in t)for(var h in r={},t)h!==`key`&&(r[h]=t[h]);else r=t;return f&&l(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e),d(e,f,r,o(),s,u)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===D&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=t(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,M=Array.isArray,N=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var P,F={},I=h.react_stack_bottom_frame.bind(h,s)(),L=N(a(s)),R={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):I,r?N(a(e)):L)},e.jsxs=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):I,r?N(a(e)):L)}})()})),r=e(((e,t)=>{t.exports=n()}));export{r as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./development-C9_TDKdP.js";var n=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};n.prototype.normal={},n.prototype.property={},n.prototype.space=void 0;function r(e,t){let r={},i={};for(let t of e)Object.assign(r,t.property),Object.assign(i,t.normal);return new n(r,i,t)}function i(e){return e.toLowerCase()}var a=class{constructor(e,t){this.attribute=t,this.property=e}};a.prototype.attribute=``,a.prototype.booleanish=!1,a.prototype.boolean=!1,a.prototype.commaOrSpaceSeparated=!1,a.prototype.commaSeparated=!1,a.prototype.defined=!1,a.prototype.mustUseProperty=!1,a.prototype.number=!1,a.prototype.overloadedBoolean=!1,a.prototype.property=``,a.prototype.spaceSeparated=!1,a.prototype.space=void 0;var o=e({boolean:()=>c,booleanish:()=>l,commaOrSpaceSeparated:()=>m,commaSeparated:()=>p,number:()=>d,overloadedBoolean:()=>u,spaceSeparated:()=>f}),s=0,c=h(),l=h(),u=h(),d=h(),f=h(),p=h(),m=h();function h(){return 2**++s}var g=Object.keys(o),_=class extends a{constructor(e,t,n,r){let i=-1;if(super(e,t),v(this,`space`,r),typeof n==`number`)for(;++i<g.length;){let e=g[i];v(this,g[i],(n&o[e])===o[e])}}};_.prototype.defined=!0;function v(e,t,n){n&&(e[t]=n)}function y(e){let t={},r={};for(let[n,a]of Object.entries(e.properties)){let o=new _(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[i(n)]=n,r[i(o.attribute)]=n}return new n(t,r,e.space)}var b=y({properties:{ariaActiveDescendant:null,ariaAtomic:l,ariaAutoComplete:null,ariaBusy:l,ariaChecked:l,ariaColCount:d,ariaColIndex:d,ariaColSpan:d,ariaControls:f,ariaCurrent:null,ariaDescribedBy:f,ariaDetails:null,ariaDisabled:l,ariaDropEffect:f,ariaErrorMessage:null,ariaExpanded:l,ariaFlowTo:f,ariaGrabbed:l,ariaHasPopup:null,ariaHidden:l,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f,ariaLevel:d,ariaLive:null,ariaModal:l,ariaMultiLine:l,ariaMultiSelectable:l,ariaOrientation:null,ariaOwns:f,ariaPlaceholder:null,ariaPosInSet:d,ariaPressed:l,ariaReadOnly:l,ariaRelevant:null,ariaRequired:l,ariaRoleDescription:f,ariaRowCount:d,ariaRowIndex:d,ariaRowSpan:d,ariaSelected:l,ariaSetSize:d,ariaSort:null,ariaValueMax:d,ariaValueMin:d,ariaValueNow:d,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function x(e,t){return t in e?e[t]:t}function S(e,t){return x(e,t.toLowerCase())}var C=y({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:p,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:c,allowPaymentRequest:c,allowUserMedia:c,alpha:c,alt:null,as:null,async:c,autoCapitalize:null,autoComplete:f,autoFocus:c,autoPlay:c,blocking:f,capture:null,charSet:null,checked:c,cite:null,className:f,closedBy:null,colorSpace:null,cols:d,colSpan:d,command:null,commandFor:null,content:null,contentEditable:l,controls:c,controlsList:f,coords:d|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:c,defer:c,dir:null,dirName:null,disabled:c,download:u,draggable:l,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:c,formTarget:null,headers:f,height:d,hidden:u,high:d,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:null,inert:c,inputMode:null,integrity:null,is:null,isMap:c,itemId:null,itemProp:f,itemRef:f,itemScope:c,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:c,low:d,manifest:null,max:null,maxLength:d,media:null,method:null,min:null,minLength:d,multiple:c,muted:c,name:null,nonce:null,noModule:c,noValidate:c,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:c,optimum:d,pattern:null,ping:f,placeholder:null,playsInline:c,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:c,referrerPolicy:null,rel:f,required:c,reversed:c,rows:d,rowSpan:d,sandbox:f,scope:null,scoped:c,seamless:c,selected:c,shadowRootClonable:c,shadowRootCustomElementRegistry:c,shadowRootDelegatesFocus:c,shadowRootMode:null,shadowRootSerializable:c,shape:null,size:d,sizes:null,slot:null,span:d,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:null,start:d,step:null,style:null,tabIndex:d,target:null,title:null,translate:null,type:null,typeMustMatch:c,useMap:null,value:l,width:d,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:d,borderColor:null,bottomMargin:d,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:c,declare:c,event:null,face:null,frame:null,frameBorder:null,hSpace:d,leftMargin:d,link:null,longDesc:null,lowSrc:null,marginHeight:d,marginWidth:d,noResize:c,noHref:c,noShade:c,noWrap:c,object:null,profile:null,prompt:null,rev:null,rightMargin:d,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:d,valueType:null,version:null,vAlign:null,vLink:null,vSpace:d,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:c,disablePictureInPicture:c,disableRemotePlayback:c,exportParts:p,part:f,prefix:null,property:null,results:d,security:null,unselectable:null},space:`html`,transform:S}),w=y({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:m,accentHeight:d,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:d,amplitude:d,arabicForm:null,ascent:d,attributeName:null,attributeType:null,azimuth:d,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:d,by:null,calcMode:null,capHeight:d,className:f,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:d,diffuseConstant:d,direction:null,display:null,dur:null,divisor:d,dominantBaseline:null,download:c,dx:null,dy:null,edgeMode:null,editable:null,elevation:d,enableBackground:null,end:null,event:null,exponent:d,externalResourcesRequired:null,fill:null,fillOpacity:d,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:p,g2:p,glyphName:p,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:d,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:d,horizOriginX:d,horizOriginY:d,id:null,ideographic:d,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:d,k:d,k1:d,k2:d,k3:d,k4:d,kernelMatrix:m,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:d,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:d,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:d,overlineThickness:d,paintOrder:null,panose1:null,path:null,pathLength:d,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:d,pointsAtY:d,pointsAtZ:d,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:m,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:m,rev:m,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:m,requiredFeatures:m,requiredFonts:m,requiredFormats:m,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:d,specularExponent:d,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:d,strikethroughThickness:d,string:null,stroke:null,strokeDashArray:m,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:d,strokeOpacity:d,strokeWidth:null,style:null,surfaceScale:d,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:m,tabIndex:d,tableValues:null,target:null,targetX:d,targetY:d,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:m,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:d,underlineThickness:d,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:d,values:null,vAlphabetic:d,vMathematical:d,vectorEffect:null,vHanging:d,vIdeographic:d,version:null,vertAdvY:d,vertOriginX:d,vertOriginY:d,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:d,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:x}),T=y({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),E=y({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:S}),D=y({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ee=/[A-Z]/g,O=/-[a-z]/g,k=/^data[-\w.:]+$/i;function A(e,t){let n=i(t),r=t,o=a;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&k.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(O,M);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!O.test(e)){let n=e.replace(ee,j);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}o=_}return new o(r,t)}function j(e){return`-`+e.toLowerCase()}function M(e){return e.charAt(1).toUpperCase()}var N=r([b,C,T,E,D],`html`),P=r([b,w,T,E,D],`svg`);function F(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function I(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var L=/[#.]/g;function R(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){L.lastIndex=i;let e=L.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function z(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function te(e){return e.join(` `).trim()}function B(e,t,n){let r=n?K(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=R(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,V(i))a.unshift(i);else for(let[t,n]of Object.entries(i))H(e,o.properties,t,n)}for(let e of a)U(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function V(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function H(e,t,n,r){let i=A(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?z(r):i.commaSeparated?F(r):i.commaOrSpaceSeparated?z(F(r).join(` `)):W(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?G(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(W(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function U(e,t){if(t!=null)if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)U(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?U(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function W(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||i(n)===i(t)))return!0}return n}function G(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function K(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var q=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),J=B(N,`div`),Y=B(P,`g`,q),X=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Z={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Q(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function ne(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function re(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function $(e){return re(e)||Q(e)}var ie=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function ae(e,n){let r=n||{},i=typeof r.additional==`string`?r.additional.charCodeAt(0):r.additional,a=[],o=0,s=-1,c=``,l,u;r.position&&(`start`in r.position||`indent`in r.position?(u=r.position.indent,l=r.position.start):l=r.position);let d=(l?l.line:0)||1,f=(l?l.column:0)||1,p=h(),m;for(o--;++o<=e.length;)if(m===10&&(f=(u?u[s]:0)||1),m=e.charCodeAt(o),m===38){let n=e.charCodeAt(o+1);if(n===9||n===10||n===12||n===32||n===38||n===60||Number.isNaN(n)||i&&n===i){c+=String.fromCharCode(m),f++;continue}let s=o+1,l=s,u=s,d;if(n===35){u=++l;let t=e.charCodeAt(u);t===88||t===120?(d=`hexadecimal`,u=++l):d=`decimal`}else d=`named`;let v=``,y=``,b=``,x=d===`named`?$:d===`decimal`?Q:ne;for(u--;++u<=e.length;){let n=e.charCodeAt(u);if(!x(n))break;b+=String.fromCharCode(n),d===`named`&&X.includes(b)&&(v=b,y=t(b))}let S=e.charCodeAt(u)===59;if(S){u++;let e=d===`named`?t(b):!1;e&&(v=b,y=e)}let C=1+u-s,w=``;if(!(!S&&r.nonTerminated===!1))if(!b)d!==`named`&&g(4,C);else if(d===`named`){if(S&&!y)g(5,1);else if(v!==b&&(u=l+v.length,C=1+u-l,S=!1),!S){let t=v?1:3;if(r.attribute){let n=e.charCodeAt(u);n===61?(g(t,C),y=``):$(n)?y=``:g(t,C)}else g(t,C)}w=y}else{S||g(2,C);let e=Number.parseInt(b,d===`hexadecimal`?16:10);if(oe(e))g(7,C),w=`�`;else if(e in Z)g(6,C),w=Z[e];else{let t=``;se(e)&&g(6,C),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),w=t+String.fromCharCode(e)}}if(w){_(),p=h(),o=u-1,f+=u-s+1,a.push(w);let t=h();t.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,w,{start:p,end:t},e.slice(s-1,u)),p=t}else b=e.slice(s-1,u),c+=b,f+=b.length,o=u-1}else m===10&&(d++,s++,f=0),Number.isNaN(m)?_():(c+=String.fromCharCode(m),f++);return a.join(``);function h(){return{line:d,column:f,offset:o+((l?l.offset:0)||0)}}function g(e,t){let n;r.warning&&(n=h(),n.column+=t,n.offset+=t,r.warning.call(r.warningContext||void 0,ie[e],n,e))}function _(){c&&=(a.push(c),r.text&&r.text.call(r.textContext||void 0,c,{start:p,end:h()}),``)}}function oe(e){return e>=55296&&e<=57343||e>1114111}function se(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}export{z as a,I as c,A as d,Y as i,N as l,X as n,te as o,J as r,F as s,ae as t,P as u};
@@ -0,0 +1 @@
1
+ import{r as e,t}from"./chunk-QTnfLwEv.js";import{t as n}from"./development-C9_TDKdP.js";function r(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?a(e.position):`start`in e||`end`in e?a(e):`line`in e||`column`in e?i(e):``}function i(e){return o(e&&e.line)+`:`+o(e&&e.column)}function a(e){return i(e&&e.start)+`-`+i(e&&e.end)}function o(e){return e&&typeof e==`number`?e:1}var s=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let i=``,a={},o=!1;if(t&&(a=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?i=e:!a.cause&&e&&(o=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){let e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}let s=a.place&&`start`in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file=``,this.message=i,this.line=s?s.line:void 0,this.name=r(a.place)||`1:1`,this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack==`string`?a.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};s.prototype.file=``,s.prototype.name=``,s.prototype.reason=``,s.prototype.message=``,s.prototype.stack=``,s.prototype.column=void 0,s.prototype.line=void 0,s.prototype.ancestors=void 0,s.prototype.cause=void 0,s.prototype.fatal=void 0,s.prototype.place=void 0,s.prototype.ruleId=void 0,s.prototype.source=void 0;var c={basename:l,dirname:u,extname:d,join:f,sep:`/`};function l(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);h(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function u(e){if(h(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function d(e){h(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function f(...e){let t=-1,n;for(;++t<e.length;)h(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:p(n)}function p(e){h(e);let t=e.codePointAt(0)===47,n=m(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function m(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function h(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var g={cwd:_};function _(){return`/`}function v(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function y(e){if(typeof e==`string`)e=new URL(e);else if(!v(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return b(e)}function b(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var x=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],S=class{constructor(e){let t;t=e?v(e)?{path:e}:typeof e==`string`||E(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:g.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<x.length;){let e=x[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)x.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?c.basename(this.path):void 0}set basename(e){w(e,`basename`),C(e,`basename`),this.path=c.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?c.dirname(this.path):void 0}set dirname(e){T(this.basename,`dirname`),this.path=c.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?c.extname(this.path):void 0}set extname(e){if(C(e,`extname`),T(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=c.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){v(e)&&(e=y(e)),w(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?c.basename(this.path,this.extname):void 0}set stem(e){w(e,`stem`),C(e,`stem`),this.path=c.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new s(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function C(e,t){if(e&&e.includes(c.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+c.sep+"`")}function w(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function T(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function E(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var D={}.hasOwnProperty;function O(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&D.call(t,e)){let n=String(t[e]);i=D.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function k(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function A(e){if(e)throw e}var j=e(t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function M(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function N(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?P(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function P(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var ee=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),te={}.hasOwnProperty,F=new class e extends ee{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=N()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,j.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(R(`data`,this.frozen),this.namespace[e]=t,this):te.call(this.namespace,e)&&this.namespace[e]||void 0:e?(R(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=V(e),n=this.parser||this.Parser;return I(`parse`,n),n(String(t),t)}process(e,t){let r=this;return this.freeze(),I(`process`,this.parser||this.Parser),L(`process`,this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(i,a){let o=V(e),s=r.parse(o);r.run(s,o,function(e,t,n){if(e||!t||!n)return c(e);let i=t,a=r.stringify(i,n);U(a)?n.value=a:n.result=a,c(e,n)});function c(e,r){e||!r?a(e):i?i(r):(n(t,"`done` is defined if `resolve` is not"),t(void 0,r))}}}processSync(e){let t=!1,r;return this.freeze(),I(`processSync`,this.parser||this.Parser),L(`processSync`,this.compiler||this.Compiler),this.process(e,i),B(`processSync`,`process`,t),n(r,`we either bailed on an error or have a tree`),r;function i(e,n){t=!0,A(e),r=n}}run(e,t,r){z(e),this.freeze();let i=this.transformers;return!r&&typeof t==`function`&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(a,o){n(typeof t!=`function`,"`file` can’t be a `done` anymore, we checked");let s=V(t);i.run(e,s,c);function c(t,i,s){let c=i||e;t?o(t):a?a(c):(n(r,"`done` is defined if `resolve` is not"),r(void 0,c,s))}}}runSync(e,t){let r=!1,i;return this.run(e,t,a),B(`runSync`,`run`,r),n(i,`we either bailed on an error or have a tree`),i;function a(e,t){A(e),i=t,r=!0}}stringify(e,t){this.freeze();let n=V(t),r=this.compiler||this.Compiler;return L(`stringify`,r),z(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(R(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,j.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];M(o)&&M(r)&&(r=(0,j.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function I(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function L(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function R(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function z(e){if(!M(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function B(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function V(e){return H(e)?e:new S(e)}function H(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function U(e){return typeof e==`string`||W(e)}function W(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var G=(function(e){if(e==null)return X;if(typeof e==`function`)return Y(e);if(typeof e==`object`)return Array.isArray(e)?K(e):q(e);if(typeof e==`string`)return J(e);throw Error(`Expected function, string, or object as test`)});function K(e){let t=[],n=-1;for(;++n<e.length;)t[n]=G(e[n]);return Y(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function q(e){let t=e;return Y(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function J(e){return Y(t);function t(t){return t&&t.type===e}}function Y(e){return t;function t(t,n,r){return!!(Z(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function X(){return!0}function Z(e){return typeof e==`object`&&!!e&&`type`in e}function ne(e){return e}var Q=[],re=`skip`;function $(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=G(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+ne(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Q,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=ie(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function ie(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Q:[e]}function ae(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),$(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}export{F as a,S as c,G as i,s as l,re as n,k as o,$ as r,O as s,ae as t,r as u};
@@ -0,0 +1,3 @@
1
+ import{n as e,r as t,t as n}from"./chunk-QTnfLwEv.js";import{n as r,t as i}from"./development-C9_TDKdP.js";var a={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},o={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},s={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},c={ht:` `,lf:`
2
+ `,cr:`\r`,space:` `,exclamationMark:`!`,quotationMark:`"`,numberSign:`#`,dollarSign:`$`,percentSign:`%`,ampersand:`&`,apostrophe:`'`,leftParenthesis:`(`,rightParenthesis:`)`,asterisk:`*`,plusSign:`+`,comma:`,`,dash:`-`,dot:`.`,slash:`/`,digit0:`0`,digit1:`1`,digit2:`2`,digit3:`3`,digit4:`4`,digit5:`5`,digit6:`6`,digit7:`7`,digit8:`8`,digit9:`9`,colon:`:`,semicolon:`;`,lessThan:`<`,equalsTo:`=`,greaterThan:`>`,questionMark:`?`,atSign:`@`,uppercaseA:`A`,uppercaseB:`B`,uppercaseC:`C`,uppercaseD:`D`,uppercaseE:`E`,uppercaseF:`F`,uppercaseG:`G`,uppercaseH:`H`,uppercaseI:`I`,uppercaseJ:`J`,uppercaseK:`K`,uppercaseL:`L`,uppercaseM:`M`,uppercaseN:`N`,uppercaseO:`O`,uppercaseP:`P`,uppercaseQ:`Q`,uppercaseR:`R`,uppercaseS:`S`,uppercaseT:`T`,uppercaseU:`U`,uppercaseV:`V`,uppercaseW:`W`,uppercaseX:`X`,uppercaseY:`Y`,uppercaseZ:`Z`,leftSquareBracket:`[`,backslash:`\\`,rightSquareBracket:`]`,caret:`^`,underscore:`_`,graveAccent:"`",lowercaseA:`a`,lowercaseB:`b`,lowercaseC:`c`,lowercaseD:`d`,lowercaseE:`e`,lowercaseF:`f`,lowercaseG:`g`,lowercaseH:`h`,lowercaseI:`i`,lowercaseJ:`j`,lowercaseK:`k`,lowercaseL:`l`,lowercaseM:`m`,lowercaseN:`n`,lowercaseO:`o`,lowercaseP:`p`,lowercaseQ:`q`,lowercaseR:`r`,lowercaseS:`s`,lowercaseT:`t`,lowercaseU:`u`,lowercaseV:`v`,lowercaseW:`w`,lowercaseX:`x`,lowercaseY:`y`,lowercaseZ:`z`,leftCurlyBrace:`{`,verticalBar:`|`,rightCurlyBrace:`}`,tilde:`~`,replacementCharacter:`�`};function l(e,t,n,r){let i=e.length,a=0,s;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<o.v8MaxSafeChunkSize)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+o.v8MaxSafeChunkSize),s.unshift(t,0),e.splice(...s),a+=o.v8MaxSafeChunkSize,t+=o.v8MaxSafeChunkSize}function u(e,t){return e.length>0?(l(e,e.length,0,t),e):t}var d={}.hasOwnProperty;function f(e){let t={},n=-1;for(;++n<e.length;)p(t,e[n]);return t}function p(e,t){let n;for(n in t){let r=(d.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){d.call(r,a)||(r[a]=[]);let e=i[a];m(r[a],Array.isArray(e)?e:e?[e]:[])}}}function m(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);l(e,0,0,r)}function h(e){let t={},n=-1;for(;++n<e.length;)g(t,e[n]);return t}function g(e,t){let n;for(n in t){let r=(d.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i)r[a]=i[a]}}function _(e,t){let n=Number.parseInt(e,t);return n<a.ht||n===a.vt||n>a.cr&&n<a.space||n>a.tilde&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?c.replacementCharacter:String.fromCodePoint(n)}var v={'"':`quot`,"&":`amp`,"<":`lt`,">":`gt`};function y(e){return e.replace(/["&<>]/g,t);function t(e){return`&`+v[e]+`;`}}function b(e){return e.replace(/[\t\n\r ]+/g,c.space).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var x=N(/[A-Za-z]/),S=N(/[\dA-Za-z]/),C=N(/[#-'*+\--9=?A-Z^-~]/);function w(e){return e!==null&&(e<a.space||e===a.del)}var T=N(/\d/),E=N(/[\dA-Fa-f]/),D=N(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<a.horizontalTab}function k(e){return e!==null&&(e<a.nul||e===a.space)}function A(e){return e===a.horizontalTab||e===a.virtualSpace||e===a.space}var j=N(/\p{P}|\p{S}/u),M=N(/\s/);function N(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function P(e,t){let n=y(F(e||``));if(!t)return n;let r=n.indexOf(`:`),i=n.indexOf(`?`),a=n.indexOf(`#`),o=n.indexOf(`/`);return r<0||o>-1&&r>o||i>-1&&r>i||a>-1&&r>a||t.test(n.slice(0,r))?n:``}function F(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),s=``;if(o===a.percentSign&&S(e.charCodeAt(n+1))&&S(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s=c.replacementCharacter}else s=String.fromCharCode(o);s&&=(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}var I={}.hasOwnProperty,L=/^(https?|ircs?|mailto|xmpp)$/i,R=/^https?$/i;function ee(e){let t=e||{},n=!0,c={},l=[[]],d=[],f=[],p=h([{enter:{blockQuote:ne,codeFenced:re,codeFencedFenceInfo:T,codeFencedFenceMeta:T,codeIndented:oe,codeText:Le,content:Ce,definition:_e,definitionDestinationString:ye,definitionLabelString:T,definitionTitleString:T,emphasis:Fe,htmlFlow:Me,htmlText:Pe,image:ce,label:T,link:le,listItemMarker:z,listItemValue:ee,listOrdered:N,listUnordered:F,paragraph:U,reference:T,resource:fe,resourceDestinationString:pe,resourceTitleString:T,setextHeading:Te,strong:Ie},exit:{atxHeading:De,atxHeadingSequence:we,autolinkEmail:We,autolinkProtocol:Ue,blockQuote:H,characterEscapeValue:K,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:He,codeFenced:se,codeFencedFence:ae,codeFencedFenceInfo:ie,codeFencedFenceMeta:M,codeFlowValue:q,codeIndented:se,codeText:Re,codeTextData:K,data:K,definition:Se,definitionDestinationString:be,definitionLabelString:ve,definitionTitleString:xe,emphasis:ze,hardBreakEscape:je,hardBreakTrailing:je,htmlFlow:Ne,htmlFlowData:K,htmlText:Ne,htmlTextData:K,image:ge,label:ue,labelText:G,lineEnding:Ae,link:ge,listOrdered:te,listUnordered:B,paragraph:W,reference:M,referenceString:de,resource:M,resourceDestinationString:me,resourceTitleString:he,setextHeading:ke,setextHeadingLineSequence:Oe,setextHeadingText:Ee,strong:Be,thematicBreak:J}},...t.htmlExtensions||[]]),m={definitions:c,tightStack:f},g={buffer:T,encode:j,getData:w,lineEndingIfNeeded:A,options:t,raw:O,resume:E,setData:C,tag:D},v=t.defaultLineEnding;return x;function x(e){let t=-1,n=0,r=[],i=[],a=[];for(;++t<e.length;)!v&&(e[t][1].type===s.lineEnding||e[t][1].type===s.lineEndingBlank)&&(v=e[t][2].sliceSerialize(e[t][1])),(e[t][1].type===s.listOrdered||e[t][1].type===s.listUnordered)&&(e[t][0]===`enter`?r.push(t):S(e.slice(r.pop(),t))),e[t][1].type===s.definition&&(e[t][0]===`enter`?(a=u(a,e.slice(n,t)),n=t):(i=u(i,e.slice(n,t+1)),n=t+1));i=u(i,a),i=u(i,e.slice(n)),t=-1;let o=i;for(p.enter.null&&p.enter.null.call(g);++t<e.length;){let e=p[o[t][0]],n=o[t][1].type,r=e[n];I.call(e,n)&&r&&r.call({sliceSerialize:o[t][2].sliceSerialize,...g},o[t][1])}return p.exit.null&&p.exit.null.call(g),l[0].join(``)}function S(e){let t=e.length,n=0,r=0,i=!1,a;for(;++n<t;){let t=e[n];if(t[1]._container)a=void 0,t[0]===`enter`?r++:r--;else switch(t[1].type){case s.listItemPrefix:t[0]===`exit`&&(a=!0);break;case s.linePrefix:break;case s.lineEndingBlank:t[0]===`enter`&&!r&&(a?a=void 0:i=!0);break;default:a=void 0}}e[0][1]._loose=i}function C(e,t){m[e]=t}function w(e){return m[e]}function T(){l.push([])}function E(){let e=l.pop();return i(e!==void 0,`Cannot resume w/o buffer`),e.join(``)}function D(e){n&&(C(`lastWasTag`,!0),l[l.length-1].push(e))}function O(e){C(`lastWasTag`),l[l.length-1].push(e)}function k(){O(v||`
3
+ `)}function A(){let e=l[l.length-1],t=e[e.length-1],n=t?t.charCodeAt(t.length-1):a.eof;n===a.lf||n===a.cr||n===a.eof||k()}function j(e){return w(`ignoreEncode`)?e:y(e)}function M(){E()}function N(e){f.push(!e._loose),A(),D(`<ol`),C(`expectFirstItem`,!0)}function F(e){f.push(!e._loose),A(),D(`<ul`),C(`expectFirstItem`,!0)}function ee(e){if(w(`expectFirstItem`)){let t=Number.parseInt(this.sliceSerialize(e),o.numericBaseDecimal);t!==1&&D(` start="`+j(String(t))+`"`)}}function z(){w(`expectFirstItem`)?D(`>`):V(),A(),D(`<li>`),C(`expectFirstItem`),C(`lastWasTag`)}function te(){V(),f.pop(),k(),D(`</ol>`)}function B(){V(),f.pop(),k(),D(`</ul>`)}function V(){w(`lastWasTag`)&&!w(`slurpAllLineEndings`)&&A(),D(`</li>`),C(`slurpAllLineEndings`)}function ne(){f.push(!1),A(),D(`<blockquote>`)}function H(){f.pop(),A(),D(`</blockquote>`),C(`slurpAllLineEndings`)}function U(){f[f.length-1]||(A(),D(`<p>`)),C(`slurpAllLineEndings`)}function W(){f[f.length-1]?C(`slurpAllLineEndings`,!0):D(`</p>`)}function re(){A(),D(`<pre><code`),C(`fencesCount`,0)}function ie(){D(` class="language-`+E()+`"`)}function ae(){let e=w(`fencesCount`)||0;e||(D(`>`),C(`slurpOneLineEnding`,!0)),C(`fencesCount`,e+1)}function oe(){A(),D(`<pre><code>`)}function se(){let e=w(`fencesCount`);e!==void 0&&e<2&&m.tightStack.length>0&&!w(`lastWasTag`)&&k(),w(`flowCodeSeenData`)&&A(),D(`</code></pre>`),e!==void 0&&e<2&&A(),C(`flowCodeSeenData`),C(`fencesCount`),C(`slurpOneLineEnding`)}function ce(){d.push({image:!0}),n=void 0}function le(){d.push({})}function G(e){d[d.length-1].labelId=this.sliceSerialize(e)}function ue(){d[d.length-1].label=E()}function de(e){d[d.length-1].referenceId=this.sliceSerialize(e)}function fe(){T(),d[d.length-1].destination=``}function pe(){T(),C(`ignoreEncode`,!0)}function me(){d[d.length-1].destination=E(),C(`ignoreEncode`)}function he(){d[d.length-1].title=E()}function ge(){let e=d.length-1,r=d[e],a=r.referenceId||r.labelId;i(a!==void 0,"media should have `referenceId` or `labelId`"),i(r.label!==void 0,"media should have `label`");let o=r.destination===void 0?c[b(a)]:r;for(n=!0;e--;)if(d[e].image){n=void 0;break}r.image?(D(`<img src="`+P(o.destination,t.allowDangerousProtocol?void 0:R)+`" alt="`),O(r.label),D(`"`)):D(`<a href="`+P(o.destination,t.allowDangerousProtocol?void 0:L)+`"`),D(o.title?` title="`+o.title+`"`:``),r.image?D(` />`):(D(`>`),O(r.label),D(`</a>`)),d.pop()}function _e(){T(),d.push({})}function ve(e){E(),d[d.length-1].labelId=this.sliceSerialize(e)}function ye(){T(),C(`ignoreEncode`,!0)}function be(){d[d.length-1].destination=E(),C(`ignoreEncode`)}function xe(){d[d.length-1].title=E()}function Se(){let e=d[d.length-1];i(e.labelId!==void 0,"media should have `labelId`");let t=b(e.labelId);E(),I.call(c,t)||(c[t]=d[d.length-1]),d.pop()}function Ce(){C(`slurpAllLineEndings`,!0)}function we(e){w(`headingRank`)||(C(`headingRank`,this.sliceSerialize(e).length),A(),D(`<h`+w(`headingRank`)+`>`))}function Te(){T(),C(`slurpAllLineEndings`)}function Ee(){C(`slurpAllLineEndings`,!0)}function De(){D(`</h`+w(`headingRank`)+`>`),C(`headingRank`)}function Oe(e){C(`headingRank`,this.sliceSerialize(e).charCodeAt(0)===a.equalsTo?1:2)}function ke(){let e=E();A(),D(`<h`+w(`headingRank`)+`>`),O(e),D(`</h`+w(`headingRank`)+`>`),C(`slurpAllLineEndings`),C(`headingRank`)}function K(e){O(j(this.sliceSerialize(e)))}function Ae(e){if(!w(`slurpAllLineEndings`)){if(w(`slurpOneLineEnding`)){C(`slurpOneLineEnding`);return}if(w(`inCodeText`)){O(` `);return}O(j(this.sliceSerialize(e)))}}function q(e){O(j(this.sliceSerialize(e))),C(`flowCodeSeenData`,!0)}function je(){D(`<br />`)}function Me(){A(),Pe()}function Ne(){C(`ignoreEncode`)}function Pe(){t.allowDangerousHtml&&C(`ignoreEncode`,!0)}function Fe(){D(`<em>`)}function Ie(){D(`<strong>`)}function Le(){C(`inCodeText`,!0),D(`<code>`)}function Re(){C(`inCodeText`),D(`</code>`)}function ze(){D(`</em>`)}function Be(){D(`</strong>`)}function J(){A(),D(`<hr />`)}function Ve(e){C(`characterReferenceType`,e.type)}function He(e){let t=this.sliceSerialize(e);O(j(w(`characterReferenceType`)?_(t,w(`characterReferenceType`)===s.characterReferenceMarkerNumeric?o.numericBaseDecimal:o.numericBaseHexadecimal):r(t))),C(`characterReferenceType`)}function Ue(e){let n=this.sliceSerialize(e);D(`<a href="`+P(n,t.allowDangerousProtocol?void 0:L)+`">`),O(j(n)),D(`</a>`)}function We(e){let t=this.sliceSerialize(e);D(`<a href="`+P(`mailto:`+t)+`">`),O(j(t)),D(`</a>`)}}function z(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return A(r)?(e.enter(n),s(r)):t(r)}function s(r){return A(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var te={tokenize:B};function B(e){let t=e.attempt(this.parser.constructs.contentInitial,r,c),n;return t;function r(n){if(i(n===a.eof||O(n),`expected eol or eof`),n===a.eof){e.consume(n);return}return e.enter(s.lineEnding),e.consume(n),e.exit(s.lineEnding),z(e,t,s.linePrefix)}function c(t){return i(t!==a.eof&&!O(t),`expected anything other than a line ending or EOF`),e.enter(s.paragraph),l(t)}function l(t){let r=e.enter(s.chunkText,{contentType:o.contentTypeText,previous:n});return n&&(n.next=r),n=r,u(t)}function u(t){if(t===a.eof){e.exit(s.chunkText),e.exit(s.paragraph),e.consume(t);return}return O(t)?(e.consume(t),e.exit(s.chunkText),l):(e.consume(t),u)}}var V={tokenize:H},ne={tokenize:U};function H(e){let t=this,n=[],r=0,c,u,d;return f;function f(a){if(r<n.length){let o=n[r];return t.containerState=o[1],i(o[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(o[0].continuation,p,m)(a)}return m(a)}function p(e){if(i(t.containerState,"expected `containerState` to be defined after continuation"),r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,c&&C();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===s.chunkFlow){o=t.events[a][1].end;break}i(o,`could not find previous flow chunk`),S(r);let u=n;for(;u<t.events.length;)t.events[u][1].end={...o},u++;return l(t.events,a+1,0,t.events.slice(n)),t.events.length=u,m(e)}return f(e)}function m(i){if(r===n.length){if(!c)return _(i);if(c.currentConstruct&&c.currentConstruct.concrete)return y(i);t.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ne,h,g)(i)}function h(e){return c&&C(),S(r),_(e)}function g(e){return t.parser.lazy[t.now().line]=r!==n.length,d=t.now().offset,y(e)}function _(n){return t.containerState={},e.attempt(ne,v,y)(n)}function v(e){return i(t.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),i(t.containerState,"expected `containerState` to be defined on tokenizer"),r++,n.push([t.currentConstruct,t.containerState]),_(e)}function y(n){if(n===a.eof){c&&C(),S(0),e.consume(n);return}return c||=t.parser.flow(t.now()),e.enter(s.chunkFlow,{_tokenizer:c,contentType:o.contentTypeFlow,previous:u}),b(n)}function b(n){if(n===a.eof){x(e.exit(s.chunkFlow),!0),S(0),e.consume(n);return}return O(n)?(e.consume(n),x(e.exit(s.chunkFlow)),r=0,t.interrupt=void 0,f):(e.consume(n),b)}function x(e,n){i(c,"expected `childFlow` to be defined when continuing");let a=t.sliceStream(e);if(n&&a.push(null),e.previous=u,u&&(u.next=e),u=e,c.defineSkip(e.start),c.write(a),t.parser.lazy[e.start.line]){let e=c.events.length;for(;e--;)if(c.events[e][1].start.offset<d&&(!c.events[e][1].end||c.events[e][1].end.offset>d))return;let n=t.events.length,a=n,o,u;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===s.chunkFlow){if(o){u=t.events[a][1].end;break}o=!0}for(i(u,`could not find previous flow chunk`),S(r),e=n;e<t.events.length;)t.events[e][1].end={...u},e++;l(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function S(r){let a=n.length;for(;a-- >r;){let r=n[a];t.containerState=r[1],i(r[0].exit,"expected `exit` to be defined on container construct"),r[0].exit.call(t,e)}n.length=r}function C(){i(t.containerState,"expected `containerState` to be defined when closing flow"),i(c,"expected `childFlow` to be defined when closing it"),c.write([a.eof]),u=void 0,c=void 0,t.containerState._closeFlow=void 0}}function U(e,t,n){return i(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),z(e,e.attempt(this.parser.constructs.document,t,n),s.linePrefix,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:o.tabSize)}function W(e){if(e===a.eof||k(e)||M(e))return o.characterGroupWhitespace;if(j(e))return o.characterGroupPunctuation}function re(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var ie={name:`attention`,resolveAll:ae,tokenize:oe};function ae(e,t){let n=-1,r,a,o,c,d,f,p,m;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;f=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let h={...e[r][1].end},g={...e[n][1].start};se(h,-f),se(g,f),c={type:f>1?s.strongSequence:s.emphasisSequence,start:h,end:{...e[r][1].end}},d={type:f>1?s.strongSequence:s.emphasisSequence,start:{...e[n][1].start},end:g},o={type:f>1?s.strongText:s.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},a={type:f>1?s.strong:s.emphasis,start:{...c.start},end:{...d.end}},e[r][1].end={...c.start},e[n][1].start={...d.end},p=[],e[r][1].end.offset-e[r][1].start.offset&&(p=u(p,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),p=u(p,[[`enter`,a,t],[`enter`,c,t],[`exit`,c,t],[`enter`,o,t]]),i(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),p=u(p,re(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),p=u(p,[[`exit`,o,t],[`enter`,d,t],[`exit`,d,t],[`exit`,a,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,p=u(p,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):m=0,l(e,r-1,n-r+3,p),n=r+p.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function oe(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,s=W(r),c;return l;function l(t){return i(t===a.asterisk||t===a.underscore,`expected asterisk or underscore`),c=t,e.enter(`attentionSequence`),u(t)}function u(l){if(l===c)return e.consume(l),u;let d=e.exit(`attentionSequence`),f=W(l);i(n,"expected `attentionMarkers` to be populated");let p=!f||f===o.characterGroupPunctuation&&s||n.includes(l),m=!s||s===o.characterGroupPunctuation&&f||n.includes(r);return d._open=!!(c===a.asterisk?p:p&&(s||!m)),d._close=!!(c===a.asterisk?m:m&&(f||!p)),t(l)}}function se(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ce={name:`autolink`,tokenize:le};function le(e,t,n){let r=0;return c;function c(t){return i(t===a.lessThan,"expected `<`"),e.enter(s.autolink),e.enter(s.autolinkMarker),e.consume(t),e.exit(s.autolinkMarker),e.enter(s.autolinkProtocol),l}function l(t){return x(t)?(e.consume(t),u):t===a.atSign?n(t):p(t)}function u(e){return e===a.plusSign||e===a.dash||e===a.dot||S(e)?(r=1,d(e)):p(e)}function d(t){return t===a.colon?(e.consume(t),r=0,f):(t===a.plusSign||t===a.dash||t===a.dot||S(t))&&r++<o.autolinkSchemeSizeMax?(e.consume(t),d):(r=0,p(t))}function f(r){return r===a.greaterThan?(e.exit(s.autolinkProtocol),e.enter(s.autolinkMarker),e.consume(r),e.exit(s.autolinkMarker),e.exit(s.autolink),t):r===a.eof||r===a.space||r===a.lessThan||w(r)?n(r):(e.consume(r),f)}function p(t){return t===a.atSign?(e.consume(t),m):C(t)?(e.consume(t),p):n(t)}function m(e){return S(e)?h(e):n(e)}function h(n){return n===a.dot?(e.consume(n),r=0,m):n===a.greaterThan?(e.exit(s.autolinkProtocol).type=s.autolinkEmail,e.enter(s.autolinkMarker),e.consume(n),e.exit(s.autolinkMarker),e.exit(s.autolink),t):g(n)}function g(t){if((t===a.dash||S(t))&&r++<o.autolinkDomainSizeMax){let n=t===a.dash?g:h;return e.consume(t),n}return n(t)}}var G={partial:!0,tokenize:ue};function ue(e,t,n){return r;function r(t){return A(t)?z(e,i,s.linePrefix)(t):i(t)}function i(e){return e===a.eof||O(e)?t(e):n(e)}}var de={continuation:{tokenize:pe},exit:me,name:`blockQuote`,tokenize:fe};function fe(e,t,n){let r=this;return o;function o(t){if(t===a.greaterThan){let n=r.containerState;return i(n,"expected `containerState` to be defined in container"),n.open||=(e.enter(s.blockQuote,{_container:!0}),!0),e.enter(s.blockQuotePrefix),e.enter(s.blockQuoteMarker),e.consume(t),e.exit(s.blockQuoteMarker),c}return n(t)}function c(n){return A(n)?(e.enter(s.blockQuotePrefixWhitespace),e.consume(n),e.exit(s.blockQuotePrefixWhitespace),e.exit(s.blockQuotePrefix),t):(e.exit(s.blockQuotePrefix),t(n))}}function pe(e,t,n){let r=this;return a;function a(t){return A(t)?(i(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),z(e,c,s.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:o.tabSize)(t)):c(t)}function c(r){return e.attempt(de,t,n)(r)}}function me(e){e.exit(s.blockQuote)}var he={name:`characterEscape`,tokenize:ge};function ge(e,t,n){return r;function r(t){return i(t===a.backslash,"expected `\\`"),e.enter(s.characterEscape),e.enter(s.escapeMarker),e.consume(t),e.exit(s.escapeMarker),o}function o(r){return D(r)?(e.enter(s.characterEscapeValue),e.consume(r),e.exit(s.characterEscapeValue),e.exit(s.characterEscape),t):n(r)}}var _e={name:`characterReference`,tokenize:ve};function ve(e,t,n){let c=this,l=0,u,d;return f;function f(t){return i(t===a.ampersand,"expected `&`"),e.enter(s.characterReference),e.enter(s.characterReferenceMarker),e.consume(t),e.exit(s.characterReferenceMarker),p}function p(t){return t===a.numberSign?(e.enter(s.characterReferenceMarkerNumeric),e.consume(t),e.exit(s.characterReferenceMarkerNumeric),m):(e.enter(s.characterReferenceValue),u=o.characterReferenceNamedSizeMax,d=S,h(t))}function m(t){return t===a.uppercaseX||t===a.lowercaseX?(e.enter(s.characterReferenceMarkerHexadecimal),e.consume(t),e.exit(s.characterReferenceMarkerHexadecimal),e.enter(s.characterReferenceValue),u=o.characterReferenceHexadecimalSizeMax,d=E,h):(e.enter(s.characterReferenceValue),u=o.characterReferenceDecimalSizeMax,d=T,h(t))}function h(i){if(i===a.semicolon&&l){let a=e.exit(s.characterReferenceValue);return d===S&&!r(c.sliceSerialize(a))?n(i):(e.enter(s.characterReferenceMarker),e.consume(i),e.exit(s.characterReferenceMarker),e.exit(s.characterReference),t)}return d(i)&&l++<u?(e.consume(i),h):n(i)}}var ye={partial:!0,tokenize:Se},be={concrete:!0,name:`codeFenced`,tokenize:xe};function xe(e,t,n){let r=this,c={partial:!0,tokenize:T},l=0,u=0,d;return f;function f(e){return p(e)}function p(t){i(t===a.graveAccent||t===a.tilde,"expected `` ` `` or `~`");let n=r.events[r.events.length-1];return l=n&&n[1].type===s.linePrefix?n[2].sliceSerialize(n[1],!0).length:0,d=t,e.enter(s.codeFenced),e.enter(s.codeFencedFence),e.enter(s.codeFencedFenceSequence),m(t)}function m(t){return t===d?(u++,e.consume(t),m):u<o.codeFencedSequenceSizeMin?n(t):(e.exit(s.codeFencedFenceSequence),A(t)?z(e,h,s.whitespace)(t):h(t))}function h(n){return n===a.eof||O(n)?(e.exit(s.codeFencedFence),r.interrupt?t(n):e.check(ye,y,w)(n)):(e.enter(s.codeFencedFenceInfo),e.enter(s.chunkString,{contentType:o.contentTypeString}),g(n))}function g(t){return t===a.eof||O(t)?(e.exit(s.chunkString),e.exit(s.codeFencedFenceInfo),h(t)):A(t)?(e.exit(s.chunkString),e.exit(s.codeFencedFenceInfo),z(e,_,s.whitespace)(t)):t===a.graveAccent&&t===d?n(t):(e.consume(t),g)}function _(t){return t===a.eof||O(t)?h(t):(e.enter(s.codeFencedFenceMeta),e.enter(s.chunkString,{contentType:o.contentTypeString}),v(t))}function v(t){return t===a.eof||O(t)?(e.exit(s.chunkString),e.exit(s.codeFencedFenceMeta),h(t)):t===a.graveAccent&&t===d?n(t):(e.consume(t),v)}function y(t){return i(O(t),`expected eol`),e.attempt(c,w,b)(t)}function b(t){return i(O(t),`expected eol`),e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),x}function x(t){return l>0&&A(t)?z(e,S,s.linePrefix,l+1)(t):S(t)}function S(t){return t===a.eof||O(t)?e.check(ye,y,w)(t):(e.enter(s.codeFlowValue),C(t))}function C(t){return t===a.eof||O(t)?(e.exit(s.codeFlowValue),S(t)):(e.consume(t),C)}function w(n){return e.exit(s.codeFenced),t(n)}function T(e,t,n){let c=0;return l;function l(t){return i(O(t),`expected eol`),e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),f}function f(t){return i(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),e.enter(s.codeFencedFence),A(t)?z(e,p,s.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:o.tabSize)(t):p(t)}function p(t){return t===d?(e.enter(s.codeFencedFenceSequence),m(t)):n(t)}function m(t){return t===d?(c++,e.consume(t),m):c>=u?(e.exit(s.codeFencedFenceSequence),A(t)?z(e,h,s.whitespace)(t):h(t)):n(t)}function h(r){return r===a.eof||O(r)?(e.exit(s.codeFencedFence),t(r)):n(r)}}}function Se(e,t,n){let r=this;return o;function o(t){return t===a.eof?n(t):(i(O(t),`expected eol`),e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),c)}function c(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Ce={name:`codeIndented`,tokenize:Te},we={partial:!0,tokenize:Ee};function Te(e,t,n){let r=this;return c;function c(t){return i(A(t)),e.enter(s.codeIndented),z(e,l,s.linePrefix,o.tabSize+1)(t)}function l(e){let t=r.events[r.events.length-1];return t&&t[1].type===s.linePrefix&&t[2].sliceSerialize(t[1],!0).length>=o.tabSize?u(e):n(e)}function u(t){return t===a.eof?f(t):O(t)?e.attempt(we,u,f)(t):(e.enter(s.codeFlowValue),d(t))}function d(t){return t===a.eof||O(t)?(e.exit(s.codeFlowValue),u(t)):(e.consume(t),d)}function f(n){return e.exit(s.codeIndented),t(n)}}function Ee(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):O(t)?(e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),i):z(e,a,s.linePrefix,o.tabSize+1)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===s.linePrefix&&a[2].sliceSerialize(a[1],!0).length>=o.tabSize?t(e):O(e)?i(e):n(e)}}var De={name:`codeText`,previous:ke,resolve:Oe,tokenize:K};function Oe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===s.lineEnding||e[n][1].type===`space`)&&(e[t][1].type===s.lineEnding||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===s.codeTextData){e[n][1].type=s.codeTextPadding,e[t][1].type=s.codeTextPadding,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==s.lineEnding&&(i=r):(r===t||e[r][1].type===s.lineEnding)&&(e[i][1].type=s.codeTextData,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ke(e){return e!==a.graveAccent||this.events[this.events.length-1][1].type===s.characterEscape}function K(e,t,n){let r=this,o=0,c,l;return u;function u(t){return i(t===a.graveAccent,"expected `` ` ``"),i(ke.call(r,r.previous),`expected correct previous`),e.enter(s.codeText),e.enter(s.codeTextSequence),d(t)}function d(t){return t===a.graveAccent?(e.consume(t),o++,d):(e.exit(s.codeTextSequence),f(t))}function f(t){return t===a.eof?n(t):t===a.space?(e.enter(`space`),e.consume(t),e.exit(`space`),f):t===a.graveAccent?(l=e.enter(s.codeTextSequence),c=0,m(t)):O(t)?(e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),f):(e.enter(s.codeTextData),p(t))}function p(t){return t===a.eof||t===a.space||t===a.graveAccent||O(t)?(e.exit(s.codeTextData),f(t)):(e.consume(t),p)}function m(n){return n===a.graveAccent?(e.consume(n),c++,m):c===o?(e.exit(s.codeTextSequence),e.exit(s.codeText),t(n)):(l.type=s.codeTextData,p(n))}}var Ae=class{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 e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&q(this.left,n),i.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),q(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),q(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);q(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);q(this.left,t.reverse())}}};function q(e,t){let n=0;if(t.length<o.v8MaxSafeChunkSize)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+o.v8MaxSafeChunkSize)),n+=o.v8MaxSafeChunkSize}function je(e){let t={},n=-1,r,a,o,c,u,d,f,p=new Ae(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type===s.chunkFlow&&p.get(n-1)[1].type===s.listItemPrefix&&(i(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),d=r[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type===s.lineEndingBlank&&(o+=2),o<d.length&&d[o][1].type===s.content))for(;++o<d.length&&d[o][1].type!==s.content;)d[o][1].type===s.chunkText&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Me(p,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(c=p.get(o),c[1].type===s.lineEnding||c[1].type===s.lineEndingBlank)c[0]===`enter`&&(a&&(p.get(a)[1].type=s.lineEndingBlank),c[1].type=s.lineEnding,a=o);else if(!(c[1].type===s.linePrefix||c[1].type===s.listItemIndent))break;a&&(r[1].end={...p.get(a)[1].start},u=p.slice(a,n),u.unshift(r),p.splice(a,n-a+1,u))}}return l(e,0,1/0,p.slice(0)),!f}function Me(e,t){let n=e.get(t)[1],r=e.get(t)[2],o=t-1,s=[];i(n.contentType,"expected `contentType` on subtokens");let c=n._tokenizer;c||(c=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));let l=c.events,u=[],d={},f,p,m=-1,h=n,g=0,_=0,v=[_];for(;h;){for(;e.get(++o)[1]!==h;);i(!p||h.previous===p,`expected previous to match`),i(!p||p.next===h,`expected next to match`),s.push(o),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(a.eof),p&&c.defineSkip(h.start),h._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(f),h._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++m<l.length;)l[m][0]===`exit`&&l[m-1][0]===`enter`&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(i(h,`expected a current token`),_=m+1,v.push(_),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(c.events=[],h?(h._tokenizer=void 0,h.previous=void 0,i(!h.next,`expected no next token`)):v.pop(),m=v.length;m--;){let t=l.slice(v[m],v[m+1]),n=s.pop();i(n!==void 0,`expected a start position when splicing`),u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),m=-1;++m<u.length;)d[g+u[m][0]]=g+u[m][1],g+=u[m][1]-u[m][0]-1;return d}var Ne={resolve:Fe,tokenize:Ie},Pe={partial:!0,tokenize:Le};function Fe(e){return je(e),e}function Ie(e,t){let n;return r;function r(t){return i(t!==a.eof&&!O(t),`expected no eof or eol`),e.enter(s.content),n=e.enter(s.chunkContent,{contentType:o.contentTypeContent}),c(t)}function c(t){return t===a.eof?l(t):O(t)?e.check(Pe,u,l)(t):(e.consume(t),c)}function l(n){return e.exit(s.chunkContent),e.exit(s.content),t(n)}function u(t){return i(O(t),`expected eol`),e.consume(t),e.exit(s.chunkContent),i(n,`expected previous token`),n.next=e.enter(s.chunkContent,{contentType:o.contentTypeContent,previous:n}),n=n.next,c}}function Le(e,t,n){let r=this;return c;function c(t){return i(O(t),`expected a line ending`),e.exit(s.chunkContent),e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),z(e,l,s.linePrefix)}function l(c){if(c===a.eof||O(c))return n(c);i(r.parser.constructs.disable.null,"expected `disable.null` to be populated");let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&l&&l[1].type===s.linePrefix&&l[2].sliceSerialize(l[1],!0).length>=o.tabSize?t(c):e.interrupt(r.parser.constructs.flow,n,t)(c)}}function Re(e,t,n,r,i,c,l,u,d){let f=d||1/0,p=0;return m;function m(t){return t===a.lessThan?(e.enter(r),e.enter(i),e.enter(c),e.consume(t),e.exit(c),h):t===a.eof||t===a.space||t===a.rightParenthesis||w(t)?n(t):(e.enter(r),e.enter(l),e.enter(u),e.enter(s.chunkString,{contentType:o.contentTypeString}),v(t))}function h(n){return n===a.greaterThan?(e.enter(c),e.consume(n),e.exit(c),e.exit(i),e.exit(r),t):(e.enter(u),e.enter(s.chunkString,{contentType:o.contentTypeString}),g(n))}function g(t){return t===a.greaterThan?(e.exit(s.chunkString),e.exit(u),h(t)):t===a.eof||t===a.lessThan||O(t)?n(t):(e.consume(t),t===a.backslash?_:g)}function _(t){return t===a.lessThan||t===a.greaterThan||t===a.backslash?(e.consume(t),g):g(t)}function v(i){return!p&&(i===a.eof||i===a.rightParenthesis||k(i))?(e.exit(s.chunkString),e.exit(u),e.exit(l),e.exit(r),t(i)):p<f&&i===a.leftParenthesis?(e.consume(i),p++,v):i===a.rightParenthesis?(e.consume(i),p--,v):i===a.eof||i===a.space||i===a.leftParenthesis||w(i)?n(i):(e.consume(i),i===a.backslash?y:v)}function y(t){return t===a.leftParenthesis||t===a.rightParenthesis||t===a.backslash?(e.consume(t),v):v(t)}}function ze(e,t,n,r,c,l){let u=this,d=0,f;return p;function p(t){return i(t===a.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(c),e.consume(t),e.exit(c),e.enter(l),m}function m(i){return d>o.linkReferenceSizeMax||i===a.eof||i===a.leftSquareBracket||i===a.rightSquareBracket&&!f||i===a.caret&&!d&&`_hiddenFootnoteSupport`in u.parser.constructs?n(i):i===a.rightSquareBracket?(e.exit(l),e.enter(c),e.consume(i),e.exit(c),e.exit(r),t):O(i)?(e.enter(s.lineEnding),e.consume(i),e.exit(s.lineEnding),m):(e.enter(s.chunkString,{contentType:o.contentTypeString}),h(i))}function h(t){return t===a.eof||t===a.leftSquareBracket||t===a.rightSquareBracket||O(t)||d++>o.linkReferenceSizeMax?(e.exit(s.chunkString),m(t)):(e.consume(t),f||=!A(t),t===a.backslash?g:h)}function g(t){return t===a.leftSquareBracket||t===a.backslash||t===a.rightSquareBracket?(e.consume(t),d++,h):h(t)}}function Be(e,t,n,r,i,c){let l;return u;function u(t){return t===a.quotationMark||t===a.apostrophe||t===a.leftParenthesis?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=t===a.leftParenthesis?a.rightParenthesis:t,d):n(t)}function d(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(c),f(n))}function f(t){return t===l?(e.exit(c),d(l)):t===a.eof?n(t):O(t)?(e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),z(e,f,s.linePrefix)):(e.enter(s.chunkString,{contentType:o.contentTypeString}),p(t))}function p(t){return t===l||t===a.eof||O(t)?(e.exit(s.chunkString),f(t)):(e.consume(t),t===a.backslash?m:p)}function m(t){return t===l||t===a.backslash?(e.consume(t),p):p(t)}}function J(e,t){let n;return r;function r(i){return O(i)?(e.enter(s.lineEnding),e.consume(i),e.exit(s.lineEnding),n=!0,r):A(i)?z(e,r,n?s.linePrefix:s.lineSuffix)(i):t(i)}}var Ve={name:`definition`,tokenize:Ue},He={partial:!0,tokenize:We};function Ue(e,t,n){let r=this,o;return c;function c(t){return e.enter(s.definition),l(t)}function l(t){return i(t===a.leftSquareBracket,"expected `[`"),ze.call(r,e,u,n,s.definitionLabel,s.definitionLabelMarker,s.definitionLabelString)(t)}function u(t){return o=b(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===a.colon?(e.enter(s.definitionMarker),e.consume(t),e.exit(s.definitionMarker),d):n(t)}function d(t){return k(t)?J(e,f)(t):f(t)}function f(t){return Re(e,p,n,s.definitionDestination,s.definitionDestinationLiteral,s.definitionDestinationLiteralMarker,s.definitionDestinationRaw,s.definitionDestinationString)(t)}function p(t){return e.attempt(He,m,m)(t)}function m(t){return A(t)?z(e,h,s.whitespace)(t):h(t)}function h(i){return i===a.eof||O(i)?(e.exit(s.definition),r.parser.defined.push(o),t(i)):n(i)}}function We(e,t,n){return r;function r(t){return k(t)?J(e,i)(t):n(t)}function i(t){return Be(e,o,n,s.definitionTitle,s.definitionTitleMarker,s.definitionTitleString)(t)}function o(t){return A(t)?z(e,c,s.whitespace)(t):c(t)}function c(e){return e===a.eof||O(e)?t(e):n(e)}}var Ge={name:`hardBreakEscape`,tokenize:Ke};function Ke(e,t,n){return r;function r(t){return i(t===a.backslash,"expected `\\`"),e.enter(s.hardBreakEscape),e.consume(t),o}function o(r){return O(r)?(e.exit(s.hardBreakEscape),t(r)):n(r)}}var qe={name:`headingAtx`,resolve:Je,tokenize:Ye};function Je(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===s.whitespace&&(r+=2),n-2>r&&e[n][1].type===s.whitespace&&(n-=2),e[n][1].type===s.atxHeadingSequence&&(r===n-1||n-4>r&&e[n-2][1].type===s.whitespace)&&(n-=r+1===n?2:4),n>r&&(i={type:s.atxHeadingText,start:e[r][1].start,end:e[n][1].end},a={type:s.chunkText,start:e[r][1].start,end:e[n][1].end,contentType:o.contentTypeText},l(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Ye(e,t,n){let r=0;return c;function c(t){return e.enter(s.atxHeading),l(t)}function l(t){return i(t===a.numberSign,"expected `#`"),e.enter(s.atxHeadingSequence),u(t)}function u(t){return t===a.numberSign&&r++<o.atxHeadingOpeningFenceSizeMax?(e.consume(t),u):t===a.eof||k(t)?(e.exit(s.atxHeadingSequence),d(t)):n(t)}function d(n){return n===a.numberSign?(e.enter(s.atxHeadingSequence),f(n)):n===a.eof||O(n)?(e.exit(s.atxHeading),t(n)):A(n)?z(e,d,s.whitespace)(n):(e.enter(s.atxHeadingText),p(n))}function f(t){return t===a.numberSign?(e.consume(t),f):(e.exit(s.atxHeadingSequence),d(t))}function p(t){return t===a.eof||t===a.numberSign||k(t)?(e.exit(s.atxHeadingText),d(t)):(e.consume(t),p)}}var Xe=`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`.split(`.`),Ze=[`pre`,`script`,`style`,`textarea`],Qe={concrete:!0,name:`htmlFlow`,resolveTo:tt,tokenize:nt},$e={partial:!0,tokenize:it},et={partial:!0,tokenize:rt};function tt(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===s.htmlFlow););return t>1&&e[t-2][1].type===s.linePrefix&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nt(e,t,n){let r=this,c,l,u,d,f;return p;function p(e){return m(e)}function m(t){return i(t===a.lessThan,"expected `<`"),e.enter(s.htmlFlow),e.enter(s.htmlFlowData),e.consume(t),h}function h(s){return s===a.exclamationMark?(e.consume(s),g):s===a.slash?(e.consume(s),l=!0,y):s===a.questionMark?(e.consume(s),c=o.htmlInstruction,r.interrupt?t:H):x(s)?(i(s!==null),e.consume(s),u=String.fromCharCode(s),b):n(s)}function g(i){return i===a.dash?(e.consume(i),c=o.htmlComment,_):i===a.leftSquareBracket?(e.consume(i),c=o.htmlCdata,d=0,v):x(i)?(e.consume(i),c=o.htmlDeclaration,r.interrupt?t:H):n(i)}function _(i){return i===a.dash?(e.consume(i),r.interrupt?t:H):n(i)}function v(i){let a=o.cdataOpeningString;return i===a.charCodeAt(d++)?(e.consume(i),d===a.length?r.interrupt?t:L:v):n(i)}function y(t){return x(t)?(i(t!==null),e.consume(t),u=String.fromCharCode(t),b):n(t)}function b(i){if(i===a.eof||i===a.slash||i===a.greaterThan||k(i)){let s=i===a.slash,d=u.toLowerCase();return!s&&!l&&Ze.includes(d)?(c=o.htmlRaw,r.interrupt?t(i):L(i)):Xe.includes(u.toLowerCase())?(c=o.htmlBasic,s?(e.consume(i),C):r.interrupt?t(i):L(i)):(c=o.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?n(i):l?w(i):T(i))}return i===a.dash||S(i)?(e.consume(i),u+=String.fromCharCode(i),b):n(i)}function C(i){return i===a.greaterThan?(e.consume(i),r.interrupt?t:L):n(i)}function w(t){return A(t)?(e.consume(t),w):F(t)}function T(t){return t===a.slash?(e.consume(t),F):t===a.colon||t===a.underscore||x(t)?(e.consume(t),E):A(t)?(e.consume(t),T):F(t)}function E(t){return t===a.dash||t===a.dot||t===a.colon||t===a.underscore||S(t)?(e.consume(t),E):D(t)}function D(t){return t===a.equalsTo?(e.consume(t),j):A(t)?(e.consume(t),D):T(t)}function j(t){return t===a.eof||t===a.lessThan||t===a.equalsTo||t===a.greaterThan||t===a.graveAccent?n(t):t===a.quotationMark||t===a.apostrophe?(e.consume(t),f=t,M):A(t)?(e.consume(t),j):N(t)}function M(t){return t===f?(e.consume(t),f=null,P):t===a.eof||O(t)?n(t):(e.consume(t),M)}function N(t){return t===a.eof||t===a.quotationMark||t===a.apostrophe||t===a.slash||t===a.lessThan||t===a.equalsTo||t===a.greaterThan||t===a.graveAccent||k(t)?D(t):(e.consume(t),N)}function P(e){return e===a.slash||e===a.greaterThan||A(e)?T(e):n(e)}function F(t){return t===a.greaterThan?(e.consume(t),I):n(t)}function I(t){return t===a.eof||O(t)?L(t):A(t)?(e.consume(t),I):n(t)}function L(t){return t===a.dash&&c===o.htmlComment?(e.consume(t),te):t===a.lessThan&&c===o.htmlRaw?(e.consume(t),B):t===a.greaterThan&&c===o.htmlDeclaration?(e.consume(t),U):t===a.questionMark&&c===o.htmlInstruction?(e.consume(t),H):t===a.rightSquareBracket&&c===o.htmlCdata?(e.consume(t),ne):O(t)&&(c===o.htmlBasic||c===o.htmlComplete)?(e.exit(s.htmlFlowData),e.check($e,W,R)(t)):t===a.eof||O(t)?(e.exit(s.htmlFlowData),R(t)):(e.consume(t),L)}function R(t){return e.check(et,ee,W)(t)}function ee(t){return i(O(t)),e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),z}function z(t){return t===a.eof||O(t)?R(t):(e.enter(s.htmlFlowData),L(t))}function te(t){return t===a.dash?(e.consume(t),H):L(t)}function B(t){return t===a.slash?(e.consume(t),u=``,V):L(t)}function V(t){if(t===a.greaterThan){let n=u.toLowerCase();return Ze.includes(n)?(e.consume(t),U):L(t)}return x(t)&&u.length<o.htmlRawSizeMax?(i(t!==null),e.consume(t),u+=String.fromCharCode(t),V):L(t)}function ne(t){return t===a.rightSquareBracket?(e.consume(t),H):L(t)}function H(t){return t===a.greaterThan?(e.consume(t),U):t===a.dash&&c===o.htmlComment?(e.consume(t),H):L(t)}function U(t){return t===a.eof||O(t)?(e.exit(s.htmlFlowData),W(t)):(e.consume(t),U)}function W(n){return e.exit(s.htmlFlow),t(n)}}function rt(e,t,n){let r=this;return i;function i(t){return O(t)?(e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function it(e,t,n){return r;function r(r){return i(O(r),`expected a line ending`),e.enter(s.lineEnding),e.consume(r),e.exit(s.lineEnding),e.attempt(G,t,n)}}var at={name:`htmlText`,tokenize:ot};function ot(e,t,n){let r=this,c,l,u;return d;function d(t){return i(t===a.lessThan,"expected `<`"),e.enter(s.htmlText),e.enter(s.htmlTextData),e.consume(t),f}function f(t){return t===a.exclamationMark?(e.consume(t),p):t===a.slash?(e.consume(t),D):t===a.questionMark?(e.consume(t),T):x(t)?(e.consume(t),N):n(t)}function p(t){return t===a.dash?(e.consume(t),m):t===a.leftSquareBracket?(e.consume(t),l=0,v):x(t)?(e.consume(t),w):n(t)}function m(t){return t===a.dash?(e.consume(t),_):n(t)}function h(t){return t===a.eof?n(t):t===a.dash?(e.consume(t),g):O(t)?(u=h,V(t)):(e.consume(t),h)}function g(t){return t===a.dash?(e.consume(t),_):h(t)}function _(e){return e===a.greaterThan?B(e):e===a.dash?g(e):h(e)}function v(t){let r=o.cdataOpeningString;return t===r.charCodeAt(l++)?(e.consume(t),l===r.length?y:v):n(t)}function y(t){return t===a.eof?n(t):t===a.rightSquareBracket?(e.consume(t),b):O(t)?(u=y,V(t)):(e.consume(t),y)}function b(t){return t===a.rightSquareBracket?(e.consume(t),C):y(t)}function C(t){return t===a.greaterThan?B(t):t===a.rightSquareBracket?(e.consume(t),C):y(t)}function w(t){return t===a.eof||t===a.greaterThan?B(t):O(t)?(u=w,V(t)):(e.consume(t),w)}function T(t){return t===a.eof?n(t):t===a.questionMark?(e.consume(t),E):O(t)?(u=T,V(t)):(e.consume(t),T)}function E(e){return e===a.greaterThan?B(e):T(e)}function D(t){return x(t)?(e.consume(t),j):n(t)}function j(t){return t===a.dash||S(t)?(e.consume(t),j):M(t)}function M(t){return O(t)?(u=M,V(t)):A(t)?(e.consume(t),M):B(t)}function N(t){return t===a.dash||S(t)?(e.consume(t),N):t===a.slash||t===a.greaterThan||k(t)?P(t):n(t)}function P(t){return t===a.slash?(e.consume(t),B):t===a.colon||t===a.underscore||x(t)?(e.consume(t),F):O(t)?(u=P,V(t)):A(t)?(e.consume(t),P):B(t)}function F(t){return t===a.dash||t===a.dot||t===a.colon||t===a.underscore||S(t)?(e.consume(t),F):I(t)}function I(t){return t===a.equalsTo?(e.consume(t),L):O(t)?(u=I,V(t)):A(t)?(e.consume(t),I):P(t)}function L(t){return t===a.eof||t===a.lessThan||t===a.equalsTo||t===a.greaterThan||t===a.graveAccent?n(t):t===a.quotationMark||t===a.apostrophe?(e.consume(t),c=t,R):O(t)?(u=L,V(t)):A(t)?(e.consume(t),L):(e.consume(t),ee)}function R(t){return t===c?(e.consume(t),c=void 0,te):t===a.eof?n(t):O(t)?(u=R,V(t)):(e.consume(t),R)}function ee(t){return t===a.eof||t===a.quotationMark||t===a.apostrophe||t===a.lessThan||t===a.equalsTo||t===a.graveAccent?n(t):t===a.slash||t===a.greaterThan||k(t)?P(t):(e.consume(t),ee)}function te(e){return e===a.slash||e===a.greaterThan||k(e)?P(e):n(e)}function B(r){return r===a.greaterThan?(e.consume(r),e.exit(s.htmlTextData),e.exit(s.htmlText),t):n(r)}function V(t){return i(u,`expected return state`),i(O(t),`expected eol`),e.exit(s.htmlTextData),e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),ne}function ne(t){return i(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),A(t)?z(e,H,s.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:o.tabSize)(t):H(t)}function H(t){return e.enter(s.htmlTextData),u(t)}}var st={name:`labelEnd`,resolveAll:dt,resolveTo:ft,tokenize:pt},ct={tokenize:mt},lt={tokenize:ht},ut={tokenize:gt};function dt(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===s.labelImage||r.type===s.labelLink||r.type===s.labelEnd){let e=r.type===s.labelImage?4:2;r.type=s.data,t+=e}}return e.length!==n.length&&l(e,0,e.length,n),e}function ft(e,t){let n=e.length,r=0,a,o,c,d;for(;n--;)if(a=e[n][1],o){if(a.type===s.link||a.type===s.labelLink&&a._inactive)break;e[n][0]===`enter`&&a.type===s.labelLink&&(a._inactive=!0)}else if(c){if(e[n][0]===`enter`&&(a.type===s.labelImage||a.type===s.labelLink)&&!a._balanced&&(o=n,a.type!==s.labelLink)){r=2;break}}else a.type===s.labelEnd&&(c=n);i(o!==void 0,"`open` is supposed to be found"),i(c!==void 0,"`close` is supposed to be found");let f={type:e[o][1].type===s.labelLink?s.link:s.image,start:{...e[o][1].start},end:{...e[e.length-1][1].end}},p={type:s.label,start:{...e[o][1].start},end:{...e[c][1].end}},m={type:s.labelText,start:{...e[o+r+2][1].end},end:{...e[c-2][1].start}};return d=[[`enter`,f,t],[`enter`,p,t]],d=u(d,e.slice(o+1,o+r+3)),d=u(d,[[`enter`,m,t]]),i(t.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),d=u(d,re(t.parser.constructs.insideSpan.null,e.slice(o+r+4,c-3),t)),d=u(d,[[`exit`,m,t],e[c-2],e[c-1],[`exit`,p,t]]),d=u(d,e.slice(c+1)),d=u(d,[[`exit`,f,t]]),l(e,o,e.length,d),e}function pt(e,t,n){let r=this,o=r.events.length,c,l;for(;o--;)if((r.events[o][1].type===s.labelImage||r.events[o][1].type===s.labelLink)&&!r.events[o][1]._balanced){c=r.events[o][1];break}return u;function u(t){return i(t===a.rightSquareBracket,"expected `]`"),c?c._inactive?m(t):(l=r.parser.defined.includes(b(r.sliceSerialize({start:c.end,end:r.now()}))),e.enter(s.labelEnd),e.enter(s.labelMarker),e.consume(t),e.exit(s.labelMarker),e.exit(s.labelEnd),d):n(t)}function d(t){return t===a.leftParenthesis?e.attempt(ct,p,l?p:m)(t):t===a.leftSquareBracket?e.attempt(lt,p,l?f:m)(t):l?p(t):m(t)}function f(t){return e.attempt(ut,p,m)(t)}function p(e){return t(e)}function m(e){return c._balanced=!0,n(e)}}function mt(e,t,n){return r;function r(t){return i(t===a.leftParenthesis,`expected left paren`),e.enter(s.resource),e.enter(s.resourceMarker),e.consume(t),e.exit(s.resourceMarker),c}function c(t){return k(t)?J(e,l)(t):l(t)}function l(t){return t===a.rightParenthesis?m(t):Re(e,u,d,s.resourceDestination,s.resourceDestinationLiteral,s.resourceDestinationLiteralMarker,s.resourceDestinationRaw,s.resourceDestinationString,o.linkResourceDestinationBalanceMax)(t)}function u(t){return k(t)?J(e,f)(t):m(t)}function d(e){return n(e)}function f(t){return t===a.quotationMark||t===a.apostrophe||t===a.leftParenthesis?Be(e,p,n,s.resourceTitle,s.resourceTitleMarker,s.resourceTitleString)(t):m(t)}function p(t){return k(t)?J(e,m)(t):m(t)}function m(r){return r===a.rightParenthesis?(e.enter(s.resourceMarker),e.consume(r),e.exit(s.resourceMarker),e.exit(s.resource),t):n(r)}}function ht(e,t,n){let r=this;return o;function o(t){return i(t===a.leftSquareBracket,`expected left bracket`),ze.call(r,e,c,l,s.reference,s.referenceMarker,s.referenceString)(t)}function c(e){return r.parser.defined.includes(b(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}function gt(e,t,n){return r;function r(t){return i(t===a.leftSquareBracket,`expected left bracket`),e.enter(s.reference),e.enter(s.referenceMarker),e.consume(t),e.exit(s.referenceMarker),o}function o(r){return r===a.rightSquareBracket?(e.enter(s.referenceMarker),e.consume(r),e.exit(s.referenceMarker),e.exit(s.reference),t):n(r)}}var _t={name:`labelStartImage`,resolveAll:st.resolveAll,tokenize:vt};function vt(e,t,n){let r=this;return o;function o(t){return i(t===a.exclamationMark,"expected `!`"),e.enter(s.labelImage),e.enter(s.labelImageMarker),e.consume(t),e.exit(s.labelImageMarker),c}function c(t){return t===a.leftSquareBracket?(e.enter(s.labelMarker),e.consume(t),e.exit(s.labelMarker),e.exit(s.labelImage),l):n(t)}function l(e){return e===a.caret&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var yt={name:`labelStartLink`,resolveAll:st.resolveAll,tokenize:bt};function bt(e,t,n){let r=this;return o;function o(t){return i(t===a.leftSquareBracket,"expected `[`"),e.enter(s.labelLink),e.enter(s.labelMarker),e.consume(t),e.exit(s.labelMarker),e.exit(s.labelLink),c}function c(e){return e===a.caret&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var xt={name:`lineEnding`,tokenize:St};function St(e,t){return n;function n(n){return i(O(n),`expected eol`),e.enter(s.lineEnding),e.consume(n),e.exit(s.lineEnding),z(e,t,s.linePrefix)}}var Ct={name:`thematicBreak`,tokenize:wt};function wt(e,t,n){let r=0,c;return l;function l(t){return e.enter(s.thematicBreak),u(t)}function u(e){return i(e===a.asterisk||e===a.dash||e===a.underscore,"expected `*`, `-`, or `_`"),c=e,d(e)}function d(i){return i===c?(e.enter(s.thematicBreakSequence),f(i)):r>=o.thematicBreakMarkerCountMin&&(i===a.eof||O(i))?(e.exit(s.thematicBreak),t(i)):n(i)}function f(t){return t===c?(e.consume(t),r++,f):(e.exit(s.thematicBreakSequence),A(t)?z(e,d,s.whitespace)(t):d(t))}}var Y={continuation:{tokenize:Ot},exit:At,name:`list`,tokenize:Dt},Tt={partial:!0,tokenize:jt},Et={partial:!0,tokenize:kt};function Dt(e,t,n){let r=this,c=r.events[r.events.length-1],l=c&&c[1].type===s.linePrefix?c[2].sliceSerialize(c[1],!0).length:0,u=0;return d;function d(t){i(r.containerState,`expected state`);let o=r.containerState.type||(t===a.asterisk||t===a.plusSign||t===a.dash?s.listUnordered:s.listOrdered);if(o===s.listUnordered?!r.containerState.marker||t===r.containerState.marker:T(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),o===s.listUnordered)return e.enter(s.listItemPrefix),t===a.asterisk||t===a.dash?e.check(Ct,n,p)(t):p(t);if(!r.interrupt||t===a.digit1)return e.enter(s.listItemPrefix),e.enter(s.listItemValue),f(t)}return n(t)}function f(t){return i(r.containerState,`expected state`),T(t)&&++u<o.listItemValueSizeMax?(e.consume(t),f):(!r.interrupt||u<2)&&(r.containerState.marker?t===r.containerState.marker:t===a.rightParenthesis||t===a.dot)?(e.exit(s.listItemValue),p(t)):n(t)}function p(t){return i(r.containerState,`expected state`),i(t!==a.eof,"eof (`null`) is not a marker"),e.enter(s.listItemMarker),e.consume(t),e.exit(s.listItemMarker),r.containerState.marker=r.containerState.marker||t,e.check(G,r.interrupt?n:m,e.attempt(Tt,g,h))}function m(e){return i(r.containerState,`expected state`),r.containerState.initialBlankLine=!0,l++,g(e)}function h(t){return A(t)?(e.enter(s.listItemPrefixWhitespace),e.consume(t),e.exit(s.listItemPrefixWhitespace),g):n(t)}function g(n){return i(r.containerState,`expected state`),r.containerState.size=l+r.sliceSerialize(e.exit(s.listItemPrefix),!0).length,t(n)}}function Ot(e,t,n){let r=this;return i(r.containerState,`expected state`),r.containerState._closeFlow=void 0,e.check(G,a,c);function a(n){return i(r.containerState,`expected state`),i(typeof r.containerState.size==`number`,`expected size`),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,z(e,t,s.listItemIndent,r.containerState.size+1)(n)}function c(n){return i(r.containerState,`expected state`),r.containerState.furtherBlankLines||!A(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Et,t,l)(n))}function l(a){return i(r.containerState,`expected state`),r.containerState._closeFlow=!0,r.interrupt=void 0,i(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),z(e,e.attempt(Y,t,n),s.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:o.tabSize)(a)}}function kt(e,t,n){let r=this;return i(r.containerState,`expected state`),i(typeof r.containerState.size==`number`,`expected size`),z(e,a,s.listItemIndent,r.containerState.size+1);function a(e){i(r.containerState,`expected state`);let a=r.events[r.events.length-1];return a&&a[1].type===s.listItemIndent&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)}}function At(e){i(this.containerState,`expected state`),i(typeof this.containerState.type==`string`,`expected type`),e.exit(this.containerState.type)}function jt(e,t,n){let r=this;return i(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),z(e,a,s.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:o.tabSize+1);function a(e){let i=r.events[r.events.length-1];return!A(e)&&i&&i[1].type===s.listItemPrefixWhitespace?t(e):n(e)}}var Mt={name:`setextUnderline`,resolveTo:Nt,tokenize:Pt};function Nt(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===s.content){r=n;break}e[n][1].type===s.paragraph&&(a=n)}else e[n][1].type===s.content&&e.splice(n,1),!o&&e[n][1].type===s.definition&&(o=n);i(a!==void 0,"expected a `text` index to be found"),i(r!==void 0,"expected a `text` index to be found"),i(e[r][2]===t,`enter context should be same`),i(e[e.length-1][2]===t,`enter context should be same`);let c={type:s.setextHeading,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=s.setextHeadingText,o?(e.splice(a,0,[`enter`,c,t]),e.splice(o+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=c,e.push([`exit`,c,t]),e}function Pt(e,t,n){let r=this,o;return c;function c(t){let c=r.events.length,u;for(i(t===a.dash||t===a.equalsTo,"expected `=` or `-`");c--;)if(r.events[c][1].type!==s.lineEnding&&r.events[c][1].type!==s.linePrefix&&r.events[c][1].type!==s.content){u=r.events[c][1].type===s.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter(s.setextHeadingLine),o=t,l(t)):n(t)}function l(t){return e.enter(s.setextHeadingLineSequence),u(t)}function u(t){return t===o?(e.consume(t),u):(e.exit(s.setextHeadingLineSequence),A(t)?z(e,d,s.lineSuffix)(t):d(t))}function d(r){return r===a.eof||O(r)?(e.exit(s.setextHeadingLine),t(r)):n(r)}}var Ft={tokenize:It};function It(e){let t=this,n=e.attempt(G,r,e.attempt(this.parser.constructs.flowInitial,o,z(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Ne,o)),s.linePrefix)));return n;function r(r){if(i(r===a.eof||O(r),`expected eol or eof`),r===a.eof){e.consume(r);return}return e.enter(s.lineEndingBlank),e.consume(r),e.exit(s.lineEndingBlank),t.currentConstruct=void 0,n}function o(r){if(i(r===a.eof||O(r),`expected eol or eof`),r===a.eof){e.consume(r);return}return e.enter(s.lineEnding),e.consume(r),e.exit(s.lineEnding),t.currentConstruct=void 0,n}}var Lt={resolveAll:Vt()},Rt=Bt(`string`),zt=Bt(`text`);function Bt(e){return{resolveAll:Vt(e===`text`?Ht:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],o=t.attempt(r,c,l);return c;function c(e){return d(e)?o(e):l(e)}function l(e){if(e===a.eof){t.consume(e);return}return t.enter(s.data),t.consume(e),u}function u(e){return d(e)?(t.exit(s.data),o(e)):(t.consume(e),u)}function d(e){if(e===a.eof)return!0;let t=r[e],o=-1;if(t)for(i(Array.isArray(t),"expected `disable.null` to be populated");++o<t.length;){let e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Vt(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===s.data&&(i=r,r++):(!t[r]||t[r][1].type!==s.data)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Ht(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===s.lineEnding)&&e[n-1][1].type===s.data){let r=e[n-1][1],i=t.sliceStream(r),c=i.length,l=-1,u=0,d;for(;c--;){let e=i[c];if(typeof e==`string`){for(l=e.length;e.charCodeAt(l-1)===a.space;)u++,l--;if(l)break;l=-1}else if(e===a.horizontalTab)d=!0,u++;else if(e!==a.virtualSpace){c++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){let i={type:n===e.length||d||u<o.hardBreakPrefixSizeMin?s.lineSuffix:s.hardBreakTrailing,start:{_bufferIndex:c?l:r.start._bufferIndex+l,_index:r.start._index+c,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Ut=e({attentionMarkers:()=>Zt,contentInitial:()=>Gt,disable:()=>Qt,document:()=>Wt,flow:()=>qt,flowInitial:()=>Kt,insideSpan:()=>Xt,string:()=>Jt,text:()=>Yt}),Wt={[a.asterisk]:Y,[a.plusSign]:Y,[a.dash]:Y,[a.digit0]:Y,[a.digit1]:Y,[a.digit2]:Y,[a.digit3]:Y,[a.digit4]:Y,[a.digit5]:Y,[a.digit6]:Y,[a.digit7]:Y,[a.digit8]:Y,[a.digit9]:Y,[a.greaterThan]:de},Gt={[a.leftSquareBracket]:Ve},Kt={[a.horizontalTab]:Ce,[a.virtualSpace]:Ce,[a.space]:Ce},qt={[a.numberSign]:qe,[a.asterisk]:Ct,[a.dash]:[Mt,Ct],[a.lessThan]:Qe,[a.equalsTo]:Mt,[a.underscore]:Ct,[a.graveAccent]:be,[a.tilde]:be},Jt={[a.ampersand]:_e,[a.backslash]:he},Yt={[a.carriageReturn]:xt,[a.lineFeed]:xt,[a.carriageReturnLineFeed]:xt,[a.exclamationMark]:_t,[a.ampersand]:_e,[a.asterisk]:ie,[a.lessThan]:[ce,at],[a.leftSquareBracket]:yt,[a.backslash]:[Ge,he],[a.rightSquareBracket]:st,[a.underscore]:ie,[a.graveAccent]:De},Xt={null:[ie,Lt]},Zt={null:[a.asterisk,a.underscore]},Qt={null:[]},$t=n(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),en=n(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=$t(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),X=(0,t(n(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t={}.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=en()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}}))(),1).default)(`micromark`);function tn(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},o={},s=[],c=[],d=[],f=!0,p={attempt:A(D),check:A(k),consume:w,enter:T,exit:E,interrupt:A(k,{interrupt:!0})},m={code:a.eof,containerState:{},defineSkip:x,events:[],now:b,parser:e,previous:a.eof,sliceSerialize:v,sliceStream:y,write:_},h=t.tokenize.call(m,p),g;return t.resolveAll&&s.push(t),m;function _(e){return c=u(c,e),S(),c[c.length-1]===a.eof?(j(t,0),m.events=re(s,m.events,m),m.events):[]}function v(e,t){return rn(y(e),t)}function y(e){return nn(c,e)}function b(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function x(e){o[e.line]=e.column,N(),X("position: define skip: `%j`",r)}function S(){let e;for(;r._index<c.length;){let t=c[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)C(t.charCodeAt(r._bufferIndex));else C(t)}}function C(e){i(f===!0,`expected character to be consumed`),f=void 0,X("main: passing `%s` to %s",e,h&&h.name),g=e,i(typeof h==`function`,`expected state`),h=h(e)}function w(e){i(e===g,`expected given code to equal expected code`),X("consume: `%s`",e),i(f===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),i(e===null?m.events.length===0||m.events[m.events.length-1][0]===`exit`:m.events[m.events.length-1][0]===`enter`,`expected last token to be open`),O(e)?(r.line++,r.column=1,r.offset+=e===a.carriageReturnLineFeed?2:1,N(),X("position: after eol: `%j`",r)):e!==a.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=e,f=!0}function T(e,t){let n=t||{};return n.type=e,n.start=b(),i(typeof e==`string`,`expected string type`),i(e.length>0,`expected non-empty string`),X("enter: `%s`",e),m.events.push([`enter`,n,m]),d.push(n),n}function E(e){i(typeof e==`string`,`expected string type`),i(e.length>0,`expected non-empty string`);let t=d.pop();return i(t,`cannot close w/o open tokens`),t.end=b(),i(e===t.type,`expected exit token to match current token`),i(!(t.start._index===t.end._index&&t.start._bufferIndex===t.end._bufferIndex),"expected non-empty token (`"+e+"`)"),X("exit: `%s`",t.type),m.events.push([`exit`,t,m]),t}function D(e,t){j(e,t.from)}function k(e,t){t.restore()}function A(e,t){return n;function n(n,r,a){let o,s,c,l;return Array.isArray(n)?d(n):`tokenize`in n?d([n]):u(n);function u(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function d(e){return o=e,s=0,e.length===0?(i(a,"expected `bogusState` to be given"),a):h(e[s])}function h(e){return n;function n(n){return l=M(),c=e,e.partial||(m.currentConstruct=e),i(m.parser.constructs.disable.null,"expected `disable.null` to be populated"),e.name&&m.parser.constructs.disable.null.includes(e.name)?v(n):e.tokenize.call(t?Object.assign(Object.create(m),t):m,p,_,v)(n)}}function _(t){return i(t===g,`expected code`),f=!0,e(c,l),r}function v(e){return i(e===g,`expected code`),f=!0,l.restore(),++s<o.length?h(o[s]):a}}}function j(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&l(m.events,t,m.events.length-t,e.resolve(m.events.slice(t),m)),e.resolveTo&&(m.events=e.resolveTo(m.events,m)),i(e.partial||m.events.length===0||m.events[m.events.length-1][0]===`exit`,`expected last token to end`)}function M(){let e=b(),t=m.previous,n=m.currentConstruct,i=m.events.length,a=Array.from(d);return{from:i,restore:o};function o(){r=e,m.previous=t,m.currentConstruct=n,m.events.length=i,d=a,N(),X("position: restore: `%j`",r)}}function N(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function nn(e,t){let n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex,s;if(n===a)i(o>-1,`expected non-negative end buffer index`),i(r>-1,`expected non-negative start buffer index`),s=[e[n].slice(r,o)];else{if(s=e.slice(n,a),r>-1){let e=s[0];typeof e==`string`?s[0]=e.slice(r):(i(r===0,"expected `startBufferIndex` to be `0`"),s.shift())}o>0&&s.push(e[a].slice(0,o))}return s}function rn(e,t){let n=-1,r=[],o;for(;++n<e.length;){let s=e[n],l;if(typeof s==`string`)l=s;else switch(s){case a.carriageReturn:l=c.cr;break;case a.lineFeed:l=c.lf;break;case a.carriageReturnLineFeed:l=c.cr+c.lf;break;case a.horizontalTab:l=t?c.space:c.ht;break;case a.virtualSpace:if(!t&&o)continue;l=c.space;break;default:i(typeof s==`number`,`expected number`),l=String.fromCharCode(s)}o=s===a.horizontalTab,r.push(l)}return r.join(``)}function an(e){let t={constructs:f([Ut,...(e||{}).extensions||[]]),content:n(te),defined:[],document:n(V),flow:n(Ft),lazy:{},string:n(Rt),text:n(zt)};return t;function n(e){return n;function n(n){return tn(t,e,n)}}}function on(e){for(;!je(e););return e}var sn=/[\0\t\n\r]/g;function cn(){let e=1,t=``,n=!0,r;return i;function i(i,s,c){let l=[],u,d,f,p,m;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t=``,n&&=(i.charCodeAt(0)===a.byteOrderMarker&&f++,void 0);f<i.length;){if(sn.lastIndex=f,u=sn.exec(i),p=u&&u.index!==void 0?u.index:i.length,m=i.charCodeAt(p),!u){t=i.slice(f);break}if(m===a.lf&&f===p&&r)l.push(a.carriageReturnLineFeed),r=void 0;else switch(r&&=(l.push(a.carriageReturn),void 0),f<p&&(l.push(i.slice(f,p)),e+=p-f),m){case a.nul:l.push(a.replacementCharacter),e++;break;case a.ht:for(d=Math.ceil(e/o.tabSize)*o.tabSize,l.push(a.horizontalTab);e++<d;)l.push(a.virtualSpace);break;case a.lf:l.push(a.lineFeed),e=1;break;default:r=!0,e=1}f=p+1}return c&&(r&&l.push(a.carriageReturn),t&&l.push(t),l.push(a.eof)),l}}function ln(e,t,n){return typeof t!=`string`&&(n=t,t=void 0),ee(n)(on(an(n).document().write(cn()(e,t,!0))))}var un={tokenize:xn,partial:!0},dn={tokenize:Sn,partial:!0},fn={tokenize:Cn,partial:!0},pn={tokenize:wn,partial:!0},mn={tokenize:Tn,partial:!0},hn={name:`wwwAutolink`,tokenize:yn,previous:En},gn={name:`protocolAutolink`,tokenize:bn,previous:Dn},Z={name:`emailAutolink`,tokenize:vn,previous:On},Q={};function _n(){return{text:Q}}for(var $=a.digit0;$<a.leftCurlyBrace;)Q[$]=Z,$++,$===a.colon?$=a.uppercaseA:$===a.leftSquareBracket&&($=a.lowercaseA);Q[a.plusSign]=Z,Q[a.dash]=Z,Q[a.dot]=Z,Q[a.underscore]=Z,Q[a.uppercaseH]=[Z,gn],Q[a.lowercaseH]=[Z,gn],Q[a.uppercaseW]=[Z,hn],Q[a.lowercaseW]=[Z,hn];function vn(e,t,n){let r=this,i,o;return s;function s(t){return!kn(t)||!On.call(r,r.previous)||An(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),c(t))}function c(t){return kn(t)?(e.consume(t),c):t===a.atSign?(e.consume(t),l):n(t)}function l(t){return t===a.dot?e.check(mn,d,u)(t):t===a.dash||t===a.underscore||S(t)?(o=!0,e.consume(t),l):d(t)}function u(t){return e.consume(t),i=!0,l}function d(a){return o&&i&&x(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(a)):n(a)}}function yn(e,t,n){let r=this;return i;function i(t){return t!==a.uppercaseW&&t!==a.lowercaseW||!En.call(r,r.previous)||An(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(un,e.attempt(dn,e.attempt(fn,o),n),n)(t))}function o(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function bn(e,t,n){let r=this,i=``,o=!1;return s;function s(t){return(t===a.uppercaseH||t===a.lowercaseH)&&Dn.call(r,r.previous)&&!An(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),c):n(t)}function c(t){if(x(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),c;if(t===a.colon){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),l}return n(t)}function l(t){return t===a.slash?(e.consume(t),o?u:(o=!0,l)):n(t)}function u(t){return t===a.eof||w(t)||k(t)||M(t)||j(t)?n(t):e.attempt(dn,e.attempt(fn,d),n)(t)}function d(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function xn(e,t,n){let r=0;return i;function i(t){return(t===a.uppercaseW||t===a.lowercaseW)&&r<3?(r++,e.consume(t),i):t===a.dot&&r===3?(e.consume(t),o):n(t)}function o(e){return e===a.eof?n(e):t(e)}}function Sn(e,t,n){let r,i,o;return s;function s(t){return t===a.dot||t===a.underscore?e.check(pn,l,c)(t):t===a.eof||k(t)||M(t)||t!==a.dash&&j(t)?l(t):(o=!0,e.consume(t),s)}function c(t){return t===a.underscore?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!o?n(e):t(e)}}function Cn(e,t){let n=0,r=0;return i;function i(s){return s===a.leftParenthesis?(n++,e.consume(s),i):s===a.rightParenthesis&&r<n?o(s):s===a.exclamationMark||s===a.quotationMark||s===a.ampersand||s===a.apostrophe||s===a.rightParenthesis||s===a.asterisk||s===a.comma||s===a.dot||s===a.colon||s===a.semicolon||s===a.lessThan||s===a.questionMark||s===a.rightSquareBracket||s===a.underscore||s===a.tilde?e.check(pn,t,o)(s):s===a.eof||k(s)||M(s)?t(s):(e.consume(s),i)}function o(t){return t===a.rightParenthesis&&r++,e.consume(t),i}}function wn(e,t,n){return r;function r(s){return s===a.exclamationMark||s===a.quotationMark||s===a.apostrophe||s===a.rightParenthesis||s===a.asterisk||s===a.comma||s===a.dot||s===a.colon||s===a.semicolon||s===a.questionMark||s===a.underscore||s===a.tilde?(e.consume(s),r):s===a.ampersand?(e.consume(s),o):s===a.rightSquareBracket?(e.consume(s),i):s===a.lessThan||s===a.eof||k(s)||M(s)?t(s):n(s)}function i(e){return e===a.eof||e===a.leftParenthesis||e===a.leftSquareBracket||k(e)||M(e)?t(e):r(e)}function o(e){return x(e)?s(e):n(e)}function s(t){return t===a.semicolon?(e.consume(t),r):x(t)?(e.consume(t),s):n(t)}}function Tn(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return S(e)?n(e):t(e)}}function En(e){return e===a.eof||e===a.leftParenthesis||e===a.asterisk||e===a.underscore||e===a.leftSquareBracket||e===a.rightSquareBracket||e===a.tilde||k(e)}function Dn(e){return!x(e)}function On(e){return!(e===a.slash||kn(e))}function kn(e){return e===a.plusSign||e===a.dash||e===a.dot||e===a.underscore||S(e)}function An(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function jn(){return{exit:{literalAutolinkEmail:Nn,literalAutolinkHttp:Pn,literalAutolinkWww:Mn}}}function Mn(e){Fn.call(this,e,`http://`)}function Nn(e){Fn.call(this,e,`mailto:`)}function Pn(e){Fn.call(this,e)}function Fn(e,t){let n=this.sliceSerialize(e);this.tag(`<a href="`+P((t||``)+n)+`">`),this.raw(this.encode(n)),this.tag(`</a>`)}var In={tokenize:Wn,partial:!0};function Ln(){return{document:{[a.leftSquareBracket]:{name:`gfmFootnoteDefinition`,tokenize:Vn,continuation:{tokenize:Hn},exit:Un}},text:{[a.leftSquareBracket]:{name:`gfmFootnoteCall`,tokenize:Bn},[a.rightSquareBracket]:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Rn,resolveTo:zn}}}}function Rn(e,t,n){let r=this,o=r.events.length,c=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),l;for(;o--;){let e=r.events[o][1];if(e.type===s.labelImage){l=e;break}if(e.type===`gfmFootnoteCall`||e.type===s.labelLink||e.type===s.label||e.type===s.image||e.type===s.link)break}return u;function u(o){if(i(o===a.rightSquareBracket,"expected `]`"),!l||!l._balanced)return n(o);let s=b(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==a.caret||!c.includes(s.slice(1))?n(o):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(o),e.exit(`gfmFootnoteCallLabelMarker`),t(o))}}function zn(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type===s.labelImage&&e[n][0]===`enter`){r=e[n][1];break}i(r,"expected `labelStart` to resolve"),e[n+1][1].type=s.data,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let a={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let c={type:`gfmFootnoteCallString`,start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:s.chunkString,contentType:`string`,start:Object.assign({},c.start),end:Object.assign({},c.end)},u=[e[n+1],e[n+2],[`enter`,a,t],e[n+3],e[n+4],[`enter`,o,t],[`exit`,o,t],[`enter`,c,t],[`enter`,l,t],[`exit`,l,t],[`exit`,c,t],e[e.length-2],e[e.length-1],[`exit`,a,t]];return e.splice(n,e.length-n+1,...u),e}function Bn(e,t,n){let r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),c=0,l;return u;function u(t){return i(t===a.leftSquareBracket,"expected `[`"),e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),d}function d(t){return t===a.caret?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,f):n(t)}function f(i){if(c>o.linkReferenceSizeMax||i===a.rightSquareBracket&&!l||i===a.eof||i===a.leftSquareBracket||k(i))return n(i);if(i===a.rightSquareBracket){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return s.includes(b(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(i)}return k(i)||(l=!0),c++,e.consume(i),i===a.backslash?p:f}function p(t){return t===a.leftSquareBracket||t===a.backslash||t===a.rightSquareBracket?(e.consume(t),c++,f):f(t)}}function Vn(e,t,n){let r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),c,l=0,u;return d;function d(t){return i(t===a.leftSquareBracket,"expected `[`"),e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),f}function f(t){return t===a.caret?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,p):n(t)}function p(t){if(l>o.linkReferenceSizeMax||t===a.rightSquareBracket&&!u||t===a.eof||t===a.leftSquareBracket||k(t))return n(t);if(t===a.rightSquareBracket){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return c=b(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),h}return k(t)||(u=!0),l++,e.consume(t),t===a.backslash?m:p}function m(t){return t===a.leftSquareBracket||t===a.backslash||t===a.rightSquareBracket?(e.consume(t),l++,p):p(t)}function h(t){return t===a.colon?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),s.includes(c)||s.push(c),z(e,g,`gfmFootnoteDefinitionWhitespace`)):n(t)}function g(e){return t(e)}}function Hn(e,t,n){return e.check(G,t,e.attempt(In,t,n))}function Un(e){e.exit(`gfmFootnoteDefinition`)}function Wn(e,t,n){let r=this;return z(e,i,`gfmFootnoteDefinitionIndent`,o.tabSize+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===o.tabSize?t(e):n(e)}}var Gn={}.hasOwnProperty,Kn={};function qn(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Jn(e){let t=e||Kn,n=t.label||`Footnotes`,r=t.labelTagName||`h2`,a=t.labelAttributes===null||t.labelAttributes===void 0?`class="sr-only"`:t.labelAttributes,o=t.backLabel||qn,s=t.clobberPrefix===null||t.clobberPrefix===void 0?`user-content-`:t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData(`tightStack`).push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let e=this.getData(`gfmFootnoteDefinitions`),t=this.getData(`gfmFootnoteDefinitionStack`);i(t,"expected `footnoteStack`");let n=this.getData(`tightStack`),r=t.pop(),a=this.resume();i(r,`expected to be in a footnote`),e||this.setData(`gfmFootnoteDefinitions`,e={}),Gn.call(e,r)||(e[r]=a),n.pop(),this.setData(`slurpOneLineEnding`,!0),this.setData(`lastWasTag`)},gfmFootnoteDefinitionLabelString(e){let t=this.getData(`gfmFootnoteDefinitionStack`);t||this.setData(`gfmFootnoteDefinitionStack`,t=[]),t.push(b(this.sliceSerialize(e))),this.resume(),this.buffer()},gfmFootnoteCallString(e){let t=this.getData(`gfmFootnoteCallOrder`),n=this.getData(`gfmFootnoteCallCounts`),r=b(this.sliceSerialize(e)),i;this.resume(),t||this.setData(`gfmFootnoteCallOrder`,t=[]),n||this.setData(`gfmFootnoteCallCounts`,n={});let a=t.indexOf(r),o=P(r.toLowerCase());a===-1?(t.push(r),n[r]=1,i=t.length):(n[r]++,i=a+1);let c=n[r];this.tag(`<sup><a href="#`+s+`fn-`+o+`" id="`+s+`fnref-`+o+(c>1?`-`+c:``)+`" data-footnote-ref="" aria-describedby="footnote-label">`+String(i)+`</a></sup>`)},null(){let e=this.getData(`gfmFootnoteCallOrder`)||[],t=this.getData(`gfmFootnoteCallCounts`)||{},i=this.getData(`gfmFootnoteDefinitions`)||{},c=-1;for(e.length>0&&(this.lineEndingIfNeeded(),this.tag(`<section data-footnotes="" class="footnotes"><`+r+` id="footnote-label"`+(a?` `+a:``)+`>`),this.raw(this.encode(n)),this.tag(`</`+r+`>`),this.lineEndingIfNeeded(),this.tag(`<ol>`));++c<e.length;){let n=e[c],r=P(n.toLowerCase()),a=0,l=[];for(;++a<=t[n];)l.push(`<a href="#`+s+`fnref-`+r+(a>1?`-`+a:``)+`" data-footnote-backref="" aria-label="`+this.encode(typeof o==`string`?o:o(c,a))+`" class="data-footnote-backref">↩`+(a>1?`<sup>`+a+`</sup>`:``)+`</a>`);let u=l.join(` `),d=!1;this.lineEndingIfNeeded(),this.tag(`<li id="`+s+`fn-`+r+`">`),this.lineEndingIfNeeded(),this.tag(i[n].replace(/<\/p>(?:\r?\n|\r)?$/,function(e){return d=!0,` `+u+e})),d||(this.lineEndingIfNeeded(),this.tag(u)),this.lineEndingIfNeeded(),this.tag(`</li>`)}e.length>0&&(this.lineEndingIfNeeded(),this.tag(`</ol>`),this.lineEndingIfNeeded(),this.tag(`</section>`))}}}}function Yn(){return{enter:{strikethrough(){this.tag(`<del>`)}},exit:{strikethrough(){this.tag(`</del>`)}}}}function Xn(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:c,resolveAll:r};return t??=!0,{text:{[a.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[a.tilde]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&l(o,o.length,0,re(s,e.slice(r+1,n),t)),l(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),l(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=s.data);return e}function c(e,n,r){let c=this.previous,l=this.events,u=0;return d;function d(t){return i(t===a.tilde,"expected `~`"),c===a.tilde&&l[l.length-1][1].type!==s.characterEscape?r(t):(e.enter(`strikethroughSequenceTemporary`),f(t))}function f(i){let s=W(c);if(i===a.tilde)return u>1?r(i):(e.consume(i),u++,f);if(u<2&&!t)return r(i);let l=e.exit(`strikethroughSequenceTemporary`),d=W(i);return l._open=!d||d===o.attentionSideAfter&&!!s,l._close=!s||s===o.attentionSideAfter&&!!d,n(i)}}}var Zn={none:``,left:` align="left"`,right:` align="right"`,center:` align="center"`};function Qn(){return{enter:{table(e){let t=e._align;i(t,"expected `_align`"),this.lineEndingIfNeeded(),this.tag(`<table>`),this.setData(`tableAlign`,t)},tableBody(){this.tag(`<tbody>`)},tableData(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);i(e,"expected `tableAlign`"),i(typeof t==`number`,"expected `tableColumn`");let n=Zn[e[t]];n===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag(`<td`+n+`>`))},tableHead(){this.lineEndingIfNeeded(),this.tag(`<thead>`)},tableHeader(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);i(e,"expected `tableAlign`"),i(typeof t==`number`,"expected `tableColumn`");let n=Zn[e[t]];this.lineEndingIfNeeded(),this.tag(`<th`+n+`>`)},tableRow(){this.setData(`tableColumn`,0),this.lineEndingIfNeeded(),this.tag(`<tr>`)}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData(`tableAlign`)&&(t=t.replace(/\\([\\|])/g,$n)),this.raw(this.encode(t))},table(){this.setData(`tableAlign`),this.setData(`slurpAllLineEndings`),this.lineEndingIfNeeded(),this.tag(`</table>`)},tableBody(){this.lineEndingIfNeeded(),this.tag(`</tbody>`)},tableData(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);i(e,"expected `tableAlign`"),i(typeof t==`number`,"expected `tableColumn`"),t in e?(this.tag(`</td>`),this.setData(`tableColumn`,t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag(`</thead>`)},tableHeader(){let e=this.getData(`tableColumn`);i(typeof e==`number`,"expected `tableColumn`"),this.tag(`</th>`),this.setData(`tableColumn`,e+1)},tableRow(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);for(i(e,"expected `tableAlign`"),i(typeof t==`number`,"expected `tableColumn`");t<e.length;)this.lineEndingIfNeeded(),this.tag(`<td`+Zn[e[t]]+`></td>`),t++;this.setData(`tableColumn`,t),this.lineEndingIfNeeded(),this.tag(`</tr>`)}}}}function $n(e,t){return t===`|`?t:e}var er=class{constructor(){this.map=[]}add(e,t,n){tr(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function tr(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function nr(e,t){i(e[t][1].type===`table`,`expected table`);let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function rr(){return{flow:{null:{name:`table`,tokenize:ir,resolveAll:ar}}}}function ir(e,t,n){let r=this,c=0,l=0,u;return d;function d(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===s.lineEnding||e===s.linePrefix)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?E:f;return a===E&&r.parser.lazy[r.now().line]?n(e):a(e)}function f(t){return e.enter(`tableHead`),e.enter(`tableRow`),p(t)}function p(e){return e===a.verticalBar?m(e):(u=!0,l+=1,m(e))}function m(t){return t===a.eof?n(t):O(t)?l>1?(l=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(s.lineEnding),e.consume(t),e.exit(s.lineEnding),_):n(t):A(t)?z(e,m,s.whitespace)(t):(l+=1,u&&(u=!1,c+=1),t===a.verticalBar?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),u=!0,m):(e.enter(s.data),h(t)))}function h(t){return t===a.eof||t===a.verticalBar||k(t)?(e.exit(s.data),m(t)):(e.consume(t),t===a.backslash?g:h)}function g(t){return t===a.backslash||t===a.verticalBar?(e.consume(t),h):h(t)}function _(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),u=!1,A(t)?(i(r.parser.constructs.disable.null,"expected `disabled.null`"),z(e,v,s.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:o.tabSize)(t)):v(t))}function v(t){return t===a.dash||t===a.colon?b(t):t===a.verticalBar?(u=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),y):T(t)}function y(t){return A(t)?z(e,b,s.whitespace)(t):b(t)}function b(t){return t===a.colon?(l+=1,u=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),x):t===a.dash?(l+=1,x(t)):t===a.eof||O(t)?w(t):T(t)}function x(t){return t===a.dash?(e.enter(`tableDelimiterFiller`),S(t)):T(t)}function S(t){return t===a.dash?(e.consume(t),S):t===a.colon?(u=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),C):(e.exit(`tableDelimiterFiller`),C(t))}function C(t){return A(t)?z(e,w,s.whitespace)(t):w(t)}function w(n){return n===a.verticalBar?v(n):n===a.eof||O(n)?!u||c!==l?T(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):T(n)}function T(e){return n(e)}function E(t){return e.enter(`tableRow`),D(t)}function D(n){return n===a.verticalBar?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),D):n===a.eof||O(n)?(e.exit(`tableRow`),t(n)):A(n)?z(e,D,s.whitespace)(n):(e.enter(s.data),j(n))}function j(t){return t===a.eof||t===a.verticalBar||k(t)?(e.exit(s.data),D(t)):(e.consume(t),t===a.backslash?M:j)}function M(t){return t===a.backslash||t===a.verticalBar?(e.consume(t),j):j(t)}}function ar(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],c=[0,0,0,0],l=!1,u=0,d,f,p,m=new er;for(;++n<e.length;){let h=e[n],g=h[1];h[0]===`enter`?g.type===`tableHead`?(l=!1,u!==0&&(i(d,`there should be a table opening`),sr(m,t,u,d,f),f=void 0,u=0),d={type:`table`,start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[[`enter`,d,t]])):g.type===`tableRow`||g.type===`tableDelimiterRow`?(r=!0,p=void 0,o=[0,0,0,0],c=[0,n+1,0,0],l&&(l=!1,f={type:`tableBody`,start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[[`enter`,f,t]])),a=g.type===`tableDelimiterRow`?2:f?3:1):a&&(g.type===s.data||g.type===`tableDelimiterMarker`||g.type===`tableDelimiterFiller`)?(r=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],p=or(m,t,o,a,void 0,p),o=[0,0,0,0]),c[2]=n)):g.type===`tableCellDivider`&&(r?r=!1:(o[1]!==0&&(c[0]=c[1],p=or(m,t,o,a,void 0,p)),o=c,c=[o[1],n,0,0])):g.type===`tableHead`?(l=!0,u=n):g.type===`tableRow`||g.type===`tableDelimiterRow`?(u=n,o[1]===0?c[1]!==0&&(p=or(m,t,c,a,n,p)):(c[0]=c[1],p=or(m,t,o,a,n,p)),a=0):a&&(g.type===s.data||g.type===`tableDelimiterMarker`||g.type===`tableDelimiterFiller`)&&(c[3]=n)}for(u!==0&&(i(d,`expected table opening`),sr(m,t,u,d,f)),m.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=nr(t.events,n))}return e}function or(e,t,n,r,a,c){let l=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(i(c,`expected previous cell enter`),c.end=Object.assign({},cr(t.events,n[0])),e.add(n[0],0,[[`exit`,c,t]]));let u=cr(t.events,n[1]);if(c={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[[`enter`,c,t]]),n[2]!==0){let a=cr(t.events,n[2]),c=cr(t.events,n[3]),l={type:`tableContent`,start:Object.assign({},a),end:Object.assign({},c)};if(e.add(n[2],0,[[`enter`,l,t]]),i(n[3]!==0),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=s.chunkText,r[1].contentType=o.contentTypeText,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,l,t]])}return a!==void 0&&(c.end=Object.assign({},cr(t.events,a)),e.add(a,0,[[`exit`,c,t]]),c=void 0),c}function sr(e,t,n,r,i){let a=[],o=cr(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function cr(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var lr=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,ur=RegExp(`^`+lr.source,`i`);function dr(){return{exit:{htmlFlowData(e){fr.call(this,e,lr)},htmlTextData(e){fr.call(this,e,ur)}}}}function fr(e,t){let n=this.sliceSerialize(e);this.options.allowDangerousHtml&&(n=n.replace(t,`&lt;$1$2`)),this.raw(this.encode(n))}function pr(){return{enter:{taskListCheck(){this.tag(`<input type="checkbox" disabled="" `)}},exit:{taskListCheck(){this.tag(`/>`)},taskListCheckValueChecked(){this.tag(`checked="" `)}}}}var mr={name:`tasklistCheck`,tokenize:gr};function hr(){return{text:{[a.leftSquareBracket]:mr}}}function gr(e,t,n){let r=this;return o;function o(t){return i(t===a.leftSquareBracket,"expected `[`"),r.previous!==a.eof||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),s)}function s(t){return k(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),c):t===a.uppercaseX||t===a.lowercaseX?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),c):n(t)}function c(t){return t===a.rightSquareBracket?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),l):n(t)}function l(r){return O(r)?t(r):A(r)?e.check({tokenize:_r},t,n)(r):n(r)}}function _r(e,t,n){return z(e,r,s.whitespace);function r(e){return e===a.eof?n(e):t(e)}}function vr(e){return f([_n(),Ln(),Xn(e),rr(),hr()])}function yr(e){return h([jn(),Jn(e),Yn(),Qn(),dr(),pr()])}export{on as a,z as c,M as d,b as f,a as g,o as h,cn as i,O as l,s as m,yr as n,an as o,_ as p,ln as r,W as s,vr as t,j as u};
@@ -0,0 +1 @@
1
+ import{B as e,F as t,b as n,c as r,d as i,f as a,u as o,z as s}from"./fields-DVMUyXbG.js";var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)};function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);c(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(e){var t=`[object `+e+`]`;return function(e){return d(e)===t}},d=function(e){return Object.prototype.toString.call(e)},f=function(e){return e instanceof Date?e.getTime():p(e)?e.map(f):e&&typeof e.toJSON==`function`?e.toJSON():e},ee=function(e){return e??null},p=u(`Array`),te=u(`Object`),m=u(`Function`),ne=function(e,t){return e.hasOwnProperty(t)&&!m(e[t])},re=function(e){return e&&(e.constructor===Object||e.constructor===Array||e.constructor.toString()===`function Object() { [native code] }`||e.constructor.toString()===`function Array() { [native code] }`)&&!e.toJSON},h=function(e,t){if(e==null&&e==t||e===t)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(t))return!1;if(p(e)){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!h(e[n],t[n]))return!1;return!0}else if(te(e)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!h(e[i],t[i]))return!1;return!0}return!1},g=function(e,t,n,r,i,a){var o=t[r];if(p(e)&&isNaN(Number(o))&&!ne(e,o)){for(var s=0,c=e.length;s<c;s++)if(!g(e[s],t,n,r,s,e))return!1}return r===t.length||e==null?n(e,i,a,r===0,r===t.length):g(e[o],t,n,r+1,o,e)},_=function(){function e(e,t,n,r){this.params=e,this.owneryQuery=t,this.options=n,this.name=r,this.init()}return e.prototype.init=function(){},e.prototype.reset=function(){this.done=!1,this.keep=!1},e}(),v=function(e){l(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.children=i,a}return t.prototype.reset=function(){this.keep=!1,this.done=!1;for(var e=0,t=this.children.length;e<t;e++)this.children[e].reset()},t.prototype.childrenNext=function(e,t,n,r,i){for(var a=!0,o=!0,s=0,c=this.children.length;s<c;s++){var l=this.children[s];if(l.done||l.next(e,t,n,r,i),l.keep||(o=!1),l.done){if(!l.keep)break}else a=!1}this.done=a,this.keep=o},t}(_),y=function(e){l(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r,i)||this;return o.name=a,o}return t}(v),ie=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(v),b=function(e){l(t,e);function t(t,n,r,i,a){var o=e.call(this,n,r,i,a)||this;return o.keyPath=t,o.propop=!0,o._nextNestedValue=function(e,t,n,r,i){return o.childrenNext(e,t,n,r,i),!o.done},o}return t.prototype.next=function(e,t,n){g(e,this.keyPath,this._nextNestedValue,0,t,n)},t}(v),x=function(e,t){if(e instanceof Function)return e;if(e instanceof RegExp)return function(t){var n=typeof t==`string`&&e.test(t);return e.lastIndex=0,n};var n=f(e);return function(e){return t(n,f(e))}},S=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._test=x(this.params,this.options.compare)},t.prototype.next=function(e,t,n){(!Array.isArray(n)||n.hasOwnProperty(t))&&this._test(e,t,n)&&(this.done=!0,this.keep=!0)},t}(_),ae=function(e){return function(t,n,r,i){return e(t,n,r,i)}},C=function(e){return ae(function(t,n,r,i){var a=typeof f(t),o=e(t);return new S(function(e){var t=ee(e);return typeof f(t)===a&&o(t)},n,r,i)})},oe=function(e,t,n,r){var i=r.operations[e];return i||w(e),i(t,n,r,e)},w=function(e){throw Error(`Unsupported operation: ${e}`)},T=function(e,t){for(var n in e)if(t.operations.hasOwnProperty(n)||n.charAt(0)===`$`)return!0;return!1},se=function(e,t,n,r,i){if(T(t,i)){var a=D(t,n,i),o=a[0];if(a[1].length)throw Error(`Property queries must contain only operations, or exact objects.`);return new b(e,t,r,i,o)}return new b(e,t,r,i,[new S(t,r,i)])},E=function(e,t,n){t===void 0&&(t=null);var r=n===void 0?{}:n,i=r.compare,a=r.operations,o={compare:i||h,operations:Object.assign({},a||{})},s=D(e,null,o),c=s[0],l=s[1],u=[];return c.length&&u.push(new b([],e,t,o,c)),u.push.apply(u,l),u.length===1?u[0]:new ie(e,t,o,u)},D=function(e,t,n){var r=[],i=[];if(!re(e))return r.push(new S(e,e,n)),[r,i];for(var a in e)if(n.operations.hasOwnProperty(a)){var o=oe(a,e[a],e,n);if(o&&!o.propop&&t&&!n.operations[t])throw Error(`Malformed query. ${a} cannot be matched against property.`);o!=null&&r.push(o)}else a.charAt(0)===`$`?w(a):i.push(se(a.split(`.`),e[a],a,e,n));return[r,i]},ce=function(e){return function(t,n,r){return e.reset(),e.next(t,n,r),e.keep}},le=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._test=x(this.params,this.options.compare)},t.prototype.reset=function(){e.prototype.reset.call(this),this.keep=!0},t.prototype.next=function(e){this._test(e)&&(this.done=!0,this.keep=!1)},t}(_),ue=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){if(!this.params||typeof this.params!=`object`)throw Error(`Malformed query. $elemMatch must by an object.`);this._queryOperation=E(this.params,this.owneryQuery,this.options)},t.prototype.reset=function(){e.prototype.reset.call(this),this._queryOperation.reset()},t.prototype.next=function(e){if(p(e)){for(var t=0,n=e.length;t<n;t++){this._queryOperation.reset();var r=e[t];this._queryOperation.next(r,t,e,!1),this.keep=this.keep||this._queryOperation.keep}this.done=!0}else this.done=!1,this.keep=!1},t}(_),de=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._queryOperation=E(this.params,this.owneryQuery,this.options)},t.prototype.reset=function(){e.prototype.reset.call(this),this._queryOperation.reset()},t.prototype.next=function(e,t,n,r){this._queryOperation.next(e,t,n,r),this.done=this._queryOperation.done,this.keep=!this._queryOperation.keep},t}(_),O=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){},t.prototype.next=function(e){p(e)&&e.length===this.params&&(this.done=!0,this.keep=!0)},t}(_),k=function(e){if(e.length===0)throw Error(`$and/$or/$nor must be a nonempty array`)},A=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!1,t}return t.prototype.init=function(){var e=this;k(this.params),this._ops=this.params.map(function(t){return E(t,null,e.options)})},t.prototype.reset=function(){this.done=!1,this.keep=!1;for(var e=0,t=this._ops.length;e<t;e++)this._ops[e].reset()},t.prototype.next=function(e,t,n){for(var r=!1,i=!1,a=0,o=this._ops.length;a<o;a++){var s=this._ops[a];if(s.next(e,t,n),s.keep){r=!0,i=s.keep;break}}this.keep=i,this.done=r},t}(_),fe=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!1,t}return t.prototype.next=function(t,n,r){e.prototype.next.call(this,t,n,r),this.keep=!this.keep},t}(A),j=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){var e=this,t=Array.isArray(this.params)?this.params:[this.params];this._testers=t.map(function(t){if(T(t,e.options))throw Error(`cannot nest \$ under ${e.name.toLowerCase()}`);return x(t,e.options.compare)})},t.prototype.next=function(e,t,n){for(var r=!1,i=!1,a=0,o=this._testers.length;a<o;a++){var s=this._testers[a];if(s(e)){r=!0,i=!0;break}}this.keep=i,this.done=r},t}(_),pe=function(e){l(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.propop=!0,a._in=new j(t,n,r,i),a}return t.prototype.next=function(e,t,n,r){this._in.next(e,t,n),p(n)&&!r?this._in.keep?(this.keep=!1,this.done=!0):t==n.length-1&&(this.keep=!0,this.done=!0):(this.keep=!this._in.keep,this.done=!0)},t.prototype.reset=function(){e.prototype.reset.call(this),this._in.reset()},t}(_),me=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.next=function(e,t,n,r,i){i?n.hasOwnProperty(t)===this.params&&(this.done=!0,this.keep=!0):(this.done=!0,this.keep=!this.params)},t}(_),he=function(e){l(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,t.map(function(e){return E(e,n,r)}),i)||this;return a.propop=!1,k(t),a}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(y),ge=function(e){l(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,t.map(function(e){return E(e,n,r)}),i)||this;return a.propop=!0,a}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(y),M=function(e,t,n){return new S(e,t,n)},N=function(e,t,n,r){return new le(e,t,n,r)},P=function(e,t,n,r){return new A(e,t,n,r)},F=function(e,t,n,r){return new fe(e,t,n,r)},I=function(e,t,n,r){return new ue(e,t,n,r)},L=function(e,t,n,r){return new pe(e,t,n,r)},_e=function(e,t,n,r){return new j(e,t,n,r)},ve=C(function(e){return function(t){return t!=null&&t<e}}),ye=C(function(e){return function(t){return t===e||t<=e}}),be=C(function(e){return function(t){return t!=null&&t>e}}),xe=C(function(e){return function(t){return t===e||t>=e}}),Se=function(e,t,n){var r=e[0],i=e[1];return new S(function(e){return f(e)%r===i},t,n)},Ce=function(e,t,n,r){return new me(e,t,n,r)},we=function(e,t,n){return new S(new RegExp(e,t.$options),t,n)},Te=function(e,t,n,r){return new de(e,t,n,r)},R={number:function(e){return typeof e==`number`},string:function(e){return typeof e==`string`},bool:function(e){return typeof e==`boolean`},array:function(e){return Array.isArray(e)},null:function(e){return e===null},timestamp:function(e){return e instanceof Date}},Ee=Object.freeze({__proto__:null,$Size:O,$all:function(e,t,n,r){return new ge(e,t,n,r)},$and:function(e,t,n,r){return new he(e,t,n,r)},$elemMatch:I,$eq:M,$exists:Ce,$gt:be,$gte:xe,$in:_e,$lt:ve,$lte:ye,$mod:Se,$ne:N,$nin:L,$nor:F,$not:Te,$options:function(){return null},$or:P,$regex:we,$size:function(e,t,n){return new O(e,t,n,`$size`)},$type:function(e,t,n){return new S(function(t){if(typeof e==`string`){if(!R[e])throw Error(`Type alias does not exist`);return R[e](t)}return t==null?!1:t instanceof e||t.constructor===e},t,n)},$where:function(e,t,n){var r;if(m(e))r=e;else if(!{}.CSP_ENABLED)r=Function(`obj`,`return `+e);else throw Error(`In CSP mode, sift does not support strings in "$where" condition`);return new S(function(e){return r.bind(e)(e)},t,n)}}),De=function(e,t,n){var r=n===void 0?{}:n,i=r.compare,a=r.operations;return E(e,t,{compare:i,operations:Object.assign({},Ee,a||{})})},z=function(e,t){return t===void 0&&(t={}),ce(De(e,null,t))},Oe=z.createEqualsOperation,ke=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`,Ae=(e,t)=>String(e)===String(t),je={$contains(e,t,n){return Oe(t=>Array.isArray(t)&&t.some(t=>Ae(t,e)),t,n)}};function B(e,t){if(!e)return!0;try{return z(e,{operations:je})(t)}catch{return!1}}function V(e,t){return typeof e==`boolean`?e:e?B(e,t):!1}function Me(e,t,n){if(ke(t))return[`${e} = ${n(t)}`];let r=[];for(let[i,a]of Object.entries(t))if(a!==void 0)switch(i){case`$eq`:r.push(`${e} = ${n(a)}`);break;case`$ne`:r.push(`${e} ≠ ${n(a)}`);break;case`$gt`:r.push(`${e} > ${String(a)}`);break;case`$lt`:r.push(`${e} < ${String(a)}`);break;case`$gte`:r.push(`${e} ≥ ${String(a)}`);break;case`$lte`:r.push(`${e} ≤ ${String(a)}`);break;case`$in`:r.push(`${e} ∈ {${a.map(n).join(`, `)}}`);break;case`$nin`:r.push(`${e} ∉ {${a.map(n).join(`, `)}}`);break;case`$contains`:r.push(`${e} contains ${n(a)}`);break;default:break}return r}function H(e,t,n){if(!e)return[];let r=[];for(let[i,a]of Object.entries(e))if(a!==void 0){if(i===`$and`){for(let e of a)r.push(...H(e,t,n));continue}if(i===`$or`){let e=a.map(e=>H(e,t,n)).filter(e=>e.length>0).map(e=>e.length>1?`(${e.join(` and `)})`:e[0]);e.length&&r.push(e.join(` or `));continue}r.push(...Me(t(i),a,e=>n?n(i,e):String(e)))}return r}function U(e){let t=[];for(let n of e)if(i(n))t.push([n.key,n.type]);else if(a(n)){if(r(n))continue;let e=n.key?`${n.key}__`:``;for(let[r,i]of U(n.fields))t.push([e+r,i])}return t}var W=new WeakMap;function G(e){let t=W.get(e);return t||(t=Object.fromEntries(U(e)),W.set(e,t)),t}function Ne(e){let t=U(e.fields).map(([e])=>e),n=t.find((e,n)=>t.indexOf(e)!==n);if(n)throw Error(`[module] ${e.vault}/${e.module}: duplicate key '${n}'`);return e.standalone!==!1&&!e.views?.table?.length&&console.warn(`[module] ${e.vault}/${e.module}: standalone module without an explicit views.table`),e}function K(e){if(e.views?.title)return e.views.title;let t=G(e.fields),n=e.views?.inline?.find(e=>t[e]&&!J(t[e].kind));if(n)return n;if(t.name)return`name`;let r=U(e.fields).find(([,e])=>!e.virtual&&Ie(e.prim));return r?r[0]:`id`}function Pe(e,t){return String(t[K(e)]??t.id??``)}function q(e,t){let n=G(e.fields);return t.filter(e=>n[e]&&!n[e].virtual)}var Fe=new Set([`image`,`media`,`avatar`,`cover`]),J=e=>Fe.has(e),Ie=e=>e===`string`||e===`text`;function Y(e){let t=e.views?.inline?.length?q(e,e.views.inline):[];return t.length?t:[K(e)]}function Le(e){let t=G(e.fields);return Y(e).find(e=>t[e]&&J(t[e].kind))}function Re(e,t){let n=G(e.fields);return Y(e).reduce((e,r)=>{if(!n[r]||!J(n[r].kind)){let n=t[r];n!=null&&n!==``&&e.push(String(n))}return e},[]).join(` `).trim()||Pe(e,t)}function ze(e){let t=K(e);return[t,...e.views?.table?.length?q(e,e.views.table.filter(e=>e!==t)):[]]}var Be=new Set([`select`,`checkbox`,`relation`]);function X(e){return e.views?.groupBy?.length?q(e,e.views.groupBy):U(e.fields).filter(([,e])=>!e.virtual&&Be.has(e.prim)).map(([e])=>e)}function Ve(e){let t=e.views?.defaultGroupBy;if(t){let n=G(e.fields);if(n[t]&&!n[t].virtual)return t}return X(e)[0]}function Z(c,l){let u={};for(let d of c)if(i(d)){if(d.type.virtual)continue;u[d.key]=l?d.type.zod.optional():d.type.zod}else if(a(d))if(r(d)){let e=t(s(Z(d.fields,l)).passthrough());u[d.key]=l?e.optional():d.required?e:e.optional()}else if(o(d)){let t=s(Z(d.fields,l)).passthrough();d.kind===`url`&&(t=e(e=>typeof e==`string`?n(e)??{}:e,t)),u[d.key]=l?t.optional():d.required?t:t.optional()}else Object.assign(u,Z(d.fields,l));return u}var Q=e=>e==null||e===``||Array.isArray(e)&&e.length===0;function $(e,t,n){return e.superRefine((e,r)=>{for(let[i,a]of U(t.fields))a.virtual||i.includes(`__`)||n&&!(i in e)||a.required!==!0&&V(a.required,e)&&Q(e[i])&&r.addIssue({code:`custom`,path:[i],message:JSON.stringify({code:`required`})})})}function He(e){return $(s(Z(e.fields,!1)),e,!1)}function Ue(e){return $(s(Z(e.fields,!0)),e,!0)}export{U as a,Le as c,ze as d,K as f,V as h,Ne as i,Re as l,B as m,Ue as n,G as o,H as p,Ve as r,X as s,He as t,J as u};
@@ -0,0 +1 @@
1
+ function e(e){return e}var t=`lucide:folder`;function n(e){return{id:e,label:e,icon:t}}function r(e){let t=new Map;for(let n of e)for(let e of n.vaults??[])t.has(e.meta.id)||t.set(e.meta.id,{...e.meta});let r=[];for(let t of e){for(let e of t.vaults??[])r.push(...e.modules);r.push(...t.vaultModules??[])}return{vaults:[...new Set([...t.keys(),...r.map(e=>e.vault)])].map(e=>({meta:t.get(e)??n(e),modules:r.filter(t=>t.vault===e)})),modules:r,extends_:e.flatMap(e=>e.extends_??[])}}var i=`core`;function a(e){if(!e.id)throw Error(`[plugin] missing id`);return e.version||console.warn(`[plugin] ${e.id}: missing version`),e}function o(e){let t=new Map(e.map(e=>[e.id,e])),n=e=>e.id!==`core`&&t.has(`core`)?[...e.dependsOn,i]:e.dependsOn;for(let r of e)for(let e of n(r))if(!t.has(e))throw Error(`[plugin] ${r.id}: dependency '${e}' is not registered`);let r=[],a=new Map,o=(e,i)=>{let s=a.get(e.id);if(s!==`done`){if(s===`visiting`)throw Error(`[plugin] dependency cycle: ${[...i,e.id].join(` → `)}`);a.set(e.id,`visiting`);for(let r of n(e))o(t.get(r),[...i,e.id]);a.set(e.id,`done`),r.push(e)}};for(let t of e)o(t,[]);return r}function s(e){let t=o(e),{vaults:n,modules:i,extends_:a}=r(t);return{order:t,vaults:n,modules:i,extends_:a}}export{a as n,e as r,s as t};