@shepai/cli 1.72.0 → 1.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +5 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/cache/.previewinfo +1 -1
- package/web/.next/cache/.rscinfo +1 -1
- package/web/.next/cache/.tsbuildinfo +1 -1
- package/web/.next/cache/config.json +3 -3
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +14 -14
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +17 -17
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +14 -14
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +17 -17
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07385073._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07385073._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6db85a66._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8fcb9132._.js +2 -2
- package/web/.next/server/chunks/ssr/_00e6c698._.js +1 -1
- package/web/.next/server/chunks/ssr/_00e6c698._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_37259405._.js +1 -1
- package/web/.next/server/chunks/ssr/_37259405._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_326c615c._.js → _48935b11._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_326c615c._.js.map → _48935b11._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_85d0351b._.js +1 -1
- package/web/.next/server/chunks/ssr/_85d0351b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_fc3a6895._.js +1 -1
- package/web/.next/server/chunks/ssr/_fc3a6895._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +20 -20
- package/web/.next/standalone/src/presentation/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/src/presentation/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/src/presentation/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/src/presentation/web/.next/required-server-files.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +14 -14
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +17 -17
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +14 -14
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +17 -17
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__07385073._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6db85a66._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__8fcb9132._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_00e6c698._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_37259405._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/{_326c615c._.js → _48935b11._.js} +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_85d0351b._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_fc3a6895._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.json +20 -20
- package/web/.next/standalone/src/presentation/web/components/common/base-drawer/base-drawer.tsx +4 -0
- package/web/.next/standalone/src/presentation/web/server.js +1 -1
- package/web/.next/static/chunks/{782a2a325d33916e.js → 03d33ef0225f01ed.js} +1 -1
- package/web/.next/static/chunks/{d063d1ee549e36c1.js → 34abde74bbbcf2a7.js} +1 -1
- package/web/.next/static/chunks/{eab4c5668703be61.js → 40056cc7a83dbc74.js} +1 -1
- package/web/.next/static/chunks/{3b841f29db9a3da9.js → 826098f4effdc320.js} +1 -1
- package/web/.next/static/chunks/{c1e2dd0ea2411684.js → 858e98ff8bec6b19.js} +1 -1
- package/web/.next/static/chunks/{4ad5002ab597037c.js → af0b5ed9f7772209.js} +1 -1
- package/web/.next/static/chunks/{d58c232421d2eb76.js → c49356a5aa45e9f6.js} +1 -1
- package/web/.next/static/chunks/{f76236b7baf672dc.js → f05904554c809e13.js} +1 -1
- package/web/.next/trace +1 -1
- package/web/.next/trace-build +1 -1
- /package/web/.next/static/{cheZlPwpJASMO-UbgLmQk → wZm2E7aeoaHgqBeiAY-EL}/_buildManifest.js +0 -0
- /package/web/.next/static/{cheZlPwpJASMO-UbgLmQk → wZm2E7aeoaHgqBeiAY-EL}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{cheZlPwpJASMO-UbgLmQk → wZm2E7aeoaHgqBeiAY-EL}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69090,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function p(e){var t=e.match(l);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function f(){var e={line:n,column:c};return function(t){return t.position=new h(e),g(i),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var l=Error(t.source+":"+n+":"+c+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=c,l.source=e,t.silent);else throw l}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,p(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(i);var v,b=[];for(x(b);v=function(){var e=f(),t=g(o);if(t){if(y(),!g(a))return m("property missing ':'");var n=g(s),l=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),l}}();)!1!==v&&(b.push(v),x(b));return b}},59596,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,l.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:l}=e;i?t(r,l,e):l&&((n=n||{})[r]=l)}),n};let l=r(e.r(69090))},51521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||i.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(o,u)).replace(l,s))}},63185,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(59596)),l=e.r(51521);function i(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,l.camelCase)(e,t)]=r)}),n}i.default=i,t.exports=i},75609,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===l.call(e)},s=function(e){if(!e||"[object Object]"!==l.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,l,i,o,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=c(d,n),d!==(l=c(t,n))&&(h&&l&&(s(l)||(i=a(l)))?(i?(i=!1,o=r&&a(r)?r:[]):o=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,o,l)})):void 0!==l&&u(d,{name:n,newValue:l}));return d}},36986,e=>{"use strict";var t=e.i(20314),n=e.i(79054),r=e.i(31406),l=e.i(60112),i=e.i(83428),o=e.i(67669),a=e.i(30702),s=e.i(3645);let u=(0,s.default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var c=e.i(24042),d=e.i(64970),p=e.i(17406),f=e.i(21023);let h=(0,f.createServerReference)("604a4f18da3a5df0acfadc36096feafc68fe140e67",f.callServer,void 0,f.findSourceMapURL,"approveFeature"),m=(0,f.createServerReference)("60c40cfdb89251fe57e9b48066e480b8c57d049b7e",f.callServer,void 0,f.findSourceMapURL,"rejectFeature"),g=(0,f.createServerReference)("407eb3e5fc2629c79e5843ff7fbe37829e3f0a0c48",f.callServer,void 0,f.findSourceMapURL,"getFeatureArtifact"),x=(0,f.createServerReference)("409d1eeac5a7a4cd3fe688097ef025a30cb5ec5edc",f.callServer,void 0,f.findSourceMapURL,"getResearchArtifact"),y=(0,f.createServerReference)("4034ea75339ce833d9bc9093e773812a17f4ed8ec9",f.callServer,void 0,f.findSourceMapURL,"getMergeReviewData");var v=e.i(12150),b=e.i(31777),k=e.i(63629),w=e.i(8361),j=e.i(8537),S=e.i(39443);e.i(1650);var C=e.i(11495);e.i(99348);var N=e.i(17466),E=e.i(45811),P=e.i(35364),I=e.i(81846),T=e.i(25235),D=e.i(2828);let M=(0,e.i(94237).cva)("inline-block shrink-0",{variants:{size:{sm:"size-5",md:"size-8",lg:"size-12"}},defaultVariants:{size:"md"}}),A=[{r:9,spline:"0.12 0 0.04 1",opacity:1},{r:8.2,spline:"0.16 0 0.08 1",opacity:.95},{r:7.4,spline:"0.20 0 0.12 1",opacity:.9},{r:6.6,spline:"0.25 0 0.16 1",opacity:.84},{r:5.8,spline:"0.30 0 0.20 1",opacity:.76},{r:5,spline:"0.36 0 0.25 1",opacity:.67},{r:4.2,spline:"0.42 0 0.31 1",opacity:.56},{r:3.4,spline:"0.48 0 0.37 1",opacity:.44},{r:2.6,spline:"0.55 0 0.44 1",opacity:.32},{r:1.8,spline:"0.62 0 0.52 1",opacity:.2},{r:1,spline:"0.70 0 0.60 1",opacity:.1}];function R({className:e,size:n="md",duration:r=5,...l}){return(0,t.jsxs)("svg",{"data-slot":"comet-spinner",role:"status","aria-label":"Loading",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:(0,b.cn)(M({size:n}),e),...l,children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:"comet-gooey",x:"-100%",y:"-100%",width:"300%",height:"300%",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"2.5"}),(0,t.jsx)("feColorMatrix",{mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -30",result:"goo"})]})}),(0,t.jsxs)("g",{filter:"url(#comet-gooey)",children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:`${r}s`,repeatCount:"indefinite"}),A.map(e=>(0,t.jsxs)("g",{children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"spline",values:"0 50 50;360 50 50",keyTimes:"0;1",keySplines:e.spline,dur:"1s",repeatCount:"indefinite"}),(0,t.jsx)("circle",{cx:"50",cy:"18",r:e.r,fill:"currentColor",opacity:e.opacity})]},e.r)),(0,t.jsxs)("circle",{cx:"50",cy:"50",r:"4",fill:"currentColor",opacity:"0.15",children:[(0,t.jsx)("animate",{attributeName:"r",values:"3;5;3",dur:"2s",repeatCount:"indefinite"}),(0,t.jsx)("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"2s",repeatCount:"indefinite"})]})]})]})}var L=e.i(71326),z=e.i(80986),z=z,O=e.i(30090),O=O;function F({status:e}){switch(e){case p.CiStatus.Success:return(0,t.jsxs)(I.Badge,{className:"border-transparent bg-green-50 text-green-700 hover:bg-green-50",children:[(0,t.jsx)(z.default,{className:"mr-1 h-3.5 w-3.5"}),"Passing"]});case p.CiStatus.Pending:return(0,t.jsxs)(I.Badge,{className:"border-transparent bg-yellow-50 text-yellow-700 hover:bg-yellow-50",children:[(0,t.jsx)(i.Loader2,{className:"mr-1 h-3.5 w-3.5 animate-spin"}),"Pending"]});case p.CiStatus.Failure:return(0,t.jsxs)(I.Badge,{className:"border-transparent bg-red-50 text-red-700 hover:bg-red-50",children:[(0,t.jsx)(O.default,{className:"mr-1 h-3.5 w-3.5"}),"Failing"]})}}e.i(81803);var _=e.i(72714),B=e.i(8986),H=e.i(38573),U=e.i(19933);let q=(0,s.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var V=e.i(33548),K=e.i(23925),$=e.i(51251),G=e.i(91967),W=e.i(5978),X=e.i(22528),Q=e.i(36589),Y=e.i(87620),J=e.i(87342),Z=e.i(66033),ee=e.i(53532),et=e.i(41687),en=e.i(56720),er=e.i(13123),el=e.i(52740),ei=e.i(39979),eo=e.i(85995),ea=e.i(51080),es=e.i(86874),eu=e.i(29297),ec=e.i(73772),ed=e.i(13044),ep=["Enter"," "],ef=["ArrowUp","PageDown","End"],eh=["ArrowDown","PageUp","Home",...ef],em={ltr:[...ep,"ArrowRight"],rtl:[...ep,"ArrowLeft"]},eg={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ex="Menu",[ey,ev,eb]=(0,J.createCollection)(ex),[ek,ew]=(0,X.createContextScope)(ex,[eb,el.createPopperScope,ea.createRovingFocusGroupScope]),ej=(0,el.createPopperScope)(),eS=(0,ea.createRovingFocusGroupScope)(),[eC,eN]=ek(ex),[eE,eP]=ek(ex),eI=e=>{let{__scopeMenu:r,open:l=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,u=ej(r),[c,d]=n.useState(null),p=n.useRef(!1),f=(0,eu.useCallbackRef)(a),h=(0,Z.useDirection)(o);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(el.Root,{...u,children:(0,t.jsx)(eC,{scope:r,open:l,onOpenChange:f,content:c,onContentChange:d,children:(0,t.jsx)(eE,{scope:r,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:i})})})};eI.displayName=ex;var eT=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=ej(r);return(0,t.jsx)(el.Anchor,{...i,...l,ref:n})});eT.displayName="MenuAnchor";var eD="MenuPortal",[eM,eA]=ek(eD,{forceMount:void 0}),eR=e=>{let{__scopeMenu:n,forceMount:r,children:l,container:i}=e,o=eN(eD,n);return(0,t.jsx)(eM,{scope:n,forceMount:r,children:(0,t.jsx)(eo.Presence,{present:r||o.open,children:(0,t.jsx)(ei.Portal,{asChild:!0,container:i,children:l})})})};eR.displayName=eD;var eL="MenuContent",[ez,eO]=ek(eL),eF=n.forwardRef((e,n)=>{let r=eA(eL,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,o=eN(eL,e.__scopeMenu),a=eP(eL,e.__scopeMenu);return(0,t.jsx)(ey.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(eo.Presence,{present:l||o.open,children:(0,t.jsx)(ey.Slot,{scope:e.__scopeMenu,children:a.modal?(0,t.jsx)(e_,{...i,ref:n}):(0,t.jsx)(eB,{...i,ref:n})})})})}),e_=n.forwardRef((e,r)=>{let l=eN(eL,e.__scopeMenu),i=n.useRef(null),o=(0,W.useComposedRefs)(r,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,ec.hideOthers)(e)},[]),(0,t.jsx)(eU,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:l.open,disableOutsideScroll:!0,onFocusOutside:(0,G.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>l.onOpenChange(!1)})}),eB=n.forwardRef((e,n)=>{let r=eN(eL,e.__scopeMenu);return(0,t.jsx)(eU,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eH=(0,es.createSlot)("MenuContent.ScrollLock"),eU=n.forwardRef((e,r)=>{let{__scopeMenu:l,loop:i=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...x}=e,y=eN(eL,l),v=eP(eL,l),b=ej(l),k=eS(l),w=ev(l),[j,S]=n.useState(null),C=n.useRef(null),N=(0,W.useComposedRefs)(r,C,y.onContentChange),E=n.useRef(0),P=n.useRef(""),I=n.useRef(0),T=n.useRef(null),D=n.useRef("right"),M=n.useRef(0),A=g?ed.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(E.current),[]),(0,et.useFocusGuards)();let R=n.useCallback(e=>{var t,n;return D.current===T.current?.side&&(t=e,!!(n=T.current?.area)&&function(e,t){let{x:n,y:r}=e,l=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e],a=t[i],s=o.x,u=o.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(l=!l)}return l}({x:t.clientX,y:t.clientY},n))},[]);return(0,t.jsx)(ez,{scope:l,searchRef:P,onItemEnter:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:n.useCallback(e=>{R(e)||(C.current?.focus(),S(null))},[R]),onTriggerLeave:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:I,onPointerGraceIntentChange:n.useCallback(e=>{T.current=e},[]),children:(0,t.jsx)(A,{...g?{as:eH,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(en.FocusScope,{asChild:!0,trapped:o,onMountAutoFocus:(0,G.composeEventHandlers)(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,t.jsx)(ee.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:(0,t.jsx)(ea.Root,{asChild:!0,...k,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:(0,G.composeEventHandlers)(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(el.Content,{role:"menu","aria-orientation":"vertical","data-state":to(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...x,ref:N,style:{outline:"none",...x.style},onKeyDown:(0,G.composeEventHandlers)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var l;let t,i,o,a,s,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(l=e.key,t=P.current+l,i=w().filter(e=>!e.disabled),o=document.activeElement,a=i.find(e=>e.ref.current===o)?.textValue,s=function(e,t,n){var r;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,o=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===l.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(l.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),t,a),u=i.find(e=>e.textValue===s)?.ref.current,function e(t){P.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=C.current;if(e.target!==i||!eh.includes(e.key))return;e.preventDefault();let o=w().filter(e=>!e.disabled).map(e=>e.ref.current);ef.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,G.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),P.current="")}),onPointerMove:(0,G.composeEventHandlers)(e.onPointerMove,tu(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(D.current=e.clientX>M.current?"right":"left",M.current=e.clientX)}))})})})})})})});eF.displayName=eL;var eq=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(Y.Primitive.div,{role:"group",...l,ref:n})});eq.displayName="MenuGroup";var eV=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(Y.Primitive.div,{...l,ref:n})});eV.displayName="MenuLabel";var eK="MenuItem",e$="menu.itemSelect",eG=n.forwardRef((e,r)=>{let{disabled:l=!1,onSelect:i,...o}=e,a=n.useRef(null),s=eP(eK,e.__scopeMenu),u=eO(eK,e.__scopeMenu),c=(0,W.useComposedRefs)(r,a),d=n.useRef(!1);return(0,t.jsx)(eW,{...o,ref:c,disabled:l,onClick:(0,G.composeEventHandlers)(e.onClick,()=>{let e=a.current;if(!l&&e){let t=new CustomEvent(e$,{bubbles:!0,cancelable:!0});e.addEventListener(e$,e=>i?.(e),{once:!0}),(0,Y.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:(0,G.composeEventHandlers)(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;l||t&&" "===e.key||ep.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eG.displayName=eK;var eW=n.forwardRef((e,r)=>{let{__scopeMenu:l,disabled:i=!1,textValue:o,...a}=e,s=eO(eK,l),u=eS(l),c=n.useRef(null),d=(0,W.useComposedRefs)(r,c),[p,f]=n.useState(!1),[h,m]=n.useState("");return n.useEffect(()=>{let e=c.current;e&&m((e.textContent??"").trim())},[a.children]),(0,t.jsx)(ey.ItemSlot,{scope:l,disabled:i,textValue:o??h,children:(0,t.jsx)(ea.Item,{asChild:!0,...u,focusable:!i,children:(0,t.jsx)(Y.Primitive.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:d,onPointerMove:(0,G.composeEventHandlers)(e.onPointerMove,tu(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,G.composeEventHandlers)(e.onPointerLeave,tu(e=>s.onItemLeave(e))),onFocus:(0,G.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,G.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),eX=n.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:l,...i}=e;return(0,t.jsx)(e5,{scope:e.__scopeMenu,checked:r,children:(0,t.jsx)(eG,{role:"menuitemcheckbox","aria-checked":ta(r)?"mixed":r,...i,ref:n,"data-state":ts(r),onSelect:(0,G.composeEventHandlers)(i.onSelect,()=>l?.(!!ta(r)||!r),{checkForDefaultPrevented:!1})})})});eX.displayName="MenuCheckboxItem";var eQ="MenuRadioGroup",[eY,eJ]=ek(eQ,{value:void 0,onValueChange:()=>{}}),eZ=n.forwardRef((e,n)=>{let{value:r,onValueChange:l,...i}=e,o=(0,eu.useCallbackRef)(l);return(0,t.jsx)(eY,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,t.jsx)(eq,{...i,ref:n})})});eZ.displayName=eQ;var e0="MenuRadioItem",e1=n.forwardRef((e,n)=>{let{value:r,...l}=e,i=eJ(e0,e.__scopeMenu),o=r===i.value;return(0,t.jsx)(e5,{scope:e.__scopeMenu,checked:o,children:(0,t.jsx)(eG,{role:"menuitemradio","aria-checked":o,...l,ref:n,"data-state":ts(o),onSelect:(0,G.composeEventHandlers)(l.onSelect,()=>i.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});e1.displayName=e0;var e2="MenuItemIndicator",[e5,e4]=ek(e2,{checked:!1}),e3=n.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:l,...i}=e,o=e4(e2,r);return(0,t.jsx)(eo.Presence,{present:l||ta(o.checked)||!0===o.checked,children:(0,t.jsx)(Y.Primitive.span,{...i,ref:n,"data-state":ts(o.checked)})})});e3.displayName=e2;var e6=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(Y.Primitive.div,{role:"separator","aria-orientation":"horizontal",...l,ref:n})});e6.displayName="MenuSeparator";var e9=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=ej(r);return(0,t.jsx)(el.Arrow,{...i,...l,ref:n})});e9.displayName="MenuArrow";var e8="MenuSub",[e7,te]=ek(e8),tt=e=>{let{__scopeMenu:r,children:l,open:i=!1,onOpenChange:o}=e,a=eN(e8,r),s=ej(r),[u,c]=n.useState(null),[d,p]=n.useState(null),f=(0,eu.useCallbackRef)(o);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,t.jsx)(el.Root,{...s,children:(0,t.jsx)(eC,{scope:r,open:i,onOpenChange:f,content:d,onContentChange:p,children:(0,t.jsx)(e7,{scope:r,contentId:(0,er.useId)(),triggerId:(0,er.useId)(),trigger:u,onTriggerChange:c,children:l})})})};tt.displayName=e8;var tn="MenuSubTrigger",tr=n.forwardRef((e,r)=>{let l=eN(tn,e.__scopeMenu),i=eP(tn,e.__scopeMenu),o=te(tn,e.__scopeMenu),a=eO(tn,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),c(null)}},[u,c]),(0,t.jsx)(eT,{asChild:!0,...d,children:(0,t.jsx)(eW,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":o.contentId,"data-state":to(l.open),...e,ref:(0,W.composeRefs)(r,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),l.open||l.onOpenChange(!0))},onPointerMove:(0,G.composeEventHandlers)(e.onPointerMove,tu(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||l.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{l.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,G.composeEventHandlers)(e.onPointerLeave,tu(e=>{p();let t=l.content?.getBoundingClientRect();if(t){let n=l.content?.dataset.side,r="right"===n,i=t[r?"left":"right"],o=t[r?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(r?-5:5),y:e.clientY},{x:i,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,t=>{let n=""!==a.searchRef.current;e.disabled||n&&" "===t.key||em[i.dir].includes(t.key)&&(l.onOpenChange(!0),l.content?.focus(),t.preventDefault())})})})});tr.displayName=tn;var tl="MenuSubContent",ti=n.forwardRef((e,r)=>{let l=eA(eL,e.__scopeMenu),{forceMount:i=l.forceMount,...o}=e,a=eN(eL,e.__scopeMenu),s=eP(eL,e.__scopeMenu),u=te(tl,e.__scopeMenu),c=n.useRef(null),d=(0,W.useComposedRefs)(r,c);return(0,t.jsx)(ey.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(eo.Presence,{present:i||a.open,children:(0,t.jsx)(ey.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(eU,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,G.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,G.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=eg[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function to(e){return e?"open":"closed"}function ta(e){return"indeterminate"===e}function ts(e){return ta(e)?"indeterminate":e?"checked":"unchecked"}function tu(e){return t=>"mouse"===t.pointerType?e(t):void 0}ti.displayName=tl;var tc="DropdownMenu",[td,tp]=(0,X.createContextScope)(tc,[ew]),tf=ew(),[th,tm]=td(tc),tg=e=>{let{__scopeDropdownMenu:r,children:l,dir:i,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,c=tf(r),d=n.useRef(null),[p,f]=(0,Q.useControllableState)({prop:o,defaultProp:a??!1,onChange:s,caller:tc});return(0,t.jsx)(th,{scope:r,triggerId:(0,er.useId)(),triggerRef:d,contentId:(0,er.useId)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,t.jsx)(eI,{...c,open:p,onOpenChange:f,dir:i,modal:u,children:l})})};tg.displayName=tc;var tx="DropdownMenuTrigger",ty=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,disabled:l=!1,...i}=e,o=tm(tx,r),a=tf(r);return(0,t.jsx)(eT,{asChild:!0,...a,children:(0,t.jsx)(Y.Primitive.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...i,ref:(0,W.composeRefs)(n,o.triggerRef),onPointerDown:(0,G.composeEventHandlers)(e.onPointerDown,e=>{!l&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,e=>{!l&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ty.displayName=tx;var tv=e=>{let{__scopeDropdownMenu:n,...r}=e,l=tf(n);return(0,t.jsx)(eR,{...l,...r})};tv.displayName="DropdownMenuPortal";var tb="DropdownMenuContent",tk=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:l,...i}=e,o=tm(tb,l),a=tf(l),s=n.useRef(!1);return(0,t.jsx)(eF,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...i,ref:r,onCloseAutoFocus:(0,G.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,G.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tk.displayName=tb;var tw=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eq,{...i,...l,ref:n})});tw.displayName="DropdownMenuGroup";var tj=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eV,{...i,...l,ref:n})});tj.displayName="DropdownMenuLabel";var tS=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eG,{...i,...l,ref:n})});tS.displayName="DropdownMenuItem";var tC=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eX,{...i,...l,ref:n})});tC.displayName="DropdownMenuCheckboxItem";var tN=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eZ,{...i,...l,ref:n})});tN.displayName="DropdownMenuRadioGroup";var tE=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e1,{...i,...l,ref:n})});tE.displayName="DropdownMenuRadioItem";var tP=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e3,{...i,...l,ref:n})});tP.displayName="DropdownMenuItemIndicator";var tI=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e6,{...i,...l,ref:n})});tI.displayName="DropdownMenuSeparator";var tT=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e9,{...i,...l,ref:n})});tT.displayName="DropdownMenuArrow";var tD=e=>{let{__scopeDropdownMenu:n,children:r,open:l,onOpenChange:i,defaultOpen:o}=e,a=tf(n),[s,u]=(0,Q.useControllableState)({prop:l,defaultProp:o??!1,onChange:i,caller:"DropdownMenuSub"});return(0,t.jsx)(tt,{...a,open:s,onOpenChange:u,children:r})},tM=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(tr,{...i,...l,ref:n})});tM.displayName="DropdownMenuSubTrigger";var tA=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(ti,{...i,...l,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tA.displayName="DropdownMenuSubContent",e.s(["Arrow",()=>tT,"CheckboxItem",()=>tC,"Content",()=>tk,"DropdownMenu",()=>tg,"DropdownMenuArrow",()=>tT,"DropdownMenuCheckboxItem",()=>tC,"DropdownMenuContent",()=>tk,"DropdownMenuGroup",()=>tw,"DropdownMenuItem",()=>tS,"DropdownMenuItemIndicator",()=>tP,"DropdownMenuLabel",()=>tj,"DropdownMenuPortal",()=>tv,"DropdownMenuRadioGroup",()=>tN,"DropdownMenuRadioItem",()=>tE,"DropdownMenuSeparator",()=>tI,"DropdownMenuSub",()=>tD,"DropdownMenuSubContent",()=>tA,"DropdownMenuSubTrigger",()=>tM,"DropdownMenuTrigger",()=>ty,"Group",()=>tw,"Item",()=>tS,"ItemIndicator",()=>tP,"Label",()=>tj,"Portal",()=>tv,"RadioGroup",()=>tN,"RadioItem",()=>tE,"Root",()=>tg,"Separator",()=>tI,"Sub",()=>tD,"SubContent",()=>tA,"SubTrigger",()=>tM,"Trigger",()=>ty,"createDropdownMenuScope",()=>tp],61920);var tR=e.i(61920),tR=tR;let tL=(0,s.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),tz=(0,s.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),tO=tR.Root,tF=tR.Trigger;tR.Group,tR.Portal,tR.Sub,tR.RadioGroup,n.forwardRef(({className:e,inset:n,children:r,...l},i)=>(0,t.jsxs)(tR.SubTrigger,{ref:i,className:(0,b.cn)("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...l,children:[r,(0,t.jsx)(tL,{className:"ml-auto"})]})).displayName=tR.SubTrigger.displayName,n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tR.SubContent,{ref:r,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",e),...n})).displayName=tR.SubContent.displayName;let t_=n.forwardRef(({className:e,sideOffset:n=4,...r},l)=>(0,t.jsx)(tR.Portal,{children:(0,t.jsx)(tR.Content,{ref:l,sideOffset:n,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...r})}));t_.displayName=tR.Content.displayName;let tB=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tR.Item,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",e),...r}));tB.displayName=tR.Item.displayName,n.forwardRef(({className:e,children:n,checked:r,...l},i)=>(0,t.jsxs)(tR.CheckboxItem,{ref:i,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...l,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tR.ItemIndicator,{children:(0,t.jsx)(K.Check,{className:"h-4 w-4"})})}),n]})).displayName=tR.CheckboxItem.displayName,n.forwardRef(({className:e,children:n,...r},l)=>(0,t.jsxs)(tR.RadioItem,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tR.ItemIndicator,{children:(0,t.jsx)(tz,{className:"h-2 w-2 fill-current"})})}),n]})).displayName=tR.RadioItem.displayName;let tH=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tR.Label,{ref:l,className:(0,b.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));tH.displayName=tR.Label.displayName;let tU=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tR.Separator,{ref:r,className:(0,b.cn)("bg-muted -mx-1 my-1 h-px",e),...n}));function tq({actions:e,repositoryPath:r,showSpecs:l}){let[o,a]=(0,n.useState)(!1),s=e.ideLoading||e.shellLoading||e.specsLoading,u=e.ideError??e.shellError??e.specsError;return(0,t.jsxs)(tO,{modal:!1,children:[(0,t.jsx)(tF,{asChild:!0,children:(0,t.jsxs)(P.Button,{variant:"outline",size:"sm",className:"gap-1.5",disabled:s,children:[s?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):u?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(U.FolderOpen,{className:"size-4"}),"Open",(0,t.jsx)(q,{className:"size-3 opacity-60"})]})}),(0,t.jsxs)(t_,{align:"start",className:"w-48",children:[(0,t.jsx)(tH,{children:"Open in"}),(0,t.jsxs)(tB,{onClick:e.openInIde,disabled:e.ideLoading,className:"gap-2",children:[e.ideLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.ideError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(B.Code2,{className:"size-4"}),"IDE"]}),(0,t.jsxs)(tB,{onClick:e.openInShell,disabled:e.shellLoading,className:"gap-2",children:[e.shellLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.shellError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(H.Terminal,{className:"size-4"}),"Terminal"]}),(0,t.jsxs)(tB,{onClick:e.openSpecsFolder,disabled:e.specsLoading||!l,className:"gap-2",children:[e.specsLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.specsError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(U.FolderOpen,{className:"size-4"}),"Specs Folder"]}),(0,t.jsx)(tU,{}),(0,t.jsxs)(tB,{onClick:()=>{navigator.clipboard.writeText(r),a(!0),setTimeout(()=>a(!1),2e3)},className:"gap-2",children:[o?(0,t.jsx)(K.Check,{className:"size-4 text-green-600"}):(0,t.jsx)(V.Copy,{className:"size-4"}),o?"Copied!":"Copy path"]})]})]})}tU.displayName=tR.Separator.displayName;let tV=(0,s.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),tK=(0,s.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var t$=e.i(98127);function tG({onReject:e,onApprove:r,approveLabel:l,approveIcon:i,revisionPlaceholder:o,isProcessing:a=!1,isRejecting:s=!1,children:u}){let[c,d]=(0,n.useState)(""),p=(0,w.useSoundAction)("approve"),f=a||s;return(0,t.jsxs)("div",{className:"border-border shrink-0 border-t",children:[u,e?(0,t.jsxs)("form",{onSubmit:function(t){t.preventDefault();let n=c.trim();n&&e&&(e(n),d(""))},className:"flex items-center gap-2 p-4",children:[(0,t.jsx)(t$.Input,{type:"text",placeholder:o??"Ask AI to revise...","aria-label":o??"Ask AI to revise...",disabled:f,value:c,onChange:e=>d(e.target.value),className:"flex-1"}),(0,t.jsx)(P.Button,{type:"submit",variant:"secondary",size:"icon","aria-label":"Send",disabled:f,children:(0,t.jsx)(tK,{})}),(0,t.jsxs)(P.Button,{type:"button",disabled:f,onClick:()=>{p.play(),r()},children:[i,l]})]}):(0,t.jsx)("div",{className:"flex items-center gap-2 px-4 pb-4",children:(0,t.jsxs)(P.Button,{type:"button",className:"flex-1",disabled:f,onClick:()=>{p.play(),r()},children:[i,l]})})]})}function tW({data:e,selections:r,onSelect:l,onApprove:i,onReject:o,isProcessing:a=!1,isRejecting:s=!1,showHeader:u=!1}){let{question:c,context:d,questions:p,finalAction:f}=e,[h,m]=(0,n.useState)(0),g=(0,w.useSoundAction)("select"),x=(0,w.useSoundAction)("navigate"),y=p.length,v=h===y-1,k=p[h],j=(0,n.useMemo)(()=>Object.keys(r).length,[r]),S=(0,n.useCallback)((e,t)=>{g.play(),l(e,t),v||setTimeout(()=>m(e=>e+1),250)},[l,v,g]);return 0===y?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[u?(0,t.jsxs)("div",{className:"border-border flex items-start gap-3 border-b pb-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-amber-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground mb-1.5 text-sm font-bold",children:c}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed",children:d})]})]}):null,(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("label",{className:"text-foreground min-w-0 flex-1 text-sm font-semibold",children:k.question}),(0,t.jsx)("div",{className:"mt-1.5 flex shrink-0 gap-1",children:p.map((e,n)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to question ${n+1}`,className:(0,b.cn)("h-1.5 rounded-full transition-all duration-200",n===h?"bg-primary w-4":"w-1.5",n!==h&&r[e.id]?"bg-primary/50":"",n===h||r[e.id]?"":"bg-muted-foreground/25"),onClick:()=>{x.play(),m(n)}},e.id))})]}),(0,t.jsx)("div",{className:"space-y-2",children:k.options.map((e,n)=>{let l=r[k.id]===e.id,i=String.fromCharCode(65+n);return(0,t.jsx)("button",{type:"button",className:(0,b.cn)("border-border w-full rounded-md border px-3 py-3 text-left text-xs transition-all","hover:border-primary/70 hover:bg-primary/5 group",l&&"border-primary bg-primary/5",e.isNew&&"animate-option-highlight"),disabled:a,onClick:()=>S(k.id,e.id),children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("span",{className:"text-muted-foreground mt-0.5 font-mono text-xs",children:[i,"."]}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"mb-0.5 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:e.label}),e.recommended?(0,t.jsx)(I.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null,e.isNew?(0,t.jsx)(I.Badge,{className:"border-transparent bg-emerald-600 px-1.5 py-0 text-[10px] text-white hover:bg-emerald-600/80",children:"New"}):null]}),(0,t.jsx)("div",{className:"text-muted-foreground text-xs leading-snug",children:e.rationale})]})]})},e.id)})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-2",children:[(0,t.jsxs)(P.Button,{type:"button",variant:"ghost",size:"sm",disabled:0===h||a,onClick:()=>{x.play(),m(e=>e-1)},children:[(0,t.jsx)(tV,{className:"mr-1 h-4 w-4"}),"Previous"]}),v?null:(0,t.jsxs)(P.Button,{type:"button",variant:"ghost",size:"sm",disabled:a,onClick:()=>{x.play(),m(e=>e+1)},children:[r[k.id]?"Next":"Skip",(0,t.jsx)(tL,{className:"ml-1 h-4 w-4"})]})]})]}),(0,t.jsx)(tG,{onReject:o,onApprove:()=>i(f.id),approveLabel:f.label,approveIcon:(0,t.jsx)(K.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to refine requirements...",isProcessing:a,isRejecting:s,children:(0,t.jsx)("div",{className:(0,b.cn)("bg-muted h-1.5 overflow-hidden",j>0&&j<y||a?"opacity-100":"opacity-0","transition-opacity duration-200"),"data-testid":"progress-bar-container",children:a?(0,t.jsx)("div",{className:"bg-primary animate-indeterminate-progress h-full w-1/3"}):(0,t.jsx)("div",{className:"bg-primary h-full transition-all duration-300",style:{width:`${y>0?j/y*100:0}%`},"data-testid":"progress-bar"})})})]})}var tX=e.i(2805),tQ=e.i(22942),tY=e.i(80146),tJ=e.i(68304);function tZ(){}function t0(){}let t1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t5={};function t4(e,t){return((t||t5).jsx?t2:t1).test(e)}let t3=/[ \t\n\f\r]/g;function t6(e){return""===e.replace(t3,"")}class t9{constructor(e,t){this.attribute=t,this.property=e}}t9.prototype.attribute="",t9.prototype.booleanish=!1,t9.prototype.boolean=!1,t9.prototype.commaOrSpaceSeparated=!1,t9.prototype.commaSeparated=!1,t9.prototype.defined=!1,t9.prototype.mustUseProperty=!1,t9.prototype.number=!1,t9.prototype.overloadedBoolean=!1,t9.prototype.property="",t9.prototype.spaceSeparated=!1,t9.prototype.space=void 0;let t8=0,t7=no(),ne=no(),nt=no(),nn=no(),nr=no(),nl=no(),ni=no();function no(){return 2**++t8}e.s(["boolean",0,t7,"booleanish",0,ne,"commaOrSpaceSeparated",0,ni,"commaSeparated",0,nl,"number",0,nn,"overloadedBoolean",0,nt,"spaceSeparated",0,nr],83954);var na=e.i(83954);let ns=Object.keys(na);class nu extends t9{constructor(e,t,n,r){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++l<ns.length;){const e=ns[l];!function(e,t,n){n&&(e[t]=n)}(this,ns[l],(n&na[e])===na[e])}}}function nc(e){return e.toLowerCase()}nu.prototype.defined=!0;let nd=/[A-Z]/g,np=/-[a-z]/g,nf=/^data[-\w.:]+$/i;function nh(e){return"-"+e.toLowerCase()}function nm(e){return e.charAt(1).toUpperCase()}let ng={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"};class nx{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function ny(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new nx(n,r,t)}function nv(e){let t={},n={};for(let[r,l]of Object.entries(e.properties)){let i=new nu(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nc(r)]=r,n[nc(i.attribute)]=r}return new nx(t,n,e.space)}nx.prototype.normal={},nx.prototype.property={},nx.prototype.space=void 0;let nb=nv({properties:{ariaActiveDescendant:null,ariaAtomic:ne,ariaAutoComplete:null,ariaBusy:ne,ariaChecked:ne,ariaColCount:nn,ariaColIndex:nn,ariaColSpan:nn,ariaControls:nr,ariaCurrent:null,ariaDescribedBy:nr,ariaDetails:null,ariaDisabled:ne,ariaDropEffect:nr,ariaErrorMessage:null,ariaExpanded:ne,ariaFlowTo:nr,ariaGrabbed:ne,ariaHasPopup:null,ariaHidden:ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nr,ariaLevel:nn,ariaLive:null,ariaModal:ne,ariaMultiLine:ne,ariaMultiSelectable:ne,ariaOrientation:null,ariaOwns:nr,ariaPlaceholder:null,ariaPosInSet:nn,ariaPressed:ne,ariaReadOnly:ne,ariaRelevant:null,ariaRequired:ne,ariaRoleDescription:nr,ariaRowCount:nn,ariaRowIndex:nn,ariaRowSpan:nn,ariaSelected:ne,ariaSetSize:nn,ariaSort:null,ariaValueMax:nn,ariaValueMin:nn,ariaValueNow:nn,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function nk(e,t){return t in e?e[t]:t}function nw(e,t){return nk(e,t.toLowerCase())}let nj=nv({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nl,acceptCharset:nr,accessKey:nr,action:null,allow:null,allowFullScreen:t7,allowPaymentRequest:t7,allowUserMedia:t7,alt:null,as:null,async:t7,autoCapitalize:null,autoComplete:nr,autoFocus:t7,autoPlay:t7,blocking:nr,capture:null,charSet:null,checked:t7,cite:null,className:nr,cols:nn,colSpan:null,content:null,contentEditable:ne,controls:t7,controlsList:nr,coords:nn|nl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:t7,defer:t7,dir:null,dirName:null,disabled:t7,download:nt,draggable:ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:t7,formTarget:null,headers:nr,height:nn,hidden:nt,high:nn,href:null,hrefLang:null,htmlFor:nr,httpEquiv:nr,id:null,imageSizes:null,imageSrcSet:null,inert:t7,inputMode:null,integrity:null,is:null,isMap:t7,itemId:null,itemProp:nr,itemRef:nr,itemScope:t7,itemType:nr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:t7,low:nn,manifest:null,max:null,maxLength:nn,media:null,method:null,min:null,minLength:nn,multiple:t7,muted:t7,name:null,nonce:null,noModule:t7,noValidate:t7,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:t7,optimum:nn,pattern:null,ping:nr,placeholder:null,playsInline:t7,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:t7,referrerPolicy:null,rel:nr,required:t7,reversed:t7,rows:nn,rowSpan:nn,sandbox:nr,scope:null,scoped:t7,seamless:t7,selected:t7,shadowRootClonable:t7,shadowRootDelegatesFocus:t7,shadowRootMode:null,shape:null,size:nn,sizes:null,slot:null,span:nn,spellCheck:ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nn,step:null,style:null,tabIndex:nn,target:null,title:null,translate:null,type:null,typeMustMatch:t7,useMap:null,value:ne,width:nn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nr,axis:null,background:null,bgColor:null,border:nn,borderColor:null,bottomMargin:nn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:t7,declare:t7,event:null,face:null,frame:null,frameBorder:null,hSpace:nn,leftMargin:nn,link:null,longDesc:null,lowSrc:null,marginHeight:nn,marginWidth:nn,noResize:t7,noHref:t7,noShade:t7,noWrap:t7,object:null,profile:null,prompt:null,rev:null,rightMargin:nn,rules:null,scheme:null,scrolling:ne,standby:null,summary:null,text:null,topMargin:nn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:t7,disableRemotePlayback:t7,prefix:null,property:null,results:nn,security:null,unselectable:null},space:"html",transform:nw}),nS=nv({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-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ni,accentHeight:nn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nn,amplitude:nn,arabicForm:null,ascent:nn,attributeName:null,attributeType:null,azimuth:nn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nn,by:null,calcMode:null,capHeight:nn,className:nr,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:nn,diffuseConstant:nn,direction:null,display:null,dur:null,divisor:nn,dominantBaseline:null,download:t7,dx:null,dy:null,edgeMode:null,editable:null,elevation:nn,enableBackground:null,end:null,event:null,exponent:nn,externalResourcesRequired:null,fill:null,fillOpacity:nn,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:nl,g2:nl,glyphName:nl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nn,horizOriginX:nn,horizOriginY:nn,id:null,ideographic:nn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nn,k:nn,k1:nn,k2:nn,k3:nn,k4:nn,kernelMatrix:ni,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nn,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:nn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nn,overlineThickness:nn,paintOrder:null,panose1:null,path:null,pathLength:nn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nn,pointsAtY:nn,pointsAtZ:nn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ni,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ni,rev:ni,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ni,requiredFeatures:ni,requiredFonts:ni,requiredFormats:ni,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:nn,specularExponent:nn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nn,strikethroughThickness:nn,string:null,stroke:null,strokeDashArray:ni,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nn,strokeOpacity:nn,strokeWidth:null,style:null,surfaceScale:nn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ni,tabIndex:nn,tableValues:null,target:null,targetX:nn,targetY:nn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ni,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nn,underlineThickness:nn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nn,values:null,vAlphabetic:nn,vMathematical:nn,vectorEffect:null,vHanging:nn,vIdeographic:nn,version:null,vertAdvY:nn,vertOriginX:nn,vertOriginY:nn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nk}),nC=nv({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),nN=nv({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nw}),nE=nv({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),nP=ny([nb,nj,nC,nN,nE],"html"),nI=ny([nb,nS,nC,nN,nE],"svg");var nT=e.i(63185);let nD=nA("end"),nM=nA("start");function nA(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function nR(e){return e&&"object"==typeof e?"position"in e||"type"in e?nz(e.position):"start"in e||"end"in e?nz(e):"line"in e||"column"in e?nL(e):"":""}function nL(e){return nO(e&&e.line)+":"+nO(e&&e.column)}function nz(e){return nL(e&&e.start)+"-"+nL(e&&e.end)}function nO(e){return e&&"number"==typeof e?e:1}class nF extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",l={},i=!1;if(t&&(l="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!l.cause&&e&&(i=!0,r=e.message,l.cause=e),!l.ruleId&&!l.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?l.ruleId=n:(l.source=n.slice(0,e),l.ruleId=n.slice(e+1))}if(!l.place&&l.ancestors&&l.ancestors){const e=l.ancestors[l.ancestors.length-1];e&&(l.place=e.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=nR(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=i&&l.cause&&"string"==typeof l.cause.stack?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nF.prototype.file="",nF.prototype.name="",nF.prototype.reason="",nF.prototype.message="",nF.prototype.stack="",nF.prototype.column=void 0,nF.prototype.line=void 0,nF.prototype.ancestors=void 0,nF.prototype.cause=void 0,nF.prototype.fatal=void 0,nF.prototype.place=void 0,nF.prototype.ruleId=void 0,nF.prototype.source=void 0;let n_={}.hasOwnProperty,nB=new Map,nH=/[A-Z]/g,nU=new Set(["table","tbody","thead","tfoot","tr"]),nq=new Set(["td","th"]),nV="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nK(e,t,n){var r,l,i,o,a,s,u,c,d;let p,f,h,m,g,x,y,v,b,k,w;return"element"===t.type?(r=e,l=t,i=n,f=p=r.schema,"svg"===l.tagName.toLowerCase()&&"html"===p.space&&(r.schema=nI),r.ancestors.push(l),h=nX(r,l.tagName,!1),m=function(e,t){let n,r,l={};for(r in t.properties)if("children"!==r&&n_.call(t.properties,r)){let i=function(e,t,n){let r=function(e,t){let n=nc(t),r=t,l=t9;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nf.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(np,nm);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!np.test(e)){let n=e.replace(nd,nh);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=nu}return new l(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var l;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(l=n)[l.length-1]?[...l,""]:l).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,nT.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new nF("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=nV+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)n_.call(e,t)&&(n[function(e){let t=e.replace(nH,nY);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ng[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,o]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&nq.has(t.tagName)?n=o:l[r]=o}}return n&&((l.style||(l.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),l}(r,l),g=nW(r,l),nU.has(l.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&t6(e.value):t6(e))})),n$(r,m,h,l),nG(m,g),r.ancestors.pop(),r.schema=p,r.create(l,h,m,i)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return tZ("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}nQ(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,s=n,y=x=o.schema,"svg"===a.name&&"html"===x.space&&(o.schema=nI),o.ancestors.push(a),v=null===a.name?o.Fragment:nX(o,a.name,!0),b=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];tZ("ExpressionStatement"===t.type);let l=t.expression;tZ("ObjectExpression"===l.type);let i=l.properties[0];tZ("SpreadElement"===i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else nQ(e,t.position);else{let l,i=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];tZ("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else nQ(e,t.position);else l=null===r.value||r.value;n[i]=l}return n}(o,a),k=nW(o,a),n$(o,b,v,a),nG(b,k),o.ancestors.pop(),o.schema=x,o.create(a,v,b,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);nQ(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,nG(w={},nW(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function n$(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nG(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function nW(e,t){let n=[],r=-1,l=e.passKeys?new Map:nB;for(;++r<t.children.length;){let i,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=l.get(e)||0;i=e+"-"+t,l.set(e,t+1)}}let a=nK(e,o,i);void 0!==a&&n.push(a)}return n}function nX(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),l=-1;for(;++l<n.length;){let t=t4(n[l])?{type:"Identifier",name:n[l]}:{type:"Literal",value:n[l]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(l&&"Literal"===t.type),optional:!1}:t}tZ(e,"always a result"),r=e}else r=t4(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return n_.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);nQ(e)}function nQ(e,t){let n=new nF("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nV+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nY(e){return"-"+e.toLowerCase()}let nJ={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},nZ={};function n0(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return n1(e.children,t,n)}return Array.isArray(e)?n1(e,t,n):""}function n1(e,t,n){let r=[],l=-1;for(;++l<e.length;)r[l]=n0(e[l],t,n);return r.join("")}function n2(e,t,n,r){let l,i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(l=Array.from(r)).unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)(l=r.slice(o,o+1e4)).unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function n5(e,t){return e.length>0?(n2(e,e.length,0,t),e):t}let n4={}.hasOwnProperty,n3=ra(/[A-Za-z]/),n6=ra(/[\dA-Za-z]/),n9=ra(/[#-'*+\--9=?A-Z^-~]/);function n8(e){return null!==e&&(e<32||127===e)}let n7=ra(/\d/),re=ra(/[\dA-Fa-f]/),rt=ra(/[!-/:-@[-`{-~]/);function rn(e){return null!==e&&e<-2}function rr(e){return null!==e&&(e<0||32===e)}function rl(e){return -2===e||-1===e||32===e}let ri=ra(/\p{P}|\p{S}/u),ro=ra(/\s/);function ra(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function rs(e,t,n,r){let l=r?r-1:1/0,i=0;return function(r){return rl(r)?(e.enter(n),function r(o){return rl(o)&&i++<l?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let ru={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rs(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return rn(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},rc={tokenize:function(e){let t,n,r,l=this,i=[],o=0;return a;function a(t){if(o<i.length){let n=i[o];return l.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(o++,l.containerState._closeFlow){let n;l.containerState._closeFlow=void 0,t&&x();let r=l.events.length,i=r;for(;i--;)if("exit"===l.events[i][0]&&"chunkFlow"===l.events[i][1].type){n=l.events[i][1].end;break}g(o);let a=r;for(;a<l.events.length;)l.events[a][1].end={...n},a++;return n2(l.events,i+1,0,l.events.slice(r)),l.events.length=a,u(e)}return a(e)}function u(n){if(o===i.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);l.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return l.containerState={},e.check(rd,c,d)(n)}function c(e){return t&&x(),g(o),p(e)}function d(e){return l.parser.lazy[l.now().line]=o!==i.length,r=l.now().offset,h(e)}function p(t){return l.containerState={},e.attempt(rd,f,h)(t)}function f(e){return o++,i.push([l.currentConstruct,l.containerState]),p(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||l.parser.flow(l.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return rn(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,l.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,i){let a=l.sliceStream(e);if(i&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),l.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let a=l.events.length,s=a;for(;s--;)if("exit"===l.events[s][0]&&"chunkFlow"===l.events[s][1].type){if(e){n=l.events[s][1].end;break}e=!0}for(g(o),i=a;i<l.events.length;)l.events[i][1].end={...n},i++;n2(l.events,s+1,0,l.events.slice(a)),l.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];l.containerState=t[1],t[0].exit.call(l,e)}i.length=t}function x(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},rd={tokenize:function(e,t,n){return rs(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},rp={partial:!0,tokenize:function(e,t,n){return function(t){return rl(t)?rs(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||rn(e)?t(e):n(e)}}};class rf{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&rh(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),rh(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),rh(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);rh(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);rh(this.left,t.reverse())}}}function rh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function rm(e){let t,n,r,l,i,o,a,s={},u=-1,c=new rf(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,l=e.get(t)[1],i=e.get(t)[2],o=t-1,a=[],s=l._tokenizer;!s&&(s=i.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},p=-1,f=l,h=0,m=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),!f._tokenizer&&(n=i.sliceStream(f),f.next||n.push(null),r&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=l;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(l=c.get(r))[1].type||"lineEndingBlank"===l[1].type)"enter"===l[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),l[1].type="lineEnding",n=r);else if("linePrefix"===l[1].type||"listItemIndent"===l[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(i=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,i))}}return n2(e,0,1/0,c.slice(0)),!a}let rg={resolve:function(e){return rm(e),e},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?l(t):rn(t)?e.check(rx,i,l)(t):(e.consume(t),r)}function l(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},rx={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rs(e,l,"linePrefix")};function l(l){if(null===l||rn(l))return n(l);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}},ry={tokenize:function(e){let t=this,n=e.attempt(rp,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,rs(e,e.attempt(this.parser.constructs.flow,r,e.attempt(rg,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},rv={resolveAll:rj()},rb=rw("string"),rk=rw("text");function rw(e){return{resolveAll:rj("text"===e?rS:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],l=t.attempt(r,i,o);return i;function i(e){return s(e)?l(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),l(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],l=-1;if(t)for(;++l<t.length;){let e=t[l];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function rj(e){return function(t,n){let r,l=-1;for(;++l<=t.length;)void 0===r?t[l]&&"data"===t[l][1].type&&(r=l,l++):t[l]&&"data"===t[l][1].type||(l!==r+2&&(t[r][1].end=t[l-1][1].end,t.splice(r+2,l-r-2),l=r+2),r=void 0);return e?e(t,n):t}}function rS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,l=e[n-1][1],i=t.sliceStream(l),o=i.length,a=-1,s=0;for(;o--;){let e=i[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:l.start._bufferIndex+a,_index:l.start._index+o,line:l.end.line,column:l.end.column-s,offset:l.end.offset-s},end:{...l.end}};l.end={...i.start},l.start.offset===l.end.offset?Object.assign(l,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function rC(e){return null===e||rr(e)||ro(e)?1:ri(e)?2:void 0}function rN(e,t,n){let r=[],l=-1;for(;++l<e.length;){let i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let rE={name:"attention",resolveAll:function(e,t){let n,r,l,i,o,a,s,u,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;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};rP(d,-a),rP(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[c][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=n5(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=n5(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),s=n5(s,rN(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=n5(s,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=n5(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,n2(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,l=this.previous,i=rC(l);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=rC(a),c=!u||2===u&&i||r.includes(a),d=!i||2===i&&u||r.includes(l);return s._open=!!(42===n?c:c&&(i||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function rP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let rI={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return rl(t)?rs(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)};function l(r){return e.attempt(rI,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let 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"),l}return n(t)};function l(n){return rl(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},rT={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 rt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},rD=document.createElement("i");function rM(e){let t="&"+e+";";rD.innerHTML=t;let n=rD.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let rA={name:"characterReference",tokenize:function(e,t,n){let r,l,i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,l=n6,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=re,u):(e.enter("characterReferenceValue"),r=7,l=n7,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return l!==n6||rM(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return l(a)&&o++<r?(e.consume(a),u):n(a)}}},rR={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rL={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,l=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),rl(t)?rs(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(l){return l===r?(i++,e.consume(l),t):i>=a?(e.exit("codeFencedFenceSequence"),rl(l)?rs(e,u,"whitespace")(l):u(l)):n(l)}(t)):n(t)}function u(r){return null===r||rn(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var i;let u;return i=t,o=(u=l.events[l.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=i,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(l){return l===r?(a++,e.consume(l),t):a<3?n(l):(e.exit("codeFencedFenceSequence"),rl(l)?rs(e,s,"whitespace")(l):s(l))}(i)};function s(i){return null===i||rn(i)?(e.exit("codeFencedFence"),l.interrupt?t(i):e.check(rR,c,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rn(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(l)):rl(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rs(e,u,"whitespace")(l)):96===l&&l===r?n(l):(e.consume(l),t)}(i))}function u(t){return null===t||rn(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rn(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(l)):96===l&&l===r?n(l):(e.consume(l),t)}(t))}function c(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&rl(t)?rs(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||rn(t)?e.check(rR,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||rn(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},rz={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),rs(e,l,"linePrefix",5)(t)};function l(t){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function t(n){return null===n?i(n):rn(n)?e.attempt(rO,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||rn(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},rO={partial:!0,tokenize:function(e,t,n){let r=this;return l;function l(t){return r.parser.lazy[r.now().line]?n(t):rn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):rs(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):rn(e)?l(e):n(e)}}};function rF(e,t,n,r,l,i,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(l),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||n8(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||rn(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(l){return!c&&(null===l||41===l||rr(l))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(l)):c<u&&40===l?(e.consume(l),c++,h):41===l?(e.consume(l),c--,h):null===l||32===l||40===l||n8(l)?n(l):(e.consume(l),92===l?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function r_(e,t,n,r,l,i){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(l),e.consume(t),e.exit(l),e.enter(i),u};function u(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(l),e.consume(d),e.exit(l),e.exit(r),t):rn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||rn(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!rl(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function rB(e,t,n,r,l,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(l),e.consume(t),e.exit(l),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===o?(e.exit(i),a(o)):null===t?n(t):rn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rs(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||rn(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function rH(e,t){let n;return function r(l){return rn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):rl(l)?rs(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}function rU(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let rq={partial:!0,tokenize:function(e,t,n){return function(t){return rr(t)?rH(e,r)(t):n(t)};function r(t){return rB(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function l(t){return rl(t)?rs(e,i,"whitespace")(t):i(t)}function i(e){return null===e||rn(e)?t(e):n(e)}}},rV=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rK=["pre","script","style","textarea"],r$={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(rp,t,n)}}},rG={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return rn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):n(t)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rW={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&n2(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,l,i,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(l){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(l=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[l-2][1].start}};return i=n5(i=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),i=n5(i,[["enter",c,t]]),i=n5(i,rN(t.parser.constructs.insideSpan.null,e.slice(r+a+4,l-3),t)),i=n5(i,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),i=n5(i,e.slice(l+1)),i=n5(i,[["exit",s,t]]),n2(e,r,e.length,i),e},tokenize:function(e,t,n){let r,l,i=this,o=i.events.length;for(;o--;)if(("labelImage"===i.events[o][1].type||"labelLink"===i.events[o][1].type)&&!i.events[o][1]._balanced){r=i.events[o][1];break}return function(t){return r?r._inactive?c(t):(l=i.parser.defined.includes(rU(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(rX,u,l?u:c)(t):91===t?e.attempt(rQ,u,l?s:c)(t):l?u(t):c(t)}function s(t){return e.attempt(rY,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},rX={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return rr(t)?rH(e,l)(t):l(t)}function l(t){return 41===t?u(t):rF(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return rr(t)?rH(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?rB(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return rr(t)?rH(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rQ={tokenize:function(e,t,n){let r=this;return function(t){return r_.call(r,e,l,i,"reference","referenceMarker","referenceString")(t)};function l(e){return r.parser.defined.includes(rU(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},rY={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)}}},rJ={name:"labelStartImage",resolveAll:rW.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),l};function l(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rZ={name:"labelStartLink",resolveAll:rW.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),l};function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},r0={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rs(e,t,"linePrefix")}}},r1={name:"thematicBreak",tokenize:function(e,t,n){let r,l=0;return function(i){var o;return e.enter("thematicBreak"),r=o=i,function i(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),l++,t):(e.exit("thematicBreakSequence"),rl(n)?rs(e,i,"whitespace")(n):i(n))}(o)):l>=3&&(null===o||rn(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},r2={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(rp,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rs(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!rl(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r4,t,l)(n))});function l(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,rs(e,e.attempt(r2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,l=r.events[r.events.length-1],i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,o=0;return function(t){let l=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===l?!r.containerState.marker||t===r.containerState.marker:n7(t)){if(r.containerState.type||(r.containerState.type=l,e.enter(l,{_container:!0})),"listUnordered"===l)return e.enter("listItemPrefix"),42===t||45===t?e.check(r1,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(l){return n7(l)&&++o<10?(e.consume(l),t):(!r.interrupt||o<2)&&(r.containerState.marker?l===r.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),a(l)):n(l)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(rp,r.interrupt?n:s,e.attempt(r5,c,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function u(t){return rl(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},r5={partial:!0,tokenize:function(e,t,n){let r=this;return rs(e,function(e){let l=r.events[r.events.length-1];return!rl(e)&&l&&"listItemPrefixWhitespace"===l[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},r4={partial:!0,tokenize:function(e,t,n){let r=this;return rs(e,function(e){let l=r.events[r.events.length-1];return l&&"listItemIndent"===l[1].type&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},r3={name:"setextUnderline",resolveTo:function(e,t){let n,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[n][1],t]),e[n][1].end={...e[l][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,l=this;return function(t){var o;let a,s=l.events.length;for(;s--;)if("lineEnding"!==l.events[s][1].type&&"linePrefix"!==l.events[s][1].type&&"content"!==l.events[s][1].type){a="paragraph"===l.events[s][1].type;break}return!l.parser.lazy[l.now().line]&&(l.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),rl(n)?rs(e,i,"lineSuffix")(n):i(n))}(o)):n(t)};function i(r){return null===r||rn(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,l=this;return function(t){var r;return e.enter("definition"),r=t,r_.call(l,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function i(t){return(r=rU(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return rr(t)?rH(e,a)(t):a(t)}function a(t){return rF(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(rq,u,u)(t)}function u(t){return rl(t)?rs(e,c,"whitespace")(t):c(t)}function c(i){return null===i||rn(i)?(e.exit("definition"),l.parser.defined.push(r),t(i)):n(i)}}}},"disable",0,{null:[]},"document",0,{42:r2,43:r2,45:r2,48:r2,49:r2,50:r2,51:r2,52:r2,53:r2,54:r2,55:r2,56:r2,57:r2,62:rI},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,l=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),l-2>i&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},n2(e,i,l-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){var i;return e.enter("atxHeading"),i=l,e.enter("atxHeadingSequence"),function l(i){return 35===i&&r++<6?(e.consume(i),l):null===i||rr(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||rn(r)?(e.exit("atxHeading"),t(r)):rl(r)?rs(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||rr(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:r1,45:[r3,r1],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return 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)),e},tokenize:function(e,t,n){let r,l,i,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),l=!0,f):63===o?(e.consume(o),r=3,s.interrupt?t:M):n3(o)?(e.consume(o),i=String.fromCharCode(o),h):n(o)}function c(l){return 45===l?(e.consume(l),r=2,d):91===l?(e.consume(l),r=5,o=0,p):n3(l)?(e.consume(l),r=4,s.interrupt?t:M):n(l)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:M):n(r)}function p(r){let l="CDATA[";return r===l.charCodeAt(o++)?(e.consume(r),o===l.length)?s.interrupt?t:S:p:n(r)}function f(t){return n3(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||rr(o)){let a=47===o,u=i.toLowerCase();return!a&&!l&&rK.includes(u)?(r=1,s.interrupt?t(o):S(o)):rV.includes(i.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):S(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):l?function t(n){return rl(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||n6(o)?(e.consume(o),i+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||n3(t)?(e.consume(t),x):rl(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||n6(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):rl(t)?(e.consume(t),y):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):rl(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||rr(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,k):null===t||rn(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||rl(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||rn(t)?S(t):rl(t)?(e.consume(t),j):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),A):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),D):rn(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(r$,R,C)(t)):null===t||rn(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),S)}function C(t){return e.check(rG,N,R)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||rn(t)?C(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),M):S(t)}function I(t){return 47===t?(e.consume(t),i="",T):S(t)}function T(t){if(62===t){let n=i.toLowerCase();return rK.includes(n)?(e.consume(t),A):S(t)}return n3(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),T):S(t)}function D(t){return 93===t?(e.consume(t),M):S(t)}function M(t){return 62===t?(e.consume(t),A):45===t&&2===r?(e.consume(t),M):S(t)}function A(t){return null===t||rn(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),A)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:r3,95:r1,96:rL,126:rL},"flowInitial",0,{[-2]:rz,[-1]:rz,32:rz},"insideSpan",0,{null:[rE,rv]},"string",0,{38:rA,92:rT},"text",0,{[-5]:r0,[-4]:r0,[-3]:r0,33:rJ,38:rA,42:rE,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return n3(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(t){return 43===t||45===t||46===t||n6(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||n6(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||n8(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):n9(t)?(e.consume(t),a):n(t)}function s(l){return n6(l)?function l(i){return 46===i?(e.consume(i),r=0,s):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||n6(i))&&r++<63){let n=45===i?t:l;return e.consume(i),n}return n(i)}(i)}(l):n(l)}}},{name:"htmlText",tokenize:function(e,t,n){let r,l,i,o=this;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),b):63===t?(e.consume(t),y):n3(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),l=0,f):n3(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):rn(t)?(i=c,T(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?I(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(l++)?(e.consume(t),l===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):rn(t)?(i=h,T(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?I(t):rn(t)?(i=x,T(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):rn(t)?(i=y,T(t)):(e.consume(t),y)}function v(e){return 62===e?I(e):y(e)}function b(t){return n3(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||n6(t)?(e.consume(t),k):function t(n){return rn(n)?(i=t,T(n)):rl(n)?(e.consume(n),t):I(n)}(t)}function w(t){return 45===t||n6(t)?(e.consume(t),w):47===t||62===t||rr(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),I):58===t||95===t||n3(t)?(e.consume(t),S):rn(t)?(i=j,T(t)):rl(t)?(e.consume(t),j):I(t)}function S(t){return 45===t||46===t||58===t||95===t||n6(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),C):rn(n)?(i=t,T(n)):rl(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,N):rn(t)?(i=C,T(t)):rl(t)?(e.consume(t),C):(e.consume(t),E)}function N(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):rn(t)?(i=N,T(t)):(e.consume(t),N)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||rr(t)?j(t):(e.consume(t),E)}function P(e){return 47===e||62===e||rr(e)?j(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return rl(t)?rs(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),i(t)}}}],91:rZ,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return rn(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},rT],93:rW,95:rE,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=l;++t<r;)if("codeTextData"===e[t][1].type){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(t=l-1,r++;++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},tokenize:function(e,t,n){let r,l,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(l=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(l.type="codeTextData",a(o))}(s)):rn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||rn(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],19210);var r6=e.i(19210);let r9=/[\0\t\n\r]/g;function r8(e,t){let 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&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let r7=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function le(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return r8(n.slice(t?2:1),t?16:10)}return rM(n)||e}let lt={}.hasOwnProperty;function ln(e){return{line:e.line,column:e.column,offset:e.offset}}function lr(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+nR({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nR({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+nR({start:t.start,end:t.end})+") is still open")}function ll(e){let t=this;t.parser=function(n){var r,l;let i,o,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:r(f,l),codeText:r(function(){return{type:"inlineCode",value:""}},l),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,l),htmlFlowData:u,htmlText:r(g,l),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:l,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=r8(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=rM(n);let l=this.stack[this.stack.length-1];l.value+=t},characterReference:function(e){this.stack.pop().position.end=ln(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rU(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(r7,le),n.identifier=rU(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=ln(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rU(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let l=n[r];Array.isArray(l)?e(t,l):function(e,t){let n;for(n in t)if(lt.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,l)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:i,exit:a,buffer:l,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,l,i,o,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||i||(i=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(l=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;l&&(e[l][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",l=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!l||i<l)&&(r._spread=!0),r.end=Object.assign({},l?e[l][1].start:t[1].end),e.splice(l||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let l={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=l,e.splice(a,0,["enter",l,t[2]]),a++,n++,i=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];lt.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||lr).call(o,void 0,e[0])}for(r.position={start:ln(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ln(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ln(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lr).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+nR({start:e.start,end:e.end})+"): it’s not open");n.position.end=ln(e.end)}function s(){var e;return e=this.stack.pop(),n0(e,"boolean"!=typeof nZ.includeImageAlt||nZ.includeImageAlt,"boolean"!=typeof nZ.includeHtml||nZ.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:ln(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ln(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!rm(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,l=(n4.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){n4.call(l,r)||(l[r]=[]);let e=i[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);n2(e,0,0,r)}(l[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([r6,...(e||{}).extensions||[]]),content:n(ru),defined:[],document:n(rc),flow:n(ry),lazy:{},string:n(rb),text:n(rk)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},l={},i=[],o=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){rn(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){l[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,l=[];for(;++r<e.length;){let i,o=e[r];if("string"==typeof o)i=o;else switch(o){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(o)}n=-2===o,l.push(i)}return l.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=n5(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=rN(i,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,l=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;if(r===i)n=[e[r].slice(l,o)];else{if(n=e.slice(r,i),l>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(l):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:l,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:l,offset:i}}function f(e,t){t.restore()}function h(e,t){return function(n,l,i){var o;let c,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?i:x(e[d])}function x(e){return function(n){let l,i,o,c,d;return(l=p(),i=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=l,u.previous=i,u.currentConstruct=o,u.events.length=c,a=d,g()}},f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(f,h),l}function v(e){return(h.restore(),++d<c.length)?x(c[d]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&n2(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}(t,e,n)}}})(l).document().write((o=1,a="",s=!0,function(e,t,n){let r,l,u,c,d,p=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(r9.lastIndex=u,c=(r=r9.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),u<c&&(p.push(e.slice(u,c)),o+=c-u),d){case 0:p.push(65533),o++;break;case 9:for(l=4*Math.ceil(o/4),p.push(-2);o++<l;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:i=!0,o=1}u=c+1}return n&&(i&&p.push(-5),a&&p.push(a),p.push(null)),p})(n,r,!0))))}}let li="object"==typeof self?self:globalThis,lo=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=l=>{if(t.has(l))return t.get(l);let[i,o]=e[l];switch(i){case 0:case -1:return n(o,l);case 1:{let e=n([],l);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},l);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),l);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),l)}case 5:{let e=n(new Map,l);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,l);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new li[e](t),l)}case 8:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new li[i](o),l)})(0)},{toString:la}={},{keys:ls}=Object,lu=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=la.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},lc=([e,t])=>0===e&&("function"===t||"symbol"===t),ld=(e,{json:t,lossy:n}={})=>{var r,l,i;let o,a,s=[];return(r=!(t||n),l=!!t,i=new Map,o=(e,t)=>{let n=s.push(e)-1;return i.set(t,n),n},a=e=>{if(i.has(e))return i.get(e);let[t,n]=lu(e);switch(t){case 0:{let l=e;switch(n){case"bigint":t=8,l=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);l=null;break;case"undefined":return o([-1],e)}return o([t,l],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],l=o([t,r],e);for(let t of e)r.push(a(t));return l}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(l&&"toJSON"in e)return a(e.toJSON());let i=[],s=o([t,i],e);for(let t of ls(e))(r||!lc(lu(e[t])))&&i.push([a(t),a(e[t])]);return s}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],l=o([t,n],e);for(let[t,l]of e)(r||!(lc(lu(t))||lc(lu(l))))&&n.push([a(t),a(l)]);return l}case 6:{let n=[],l=o([t,n],e);for(let t of e)(r||!lc(lu(t)))&&n.push(a(t));return l}}let{message:s}=e;return o([t,{name:n,message:s}],e)})(e),s},lp="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?lo(ld(e,t)):structuredClone(e):(e,t)=>lo(ld(e,t));function lf(e){let t=[],n=-1,r=0,l=0;for(;++n<e.length;){let i=e.charCodeAt(n),o="";if(37===i&&n6(e.charCodeAt(n+1))&&n6(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function lh(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lm(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let lg=function(e){var t,n;if(null==e)return ly;if("function"==typeof e)return lx(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lg(e[n]);return lx(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,lx(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,lx(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function lx(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ly(){return!0}let lv=[];function lb(e,t,n,r){var l,i,o;let a,s,u,c,d,p;"function"==typeof t&&"function"!=typeof n?(s=void 0,u=t,a=n):(s=t,u=n,a=r),l=s,i=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return u(e,r,n)},o=a,"function"==typeof l&&"function"!=typeof i?(o=i,i=l):c=l,d=lg(c),p=o?-1:1,(function e(t,n,r){let a=t&&"object"==typeof t?t:{};if("string"==typeof a.type){let e="string"==typeof a.tagName?a.tagName:"string"==typeof a.name?a.name:void 0;Object.defineProperty(s,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return s;function s(){var a;let s,u,c,f=lv;if((!l||d(t,n,r[r.length-1]||void 0))&&!1===(f=Array.isArray(a=i(t,r))?a:"number"==typeof a?[!0,a]:null==a?lv:[a])[0])return f;if("children"in t&&t.children&&t.children&&"skip"!==f[0])for(u=(o?t.children.length:-1)+p,c=r.concat(t);u>-1&&u<t.children.length;){if(!1===(s=e(t.children[u],u,c)())[0])return s;u="number"==typeof s[1]?s[1]:u+p}return f}})(e,void 0,[])()}function lk(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let l=e.all(t),i=l[0];i&&"text"===i.type?i.value="["+i.value:l.unshift({type:"text",value:"["});let o=l[l.length-1];return o&&"text"===o.type?o.value+=r:l.push({type:"text",value:r}),l}function lw(e){let t=e.spread;return null==t?e.children.length>1:t}function lj(e,t,n){let r=0,l=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(l-1);for(;9===t||32===t;)l--,t=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let lS={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),i=lf(l.toLowerCase()),o=e.footnoteOrder.indexOf(l),a=e.footnoteCounts.get(l);void 0===a?(a=0,e.footnoteOrder.push(l),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(l,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lk(e,t);let l={src:lf(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:lf(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lk(e,t);let l={href:lf(r.url||"")};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:lf(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),l=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=lw(n[r])}return t}(n):lw(t),i={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(l||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||l?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(l||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),l=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++l<r.length;){let e=r[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}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),l=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),l.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=nM(t.children[1]),o=nD(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),l.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,l=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=i?i[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:l,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),l=0,i=[];for(;r;)i.push(lj(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(lj(t.slice(l),l>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lC,yaml:lC,definition:lC,footnoteDefinition:lC};function lC(){}let lN={}.hasOwnProperty,lE={};function lP(e,t){e.position&&(t.position=function(e){let t=nM(e),n=nD(e);if(t&&n)return{start:t,end:n}}(e))}function lI(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,l=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&l&&Object.assign(n.properties,lp(l)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function lT(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function lD(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function lM(e,t){let n,r,l,i,o=(n=t||lE,r=new Map,l=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let l=i.one(n[r],e);if(l){if(r&&"break"===n[r-1].type&&(Array.isArray(l)||"text"!==l.type||(l.value=lD(l.value)),!Array.isArray(l)&&"element"===l.type)){let e=l.children[0];e&&"text"===e.type&&(e.value=lD(e.value))}Array.isArray(l)?t.push(...l):t.push(l)}}}return t},applyData:lI,definitionById:r,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lS,...n.handlers},one:function(e,t){let n=e.type,r=i.handlers[n];if(lN.call(i.handlers,n)&&r)return r(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=lp(n);return r.children=i.all(e),r}return lp(e)}return(i.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(lN.call(n,"hProperties")||lN.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(i,e,t)},options:n,patch:lP,wrap:lT},lb(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:l,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),i),a=o.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lh,r=e.options.footnoteBackLabel||lm,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let l=e.footnoteById.get(e.footnoteOrder[s]);if(!l)continue;let i=e.all(l),o=String(l.identifier).toUpperCase(),u=lf(o.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(l,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...lp(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(o),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(tZ("children"in u),u.children.push({type:"text",value:"\n"},s)),u}function lA(e,t){return e&&"run"in e?async function(n,r){let l=lM(n,{file:r,...t});await e.run(l,r)}:function(n,r){return lM(n,{file:r,...e||t})}}function lR(e){if(e)throw e}var lL=e.i(75609);function lz(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let lO=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');lH(e);let r=0,l=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1);return l<0?"":e.slice(r,l)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(l=i):(a=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},lF=function(e){let t;if(lH(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},l_=function(e){let t;lH(e);let n=e.length,r=-1,l=0,i=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){l=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},lB=function(...e){var t;let n,r,l,i=-1;for(;++i<e.length;)lH(e[i]),e[i]&&(l=void 0===l?e[i]:l+"/"+e[i]);return void 0===l?".":(lH(t=l),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,l="",i=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(l.length<2||2!==i||46!==l.codePointAt(l.length-1)||46!==l.codePointAt(l.length-2)){if(l.length>2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=s,a=0;continue}}else if(l.length>0){l="",i=0,o=s,a=0;continue}}t&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,s):l=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return l}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function lH(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function lU(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let lq=["history","path","basename","stem","extname","dirname"];class lV{constructor(e){let t,n;t=e?lU(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<lq.length;){const e=lq[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)lq.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?lO(this.path):void 0}set basename(e){l$(e,"basename"),lK(e,"basename"),this.path=lB(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?lF(this.path):void 0}set dirname(e){lG(this.basename,"dirname"),this.path=lB(e||"",this.basename)}get extname(){return"string"==typeof this.path?l_(this.path):void 0}set extname(e){if(lK(e,"extname"),lG(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=lB(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){lU(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!lU(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),l$(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?lO(this.path,this.extname):void 0}set stem(e){l$(e,"stem"),lK(e,"stem"),this.path=lB(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new nF(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function lK(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function l$(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function lG(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let lW=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},lX={}.hasOwnProperty;class lQ extends lW{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function l(i,...o){let a=e[++n],s=-1;if(i)return void r(i);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let i,o=e.length>t.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...l){n||(n=!0,t(e,...l))}function l(e){r(null,e)}})(a,l)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new lQ,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,lL.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(l0("data",this.frozen),this.namespace[e]=t,this):lX.call(this.namespace,e)&&this.namespace[e]||void 0:e?(l0("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=l5(e),n=this.parser||this.Parser;return lJ("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lJ("process",this.parser||this.Parser),lZ("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,l){let i=l5(e),o=n.parse(i);function a(e,n){e||!n?l(e):r?r(n):(tZ(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,i,function(e,t,r){var l,i;if(e||!t||!r)return a(e);let o=n.stringify(t,r);"string"==typeof(l=o)||(i=l)&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),lJ("processSync",this.parser||this.Parser),lZ("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,lR(e),t=r}),l2("processSync","process",n),tZ(t,"we either bailed on an error or have a tree"),t}run(e,t,n){l1(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?l(void 0,n):new Promise(l);function l(l,i){tZ("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=l5(t);r.run(e,o,function(t,r,o){let a=r||e;t?i(t):l?l(a):(tZ(n,"`done` is defined if `resolve` is not"),n(void 0,a,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){lR(e),n=t,r=!0}),l2("runSync","run",r),tZ(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=l5(t),r=this.compiler||this.Compiler;return lZ("stringify",r),l1(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(l0("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?i(e):l(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function l(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=(0,lL.default)(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else l(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,l=-1;for(;++r<n.length;)if(n[r][0]===e){l=r;break}if(-1===l)n.push([e,...t]);else if(t.length>0){let[r,...i]=t,o=n[l][1];lz(o)&&lz(r)&&(r=(0,lL.default)(!0,o,r)),n[l]=[e,r,...i]}}}}let lY=new lQ().freeze();function lJ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function lZ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function l0(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l1(e){if(!lz(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function l2(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function l5(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new lV(e)}let l4=[],l3={allowDangerousHtml:!0},l6=/^(https?|ircs?|mailto|xmpp)$/i,l9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function l8(e){var n;let r,l,i,o,a,s=(r=(n=e).rehypePlugins||l4,l=n.remarkPlugins||l4,i=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...l3}:l3,lY().use(ll).use(l).use(lA,i).use(r)),u=(o=e.children||"",a=new lV,"string"==typeof o?a.value=o:t0("Unexpected value `"+o+"` for `children` prop, expected `string`"),a);return function(e,n){let r=n.allowedElements,l=n.allowElement,i=n.components,o=n.disallowedElements,a=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||l7;for(let e of l9)Object.hasOwn(n,e.from)&&t0("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return r&&o&&t0("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),lb(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nJ)if(Object.hasOwn(nJ,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nJ[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let i=r?!r.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&l&&"number"==typeof t&&(i=!l(e,t,n)),i&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,l,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,l,i){let o=Array.isArray(l.children),a=nM(e);return r(t,l,i,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");l=t.jsx,i=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?i:l;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?nI:nP,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=nK(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:i,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function l7(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return -1===t||-1!==l&&t>l||-1!==n&&t>n||-1!==r&&t>r||l6.test(e.slice(0,t))?e:""}let ie=(0,s.default)("git-compare-arrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]),it=(0,s.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),ir={p:({children:e})=>(0,t.jsx)("p",{className:"text-muted-foreground mb-2 text-xs leading-relaxed last:mb-0",children:e}),strong:({children:e})=>(0,t.jsx)("strong",{className:"text-foreground font-semibold",children:e}),em:({children:e})=>(0,t.jsx)("em",{className:"italic",children:e}),code:({children:e,className:n})=>n?(0,t.jsx)("code",{className:`${n} text-[11px]`,children:e}):(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e}),pre:({children:e})=>(0,t.jsx)("pre",{className:"bg-muted my-2 overflow-x-auto rounded-lg border p-3",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"text-muted-foreground mb-2 list-disc space-y-1 pl-4 text-xs",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"text-muted-foreground mb-2 list-decimal space-y-1 pl-4 text-xs",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e}),a:({children:e,href:n})=>(0,t.jsx)("a",{href:n,className:"text-primary underline underline-offset-2",target:"_blank",rel:"noopener noreferrer",children:e})};function il({decision:e,index:r}){let[l,i]=(0,n.useState)(!1),o=(0,w.useSoundAction)("expand"),a=(0,w.useSoundAction)("collapse");return(0,t.jsxs)("div",{className:"border-border rounded-lg border",children:[(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:r+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-xs",children:e.chosen})]})]}),"decisionName"in e&&e.decisionName?(0,t.jsx)(I.Badge,{variant:"secondary",className:"bg-primary/10 text-primary shrink-0",children:e.decisionName}):null]}),e.rationale?(0,t.jsx)(l8,{components:ir,children:e.rationale}):null]}),e.rejected.length>0?(0,t.jsxs)("div",{className:"border-border border-t",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{l?a.play():o.play(),i(e=>!e)},className:"text-muted-foreground hover:bg-muted/50 flex w-full items-center gap-1.5 px-4 py-3 text-xs font-medium transition-colors",children:[(0,t.jsx)(tL,{className:`h-3.5 w-3.5 transition-transform ${l?"rotate-90":""}`}),(0,t.jsx)(it,{className:"h-3.5 w-3.5"}),"Other Options Considered (",e.rejected.length,")"]}),l?(0,t.jsx)("div",{className:"space-y-1.5 px-4 pb-3",children:e.rejected.map(e=>(0,t.jsx)("div",{className:"bg-primary/5 rounded-md px-3 py-2",children:(0,t.jsx)("span",{className:"text-foreground text-xs",children:e})},e))}):null]}):null]})}function ii({data:e}){let{summary:n,decisions:r}=e;return 0===r.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Technical Implementation Plan Review"}),n?(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:n}):null]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)(ie,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Technical Decisions"})]}),r.map((e,n)=>(0,t.jsx)(il,{decision:e,index:n},e.title))]})}let io=(0,s.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);function ia({item:e,index:n}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsx)("div",{className:"space-y-2 px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.question}),(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:e.selectedOption}),e.wasRecommended?(0,t.jsx)(I.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null]})]})]})})})}function is({data:e}){let{questions:n}=e;return 0===n.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(io,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Product Decisions"})]}),n.map((e,n)=>(0,t.jsx)(ia,{item:e,index:n},e.question))]})}function iu({techData:e,productData:n,onApprove:r,onReject:l,isProcessing:o=!1,isRejecting:a=!1}){return 0===e.decisions.length?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)(tJ.Tabs,{defaultValue:"technical",className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"shrink-0 px-4 pt-4",children:(0,t.jsxs)(tJ.TabsList,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(tJ.TabsTrigger,{value:"product",children:"Product"}),(0,t.jsx)(tJ.TabsTrigger,{value:"technical",children:"Technical"})]})}),(0,t.jsx)(tJ.TabsContent,{value:"product",className:"mt-0 flex-1 overflow-y-auto",children:null===n?(0,t.jsx)("div",{className:"flex items-center justify-center p-8","data-testid":"product-loading",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):n?(0,t.jsx)(is,{data:n}):(0,t.jsx)("p",{className:"text-muted-foreground p-4 text-center text-sm",children:"No product decisions available."})}),(0,t.jsx)(tJ.TabsContent,{value:"technical",className:"mt-0 flex-1 overflow-y-auto",children:(0,t.jsx)(ii,{data:e})})]}),(0,t.jsx)(tG,{onReject:l,onApprove:r,approveLabel:"Approve Plan",approveIcon:(0,t.jsx)(K.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise the plan...",isProcessing:o,isRejecting:a})]})}var ic=e.i(28201);let id=(0,s.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),ip=(0,s.default)("file-diff",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);var ih=e.i(49228);let im=(0,s.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ig({phases:e}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(it,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Implementation Phases"})]}),(0,t.jsx)("ol",{className:"space-y-2",children:e.map((e,n)=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-emerald-100 text-[10px] font-bold text-emerald-700",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-medium",children:e.name}),e.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px] leading-relaxed",children:e.description}):null]})]},e.id))})]})})}function ix({data:e,onApprove:n,onReject:r,isProcessing:l=!1,isRejecting:o=!1}){let{pr:s,diffSummary:c,phases:d,branch:p,warning:f}=e;return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-emerald-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Merge Review"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:s?"Review the pull request details and approve to merge.":"Review the changes and approve to merge."})]})]}),p?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(ih.GitBranch,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)(I.Badge,{variant:"secondary",className:"font-mono text-[11px]",children:p.source}),(0,t.jsx)(im,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}),(0,t.jsx)(I.Badge,{variant:"outline",className:"font-mono text-[11px]",children:p.target})]})}):null,s?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",s.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(I.Badge,{variant:"outline",className:"text-xs",children:s.status})]}),s.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(F,{status:s.ciStatus})]}):null,s.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:s.commitHash.slice(0,7)})]})]}):null]})}):null,c?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(ip,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Changes"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-3",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:c.filesChanged}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"files"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-green-600",children:["+",c.additions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"additions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-red-600",children:["-",c.deletions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"deletions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:c.commitCount}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"commits"})]})]})]})}):f?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(id,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:f})]})}):null,d&&d.length>0?(0,t.jsx)(ig,{phases:d}):null]}),(0,t.jsx)(tG,{onReject:r,onApprove:n,approveLabel:"Approve Merge",approveIcon:l?(0,t.jsx)(i.Loader2,{className:"mr-1.5 h-4 w-4 animate-spin"}):(0,t.jsx)(ic.GitMerge,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise before merging...",isProcessing:l,isRejecting:o})]})}e.i(47506);var iy=e.i(2929),iv=e.i(99045);function ib({view:e}){let a,s=(0,r.useRouter)(),u=(0,w.useSoundAction)("delete"),p=(0,w.useSoundAction)("reject"),[f,I]=(0,n.useState)(e);(0,n.useEffect)(()=>{I(e)},[e]);let M="feature"===f.type||"prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,{events:A}=(0,S.useAgentEventsContext)(),R=(0,n.useRef)(0);(0,n.useEffect)(()=>{if(!M||A.length<=R.current)return;let e=A.slice(R.current);for(let t of(R.current=A.length,e)){if(t.featureId!==M.featureId)continue;let e=(0,iv.mapEventTypeToState)(t.eventType),n=(0,iv.mapPhaseNameToLifecycle)(t.phaseName);s.refresh(),I(t=>"feature"!==t.type&&"prd-review"!==t.type&&"tech-review"!==t.type&&"merge-review"!==t.type?t:{...t,node:{...t.node,state:e,...void 0!==n&&{lifecycle:n}}})}},[A,M,s]);let z=(0,r.usePathname)().startsWith("/feature/"),O=(0,n.useCallback)(()=>{s.push("/")},[s]),[F,B]=(0,n.useState)(null),[H,U]=(0,n.useState)({}),[q,V]=(0,n.useState)(!1),[K,$]=(0,n.useState)(null),[G,W]=(0,n.useState)(!1),[X,Q]=(0,n.useState)(void 0),[Y,J]=(0,n.useState)(!1),[Z,ee]=(0,n.useState)(null),[et,en]=(0,n.useState)(!1),[er,el]=(0,n.useState)(!1),[ei,eo]=(0,n.useState)(!1),ea="prd-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(U({}),B(null),!ea)return;let e=!1;return V(!0),g(ea).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);if(t.questionnaire){B(t.questionnaire);let e={};for(let n of t.questionnaire.questions){let t=n.options.find(e=>e.recommended);t&&(e[n.id]=t.id)}U(e)}}}).catch(()=>{e||l.toast.error("Failed to load questionnaire")}).finally(()=>{e||V(!1)}),()=>{e=!0}},[ea]);let es="tech-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if($(null),!es)return;let e=!1;return W(!0),x(es).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);t.techDecisions&&$(t.techDecisions)}}).catch(()=>{e||l.toast.error("Failed to load tech decisions")}).finally(()=>{e||W(!1)}),()=>{e=!0}},[es]),(0,n.useEffect)(()=>{if(Q(void 0),!es)return;let e=!1;return J(!0),g(es).then(t=>{!e&&t.productDecisions&&Q(t.productDecisions)}).catch(()=>{}).finally(()=>{e||J(!1)}),()=>{e=!0}},[es]);let eu="merge-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(ee(null),!eu)return;let e=!1;return en(!0),y(eu).then(t=>{if(!e){if("error"in t)return void l.toast.error(t.error);ee(t)}}).catch(()=>{e||l.toast.error("Failed to load merge review data")}).finally(()=>{e||en(!1)}),()=>{e=!0}},[eu]);let ec="prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,ed=(0,n.useCallback)(async(e,t,n)=>{if(ec?.featureId){eo(!0);try{let r=await m(ec.featureId,e);if(!r.rejected)return void l.toast.error(r.error??`Failed to reject ${t.toLowerCase()}`);p.play(),l.toast.success(`${t} rejected — agent re-iterating (iteration ${r.iteration})`),r.iterationWarning&&l.toast.warning(`Iteration ${r.iteration} — consider approving or adjusting feedback to avoid excessive iterations`),O(),n?.()}finally{eo(!1)}}},[ec,O,p]),ep=(0,n.useCallback)(e=>ed(e,"Requirements",()=>U({})),[ed]),ef=(0,n.useCallback)(e=>ed(e,"Plan"),[ed]),eh=(0,n.useCallback)(e=>ed(e,"Merge"),[ed]),em=(0,n.useCallback)(async e=>{if(!ec?.featureId)return;let t=await h(ec.featureId);t.approved?(l.toast.success(`${e} approved — agent resuming`),O()):l.toast.error(t.error??`Failed to approve ${e.toLowerCase()}`)},[ec,O]),eg=(0,n.useCallback)(async e=>{let t;if("prd-review"!==f.type)return;if(F){let e=[];for(let[t,n]of Object.entries(H)){let r=F.questions.find(e=>e.id===t),l=r?.options.find(e=>e.id===n);r&&l&&e.push({questionId:r.question,selectedOption:l.label})}t={approved:!0,changedSelections:e}}let n=await h(f.node.featureId,t);n.approved?(l.toast.success("Requirements approved — agent resuming"),U({}),O()):l.toast.error(n.error??"Failed to approve requirements")},[f,F,H,O]),ex=(0,n.useCallback)(()=>em("Plan"),[em]),ey=(0,n.useCallback)(()=>em("Merge"),[em]),ev=(0,n.useCallback)(async e=>{el(!0);try{let t=await (0,v.deleteFeature)(e);if(t.error)return void l.toast.error(t.error);u.play(),l.toast.success("Feature deleted successfully"),s.push("/"),s.refresh()}catch{l.toast.error("Failed to delete feature")}finally{el(!1)}},[s,u]),eb=M?.repositoryPath&&M?.branch?{repositoryPath:M.repositoryPath,branch:M.branch,specPath:M.specPath}:null,ek=function(e){let[t,r]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),[s,u]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[p,f]=(0,n.useState)(null),h=(0,n.useRef)(null),m=(0,n.useRef)(null),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=h.current,t=m.current,n=g.current;return()=>{e&&clearTimeout(e),t&&clearTimeout(t),n&&clearTimeout(n)}},[]);let x=(0,n.useCallback)(async(t,n,r,l,i)=>{if(e&&!i){l.current&&clearTimeout(l.current),n(!0),r(null);try{let n=await t({repositoryPath:e.repositoryPath,branch:e.branch});if(!n.success){let e=n.error??"An unexpected error occurred";r(e),l.current=setTimeout(()=>r(null),5e3)}}catch(e){r(e instanceof Error?e.message:"An unexpected error occurred"),l.current=setTimeout(()=>r(null),5e3)}finally{n(!1)}}},[e]);return{openInIde:(0,n.useCallback)(()=>x(tX.openIde,r,u,h,t),[x,t]),openInShell:(0,n.useCallback)(()=>x(tQ.openShell,i,d,m,l),[x,l]),openSpecsFolder:(0,n.useCallback)(async()=>{if(e?.specPath&&!o){g.current&&clearTimeout(g.current),a(!0),f(null);try{let t=await (0,tY.openFolder)(e.specPath);if(!t.success){let e=t.error??"An unexpected error occurred";f(e),g.current=setTimeout(()=>f(null),5e3)}}catch(e){f(e instanceof Error?e.message:"An unexpected error occurred"),g.current=setTimeout(()=>f(null),5e3)}finally{a(!1)}}},[e,o]),ideLoading:t,shellLoading:l,specsLoading:o,ideError:s,shellError:c,specsError:p}}(eb),ew=M?.repositoryPath&&M.branch?{targetId:M.featureId,targetType:"feature",repositoryPath:M.repositoryPath,branch:M.branch}:null,ej=(0,j.useDeployAction)(ew),eS="Booting"===ej.status||"Ready"===ej.status;M&&(a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-header",children:[(0,t.jsx)(E.DrawerTitle,{children:M.name}),M.description?(0,t.jsx)(E.DrawerDescription,{children:M.description}):M.featureId?(0,t.jsx)(E.DrawerDescription,{className:"sr-only",children:M.featureId}):null]}),eb?(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,t.jsx)(tq,{actions:ek,repositoryPath:eb.repositoryPath,showSpecs:!!eb.specPath}),k.featureFlags.envDeploy&&ew?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.TooltipProvider,{children:(0,t.jsxs)(D.Tooltip,{children:[(0,t.jsx)(D.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(_.ActionButton,{label:eS?"Stop Dev Server":"Start Dev Server",onClick:eS?ej.stop:ej.deploy,loading:ej.deployLoading||ej.stopLoading,error:!!ej.deployError,icon:eS?d.Square:c.Play,iconOnly:!0,variant:"outline",size:"icon-sm"})})}),(0,t.jsx)(D.TooltipContent,{children:eS?"Stop Dev Server":"Start Dev Server"})]})}),eS?(0,t.jsx)(N.DeploymentStatusBadge,{status:ej.status,url:ej.url,targetId:ew?.targetId}):null]}):null,M.featureId?(0,t.jsxs)(L.AlertDialog,{children:[(0,t.jsx)(L.AlertDialogTrigger,{asChild:!0,children:(0,t.jsx)(P.Button,{variant:"ghost",size:"icon-sm","aria-label":"Delete feature",disabled:er,className:"text-muted-foreground hover:text-destructive ml-auto","data-testid":"feature-drawer-delete",children:er?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(o.Trash2,{className:"size-4"})})}),(0,t.jsxs)(L.AlertDialogContent,{children:[(0,t.jsxs)(L.AlertDialogHeader,{children:[(0,t.jsx)(L.AlertDialogTitle,{children:"Delete feature?"}),(0,t.jsxs)(L.AlertDialogDescription,{children:["This will permanently delete ",(0,t.jsx)("strong",{children:M.name})," (",M.featureId,"). This action cannot be undone.","running"===M.state?(0,t.jsx)(t.Fragment,{children:" This feature has a running agent that will be stopped."}):null]})]}),(0,t.jsxs)(L.AlertDialogFooter,{children:[(0,t.jsx)(L.AlertDialogCancel,{disabled:er,children:"Cancel"}),(0,t.jsx)(L.AlertDialogAction,{variant:"destructive",disabled:er,onClick:()=>ev(M.featureId),children:er?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Deleting…"]}):"Delete"})]})]})]}):null]}):null]}));let eC=null;return"feature"===f.type&&M?eC=(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-status",className:"flex flex-col gap-3 p-4",children:[(0,t.jsx)("div",{className:"text-muted-foreground text-xs font-semibold tracking-wider",children:iy.lifecycleDisplayLabels[M.lifecycle]}),(0,t.jsx)(ik,{data:M}),M.progress>0?(0,t.jsxs)("div",{"data-testid":"feature-drawer-progress",className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"text-muted-foreground flex items-center justify-between text-xs",children:[(0,t.jsx)("span",{children:"Progress"}),(0,t.jsxs)("span",{children:[M.progress,"%"]})]}),(0,t.jsx)("div",{className:"bg-muted h-2 w-full overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:(0,b.cn)("h-full rounded-full transition-all",iy.featureNodeStateConfig[M.state].progressClass),style:{width:`${M.progress}%`}})})]}):null]}),M.pr?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.Separator,{}),(0,t.jsx)(iw,{pr:M.pr})]}):null,(0,t.jsx)(ij,{data:M})]}):"prd-review"===f.type?eC=F?(0,t.jsx)(tW,{data:F,selections:H,onSelect:(e,t)=>U(n=>({...n,[e]:t})),onApprove:eg,onReject:ep,isProcessing:q,isRejecting:ei}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"tech-review"===f.type?eC=K?(0,t.jsx)(iu,{techData:K,productData:Y?null:X,onApprove:ex,onReject:ef,isProcessing:G,isRejecting:ei}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"merge-review"===f.type&&(eC=Z?(0,t.jsx)(ix,{data:Z,onApprove:ey,onReject:eh,isProcessing:et,isRejecting:ei}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})})),(0,t.jsx)(C.BaseDrawer,{open:z,onClose:O,size:"md",modal:!1,header:a,"data-testid":"feature"===f.type?"feature-drawer":"repository"===f.type?"repository-drawer":"review-drawer",children:eC})}function ik({data:e}){let n=iy.featureNodeStateConfig[e.state],r=n.icon;return(0,t.jsxs)("div",{className:(0,b.cn)("flex items-center gap-2 rounded-full px-3 py-1.5 text-sm font-medium",n.badgeBgClass,n.badgeClass),children:["running"===e.state?(0,t.jsx)(R,{size:"sm",className:"shrink-0"}):(0,t.jsx)(r,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:n.label})]})}function iw({pr:e}){let n={[p.PrStatus.Open]:"border-transparent bg-blue-50 text-blue-700 hover:bg-blue-50",[p.PrStatus.Merged]:"border-transparent bg-purple-50 text-purple-700 hover:bg-purple-50",[p.PrStatus.Closed]:"border-transparent bg-red-50 text-red-700 hover:bg-red-50"};return(0,t.jsx)("div",{"data-testid":"feature-drawer-pr",className:"border-border mx-4 rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",e.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(I.Badge,{className:n[e.status],children:e.status})]}),e.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(F,{status:e.ciStatus})]}):null,e.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e.commitHash.slice(0,7)})]})]}):null]})})}function ij({data:e}){return e.agentType??e.runtime??e.blockedBy??e.errorMessage?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.Separator,{}),(0,t.jsxs)("div",{"data-testid":"feature-drawer-details",className:"flex flex-col gap-3 p-4",children:[e.agentType?(0,t.jsx)(iS,{label:"Agent",value:e.agentType}):null,e.runtime?(0,t.jsx)(iS,{label:"Runtime",value:e.runtime}):null,e.blockedBy?(0,t.jsx)(iS,{label:"Blocked by",value:e.blockedBy}):null,e.errorMessage?(0,t.jsx)(iS,{label:"Error",value:e.errorMessage}):null]})]}):null}function iS({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:e}),(0,t.jsx)("span",{className:"text-sm",children:n})]})}e.s(["FeatureDrawerClient",()=>ib],36986)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69090,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function p(e){var t=e.match(l);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function f(){var e={line:n,column:c};return function(t){return t.position=new h(e),g(i),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var l=Error(t.source+":"+n+":"+c+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=c,l.source=e,t.silent);else throw l}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,p(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(i);var v,b=[];for(x(b);v=function(){var e=f(),t=g(o);if(t){if(y(),!g(a))return m("property missing ':'");var n=g(s),l=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),l}}();)!1!==v&&(b.push(v),x(b));return b}},59596,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,l.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:l}=e;i?t(r,l,e):l&&((n=n||{})[r]=l)}),n};let l=r(e.r(69090))},51521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||i.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(o,u)).replace(l,s))}},63185,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(59596)),l=e.r(51521);function i(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,l.camelCase)(e,t)]=r)}),n}i.default=i,t.exports=i},75609,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===l.call(e)},s=function(e){if(!e||"[object Object]"!==l.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,l,i,o,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=c(d,n),d!==(l=c(t,n))&&(h&&l&&(s(l)||(i=a(l)))?(i?(i=!1,o=r&&a(r)?r:[]):o=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,o,l)})):void 0!==l&&u(d,{name:n,newValue:l}));return d}},36986,e=>{"use strict";var t=e.i(20314),n=e.i(79054),r=e.i(31406),l=e.i(60112),i=e.i(83428),o=e.i(67669),a=e.i(30702),s=e.i(3645);let u=(0,s.default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var c=e.i(24042),d=e.i(64970),p=e.i(17406),f=e.i(21023);let h=(0,f.createServerReference)("608a3e52558e0c0b8347ceed598800a1763ff7a2b9",f.callServer,void 0,f.findSourceMapURL,"approveFeature"),m=(0,f.createServerReference)("605d849bbee3260afebd807cda48b37d6430dc735f",f.callServer,void 0,f.findSourceMapURL,"rejectFeature"),g=(0,f.createServerReference)("4057af599ef8f7b1dc0cbd425448b7a6eac5a3c79b",f.callServer,void 0,f.findSourceMapURL,"getFeatureArtifact"),x=(0,f.createServerReference)("4054778b82edf33936929456d7ac237f7516b3d87c",f.callServer,void 0,f.findSourceMapURL,"getResearchArtifact"),y=(0,f.createServerReference)("40c7135122502901233533acdbd72b1a78dc3c9614",f.callServer,void 0,f.findSourceMapURL,"getMergeReviewData");var v=e.i(54213),b=e.i(31777),k=e.i(63629),w=e.i(8361),j=e.i(8537),S=e.i(39443);e.i(1650);var C=e.i(11495);e.i(99348);var N=e.i(17466),E=e.i(45811),P=e.i(35364),I=e.i(81846),T=e.i(25235),D=e.i(2828);let M=(0,e.i(94237).cva)("inline-block shrink-0",{variants:{size:{sm:"size-5",md:"size-8",lg:"size-12"}},defaultVariants:{size:"md"}}),A=[{r:9,spline:"0.12 0 0.04 1",opacity:1},{r:8.2,spline:"0.16 0 0.08 1",opacity:.95},{r:7.4,spline:"0.20 0 0.12 1",opacity:.9},{r:6.6,spline:"0.25 0 0.16 1",opacity:.84},{r:5.8,spline:"0.30 0 0.20 1",opacity:.76},{r:5,spline:"0.36 0 0.25 1",opacity:.67},{r:4.2,spline:"0.42 0 0.31 1",opacity:.56},{r:3.4,spline:"0.48 0 0.37 1",opacity:.44},{r:2.6,spline:"0.55 0 0.44 1",opacity:.32},{r:1.8,spline:"0.62 0 0.52 1",opacity:.2},{r:1,spline:"0.70 0 0.60 1",opacity:.1}];function R({className:e,size:n="md",duration:r=5,...l}){return(0,t.jsxs)("svg",{"data-slot":"comet-spinner",role:"status","aria-label":"Loading",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:(0,b.cn)(M({size:n}),e),...l,children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:"comet-gooey",x:"-100%",y:"-100%",width:"300%",height:"300%",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"2.5"}),(0,t.jsx)("feColorMatrix",{mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -30",result:"goo"})]})}),(0,t.jsxs)("g",{filter:"url(#comet-gooey)",children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:`${r}s`,repeatCount:"indefinite"}),A.map(e=>(0,t.jsxs)("g",{children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"spline",values:"0 50 50;360 50 50",keyTimes:"0;1",keySplines:e.spline,dur:"1s",repeatCount:"indefinite"}),(0,t.jsx)("circle",{cx:"50",cy:"18",r:e.r,fill:"currentColor",opacity:e.opacity})]},e.r)),(0,t.jsxs)("circle",{cx:"50",cy:"50",r:"4",fill:"currentColor",opacity:"0.15",children:[(0,t.jsx)("animate",{attributeName:"r",values:"3;5;3",dur:"2s",repeatCount:"indefinite"}),(0,t.jsx)("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"2s",repeatCount:"indefinite"})]})]})]})}var L=e.i(71326),z=e.i(80986),z=z,O=e.i(30090),O=O;function F({status:e}){switch(e){case p.CiStatus.Success:return(0,t.jsxs)(I.Badge,{className:"border-transparent bg-green-50 text-green-700 hover:bg-green-50",children:[(0,t.jsx)(z.default,{className:"mr-1 h-3.5 w-3.5"}),"Passing"]});case p.CiStatus.Pending:return(0,t.jsxs)(I.Badge,{className:"border-transparent bg-yellow-50 text-yellow-700 hover:bg-yellow-50",children:[(0,t.jsx)(i.Loader2,{className:"mr-1 h-3.5 w-3.5 animate-spin"}),"Pending"]});case p.CiStatus.Failure:return(0,t.jsxs)(I.Badge,{className:"border-transparent bg-red-50 text-red-700 hover:bg-red-50",children:[(0,t.jsx)(O.default,{className:"mr-1 h-3.5 w-3.5"}),"Failing"]})}}e.i(81803);var _=e.i(72714),B=e.i(8986),H=e.i(38573),U=e.i(19933);let q=(0,s.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var V=e.i(33548),K=e.i(23925),$=e.i(51251),G=e.i(91967),W=e.i(5978),X=e.i(22528),Q=e.i(36589),Y=e.i(87620),J=e.i(87342),Z=e.i(66033),ee=e.i(53532),et=e.i(41687),en=e.i(56720),er=e.i(13123),el=e.i(52740),ei=e.i(39979),eo=e.i(85995),ea=e.i(51080),es=e.i(86874),eu=e.i(29297),ec=e.i(73772),ed=e.i(13044),ep=["Enter"," "],ef=["ArrowUp","PageDown","End"],eh=["ArrowDown","PageUp","Home",...ef],em={ltr:[...ep,"ArrowRight"],rtl:[...ep,"ArrowLeft"]},eg={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ex="Menu",[ey,ev,eb]=(0,J.createCollection)(ex),[ek,ew]=(0,X.createContextScope)(ex,[eb,el.createPopperScope,ea.createRovingFocusGroupScope]),ej=(0,el.createPopperScope)(),eS=(0,ea.createRovingFocusGroupScope)(),[eC,eN]=ek(ex),[eE,eP]=ek(ex),eI=e=>{let{__scopeMenu:r,open:l=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,u=ej(r),[c,d]=n.useState(null),p=n.useRef(!1),f=(0,eu.useCallbackRef)(a),h=(0,Z.useDirection)(o);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(el.Root,{...u,children:(0,t.jsx)(eC,{scope:r,open:l,onOpenChange:f,content:c,onContentChange:d,children:(0,t.jsx)(eE,{scope:r,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:i})})})};eI.displayName=ex;var eT=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=ej(r);return(0,t.jsx)(el.Anchor,{...i,...l,ref:n})});eT.displayName="MenuAnchor";var eD="MenuPortal",[eM,eA]=ek(eD,{forceMount:void 0}),eR=e=>{let{__scopeMenu:n,forceMount:r,children:l,container:i}=e,o=eN(eD,n);return(0,t.jsx)(eM,{scope:n,forceMount:r,children:(0,t.jsx)(eo.Presence,{present:r||o.open,children:(0,t.jsx)(ei.Portal,{asChild:!0,container:i,children:l})})})};eR.displayName=eD;var eL="MenuContent",[ez,eO]=ek(eL),eF=n.forwardRef((e,n)=>{let r=eA(eL,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,o=eN(eL,e.__scopeMenu),a=eP(eL,e.__scopeMenu);return(0,t.jsx)(ey.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(eo.Presence,{present:l||o.open,children:(0,t.jsx)(ey.Slot,{scope:e.__scopeMenu,children:a.modal?(0,t.jsx)(e_,{...i,ref:n}):(0,t.jsx)(eB,{...i,ref:n})})})})}),e_=n.forwardRef((e,r)=>{let l=eN(eL,e.__scopeMenu),i=n.useRef(null),o=(0,W.useComposedRefs)(r,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,ec.hideOthers)(e)},[]),(0,t.jsx)(eU,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:l.open,disableOutsideScroll:!0,onFocusOutside:(0,G.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>l.onOpenChange(!1)})}),eB=n.forwardRef((e,n)=>{let r=eN(eL,e.__scopeMenu);return(0,t.jsx)(eU,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eH=(0,es.createSlot)("MenuContent.ScrollLock"),eU=n.forwardRef((e,r)=>{let{__scopeMenu:l,loop:i=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...x}=e,y=eN(eL,l),v=eP(eL,l),b=ej(l),k=eS(l),w=ev(l),[j,S]=n.useState(null),C=n.useRef(null),N=(0,W.useComposedRefs)(r,C,y.onContentChange),E=n.useRef(0),P=n.useRef(""),I=n.useRef(0),T=n.useRef(null),D=n.useRef("right"),M=n.useRef(0),A=g?ed.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(E.current),[]),(0,et.useFocusGuards)();let R=n.useCallback(e=>{var t,n;return D.current===T.current?.side&&(t=e,!!(n=T.current?.area)&&function(e,t){let{x:n,y:r}=e,l=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e],a=t[i],s=o.x,u=o.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(l=!l)}return l}({x:t.clientX,y:t.clientY},n))},[]);return(0,t.jsx)(ez,{scope:l,searchRef:P,onItemEnter:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:n.useCallback(e=>{R(e)||(C.current?.focus(),S(null))},[R]),onTriggerLeave:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:I,onPointerGraceIntentChange:n.useCallback(e=>{T.current=e},[]),children:(0,t.jsx)(A,{...g?{as:eH,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(en.FocusScope,{asChild:!0,trapped:o,onMountAutoFocus:(0,G.composeEventHandlers)(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,t.jsx)(ee.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:(0,t.jsx)(ea.Root,{asChild:!0,...k,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:(0,G.composeEventHandlers)(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(el.Content,{role:"menu","aria-orientation":"vertical","data-state":to(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...x,ref:N,style:{outline:"none",...x.style},onKeyDown:(0,G.composeEventHandlers)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var l;let t,i,o,a,s,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(l=e.key,t=P.current+l,i=w().filter(e=>!e.disabled),o=document.activeElement,a=i.find(e=>e.ref.current===o)?.textValue,s=function(e,t,n){var r;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,o=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===l.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(l.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),t,a),u=i.find(e=>e.textValue===s)?.ref.current,function e(t){P.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=C.current;if(e.target!==i||!eh.includes(e.key))return;e.preventDefault();let o=w().filter(e=>!e.disabled).map(e=>e.ref.current);ef.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,G.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),P.current="")}),onPointerMove:(0,G.composeEventHandlers)(e.onPointerMove,tu(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(D.current=e.clientX>M.current?"right":"left",M.current=e.clientX)}))})})})})})})});eF.displayName=eL;var eq=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(Y.Primitive.div,{role:"group",...l,ref:n})});eq.displayName="MenuGroup";var eV=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(Y.Primitive.div,{...l,ref:n})});eV.displayName="MenuLabel";var eK="MenuItem",e$="menu.itemSelect",eG=n.forwardRef((e,r)=>{let{disabled:l=!1,onSelect:i,...o}=e,a=n.useRef(null),s=eP(eK,e.__scopeMenu),u=eO(eK,e.__scopeMenu),c=(0,W.useComposedRefs)(r,a),d=n.useRef(!1);return(0,t.jsx)(eW,{...o,ref:c,disabled:l,onClick:(0,G.composeEventHandlers)(e.onClick,()=>{let e=a.current;if(!l&&e){let t=new CustomEvent(e$,{bubbles:!0,cancelable:!0});e.addEventListener(e$,e=>i?.(e),{once:!0}),(0,Y.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:(0,G.composeEventHandlers)(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;l||t&&" "===e.key||ep.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eG.displayName=eK;var eW=n.forwardRef((e,r)=>{let{__scopeMenu:l,disabled:i=!1,textValue:o,...a}=e,s=eO(eK,l),u=eS(l),c=n.useRef(null),d=(0,W.useComposedRefs)(r,c),[p,f]=n.useState(!1),[h,m]=n.useState("");return n.useEffect(()=>{let e=c.current;e&&m((e.textContent??"").trim())},[a.children]),(0,t.jsx)(ey.ItemSlot,{scope:l,disabled:i,textValue:o??h,children:(0,t.jsx)(ea.Item,{asChild:!0,...u,focusable:!i,children:(0,t.jsx)(Y.Primitive.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:d,onPointerMove:(0,G.composeEventHandlers)(e.onPointerMove,tu(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,G.composeEventHandlers)(e.onPointerLeave,tu(e=>s.onItemLeave(e))),onFocus:(0,G.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,G.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),eX=n.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:l,...i}=e;return(0,t.jsx)(e5,{scope:e.__scopeMenu,checked:r,children:(0,t.jsx)(eG,{role:"menuitemcheckbox","aria-checked":ta(r)?"mixed":r,...i,ref:n,"data-state":ts(r),onSelect:(0,G.composeEventHandlers)(i.onSelect,()=>l?.(!!ta(r)||!r),{checkForDefaultPrevented:!1})})})});eX.displayName="MenuCheckboxItem";var eQ="MenuRadioGroup",[eY,eJ]=ek(eQ,{value:void 0,onValueChange:()=>{}}),eZ=n.forwardRef((e,n)=>{let{value:r,onValueChange:l,...i}=e,o=(0,eu.useCallbackRef)(l);return(0,t.jsx)(eY,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,t.jsx)(eq,{...i,ref:n})})});eZ.displayName=eQ;var e0="MenuRadioItem",e1=n.forwardRef((e,n)=>{let{value:r,...l}=e,i=eJ(e0,e.__scopeMenu),o=r===i.value;return(0,t.jsx)(e5,{scope:e.__scopeMenu,checked:o,children:(0,t.jsx)(eG,{role:"menuitemradio","aria-checked":o,...l,ref:n,"data-state":ts(o),onSelect:(0,G.composeEventHandlers)(l.onSelect,()=>i.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});e1.displayName=e0;var e2="MenuItemIndicator",[e5,e4]=ek(e2,{checked:!1}),e3=n.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:l,...i}=e,o=e4(e2,r);return(0,t.jsx)(eo.Presence,{present:l||ta(o.checked)||!0===o.checked,children:(0,t.jsx)(Y.Primitive.span,{...i,ref:n,"data-state":ts(o.checked)})})});e3.displayName=e2;var e6=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(Y.Primitive.div,{role:"separator","aria-orientation":"horizontal",...l,ref:n})});e6.displayName="MenuSeparator";var e9=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=ej(r);return(0,t.jsx)(el.Arrow,{...i,...l,ref:n})});e9.displayName="MenuArrow";var e8="MenuSub",[e7,te]=ek(e8),tt=e=>{let{__scopeMenu:r,children:l,open:i=!1,onOpenChange:o}=e,a=eN(e8,r),s=ej(r),[u,c]=n.useState(null),[d,p]=n.useState(null),f=(0,eu.useCallbackRef)(o);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,t.jsx)(el.Root,{...s,children:(0,t.jsx)(eC,{scope:r,open:i,onOpenChange:f,content:d,onContentChange:p,children:(0,t.jsx)(e7,{scope:r,contentId:(0,er.useId)(),triggerId:(0,er.useId)(),trigger:u,onTriggerChange:c,children:l})})})};tt.displayName=e8;var tn="MenuSubTrigger",tr=n.forwardRef((e,r)=>{let l=eN(tn,e.__scopeMenu),i=eP(tn,e.__scopeMenu),o=te(tn,e.__scopeMenu),a=eO(tn,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),c(null)}},[u,c]),(0,t.jsx)(eT,{asChild:!0,...d,children:(0,t.jsx)(eW,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":o.contentId,"data-state":to(l.open),...e,ref:(0,W.composeRefs)(r,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),l.open||l.onOpenChange(!0))},onPointerMove:(0,G.composeEventHandlers)(e.onPointerMove,tu(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||l.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{l.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,G.composeEventHandlers)(e.onPointerLeave,tu(e=>{p();let t=l.content?.getBoundingClientRect();if(t){let n=l.content?.dataset.side,r="right"===n,i=t[r?"left":"right"],o=t[r?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(r?-5:5),y:e.clientY},{x:i,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,t=>{let n=""!==a.searchRef.current;e.disabled||n&&" "===t.key||em[i.dir].includes(t.key)&&(l.onOpenChange(!0),l.content?.focus(),t.preventDefault())})})})});tr.displayName=tn;var tl="MenuSubContent",ti=n.forwardRef((e,r)=>{let l=eA(eL,e.__scopeMenu),{forceMount:i=l.forceMount,...o}=e,a=eN(eL,e.__scopeMenu),s=eP(eL,e.__scopeMenu),u=te(tl,e.__scopeMenu),c=n.useRef(null),d=(0,W.useComposedRefs)(r,c);return(0,t.jsx)(ey.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(eo.Presence,{present:i||a.open,children:(0,t.jsx)(ey.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(eU,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,G.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,G.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=eg[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function to(e){return e?"open":"closed"}function ta(e){return"indeterminate"===e}function ts(e){return ta(e)?"indeterminate":e?"checked":"unchecked"}function tu(e){return t=>"mouse"===t.pointerType?e(t):void 0}ti.displayName=tl;var tc="DropdownMenu",[td,tp]=(0,X.createContextScope)(tc,[ew]),tf=ew(),[th,tm]=td(tc),tg=e=>{let{__scopeDropdownMenu:r,children:l,dir:i,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,c=tf(r),d=n.useRef(null),[p,f]=(0,Q.useControllableState)({prop:o,defaultProp:a??!1,onChange:s,caller:tc});return(0,t.jsx)(th,{scope:r,triggerId:(0,er.useId)(),triggerRef:d,contentId:(0,er.useId)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,t.jsx)(eI,{...c,open:p,onOpenChange:f,dir:i,modal:u,children:l})})};tg.displayName=tc;var tx="DropdownMenuTrigger",ty=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,disabled:l=!1,...i}=e,o=tm(tx,r),a=tf(r);return(0,t.jsx)(eT,{asChild:!0,...a,children:(0,t.jsx)(Y.Primitive.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...i,ref:(0,W.composeRefs)(n,o.triggerRef),onPointerDown:(0,G.composeEventHandlers)(e.onPointerDown,e=>{!l&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,G.composeEventHandlers)(e.onKeyDown,e=>{!l&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ty.displayName=tx;var tv=e=>{let{__scopeDropdownMenu:n,...r}=e,l=tf(n);return(0,t.jsx)(eR,{...l,...r})};tv.displayName="DropdownMenuPortal";var tb="DropdownMenuContent",tk=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:l,...i}=e,o=tm(tb,l),a=tf(l),s=n.useRef(!1);return(0,t.jsx)(eF,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...i,ref:r,onCloseAutoFocus:(0,G.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,G.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tk.displayName=tb;var tw=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eq,{...i,...l,ref:n})});tw.displayName="DropdownMenuGroup";var tj=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eV,{...i,...l,ref:n})});tj.displayName="DropdownMenuLabel";var tS=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eG,{...i,...l,ref:n})});tS.displayName="DropdownMenuItem";var tC=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eX,{...i,...l,ref:n})});tC.displayName="DropdownMenuCheckboxItem";var tN=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(eZ,{...i,...l,ref:n})});tN.displayName="DropdownMenuRadioGroup";var tE=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e1,{...i,...l,ref:n})});tE.displayName="DropdownMenuRadioItem";var tP=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e3,{...i,...l,ref:n})});tP.displayName="DropdownMenuItemIndicator";var tI=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e6,{...i,...l,ref:n})});tI.displayName="DropdownMenuSeparator";var tT=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(e9,{...i,...l,ref:n})});tT.displayName="DropdownMenuArrow";var tD=e=>{let{__scopeDropdownMenu:n,children:r,open:l,onOpenChange:i,defaultOpen:o}=e,a=tf(n),[s,u]=(0,Q.useControllableState)({prop:l,defaultProp:o??!1,onChange:i,caller:"DropdownMenuSub"});return(0,t.jsx)(tt,{...a,open:s,onOpenChange:u,children:r})},tM=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(tr,{...i,...l,ref:n})});tM.displayName="DropdownMenuSubTrigger";var tA=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tf(r);return(0,t.jsx)(ti,{...i,...l,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tA.displayName="DropdownMenuSubContent",e.s(["Arrow",()=>tT,"CheckboxItem",()=>tC,"Content",()=>tk,"DropdownMenu",()=>tg,"DropdownMenuArrow",()=>tT,"DropdownMenuCheckboxItem",()=>tC,"DropdownMenuContent",()=>tk,"DropdownMenuGroup",()=>tw,"DropdownMenuItem",()=>tS,"DropdownMenuItemIndicator",()=>tP,"DropdownMenuLabel",()=>tj,"DropdownMenuPortal",()=>tv,"DropdownMenuRadioGroup",()=>tN,"DropdownMenuRadioItem",()=>tE,"DropdownMenuSeparator",()=>tI,"DropdownMenuSub",()=>tD,"DropdownMenuSubContent",()=>tA,"DropdownMenuSubTrigger",()=>tM,"DropdownMenuTrigger",()=>ty,"Group",()=>tw,"Item",()=>tS,"ItemIndicator",()=>tP,"Label",()=>tj,"Portal",()=>tv,"RadioGroup",()=>tN,"RadioItem",()=>tE,"Root",()=>tg,"Separator",()=>tI,"Sub",()=>tD,"SubContent",()=>tA,"SubTrigger",()=>tM,"Trigger",()=>ty,"createDropdownMenuScope",()=>tp],61920);var tR=e.i(61920),tR=tR;let tL=(0,s.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),tz=(0,s.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),tO=tR.Root,tF=tR.Trigger;tR.Group,tR.Portal,tR.Sub,tR.RadioGroup,n.forwardRef(({className:e,inset:n,children:r,...l},i)=>(0,t.jsxs)(tR.SubTrigger,{ref:i,className:(0,b.cn)("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...l,children:[r,(0,t.jsx)(tL,{className:"ml-auto"})]})).displayName=tR.SubTrigger.displayName,n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tR.SubContent,{ref:r,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",e),...n})).displayName=tR.SubContent.displayName;let t_=n.forwardRef(({className:e,sideOffset:n=4,...r},l)=>(0,t.jsx)(tR.Portal,{children:(0,t.jsx)(tR.Content,{ref:l,sideOffset:n,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...r})}));t_.displayName=tR.Content.displayName;let tB=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tR.Item,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",e),...r}));tB.displayName=tR.Item.displayName,n.forwardRef(({className:e,children:n,checked:r,...l},i)=>(0,t.jsxs)(tR.CheckboxItem,{ref:i,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...l,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tR.ItemIndicator,{children:(0,t.jsx)(K.Check,{className:"h-4 w-4"})})}),n]})).displayName=tR.CheckboxItem.displayName,n.forwardRef(({className:e,children:n,...r},l)=>(0,t.jsxs)(tR.RadioItem,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tR.ItemIndicator,{children:(0,t.jsx)(tz,{className:"h-2 w-2 fill-current"})})}),n]})).displayName=tR.RadioItem.displayName;let tH=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tR.Label,{ref:l,className:(0,b.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));tH.displayName=tR.Label.displayName;let tU=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tR.Separator,{ref:r,className:(0,b.cn)("bg-muted -mx-1 my-1 h-px",e),...n}));function tq({actions:e,repositoryPath:r,showSpecs:l}){let[o,a]=(0,n.useState)(!1),s=e.ideLoading||e.shellLoading||e.specsLoading,u=e.ideError??e.shellError??e.specsError;return(0,t.jsxs)(tO,{modal:!1,children:[(0,t.jsx)(tF,{asChild:!0,children:(0,t.jsxs)(P.Button,{variant:"outline",size:"sm",className:"gap-1.5",disabled:s,children:[s?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):u?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(U.FolderOpen,{className:"size-4"}),"Open",(0,t.jsx)(q,{className:"size-3 opacity-60"})]})}),(0,t.jsxs)(t_,{align:"start",className:"w-48",children:[(0,t.jsx)(tH,{children:"Open in"}),(0,t.jsxs)(tB,{onClick:e.openInIde,disabled:e.ideLoading,className:"gap-2",children:[e.ideLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.ideError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(B.Code2,{className:"size-4"}),"IDE"]}),(0,t.jsxs)(tB,{onClick:e.openInShell,disabled:e.shellLoading,className:"gap-2",children:[e.shellLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.shellError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(H.Terminal,{className:"size-4"}),"Terminal"]}),(0,t.jsxs)(tB,{onClick:e.openSpecsFolder,disabled:e.specsLoading||!l,className:"gap-2",children:[e.specsLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.specsError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(U.FolderOpen,{className:"size-4"}),"Specs Folder"]}),(0,t.jsx)(tU,{}),(0,t.jsxs)(tB,{onClick:()=>{navigator.clipboard.writeText(r),a(!0),setTimeout(()=>a(!1),2e3)},className:"gap-2",children:[o?(0,t.jsx)(K.Check,{className:"size-4 text-green-600"}):(0,t.jsx)(V.Copy,{className:"size-4"}),o?"Copied!":"Copy path"]})]})]})}tU.displayName=tR.Separator.displayName;let tV=(0,s.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),tK=(0,s.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var t$=e.i(98127);function tG({onReject:e,onApprove:r,approveLabel:l,approveIcon:i,revisionPlaceholder:o,isProcessing:a=!1,isRejecting:s=!1,children:u}){let[c,d]=(0,n.useState)(""),p=(0,w.useSoundAction)("approve"),f=a||s;return(0,t.jsxs)("div",{className:"border-border shrink-0 border-t",children:[u,e?(0,t.jsxs)("form",{onSubmit:function(t){t.preventDefault();let n=c.trim();n&&e&&(e(n),d(""))},className:"flex items-center gap-2 p-4",children:[(0,t.jsx)(t$.Input,{type:"text",placeholder:o??"Ask AI to revise...","aria-label":o??"Ask AI to revise...",disabled:f,value:c,onChange:e=>d(e.target.value),className:"flex-1"}),(0,t.jsx)(P.Button,{type:"submit",variant:"secondary",size:"icon","aria-label":"Send",disabled:f,children:(0,t.jsx)(tK,{})}),(0,t.jsxs)(P.Button,{type:"button",disabled:f,onClick:()=>{p.play(),r()},children:[i,l]})]}):(0,t.jsx)("div",{className:"flex items-center gap-2 px-4 pb-4",children:(0,t.jsxs)(P.Button,{type:"button",className:"flex-1",disabled:f,onClick:()=>{p.play(),r()},children:[i,l]})})]})}function tW({data:e,selections:r,onSelect:l,onApprove:i,onReject:o,isProcessing:a=!1,isRejecting:s=!1,showHeader:u=!1}){let{question:c,context:d,questions:p,finalAction:f}=e,[h,m]=(0,n.useState)(0),g=(0,w.useSoundAction)("select"),x=(0,w.useSoundAction)("navigate"),y=p.length,v=h===y-1,k=p[h],j=(0,n.useMemo)(()=>Object.keys(r).length,[r]),S=(0,n.useCallback)((e,t)=>{g.play(),l(e,t),v||setTimeout(()=>m(e=>e+1),250)},[l,v,g]);return 0===y?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[u?(0,t.jsxs)("div",{className:"border-border flex items-start gap-3 border-b pb-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-amber-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground mb-1.5 text-sm font-bold",children:c}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed",children:d})]})]}):null,(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("label",{className:"text-foreground min-w-0 flex-1 text-sm font-semibold",children:k.question}),(0,t.jsx)("div",{className:"mt-1.5 flex shrink-0 gap-1",children:p.map((e,n)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to question ${n+1}`,className:(0,b.cn)("h-1.5 rounded-full transition-all duration-200",n===h?"bg-primary w-4":"w-1.5",n!==h&&r[e.id]?"bg-primary/50":"",n===h||r[e.id]?"":"bg-muted-foreground/25"),onClick:()=>{x.play(),m(n)}},e.id))})]}),(0,t.jsx)("div",{className:"space-y-2",children:k.options.map((e,n)=>{let l=r[k.id]===e.id,i=String.fromCharCode(65+n);return(0,t.jsx)("button",{type:"button",className:(0,b.cn)("border-border w-full rounded-md border px-3 py-3 text-left text-xs transition-all","hover:border-primary/70 hover:bg-primary/5 group",l&&"border-primary bg-primary/5",e.isNew&&"animate-option-highlight"),disabled:a,onClick:()=>S(k.id,e.id),children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("span",{className:"text-muted-foreground mt-0.5 font-mono text-xs",children:[i,"."]}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"mb-0.5 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:e.label}),e.recommended?(0,t.jsx)(I.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null,e.isNew?(0,t.jsx)(I.Badge,{className:"border-transparent bg-emerald-600 px-1.5 py-0 text-[10px] text-white hover:bg-emerald-600/80",children:"New"}):null]}),(0,t.jsx)("div",{className:"text-muted-foreground text-xs leading-snug",children:e.rationale})]})]})},e.id)})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-2",children:[(0,t.jsxs)(P.Button,{type:"button",variant:"ghost",size:"sm",disabled:0===h||a,onClick:()=>{x.play(),m(e=>e-1)},children:[(0,t.jsx)(tV,{className:"mr-1 h-4 w-4"}),"Previous"]}),v?null:(0,t.jsxs)(P.Button,{type:"button",variant:"ghost",size:"sm",disabled:a,onClick:()=>{x.play(),m(e=>e+1)},children:[r[k.id]?"Next":"Skip",(0,t.jsx)(tL,{className:"ml-1 h-4 w-4"})]})]})]}),(0,t.jsx)(tG,{onReject:o,onApprove:()=>i(f.id),approveLabel:f.label,approveIcon:(0,t.jsx)(K.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to refine requirements...",isProcessing:a,isRejecting:s,children:(0,t.jsx)("div",{className:(0,b.cn)("bg-muted h-1.5 overflow-hidden",j>0&&j<y||a?"opacity-100":"opacity-0","transition-opacity duration-200"),"data-testid":"progress-bar-container",children:a?(0,t.jsx)("div",{className:"bg-primary animate-indeterminate-progress h-full w-1/3"}):(0,t.jsx)("div",{className:"bg-primary h-full transition-all duration-300",style:{width:`${y>0?j/y*100:0}%`},"data-testid":"progress-bar"})})})]})}var tX=e.i(3881),tQ=e.i(54141),tY=e.i(67070),tJ=e.i(68304);function tZ(){}function t0(){}let t1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t5={};function t4(e,t){return((t||t5).jsx?t2:t1).test(e)}let t3=/[ \t\n\f\r]/g;function t6(e){return""===e.replace(t3,"")}class t9{constructor(e,t){this.attribute=t,this.property=e}}t9.prototype.attribute="",t9.prototype.booleanish=!1,t9.prototype.boolean=!1,t9.prototype.commaOrSpaceSeparated=!1,t9.prototype.commaSeparated=!1,t9.prototype.defined=!1,t9.prototype.mustUseProperty=!1,t9.prototype.number=!1,t9.prototype.overloadedBoolean=!1,t9.prototype.property="",t9.prototype.spaceSeparated=!1,t9.prototype.space=void 0;let t8=0,t7=no(),ne=no(),nt=no(),nn=no(),nr=no(),nl=no(),ni=no();function no(){return 2**++t8}e.s(["boolean",0,t7,"booleanish",0,ne,"commaOrSpaceSeparated",0,ni,"commaSeparated",0,nl,"number",0,nn,"overloadedBoolean",0,nt,"spaceSeparated",0,nr],83954);var na=e.i(83954);let ns=Object.keys(na);class nu extends t9{constructor(e,t,n,r){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++l<ns.length;){const e=ns[l];!function(e,t,n){n&&(e[t]=n)}(this,ns[l],(n&na[e])===na[e])}}}function nc(e){return e.toLowerCase()}nu.prototype.defined=!0;let nd=/[A-Z]/g,np=/-[a-z]/g,nf=/^data[-\w.:]+$/i;function nh(e){return"-"+e.toLowerCase()}function nm(e){return e.charAt(1).toUpperCase()}let ng={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"};class nx{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function ny(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new nx(n,r,t)}function nv(e){let t={},n={};for(let[r,l]of Object.entries(e.properties)){let i=new nu(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nc(r)]=r,n[nc(i.attribute)]=r}return new nx(t,n,e.space)}nx.prototype.normal={},nx.prototype.property={},nx.prototype.space=void 0;let nb=nv({properties:{ariaActiveDescendant:null,ariaAtomic:ne,ariaAutoComplete:null,ariaBusy:ne,ariaChecked:ne,ariaColCount:nn,ariaColIndex:nn,ariaColSpan:nn,ariaControls:nr,ariaCurrent:null,ariaDescribedBy:nr,ariaDetails:null,ariaDisabled:ne,ariaDropEffect:nr,ariaErrorMessage:null,ariaExpanded:ne,ariaFlowTo:nr,ariaGrabbed:ne,ariaHasPopup:null,ariaHidden:ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nr,ariaLevel:nn,ariaLive:null,ariaModal:ne,ariaMultiLine:ne,ariaMultiSelectable:ne,ariaOrientation:null,ariaOwns:nr,ariaPlaceholder:null,ariaPosInSet:nn,ariaPressed:ne,ariaReadOnly:ne,ariaRelevant:null,ariaRequired:ne,ariaRoleDescription:nr,ariaRowCount:nn,ariaRowIndex:nn,ariaRowSpan:nn,ariaSelected:ne,ariaSetSize:nn,ariaSort:null,ariaValueMax:nn,ariaValueMin:nn,ariaValueNow:nn,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function nk(e,t){return t in e?e[t]:t}function nw(e,t){return nk(e,t.toLowerCase())}let nj=nv({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nl,acceptCharset:nr,accessKey:nr,action:null,allow:null,allowFullScreen:t7,allowPaymentRequest:t7,allowUserMedia:t7,alt:null,as:null,async:t7,autoCapitalize:null,autoComplete:nr,autoFocus:t7,autoPlay:t7,blocking:nr,capture:null,charSet:null,checked:t7,cite:null,className:nr,cols:nn,colSpan:null,content:null,contentEditable:ne,controls:t7,controlsList:nr,coords:nn|nl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:t7,defer:t7,dir:null,dirName:null,disabled:t7,download:nt,draggable:ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:t7,formTarget:null,headers:nr,height:nn,hidden:nt,high:nn,href:null,hrefLang:null,htmlFor:nr,httpEquiv:nr,id:null,imageSizes:null,imageSrcSet:null,inert:t7,inputMode:null,integrity:null,is:null,isMap:t7,itemId:null,itemProp:nr,itemRef:nr,itemScope:t7,itemType:nr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:t7,low:nn,manifest:null,max:null,maxLength:nn,media:null,method:null,min:null,minLength:nn,multiple:t7,muted:t7,name:null,nonce:null,noModule:t7,noValidate:t7,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:t7,optimum:nn,pattern:null,ping:nr,placeholder:null,playsInline:t7,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:t7,referrerPolicy:null,rel:nr,required:t7,reversed:t7,rows:nn,rowSpan:nn,sandbox:nr,scope:null,scoped:t7,seamless:t7,selected:t7,shadowRootClonable:t7,shadowRootDelegatesFocus:t7,shadowRootMode:null,shape:null,size:nn,sizes:null,slot:null,span:nn,spellCheck:ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nn,step:null,style:null,tabIndex:nn,target:null,title:null,translate:null,type:null,typeMustMatch:t7,useMap:null,value:ne,width:nn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nr,axis:null,background:null,bgColor:null,border:nn,borderColor:null,bottomMargin:nn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:t7,declare:t7,event:null,face:null,frame:null,frameBorder:null,hSpace:nn,leftMargin:nn,link:null,longDesc:null,lowSrc:null,marginHeight:nn,marginWidth:nn,noResize:t7,noHref:t7,noShade:t7,noWrap:t7,object:null,profile:null,prompt:null,rev:null,rightMargin:nn,rules:null,scheme:null,scrolling:ne,standby:null,summary:null,text:null,topMargin:nn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:t7,disableRemotePlayback:t7,prefix:null,property:null,results:nn,security:null,unselectable:null},space:"html",transform:nw}),nS=nv({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-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ni,accentHeight:nn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nn,amplitude:nn,arabicForm:null,ascent:nn,attributeName:null,attributeType:null,azimuth:nn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nn,by:null,calcMode:null,capHeight:nn,className:nr,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:nn,diffuseConstant:nn,direction:null,display:null,dur:null,divisor:nn,dominantBaseline:null,download:t7,dx:null,dy:null,edgeMode:null,editable:null,elevation:nn,enableBackground:null,end:null,event:null,exponent:nn,externalResourcesRequired:null,fill:null,fillOpacity:nn,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:nl,g2:nl,glyphName:nl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nn,horizOriginX:nn,horizOriginY:nn,id:null,ideographic:nn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nn,k:nn,k1:nn,k2:nn,k3:nn,k4:nn,kernelMatrix:ni,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nn,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:nn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nn,overlineThickness:nn,paintOrder:null,panose1:null,path:null,pathLength:nn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nn,pointsAtY:nn,pointsAtZ:nn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ni,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ni,rev:ni,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ni,requiredFeatures:ni,requiredFonts:ni,requiredFormats:ni,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:nn,specularExponent:nn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nn,strikethroughThickness:nn,string:null,stroke:null,strokeDashArray:ni,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nn,strokeOpacity:nn,strokeWidth:null,style:null,surfaceScale:nn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ni,tabIndex:nn,tableValues:null,target:null,targetX:nn,targetY:nn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ni,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nn,underlineThickness:nn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nn,values:null,vAlphabetic:nn,vMathematical:nn,vectorEffect:null,vHanging:nn,vIdeographic:nn,version:null,vertAdvY:nn,vertOriginX:nn,vertOriginY:nn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nk}),nC=nv({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),nN=nv({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nw}),nE=nv({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),nP=ny([nb,nj,nC,nN,nE],"html"),nI=ny([nb,nS,nC,nN,nE],"svg");var nT=e.i(63185);let nD=nA("end"),nM=nA("start");function nA(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function nR(e){return e&&"object"==typeof e?"position"in e||"type"in e?nz(e.position):"start"in e||"end"in e?nz(e):"line"in e||"column"in e?nL(e):"":""}function nL(e){return nO(e&&e.line)+":"+nO(e&&e.column)}function nz(e){return nL(e&&e.start)+"-"+nL(e&&e.end)}function nO(e){return e&&"number"==typeof e?e:1}class nF extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",l={},i=!1;if(t&&(l="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!l.cause&&e&&(i=!0,r=e.message,l.cause=e),!l.ruleId&&!l.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?l.ruleId=n:(l.source=n.slice(0,e),l.ruleId=n.slice(e+1))}if(!l.place&&l.ancestors&&l.ancestors){const e=l.ancestors[l.ancestors.length-1];e&&(l.place=e.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=nR(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=i&&l.cause&&"string"==typeof l.cause.stack?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nF.prototype.file="",nF.prototype.name="",nF.prototype.reason="",nF.prototype.message="",nF.prototype.stack="",nF.prototype.column=void 0,nF.prototype.line=void 0,nF.prototype.ancestors=void 0,nF.prototype.cause=void 0,nF.prototype.fatal=void 0,nF.prototype.place=void 0,nF.prototype.ruleId=void 0,nF.prototype.source=void 0;let n_={}.hasOwnProperty,nB=new Map,nH=/[A-Z]/g,nU=new Set(["table","tbody","thead","tfoot","tr"]),nq=new Set(["td","th"]),nV="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nK(e,t,n){var r,l,i,o,a,s,u,c,d;let p,f,h,m,g,x,y,v,b,k,w;return"element"===t.type?(r=e,l=t,i=n,f=p=r.schema,"svg"===l.tagName.toLowerCase()&&"html"===p.space&&(r.schema=nI),r.ancestors.push(l),h=nX(r,l.tagName,!1),m=function(e,t){let n,r,l={};for(r in t.properties)if("children"!==r&&n_.call(t.properties,r)){let i=function(e,t,n){let r=function(e,t){let n=nc(t),r=t,l=t9;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nf.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(np,nm);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!np.test(e)){let n=e.replace(nd,nh);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=nu}return new l(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var l;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(l=n)[l.length-1]?[...l,""]:l).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,nT.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new nF("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=nV+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)n_.call(e,t)&&(n[function(e){let t=e.replace(nH,nY);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ng[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,o]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&nq.has(t.tagName)?n=o:l[r]=o}}return n&&((l.style||(l.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),l}(r,l),g=nW(r,l),nU.has(l.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&t6(e.value):t6(e))})),n$(r,m,h,l),nG(m,g),r.ancestors.pop(),r.schema=p,r.create(l,h,m,i)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return tZ("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}nQ(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,s=n,y=x=o.schema,"svg"===a.name&&"html"===x.space&&(o.schema=nI),o.ancestors.push(a),v=null===a.name?o.Fragment:nX(o,a.name,!0),b=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];tZ("ExpressionStatement"===t.type);let l=t.expression;tZ("ObjectExpression"===l.type);let i=l.properties[0];tZ("SpreadElement"===i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else nQ(e,t.position);else{let l,i=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];tZ("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else nQ(e,t.position);else l=null===r.value||r.value;n[i]=l}return n}(o,a),k=nW(o,a),n$(o,b,v,a),nG(b,k),o.ancestors.pop(),o.schema=x,o.create(a,v,b,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);nQ(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,nG(w={},nW(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function n$(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nG(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function nW(e,t){let n=[],r=-1,l=e.passKeys?new Map:nB;for(;++r<t.children.length;){let i,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=l.get(e)||0;i=e+"-"+t,l.set(e,t+1)}}let a=nK(e,o,i);void 0!==a&&n.push(a)}return n}function nX(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),l=-1;for(;++l<n.length;){let t=t4(n[l])?{type:"Identifier",name:n[l]}:{type:"Literal",value:n[l]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(l&&"Literal"===t.type),optional:!1}:t}tZ(e,"always a result"),r=e}else r=t4(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return n_.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);nQ(e)}function nQ(e,t){let n=new nF("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nV+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nY(e){return"-"+e.toLowerCase()}let nJ={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},nZ={};function n0(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return n1(e.children,t,n)}return Array.isArray(e)?n1(e,t,n):""}function n1(e,t,n){let r=[],l=-1;for(;++l<e.length;)r[l]=n0(e[l],t,n);return r.join("")}function n2(e,t,n,r){let l,i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(l=Array.from(r)).unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)(l=r.slice(o,o+1e4)).unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function n5(e,t){return e.length>0?(n2(e,e.length,0,t),e):t}let n4={}.hasOwnProperty,n3=ra(/[A-Za-z]/),n6=ra(/[\dA-Za-z]/),n9=ra(/[#-'*+\--9=?A-Z^-~]/);function n8(e){return null!==e&&(e<32||127===e)}let n7=ra(/\d/),re=ra(/[\dA-Fa-f]/),rt=ra(/[!-/:-@[-`{-~]/);function rn(e){return null!==e&&e<-2}function rr(e){return null!==e&&(e<0||32===e)}function rl(e){return -2===e||-1===e||32===e}let ri=ra(/\p{P}|\p{S}/u),ro=ra(/\s/);function ra(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function rs(e,t,n,r){let l=r?r-1:1/0,i=0;return function(r){return rl(r)?(e.enter(n),function r(o){return rl(o)&&i++<l?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let ru={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rs(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return rn(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},rc={tokenize:function(e){let t,n,r,l=this,i=[],o=0;return a;function a(t){if(o<i.length){let n=i[o];return l.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(o++,l.containerState._closeFlow){let n;l.containerState._closeFlow=void 0,t&&x();let r=l.events.length,i=r;for(;i--;)if("exit"===l.events[i][0]&&"chunkFlow"===l.events[i][1].type){n=l.events[i][1].end;break}g(o);let a=r;for(;a<l.events.length;)l.events[a][1].end={...n},a++;return n2(l.events,i+1,0,l.events.slice(r)),l.events.length=a,u(e)}return a(e)}function u(n){if(o===i.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);l.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return l.containerState={},e.check(rd,c,d)(n)}function c(e){return t&&x(),g(o),p(e)}function d(e){return l.parser.lazy[l.now().line]=o!==i.length,r=l.now().offset,h(e)}function p(t){return l.containerState={},e.attempt(rd,f,h)(t)}function f(e){return o++,i.push([l.currentConstruct,l.containerState]),p(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||l.parser.flow(l.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return rn(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,l.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,i){let a=l.sliceStream(e);if(i&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),l.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let a=l.events.length,s=a;for(;s--;)if("exit"===l.events[s][0]&&"chunkFlow"===l.events[s][1].type){if(e){n=l.events[s][1].end;break}e=!0}for(g(o),i=a;i<l.events.length;)l.events[i][1].end={...n},i++;n2(l.events,s+1,0,l.events.slice(a)),l.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];l.containerState=t[1],t[0].exit.call(l,e)}i.length=t}function x(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},rd={tokenize:function(e,t,n){return rs(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},rp={partial:!0,tokenize:function(e,t,n){return function(t){return rl(t)?rs(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||rn(e)?t(e):n(e)}}};class rf{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&rh(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),rh(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),rh(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);rh(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);rh(this.left,t.reverse())}}}function rh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function rm(e){let t,n,r,l,i,o,a,s={},u=-1,c=new rf(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,l=e.get(t)[1],i=e.get(t)[2],o=t-1,a=[],s=l._tokenizer;!s&&(s=i.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},p=-1,f=l,h=0,m=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),!f._tokenizer&&(n=i.sliceStream(f),f.next||n.push(null),r&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=l;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(l=c.get(r))[1].type||"lineEndingBlank"===l[1].type)"enter"===l[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),l[1].type="lineEnding",n=r);else if("linePrefix"===l[1].type||"listItemIndent"===l[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(i=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,i))}}return n2(e,0,1/0,c.slice(0)),!a}let rg={resolve:function(e){return rm(e),e},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?l(t):rn(t)?e.check(rx,i,l)(t):(e.consume(t),r)}function l(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},rx={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rs(e,l,"linePrefix")};function l(l){if(null===l||rn(l))return n(l);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}},ry={tokenize:function(e){let t=this,n=e.attempt(rp,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,rs(e,e.attempt(this.parser.constructs.flow,r,e.attempt(rg,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},rv={resolveAll:rj()},rb=rw("string"),rk=rw("text");function rw(e){return{resolveAll:rj("text"===e?rS:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],l=t.attempt(r,i,o);return i;function i(e){return s(e)?l(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),l(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],l=-1;if(t)for(;++l<t.length;){let e=t[l];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function rj(e){return function(t,n){let r,l=-1;for(;++l<=t.length;)void 0===r?t[l]&&"data"===t[l][1].type&&(r=l,l++):t[l]&&"data"===t[l][1].type||(l!==r+2&&(t[r][1].end=t[l-1][1].end,t.splice(r+2,l-r-2),l=r+2),r=void 0);return e?e(t,n):t}}function rS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,l=e[n-1][1],i=t.sliceStream(l),o=i.length,a=-1,s=0;for(;o--;){let e=i[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:l.start._bufferIndex+a,_index:l.start._index+o,line:l.end.line,column:l.end.column-s,offset:l.end.offset-s},end:{...l.end}};l.end={...i.start},l.start.offset===l.end.offset?Object.assign(l,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function rC(e){return null===e||rr(e)||ro(e)?1:ri(e)?2:void 0}function rN(e,t,n){let r=[],l=-1;for(;++l<e.length;){let i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let rE={name:"attention",resolveAll:function(e,t){let n,r,l,i,o,a,s,u,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;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};rP(d,-a),rP(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[c][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=n5(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=n5(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),s=n5(s,rN(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=n5(s,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=n5(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,n2(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,l=this.previous,i=rC(l);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=rC(a),c=!u||2===u&&i||r.includes(a),d=!i||2===i&&u||r.includes(l);return s._open=!!(42===n?c:c&&(i||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function rP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let rI={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return rl(t)?rs(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)};function l(r){return e.attempt(rI,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let 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"),l}return n(t)};function l(n){return rl(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},rT={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 rt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},rD=document.createElement("i");function rM(e){let t="&"+e+";";rD.innerHTML=t;let n=rD.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let rA={name:"characterReference",tokenize:function(e,t,n){let r,l,i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,l=n6,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=re,u):(e.enter("characterReferenceValue"),r=7,l=n7,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return l!==n6||rM(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return l(a)&&o++<r?(e.consume(a),u):n(a)}}},rR={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rL={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,l=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),rl(t)?rs(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(l){return l===r?(i++,e.consume(l),t):i>=a?(e.exit("codeFencedFenceSequence"),rl(l)?rs(e,u,"whitespace")(l):u(l)):n(l)}(t)):n(t)}function u(r){return null===r||rn(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var i;let u;return i=t,o=(u=l.events[l.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=i,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(l){return l===r?(a++,e.consume(l),t):a<3?n(l):(e.exit("codeFencedFenceSequence"),rl(l)?rs(e,s,"whitespace")(l):s(l))}(i)};function s(i){return null===i||rn(i)?(e.exit("codeFencedFence"),l.interrupt?t(i):e.check(rR,c,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rn(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(l)):rl(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rs(e,u,"whitespace")(l)):96===l&&l===r?n(l):(e.consume(l),t)}(i))}function u(t){return null===t||rn(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rn(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(l)):96===l&&l===r?n(l):(e.consume(l),t)}(t))}function c(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&rl(t)?rs(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||rn(t)?e.check(rR,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||rn(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},rz={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),rs(e,l,"linePrefix",5)(t)};function l(t){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function t(n){return null===n?i(n):rn(n)?e.attempt(rO,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||rn(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},rO={partial:!0,tokenize:function(e,t,n){let r=this;return l;function l(t){return r.parser.lazy[r.now().line]?n(t):rn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):rs(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):rn(e)?l(e):n(e)}}};function rF(e,t,n,r,l,i,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(l),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||n8(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||rn(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(l){return!c&&(null===l||41===l||rr(l))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(l)):c<u&&40===l?(e.consume(l),c++,h):41===l?(e.consume(l),c--,h):null===l||32===l||40===l||n8(l)?n(l):(e.consume(l),92===l?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function r_(e,t,n,r,l,i){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(l),e.consume(t),e.exit(l),e.enter(i),u};function u(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(l),e.consume(d),e.exit(l),e.exit(r),t):rn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||rn(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!rl(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function rB(e,t,n,r,l,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(l),e.consume(t),e.exit(l),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===o?(e.exit(i),a(o)):null===t?n(t):rn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rs(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||rn(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function rH(e,t){let n;return function r(l){return rn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):rl(l)?rs(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}function rU(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let rq={partial:!0,tokenize:function(e,t,n){return function(t){return rr(t)?rH(e,r)(t):n(t)};function r(t){return rB(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function l(t){return rl(t)?rs(e,i,"whitespace")(t):i(t)}function i(e){return null===e||rn(e)?t(e):n(e)}}},rV=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rK=["pre","script","style","textarea"],r$={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(rp,t,n)}}},rG={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return rn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):n(t)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rW={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&n2(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,l,i,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(l){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(l=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[l-2][1].start}};return i=n5(i=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),i=n5(i,[["enter",c,t]]),i=n5(i,rN(t.parser.constructs.insideSpan.null,e.slice(r+a+4,l-3),t)),i=n5(i,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),i=n5(i,e.slice(l+1)),i=n5(i,[["exit",s,t]]),n2(e,r,e.length,i),e},tokenize:function(e,t,n){let r,l,i=this,o=i.events.length;for(;o--;)if(("labelImage"===i.events[o][1].type||"labelLink"===i.events[o][1].type)&&!i.events[o][1]._balanced){r=i.events[o][1];break}return function(t){return r?r._inactive?c(t):(l=i.parser.defined.includes(rU(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(rX,u,l?u:c)(t):91===t?e.attempt(rQ,u,l?s:c)(t):l?u(t):c(t)}function s(t){return e.attempt(rY,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},rX={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return rr(t)?rH(e,l)(t):l(t)}function l(t){return 41===t?u(t):rF(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return rr(t)?rH(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?rB(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return rr(t)?rH(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rQ={tokenize:function(e,t,n){let r=this;return function(t){return r_.call(r,e,l,i,"reference","referenceMarker","referenceString")(t)};function l(e){return r.parser.defined.includes(rU(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},rY={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)}}},rJ={name:"labelStartImage",resolveAll:rW.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),l};function l(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rZ={name:"labelStartLink",resolveAll:rW.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),l};function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},r0={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rs(e,t,"linePrefix")}}},r1={name:"thematicBreak",tokenize:function(e,t,n){let r,l=0;return function(i){var o;return e.enter("thematicBreak"),r=o=i,function i(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),l++,t):(e.exit("thematicBreakSequence"),rl(n)?rs(e,i,"whitespace")(n):i(n))}(o)):l>=3&&(null===o||rn(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},r2={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(rp,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rs(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!rl(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r4,t,l)(n))});function l(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,rs(e,e.attempt(r2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,l=r.events[r.events.length-1],i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,o=0;return function(t){let l=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===l?!r.containerState.marker||t===r.containerState.marker:n7(t)){if(r.containerState.type||(r.containerState.type=l,e.enter(l,{_container:!0})),"listUnordered"===l)return e.enter("listItemPrefix"),42===t||45===t?e.check(r1,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(l){return n7(l)&&++o<10?(e.consume(l),t):(!r.interrupt||o<2)&&(r.containerState.marker?l===r.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),a(l)):n(l)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(rp,r.interrupt?n:s,e.attempt(r5,c,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function u(t){return rl(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},r5={partial:!0,tokenize:function(e,t,n){let r=this;return rs(e,function(e){let l=r.events[r.events.length-1];return!rl(e)&&l&&"listItemPrefixWhitespace"===l[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},r4={partial:!0,tokenize:function(e,t,n){let r=this;return rs(e,function(e){let l=r.events[r.events.length-1];return l&&"listItemIndent"===l[1].type&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},r3={name:"setextUnderline",resolveTo:function(e,t){let n,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[n][1],t]),e[n][1].end={...e[l][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,l=this;return function(t){var o;let a,s=l.events.length;for(;s--;)if("lineEnding"!==l.events[s][1].type&&"linePrefix"!==l.events[s][1].type&&"content"!==l.events[s][1].type){a="paragraph"===l.events[s][1].type;break}return!l.parser.lazy[l.now().line]&&(l.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),rl(n)?rs(e,i,"lineSuffix")(n):i(n))}(o)):n(t)};function i(r){return null===r||rn(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,l=this;return function(t){var r;return e.enter("definition"),r=t,r_.call(l,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function i(t){return(r=rU(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return rr(t)?rH(e,a)(t):a(t)}function a(t){return rF(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(rq,u,u)(t)}function u(t){return rl(t)?rs(e,c,"whitespace")(t):c(t)}function c(i){return null===i||rn(i)?(e.exit("definition"),l.parser.defined.push(r),t(i)):n(i)}}}},"disable",0,{null:[]},"document",0,{42:r2,43:r2,45:r2,48:r2,49:r2,50:r2,51:r2,52:r2,53:r2,54:r2,55:r2,56:r2,57:r2,62:rI},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,l=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),l-2>i&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},n2(e,i,l-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){var i;return e.enter("atxHeading"),i=l,e.enter("atxHeadingSequence"),function l(i){return 35===i&&r++<6?(e.consume(i),l):null===i||rr(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||rn(r)?(e.exit("atxHeading"),t(r)):rl(r)?rs(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||rr(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:r1,45:[r3,r1],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return 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)),e},tokenize:function(e,t,n){let r,l,i,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),l=!0,f):63===o?(e.consume(o),r=3,s.interrupt?t:M):n3(o)?(e.consume(o),i=String.fromCharCode(o),h):n(o)}function c(l){return 45===l?(e.consume(l),r=2,d):91===l?(e.consume(l),r=5,o=0,p):n3(l)?(e.consume(l),r=4,s.interrupt?t:M):n(l)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:M):n(r)}function p(r){let l="CDATA[";return r===l.charCodeAt(o++)?(e.consume(r),o===l.length)?s.interrupt?t:S:p:n(r)}function f(t){return n3(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||rr(o)){let a=47===o,u=i.toLowerCase();return!a&&!l&&rK.includes(u)?(r=1,s.interrupt?t(o):S(o)):rV.includes(i.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):S(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):l?function t(n){return rl(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||n6(o)?(e.consume(o),i+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||n3(t)?(e.consume(t),x):rl(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||n6(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):rl(t)?(e.consume(t),y):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):rl(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||rr(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,k):null===t||rn(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||rl(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||rn(t)?S(t):rl(t)?(e.consume(t),j):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),A):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),D):rn(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(r$,R,C)(t)):null===t||rn(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),S)}function C(t){return e.check(rG,N,R)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||rn(t)?C(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),M):S(t)}function I(t){return 47===t?(e.consume(t),i="",T):S(t)}function T(t){if(62===t){let n=i.toLowerCase();return rK.includes(n)?(e.consume(t),A):S(t)}return n3(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),T):S(t)}function D(t){return 93===t?(e.consume(t),M):S(t)}function M(t){return 62===t?(e.consume(t),A):45===t&&2===r?(e.consume(t),M):S(t)}function A(t){return null===t||rn(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),A)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:r3,95:r1,96:rL,126:rL},"flowInitial",0,{[-2]:rz,[-1]:rz,32:rz},"insideSpan",0,{null:[rE,rv]},"string",0,{38:rA,92:rT},"text",0,{[-5]:r0,[-4]:r0,[-3]:r0,33:rJ,38:rA,42:rE,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return n3(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(t){return 43===t||45===t||46===t||n6(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||n6(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||n8(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):n9(t)?(e.consume(t),a):n(t)}function s(l){return n6(l)?function l(i){return 46===i?(e.consume(i),r=0,s):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||n6(i))&&r++<63){let n=45===i?t:l;return e.consume(i),n}return n(i)}(i)}(l):n(l)}}},{name:"htmlText",tokenize:function(e,t,n){let r,l,i,o=this;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),b):63===t?(e.consume(t),y):n3(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),l=0,f):n3(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):rn(t)?(i=c,T(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?I(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(l++)?(e.consume(t),l===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):rn(t)?(i=h,T(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?I(t):rn(t)?(i=x,T(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):rn(t)?(i=y,T(t)):(e.consume(t),y)}function v(e){return 62===e?I(e):y(e)}function b(t){return n3(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||n6(t)?(e.consume(t),k):function t(n){return rn(n)?(i=t,T(n)):rl(n)?(e.consume(n),t):I(n)}(t)}function w(t){return 45===t||n6(t)?(e.consume(t),w):47===t||62===t||rr(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),I):58===t||95===t||n3(t)?(e.consume(t),S):rn(t)?(i=j,T(t)):rl(t)?(e.consume(t),j):I(t)}function S(t){return 45===t||46===t||58===t||95===t||n6(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),C):rn(n)?(i=t,T(n)):rl(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,N):rn(t)?(i=C,T(t)):rl(t)?(e.consume(t),C):(e.consume(t),E)}function N(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):rn(t)?(i=N,T(t)):(e.consume(t),N)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||rr(t)?j(t):(e.consume(t),E)}function P(e){return 47===e||62===e||rr(e)?j(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return rl(t)?rs(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),i(t)}}}],91:rZ,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return rn(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},rT],93:rW,95:rE,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=l;++t<r;)if("codeTextData"===e[t][1].type){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(t=l-1,r++;++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},tokenize:function(e,t,n){let r,l,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(l=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(l.type="codeTextData",a(o))}(s)):rn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||rn(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],19210);var r6=e.i(19210);let r9=/[\0\t\n\r]/g;function r8(e,t){let 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&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let r7=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function le(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return r8(n.slice(t?2:1),t?16:10)}return rM(n)||e}let lt={}.hasOwnProperty;function ln(e){return{line:e.line,column:e.column,offset:e.offset}}function lr(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+nR({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nR({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+nR({start:t.start,end:t.end})+") is still open")}function ll(e){let t=this;t.parser=function(n){var r,l;let i,o,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:r(f,l),codeText:r(function(){return{type:"inlineCode",value:""}},l),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,l),htmlFlowData:u,htmlText:r(g,l),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:l,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=r8(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=rM(n);let l=this.stack[this.stack.length-1];l.value+=t},characterReference:function(e){this.stack.pop().position.end=ln(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rU(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(r7,le),n.identifier=rU(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=ln(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rU(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let l=n[r];Array.isArray(l)?e(t,l):function(e,t){let n;for(n in t)if(lt.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,l)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:i,exit:a,buffer:l,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,l,i,o,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||i||(i=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(l=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;l&&(e[l][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",l=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!l||i<l)&&(r._spread=!0),r.end=Object.assign({},l?e[l][1].start:t[1].end),e.splice(l||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let l={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=l,e.splice(a,0,["enter",l,t[2]]),a++,n++,i=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];lt.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||lr).call(o,void 0,e[0])}for(r.position={start:ln(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ln(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ln(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lr).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+nR({start:e.start,end:e.end})+"): it’s not open");n.position.end=ln(e.end)}function s(){var e;return e=this.stack.pop(),n0(e,"boolean"!=typeof nZ.includeImageAlt||nZ.includeImageAlt,"boolean"!=typeof nZ.includeHtml||nZ.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:ln(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ln(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!rm(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,l=(n4.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){n4.call(l,r)||(l[r]=[]);let e=i[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);n2(e,0,0,r)}(l[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([r6,...(e||{}).extensions||[]]),content:n(ru),defined:[],document:n(rc),flow:n(ry),lazy:{},string:n(rb),text:n(rk)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},l={},i=[],o=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){rn(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){l[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,l=[];for(;++r<e.length;){let i,o=e[r];if("string"==typeof o)i=o;else switch(o){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(o)}n=-2===o,l.push(i)}return l.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=n5(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=rN(i,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,l=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;if(r===i)n=[e[r].slice(l,o)];else{if(n=e.slice(r,i),l>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(l):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:l,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:l,offset:i}}function f(e,t){t.restore()}function h(e,t){return function(n,l,i){var o;let c,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?i:x(e[d])}function x(e){return function(n){let l,i,o,c,d;return(l=p(),i=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=l,u.previous=i,u.currentConstruct=o,u.events.length=c,a=d,g()}},f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(f,h),l}function v(e){return(h.restore(),++d<c.length)?x(c[d]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&n2(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}(t,e,n)}}})(l).document().write((o=1,a="",s=!0,function(e,t,n){let r,l,u,c,d,p=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(r9.lastIndex=u,c=(r=r9.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),u<c&&(p.push(e.slice(u,c)),o+=c-u),d){case 0:p.push(65533),o++;break;case 9:for(l=4*Math.ceil(o/4),p.push(-2);o++<l;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:i=!0,o=1}u=c+1}return n&&(i&&p.push(-5),a&&p.push(a),p.push(null)),p})(n,r,!0))))}}let li="object"==typeof self?self:globalThis,lo=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=l=>{if(t.has(l))return t.get(l);let[i,o]=e[l];switch(i){case 0:case -1:return n(o,l);case 1:{let e=n([],l);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},l);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),l);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),l)}case 5:{let e=n(new Map,l);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,l);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new li[e](t),l)}case 8:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new li[i](o),l)})(0)},{toString:la}={},{keys:ls}=Object,lu=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=la.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},lc=([e,t])=>0===e&&("function"===t||"symbol"===t),ld=(e,{json:t,lossy:n}={})=>{var r,l,i;let o,a,s=[];return(r=!(t||n),l=!!t,i=new Map,o=(e,t)=>{let n=s.push(e)-1;return i.set(t,n),n},a=e=>{if(i.has(e))return i.get(e);let[t,n]=lu(e);switch(t){case 0:{let l=e;switch(n){case"bigint":t=8,l=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);l=null;break;case"undefined":return o([-1],e)}return o([t,l],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],l=o([t,r],e);for(let t of e)r.push(a(t));return l}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(l&&"toJSON"in e)return a(e.toJSON());let i=[],s=o([t,i],e);for(let t of ls(e))(r||!lc(lu(e[t])))&&i.push([a(t),a(e[t])]);return s}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],l=o([t,n],e);for(let[t,l]of e)(r||!(lc(lu(t))||lc(lu(l))))&&n.push([a(t),a(l)]);return l}case 6:{let n=[],l=o([t,n],e);for(let t of e)(r||!lc(lu(t)))&&n.push(a(t));return l}}let{message:s}=e;return o([t,{name:n,message:s}],e)})(e),s},lp="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?lo(ld(e,t)):structuredClone(e):(e,t)=>lo(ld(e,t));function lf(e){let t=[],n=-1,r=0,l=0;for(;++n<e.length;){let i=e.charCodeAt(n),o="";if(37===i&&n6(e.charCodeAt(n+1))&&n6(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function lh(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lm(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let lg=function(e){var t,n;if(null==e)return ly;if("function"==typeof e)return lx(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lg(e[n]);return lx(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,lx(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,lx(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function lx(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ly(){return!0}let lv=[];function lb(e,t,n,r){var l,i,o;let a,s,u,c,d,p;"function"==typeof t&&"function"!=typeof n?(s=void 0,u=t,a=n):(s=t,u=n,a=r),l=s,i=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return u(e,r,n)},o=a,"function"==typeof l&&"function"!=typeof i?(o=i,i=l):c=l,d=lg(c),p=o?-1:1,(function e(t,n,r){let a=t&&"object"==typeof t?t:{};if("string"==typeof a.type){let e="string"==typeof a.tagName?a.tagName:"string"==typeof a.name?a.name:void 0;Object.defineProperty(s,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return s;function s(){var a;let s,u,c,f=lv;if((!l||d(t,n,r[r.length-1]||void 0))&&!1===(f=Array.isArray(a=i(t,r))?a:"number"==typeof a?[!0,a]:null==a?lv:[a])[0])return f;if("children"in t&&t.children&&t.children&&"skip"!==f[0])for(u=(o?t.children.length:-1)+p,c=r.concat(t);u>-1&&u<t.children.length;){if(!1===(s=e(t.children[u],u,c)())[0])return s;u="number"==typeof s[1]?s[1]:u+p}return f}})(e,void 0,[])()}function lk(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let l=e.all(t),i=l[0];i&&"text"===i.type?i.value="["+i.value:l.unshift({type:"text",value:"["});let o=l[l.length-1];return o&&"text"===o.type?o.value+=r:l.push({type:"text",value:r}),l}function lw(e){let t=e.spread;return null==t?e.children.length>1:t}function lj(e,t,n){let r=0,l=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(l-1);for(;9===t||32===t;)l--,t=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let lS={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),i=lf(l.toLowerCase()),o=e.footnoteOrder.indexOf(l),a=e.footnoteCounts.get(l);void 0===a?(a=0,e.footnoteOrder.push(l),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(l,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lk(e,t);let l={src:lf(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:lf(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lk(e,t);let l={href:lf(r.url||"")};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:lf(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),l=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=lw(n[r])}return t}(n):lw(t),i={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(l||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||l?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(l||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),l=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++l<r.length;){let e=r[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}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),l=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),l.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=nM(t.children[1]),o=nD(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),l.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,l=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=i?i[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:l,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),l=0,i=[];for(;r;)i.push(lj(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(lj(t.slice(l),l>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lC,yaml:lC,definition:lC,footnoteDefinition:lC};function lC(){}let lN={}.hasOwnProperty,lE={};function lP(e,t){e.position&&(t.position=function(e){let t=nM(e),n=nD(e);if(t&&n)return{start:t,end:n}}(e))}function lI(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,l=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&l&&Object.assign(n.properties,lp(l)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function lT(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function lD(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function lM(e,t){let n,r,l,i,o=(n=t||lE,r=new Map,l=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let l=i.one(n[r],e);if(l){if(r&&"break"===n[r-1].type&&(Array.isArray(l)||"text"!==l.type||(l.value=lD(l.value)),!Array.isArray(l)&&"element"===l.type)){let e=l.children[0];e&&"text"===e.type&&(e.value=lD(e.value))}Array.isArray(l)?t.push(...l):t.push(l)}}}return t},applyData:lI,definitionById:r,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lS,...n.handlers},one:function(e,t){let n=e.type,r=i.handlers[n];if(lN.call(i.handlers,n)&&r)return r(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=lp(n);return r.children=i.all(e),r}return lp(e)}return(i.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(lN.call(n,"hProperties")||lN.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(i,e,t)},options:n,patch:lP,wrap:lT},lb(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:l,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),i),a=o.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lh,r=e.options.footnoteBackLabel||lm,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let l=e.footnoteById.get(e.footnoteOrder[s]);if(!l)continue;let i=e.all(l),o=String(l.identifier).toUpperCase(),u=lf(o.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(l,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...lp(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(o),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(tZ("children"in u),u.children.push({type:"text",value:"\n"},s)),u}function lA(e,t){return e&&"run"in e?async function(n,r){let l=lM(n,{file:r,...t});await e.run(l,r)}:function(n,r){return lM(n,{file:r,...e||t})}}function lR(e){if(e)throw e}var lL=e.i(75609);function lz(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let lO=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');lH(e);let r=0,l=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1);return l<0?"":e.slice(r,l)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(l=i):(a=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},lF=function(e){let t;if(lH(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},l_=function(e){let t;lH(e);let n=e.length,r=-1,l=0,i=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){l=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},lB=function(...e){var t;let n,r,l,i=-1;for(;++i<e.length;)lH(e[i]),e[i]&&(l=void 0===l?e[i]:l+"/"+e[i]);return void 0===l?".":(lH(t=l),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,l="",i=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(l.length<2||2!==i||46!==l.codePointAt(l.length-1)||46!==l.codePointAt(l.length-2)){if(l.length>2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=s,a=0;continue}}else if(l.length>0){l="",i=0,o=s,a=0;continue}}t&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,s):l=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return l}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function lH(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function lU(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let lq=["history","path","basename","stem","extname","dirname"];class lV{constructor(e){let t,n;t=e?lU(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<lq.length;){const e=lq[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)lq.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?lO(this.path):void 0}set basename(e){l$(e,"basename"),lK(e,"basename"),this.path=lB(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?lF(this.path):void 0}set dirname(e){lG(this.basename,"dirname"),this.path=lB(e||"",this.basename)}get extname(){return"string"==typeof this.path?l_(this.path):void 0}set extname(e){if(lK(e,"extname"),lG(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=lB(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){lU(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!lU(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),l$(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?lO(this.path,this.extname):void 0}set stem(e){l$(e,"stem"),lK(e,"stem"),this.path=lB(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new nF(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function lK(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function l$(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function lG(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let lW=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},lX={}.hasOwnProperty;class lQ extends lW{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function l(i,...o){let a=e[++n],s=-1;if(i)return void r(i);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let i,o=e.length>t.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...l){n||(n=!0,t(e,...l))}function l(e){r(null,e)}})(a,l)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new lQ,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,lL.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(l0("data",this.frozen),this.namespace[e]=t,this):lX.call(this.namespace,e)&&this.namespace[e]||void 0:e?(l0("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=l5(e),n=this.parser||this.Parser;return lJ("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lJ("process",this.parser||this.Parser),lZ("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,l){let i=l5(e),o=n.parse(i);function a(e,n){e||!n?l(e):r?r(n):(tZ(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,i,function(e,t,r){var l,i;if(e||!t||!r)return a(e);let o=n.stringify(t,r);"string"==typeof(l=o)||(i=l)&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),lJ("processSync",this.parser||this.Parser),lZ("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,lR(e),t=r}),l2("processSync","process",n),tZ(t,"we either bailed on an error or have a tree"),t}run(e,t,n){l1(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?l(void 0,n):new Promise(l);function l(l,i){tZ("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=l5(t);r.run(e,o,function(t,r,o){let a=r||e;t?i(t):l?l(a):(tZ(n,"`done` is defined if `resolve` is not"),n(void 0,a,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){lR(e),n=t,r=!0}),l2("runSync","run",r),tZ(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=l5(t),r=this.compiler||this.Compiler;return lZ("stringify",r),l1(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(l0("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?i(e):l(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function l(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=(0,lL.default)(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else l(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,l=-1;for(;++r<n.length;)if(n[r][0]===e){l=r;break}if(-1===l)n.push([e,...t]);else if(t.length>0){let[r,...i]=t,o=n[l][1];lz(o)&&lz(r)&&(r=(0,lL.default)(!0,o,r)),n[l]=[e,r,...i]}}}}let lY=new lQ().freeze();function lJ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function lZ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function l0(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l1(e){if(!lz(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function l2(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function l5(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new lV(e)}let l4=[],l3={allowDangerousHtml:!0},l6=/^(https?|ircs?|mailto|xmpp)$/i,l9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function l8(e){var n;let r,l,i,o,a,s=(r=(n=e).rehypePlugins||l4,l=n.remarkPlugins||l4,i=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...l3}:l3,lY().use(ll).use(l).use(lA,i).use(r)),u=(o=e.children||"",a=new lV,"string"==typeof o?a.value=o:t0("Unexpected value `"+o+"` for `children` prop, expected `string`"),a);return function(e,n){let r=n.allowedElements,l=n.allowElement,i=n.components,o=n.disallowedElements,a=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||l7;for(let e of l9)Object.hasOwn(n,e.from)&&t0("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return r&&o&&t0("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),lb(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nJ)if(Object.hasOwn(nJ,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nJ[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let i=r?!r.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&l&&"number"==typeof t&&(i=!l(e,t,n)),i&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,l,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,l,i){let o=Array.isArray(l.children),a=nM(e);return r(t,l,i,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");l=t.jsx,i=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?i:l;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?nI:nP,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=nK(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:i,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function l7(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return -1===t||-1!==l&&t>l||-1!==n&&t>n||-1!==r&&t>r||l6.test(e.slice(0,t))?e:""}let ie=(0,s.default)("git-compare-arrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]),it=(0,s.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),ir={p:({children:e})=>(0,t.jsx)("p",{className:"text-muted-foreground mb-2 text-xs leading-relaxed last:mb-0",children:e}),strong:({children:e})=>(0,t.jsx)("strong",{className:"text-foreground font-semibold",children:e}),em:({children:e})=>(0,t.jsx)("em",{className:"italic",children:e}),code:({children:e,className:n})=>n?(0,t.jsx)("code",{className:`${n} text-[11px]`,children:e}):(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e}),pre:({children:e})=>(0,t.jsx)("pre",{className:"bg-muted my-2 overflow-x-auto rounded-lg border p-3",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"text-muted-foreground mb-2 list-disc space-y-1 pl-4 text-xs",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"text-muted-foreground mb-2 list-decimal space-y-1 pl-4 text-xs",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e}),a:({children:e,href:n})=>(0,t.jsx)("a",{href:n,className:"text-primary underline underline-offset-2",target:"_blank",rel:"noopener noreferrer",children:e})};function il({decision:e,index:r}){let[l,i]=(0,n.useState)(!1),o=(0,w.useSoundAction)("expand"),a=(0,w.useSoundAction)("collapse");return(0,t.jsxs)("div",{className:"border-border rounded-lg border",children:[(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:r+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-xs",children:e.chosen})]})]}),"decisionName"in e&&e.decisionName?(0,t.jsx)(I.Badge,{variant:"secondary",className:"bg-primary/10 text-primary shrink-0",children:e.decisionName}):null]}),e.rationale?(0,t.jsx)(l8,{components:ir,children:e.rationale}):null]}),e.rejected.length>0?(0,t.jsxs)("div",{className:"border-border border-t",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{l?a.play():o.play(),i(e=>!e)},className:"text-muted-foreground hover:bg-muted/50 flex w-full items-center gap-1.5 px-4 py-3 text-xs font-medium transition-colors",children:[(0,t.jsx)(tL,{className:`h-3.5 w-3.5 transition-transform ${l?"rotate-90":""}`}),(0,t.jsx)(it,{className:"h-3.5 w-3.5"}),"Other Options Considered (",e.rejected.length,")"]}),l?(0,t.jsx)("div",{className:"space-y-1.5 px-4 pb-3",children:e.rejected.map(e=>(0,t.jsx)("div",{className:"bg-primary/5 rounded-md px-3 py-2",children:(0,t.jsx)("span",{className:"text-foreground text-xs",children:e})},e))}):null]}):null]})}function ii({data:e}){let{summary:n,decisions:r}=e;return 0===r.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Technical Implementation Plan Review"}),n?(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:n}):null]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)(ie,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Technical Decisions"})]}),r.map((e,n)=>(0,t.jsx)(il,{decision:e,index:n},e.title))]})}let io=(0,s.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);function ia({item:e,index:n}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsx)("div",{className:"space-y-2 px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.question}),(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:e.selectedOption}),e.wasRecommended?(0,t.jsx)(I.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null]})]})]})})})}function is({data:e}){let{questions:n}=e;return 0===n.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(io,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Product Decisions"})]}),n.map((e,n)=>(0,t.jsx)(ia,{item:e,index:n},e.question))]})}function iu({techData:e,productData:n,onApprove:r,onReject:l,isProcessing:o=!1,isRejecting:a=!1}){return 0===e.decisions.length?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)(tJ.Tabs,{defaultValue:"technical",className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"shrink-0 px-4 pt-4",children:(0,t.jsxs)(tJ.TabsList,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(tJ.TabsTrigger,{value:"product",children:"Product"}),(0,t.jsx)(tJ.TabsTrigger,{value:"technical",children:"Technical"})]})}),(0,t.jsx)(tJ.TabsContent,{value:"product",className:"mt-0 flex-1 overflow-y-auto",children:null===n?(0,t.jsx)("div",{className:"flex items-center justify-center p-8","data-testid":"product-loading",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):n?(0,t.jsx)(is,{data:n}):(0,t.jsx)("p",{className:"text-muted-foreground p-4 text-center text-sm",children:"No product decisions available."})}),(0,t.jsx)(tJ.TabsContent,{value:"technical",className:"mt-0 flex-1 overflow-y-auto",children:(0,t.jsx)(ii,{data:e})})]}),(0,t.jsx)(tG,{onReject:l,onApprove:r,approveLabel:"Approve Plan",approveIcon:(0,t.jsx)(K.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise the plan...",isProcessing:o,isRejecting:a})]})}var ic=e.i(28201);let id=(0,s.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),ip=(0,s.default)("file-diff",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);var ih=e.i(49228);let im=(0,s.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ig({phases:e}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(it,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Implementation Phases"})]}),(0,t.jsx)("ol",{className:"space-y-2",children:e.map((e,n)=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-emerald-100 text-[10px] font-bold text-emerald-700",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-medium",children:e.name}),e.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px] leading-relaxed",children:e.description}):null]})]},e.id))})]})})}function ix({data:e,onApprove:n,onReject:r,isProcessing:l=!1,isRejecting:o=!1}){let{pr:s,diffSummary:c,phases:d,branch:p,warning:f}=e;return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-emerald-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Merge Review"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:s?"Review the pull request details and approve to merge.":"Review the changes and approve to merge."})]})]}),p?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(ih.GitBranch,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)(I.Badge,{variant:"secondary",className:"font-mono text-[11px]",children:p.source}),(0,t.jsx)(im,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}),(0,t.jsx)(I.Badge,{variant:"outline",className:"font-mono text-[11px]",children:p.target})]})}):null,s?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",s.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(I.Badge,{variant:"outline",className:"text-xs",children:s.status})]}),s.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(F,{status:s.ciStatus})]}):null,s.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:s.commitHash.slice(0,7)})]})]}):null]})}):null,c?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(ip,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Changes"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-3",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:c.filesChanged}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"files"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-green-600",children:["+",c.additions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"additions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-red-600",children:["-",c.deletions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"deletions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:c.commitCount}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"commits"})]})]})]})}):f?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(id,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:f})]})}):null,d&&d.length>0?(0,t.jsx)(ig,{phases:d}):null]}),(0,t.jsx)(tG,{onReject:r,onApprove:n,approveLabel:"Approve Merge",approveIcon:l?(0,t.jsx)(i.Loader2,{className:"mr-1.5 h-4 w-4 animate-spin"}):(0,t.jsx)(ic.GitMerge,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise before merging...",isProcessing:l,isRejecting:o})]})}e.i(47506);var iy=e.i(2929),iv=e.i(99045);function ib({view:e}){let a,s=(0,r.useRouter)(),u=(0,w.useSoundAction)("delete"),p=(0,w.useSoundAction)("reject"),[f,I]=(0,n.useState)(e);(0,n.useEffect)(()=>{I(e)},[e]);let M="feature"===f.type||"prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,{events:A}=(0,S.useAgentEventsContext)(),R=(0,n.useRef)(0);(0,n.useEffect)(()=>{if(!M||A.length<=R.current)return;let e=A.slice(R.current);for(let t of(R.current=A.length,e)){if(t.featureId!==M.featureId)continue;let e=(0,iv.mapEventTypeToState)(t.eventType),n=(0,iv.mapPhaseNameToLifecycle)(t.phaseName);s.refresh(),I(t=>"feature"!==t.type&&"prd-review"!==t.type&&"tech-review"!==t.type&&"merge-review"!==t.type?t:{...t,node:{...t.node,state:e,...void 0!==n&&{lifecycle:n}}})}},[A,M,s]);let z=(0,r.usePathname)().startsWith("/feature/"),O=(0,n.useCallback)(()=>{s.push("/")},[s]),[F,B]=(0,n.useState)(null),[H,U]=(0,n.useState)({}),[q,V]=(0,n.useState)(!1),[K,$]=(0,n.useState)(null),[G,W]=(0,n.useState)(!1),[X,Q]=(0,n.useState)(void 0),[Y,J]=(0,n.useState)(!1),[Z,ee]=(0,n.useState)(null),[et,en]=(0,n.useState)(!1),[er,el]=(0,n.useState)(!1),[ei,eo]=(0,n.useState)(!1),ea="prd-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(U({}),B(null),!ea)return;let e=!1;return V(!0),g(ea).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);if(t.questionnaire){B(t.questionnaire);let e={};for(let n of t.questionnaire.questions){let t=n.options.find(e=>e.recommended);t&&(e[n.id]=t.id)}U(e)}}}).catch(()=>{e||l.toast.error("Failed to load questionnaire")}).finally(()=>{e||V(!1)}),()=>{e=!0}},[ea]);let es="tech-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if($(null),!es)return;let e=!1;return W(!0),x(es).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);t.techDecisions&&$(t.techDecisions)}}).catch(()=>{e||l.toast.error("Failed to load tech decisions")}).finally(()=>{e||W(!1)}),()=>{e=!0}},[es]),(0,n.useEffect)(()=>{if(Q(void 0),!es)return;let e=!1;return J(!0),g(es).then(t=>{!e&&t.productDecisions&&Q(t.productDecisions)}).catch(()=>{}).finally(()=>{e||J(!1)}),()=>{e=!0}},[es]);let eu="merge-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(ee(null),!eu)return;let e=!1;return en(!0),y(eu).then(t=>{if(!e){if("error"in t)return void l.toast.error(t.error);ee(t)}}).catch(()=>{e||l.toast.error("Failed to load merge review data")}).finally(()=>{e||en(!1)}),()=>{e=!0}},[eu]);let ec="prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,ed=(0,n.useCallback)(async(e,t,n)=>{if(ec?.featureId){eo(!0);try{let r=await m(ec.featureId,e);if(!r.rejected)return void l.toast.error(r.error??`Failed to reject ${t.toLowerCase()}`);p.play(),l.toast.success(`${t} rejected — agent re-iterating (iteration ${r.iteration})`),r.iterationWarning&&l.toast.warning(`Iteration ${r.iteration} — consider approving or adjusting feedback to avoid excessive iterations`),O(),n?.()}finally{eo(!1)}}},[ec,O,p]),ep=(0,n.useCallback)(e=>ed(e,"Requirements",()=>U({})),[ed]),ef=(0,n.useCallback)(e=>ed(e,"Plan"),[ed]),eh=(0,n.useCallback)(e=>ed(e,"Merge"),[ed]),em=(0,n.useCallback)(async e=>{if(!ec?.featureId)return;let t=await h(ec.featureId);t.approved?(l.toast.success(`${e} approved — agent resuming`),O()):l.toast.error(t.error??`Failed to approve ${e.toLowerCase()}`)},[ec,O]),eg=(0,n.useCallback)(async e=>{let t;if("prd-review"!==f.type)return;if(F){let e=[];for(let[t,n]of Object.entries(H)){let r=F.questions.find(e=>e.id===t),l=r?.options.find(e=>e.id===n);r&&l&&e.push({questionId:r.question,selectedOption:l.label})}t={approved:!0,changedSelections:e}}let n=await h(f.node.featureId,t);n.approved?(l.toast.success("Requirements approved — agent resuming"),U({}),O()):l.toast.error(n.error??"Failed to approve requirements")},[f,F,H,O]),ex=(0,n.useCallback)(()=>em("Plan"),[em]),ey=(0,n.useCallback)(()=>em("Merge"),[em]),ev=(0,n.useCallback)(async e=>{el(!0);try{let t=await (0,v.deleteFeature)(e);if(t.error)return void l.toast.error(t.error);u.play(),l.toast.success("Feature deleted successfully"),s.push("/"),s.refresh()}catch{l.toast.error("Failed to delete feature")}finally{el(!1)}},[s,u]),eb=M?.repositoryPath&&M?.branch?{repositoryPath:M.repositoryPath,branch:M.branch,specPath:M.specPath}:null,ek=function(e){let[t,r]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),[s,u]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[p,f]=(0,n.useState)(null),h=(0,n.useRef)(null),m=(0,n.useRef)(null),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=h.current,t=m.current,n=g.current;return()=>{e&&clearTimeout(e),t&&clearTimeout(t),n&&clearTimeout(n)}},[]);let x=(0,n.useCallback)(async(t,n,r,l,i)=>{if(e&&!i){l.current&&clearTimeout(l.current),n(!0),r(null);try{let n=await t({repositoryPath:e.repositoryPath,branch:e.branch});if(!n.success){let e=n.error??"An unexpected error occurred";r(e),l.current=setTimeout(()=>r(null),5e3)}}catch(e){r(e instanceof Error?e.message:"An unexpected error occurred"),l.current=setTimeout(()=>r(null),5e3)}finally{n(!1)}}},[e]);return{openInIde:(0,n.useCallback)(()=>x(tX.openIde,r,u,h,t),[x,t]),openInShell:(0,n.useCallback)(()=>x(tQ.openShell,i,d,m,l),[x,l]),openSpecsFolder:(0,n.useCallback)(async()=>{if(e?.specPath&&!o){g.current&&clearTimeout(g.current),a(!0),f(null);try{let t=await (0,tY.openFolder)(e.specPath);if(!t.success){let e=t.error??"An unexpected error occurred";f(e),g.current=setTimeout(()=>f(null),5e3)}}catch(e){f(e instanceof Error?e.message:"An unexpected error occurred"),g.current=setTimeout(()=>f(null),5e3)}finally{a(!1)}}},[e,o]),ideLoading:t,shellLoading:l,specsLoading:o,ideError:s,shellError:c,specsError:p}}(eb),ew=M?.repositoryPath&&M.branch?{targetId:M.featureId,targetType:"feature",repositoryPath:M.repositoryPath,branch:M.branch}:null,ej=(0,j.useDeployAction)(ew),eS="Booting"===ej.status||"Ready"===ej.status;M&&(a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-header",children:[(0,t.jsx)(E.DrawerTitle,{children:M.name}),M.description?(0,t.jsx)(E.DrawerDescription,{children:M.description}):M.featureId?(0,t.jsx)(E.DrawerDescription,{className:"sr-only",children:M.featureId}):null]}),eb?(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,t.jsx)(tq,{actions:ek,repositoryPath:eb.repositoryPath,showSpecs:!!eb.specPath}),k.featureFlags.envDeploy&&ew?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.TooltipProvider,{children:(0,t.jsxs)(D.Tooltip,{children:[(0,t.jsx)(D.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(_.ActionButton,{label:eS?"Stop Dev Server":"Start Dev Server",onClick:eS?ej.stop:ej.deploy,loading:ej.deployLoading||ej.stopLoading,error:!!ej.deployError,icon:eS?d.Square:c.Play,iconOnly:!0,variant:"outline",size:"icon-sm"})})}),(0,t.jsx)(D.TooltipContent,{children:eS?"Stop Dev Server":"Start Dev Server"})]})}),eS?(0,t.jsx)(N.DeploymentStatusBadge,{status:ej.status,url:ej.url,targetId:ew?.targetId}):null]}):null,M.featureId?(0,t.jsxs)(L.AlertDialog,{children:[(0,t.jsx)(L.AlertDialogTrigger,{asChild:!0,children:(0,t.jsx)(P.Button,{variant:"ghost",size:"icon-sm","aria-label":"Delete feature",disabled:er,className:"text-muted-foreground hover:text-destructive ml-auto","data-testid":"feature-drawer-delete",children:er?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(o.Trash2,{className:"size-4"})})}),(0,t.jsxs)(L.AlertDialogContent,{children:[(0,t.jsxs)(L.AlertDialogHeader,{children:[(0,t.jsx)(L.AlertDialogTitle,{children:"Delete feature?"}),(0,t.jsxs)(L.AlertDialogDescription,{children:["This will permanently delete ",(0,t.jsx)("strong",{children:M.name})," (",M.featureId,"). This action cannot be undone.","running"===M.state?(0,t.jsx)(t.Fragment,{children:" This feature has a running agent that will be stopped."}):null]})]}),(0,t.jsxs)(L.AlertDialogFooter,{children:[(0,t.jsx)(L.AlertDialogCancel,{disabled:er,children:"Cancel"}),(0,t.jsx)(L.AlertDialogAction,{variant:"destructive",disabled:er,onClick:()=>ev(M.featureId),children:er?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Deleting…"]}):"Delete"})]})]})]}):null]}):null]}));let eC=null;return"feature"===f.type&&M?eC=(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-status",className:"flex flex-col gap-3 p-4",children:[(0,t.jsx)("div",{className:"text-muted-foreground text-xs font-semibold tracking-wider",children:iy.lifecycleDisplayLabels[M.lifecycle]}),(0,t.jsx)(ik,{data:M}),M.progress>0?(0,t.jsxs)("div",{"data-testid":"feature-drawer-progress",className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"text-muted-foreground flex items-center justify-between text-xs",children:[(0,t.jsx)("span",{children:"Progress"}),(0,t.jsxs)("span",{children:[M.progress,"%"]})]}),(0,t.jsx)("div",{className:"bg-muted h-2 w-full overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:(0,b.cn)("h-full rounded-full transition-all",iy.featureNodeStateConfig[M.state].progressClass),style:{width:`${M.progress}%`}})})]}):null]}),M.pr?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.Separator,{}),(0,t.jsx)(iw,{pr:M.pr})]}):null,(0,t.jsx)(ij,{data:M})]}):"prd-review"===f.type?eC=F?(0,t.jsx)(tW,{data:F,selections:H,onSelect:(e,t)=>U(n=>({...n,[e]:t})),onApprove:eg,onReject:ep,isProcessing:q,isRejecting:ei}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"tech-review"===f.type?eC=K?(0,t.jsx)(iu,{techData:K,productData:Y?null:X,onApprove:ex,onReject:ef,isProcessing:G,isRejecting:ei}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"merge-review"===f.type&&(eC=Z?(0,t.jsx)(ix,{data:Z,onApprove:ey,onReject:eh,isProcessing:et,isRejecting:ei}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})})),(0,t.jsx)(C.BaseDrawer,{open:z,onClose:O,size:"md",modal:!1,header:a,"data-testid":"feature"===f.type?"feature-drawer":"repository"===f.type?"repository-drawer":"review-drawer",children:eC})}function ik({data:e}){let n=iy.featureNodeStateConfig[e.state],r=n.icon;return(0,t.jsxs)("div",{className:(0,b.cn)("flex items-center gap-2 rounded-full px-3 py-1.5 text-sm font-medium",n.badgeBgClass,n.badgeClass),children:["running"===e.state?(0,t.jsx)(R,{size:"sm",className:"shrink-0"}):(0,t.jsx)(r,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:n.label})]})}function iw({pr:e}){let n={[p.PrStatus.Open]:"border-transparent bg-blue-50 text-blue-700 hover:bg-blue-50",[p.PrStatus.Merged]:"border-transparent bg-purple-50 text-purple-700 hover:bg-purple-50",[p.PrStatus.Closed]:"border-transparent bg-red-50 text-red-700 hover:bg-red-50"};return(0,t.jsx)("div",{"data-testid":"feature-drawer-pr",className:"border-border mx-4 rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",e.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(I.Badge,{className:n[e.status],children:e.status})]}),e.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(F,{status:e.ciStatus})]}):null,e.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e.commitHash.slice(0,7)})]})]}):null]})})}function ij({data:e}){return e.agentType??e.runtime??e.blockedBy??e.errorMessage?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.Separator,{}),(0,t.jsxs)("div",{"data-testid":"feature-drawer-details",className:"flex flex-col gap-3 p-4",children:[e.agentType?(0,t.jsx)(iS,{label:"Agent",value:e.agentType}):null,e.runtime?(0,t.jsx)(iS,{label:"Runtime",value:e.runtime}):null,e.blockedBy?(0,t.jsx)(iS,{label:"Blocked by",value:e.blockedBy}):null,e.errorMessage?(0,t.jsx)(iS,{label:"Error",value:e.errorMessage}):null]})]}):null}function iS({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:e}),(0,t.jsx)("span",{className:"text-sm",children:n})]})}e.s(["FeatureDrawerClient",()=>ib],36986)}]);
|