1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[806],{4470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!l)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},u=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,s,c,f=arguments[0],d=1,p=arguments.length,m=!1;for("boolean"===typeof f&&(m=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=a(f,n),f!==(o=a(t,n))&&(m&&o&&(i(o)||(s=l(o)))?(s?(s=!1,c=r&&l(r)?r:[]):c=r&&i(r)?r:{},u(f,{name:n,newValue:e(m,c,o)})):"undefined"!==typeof o&&u(f,{name:n,newValue:o}));return f}},8139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,a=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(a,s):s}e.exports=function(e,a){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];a=a||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function m(){var e={line:f,column:d};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:f,column:d},this.source=a.source}h.prototype.content=e;var g=[];function v(t){var n=new Error(a.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=a.source,n.line=f,n.column=d,n.source=e,!a.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function x(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function E(){var e=m(),n=y(o);if(n){if(k(),!y(l))return v("property missing ':'");var r=y(i),a=e({type:"declaration",property:c(n[0].replace(t,s)),value:r?c(r[0].replace(t,s)):s});return y(u),a}}return b(),function(){var e,t=[];for(x(t);e=E();)!1!==e&&(t.push(e),x(t));return t}()}},8738:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},729:function(e){"use strict";var t={};function n(e,r,o){var l,i,u,a,s,c="";for("string"!==typeof r&&(o=r,r=n.defaultChars),"undefined"===typeof o&&(o=!0),s=function(e){var n,r,o=t[e];if(o)return o;for(o=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)o[e.charCodeAt(n)]=e[n];return o}(r),l=0,i=e.length;l<i;l++)if(u=e.charCodeAt(l),o&&37===u&&l+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(l+1,l+3)))c+=e.slice(l,l+3),l+=2;else if(u<128)c+=s[u];else if(u>=55296&&u<=57343){if(u>=55296&&u<=56319&&l+1<i&&(a=e.charCodeAt(l+1))>=56320&&a<=57343){c+=encodeURIComponent(e[l]+e[l+1]),l++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[l]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},8418:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);i=!0);}catch(a){u=!0,o=a}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.default=void 0;var l,i=(l=n(7294))&&l.__esModule?l:{default:l},u=n(6273),a=n(387),s=n(7190);var c={};function f(e,t,n,r){if(e&&u.isLocalURL(t)){e.prefetch(t,n,r).catch((function(e){0}));var o=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;c[t+"%"+n+(o?"%"+o:"")]=!0}}var d=function(e){var t,n=!1!==e.prefetch,r=a.useRouter(),l=i.default.useMemo((function(){var t=o(u.resolveHref(r,e.href,!0),2),n=t[0],l=t[1];return{href:n,as:e.as?u.resolveHref(r,e.as):l||n}}),[r,e.href,e.as]),d=l.href,p=l.as,m=e.children,h=e.replace,g=e.shallow,v=e.scroll,y=e.locale;"string"===typeof m&&(m=i.default.createElement("a",null,m));var b=(t=i.default.Children.only(m))&&"object"===typeof t&&t.ref,x=o(s.useIntersection({rootMargin:"200px"}),2),k=x[0],E=x[1],w=i.default.useCallback((function(e){k(e),b&&("function"===typeof b?b(e):"object"===typeof b&&(b.current=e))}),[b,k]);i.default.useEffect((function(){var e=E&&n&&u.isLocalURL(d),t="undefined"!==typeof y?y:r&&r.locale,o=c[d+"%"+p+(t?"%"+t:"")];e&&!o&&f(r,d,p,{locale:t})}),[p,d,E,y,n,r]);var C={ref:w,onClick:function(e){t.props&&"function"===typeof t.props.onClick&&t.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,l,i,a){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&u.isLocalURL(n))&&(e.preventDefault(),null==i&&r.indexOf("#")>=0&&(i=!1),t[o?"replace":"push"](n,r,{shallow:l,locale:a,scroll:i}))}(e,r,d,p,h,g,v,y)},onMouseEnter:function(e){t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),u.isLocalURL(d)&&f(r,d,p,{priority:!0})}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var S="undefined"!==typeof y?y:r&&r.locale,I=r&&r.isLocaleDomain&&u.getDomainLocale(p,S,r&&r.locales,r&&r.domainLocales);C.href=I||u.addBasePath(u.addLocale(p,S,r&&r.defaultLocale))}return i.default.cloneElement(t,C)};t.default=d},7190:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);i=!0);}catch(a){u=!0,o=a}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,n=e.rootMargin,r=e.disabled||!u,s=l.useRef(),c=o(l.useState(!1),2),f=c[0],d=c[1],p=o(l.useState(t?t.current:null),2),m=p[0],h=p[1],g=l.useCallback((function(e){s.current&&(s.current(),s.current=void 0),r||f||e&&e.tagName&&(s.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=a.get(t);if(n)return n;var r=new Map,o=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return a.set(t,n={id:t,observer:o,elements:r}),n}(n),o=r.id,l=r.observer,i=r.elements;return i.set(e,t),l.observe(e),function(){i.delete(e),l.unobserve(e),0===i.size&&(l.disconnect(),a.delete(o))}}(e,(function(e){return e&&d(e)}),{root:m,rootMargin:n}))}),[r,m,n,f]);return l.useEffect((function(){if(!u&&!f){var e=i.requestIdleCallback((function(){return d(!0)}));return function(){return i.cancelIdleCallback(e)}}}),[f]),l.useEffect((function(){t&&h(t.current)}),[t]),[g,f]};var l=n(7294),i=n(9311),u="undefined"!==typeof IntersectionObserver;var a=new Map},9008:function(e,t,n){e.exports=n(5443)},1664:function(e,t,n){e.exports=n(8418)},1163:function(e,t,n){e.exports=n(387)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1471:function(e,t){"use strict";var n=60103,r=60106,o=60107,l=60108,i=60114,u=60109,a=60110,s=60112,c=60113,f=60120,d=60115,p=60116,m=60121,h=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),l=b("react.strict_mode"),i=b("react.profiler"),u=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),c=b("react.suspense"),f=b("react.suspense_list"),d=b("react.memo"),p=b("react.lazy"),m=b("react.block"),h=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case l:case c:case f:return e;default:switch(e=e&&e.$$typeof){case a:case s:case p:case d:case u:return e;default:return t}}case r:return t}}}var k=u,E=n,w=s,C=o,S=p,I=d,P=r,R=i,T=l,A=c;t.ContextConsumer=a,t.ContextProvider=k,t.Element=E,t.ForwardRef=w,t.Fragment=C,t.Lazy=S,t.Memo=I,t.Portal=P,t.Profiler=R,t.StrictMode=T,t.Suspense=A,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return x(e)===a},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===s},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===p},t.isMemo=function(e){return x(e)===d},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===l},t.isSuspense=function(e){return x(e)===c},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===i||e===v||e===l||e===c||e===f||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===s||e.$$typeof===g||e.$$typeof===m||e[0]===h)},t.typeOf=x},2143:function(e,t,n){"use strict";e.exports=n(1471)},7848:function(e,t,n){var r=n(8139);e.exports=function(e,t){var n,o=null;if(!e||"string"!==typeof e)return o;for(var l,i,u=r(e),a="function"===typeof t,s=0,c=u.length;s<c;s++)l=(n=u[s]).property,i=n.value,a?t(l,i,n):i&&(o||(o={}),o[l]=i);return o}},6727:function(e,t,n){"use strict";n.d(t,{pJ:function(){return Ie}});var r=n(7294),o=n(3935);function l(){let e=[],t=[],n={enqueue(e){t.push(e)},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);n.add((()=>cancelAnimationFrame(t)))},nextFrame(...e){n.requestAnimationFrame((()=>{n.requestAnimationFrame(...e)}))},setTimeout(...e){let t=setTimeout(...e);n.add((()=>clearTimeout(t)))},add(t){e.push(t)},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function i(){let[e]=(0,r.useState)(l);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}var u="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,a={serverHandoffComplete:!1};function s(){let[e,t]=(0,r.useState)(a.serverHandoffComplete);return(0,r.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,r.useEffect)((()=>{!1===a.serverHandoffComplete&&(a.serverHandoffComplete=!0)}),[]),e}var c=0;function f(){return++c}function d(){let e=s(),[t,n]=(0,r.useState)(e?f:null);return u((()=>{null===t&&n(f())}),[t]),null!=t?""+t:void 0}function p(e){let t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e}),[e]),t}function m(e,t){let[n,o]=(0,r.useState)(e),l=p(e);return u((()=>o(l.current)),[l,o,...t]),n}function h(...e){let t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e}),[e]),(0,r.useCallback)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}),[t])}function g(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,g),r}function v({props:e,slot:t,defaultTag:n,features:r,visible:o=!0,name:l}){if(o)return y(e,t,n,l);let i=null!=r?r:0;if(2&i){let{static:r=!1,...o}=e;if(r)return y(o,t,n,l)}if(1&i){let{unmount:r=!0,...o}=e;return g(r?0:1,{0:()=>null,1:()=>y({...o,hidden:!0,style:{display:"none"}},t,n,l)})}return y(e,t,n,l)}function y(e,t={}
1,n,o){let{as:l=n,children:i,refName:u="ref",...a}=x(e,["unmount","static"]),s=void 0!==e.ref?{[u]:e.ref}:{},c="function"==typeof i?i(t):i;if(a.className&&"function"==typeof a.className&&(a.className=a.className(t)),l===r.Fragment&&Object.keys(a).length>0){if(!(0,r.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,r.cloneElement)(c,Object.assign({},function(e,t,n){let r=Object.assign({},e);for(let o of n)void 0!==e[o]&&void 0!==t[o]&&Object.assign(r,{[o](n){n.defaultPrevented||e[o](n),n.defaultPrevented||t[o](n)}});return r}(function(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}(x(a,["ref"])),c.props,["onClick"]),s))}return(0,r.createElement)(l,Object.assign({},x(a,["ref"]),l!==r.Fragment&&s),c)}function b(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function x(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function k(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,l=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o)&&!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o)&&!t.resolveDisabled(e)));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===l?r:l}function E(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}function w(e,t,n){let o=(0,r.useRef)(t);o.current=t,(0,r.useEffect)((()=>{function t(e){o.current.call(window,e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var C=(0,r.createContext)(null);function S(){return(0,r.useContext)(C)}function I({value:e,children:t}){return r.createElement(C.Provider,{value:e},t)}function P(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function R(e,t){let[n,o]=(0,r.useState)((()=>P(e)));return u((()=>{o(P(e))}),[e.type,e.as]),u((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")}),[n,t]),n}function T({container:e,accept:t,walk:n,enabled:o=!0}){let l=(0,r.useRef)(t),i=(0,r.useRef)(n);(0,r.useEffect)((()=>{l.current=t,i.current=n}),[t,n]),u((()=>{if(!e||!o)return;let t=l.current,n=i.current,r=Object.assign((e=>t(e)),{acceptNode:t}),u=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,r,!1);for(;u.nextNode();)n(u.currentNode)}),[e,o,l,i])}C.displayName="OpenClosedContext";var A={1:e=>e.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0:e=>e.disabled||0===e.comboboxState?e:{...e,comboboxState:0},2:(e,t)=>e.disabled===t.disabled?e:{...e,disabled:t.disabled},3(e,t){if(e.disabled||e.optionsRef.current&&!e.optionsPropsRef.current.static&&1===e.comboboxState)return e;let n=k(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return e.activeOptionIndex===n?e:{...e,activeOptionIndex:n}},4:(e,t)=>{var n;let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=Array.from(null==(n=e.optionsRef.current)?void 0:n.querySelectorAll('[id^="headlessui-combobox-option-"]')).reduce(((e,t,n)=>Object.assign(e,{[t.id]:n})),{}),l=[...e.options,{id:t.id,dataRef:t.dataRef}].sort(((e,t)=>o[e.id]-o[t.id]));return{...e,options:l,activeOptionIndex:null===r?null:l.indexOf(r)}},5:(e,t)=>{let n=e.options.slice(),r=null!==e.activeOptionIndex?n[e.activeOptionIndex]:null,o=n.findIndex((e=>e.id===t.id));return-1!==o&&n.splice(o,1),{...e,options:n,activeOptionIndex:o===e.activeOptionIndex||null===r?null:n.indexOf(r)}}},F=(0,r.createContext)(null);function O(e){let t=(0,r.useContext)(F);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}F.displayName="ComboboxContext";var D=(0,r.createContext)(null);function L(){let e=(0,r.useContext)(D);if(null===e){let e=new Error("ComboboxActions is missing a parent <Combobox /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,L),e}return e}function M(e,t){return g(t.type,A,e,t)}D.displayName="ComboboxActions";var B=r.Fragment,z=b((function(e,t){let{value:n,onChange:o,disabled:l=!1,...i}=e,a=(0,r.useRef)({value:n,onChange:o}),s=(0,r.useRef)({static:!1,hold:!1}),c=(0,r.useRef)({displayValue:void 0}),f=(0,r.useReducer)(M,{comboboxState:1,comboboxPropsRef:a,optionsPropsRef:s,inputPropsRef:c,labelRef:(0,r.createRef)(),inputRef:(0,r.createRef)(),buttonRef:(0,r.createRef)(),optionsRef:(0,r.createRef)(),disabled:l,options:[],activeOptionIndex:null}),[{comboboxState:d,options:p,activeOptionIndex:m,optionsRef:h,inputRef:y,buttonRef:b},x]=f;u((()=>{a.current.value=n}),[n,a]),u((()=>{a.current.onChange=o}),[o,a]),u((()=>x({type:2,disabled:l})),[l]),w("mousedown",(e=>{var t,n,r;let o=e.target;0===d&&((null==(t=b.current)?void 0:t.contains(o))||(null==(n=y.current)?void 0:n.contains(o))||(null==(r=h.current)?void 0:r.contains(o))||x({type:1}))}));let k=null===m?null:p[m].dataRef.current.value,E=(0,r.useMemo)((()=>({open:0===d,disabled:l,activeIndex:m,activeOption:k})),[d,l,p,m]),C=(0,r.useCallback)((()=>
1{if(!y.current||void 0===n)return;let e=c.current.displayValue;"function"==typeof e?y.current.value=e(n):"string"==typeof n&&(y.current.value=n)}),[n,y,c]),S=(0,r.useCallback)((e=>{let t=p.find((t=>t.id===e));if(!t)return;let{dataRef:n}=t;a.current.onChange(n.current.value),C()}),[p,a,y]),P=(0,r.useCallback)((()=>{if(null!==m){let{dataRef:e}=p[m];a.current.onChange(e.current.value),C()}}),[m,p,a,y]),R=(0,r.useMemo)((()=>({selectOption:S,selectActiveOption:P})),[S,P]);return u((()=>{1===d&&C()}),[C,d]),u(C,[C]),r.createElement(D.Provider,{value:R},r.createElement(F.Provider,{value:f},r.createElement(I,{value:g(d,{0:0,1:1})},v({props:null===t?i:{...i,ref:t},slot:E,defaultTag:B,name:"Combobox"}))))})),j=b((function(e,t){var n,o;let{value:l,onChange:a,displayValue:s,...c}=e,[f,y]=O("Combobox.Input"),b=L(),x=h(f.inputRef,t),k=f.inputPropsRef,E=`headlessui-combobox-input-${d()}`,w=i(),C=p(a);u((()=>{k.current.displayValue=s}),[s,k]);let S=(0,r.useCallback)((e=>{switch(e.key){case"Enter":e.preventDefault(),e.stopPropagation(),b.selectActiveOption(),y({type:1});break;case"ArrowDown":return e.preventDefault(),e.stopPropagation(),g(f.comboboxState,{0:()=>y({type:3,focus:2}),1:()=>{y({type:0}),w.nextFrame((()=>{f.comboboxPropsRef.current.value||y({type:3,focus:0})}))}});case"ArrowUp":return e.preventDefault(),e.stopPropagation(),g(f.comboboxState,{0:()=>y({type:3,focus:1}),1:()=>{y({type:0}),w.nextFrame((()=>{f.comboboxPropsRef.current.value||y({type:3,focus:3})}))}});case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),y({type:3,focus:0});case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),y({type:3,focus:3});case"Escape":return e.preventDefault(),f.optionsRef.current&&!f.optionsPropsRef.current.static&&e.stopPropagation(),y({type:1});case"Tab":b.selectActiveOption(),y({type:1})}}),[w,y,f,b]),I=(0,r.useCallback)((e=>{var t;y({type:0}),null==(t=C.current)||t.call(C,e)}),[y,C]),P=m((()=>{if(f.labelRef.current)return[f.labelRef.current.id].join(" ")}),[f.labelRef.current]),R=(0,r.useMemo)((()=>({open:0===f.comboboxState,disabled:f.disabled})),[f]);return v({props:{...c,...{ref:x,id:E,role:"combobox",type:"text","aria-controls":null==(n=f.optionsRef.current)?void 0:n.id,"aria-expanded":f.disabled?void 0:0===f.comboboxState,"aria-activedescendant":null===f.activeOptionIndex||null==(o=f.options[f.activeOptionIndex])?void 0:o.id,"aria-labelledby":P,disabled:f.disabled,onKeyDown:S,onChange:I}},slot:R,defaultTag:"input",name:"Combobox.Input"})})),N=b((function(e,t){var n;let[o,l]=O("Combobox.Button"),u=L(),a=h(o.buttonRef,t),s=`headlessui-combobox-button-${d()}`,c=i(),f=(0,r.useCallback)((e=>{switch(e.key){case"ArrowDown":return e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&(l({type:0}),c.nextFrame((()=>{o.comboboxPropsRef.current.value||l({type:3,focus:0})}))),c.nextFrame((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}
1));case"ArrowUp":return e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&(l({type:0}),c.nextFrame((()=>{o.comboboxPropsRef.current.value||l({type:3,focus:3})}))),c.nextFrame((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case"Escape":return e.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&e.stopPropagation(),l({type:1}),c.nextFrame((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}))}}),[c,l,o,u]),p=(0,r.useCallback)((e=>{if(E(e.currentTarget))return e.preventDefault();0===o.comboboxState?l({type:1}):(e.preventDefault(),l({type:0})),c.nextFrame((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}))}),[l,c,o]),g=m((()=>{if(o.labelRef.current)return[o.labelRef.current.id,s].join(" ")}),[o.labelRef.current,s]),y=(0,r.useMemo)((()=>({open:0===o.comboboxState,disabled:o.disabled})),[o]);return v({props:{...e,...{ref:a,id:s,type:R(e,o.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=o.optionsRef.current)?void 0:n.id,"aria-expanded":o.disabled?void 0:0===o.comboboxState,"aria-labelledby":g,disabled:o.disabled,onClick:p,onKeyDown:f}},slot:y,defaultTag:"button",name:"Combobox.Button"})}));var _=b((function(e,t){var n;let{hold:o=!1,...l}=e,[i]=O("Combobox.Options"),{optionsPropsRef:a}=i,s=h(i.optionsRef,t),c=`headlessui-combobox-options-${d()}`,f=S(),p=null!==f?0===f:0===i.comboboxState;u((()=>{var t;a.current.static=null!=(t=e.static)&&t}),[a,e.static]),u((()=>{a.current.hold=o}),[o,a]),T({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let g=m((()=>{var e,t,n;return null!=(n=null==(e=i.labelRef.current)?void 0:e.id)?n:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),y=(0,r.useMemo)((()=>({open:0===i.comboboxState})),[i]);return v({props:{...l,...{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":g,role:"listbox",id:c,ref:s}},slot:y,defaultTag:"ul",features:3,visible:p,name:"Combobox.Options"})}));Object.assign(z,{Input:j,Button:N,Label:function(e){let[t]=O("Combobox.Label"),n=`headlessui-combobox-label-${d()}`,o=(0,r.useCallback)((()=>{var e;return null==(e=t.inputRef.current)?void 0:e.focus({preventScroll:!0})}),[t.inputRef]),l=(0,r.useMemo)((()=>({open:0===t.comboboxState,disabled:t.disabled})),[t]);return v({props:{...e,...{ref:t.labelRef,id:n,onClick:o}},slot:l,defaultTag:"label",name:"Combobox.Label"})},Options:_,Option:function(e){let{disabled:t=!1,value:n,...o}=e,[i,a]=O("Combobox.Option"),s=L(),c=`headlessui-combobox-option-${d()}`,f=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===c,p=i.comboboxPropsRef.current.value===n,m=(0,r.useRef)({disabled:t,value:n});u((()=>{m.current.disabled=t}),[m,t]),u((()=>{m.current.value=n}),[m,n]),u((()=>{var e,t;m.current.textValue=null==(t=null==(e=document.getElementById(c))?void 0:e.textContent)?void 0:t.toLowerCase()}),[m,c]);let h=(0,r.useCallback)((()=>s.selectOption(c)),[s,c]);u((()=>(a({type:4,id:c,dataRef:m}),()=>a({type:5,id:c}))),[m,c]),u((()=>{0===i.comboboxState&&(!p||a({type:3,focus:4,id:c}))}),[i.comboboxState,p,c]),u((()=>{if(0!==i.comboboxState||!f)return;let e=l();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=document.getElementById(c))?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[c,f,i.comboboxState,i.activeOptionIndex]);let g=(0,r.useCallback)((e=>{if(t)return e.preventDefault();h(),a({type:1}),l().nextFrame((()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})}
1))}),[a,i.inputRef,t,h]),y=(0,r.useCallback)((()=>{if(t)return a({type:3,focus:5});a({type:3,focus:4,id:c})}),[t,c,a]),b=(0,r.useCallback)((()=>{t||f||a({type:3,focus:4,id:c})}),[t,f,c,a]),x=(0,r.useCallback)((()=>{t||!f||i.optionsPropsRef.current.hold||a({type:3,focus:5})}),[t,f,a,i.comboboxState,i.comboboxPropsRef]),k=(0,r.useMemo)((()=>({active:f,selected:p,disabled:t})),[f,p,t]);return v({props:{...o,id:c,role:"option",tabIndex:!0===t?void 0:-1,"aria-disabled":!0===t||void 0,"aria-selected":!0===p||void 0,disabled:void 0,onClick:g,onFocus:y,onPointerMove:b,onMouseMove:b,onPointerLeave:x,onMouseLeave:x},slot:k,defaultTag:"li",name:"Combobox.Option"})}});var U=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");function H(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(U))}function $(e,t=0){return e!==document.body&&g(t,{0:()=>e.matches(U),1(){let t=e;for(;null!==t;){if(t.matches(U))return!0;t=t.parentElement}return!1}})}function V(e){null==e||e.focus({preventScroll:!0})}function q(e,t){let n,r=Array.isArray(e)?e.slice().sort(((e,t)=>{let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})):H(e),o=document.activeElement,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,r.indexOf(o))-1;if(4&t)return Math.max(0,r.indexOf(o))+1;if(8&t)return r.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},a=0,s=r.length;do{if(a>=s||a+s<=0)return 0;let e=i+a;if(16&t)e=(e+s)%s;else{if(e<0)return 3;if(e>=s)return 1}n=r[e],null==n||n.focus(u),a+=l}while(n!==document.activeElement);return n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}function K(){let e=(0,r.useRef)(!1);return(0,r.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Q(e,t=30,{initialFocus:n,containers:o}={}){let l=(0,r.useRef)("undefined"!=typeof window?document.activeElement:null),i=(0,r.useRef)(null),u=K(),a=Boolean(16&t),s=Boolean(2&t);(0,r.useEffect)((()=>{!a||(l.current=document.activeElement)}),[a]),(0,r.useEffect)((()=>{if(a)return()=>{V(l.current),l.current=null}}),[a]),(0,r.useEffect)((()=>{if(!s||!e.current)return;let t=document.activeElement;if(null==n?void 0:n.current){if((null==n?void 0:n.current)===t)return void(i.current=t)}else if(e.current.contains(t))return void(i.current=t);(null==n?void 0:n.current)?V(n.current):0===q(e.current,1)&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=document.activeElement}),[e,n,s]),w("keydown",(n=>{!(4&t)||!e.current||"Tab"===n.key&&(n.preventDefault(),2===q(e.current,16|(n.shiftKey?2:4))&&(i.current=document.activeElement))})),w("focus",(n=>{if(!(8&t))return;let r=new Set(null==o?void 0:o.current);if(r.add(e),!r.size)return;let l=i.current;if(!l||!u.current)return;let a=n.target;a&&a instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null==(n=r.current)?void 0:n.contains(t))return!0;return!1}(r,a)?(i.current=a,V(a)):(n.preventDefault(),n.stopPropagation(),V(l)):V(i.current)}),!0)}var W=new Set,G=new Map;function Y(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function X(e){let t=G.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var J=(0,r.createContext)(!1);function Z(e){return r.createElement(J.Provider,{value:e.force},e.children)}function ee(){let e=(0,r.useContext)(J),t=(0,r.useContext)(oe),[n,o]=(0,r.useState)((()=>{if(!e&&null!==t||"undefined"==typeof window)return null;let n=document.getElementById("headlessui-portal-root");if(n)return n;let r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)}));return(0,r.useEffect)((()=>{null!==n&&(document.body.contains(n)||document.body.appendChild(n))}),[n]),(0,r.useEffect)((()=>{e||null!==t&&o(t.current)}),[t,o,e]),n}var te=r.Fragment;function ne(e){let t=e,n=ee(),[l]=(0,r.useState)((()=>"undefined"==typeof window?null:document.createElement("div"))),i=s();return u((()=>
1{if(n&&l)return n.appendChild(l),()=>{var e;!n||!l||(n.removeChild(l),n.childNodes.length<=0&&(null==(e=n.parentElement)||e.removeChild(n)))}}),[n,l]),i&&n&&l?(0,o.createPortal)(v({props:t,defaultTag:te,name:"Portal"}),l):null}var re=r.Fragment,oe=(0,r.createContext)(null);ne.Group=function(e){let{target:t,...n}=e;return r.createElement(oe.Provider,{value:t},v({props:n,defaultTag:re,name:"Popover.Group"}))};var le=(0,r.createContext)(null);function ie(){let e=(0,r.useContext)(le);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ie),e}return e}function ue(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=(0,r.useCallback)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n})))),[]),o=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return r.createElement(le.Provider,{value:o},e.children)}),[t])]}function ae(e){let t=ie(),n=`headlessui-description-${d()}`;return u((()=>t.register(n)),[n,t.register]),v({props:{...e,...{...t.props,id:n}},slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}var se=(0,r.createContext)((()=>{}));function ce({children:e,onUpdate:t,type:n,element:o}){let l=(0,r.useContext)(se),i=(0,r.useCallback)(((...e)=>{null==t||t(...e),l(...e)}),[l,t]);return u((()=>(i(0,n,o),()=>i(1,n,o))),[i,n,o]),r.createElement(se.Provider,{value:i},e)}se.displayName="StackContext";var fe={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},de=(0,r.createContext)(null);function pe(e){let t=(0,r.useContext)(de);if(null===t){let t=new Error(`<${e} /> is missing a parent <${ve.displayName} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,pe),t}return t}function me(e,t){return g(t.type,fe,e,t)}de.displayName="DialogContext";var he=b((function(e,t){let{open:n,onClose:o,initialFocus:l,...i}=e,[a,c]=(0,r.useState)(0),f=S();void 0===n&&null!==f&&(n=g(f,{0:!0,1:!1}));let p=(0,r.useRef)(new Set),m=(0,r.useRef)(null),y=h(m,t),b=e.hasOwnProperty("open")||null!==f,x=e.hasOwnProperty("onClose");if(!b&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!b)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof o)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let k=n?0:1,E=null!==f?0===f:0===k,[C,I]=(0,r.useReducer)(me,{titleId:null,descriptionId:null}),P=(0,r.useCallback)((()=>o(!1)),[o]),R=(0,r.useCallback)((e=>I({type:0,id:e})),[I]),T=s()&&0===k,A=a>1,F=null!==(0,r.useContext)(de);Q(m,T?g(A?"parent":"leaf",{parent:16,leaf:30}):1,{initialFocus:l,containers:p}),function(e,t=!0){u((()=>{if(!t||!e.current)return;let n=e.current;W.add(n);for(let e of G.keys())e.contains(n)&&(X(e),G.delete(e));return document.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of W)if(e.contains(t))return;1===W.size&&(G.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Y(e))}})),()=>{if(W.delete(n),W.size>0)document.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!G.has(e)){for(let t of W)if(e.contains(t))return;G.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Y(e)}}));else for(let e of G.keys())X(e),G.delete(e)}}),[t])}(m,!!A&&T),w("mousedown",(e=>{var t;let n=e.target;0===k&&(A||(null==(t=m.current)?void 0:t.contains(n))||P())})),w("keydown",(e=>{"Escape"===e.key&&0===k&&(A||(e.preventDefault(),e.stopPropagation(),P()))})),(0,r.useEffect)((()=>{if(0!==k||F)return;let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${n}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}),[k,F]),(0,r.useEffect)((()=>
1{if(0!==k||!m.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&P()}));return e.observe(m.current),()=>e.disconnect()}),[k,m,P]);let[O,D]=ue(),L=`headlessui-dialog-${d()}`,M=(0,r.useMemo)((()=>[{dialogState:k,close:P,setTitleId:R},C]),[k,C,P,R]),B=(0,r.useMemo)((()=>({open:0===k})),[k]),z={ref:y,id:L,role:"dialog","aria-modal":0===k||void 0,"aria-labelledby":C.titleId,"aria-describedby":O,onClick(e){e.stopPropagation()}},j=i;return r.createElement(ce,{type:"Dialog",element:m,onUpdate:(0,r.useCallback)(((e,t,n)=>{"Dialog"===t&&g(e,{0(){p.current.add(n),c((e=>e+1))},1(){p.current.add(n),c((e=>e-1))}})}),[])},r.createElement(Z,{force:!0},r.createElement(ne,null,r.createElement(de.Provider,{value:M},r.createElement(ne.Group,{target:m},r.createElement(Z,{force:!1},r.createElement(D,{slot:B,name:"Dialog.Description"},v({props:{...j,...z},slot:B,defaultTag:"div",features:3,visible:E,name:"Dialog"}))))))))})),ge=b((function(e,t){let[{dialogState:n,close:o}]=pe("Dialog.Overlay");return v({props:{...e,ref:h(t),id:`headlessui-dialog-overlay-${d()}`,"aria-hidden":!0,onClick:(0,r.useCallback)((e=>{if(e.target===e.currentTarget){if(E(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),o()}}),[o])},slot:(0,r.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})}));var ve=Object.assign(he,{Overlay:ge,Title:function(e){let[{dialogState:t,setTitleId:n}]=pe("Dialog.Title"),o=`headlessui-dialog-title-${d()}`;(0,r.useEffect)((()=>(n(o),()=>n(null))),[o,n]);let l=(0,r.useMemo)((()=>({open:0===t})),[t]);return v({props:{...e,id:o},slot:l,defaultTag:"h2",name:"Dialog.Title"})},Description:ae}),ye={0:e=>({...e,disclosureState:g(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},be=(0,r.createContext)(null);function xe(e){let t=(0,r.useContext)(be);if(null===t){let t=new Error(`<${e} /> is missing a parent <${Ie.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,xe),t}return t}be.displayName="DisclosureContext";var ke=(0,r.createContext)(null);function Ee(e){let t=(0,r.useContext)(ke);if(null===t){let t=new Error(`<${e} /> is missing a parent <${Ie.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ee),t}return t}ke.displayName="DisclosureAPIContext";var we=(0,r.createContext)(null);function Ce(e,t){return g(t.type,ye,e,t)}we.displayName="DisclosurePanelContext";var Se=r.Fragment;function Ie(e){let{defaultOpen:t=!1,...n}=e,o=`headlessui-disclosure-button-${d()}`,l=`headlessui-disclosure-panel-${d()}`,i=(0,r.useReducer)(Ce,{disclosureState:t?0:1,linkedPanel:!1,buttonId:o,panelId:l}),[{disclosureState:u},a]=i;(0,r.useEffect)((()=>a({type:2,buttonId:o})),[o,a]),(0,r.useEffect)((()=>a({type:3,panelId:l})),[l,a]);let s=(0,r.useCallback)((e=>{a({type:1});let t=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:document.getElementById(o):document.getElementById(o);null==t||t.focus()}),[a,o]),c=(0,r.useMemo)((()=>({close:s})),[s]),f=(0,r.useMemo)((()=>({open:0===u,close:s})),[u,s]);return r.createElement(be.Provider,{value:i},r.createElement(ke.Provider,{value:c},r.createElement(I,{value:g(u,{0:0,1:1})},v({props:n,slot:f,defaultTag:Se,name:"Disclosure"}))))}var Pe=b((function(e,t){let[n,o]=xe("Disclosure.Button"),l=(0,r.useRef)(null),i=h(l,t),u=(0,r.useContext)(we),a=null!==u&&u===n.panelId,s=(0,r.useCallback)((e=>{var t;if(a){if(1===n.disclosureState)return;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),o({type:0}),null==(t=document.getElementById(n.buttonId))||t.focus()}}else switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),o({type:0})}}),[o,a,n.disclosureState,n.buttonId]),c=(0,r.useCallback)((e=>{switch(e.key){case" ":e.preventDefault()}}),[]),f=(0,r.useCallback)((t=>{var r;E(t.currentTarget)||e.disabled||(a?(o({type:0}),null==(r=document.getElementById(n.buttonId))||r.focus()):o({type:0}))}),[o,e.disabled,n.buttonId,a]),d=(0,r.useMemo)((()=>({open:0===n.disclosureState})),[n]),p=R(e,l);return v({props:{...e,...a?{ref:i,type:p,onKeyDown:s,onClick:f}:{ref:i,id:n.buttonId,type:p,"aria-expanded":e.disabled?void 0:0===n.disclosureState,"aria-controls":n.linkedPanel?n.panelId:void 0,onKeyDown:s,onKeyUp:c,onClick:f}},slot:d,defaultTag:"button",name:"Disclosure.Button"})})),Re=b((function(e,t){let[n,o]=xe("Disclosure.Panel"),{close:l}=Ee("Disclosure.Panel"),i=h(t,(()=>{n.linkedPanel||o({type:4})})),u=S(),a=null!==u?0===u:0===n.disclosureState;(0,r.useEffect)((()=>()=>o({type:5})),[o]),(0,r.useEffect)((()=>{var t;
11===n.disclosureState&&(null==(t=e.unmount)||t)&&o({type:5})}),[n.disclosureState,e.unmount,o]);let s=(0,r.useMemo)((()=>({open:0===n.disclosureState,close:l})),[n,l]),c={ref:i,id:n.panelId},f=e;return r.createElement(we.Provider,{value:n.panelId},v({props:{...f,...c},slot:s,defaultTag:"div",features:3,visible:a,name:"Disclosure.Panel"}))}));Ie.Button=Pe,Ie.Panel=Re;var Te={1:e=>e.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0:e=>e.disabled||0===e.listboxState?e:{...e,listboxState:0},2:(e,t)=>e.disabled===t.disabled?e:{...e,disabled:t.disabled},3:(e,t)=>e.orientation===t.orientation?e:{...e,orientation:t.orientation},4(e,t){if(e.disabled||1===e.listboxState)return e;let n=k(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return""===e.searchQuery&&e.activeOptionIndex===n?e:{...e,searchQuery:"",activeOptionIndex:n}},5:(e,t)=>{if(e.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),l=o?e.options.indexOf(o):-1;return-1===l||l===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:l}},6:e=>e.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},7:(e,t)=>{var n;let r=Array.from(null==(n=e.optionsRef.current)?void 0:n.querySelectorAll('[id^="headlessui-listbox-option-"]')).reduce(((e,t,n)=>Object.assign(e,{[t.id]:n})),{}),o=[...e.options,{id:t.id,dataRef:t.dataRef}].sort(((e,t)=>r[e.id]-r[t.id]));return{...e,options:o}},8:(e,t)=>{let n=e.options.slice(),r=null!==e.activeOptionIndex?n[e.activeOptionIndex]:null,o=n.findIndex((e=>e.id===t.id));return-1!==o&&n.splice(o,1),{...e,options:n,activeOptionIndex:o===e.activeOptionIndex||null===r?null:n.indexOf(r)}}},Ae=(0,r.createContext)(null);function Fe(e){let t=(0,r.useContext)(Ae);if(null===t){let t=new Error(`<${e} /> is missing a parent <${Le.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Fe),t}return t}function Oe(e,t){return g(t.type,Te,e,t)}Ae.displayName="ListboxContext";var De=r.Fragment;function Le(e){let{value:t,onChange:n,disabled:o=!1,horizontal:l=!1,...i}=e,a=l?"horizontal":"vertical",s=(0,r.useReducer)(Oe,{listboxState:1,propsRef:{current:{value:t,onChange:n}},labelRef:(0,r.createRef)(),buttonRef:(0,r.createRef)(),optionsRef:(0,r.createRef)(),disabled:o,orientation:a,options:[],searchQuery:"",activeOptionIndex:null}),[{listboxState:c,propsRef:f,optionsRef:d,buttonRef:p},m]=s;u((()=>{f.current.value=t}),[t,f]),u((()=>{f.current.onChange=n}),[n,f]),u((()=>m({type:2,disabled:o})),[o]),u((()=>m({type:3,orientation:a})),[a]),w("mousedown",(e=>{var t,n,r;let o=e.target;0===c&&((null==(t=p.current)?void 0:t.contains(o))||(null==(n=d.current)?void 0:n.contains(o))||(m({type:1}),$(o,1)||(e.preventDefault(),null==(r=p.current)||r.focus())))}));let h=(0,r.useMemo)((()=>({open:0===c,disabled:o})),[c,o]);return r.createElement(Ae.Provider,{value:s},r.createElement(I,{value:g(c,{0:0,1:1})},v({props:i,slot:h,defaultTag:De,name:"Listbox"})))}var Me=b((function(e,t){var n;let[o,l]=Fe("Listbox.Button"),u=h(o.buttonRef,t),a=`headlessui-listbox-button-${d()}`,s=i(),c=(0,r.useCallback)((e=>{switch(e.key){case" ":case"Enter":case"ArrowDown":e.preventDefault(),l({type:0}),s.nextFrame((()=>{o.propsRef.current.value||l({type:4,focus:0})}));break;case"ArrowUp":e.preventDefault(),l({type:0}),s.nextFrame((()=>{o.propsRef.current.value||l({type:4,focus:3})}))}}),[l,o,s]),f=(0,r.useCallback)((e=>{switch(e.key){case" ":e.preventDefault()}}),[]),p=(0,r.useCallback)((e=>{if(E(e.currentTarget))return e.preventDefault();0===o.listboxState?(l({type:1}),s.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1))):(e.preventDefault(),l({type:0}))}),[l,s,o]),g=m((()=>{if(o.labelRef.current)return[o.labelRef.current.id,a].join(" ")}),[o.labelRef.current,a]),y=(0,r.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled})),[o]);return v({props:{...e,...{ref:u,id:a,type:R(e,o.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=o.optionsRef.current)?void 0:n.id,"aria-expanded":o.disabled?void 0:0===o.listboxState,"aria-labelledby":g,disabled:o.disabled,onKeyDown:c,onKeyUp:f,onClick:p}},slot:y,defaultTag:"button",name:"Listbox.Button"})}));var Be=b((function(e,t){var n;let[o,a]=Fe("Listbox.Options"),s=h(o.optionsRef,t),c=`headlessui-listbox-options-${d()}`,f=i(),p=i(),y=S(),b=null!==y?0===y:0===o.listboxState;u((()=>{let e=o.optionsRef.current;!e||0===o.listboxState&&e!==document.activeElement&&e.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let x=(0,r.useCallback)((e=>{switch(p.dispose(),e.key){case" ":if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),a({type:5,value:e.key});case"Enter":if(e.preventDefault(),e.stopPropagation(),a({type:1}),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];o.propsRef.current.onChange(e.current.value)}l().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1));break;case g(o.orientation,{vertical:"ArrowDown",horizontal:"ArrowRight"}):return e.preventDefault(),e.stopPropagation(),a({type:4,focus:2});case g(o.orientation,{vertical:"ArrowUp",horizontal:"ArrowLeft"}):return e.preventDefault(),e.stopPropagation(),a({type:4,focus:1});case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),a({type:4,focus:0});case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),a({type:4,focus:3});case"Escape":return e.preventDefault(),e.stopPropagation(),a({type:1}),f.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case"Tab":e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(a({type:5,value:e.key}),p.setTimeout((()=>a({type:6})),350))}}),[f,a,p,o]),k=m((()=>{var e,t,n;return null!=(n=null==(e=o.labelRef.current)?void 0:e.id)?n:null==(t=o.buttonRef.current)?void 0:t.id}),[o.labelRef.current,o.buttonRef.current]),E=(0,r.useMemo)((()=>({open:0===o.listboxState})),[o]);return v({props:{...e,...{"aria-activedescendant":null===o.activeOptionIndex||null==(n=o.options[o.activeOptionIndex])?void 0:n.id,"aria-labelledby":k,"aria-orientation":o.orientation,id:c,onKeyDown:x,role:"listbox",tabIndex:0,ref:s}},slot:E,defaultTag:"ul",features:3,visible:b,name:"Listbox.Options"})}));Le.Button=Me,Le.Label=function(e){let[t]=Fe("Listbox.Label"),n=`headlessui-listbox-label-${d()}`,o=(0,r.useCallback)((()=>{var e;return null==(e=t.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),[t.buttonRef]),l=(0,r.useMemo)((()=>({open:0===t.listboxState,disabled:t.disabled})),[t]);return v({props:{...e,...{ref:t.labelRef,id:n,onClick:o}},slot:l,defaultTag:"label",name:"Listbox.Label"})},Le.Options=Be,Le.Option=function(e){let{disabled:t=!1,value:n,...o}=e,[i,a]=Fe("Listbox.Option"),s=`headlessui-listbox-option-${d()}`,c=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===s,f=i.propsRef.current.value===n,p=(0,r.useRef)({disabled:t,value:n});u((()=>{p.current.disabled=t}),[p,t]),u((()=>{p.current.value=n}),[p,n]),u((()=>{var e,t;p.current.textValue=null==(t=null==(e=document.getElementById(s))?void 0:e.textContent)?void 0:t.toLowerCase()}),[p,s]);let m=(0,r.useCallback)((()=>i.propsRef.current.onChange(n)),[i.propsRef,n]);u((()=>(a({type:7,id:s,dataRef:p}),()=>a({type:8,id:s}))),[p,s]),u((()=>{var e,t;0===i.listboxState&&(!f||(a({type:4,focus:4,id:s}),null==(t=null==(e=document.getElementById(s))?void 0:e.focus)||t.call(e)))}),[i.listboxState]),u((()=>{if(0!==i.listboxState||!c)return;let e=l();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=document.getElementById(s))?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[s,c,i.listboxState,i.activeOptionIndex]);let h=(0,r.useCallback)((e=>{if(t)return e.preventDefault();m(),a({type:1}),l().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1))}),[a,i.buttonRef,t,m]),g=(0,r.useCallback)((()=>{if(t)return a({type:4,focus:5});a({type:4,focus:4,id:s})}),[t,s,a]),y=(0,r.useCallback)((()=>{t||c||a({type:4,focus:4,id:s})}),[t,c,s,a]),b=(0,r.useCallback)((()=>{t||!c||a({type:4,focus:5})}),[t,c,a]),x=(0,r.useMemo)((()=>({active:c,selected:f,disabled:t})),[c,f,t]);return v({props:{...o,id:s,role:"option",tabIndex:!0===t?void 0:-1,"aria-disabled":!0===t||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:h,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},slot:x,defaultTag:"li",name:"Listbox.Option"})};var ze={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{let n=k(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return""===e.searchQuery&&e.activeItemIndex===n?e:{...e,searchQuery:"",activeItemIndex:n}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),l=o?e.items.indexOf(o):-1;return-1===l||l===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:l}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{var n;let r=Array.from(null==(n=e.itemsRef.current)?void 0:n.querySelectorAll('[id^="headlessui-menu-item-"]')).reduce(((e,t,n)=>Object.assign(e,{[t.id]:n})),{}),o=[...e.items,{id:t.id,dataRef:t.dataRef}].sort(((e,t)=>r[e.id]-r[t.id]));return{...e,items:o}},6:(e,t)=>{let n=e.items.slice(),r=null!==e.activeItemIndex?n[e.activeItemIndex]:null,o=n.findIndex((e=>e.id===t.id));return-1!==o&&n.splice(o,1),{...e,items:n,activeItemIndex:o===e.activeItemIndex||null===r?null:n.indexOf(r)}}},je=(0,r.createContext)(null);function Ne(e){let t=(0,r.useContext)(je);if(null===t){let t=new Error(`<${e} /> is missing a parent <${He.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ne),t}return t}function _e(e,t){return g(t.type,ze,e,t)}je.displayName="MenuContext";var Ue=r.Fragment;function He(e){let t=(0,r.useReducer)(_e,{menuState:1,buttonRef:(0,r.createRef)(),itemsRef:(0,r.createRef)(),items:[],searchQuery:"",activeItemIndex:null}),[{menuState:n,itemsRef:o,buttonRef:l},i]=t;w("mousedown",(e=>{var t,r,u;let a=e.target;0===n&&((null==(t=l.current)?void 0:t.contains(a))||(null==(r=o.current)?void 0:r.contains(a))||(i({type:1}),$(a,1)||(e.preventDefault(),null==(u=l.current)||u.focus())))}));let u=(0,r.useMemo)((()=>({open:0===n})),[n]);return r.createElement(je.Provider,{value:t},r.createElement(I,{value:g(n,{0:0,1:1})},v({props:e,slot:u,defaultTag:Ue,name:"Menu"})))}var $e=b((function(e,t){var n;let[o,l]=Ne("Menu.Button"),u=h(o.buttonRef,t),a=`headlessui-menu-button-${d()}`,s=i(),c=(0,r.useCallback)((e=>{switch(e.key){case" ":case"Enter":case"ArrowDown":e.preventDefault(),e.stopPropagation(),l({type:0}),s.nextFrame((()=>l({type:2,focus:0})));break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l({type:0}),s.nextFrame((()=>l({type:2,focus:3})))}}),[l,s]),f=(0,r.useCallback)((e=>{switch(e.key){case" ":e.preventDefault()}}),[]),p=(0,r.useCallback)((t=>{if(E(t.currentTarget))return t.preventDefault();e.disabled||(0===o.menuState?(l({type:1}),s.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1))):(t.preventDefault(),t.stopPropagation(),l({type:0})))}),[l,s,o,e.disabled]),m=(0,r.useMemo)((()=>({open:0===o.menuState})),[o]);return v({props:{...e,...{ref:u,id:a,type:R(e,o.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=o.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===o.menuState,onKeyDown:c,onKeyUp:f,onClick:p}},slot:m,defaultTag:"button",name:"Menu.Button"})})),Ve=b((function(e,t){var n,o;let[u,a]=Ne("Menu.Items"),s=h(u.itemsRef,t),c=`headlessui-menu-items-${d()}`,f=i(),p=S(),m=null!==p?0===p:0===u.menuState;(0,r.useEffect)((()=>{let e=u.itemsRef.current;!e||0===u.menuState&&e!==document.activeElement&&e.focus({preventScroll:!0})}),[u.menuState,u.itemsRef]),T({container:u.itemsRef.current,enabled:0===u.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let g=(0,r.useCallback)((e=>{var t;switch(f.dispose(),e.key){case" ":if(""!==u.searchQuery)return e.preventDefault(),e.stopPropagation(),a({type:3,value:e.key});case"Enter":if(e.preventDefault(),e.stopPropagation(),a({type:1}),null!==u.activeItemIndex){let{id:e}=u.items[u.activeItemIndex];null==(t=document.getElementById(e))||t.click()}l().nextFrame((()=>{var e;return null==(e=u.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1));break;case"ArrowDown":return e.preventDefault(),e.stopPropagation(),a({type:2,focus:2});case"ArrowUp":return e.preventDefault(),e.stopPropagation(),a({type:2,focus:1});case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),a({type:2,focus:0});case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),a({type:2,focus:3});case"Escape":e.preventDefault(),e.stopPropagation(),a({type:1}),l().nextFrame((()=>{var e;return null==(e=u.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case"Tab":e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(a({type:3,value:e.key}),f.setTimeout((()=>a({type:4})),350))}}),[a,f,u]),y=(0,r.useCallback)((e=>{switch(e.key){case" ":e.preventDefault()}}),[]),b=(0,r.useMemo)((()=>({open:0===u.menuState})),[u]);return v({props:{...e,...{"aria-activedescendant":null===u.activeItemIndex||null==(n=u.items[u.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(o=u.buttonRef.current)?void 0:o.id,id:c,onKeyDown:g,onKeyUp:y,role:"menu",tabIndex:0,ref:s}},slot:b,defaultTag:"div",features:3,visible:m,name:"Menu.Items"})})),qe=r.Fragment;He.Button=$e,He.Items=Ve,He.Item=function(e){let{disabled:t=!1,onClick:n,...o}=e,[i,a]=Ne("Menu.Item"),s=`headlessui-menu-item-${d()}`,c=null!==i.activeItemIndex&&i.items[i.activeItemIndex].id===s;u((()=>{if(0!==i.menuState||!c)return;let e=l();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=document.getElementById(s))?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[s,c,i.menuState,i.activeItemIndex]);let f=(0,r.useRef)({disabled:t});u((()=>{f.current.disabled=t}),[f,t]),u((()=>{var e,t;f.current.textValue=null==(t=null==(e=document.getElementById(s))?void 0:e.textContent)?void 0:t.toLowerCase()}),[f,s]),u((()=>(a({type:5,id:s,dataRef:f}),()=>a({type:6,id:s}))),[f,s]);let p=(0,r.useCallback)((e=>t?e.preventDefault():(a({type:1}),l().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)),n?n(e):void 0)),[a,i.buttonRef,t,n]),m=(0,r.useCallback)((()=>{if(t)return a({type:2,focus:5});a({type:2,focus:4,id:s})}),[t,s,a]),h=(0,r.useCallback)((()=>{t||c||a({type:2,focus:4,id:s})}),[t,c,s,a]),g=(0,r.useCallback)((()=>{t||!c||a({type:2,focus:5})}),[t,c,a]),y=(0,r.useMemo)((()=>({active:c,disabled:t})),[c,t]);return v({props:{...o,id:s,role:"menuitem",tabIndex:!0===t?void 0:-1,"aria-disabled":!0===t||void 0,disabled:void 0,onClick:p,onFocus:m,onPointerMove:h,onMouseMove:h,onPointerLeave:g,onMouseLeave:g},slot:y,defaultTag:qe,name:"Menu.Item"})};var Ke={0:e=>({...e,popoverState:g(e.popoverState,{0:1,1:0})}),1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},Qe=(0,r.createContext)(null);function We(e){let t=(0,r.useContext)(Qe);if(null===t){let t=new Error(`<${e} /> is missing a parent <${tt.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,We),t}return t}Qe.displayName="PopoverContext";var Ge=(0,r.createContext)(null);function Ye(e){let t=(0,r.useContext)(Ge);if(null===t){let t=new Error(`<${e} /> is missing a parent <${tt.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ye),t}return t}Ge.displayName="PopoverAPIContext";var Xe=(0,r.createContext)(null);function Je(){return(0,r.useContext)(Xe)}Xe.displayName="PopoverGroupContext";var Ze=(0,r.createContext)(null);function et(e,t){return g(t.type,Ke,e,t)}Ze.displayName="PopoverPanelContext";function tt(e){let t=`headlessui-popover-button-${d()}`,n=`headlessui-popover-panel-${d()}`,o=(0,r.useReducer)(et,{popoverState:1,button:null,buttonId:t,panel:null,panelId:n}),[{popoverState:l,button:i,panel:u},a]=o;(0,r.useEffect)((()=>a({type:3,buttonId:t})),[t,a]),(0,r.useEffect)((()=>a({type:5,panelId:n})),[n,a]);let s=(0,r.useMemo)((()=>({buttonId:t,panelId:n,close:()=>a({type:1})})),[t,n,a]),c=Je(),f=null==c?void 0:c.registerPopover,p=(0,r.useCallback)((()=>{var e;return null!=(e=null==c?void 0:c.isFocusWithinPopoverGroup())?e:(null==i?void 0:i.contains(document.activeElement))||(null==u?void 0:u.contains(document.activeElement))}),[c,i,u]);(0,r.useEffect)((()=>null==f?void 0:f(s)),[f,s]),w("focus",(()=>{0===l&&(p()||!i||!u||a({type:1}))}),!0),w("mousedown",(e=>{let t=e.target;0===l&&((null==i?void 0:i.contains(t))||(null==u?void 0:u.contains(t))||(a({type:1}),$(t,1)||(e.preventDefault(),null==i||i.focus())))}));let m=(0,r.useCallback)((e=>{a({type:1});let t=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:i:i;null==t||t.focus()}),[a,i]),h=(0,r.useMemo)((()=>({close:m})),[m]),y=(0,r.useMemo)((()=>({open:0===l,close:m})),[l,m]);return r.createElement(Qe.Provider,{value:o},r.createElement(Ge.Provider,{value:h},r.createElement(I,{value:g(l,{0:0,1:1})},v({props:e,slot:y,defaultTag:"div",name:"Popover"}))))}var nt=b((function(e,t){let[n,o]=We("Popover.Button"),l=(0,r.useRef)(null),i=Je(),u=null==i?void 0:i.closeOthers,a=(0,r.useContext)(Ze),s=null!==a&&a===n.panelId,c=h(l,t,s?null:e=>o({type:2,button:e})),f=h(l,t),d=(0,r.useRef)(null),p=(0,r.useRef)("undefined"==typeof window?null:document.activeElement);w("focus",(()=>{p.current=d.current,d.current=document.activeElement}),!0);let m=(0,r.useCallback)((e=>{var t,r;if(s){if(1===n.popoverState)return;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),o({type:1}),null==(t=n.button)||t.focus()}}else switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),1===n.popoverState&&(null==u||u(n.buttonId)),o({type:0});break;case"Escape":if(0!==n.popoverState)return null==u?void 0:u(n.buttonId);if(!l.current||!l.current.contains(document.activeElement))return;e.preventDefault(),e.stopPropagation(),o({type:1});break;case"Tab":if(0!==n.popoverState||!n.panel||!n.button)return;if(e.shiftKey){if(!p.current||(null==(r=n.button)?void 0:r.contains(p.current))||n.panel.contains(p.current))return;let t=H(),o=t.indexOf(p.current);if(t.indexOf(n.button)>o)return;e.preventDefault(),e.stopPropagation(),q(n.panel,8)}else e.preventDefault(),e.stopPropagation(),q(n.panel,1)}}),[o,n.popoverState,n.buttonId,n.button,n.panel,l,u,s]),g=(0,r.useCallback)((e=>{var t;if(!s&&(" "===e.key&&e.preventDefault(),0===n.popoverState&&n.panel&&n.button))switch(e.key){case"Tab":if(!p.current||(null==(t=n.button)?void 0:t.contains(p.current))||n.panel.contains(p.current))return;let r=H(),o=r.indexOf(p.current);if(r.indexOf(n.button)>o)return;e.preventDefault(),e.stopPropagation(),q(n.panel,8)}}),[n.popoverState,n.panel,n.button,s]),y=(0,r.useCallback)((t=>{var r,l;E(t.currentTarget)||e.disabled||(s?(o({type:1}),null==(r=n.button)||r.focus()):(1===n.popoverState&&(null==u||u(n.buttonId)),null==(l=n.button)||l.focus(),o({type:0})))}),[o,n.button,n.popoverState,n.buttonId,e.disabled,u,s]),b=(0,r.useMemo)((()=>({open:0===n.popoverState})),[n]),x=R(e,l);return v({props:{...e,...s?{ref:f,type:x,onKeyDown:m,onClick:y}:{ref:c,id:n.buttonId,type:x,"aria-expanded":e.disabled?void 0:0===n.popoverState,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:m,onKeyUp:g,onClick:y}},slot:b,defaultTag:"button",name:"Popover.Button"})}
1)),rt=b((function(e,t){let[{popoverState:n},o]=We("Popover.Overlay"),l=h(t),i=`headlessui-popover-overlay-${d()}`,u=S(),a=null!==u?0===u:0===n;return v({props:{...e,ref:l,id:i,"aria-hidden":!0,onClick:(0,r.useCallback)((e=>{if(E(e.currentTarget))return e.preventDefault();o({type:1})}),[o])},slot:(0,r.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",features:3,visible:a,name:"Popover.Overlay"})})),ot=b((function(e,t){let{focus:n=!1,...o}=e,[l,i]=We("Popover.Panel"),{close:u}=Ye("Popover.Panel"),a=(0,r.useRef)(null),s=h(a,t,(e=>{i({type:4,panel:e})})),c=S(),f=null!==c?0===c:0===l.popoverState,d=(0,r.useCallback)((e=>{var t;switch(e.key){case"Escape":if(0!==l.popoverState||!a.current||!a.current.contains(document.activeElement))return;e.preventDefault(),e.stopPropagation(),i({type:1}),null==(t=l.button)||t.focus()}}),[l,a,i]);(0,r.useEffect)((()=>()=>i({type:4,panel:null})),[i]),(0,r.useEffect)((()=>{var t;e.static||1===l.popoverState&&(null==(t=e.unmount)||t)&&i({type:4,panel:null})}),[l.popoverState,e.unmount,e.static,i]),(0,r.useEffect)((()=>{if(!n||0!==l.popoverState||!a.current)return;let e=document.activeElement;a.current.contains(e)||q(a.current,1)}),[n,a,l.popoverState]),w("keydown",(e=>{var t;if(0!==l.popoverState||!a.current||"Tab"!==e.key||!document.activeElement||!a.current||!a.current.contains(document.activeElement))return;e.preventDefault();
1let n=q(a.current,e.shiftKey?2:4);if(3===n)return null==(t=l.button)?void 0:t.focus();if(1===n){if(!l.button)return;let e=H(),t=e.indexOf(l.button);0===q(e.splice(t+1).filter((e=>{var t;return!(null==(t=a.current)?void 0:t.contains(e))})),1)&&q(document.body,1)}})),w("focus",(()=>{var e;!n||0===l.popoverState&&(!a.current||(null==(e=a.current)?void 0:e.contains(document.activeElement))||i({type:1}))}),!0);let p=(0,r.useMemo)((()=>({open:0===l.popoverState,close:u})),[l,u]),m={ref:s,id:l.panelId,onKeyDown:d};return r.createElement(Ze.Provider,{value:l.panelId},v({props:{...o,...m},slot:p,defaultTag:"div",features:3,visible:f,name:"Popover.Panel"}))}));tt.Button=nt,tt.Overlay=rt,tt.Panel=ot,tt.Group=function(e){let t=(0,r.useRef)(null),[n,o]=(0,r.useState)([]),l=(0,r.useCallback)((e=>{o((t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t}))}),[o]),i=(0,r.useCallback)((e=>(o((t=>[...t,e])),()=>l(e))),[o,l]),u=(0,r.useCallback)((()=>{var e;let r=document.activeElement;return!!(null==(e=t.current)?void 0:e.contains(r))||n.some((e=>{var t,n;return(null==(t=document.getElementById(e.buttonId))?void 0:t.contains(r))||(null==(n=document.getElementById(e.panelId))?void 0:n.contains(r))}))}),[t,n]),a=(0,r.useCallback)((e=>{for(let t of n)t.buttonId!==e&&t.close()}),[n]),s=(0,r.useMemo)((()=>({registerPopover:i,unregisterPopover:l,isFocusWithinPopoverGroup:u,closeOthers:a})),[i,l,u,a]),c=(0,r.useMemo)((()=>({})),[]),f={ref:t},d=e;return r.createElement(Xe.Provider,{value:s},v({props:{...d,...f},slot:c,defaultTag:"div",name:"Popover.Group"}))};var lt=(0,r.createContext)(null);function it(){let e=(0,r.useContext)(lt);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,it),e}return e}function ut(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=(0,r.useCallback)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n})))),[]),o=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return r.createElement(lt.Provider,{value:o},e.children)}),[t])]}function at(e){let{passive:t=!1,...n}=e,r=it(),o=`headlessui-label-${d()}`;u((()=>r.register(o)),[o,r.register]);let l={...n,...{...r.props,id:o}};return t&&delete l.onClick,v({props:l,slot:r.slot||{},defaultTag:"label",name:r.name||"Label"})}var st={0:(e,t)=>({...e,options:[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}]}),1(e,t){let n=e.options.slice(),r=e.options.findIndex((e=>e.id===t.id));return-1===r?e:(n.splice(r,1),{...e,options:n})}},ct=(0,r.createContext)(null);function ft(e){let t=(0,r.useContext)(ct);if(null===t){let t=new Error(`<${e} /> is missing a parent <${pt.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ft),t}return t}function dt(e,t){return g(t.type,st,e,t)}ct.displayName="RadioGroupContext";function pt(e){let{value:t,onChange:n,disabled:o=!1,...l}=e,[{options:i},u]=(0,r.useReducer)(dt,{options:[]}),[a,s]=ut(),[c,f]=ue(),p=`headlessui-radiogroup-${d()}`,m=(0,r.useRef)(null),h=(0,r.useMemo)((()=>i.find((e=>!e.propsRef.current.disabled))),[i]),g=(0,r.useMemo)((()=>i.some((e=>e.propsRef.current.value===t))),[i,t]),y=(0,r.useCallback)((e=>{var r;if(o||e===t)return!1;let l=null==(r=i.find((t=>t.propsRef.current.value===e)))?void 0:r.propsRef.current;return!(null==l?void 0:l.disabled)&&(n(e),!0)}),[n,t,o,i]);T({container:m.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let b=(0,r.useCallback)((e=>{if(!m.current)return;let t=i.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case"ArrowLeft":case"ArrowUp":if(e.preventDefault(),e.stopPropagation(),2===q(t,18)){let e=i.find((e=>e.element.current===document.activeElement));e&&y(e.propsRef.current.value)}break;case"ArrowRight":case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),2===q(t,20)){let e=i.find((e=>e.element.current===document.activeElement));e&&y(e.propsRef.current.value)}break;case" ":{e.preventDefault(),e.stopPropagation();let t=i.find((e=>e.element.current===document.activeElement));t&&y(t.propsRef.current.value)}}}),[m,i,y]),x=(0,r.useCallback)((e=>(u({type:0,...e}),()=>u({type:1,id:e.id}))),[u]),k=(0,r.useMemo)((()=>({registerOption:x,firstOption:h,containsCheckedOption:g,change:y,disabled:o,value:t})),[x,h,g,y,o,t]),E={ref:m,id:p,role:"radiogroup","aria-labelledby":a,"aria-describedby":c,onKeyDown:b};return r.createElement(f,{name:"RadioGroup.Description"},r.createElement(s,{name:"RadioGroup.Label"},r.createElement(ct.Provider,{value:k},v({props:{...l,...E},defaultTag:"div",name:"RadioGroup"}))))}pt.Option=function(e){let t=(0,r.useRef)(null),n=`headlessui-radiogroup-option-${d()}`,[o,l]=ut(),[i,a]=ue(),{addFlag:s,removeFlag:c,hasFlag:f}=function(e=0){let[t,n]=(0,r.useState)(e);return{addFlag:(0,r.useCallback)((e=>n((t=>t|e))),[n]),hasFlag:(0,r.useCallback)((e=>Boolean(t&e)),[t]),removeFlag:(0,r.useCallback)((e=>n((t=>t&~e))),[n]),toggleFlag:(0,r.useCallback)((e=>n((t=>t^e))),[n])}}(1),{value:p,disabled:m=!1,...h}=e,g=(0,r.useRef)({value:p,disabled:m});u((()=>{g.current.value=p}),[p,g]),u((()=>{g.current.disabled=m}),[m,g]);let{registerOption:y,disabled:b,change:x,firstOption:k,containsCheckedOption:E,value:w}=ft("RadioGroup.Option");u((()=>y({id:n,element:t,propsRef:g})),[n,y,t,e]);let C=(0,r.useCallback)((()=>{var e;!x(p)||(s(2),null==(e=t.current)||e.focus())}
1),[s,x,p]),S=(0,r.useCallback)((()=>s(2)),[s]),I=(0,r.useCallback)((()=>c(2)),[c]),P=(null==k?void 0:k.id)===n,R=b||m,T=w===p,A={ref:t,id:n,role:"radio","aria-checked":T?"true":"false","aria-labelledby":o,"aria-describedby":i,"aria-disabled":!!R||void 0,tabIndex:R?-1:T||!E&&P?0:-1,onClick:R?void 0:C,onFocus:R?void 0:S,onBlur:R?void 0:I},F=(0,r.useMemo)((()=>({checked:T,disabled:R,active:f(2)})),[T,R,f]);return r.createElement(a,{name:"RadioGroup.Description"},r.createElement(l,{name:"RadioGroup.Label"},v({props:{...h,...A},slot:F,defaultTag:"div",name:"RadioGroup.Option"})))},pt.Label=at,pt.Description=ae;var mt=(0,r.createContext)(null);mt.displayName="GroupContext";var ht=r.Fragment;function gt(e){let{checked:t,onChange:n,...o}=e,l=`headlessui-switch-${d()}`,i=(0,r.useContext)(mt),u=(0,r.useRef)(null),a=h(u,null===i?null:i.setSwitch),s=(0,r.useCallback)((()=>n(!t)),[n,t]),c=(0,r.useCallback)((e=>{if(E(e.currentTarget))return e.preventDefault();e.preventDefault(),s()}),[s]),f=(0,r.useCallback)((e=>{"Tab"!==e.key&&e.preventDefault()," "===e.key&&s()}),[s]),p=(0,r.useCallback)((e=>e.preventDefault()),[]),m=(0,r.useMemo)((()=>({checked:t})),[t]);return v({props:{...o,...{id:l,ref:a,role:"switch",type:R(e,u),tabIndex:0,"aria-checked":t,"aria-labelledby":null==i?void 0:i.labelledby,"aria-describedby":null==i?void 0:i.describedby,onClick:c,onKeyUp:f,onKeyPress:p}},slot:m,defaultTag:"button",name:"Switch"})}gt.Group=function(e){let[t,n]=(0,r.useState)(null),[o,l]=ut(),[i,u]=ue(),a=(0,r.useMemo)((()=>({switch:t,setSwitch:n,labelledby:o,describedby:i})),[t,n,o,i]);return r.createElement(u,{name:"Switch.Description"},r.createElement(l,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},r.createElement(mt.Provider,{value:a},v({props:e,defaultTag:ht,name:"Switch.Group"}))))},gt.Label=at,gt.Description=ae;var vt={0:(e,t)=>e.selectedIndex===t.index?e:{...e,selectedIndex:t.index},1:(e,t)=>e.orientation===t.orientation?e:{...e,orientation:t.orientation},2:(e,t)=>e.activation===t.activation?e:{...e,activation:t.activation},3:(e,t)=>e.tabs.includes(t.tab)?e:{...e,tabs:[...e.tabs,t.tab]},4:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),5:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:[...e.panels,t.panel]},6:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))}),7:e=>({...e})},yt=(0,r.createContext)(null);function bt(e){let t=(0,r.useContext)(yt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,bt),t}return t}function xt(e,t){return g(t.type,vt,e,t)}yt.displayName="TabsContext";var kt=r.Fragment;function Et(e){var t,n;let o=`headlessui-tabs-tab-${d()}`,[{selectedIndex:l,tabs:i,panels:a,orientation:s,activation:c},{dispatch:f,change:p}]=bt(Et.name),m=(0,r.useRef)(null),y=h(m,(e=>{!e||f({type:7})}));u((()=>(f({type:3,tab:m}),()=>f({type:4,tab:m}))),[f,m]);let b=i.indexOf(m),x=b===l,k=(0,r.useCallback)((e=>{let t=i.map((e=>e.current)).filter(Boolean);if(" "===e.key||"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),void p(b);switch(e.key){case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),q(t,1);case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),q(t,8)}return g(s,{vertical:()=>"ArrowUp"===e.key?q(t,18):"ArrowDown"===e.key?q(t,20):void 0,horizontal:()=>"ArrowLeft"===e.key?q(t,18):"ArrowRight"===e.key?q(t,20):void 0})}),[i,s,b,p]),E=(0,r.useCallback)((()=>{var e;null==(e=m.current)||e.focus()}),[m]),w=(0,r.useCallback)((()=>{var e;null==(e=m.current)||e.focus(),p(b)}),[p,b,m]),C=(0,r.useMemo)((()=>({selected:x})),[x]),S={ref:y,onKeyDown:k,onFocus:"manual"===c?E:w,onClick:w,id:o,role:"tab",type:R(e,m),"aria-controls":null==(n=null==(t=a[b])?void 0:t.current)?void 0:n.id,"aria-selected":x,tabIndex:x?0:-1};return v({props:{...e,...S},slot:C,defaultTag:"button",name:"Tabs.Tab"})}function wt(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ct(e,...t){e&&t.length>0&&e.classList.remove(...t)}function St(e,t,n,r,o,i){let u=l(),a=void 0!==i?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(i):()=>{};return Ct(e,...o),wt(e,...t,...n),u.nextFrame((()=>{Ct(e,...n),wt(e,...r),u.add(function(e,t){let n=l();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,u]=[r,o].map((e=>
1{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));return 0!==i?n.setTimeout((()=>{t("finished")}),i+u):t("finished"),n.add((()=>t("cancelled"))),n.dispose}(e,(n=>(Ct(e,...r,...t),wt(e,...o),a(n)))))})),u.add((()=>Ct(e,...t,...n,...r,...o))),u.add((()=>a("cancelled"))),u.dispose}function It(e=""){return(0,r.useMemo)((()=>e.split(" ").filter((e=>e.trim().length>1))),[e])}Et.Group=function(e){let{defaultIndex:t=0,vertical:n=!1,manual:o=!1,onChange:l,selectedIndex:i=null,...u}=e,a=n?"vertical":"horizontal",s=o?"manual":"auto",[c,f]=(0,r.useReducer)(xt,{selectedIndex:null,tabs:[],panels:[],orientation:a,activation:s}),d=(0,r.useMemo)((()=>({selectedIndex:c.selectedIndex})),[c.selectedIndex]),p=(0,r.useRef)((()=>{}));(0,r.useEffect)((()=>{f({type:1,orientation:a})}),[a]),(0,r.useEffect)((()=>{f({type:2,activation:s})}),[s]),(0,r.useEffect)((()=>{"function"==typeof l&&(p.current=l)}),[l]),(0,r.useEffect)((()=>{if(c.tabs.length<=0||null===i&&null!==c.selectedIndex)return;let e=c.tabs.map((e=>e.current)).filter(Boolean),n=e.filter((e=>!e.hasAttribute("disabled"))),r=null!=i?i:t;if(r<0)f({type:0,index:e.indexOf(n[0])});else if(r>c.tabs.length)f({type:0,index:e.indexOf(n[n.length-1])});else{let t=e.slice(0,r),o=[...e.slice(r),...t].find((e=>n.includes(e)));if(!o)return;f({type:0,index:e.indexOf(o)})}}),[t,i,c.tabs,c.selectedIndex]);let m=(0,r.useRef)(c.selectedIndex);(0,r.useEffect)((()=>{m.current=c.selectedIndex}),[c.selectedIndex]);let h=(0,r.useMemo)((()=>[c,{dispatch:f,change(e){m.current!==e&&p.current(e),m.current=e,f({type:0,index:e})}}]),[c,f]);return r.createElement(yt.Provider,{value:h},v({props:{...u},slot:d,defaultTag:kt,name:"Tabs"}))},Et.List=function(e){let[{selectedIndex:t,orientation:n}]=bt("Tab.List");return v({props:{...e,role:"tablist","aria-orientation":n},slot:{selectedIndex:t},defaultTag:"div",name:"Tabs.List"})},Et.Panels=function(e){let[{selectedIndex:t}]=bt("Tab.Panels");return v({props:e,slot:(0,r.useMemo)((()=>({selectedIndex:t})),[t]),defaultTag:"div",name:"Tabs.Panels"})},Et.Panel=function(e){var t,n;let[{selectedIndex:o,tabs:l,panels:i},{dispatch:a}]=bt("Tab.Panel"),s=`headlessui-tabs-panel-${d()}`,c=(0,r.useRef)(null),f=h(c,(e=>{!e||a({type:7})}));u((()=>(a({type:5,panel:c}),()=>a({type:6,panel:c}))),[a,c]);let p=i.indexOf(c),m=p===o,g=(0,r.useMemo)((()=>({selected:m})),[m]);return v({props:{...e,...{ref:f,id:s,role:"tabpanel","aria-labelledby":null==(n=null==(t=l[p])?void 0:t.current)?void 0:n.id,tabIndex:m?0:-1}},slot:g,defaultTag:"div",features:3,visible:m,name:"Tabs.Panel"})};var Pt=(0,r.createContext)(null);Pt.displayName="TransitionContext";var Rt=(0,r.createContext)(null);function Tt(e){return"children"in e?Tt(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function At(e){let t=(0,r.useRef)(e),n=(0,r.useRef)([]),o=K();(0,r.useEffect)((()=>{t.current=e}),[e]);let l=(0,r.useCallback)(((e,r=1)=>{var l;let i=n.current.findIndex((({id:t})=>t===e));-1!==i&&(g(r,{0(){n.current.splice(i,1)},1(){n.current[i].state="hidden"}}),!Tt(n)&&o.current&&(null==(l=t.current)||l.call(t)))}),[t,o,n]),i=(0,r.useCallback)((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>l(e,0)}),[n,l]);return(0,r.useMemo)((()=>({children:n,register:i,unregister:l})),[i,l,n])}function Ft(){}Rt.displayName="NestingContext";var Ot=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Dt(e){var t;let n={};for(let r of Ot)n[r]=null!=(t=e[r])?t:Ft;return n}function Lt(e){let{beforeEnter:t,afterEnter:n,beforeLeave:o,afterLeave:l,enter:i,enterFrom:a,enterTo:c,entered:f,leave:p,leaveFrom:m,leaveTo:h,...y}=e,b=(0,r.useRef)(null),[x,k]=(0,r.useState)("visible"),E=y.unmount?0:1,{show:w,appear:C,initial:S}=function(){let e=(0,r.useContext)(Pt);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:R}=function(){let e=(0,r.useContext)(Rt);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),T=d(),A=(0,r.useRef)(!1),F=At((()=>{A.current||(k("hidden"),R(T),N.current.afterLeave())}
1));u((()=>{if(T)return P(T)}),[P,T]),u((()=>{if(1===E&&T){if(w&&"visible"!==x)return void k("visible");g(x,{hidden:()=>R(T),visible:()=>P(T)})}}),[x,T,P,R,w,E]);let O=It(i),D=It(a),L=It(c),M=It(f),B=It(p),z=It(m),j=It(h),N=function(e){let t=(0,r.useRef)(Dt(e));return(0,r.useEffect)((()=>{t.current=Dt(e)}),[e]),t}({beforeEnter:t,afterEnter:n,beforeLeave:o,afterLeave:l}),_=s();(0,r.useEffect)((()=>{if(_&&"visible"===x&&null===b.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[b,x,_]);let U=S&&!C;u((()=>{let e=b.current;if(e&&!U)return A.current=!0,w&&N.current.beforeEnter(),w||N.current.beforeLeave(),w?St(e,O,D,L,M,(e=>{A.current=!1,"finished"===e&&N.current.afterEnter()})):St(e,B,z,j,M,(e=>{A.current=!1,"finished"===e&&(Tt(F)||(k("hidden"),R(T),N.current.afterLeave()))}))}),[N,T,A,R,F,b,U,w,O,D,L,B,z,j]);let H={ref:b},$=y;return r.createElement(Rt.Provider,{value:F},r.createElement(I,{value:g(x,{visible:0,hidden:1})},v({props:{...$,...H},defaultTag:"div",features:1,visible:"visible"===x,name:"Transition.Child"})))}function Mt(e){let{show:t,appear:n=!1,unmount:o,...l}=e,i=S();if(void 0===t&&null!==i&&(t=g(i,{0:!0,1:!1})),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,a]=(0,r.useState)(t?"visible":"hidden"),s=At((()=>{a("hidden")})),c=function(){let e=(0,r.useRef)(!0);return(0,r.useEffect)((()=>{e.current=!1}),[]),e.current}(),f=(0,r.useMemo)((()=>({show:t,appear:n||!c,initial:c})),[t,n,c]);(0,r.useEffect)((()=>{t?a("visible"):Tt(s)||a("hidden")}),[t,s]);let d={unmount:o};return r.createElement(Rt.Provider,{value:s},r.createElement(Pt.Provider,{value:f},v({props:{...d,as:r.Fragment,children:r.createElement(Lt,{...d,...l})},defaultTag:r.Fragment,features:1,visible:"visible"===u,name:"Transition"})))}Mt.Child=function(e){let t=null!==(0,r.useContext)(Pt),n=null!==S();return!t&&n?r.createElement(Mt,{...e}):r.createElement(Lt,{...e})},Mt.Root=Mt},3801:function(e,t,n){"use strict";n.d(t,{v4q:function(){return o}});var r=n(7294);var o=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"}))}},9655:function(e,t,n){"use strict";n.d(t,{D:function(){return Vn}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return lt},contentInitial:function(){return Ze},disable:function(){return it},document:function(){return Je},flow:function(){return tt},flowInitial:function(){return et},insideSpan:function(){return ot},string:function(){return nt},text:function(){return rt}});var o={};n.r(o),n.d(o,{boolean:function(){return en},booleanish:function(){return tn},commaOrSpaceSeparated:function(){return un},commaSeparated:function(){return ln},number:function(){return rn},overloadedBoolean:function(){return nn},spaceSeparated:function(){return on}});var l=n(7294),i=n(8738);function u(e){return e&&"object"===typeof e?"position"in e||"type"in e?s(e.position):"start"in e||"end"in e?s(e):"line"in e||"column"in e?a(e):"":""}function a(e){return c(e&&e.line)+":"+c(e&&e.column)}function s(e){return a(e&&e.start)+"-"+a(e&&e.end)}function c(e){return e&&"number"===typeof e?e:1}class f extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"===typeof t&&(n=t,t=void 0),"string"===typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=u(t)||"1:1",this.message="object"===typeof e?e.message:e,this.stack="object"===typeof e?e.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=r[0],this.ruleId=r[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}}f.prototype.file="",f.prototype.name="",f.prototype.reason="",f.prototype.message="",f.prototype.stack="",f.prototype.fatal=null,f.prototype.column=null,f.prototype.line=null,f.prototype.source=null,f.prototype.ruleId=null,f.prototype.position=null;const d={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');p(e);let n,r=0,o=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.charCodeAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,u=t.length-1;for(;l--;)if(47===e.charCodeAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1),u>-1&&(e.charCodeAt(l)===t.charCodeAt(u--)?u<0&&(o=l):(u=-1,o=i));r===o?o=i:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(p(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){p(e);let t,n=e.length,r=-1,o=0,l=-1,i=0;for(;n--;){const u=e.charCodeAt(n);if(47!==u)r<0&&(t=!0,r=n+1),46===u?l<0?l=n:1!==i&&(i=1):l>-1&&(i=-1);else if(t){o=n+1;break}}if(l<0||r<0||0===i||1===i&&l===r-1&&l===o+1)return"";return e.slice(l,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)p(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){p(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",l=0,i=-1,u=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===u);
1else if(i!==a-1&&2===u){if(o.length<2||2!==l||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",l=0):(o=o.slice(0,r),l=o.length-1-o.lastIndexOf("/")),i=a,u=0;continue}}else if(o.length>0){o="",l=0,i=a,u=0;continue}t&&(o=o.length>0?o+"/..":"..",l=2)}else o.length>0?o+="/"+e.slice(i+1,a):o=e.slice(i+1,a),l=a-i-1;i=a,u=0}else 46===n&&u>-1?u++:u=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function p(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const m={cwd:function(){return"/"}};function h(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function g(e){if("string"===typeof e)e=new URL(e);else if(!h(e)){const t=new 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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const v=["history","path","basename","stem","extname","dirname"];class y{constructor(e){let t;t=e?"string"===typeof e||i(e)?{value:e}:h(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=m.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<v.length;){const e=v[r];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)v.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){h(e)&&(e=g(e)),x(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"===typeof this.path?d.dirname(this.path):void 0}set dirname(e){k(this.basename,"dirname"),this.path=d.join(e||"",this.basename)}get basename(){return"string"===typeof this.path?d.basename(this.path):void 0}set basename(e){x(e,"basename"),b(e,"basename"),this.path=d.join(this.dirname||"",e)}get extname(){return"string"===typeof this.path?d.extname(this.path):void 0}set extname(e){if(b(e,"extname"),k(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=d.join(this.dirname,this.stem+(e||""))}get stem(){return"string"===typeof this.path?d.basename(this.path,this.extname):void 0}set stem(e){x(e,"stem"),b(e,"stem"),this.path=d.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,n){const r=new f(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function b(e,t){if(e&&e.includes(d.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+d.sep+"`")}function x(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function k(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function E(e){if(e)throw e}var w=n(4470);function C(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function S(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!==typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(l,...i){const u=e[++n];let a=-1;if(l)r(l);else{for(;++a<t.length;)null!==i[a]&&void 0!==i[a]||(i[a]=t[a]);t=i,u?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let u;r&&t.push(o);try{u=e.apply(this,t)}catch(l){const t=l;if(r&&n)throw t;return o(t)}r||(u instanceof Promise?u.then(i,o):u instanceof Error?o(u):i(u))}
1function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(u,o)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const I=function e(){const t=S(),n=[];let r,o={},l=-1;return u.data=function(e,t){if("string"===typeof e)return 2===arguments.length?(F("data",r),o[e]=t,u):P.call(o,e)&&o[e]||null;if(e)return F("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++l<n.length;){const[e,...r]=n[l];if(!1===r[0])continue;!0===r[0]&&(r[1]=void 0);const o=e.call(u,...r);"function"===typeof o&&t.use(o)}return r=!0,l=Number.POSITIVE_INFINITY,u},u.attachers=n,u.use=function(e,...t){let l;if(F("use",r),null===e||void 0===e);else if("function"===typeof e)c(e,...t);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):a(e)}l&&(o.settings=Object.assign(o.settings||{},l));return u;function i(e){if("function"===typeof e)c(e);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,...n)}else a(e)}}function a(e){s(e.plugins),e.settings&&(l=Object.assign(l||{},e.settings))}function s(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function c(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(C(r[1])&&C(t)&&(t=w(!0,r[1],t)),r[1]=t):n.push([...arguments])}},u.parse=function(e){u.freeze();const t=L(e),n=u.Parser;if(T("parse",n),R(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},u.stringify=function(e,t){u.freeze();const n=L(t),r=u.Compiler;if(A("stringify",r),O(e),R(r,"compile"))return new r(e,n).compile();return r(e,n)},u.run=function(e,n,r){O(e),u.freeze(),r||"function"!==typeof n||(r=n,n=void 0);if(!r)return new Promise(o);function o(o,l){function i(t,n,i){n=n||e,t?l(t):o?o(n):r(null,n,i)}t.run(e,L(n),i)}o(null,r)},u.runSync=function(e,t){let n,r;return u.run(e,t,o),D("runSync","run",r),n;function o(e,t){E(e),n=t,r=!0}},u.process=function(e,t){if(u.freeze(),T("process",u.Parser),A("process",u.Compiler),!t)return new Promise(n);function n(n,r){const o=L(e);function l(e,o){e||!o?r(e):n?n(o):t(null,o)}u.run(u.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const o=u.stringify(t,n);void 0===o||null===o||("string"===typeof(r=o)||i(r)?n.value=o:n.result=o),l(e,n)}else l(e);var r}))}n(null,t)},u.processSync=function(e){let t;u.freeze(),T("processSync",u.Parser),A("processSync",u.Compiler);const n=L(e);return u.process(n,r),D("processSync","process",t),n;function r(e){t=!0,E(e)}},u;function u(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(w(!0,{},o)),t}}().freeze(),P={}.hasOwnProperty;function R(e,t){return"function"===typeof e&&e.prototype&&(function(e){let t;for(t in e)if(P.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function T(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function A(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function F(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function O(e){if(!C(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function D(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new y(e)}function M(e,t){return e&&"object"===typeof e&&(e.value||(t?e.alt:"")||"children"in e&&B(e.children,t)||Array.isArray(e)&&B(e,t))||""}function B(e,t){for(var n=[],r=-1;++r<e.length;)n[r]=M(e[r],t);return n.join("")}function z(e,t,n,r){const o=e.length;let l,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),[].splice.apply(e,l);else for(n&&[].splice.apply(e,[t,n]);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),[].splice.apply(e,l),i+=1e4,t+=1e4}function j(e,t){return e.length>0?(z(e,e.length,0,t),e):t}const N={}.hasOwnProperty;function _(e,t){let n;for(n in t){const r=(N.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;for(l in o){N.call(r,l)||(r[l]=[]);const e=o[l];U(r[l],Array.isArray(e)?e:e?[e]:[])}}}function U(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);z(e,0,0,r)}const H=ee(/[A-Za-z]/),$=ee(/\d/),V=ee(/[\dA-Fa-f]/),q=ee(/[\dA-Za-z]/),K=ee(/[!-/:-@[-`{-~]/),Q=ee
vendor: 10,551 bytes, line 1
1(/[#-'*+\--9=?A-Z^-~]/);function W(e){return null!==e&&(e<32||127===e)}function G(e){return null!==e&&(e<0||32===e)}function Y(e){return null!==e&&e<-2}function X(e){return-2===e||-1===e||32===e}const J=ee(/\s/),Z=ee(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function ee(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function te(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let l=0;return function(r){if(X(r))return e.enter(n),i(r);return t(r)};function i(r){return X(r)&&l++<o?(e.consume(r),i):(e.exit(n),t(r))}}const ne={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),te(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Y(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const re={tokenize:function(e){const t=this,n=[];let r,o,l,i=0;return u;function u(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,a,s)(r)}return s(r)}function a(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){o=t.events[l][1].end;break}v(i);let u=n;for(;u<t.events.length;)t.events[u][1].end=Object.assign({},o),u++;return z(t.events,l+1,0,t.events.slice(n)),t.events.length=u,s(e)}return u(e)}function s(o){if(i===n.length){if(!r)return d(o);if(r.currentConstruct&&r.currentConstruct.concrete)return m(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(oe,c,f)(o)}function c(e){return r&&y(),v(i),d(e)}function f(e){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,m(e)}function d(n){return t.containerState={},e.attempt(oe,p,m)(n)}function p(e){return i++,n.push([t.currentConstruct,t.containerState]),d(e)}function m(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):Y(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(n),h)}function g(e,n){const u=t.sliceStream(e);if(n&&u.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(u),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<l&&(!r.events[e][1].end||r.events[e][1].end.offset>l))return;const n=t.events.length;let o,u,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){if(o){u=t.events[a][1].end;break}o=!0}for(v(i),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},u),e++;z(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},oe={tokenize:function(e,t,n){return te(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const le={tokenize:function(e,t,n){return te(e,(function(e){return null===e||Y(e)?t(e):n(e)}),"linePrefix")},partial:!0};function ie(e){const t={};let n,r,o,l,i,u,a,s=-1;for(;++s<e.length;){for(;s in t;)s=t[s];if(n=e[s],s&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[s-1][1].type&&(u=n[1]._tokenizer.events,o=0,o<u.length&&"lineEndingBlank"===u[o][1].type&&(o+=2),o<u.length&&"content"===u[o][1].type))for(;++o<u.length&&"content"!==u[o][1].type;)"chunkText"===u[o][1].type&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,ue(e,s)),s=t[s],a=!0);else if(n[1]._container){for(o=s,r=void 0;o--&&(l=e[o],"lineEnding"===l[1].type||"lineEndingBlank"===l[1].type);)"enter"===l[0]&&(r&&(e[r][1].type="lineEndingBlank"),l[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),i=e.slice(r,s),i.unshift(n),z(e,r,s-r+1,i))}}return!a}function ue(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const l=[],i=n._tokenizer||r.parser[n.contentType](n.start),u=i.events,a=[],s={};let c,f,d=-1,p=n,m=0,h=0;const g=[h];for(;p;){for(;e[++o][1]!==p;);l.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(h=d+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){const t=u.slice(g[d],g[d+1]),n=l.pop();a.unshift([n,n+t.length-1]),z(e,n,2,t)}for(d=-1;++d<a.length;)s[m+a[d][0]]=m+a[d][1],m+=a[d][1]-a[d][0]-1;return s}const ae={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Y(t)?e.check(se,l,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return ie(e),e}},se={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),te(e,o,"linePrefix")};function o(o){if(null===o||Y(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const ce={tokenize:function(e){const t=this,n=e.attempt(le,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,te(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ae,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const fe={resolveAll:he()},de=me("string"),pe=me("text");function me(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,l,i);return l;function l(e){return a(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),u;t.consume(e)}function u(e){return a(e)?(t.exit("data"),o(e)):(t.consume(e),u)}function a(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:he("text"===e?ge:void 0)}}function he(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function ge(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let l,i=o.length,u=-1,a=0;for(;i--;){const e=o[i];if("string"===typeof e){for(u=e.length;32===e.charCodeAt(u-1);)a++,u--;if(u)break;u=-1}else if(-2===e)l=!0,a++;else if(-1!==e){i++;break}}if(a){const o={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+i,_bufferIndex:i?u:r.start._bufferIndex+u},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function ve(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const l=e[o].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}function ye(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},l=[];let i=[],u=[],a=!0;const s={consume:function(e){Y(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e,a=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=m(),c.events.push(["enter",n,c]),u.push(n),n},exit:function(e){const t=u.pop();return t.end=m(),c.events.push(["exit",t,c]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(v),interrupt:y(v,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const l=e[n];let i;if("string"===typeof l)i=l;else switch(l){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(l)}o=-2===l,r.push(i)}return r.join("")}(p(e),t)}
1,now:m,defineSkip:function(e){o[e.line]=e.column,x()},write:function(e){if(i=j(i,e),h(),null!==i[i.length-1])return[];return b(t,0),c.events=ve(l,c.events,c),c.events}};let f,d=t.tokenize.call(c,s);return t.resolveAll&&l.push(t),c;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;let i;n===o?i=[e[n].slice(r,l)]:(i=e.slice(n,o),r>-1&&(i[0]=i[0].slice(r)),l>0&&i.push(e[o].slice(0,l)));return i}(i,e)}function m(){return Object.assign({},r)}function h(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){a=void 0,f=e,d=d(e)}function v(e,t){t.restore()}function y(e,t){return function(n,o,l){let i,f,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return i=e,f=0,0===e.length?l:g(e[f])}function g(e){return function(n){p=function(){const e=m(),t=c.previous,n=c.currentConstruct,o=c.events.length,l=Array.from(u);return{restore:i,from:o};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,u=l,x()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,v,y)(n)}}function v(t){return a=!0,e(d,p),o}
vendor: 1,677 bytes, line 1
1function y(e){return a=!0,p.restore(),++f<i.length?g(i[f]):l}}}function b(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&z(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function x(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const be={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),r=t,l(t)};function l(u){return u===r?(e.enter("thematicBreakSequence"),i(u)):X(u)?te(e,l,"whitespace")(u):o<3||null!==u&&!Y(u)?n(u):(e.exit("thematicBreak"),t(u))}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),l(t))}}};const xe={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let l=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:$(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(be,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(t)}return n(t)};function u(t){return $(t)&&++i<10?(e.consume(t),u):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),a(t)):n(t)}function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(le,r.interrupt?n:s,e.attempt(ke,f,c))}
1function s(e){return r.containerState.initialBlankLine=!0,l++,f(e)}function c(t){return X(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(le,o,l);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,te(e,t,"listItemIndent",r.containerState.size+1)(n)}function l(n){return r.containerState.furtherBlankLines||!X(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ee,t,i)(n))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,te(e,e.attempt(xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},ke={tokenize:function(e,t,n){const r=this;return te(e,(function(e){const o=r.events[r.events.length-1];return!X(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ee={tokenize:function(e,t,n){const r=this;return te(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const we={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return X(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return te(e,e.attempt(we,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};function Ce(e,t,n,r,o,l,i,u,a){const s=a||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(l),e.consume(t),e.exit(l),f;if(null===t||41===t||W(t))return n(t);return e.enter(r),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),m(t)};function f(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(o),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(u),f(t)):null===t||60===t||Y(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function m(o){return 40===o?++c>s?n(o):(e.consume(o),m):41===o?c--?(e.consume(o),m):(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(r),t(o)):null===o||G(o)?c?n(o):(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(r),t(o)):W(o)?n(o):(e.consume(o),92===o?h:m)}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function Se(e,t,n,r,o,l){const i=this;let u,a=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(l),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in i.parser.constructs||a>999?n(f):93===f?(e.exit(l),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):Y(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||Y(t)||a++>999?(e.exit("chunkString"),s(t)):(e.consume(t),u=u||!X(t),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Ie(e,t,n,r,o,l){let i;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,u};function u(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(l),a(n))}function a(t){return t===i?(e.exit(l),u(i)):null===t?n(t):Y(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),te(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===i||null===t||Y(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?c:s)}function c(t){return t===i||92===t?(e.consume(t),s):s(t)}}function Pe(e,t){let n;return function r(o){if(Y(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(X(o))return te(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function Re(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Te={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),Se.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function l(t){return o=Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Pe(e,Ce(e,e.attempt(Ae,te(e,i,"whitespace"),te(e,i,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function i(l){return null===l||Y(l)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),t(l)):n(l)}}},Ae={tokenize:function(e,t,n){return function(t){return G(t)?Pe(e,r)(t):n(t)};function r(t){return 34===t||39===t||40===t?Ie(e,te(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function o(e){return null===e||Y(e)?t(e):n(e)}},partial:!0};const Fe={name:"codeIndented",tokenize:function(e,t,n){const r=this;
vendor: 7,127 bytes, line 1
1return function(t){return e.enter("codeIndented"),te(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?l(e):n(e)}function l(t){return null===t?u(t):Y(t)?e.attempt(Oe,l,u)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Y(t)?(e.exit("codeFlowValue"),l(t)):(e.consume(t),i)}function u(n){return e.exit("codeIndented"),t(n)}}},Oe={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Y(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):te(e,l,"linePrefix",5)(t)}function l(e){const l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):Y(e)?o(e):n(e)}},partial:!0};const De={name:"headingAtx",tokenize:function(e,t,n){const r=this;let o=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),l(t)};function l(u){return 35===u&&o++<6?(e.consume(u),l):null===u||G(u)?(e.exit("atxHeadingSequence"),r.interrupt?t(u):i(u)):n(u)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),u(n)):null===n||Y(n)?(e.exit("atxHeading"),t(n)):X(n)?te(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function u(t){return 35===t?(e.consume(t),u):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||G(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,o=e.length-2,l=3;"whitespace"===e[l][1].type&&(l+=2);o-2>l&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(l===o-1||o-4>l&&"whitespace"===e[o-2][1].type)&&(o-=l+1===o?2:4);o>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[o][1].end},r={type:"chunkText",start:e[l][1].start,end:e[o][1].end,contentType:"text"},z(e,l,o-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const Le={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o,l,i=r.events.length;for(;i--;)if("lineEnding"!==r.events[i][1].type&&"linePrefix"!==r.events[i][1].type&&"content"!==r.events[i][1].type){l="paragraph"===r.events[i][1].type;break}return function(t){if(!r.parser.lazy[r.now().line]&&(r.interrupt||l))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,u(t);return n(t)};function u(t){return t===o?(e.consume(t),u):(e.exit("setextHeadingLineSequence"),te(e,a,"lineSuffix")(t))}function a(r){return null===r||Y(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),o||"definition"!==e[l][1].type||(o=l);const i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i;return e.push(["exit",i,t]),e}};const Me=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Be=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,l,i,u,a;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),p):63===u?(e.consume(u),o=3,r.interrupt?t:L):H(u)?(e.consume(u),i=String.fromCharCode(u),l=!0,m):n(u)}function c(l){return 45===l?(e.consume(l),o=2,f):91===l?(e.consume(l),o=5,i="CDATA[",u=0,d):H(l)?(e.consume(l),o=4,r.interrupt?t:L):n(l)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function d(o){return o===i.charCodeAt(u++)?(e.consume(o),u===i.length?r.interrupt?t:I:d):n(o)}function p(t){return H(t)?(e.consume(t),i=String.fromCharCode(t),m):n(t)}function m(u){return null===u||47===u||62===u||G(u)?47!==u&&l&&Be.includes(i.toLowerCase())?(o=1,r.interrupt?t(u):I(u)):Me.includes(i.toLowerCase())?(o=6,47===u?(e.consume(u),h):r.interrupt?t(u):I(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(u):l?v(u):g(u)):45===u||q(u)?(e.consume(u),i+=String.fromCharCode(u),m):n(u)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return X(t)?(e.consume(t),g):C(t)}function v(t){return 47===t?(e.consume(t),C):58===t||95===t||H(t)?(e.consume(t),y):X(t)?(e.consume(t),v):C(t)}function y(t){return 45===t||46===t||58===t||95===t||q(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):X(t)?(e.consume(t),b):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):X(t)?(e.consume(t),x):(a=null,E(t))}function k(t){return null===t||Y(t)?n(t):t===a?(e.consume(t),w):(e.consume(t),k)}function E(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||G(t)?b(t):(e.consume(t),E)}function w(e){return 47===e||62===e||X(e)?v(e):n(e)}function C(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return X(t)?(e.consume(t),S):null===t||Y(t)?I(t):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),A):60===t&&1===o?(e.consume(t),F):62===t&&4===o?(e.consume(t),M):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),D):!Y(t)||6!==o&&7!==o?null===t||Y(t)?P(t):(e.consume(t),I):e.check(je,M,P)(t)}function P(t){return e.exit("htmlFlowData"),R(t)}function R(t){return null===t?B(t):Y(t)?e.attempt({tokenize:T,partial:!0},R,B)(t):(e.enter("htmlFlowData"),I(t))}function T(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function A(t){return 45===t?(e.consume(t),L):I(t)}function F(t){return 47===t?(e.consume(t),i="",O):I(t)}function O(t){return 62===t&&Be.includes(i.toLowerCase())?(e.consume(t),M):H(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),O):I(t)}function D(t){return 93===t?(e.consume(t),L):I(t)}function L(t){return 62===t?(e.consume(t),M):45===t&&2===o?(e.consume(t),L):I(t)}function M(t){return null===t||Y(t)?(e.exit("htmlFlowData"),B(t)):(e.consume(t),M)}function B(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},je={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(le,t,n)}},partial:!0};const Ne={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let r=0;return te(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);
1function o(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}function l(t){return t===a?(e.consume(t),r++,l):r<s?n(t):(e.exit("codeFencedFenceSequence"),te(e,i,"whitespace")(t))}function i(r){return null===r||Y(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},l={tokenize:function(e,t,n){const r=this;return o;function o(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},i=this.events[this.events.length-1],u=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let a,s=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a=t,c(t)};function c(t){return t===a?(e.consume(t),s++,c):(e.exit("codeFencedFenceSequence"),s<3?n(t):te(e,f,"whitespace")(t))}function f(t){return null===t||Y(t)?h(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||G(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),te(e,p,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),d)}function p(t){return null===t||Y(t)?h(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(t))}function m(t){return null===t||Y(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(t)):96===t&&t===a?n(t):(e.consume(t),m)}function h(n){return e.exit("codeFencedFence"),r.interrupt?t(n):g(n)}function g(t){return null===t?y(t):Y(t)?e.attempt(l,e.attempt(o,y,u?te(e,g,"linePrefix",u+1):g),y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Y(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const _e=document.createElement("i");function Ue(e){const t="&"+e+";";_e.innerHTML=t;const n=_e.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const He={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,l,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,l=q,s(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=V,s):(e.enter("characterReferenceValue"),o=7,l=$,s(t))}function s(u){let a;return 59===u&&i?(a=e.exit("characterReferenceValue"),l!==q||Ue(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(u)):l(u)&&i++<o?(e.consume(u),s):n(u)}}};const $e={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return K(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Ve={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),te(e,t,"linePrefix")}}};const qe={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,l,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){if(!o)return n(t);return o._inactive?a(t):(l=r.parser.defined.includes(Re(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u)};function u(n){return 40===n?e.attempt(Ke,t,l?t:a)(n):91===n?e.attempt(Qe,t,l?e.attempt(We,t,a):a)(n):l?t(n):a(n)}function a(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,l,i=e.length,u=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){u=2;break}}else"labelEnd"===n.type&&(o=i);const a={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[r+u+2][1].end),end:Object.assign({},e[o-2][1].start)};return l=[["enter",a,t],["enter",s,t]],l=j(l,e.slice(r+1,r+u+3)),l=j(l,[["enter",c,t]]),l=j(l,ve(t.parser.constructs.insideSpan.null,e.slice(r+u+4,o-3),t)),l=j(l,[["exit",c,t],e[o-2],e[o-1],["exit",s,t]]),l=j(l,e.slice(o+1)),l=j(l,[["exit",a,t]]
1),z(e,r,e.length,l),e},resolveAll:function(e){let t,n=-1;for(;++n<e.length;)t=e[n][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},Ke={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),Pe(e,r)};function r(t){return 41===t?i(t):Ce(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return G(t)?Pe(e,l)(t):i(t)}function l(t){return 34===t||39===t||40===t?Ie(e,Pe(e,i),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):i(t)}function i(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Qe={tokenize:function(e,t,n){const r=this;return function(t){return Se.call(r,e,o,n,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}}},We={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};function Ge(e){return null===e||G(e)||J(e)?1:Z(e)?2:void 0}const Ye={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ge(r);let l;return function(t){return e.enter("attentionSequence"),l=t,i(t)};function i(u){if(u===l)return e.consume(u),i;const a=e.exit("attentionSequence"),s=Ge(u),c=!s||2===s&&o||n.includes(u),f=!o||2===o&&s||n.includes(r);return a._open=Boolean(42===l?c:c&&(o||!f)),a._close=Boolean(42===l?f:f&&(s||!c)),t(u)}},resolveAll:function(e,t){let n,r,o,l,i,u,a,s,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);Xe(f,-u),Xe(d,u),l={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},i={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},l.start),e[c][1].start=Object.assign({},i.end),a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=j(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=j(a,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",o,t]]),a=j(a,ve(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=j(a,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):s=0,z(e,n-1,c-n+3,a),c=n+a.length-s-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function Xe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Je={42:xe,43:xe,45:xe,48:xe,49:xe,50:xe,51:xe,52:xe,53:xe,54:xe,55:xe,56:xe,57:xe,62:we},Ze={91:Te},et={[-2]:Fe,[-1]:Fe,32:Fe},tt={35:De,42:be,45:[Le,be],60:ze,61:Le,95:be,96:Ne,126:Ne},nt={38:He,92:$e},rt={[-5]:Ve,[-4]:Ve,[-3]:Ve,33:{name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:qe.resolveAll},38:He,42:Ye,60:[{name:"autolink",tokenize:function(e,t,n){let r=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return H(t)?(e.consume(t),l):Q(t)?a(t):n(t)}function l(e){return 43===e||45===e||46===e||q(e)?i(e):a(e)}function i(t){return 58===t?(e.consume(t),u):(43===t||45===t||46===t||q(t))&&r++<32?(e.consume(t),i):a(t)}function u(t){return 62===t?(e.exit("autolinkProtocol"),d(t)):null===t||32===t||60===t||W(t)?n(t):(e.consume(t),u)}function a(t){return 64===t?(e.consume(t),r=0,s):Q(t)?(e.consume(t),a):n(t)}function s(e){return q(e)?c(e):n(e)}function c(t){return 46===t?(e.consume(t),r=0,s):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",d(t)):f(t)}function f(t){return(45===t||q(t))&&r++<63?(e.consume(t),45===t?f:c):n(t)}function d(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}},{name:"htmlText",tokenize:function(e,t,n){const r=this;let o,l,i,u;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),E):63===t?(e.consume(t),x):H(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),l="CDATA[",i=0,h):H(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function f(t){return null===t||62===t?n(t):45===t?(e.consume(t),d):p(t)}function d(e){return null===e||62===e?n(e):p(e)}function p(t){return null===t?n(t):45===t?(e.consume(t),m):Y(t)?(u=p,D(t)):(e.consume(t),p)}function m(t){return 45===t?(e.consume(t),M):p(t)}function h(t){return t===l.charCodeAt(i++)?(e.consume(t),i===l.length?g:h):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),v):Y(t)?(u=g,D(t)):(e.consume(t),g)}function v(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?M(t):93===t?(e.consume(t),y):g(t)}function b(t){return null===t||62===t?M(t):Y(t)?(u=b,D(t)):(e.consume(t),b)}function x(t){return null===t?n(t):63===t?(e.consume(t),k):Y(t)?(u=x,D(t)):(e.consume(t),x)}function k(e){return 62===e?M(e):x(e)}function E(t){return H(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||q(t)?(e.consume(t),w):C(t)}function C(t){return Y(t)?(u=C,D(t)):X(t)?(e.consume(t),C):M(t)}function S(t){return 45===t||q(t)?(e.consume(t),S):47===t||62===t||G(t)?I(t):n(t)}function I(t){return 47===t?(e.consume(t),M):58===t||95===t||H(t)?(e.consume(t),P):Y(t)?(u=I,D(t)):X(t)?(e.consume(t),I):M(t)}function P(t){return 45===t||46===t||58===t||95===t||q(t)?(e.consume(t),P):R(t)}function R(t){return 61===t?(e.consume(t),T):Y(t)?(u=R,D(t)):X(t)?(e.consume(t),R):I(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):Y(t)?(u=T,D(t)):X(t)?(e.consume(t),T):(e.consume(t),o=void 0,O)}function A(t){return t===o?(e.consume(t),F):null===t?n(t):Y(t)?(u=A,D(t)):(e.consume(t),A)}function F(e){return 62===e||47===e||G(e)?I(e):n(e)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||G(t)?I(t):(e.consume(t),O)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),te(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function L(t){return e.enter("htmlTextData"),u(t)}function M(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}}],91:{name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:qe.resolveAll},92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),r};function r(r){return Y(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(r)):n(r)}}},$e],93:qe,95:Ye,96:{name:"codeText",tokenize:function(e,t,n){let r,o,l=0;
1return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),l++,i):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):96===t?(o=e.enter("codeTextSequence"),r=0,s(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):Y(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),a(t))}function a(t){return null===t||32===t||96===t||Y(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),a)}function s(n){return 96===n?(e.consume(n),r++,s):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",a(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},ot={null:[Ye,fe]},lt={null:[42,95]},it={null:[]};function ut(e={}){const t={defined:[],lazy:{},constructs:function(e){const t={};let n=-1;for(;++n<e.length;)_(t,e[n]);return t}([r].concat(e.extensions||[])),content:n(ne),document:n(re),flow:n(ce),string:n(de),text:n(pe)};return t;function n(e){return function(n){return ye(t,e,n)}}}const at=/[\0\t\n\r]/g;function st(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}const ct=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ft(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return st(n.slice(t?2:1),t?16:10)}return Ue(n)||e}const dt={}.hasOwnProperty,pt=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e={}){const t=mt({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(le),autolinkProtocol:T,autolinkEmail:T,atxHeading:s(te),blockQuote:s(Y),characterEscape:T,characterReference:T,codeFenced:s(X),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(X,c),codeText:s(J,c),codeTextData:T,data:T,codeFlowValue:T,definition:s(Z),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(ee),hardBreakEscape:s(ne),hardBreakTrailing:s(ne),htmlFlow:s(re,c),htmlFlowData:T,htmlText:s(re,c),htmlTextData:T,image:s(oe),label:c,link:s(le),listItem:s(ue),listItemValue:g,listOrdered:s(ie,h),listUnordered:s(ie),paragraph:s(ae),reference:V,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(te),strong:s(se),thematicBreak:s(fe)},exit:{atxHeading:d(),atxHeadingSequence:S,autolink:d(),autolinkEmail:G,autolinkProtocol:W,blockQuote:d(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:Q,codeFenced:d(x),codeFencedFence:b,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:A,codeIndented:d(k),codeText:d(B),codeTextData:A,data:A,definition:d(),definitionDestinationString:C,definitionLabelString:E,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(O),hardBreakTrailing:d(O),htmlFlow:d(D),htmlFlowData:A,htmlText:d(L),htmlTextData:A,image:d(j),label:_,labelText:N,lineEnding:F,link:d(z),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:q,resourceDestinationString:U,resourceTitleString:H,resource:$,setextHeading:d(R),setextHeadingLineSequence:P,setextHeadingText:I,strong:d(),thematicBreak:d()}},e.mdastExtensions||[]),n={};return r;function r(e){let n={type:"root",children:[]};const r=[],u=[],s={stack:[n],tokenStack:r,config:t,enter:f,exit:p,buffer:c,resume:m,setData:l,getData:i};let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])u.push(d);else{d=o(e,u.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];dt.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(r.length>0){const e=r[r.length-1];(e[1]||gt).call(s,void 0,e[0])}for(n.position={start:a(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:a(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)n=t.transforms[d](n)||n;return n}function o(e,t,n){let r,o,l,i,u=t-1,a=-1,s=!1;for(;++u<=n;){const t=e[u];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?a++:a--,i=void 0):"lineEndingBlank"===t[1].type?"enter"
1===t[0]&&(!r||i||a||l||(l=u),i=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(i=void 0),!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=u;for(o=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",s=!0),t[1].type="lineEnding",o=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}l&&(!o||l<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||u,0,["exit",r,t[2]]),u++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(u,0,["enter",r,t[2]]),u++,n++,l=void 0,i=!0)}}return e[t][1]._spread=s,n}function l(e,t){n[e]=t}function i(e){return n[e]}function a(e){return{line:e.line,column:e.column,offset:e.offset}}function s(e,t){return n;function n(n){f.call(this,e(n),n),t&&t.call(this,n)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:a(t.start)},e}function d(e){return t;function t(t){e&&e.call(this,t),p.call(this,t)}}function p(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||gt).call(this,e,r[0])}return n.position.end=a(e.end),n}function m(){return function(e,t){var{includeImageAlt:n=!0}=t||{};return M(e,n)}(this.stack.pop())}function h(){l("expectingFirstListItemValue",!0)}function g(e){if(i("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),l("expectingFirstListItemValue")}}function v(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function y(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function b(){i("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}function k(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function E(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Re(this.sliceSerialize(e)).toLowerCase()}function w(){const e=this.resume();this.stack[this.stack.length-1].title=e}function C(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function I(){l("setextHeadingSlurpLineEnding",!0)}function P(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function R(){l("setextHeadingSlurpLineEnding")}function T(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n=ce(),n.position={start:a(e.start)},t.children.push(n)),this.stack.push(n)}function A(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=a(e.end)}function F(e){const n=this.stack[this.stack.length-1];if(i("atHardBreak")){return n.children[n.children.length-1].position.end=a(e.end),void l("atHardBreak")}!i("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(T.call(this,e),A.call(this,e))}function O(){l("atHardBreak",!0)}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function L(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){const e=this.resume();this.stack[this.stack.length-1].value=e}function z(){const e=this.stack[this.stack.length-1];i("inReference")?(e.type+="Reference",e.referenceType=i("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),l("referenceType")}function j(){const e=this.stack[this.stack.length-1];i("inReference")?(e.type+="Reference",e.referenceType=i("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),l("referenceType")}function N(e){const t=this.stack[this.stack.length-2],n=this.sliceSerialize(e);t.label=function(e){return e.replace(ct,ft)}(n),t.identifier=Re(n).toLowerCase()}function _(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];l("inReference",!0),"link"===n.type?n.children=e.children:n.alt=t}function U(){const e=this.resume();this.stack[this.stack.length-1].url=e}function H(){const e=this.resume();this.stack[this.stack.length-1].title=e}function $(){l("inReference")}function V(){l("referenceType","collapsed")}function q(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Re(this.sliceSerialize(e)).toLowerCase(),l("referenceType","full")}function K(e){l("characterReferenceType",e.type)}function Q(e){const t=this.sliceSerialize(e),n=i("characterReferenceType");let r;n?(r=st(t,"characterReferenceMarkerNumeric"===n?10:16),l("characterReferenceType")):r=Ue(t);const o=this.stack.pop();o.value+=r,o.position.end=a(e.end)}function W(e){A.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){A.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ee(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:void 0,children:[]}}function ne(){return{type:"break"}}function re(){return{type:"html",value:""}}function oe(){return{type:"image",title:null,url:"",alt:null}}function le(){return{type:"link",title:null,url:"",children:[]}}function ie(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ue(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function fe(){return{type:"thematicBreak"}}}(n)(function(e){for(;!ie(e););return e}(ut(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,l,i){const u=[];let a,s,c,f,d;
1for(o=n+o.toString(l),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(at.lastIndex=c,a=at.exec(o),f=a&&void 0!==a.index?a.index:o.length,d=o.charCodeAt(f),!a){n=o.slice(c);break}if(10===d&&c===f&&e)u.push(-3),e=void 0;else switch(e&&(u.push(-5),e=void 0),c<f&&(u.push(o.slice(c,f)),t+=f-c),d){case 0:u.push(65533),t++;break;case 9:for(s=4*Math.ceil(t/4),u.push(-2);t++<s;)u.push(-1);break;case 10:u.push(-4),t=1;break;default:e=!0,t=1}c=f+1}return i&&(e&&u.push(-5),n&&u.push(n),u.push(null)),u}}()(e,t,!0))))};function mt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?mt(e,r):ht(e,r)}return e}function ht(e,t){let n;for(n in t)if(dt.call(t,n)){const r="canContainEols"===n||"transforms"===n,o=(dt.call(e,n)?e[n]:void 0)||(e[n]=r?[]:{}),l=t[n];l&&(r?e[n]=[...o,...l]:Object.assign(o,l))}}function gt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is still open")}var vt=function(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return pt(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},yt=function(e,t,n){var r={type:String(e)};return void 0!==n&&null!==n||"string"!==typeof t&&!Array.isArray(t)?Object.assign(r,t):n=t,Array.isArray(n)?r.children=n:void 0!==n&&null!==n&&(r.value=String(n)),r};const bt=function(e){if(void 0===e||null===e)return kt;if("string"===typeof e)return function(e){return xt(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bt(e[n]);return xt(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}(e):function(e){return xt(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return xt(e);throw new Error("Expected function, string, or object as test")};function xt(e){return function(...t){return Boolean(e.call(this,...t))}}function kt(){return!0}const Et=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null);const o=bt(t),l=r?-1:1;!function e(i,u,a){const s="object"===typeof i&&null!==i?i:{};let c;"string"===typeof s.type&&(c="string"===typeof s.tagName?s.tagName:"string"===typeof s.name?s.name:void 0,Object.defineProperty(f,"name",{value:"node ("+s.type+(c?"<"+c+">":"")+")"}));return f;function f(){let s,c,f,d=[];if((!t||o(i,u,a[a.length-1]||null))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(i,a)),false===d[0]))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+l,f=a.concat(i);c>-1&&c<i.children.length;){if(s=e(i.children[c],c,f)(),false===s[0])return s;c="number"===typeof s[1]?s[1]:c+l}return d}}(e,null,[])()};const wt=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null),Et(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}
1),r)};var Ct=It("start"),St=It("end");function It(e){return function(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const Pt=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null);var o=bt(t),l=r?-1:1;!function e(i,u,a){var s,c="object"===typeof i&&null!==i?i:{};"string"===typeof c.type&&(s="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(s?"<"+s+">":"")+")"}));return f;function f(){var s,c,f,d=[];if((!t||o(i,u,a[a.length-1]||null))&&false===(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(i,a)))[0])return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+l,f=a.concat(i);c>-1&&c<i.children.length;){if(false===(s=e(i.children[c],c,f)())[0])return s;c="number"===typeof s[1]?s[1]:c+l}return d}}(e,null,[])()};const Rt={}.hasOwnProperty;function Tt(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");var n,r,o;return r=function(e){const n=At(e.identifier);n&&!Rt.call(t,n)&&(t[n]=e)},"function"===typeof(n="definition")&&"function"!==typeof r&&(o=r,r=n,n=null),Pt(e,n,(function(e,t){var n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),o),function(e){const n=At(e);return n&&Rt.call(t,n)?t[n]:null}}function At(e){return String(e||"").toUpperCase()}const Ft={}.hasOwnProperty;function Ot(e,t){const n=t.data||{};return"value"in t&&!(Ft.call(n,"hName")||Ft.call(n,"hProperties")||Ft.call(n,"hChildren"))?e.augment(t,yt("text",t.value)):e(t,"div",Mt(e,t))}function Dt(e,t,n){const r=t&&t.type;let o;if(!r)throw new Error("Expected node, got `"+t+"`");return o=Ft.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Lt:e.unknownHandler,("function"===typeof o?o:Ot)(e,t,n)}function Lt(e,t){return"children"in t?{...t,children:Mt(e,t)}:t}function Mt(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const l=Dt(e,r[o],t);if(l){if(o&&"break"===r[o-1].type&&(Array.isArray(l)||"text"!==l.type||(l.value=l.value.replace(/^\s+/,"")),!Array.isArray(l)&&"element"===l.type)){const e=l.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(l)?n.push(...l):n.push(l)}}}return n}const Bt={'"':"quot","&":"amp","<":"lt",">":"gt"};function zt(e,t){const n=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Bt[e]+";"}))}(function(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const l=e.charCodeAt(n);let i="";if(37===l&&q(e.charCodeAt(n+1))&&q(e.charCodeAt(n+2)))o=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){const t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(i=String.fromCharCode(l,t),o=1):i="\ufffd"}else i=String.fromCharCode(l);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}(e||""));if(!t)return n;const r=n.indexOf(":"),o=n.indexOf("?"),l=n.indexOf("#"),i=n.indexOf("/");return r<0||i>-1&&r>i||o>-1&&r>o||l>-1&&r>l||t.test(n.slice(0,r))?n:""}function jt(e,t){const n=[];let r=-1;for(t&&n.push(yt("text","\n"));++r<e.length;)r&&n.push(yt("text","\n")),n.push(e[r]);return t&&e.length>0&&n.push(yt("text","\n")),n}function Nt(e,t){const n=String(t.identifier),r=zt(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let l;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,l=e.footnoteOrder.length):(e.footnoteCounts[n]++,l=o+1);const i=e.footnoteCounts[n];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[yt("text",String(l))])])}var _t=n(729);function Ut(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return yt("text","!["+t.alt+r);const o=Mt(e,t),l=o[0];l&&"text"===l.type?l.value="["+l.value:o.unshift(yt("text","["));const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push(yt("text",r)),o}function Ht(e){const t=e.spread;return void 0===t||null===t?e.children.length>1:t}const $t={blockquote:function(e,t){return e(t,"blockquote",jt(Mt(e,t),!0))},break:function(e,t){return[e(t,"br"),yt("text","\n")]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const l=e(t,"code",o,[yt("text",n)]);return t.meta&&(l.data={meta:t.meta}),e(t.position,"pre",[l])},delete:function(e,t){return e(t,"del",Mt(e,t))},emphasis:function(e,t){return e(t,"em",Mt(e,t))},footnoteReference:Nt,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Nt(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,Mt(e,t))},html:function(e,t){return e.dangerous?e.augment(t,yt("raw",t.value)):null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Ut(e,t);const r={src:_t(n.url||""),alt:t.alt};return null!==n.title&&void 0!==n.title&&(r.title=n.title),e(t,"img",r)},image:function(e,t){const n={src:_t(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)},inlineCode:function(e,t){return e(t,"code",[yt("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Ut(e,t);const r={href:_t(n.url||"")};return null!==n.title&&void 0!==n.title&&(r.title=n.title),e(t,"a",r,Mt(e,t))},link:function(e,t){const n={href:_t(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,Mt(e,t))},listItem:function(e,t,n){const r=Mt(e,t),o=n?function(e){let t=e.spread;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ht(n[r]);return Boolean(t)}(n):Ht(t),l={},i=[];if("boolean"===typeof t.checked){let n;r[0]&&"element"===r[0].type&&"p"===r[0].tagName?n=r[0]:(n=e(null,"p",[]),r.unshift(n)),n.children.length>0&&n.children.unshift(yt("text"," ")),n.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),l.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const e=r[u];(o||0!==u||"element"!==e.type||"p"!==e.tagName)&&i.push(yt("text","\n")),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const a=r[r.length-1];return!a||!o&&"tagName"in a&&"p"===a.tagName||i.push(yt("text","\n")),e(t,"li",l,i)},list:function(e,t){const n={},r=t.ordered?"ol":"ul",o=Mt(e,t);let l=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++l<o.length;){const e=o[l];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}return e(t,r,n,jt(o,!0))},paragraph:function(e,t){return e(t,"p",Mt(e,t))},root:function(e,t){return e.augment(t,yt("root",jt(Mt(e,t))))},strong:function(e,t){return e(t,"strong",Mt(e,t))},table:function(e,t){const n=t.children;let r=-1;const o=t.align||[],l=[];for(;++r<n.length;){const i=n[r].children,u=0===r?"th":"td",a=[];let s=-1;const c=t.align?o.length:i.length;for(;++s<c;){const t=i[s];a.push(e(t,u,{align:o[s]},t?Mt(e,t):[]))}l[r]=e(n[r],"tr",jt(a,!0))}return e(t,"table",jt([e(l[0].position,"thead",jt([l[0]],!0))].concat(l[1]?e({start:Ct(l[1]),end:St(l[l.length-1])},"tbody",jt(l.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,yt("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,t){return e(t,"hr")},toml:Vt,yaml:Vt,definition:Vt,footnoteDefinition:Vt};function Vt(){return null}const qt={}.hasOwnProperty;function Kt(e,t){const n=function(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return i.dangerous=r,i.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,i.footnoteLabel=n.footnoteLabel||"Footnotes",i.footnoteBackLabel=n.footnoteBackLabel||"Back to content",i.definition=Tt(e),i.footnoteById=o,i.footnoteOrder=[],i.footnoteCounts={},i.augment=l,i.handlers={...$t,...n.handlers},i.unknownHandler=n.unknownHandler,i.passThrough=n.passThrough,wt(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();qt.call(o,t)||(o[t]=e)})),i;function l(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const r="type"in e?e:{position:e};(n=r)&&n.position&&n.position.start&&n.position.start.line&&n.position.start.column&&n.position.end&&n.position.end.line&&n.position.end.column&&(t.position={start:Ct(r),end:St(r)})}var n;return t}function i(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),l(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=Dt(n,e,null),o=function(e){let t=-1;const n=[];for(;++t<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!r)continue;const o=Mt(e,r),l=String(r.identifier),i=zt(l.toLowerCase());let u=0;const a=[];for(;++u<=e.footnoteCounts[l];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(t)}const s=o[o.length-1];if(s&&"element"===s.type&&"p"===s.tagName){const e=s.children[s.children.length-1];e&&"text"===e.type?e.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...a)}else o.push(...a);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:jt(o,!0)};r.position&&(c.position=r.position),n.push(c)}return 0===n.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[yt("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:jt(n,!0)}
1,{type:"text",value:"\n"}]}}(n);return o&&r.children.push(yt("text","\n"),o),Array.isArray(r)?{type:"root",children:r}:r}var Qt=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(Kt(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>Kt(t,e)}(e||t)};var Wt=n(5697);class Gt{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Yt(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Gt(n,r,t)}function Xt(e){return e.toLowerCase()}Gt.prototype.property={},Gt.prototype.normal={},Gt.prototype.space=null;class Jt{constructor(e,t){this.property=e,this.attribute=t}}Jt.prototype.space=null,Jt.prototype.boolean=!1,Jt.prototype.booleanish=!1,Jt.prototype.overloadedBoolean=!1,Jt.prototype.number=!1,Jt.prototype.commaSeparated=!1,Jt.prototype.spaceSeparated=!1,Jt.prototype.commaOrSpaceSeparated=!1,Jt.prototype.mustUseProperty=!1,Jt.prototype.defined=!1;let Zt=0;const en=an(),tn=an(),nn=an(),rn=an(),on=an(),ln=an(),un=an();function an(){return 2**++Zt}const sn=Object.keys(o);class cn extends Jt{constructor(e,t,n,r){let l=-1;if(super(e,t),fn(this,"space",r),"number"===typeof n)for(;++l<sn.length;){const e=sn[l];fn(this,sn[l],(n&o[e])===o[e])}}}function fn(e,t,n){n&&(e[t]=n)}cn.prototype.defined=!0;const dn={}.hasOwnProperty;function pn(e){const t={},n={};let r;for(r in e.properties)if(dn.call(e.properties,r)){const o=e.properties[r],l=new cn(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Xt(r)]=r,n[Xt(l.attribute)]=r}return new Gt(t,n,e.space)}const mn=pn({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),hn=pn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function gn(e,t){return t in e?e[t]:t}function vn(e,t){return gn(e,t.toLowerCase())}const yn=pn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vn,properties:{xmlns:null,xmlnsXLink:null}}),bn=pn({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:tn,ariaAutoComplete:null,ariaBusy:tn,ariaChecked:tn,ariaColCount:rn,ariaColIndex:rn,ariaColSpan:rn,ariaControls:on,ariaCurrent:null,ariaDescribedBy:on,ariaDetails:null,ariaDisabled:tn,ariaDropEffect:on,ariaErrorMessage:null,ariaExpanded:tn,ariaFlowTo:on,ariaGrabbed:tn,ariaHasPopup:null,ariaHidden:tn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:on,ariaLevel:rn,ariaLive:null,ariaModal:tn,ariaMultiLine:tn,ariaMultiSelectable:tn,ariaOrientation:null,ariaOwns:on,ariaPlaceholder:null,ariaPosInSet:rn,ariaPressed:tn,ariaReadOnly:tn,ariaRelevant:null,ariaRequired:tn,ariaRoleDescription:on,ariaRowCount:rn,ariaRowIndex:rn,ariaRowSpan:rn,ariaSelected:tn,ariaSetSize:rn,ariaSort:null,ariaValueMax:rn,ariaValueMin:rn,ariaValueNow:rn,ariaValueText:null,role:null}}),xn=pn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ln,acceptCharset:on,accessKey:on,action:null,allow:null,allowFullScreen:en,allowPaymentRequest:en,allowUserMedia:en,alt:null,as:null,async:en,autoCapitalize:null,autoComplete:on,autoFocus:en,autoPlay:en,capture:en,charSet:null,checked:en,cite:null,className:on,cols:rn,colSpan:null,content:null,contentEditable:tn,controls:en,controlsList:on,coords:rn|ln,crossOrigin:null,data:null,dateTime:null,decoding:null,default:en,defer:en,dir:null,dirName:null,disabled:en,download:nn,draggable:tn,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:en,formTarget:null,headers:on,height:rn,hidden:en,high:rn,href:null,hrefLang:null,htmlFor:on,httpEquiv:on,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:en,itemId:null,itemProp:on,itemRef:on,itemScope:en,itemType:
1on,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:en,low:rn,manifest:null,max:null,maxLength:rn,media:null,method:null,min:null,minLength:rn,multiple:en,muted:en,name:null,nonce:null,noModule:en,noValidate:en,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint: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,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:en,optimum:rn,pattern:null,ping:on,placeholder:null,playsInline:en,poster:null,preload:null,readOnly:en,referrerPolicy:null,rel:on,required:en,reversed:en,rows:rn,rowSpan:rn,sandbox:on,scope:null,scoped:en,seamless:en,selected:en,shape:null,size:rn,sizes:null,slot:null,span:rn,spellCheck:tn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rn,step:null,style:null,tabIndex:rn,target:null,title:null,translate:null,type:null,typeMustMatch:en,useMap:null,value:tn,width:rn,wrap:null,align:null,aLink:null,archive:on,axis:null,background:null,bgColor:null,border:rn,borderColor:null,bottomMargin:rn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:en,declare:en,event:null,face:null,frame:null,frameBorder:null,hSpace:rn,leftMargin:rn,link:null,longDesc:null,lowSrc:null,marginHeight:rn,marginWidth:rn,noResize:en,noHref:en,noShade:en,noWrap:en,object:null,profile:null,prompt:null,rev:null,rightMargin:rn,rules:null,scheme:null,scrolling:tn,standby:null,summary:null,text:null,topMargin:rn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:en,disableRemotePlayback:en,prefix:null,property:null,results:rn,security:null,unselectable:null}}),kn=pn({space:"svg",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",navDown:"nav-down",navDownLeft:"nav
1-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",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"},transform:gn,properties:{about:un,accentHeight:rn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rn,amplitude:rn,arabicForm:null,ascent:rn,attributeName:null,attributeType:null,azimuth:rn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rn,by:null,calcMode:null,capHeight:rn,className:on,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:rn,diffuseConstant:rn,direction:null,display:null,dur:null,divisor:rn,dominantBaseline:null,download:en,dx:null,dy:null,edgeMode:null,editable:null,elevation:rn,enableBackground:null,end:null,event:null,exponent:rn,externalResourcesRequired:null,fill:null,fillOpacity:rn,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:ln,g2:ln,glyphName:ln,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rn,horizOriginX:rn,horizOriginY:rn,id:null,ideographic:rn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rn,k:rn,k1:rn,k2:rn,k3:rn,k4:rn,kernelMatrix:un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rn,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,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rn,overlineThickness:rn,paintOrder:null,panose1:null,path:null,pathLength:rn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:on,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rn,pointsAtY:rn,pointsAtZ:rn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:un,rev:un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:un,requiredFeatures:un,requiredFonts:un,requiredFormats:un,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:rn,specularExponent:rn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rn,strikethroughThickness:rn,string:null,stroke:null,strokeDashArray:un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rn,strokeOpacity:rn,strokeWidth:null,style:null,surfaceScale:rn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:un,tabIndex:rn,tableValues:null,target:null,targetX:rn,targetY:rn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:un,to:null,transform:null,u1:null,u2:null,underlinePosition:rn,underlineThickness:rn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rn,values:null,vAlphabetic:rn,vMathematical:rn,vectorEffect:null,vHanging:rn,vIdeographic:rn,version:null,vertAdvY:rn,vertOriginX:rn,vertOriginY:rn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),En=Yt([hn,mn,yn,bn,xn],"html"),wn=Yt([hn,mn,yn,bn,kn],"svg");function Cn(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{wt(t,"element",((t,n,r)=>{const o=r;let l;if(e.allowedElements?l=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(l=e.disallowedElements.includes(t.tagName)),!l&&e.allowElement&&"number"===typeof n&&(l=!e.allowElement(t,n,o)),l&&"number"===typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}const Sn=["http","https","mailto","tel"];var In=n(2143);function Pn(e){var t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const Rn=/^data[-\w.:]+$/i,Tn=/-[a-z]/g,An=/[A-Z]/g;function Fn(e){return"-"+e.toLowerCase()}function On(e){return e.charAt(1).toUpperCase()}const Dn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Ln=n(7848);const Mn={}.hasOwnProperty,Bn=new Set(["table","thead","tbody","tfoot","tr"]);function zn(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(jn(e,r,o,t)):"text"===r.type?"element"===t.type&&Bn.has(t.tagName)&&Pn(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function jn(e,t,n,r){const o=e.options,i=e.schema,u=t.tagName,a={};let s,c=i;if("html"===i.space&&"svg"===u&&(c=wn,e.schema=c),t.properties)for(s in t.properties)Mn.call(t.properties,s)&&_n(a,s,t.properties[s],e);"ol"!==u&&"ul"!==u||e.listDepth++;const f=zn(e,t);"ol"!==u&&"ul"!==u||e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=o.components&&Mn.call(o.components,u)?o.components[u]:u,m="string"===typeof p||p===l.Fragment;if(!In.isValidElementType(p))throw new TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(a.key=[u,d.start.line,d.start.column,n].join("-"),"a"===u&&o.linkTarget&&(a.target="function"===typeof o.linkTarget?o.linkTarget(String(a.href||""),t.children,"string"===typeof a.title?a.title:null):o.linkTarget),"a"===u&&o.transformLinkUri&&(a.href=o.transformLinkUri(String(a.href||""),t.children,"string"===typeof a.title?a.title:null)),m||"code"!==u||"element"!==r.type||"pre"===r.tagName||(a.inline=!0),m||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(a.level=Number.parseInt(u.charAt(1),10)),"img"===u&&o.transformImageUri&&(a.src=o.transformImageUri(String(a.src||""),String(a.alt||""),"string"===typeof a.title?a.title:null)),!m&&"li"===u&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);a.checked=e&&e.properties?Boolean(e.properties.checked):null,a.index=Nn(r,t),a.ordered="ol"===r.tagName}var h;return m||"ol"!==u&&"ul"!==u||(a.ordered="ol"===u,a.depth=e.listDepth),"td"!==u&&"th"!==u||(a.align&&(a.style||(a.style={}),a.style.textAlign=a.align,delete a.align),m||(a.isHeader="th"===u)),m||"tr"!==u||"element"!==r.type||(a.isHeader=Boolean("thead"===r.tagName)),o.sourcePos&&(a["data-sourcepos"]=[(h=d).start.line,":",h.start.column,"-",h.end.line,":",h.end.column].map((e=>String(e))).join("")),!m&&o.rawSourcePos&&(a.sourcePosition=t.position),!m&&o.includeElementIndex&&(a.index=Nn(r,t),a.siblingCount=Nn(r)),m||(a.node=t),f.length>0?l.createElement(p,a,f):l.createElement(p,a)}function Nn(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function _n(e,t,n,r){const o=function(e,t){const n=Xt(t);let r=t,o=Jt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Rn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Tn,On);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Tn.test(e)){let n=e.replace(An,Fn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=cn}return new o(r,t)}(r.schema,t);let l=n;null!==l&&void 0!==l&&l===l&&(Array.isArray(l)&&(l=o.commaSeparated?function(e,t){var n=t||{};return""===e[e.length-1]&&(e=e.concat("")),e.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(l):l.join(" ").trim()),"style"===o.property&&"string"===typeof l&&(l=function(e){const t={};try{Ln(e,n)}catch{}return t;function n(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,Un)]=n}}(l)),o.space&&o.property?e[Mn.call(Dn,o.property)?Dn[o.property]:o.property]=l:o.attribute&&(e[o.attribute]=l))}function Un(e,t){return t.toUpperCase()}const Hn={}.hasOwnProperty,$n={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Vn(e){for(const l in $n)if(Hn.call($n,l)&&Hn.call(e,l)){const e=$n[l];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${l}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete $n[l]}const t=I().use(vt).use(e.remarkPlugins||[]).use(Qt,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Cn,e),n=new y;"string"===typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=l.createElement(l.Fragment,{},zn({options:e,schema:En,listDepth:0},r));return e.className&&(o=l.createElement("div",{className:e.className},o)),o}Vn.defaultProps={transformLinkUri:function(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<Sn.length;){const e=Sn[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return o=t.indexOf("?"),-1!==o&&r>o?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}},Vn.propTypes={children:Wt.string,className:Wt.string,allowElement:Wt.func,allowedElements:Wt.arrayOf(Wt.string),disallowedElements:Wt.arrayOf(Wt.string),unwrapDisallowed:Wt.bool,remarkPlugins:Wt.arrayOf(Wt.oneOfType([Wt.object,Wt.func,Wt.arrayOf(Wt.oneOfType([Wt.object,Wt.func]))])),rehypePlugins:Wt.arrayOf(Wt.oneOfType([Wt.object,Wt.func,Wt.arrayOf(Wt.oneOfType([Wt.object,Wt.func]))])),sourcePos:Wt.bool,rawSourcePos:Wt.bool,ski
1pHtml:Wt.bool,includeElementIndex:Wt.bool,transformLinkUri:Wt.oneOfType([Wt.func,Wt.bool]),linkTarget:Wt.oneOfType([Wt.func,Wt.string]),transformImageUri:Wt.func,components:Wt.object}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.