@winspan/claude-forge 8.28.2 → 8.30.0
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/README.md +68 -215
- package/dist/capability/execution-manager.d.ts +59 -0
- package/dist/capability/execution-manager.d.ts.map +1 -0
- package/dist/capability/execution-manager.js +168 -0
- package/dist/capability/execution-manager.js.map +1 -0
- package/dist/capability/executor/background-executor.d.ts +57 -0
- package/dist/capability/executor/background-executor.d.ts.map +1 -0
- package/dist/capability/executor/background-executor.js +299 -0
- package/dist/capability/executor/background-executor.js.map +1 -0
- package/dist/capability/executor/foreground-executor.d.ts +26 -0
- package/dist/capability/executor/foreground-executor.d.ts.map +1 -0
- package/dist/capability/executor/foreground-executor.js +82 -0
- package/dist/capability/executor/foreground-executor.js.map +1 -0
- package/dist/capability/executor/orchestrator.d.ts +25 -0
- package/dist/capability/executor/orchestrator.d.ts.map +1 -0
- package/dist/capability/executor/orchestrator.js +79 -0
- package/dist/capability/executor/orchestrator.js.map +1 -0
- package/dist/capability/executor/stream-parser.d.ts +73 -0
- package/dist/capability/executor/stream-parser.d.ts.map +1 -0
- package/dist/capability/executor/stream-parser.js +56 -0
- package/dist/capability/executor/stream-parser.js.map +1 -0
- package/dist/capability/executor/types.d.ts +44 -0
- package/dist/capability/executor/types.d.ts.map +1 -0
- package/dist/capability/executor/types.js +9 -0
- package/dist/capability/executor/types.js.map +1 -0
- package/dist/capability/executor/worker-auth-probe.d.ts +30 -0
- package/dist/capability/executor/worker-auth-probe.d.ts.map +1 -0
- package/dist/capability/executor/worker-auth-probe.js +99 -0
- package/dist/capability/executor/worker-auth-probe.js.map +1 -0
- package/dist/capability/types.d.ts +10 -1
- package/dist/capability/types.d.ts.map +1 -1
- package/dist/core/storage/sqlite.d.ts +18 -0
- package/dist/core/storage/sqlite.d.ts.map +1 -1
- package/dist/core/storage/sqlite.js +75 -4
- package/dist/core/storage/sqlite.js.map +1 -1
- package/dist/daemon/handlers/methodology-formatter.d.ts +7 -0
- package/dist/daemon/handlers/methodology-formatter.d.ts.map +1 -1
- package/dist/daemon/handlers/methodology-formatter.js +46 -0
- package/dist/daemon/handlers/methodology-formatter.js.map +1 -1
- package/dist/daemon/handlers/stop.d.ts +6 -1
- package/dist/daemon/handlers/stop.d.ts.map +1 -1
- package/dist/daemon/handlers/stop.js +45 -1
- package/dist/daemon/handlers/stop.js.map +1 -1
- package/dist/daemon/handlers/user-prompt.d.ts.map +1 -1
- package/dist/daemon/handlers/user-prompt.js +34 -1
- package/dist/daemon/handlers/user-prompt.js.map +1 -1
- package/dist/daemon/index.d.ts.map +1 -1
- package/dist/daemon/index.js +20 -1
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/methodology-pending-queue.d.ts +33 -0
- package/dist/daemon/methodology-pending-queue.d.ts.map +1 -0
- package/dist/daemon/methodology-pending-queue.js +120 -0
- package/dist/daemon/methodology-pending-queue.js.map +1 -0
- package/dist/web/server.d.ts +6 -0
- package/dist/web/server.d.ts.map +1 -1
- package/dist/web/server.js +127 -7
- package/dist/web/server.js.map +1 -1
- package/dist/web/static/assets/AIConfig-nZgwaowr.js +2 -0
- package/dist/web/static/assets/AIConfig-nZgwaowr.js.map +1 -0
- package/dist/web/static/assets/Agents-BZGXKWC7.js +2 -0
- package/dist/web/static/assets/Agents-BZGXKWC7.js.map +1 -0
- package/dist/web/static/assets/CodeBlock--H53gk46.js +2 -0
- package/dist/web/static/assets/CodeBlock--H53gk46.js.map +1 -0
- package/dist/web/static/assets/Dashboard-qUCxXFSI.js +2 -0
- package/dist/web/static/assets/Dashboard-qUCxXFSI.js.map +1 -0
- package/dist/web/static/assets/Drawer-DeKukfwJ.js +2 -0
- package/dist/web/static/assets/Drawer-DeKukfwJ.js.map +1 -0
- package/dist/web/static/assets/Events-CnA3f740.js +2 -0
- package/dist/web/static/assets/Events-CnA3f740.js.map +1 -0
- package/dist/web/static/assets/ExecutionTrace-ClPfFIQa.js +2 -0
- package/dist/web/static/assets/ExecutionTrace-ClPfFIQa.js.map +1 -0
- package/dist/web/static/assets/MarkdownRenderer-CCIz1MOz.js +2 -0
- package/dist/web/static/assets/MarkdownRenderer-CCIz1MOz.js.map +1 -0
- package/dist/web/static/assets/Methodologies-CAXUXeox.js +2 -0
- package/dist/web/static/assets/Methodologies-CAXUXeox.js.map +1 -0
- package/dist/web/static/assets/MethodologyDetail-Do1taSKM.js +2 -0
- package/dist/web/static/assets/MethodologyDetail-Do1taSKM.js.map +1 -0
- package/dist/web/static/assets/Routing-CFmM7JuB.js +2 -0
- package/dist/web/static/assets/Routing-CFmM7JuB.js.map +1 -0
- package/dist/web/static/assets/SessionDetail-DzTue2xK.js +2 -0
- package/dist/web/static/assets/SessionDetail-DzTue2xK.js.map +1 -0
- package/dist/web/static/assets/Sessions-DwWOKgnl.js +2 -0
- package/dist/web/static/assets/Sessions-DwWOKgnl.js.map +1 -0
- package/dist/web/static/assets/Skills-DhM6ALhr.js +2 -0
- package/dist/web/static/assets/Skills-DhM6ALhr.js.map +1 -0
- package/dist/web/static/assets/charts-CLrM0_uM.js +37 -0
- package/dist/web/static/assets/charts-CLrM0_uM.js.map +1 -0
- package/dist/web/static/assets/date-fns-CZ_bHujz.js +2 -0
- package/dist/web/static/assets/date-fns-CZ_bHujz.js.map +1 -0
- package/dist/web/static/assets/export-CEzDNM66.js +4 -0
- package/dist/web/static/assets/export-CEzDNM66.js.map +1 -0
- package/dist/web/static/assets/index-CVWult53.css +1 -0
- package/dist/web/static/assets/index-DUYj2ek1.js +3 -0
- package/dist/web/static/assets/index-DUYj2ek1.js.map +1 -0
- package/dist/web/static/assets/lucide-DjB4fWNj.js +227 -0
- package/dist/web/static/assets/lucide-DjB4fWNj.js.map +1 -0
- package/dist/web/static/assets/query-C99w429o.js +2 -0
- package/dist/web/static/assets/query-C99w429o.js.map +1 -0
- package/dist/web/static/assets/react-router-I-HqunH7.js +20 -0
- package/dist/web/static/assets/react-router-I-HqunH7.js.map +1 -0
- package/dist/web/static/assets/react-vendor-CSp-GLFF.js +49 -0
- package/dist/web/static/assets/react-vendor-CSp-GLFF.js.map +1 -0
- package/dist/web/static/assets/syntax-highlighter-44FakypI.js +9 -0
- package/dist/web/static/assets/syntax-highlighter-44FakypI.js.map +1 -0
- package/dist/web/static/assets/vendor-CMMjVdZs.js +64 -0
- package/dist/web/static/assets/vendor-CMMjVdZs.js.map +1 -0
- package/dist/web/static/index.html +8 -2
- package/package.json +1 -1
- package/dist/web/static/assets/index-CtylfoaN.css +0 -1
- package/dist/web/static/assets/index-DnaQt27h.js +0 -388
- package/dist/web/static/assets/index-DnaQt27h.js.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var _u=Object.defineProperty;var Au=(e,t,n)=>t in e?_u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var rr=(e,t,n)=>Au(e,typeof t!="symbol"?t+"":t,n);import{g as Ne,c as dt,r as ye,j as ir}from"./react-vendor-CSp-GLFF.js";/**
|
|
2
|
+
* @remix-run/router v1.23.2
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dt.apply(this,arguments)}var ct;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ct||(ct={}));const Qi="popstate";function v1(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:l,hash:a}=r.location;return Or("",{pathname:o,search:l,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Dl(i)}return Cu(t,n,null,e)}function ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function li(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Pu(){return Math.random().toString(36).substr(2,8)}function Ji(e,t){return{usr:e.state,key:e.key,idx:t}}function Or(e,t,n,r){return n===void 0&&(n=null),Dt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mn(t):t,{state:n,key:t&&t.key||r||Pu()})}function Dl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Mn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Cu(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=ct.Pop,s=null,c=f();c==null&&(c=0,l.replaceState(Dt({},l.state,{idx:c}),""));function f(){return(l.state||{idx:null}).idx}function u(){a=ct.Pop;let y=f(),g=y==null?null:y-c;c=y,s&&s({action:a,location:m.location,delta:g})}function p(y,g){a=ct.Push;let k=Or(m.location,y,g);c=f()+1;let x=Ji(k,c),v=m.createHref(k);try{l.pushState(x,"",v)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(v)}o&&s&&s({action:a,location:m.location,delta:1})}function h(y,g){a=ct.Replace;let k=Or(m.location,y,g);c=f();let x=Ji(k,c),v=m.createHref(k);l.replaceState(x,"",v),o&&s&&s({action:a,location:m.location,delta:0})}function d(y){let g=i.location.origin!=="null"?i.location.origin:i.location.href,k=typeof y=="string"?y:Dl(y);return k=k.replace(/ $/,"%20"),ft(g,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,g)}let m={get action(){return a},get location(){return e(i,l)},listen(y){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Qi,u),s=y,()=>{i.removeEventListener(Qi,u),s=null}},createHref(y){return t(i,y)},createURL:d,encodeLocation(y){let g=d(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:h,go(y){return l.go(y)}};return m}var Zi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zi||(Zi={}));function _1(e,t,n){return n===void 0&&(n="/"),Iu(e,t,n)}function Iu(e,t,n,r){let i=typeof t=="string"?Mn(t):t,o=qu(i.pathname||"/",n);if(o==null)return null;let l=Ll(e);Ou(l);let a=null;for(let s=0;a==null&&s<l.length;++s){let c=Uu(o);a=ju(l[s],c)}return a}function Ll(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,l,a)=>{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};s.relativePath.startsWith("/")&&(ft(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=un([r,s.relativePath]),f=n.concat(s);o.children&&o.children.length>0&&(ft(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ll(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Fu(c,o.index),routesMeta:f})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let s of Rl(o.path))i(o,l,s)}),t}function Rl(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Rl(r.join("/")),a=[];return a.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Ou(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Nu(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Tu=/^:[\w-]+$/,Mu=3,Du=2,Lu=1,Ru=10,zu=-2,eo=e=>e==="*";function Fu(e,t){let n=e.split("/"),r=n.length;return n.some(eo)&&(r+=zu),t&&(r+=Du),n.filter(i=>!eo(i)).reduce((i,o)=>i+(Tu.test(o)?Mu:o===""?Lu:Ru),r)}function Nu(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ju(e,t,n){let{routesMeta:r}=e,i={},o="/",l=[];for(let a=0;a<r.length;++a){let s=r[a],c=a===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",u=$u({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},f),p=s.route;if(!u)return null;Object.assign(i,u.params),l.push({params:i,pathname:un([o,u.pathname]),pathnameBase:Gu(un([o,u.pathnameBase])),route:p}),u.pathnameBase!=="/"&&(o=un([o,u.pathnameBase]))}return l}function $u(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Bu(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,f,u)=>{let{paramName:p,isOptional:h}=f;if(p==="*"){let m=a[u]||"";l=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const d=a[u];return h&&!d?c[p]=void 0:c[p]=(d||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:l,pattern:e}}function Bu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),li(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Uu(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return li(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function qu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Hu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wu=e=>Hu.test(e);function Vu(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Mn(e):e,o;if(n)if(Wu(n))o=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),li(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?o=to(n.substring(1),"/"):o=to(n,t)}else o=t;return{pathname:o,search:Xu(r),hash:Yu(i)}}function to(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function or(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ku(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function A1(e,t){let n=Ku(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function P1(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Mn(e):(i=Dt({},e),ft(!i.pathname||!i.pathname.includes("?"),or("?","pathname","search",i)),ft(!i.pathname||!i.pathname.includes("#"),or("#","pathname","hash",i)),ft(!i.search||!i.search.includes("#"),or("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let u=t.length-1;if(!r&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),u-=1;i.pathname=p.join("/")}a=u>=0?t[u]:"/"}let s=Vu(i,a),c=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const un=e=>e.join("/").replace(/\/\/+/g,"/"),Gu=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xu=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yu=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function C1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zl=["post","put","patch","delete"];new Set(zl);const Qu=["get",...zl];new Set(Qu);function Fl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Fl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function I1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Fl(e))&&(r&&(r+=" "),r+=t);return r}var Dn={},Nl={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Nl);var ai={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(ai);var Ln={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(Ln);var Rn={},jl={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(jl);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jl,n=Ln;function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const o=[],l=i.length;if(l===0)return o;let a=0,s="",c="",f=!1;for(i.charCodeAt(0)===46&&(o.push(""),a++);a<l;){const u=i[a];c?u==="\\"&&a+1<l?(a++,s+=i[a]):u===c?c="":s+=u:f?u==='"'||u==="'"?c=u:u==="]"?(f=!1,o.push(s),s=""):s+=u:u==="["?(f=!0,s&&(o.push(s),s="")):u==="."?s&&(o.push(s),s=""):s+=u,a++}return s&&o.push(s),o}e.toPath=r})(Rn);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nl,n=ai,r=Ln,i=Rn;function o(a,s,c){if(a==null)return c;switch(typeof s){case"string":{if(t.isUnsafeProperty(s))return c;const f=a[s];return f===void 0?n.isDeepKey(s)?o(a,i.toPath(s),c):c:f}case"number":case"symbol":{typeof s=="number"&&(s=r.toKey(s));const f=a[s];return f===void 0?c:f}default:{if(Array.isArray(s))return l(a,s,c);if(Object.is(s==null?void 0:s.valueOf(),-0)?s="-0":s=String(s),t.isUnsafeProperty(s))return c;const f=a[s];return f===void 0?c:f}}}function l(a,s,c){if(s.length===0)return c;let f=a;for(let u=0;u<s.length;u++){if(f==null||t.isUnsafeProperty(s[u]))return c;f=f[s[u]]}return f===void 0?c:f}e.get=o})(Dn);var Ju=Dn.get;const O1=Ne(Ju);var $l={},Bl={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const l=n[o],a=r(l,o,n);i.has(a)||i.set(a,l)}return Array.from(i.values())}e.uniqBy=t})(Bl);var Ul={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...i){return n.apply(this,i.slice(0,r))}}e.ary=t})(Ul);var si={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(si);var ql={},ui={},Hl={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(Hl);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hl;function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(ui);var Wl={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(Wl);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ui,n=Wl;function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(ql);var Vl={},Kl={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dn;function n(r){return function(i){return t.get(i,r)}}e.property=n})(Kl);var Gl={},ci={},Xl={},fi={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(fi);var hi={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(hi);var pi={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(pi);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fi,n=hi,r=pi;function i(f,u,p){return typeof p!="function"?i(f,u,()=>{}):o(f,u,function h(d,m,y,g,k,x){const v=p(d,m,y,g,k,x);return v!==void 0?!!v:o(d,m,h,x)},new Map)}function o(f,u,p,h){if(u===f)return!0;switch(typeof u){case"object":return l(f,u,p,h);case"function":return Object.keys(u).length>0?o(f,{...u},p,h):r.isEqualsSameValueZero(f,u);default:return t.isObject(f)?typeof u=="string"?u==="":!0:r.isEqualsSameValueZero(f,u)}}function l(f,u,p,h){if(u==null)return!0;if(Array.isArray(u))return s(f,u,p,h);if(u instanceof Map)return a(f,u,p,h);if(u instanceof Set)return c(f,u,p,h);const d=Object.keys(u);if(f==null||n.isPrimitive(f))return d.length===0;if(d.length===0)return!0;if(h!=null&&h.has(u))return h.get(u)===f;h==null||h.set(u,f);try{for(let m=0;m<d.length;m++){const y=d[m];if(!n.isPrimitive(f)&&!(y in f)||u[y]===void 0&&f[y]!==void 0||u[y]===null&&f[y]!==null||!p(f[y],u[y],y,f,u,h))return!1}return!0}finally{h==null||h.delete(u)}}function a(f,u,p,h){if(u.size===0)return!0;if(!(f instanceof Map))return!1;for(const[d,m]of u.entries()){const y=f.get(d);if(p(y,m,d,f,u,h)===!1)return!1}return!0}function s(f,u,p,h){if(u.length===0)return!0;if(!Array.isArray(f))return!1;const d=new Set;for(let m=0;m<u.length;m++){const y=u[m];let g=!1;for(let k=0;k<f.length;k++){if(d.has(k))continue;const x=f[k];let v=!1;if(p(x,y,m,f,u,h)&&(v=!0),v){d.add(k),g=!0;break}}if(!g)return!1}return!0}function c(f,u,p,h){return u.size===0?!0:f instanceof Set?s([...f],[...u],p,h):!1}e.isMatchWith=i,e.isSetMatch=c})(Xl);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xl;function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(ci);var Yl={},di={},Ql={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(Ql);var zn={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(zn);var mi={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",l="[object Symbol]",a="[object Date]",s="[object Map]",c="[object Set]",f="[object Array]",u="[object Function]",p="[object ArrayBuffer]",h="[object Object]",d="[object Error]",m="[object DataView]",y="[object Uint8Array]",g="[object Uint8ClampedArray]",k="[object Uint16Array]",x="[object Uint32Array]",v="[object BigUint64Array]",A="[object Int8Array]",S="[object Int16Array]",M="[object Int32Array]",D="[object BigInt64Array]",R="[object Float32Array]",E="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=f,e.bigInt64ArrayTag=D,e.bigUint64ArrayTag=v,e.booleanTag=i,e.dataViewTag=m,e.dateTag=a,e.errorTag=d,e.float32ArrayTag=R,e.float64ArrayTag=E,e.functionTag=u,e.int16ArrayTag=S,e.int32ArrayTag=M,e.int8ArrayTag=A,e.mapTag=s,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=l,e.uint16ArrayTag=k,e.uint32ArrayTag=x,e.uint8ArrayTag=y,e.uint8ClampedArrayTag=g})(mi);var Jl={},Zl={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof dt=="object"&&dt||function(){return this}()||Function("return this")();e.globalThis=t})(Zl);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zl;function n(r){return typeof t.globalThis.Buffer<"u"&&t.globalThis.Buffer.isBuffer(r)}e.isBuffer=n})(Jl);var ea={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(ea);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ql,n=zn,r=mi,i=Jl,o=hi,l=ea;function a(u,p){return s(u,void 0,u,new Map,p)}function s(u,p,h,d=new Map,m=void 0){const y=m==null?void 0:m(u,p,h,d);if(y!==void 0)return y;if(o.isPrimitive(u))return u;if(d.has(u))return d.get(u);if(Array.isArray(u)){const g=new Array(u.length);d.set(u,g);for(let k=0;k<u.length;k++)g[k]=s(u[k],k,h,d,m);return Object.hasOwn(u,"index")&&(g.index=u.index),Object.hasOwn(u,"input")&&(g.input=u.input),g}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const g=new RegExp(u.source,u.flags);return g.lastIndex=u.lastIndex,g}if(u instanceof Map){const g=new Map;d.set(u,g);for(const[k,x]of u)g.set(k,s(x,k,h,d,m));return g}if(u instanceof Set){const g=new Set;d.set(u,g);for(const k of u)g.add(s(k,void 0,h,d,m));return g}if(i.isBuffer(u))return u.subarray();if(l.isTypedArray(u)){const g=new(Object.getPrototypeOf(u)).constructor(u.length);d.set(u,g);for(let k=0;k<u.length;k++)g[k]=s(u[k],k,h,d,m);return g}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const g=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return d.set(u,g),c(g,u,h,d,m),g}if(typeof File<"u"&&u instanceof File){const g=new File([u],u.name,{type:u.type});return d.set(u,g),c(g,u,h,d,m),g}if(typeof Blob<"u"&&u instanceof Blob){const g=new Blob([u],{type:u.type});return d.set(u,g),c(g,u,h,d,m),g}if(u instanceof Error){const g=structuredClone(u);return d.set(u,g),g.message=u.message,g.name=u.name,g.stack=u.stack,g.cause=u.cause,g.constructor=u.constructor,c(g,u,h,d,m),g}if(u instanceof Boolean){const g=new Boolean(u.valueOf());return d.set(u,g),c(g,u,h,d,m),g}if(u instanceof Number){const g=new Number(u.valueOf());return d.set(u,g),c(g,u,h,d,m),g}if(u instanceof String){const g=new String(u.valueOf());return d.set(u,g),c(g,u,h,d,m),g}if(typeof u=="object"&&f(u)){const g=Object.create(Object.getPrototypeOf(u));return d.set(u,g),c(g,u,h,d,m),g}return u}function c(u,p,h=u,d,m){const y=[...Object.keys(p),...t.getSymbols(p)];for(let g=0;g<y.length;g++){const k=y[g],x=Object.getOwnPropertyDescriptor(u,k);(x==null||x.writable)&&(u[k]=s(p[k],k,h,d,m))}}function f(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=c})(di);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=di;function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(Yl);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ci,n=Yl;function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(Gl);var ta={},na={},ra={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=di,n=zn,r=mi;function i(o,l){return t.cloneDeepWith(o,(a,s,c,f)=>{const u=l==null?void 0:l(a,s,c,f);if(u!==void 0)return u;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const p={};return f.set(o,p),t.copyProperties(p,o,c,f),p}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const p=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(p,o),p}case r.argumentsTag:{const p={};return t.copyProperties(p,o),p.length=o.length,p[Symbol.iterator]=o[Symbol.iterator],p}default:return}}})}e.cloneDeepWith=i})(ra);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ra;function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(na);var ia={},gi={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(gi);var oa={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zn;function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(oa);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ai,n=gi,r=oa,i=Rn;function o(l,a){let s;if(Array.isArray(a)?s=a:typeof a=="string"&&t.isDeepKey(a)&&(l==null?void 0:l[a])==null?s=i.toPath(a):s=[a],s.length===0)return!1;let c=l;for(let f=0;f<s.length;f++){const u=s[f];if((c==null||!Object.hasOwn(c,u))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(u)&&u<c.length))return!1;c=c[u]}return!0}e.has=o})(ia);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ci,n=Ln,r=na,i=Dn,o=ia;function l(a,s){switch(typeof a){case"object":{Object.is(a==null?void 0:a.valueOf(),-0)&&(a="-0");break}case"number":{a=n.toKey(a);break}}return s=r.cloneDeep(s),function(c){const f=i.get(c,a);return f===void 0?o.has(c,a):s===void 0?f===void 0:t.isMatch(f,s)}}e.matchesProperty=l})(ta);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=si,n=Kl,r=Gl,i=ta;function o(l){if(l==null)return t.identity;switch(typeof l){case"function":return l;case"object":return Array.isArray(l)&&l.length===2?i.matchesProperty(l[0],l[1]):r.matches(l);case"string":case"symbol":case"number":return n.property(l)}}e.iteratee=o})(Vl);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bl,n=Ul,r=si,i=ql,o=Vl;function l(a,s=r.identity){return i.isArrayLikeObject(a)?t.uniqBy(Array.from(a),n.ary(o.iteratee(s),1)):[]}e.uniqBy=l})($l);var Zu=$l.uniqBy;const T1=Ne(Zu);var la={exports:{}},aa={},sa={exports:{}},ua={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* use-sync-external-store-shim.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var mt=ye;function ec(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tc=typeof Object.is=="function"?Object.is:ec,nc=mt.useState,rc=mt.useEffect,ic=mt.useLayoutEffect,oc=mt.useDebugValue;function lc(e,t){var n=t(),r=nc({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return ic(function(){i.value=n,i.getSnapshot=t,lr(i)&&o({inst:i})},[e,n,t]),rc(function(){return lr(i)&&o({inst:i}),e(function(){lr(i)&&o({inst:i})})},[e]),oc(n),n}function lr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tc(e,n)}catch{return!0}}function ac(e,t){return t()}var sc=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ac:lc;ua.useSyncExternalStore=mt.useSyncExternalStore!==void 0?mt.useSyncExternalStore:sc;sa.exports=ua;var uc=sa.exports;/**
|
|
19
|
+
* @license React
|
|
20
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Fn=ye,cc=uc;function fc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hc=typeof Object.is=="function"?Object.is:fc,pc=cc.useSyncExternalStore,dc=Fn.useRef,mc=Fn.useEffect,gc=Fn.useMemo,yc=Fn.useDebugValue;aa.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=dc(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=gc(function(){function s(h){if(!c){if(c=!0,f=h,h=r(h),i!==void 0&&l.hasValue){var d=l.value;if(i(d,h))return u=d}return u=h}if(d=u,hc(f,h))return d;var m=r(h);return i!==void 0&&i(d,m)?(f=h,d):(f=h,u=m)}var c=!1,f,u,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var a=pc(e,o[0],o[1]);return mc(function(){l.hasValue=!0,l.value=a},[a]),yc(a),a};la.exports=aa;var M1=la.exports;function bc(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function wc(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function kc(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var no=e=>Array.isArray(e)?e:[e];function xc(e){const t=Array.isArray(e[0])?e[0]:e;return kc(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Sc(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Ec=class{constructor(e){this.value=e}deref(){return this.value}},vc=typeof WeakRef<"u"?WeakRef:Ec,_c=0,ro=1;function Zt(){return{s:_c,v:void 0,o:null,p:null}}function ca(e,t={}){let n=Zt();const{resultEqualityCheck:r}=t;let i,o=0;function l(){var u;let a=n;const{length:s}=arguments;for(let p=0,h=s;p<h;p++){const d=arguments[p];if(typeof d=="function"||typeof d=="object"&&d!==null){let m=a.o;m===null&&(a.o=m=new WeakMap);const y=m.get(d);y===void 0?(a=Zt(),m.set(d,a)):a=y}else{let m=a.p;m===null&&(a.p=m=new Map);const y=m.get(d);y===void 0?(a=Zt(),m.set(d,a)):a=y}}const c=a;let f;if(a.s===ro)f=a.v;else if(f=e.apply(null,arguments),o++,r){const p=((u=i==null?void 0:i.deref)==null?void 0:u.call(i))??i;p!=null&&r(p,f)&&(f=p,o!==0&&o--),i=typeof f=="object"&&f!==null||typeof f=="function"?new vc(f):f}return c.s=ro,c.v=f,f}return l.clearCache=()=>{n=Zt(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function Ac(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,l=0,a,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),bc(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...s},{memoize:u,memoizeOptions:p=[],argsMemoize:h=ca,argsMemoizeOptions:d=[]}=f,m=no(p),y=no(d),g=xc(i),k=u(function(){return o++,c.apply(null,arguments)},...m),x=h(function(){l++;const A=Sc(g,arguments);return a=k.apply(null,A),a},...y);return Object.assign(x,{resultFunc:c,memoizedResultFunc:k,dependencies:g,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Pc=Ac(ca),Cc=Object.assign((e,t=Pc)=>{wc(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((l,a,s)=>(l[n[s]]=a,l),{}))},{withTypes:()=>Cc}),fa={},ha={},pa={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const l=t(r),a=t(i);if(l===a&&l===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?a-l:l-a}return 0};e.compareValues=n})(pa);var da={},yi={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(yi);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yi,n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,l){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||l!=null&&Object.hasOwn(l,o)}e.isKey=i})(da);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pa,n=da,r=Rn;function i(o,l,a,s){if(o==null)return[];a=s?void 0:a,Array.isArray(o)||(o=Object.values(o)),Array.isArray(l)||(l=l==null?[null]:[l]),l.length===0&&(l=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(h=>String(h));const c=(h,d)=>{let m=h;for(let y=0;y<d.length&&m!=null;++y)m=m[d[y]];return m},f=(h,d)=>d==null||h==null?d:typeof h=="object"&&"key"in h?Object.hasOwn(d,h.key)?d[h.key]:c(d,h.path):typeof h=="function"?h(d):Array.isArray(h)?c(d,h):typeof d=="object"?d[h]:d,u=l.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||n.isKey(h)?h:{key:h,path:r.toPath(h)}));return o.map(h=>({original:h,criteria:u.map(d=>f(d,h))})).slice().sort((h,d)=>{for(let m=0;m<u.length;m++){const y=t.compareValues(h.criteria[m],d.criteria[m],a[m]);if(y!==0)return y}return 0}).map(h=>h.original)}e.orderBy=i})(ha);var ma={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),l=(a,s)=>{for(let c=0;c<a.length;c++){const f=a[c];Array.isArray(f)&&s<o?l(f,s+1):i.push(f)}};return l(n,0),i}e.flatten=t})(ma);var bi={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gi,n=ui,r=fi,i=pi;function o(l,a,s){return r.isObject(s)&&(typeof a=="number"&&n.isArrayLike(s)&&t.isIndex(a)&&a<s.length||typeof a=="string"&&a in s)?i.isEqualsSameValueZero(s[a],l):!1}e.isIterateeCall=o})(bi);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ha,n=ma,r=bi;function i(o,...l){const a=l.length;return a>1&&r.isIterateeCall(o,l[0],l[1])?l=[]:a>2&&r.isIterateeCall(l[0],l[1],l[2])&&(l=[l[0]]),t.orderBy(o,n.flatten(l),["asc"])}e.sortBy=i})(fa);var Ic=fa.sortBy;const D1=Ne(Ic);function te(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Oc=typeof Symbol=="function"&&Symbol.observable||"@@observable",io=Oc,ar=()=>Math.random().toString(36).substring(7).split("").join("."),Tc={INIT:`@@redux/INIT${ar()}`,REPLACE:`@@redux/REPLACE${ar()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ar()}`},dn=Tc;function wi(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ga(e,t,n){if(typeof e!="function")throw new Error(te(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(te(1));return n(ga)(e,t)}let r=e,i=t,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((y,g)=>{l.set(g,y)}))}function f(){if(s)throw new Error(te(3));return i}function u(y){if(typeof y!="function")throw new Error(te(4));if(s)throw new Error(te(5));let g=!0;c();const k=a++;return l.set(k,y),function(){if(g){if(s)throw new Error(te(6));g=!1,c(),l.delete(k),o=null}}}function p(y){if(!wi(y))throw new Error(te(7));if(typeof y.type>"u")throw new Error(te(8));if(typeof y.type!="string")throw new Error(te(17));if(s)throw new Error(te(9));try{s=!0,i=r(i,y)}finally{s=!1}return(o=l).forEach(k=>{k()}),y}function h(y){if(typeof y!="function")throw new Error(te(10));r=y,p({type:dn.REPLACE})}function d(){const y=u;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(te(11));function k(){const v=g;v.next&&v.next(f())}return k(),{unsubscribe:y(k)}},[io](){return this}}}return p({type:dn.INIT}),{dispatch:p,subscribe:u,getState:f,replaceReducer:h,[io]:d}}function Mc(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:dn.INIT})>"u")throw new Error(te(12));if(typeof n(void 0,{type:dn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Dc(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const l=t[o];typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;try{Mc(n)}catch(o){i=o}return function(l={},a){if(i)throw i;let s=!1;const c={};for(let f=0;f<r.length;f++){const u=r[f],p=n[u],h=l[u],d=p(h,a);if(typeof d>"u")throw a&&a.type,new Error(te(14));c[u]=d,s=s||d!==h}return s=s||r.length!==Object.keys(l).length,s?c:l}}function mn(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Lc(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(te(15))};const l={getState:i.getState,dispatch:(s,...c)=>o(s,...c)},a=e.map(s=>s(l));return o=mn(...a)(i.dispatch),{...i,dispatch:o}}}function ya(e){return wi(e)&&"type"in e&&typeof e.type=="string"}var ba=Symbol.for("immer-nothing"),oo=Symbol.for("immer-draftable"),le=Symbol.for("immer-state");function Ee(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var he=Object,gt=he.getPrototypeOf,gn="constructor",Nn="prototype",Tr="configurable",yn="enumerable",cn="writable",Lt="value",Fe=e=>!!e&&!!e[le];function Ae(e){var t;return e?wa(e)||$n(e)||!!e[oo]||!!((t=e[gn])!=null&&t[oo])||Bn(e)||Un(e):!1}var Rc=he[Nn][gn].toString(),lo=new WeakMap;function wa(e){if(!e||!ki(e))return!1;const t=gt(e);if(t===null||t===he[Nn])return!0;const n=he.hasOwnProperty.call(t,gn)&&t[gn];if(n===Object)return!0;if(!st(n))return!1;let r=lo.get(n);return r===void 0&&(r=Function.toString.call(n),lo.set(n,r)),r===Rc}function jn(e,t,n=!0){Vt(e)===0?(n?Reflect.ownKeys(e):he.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Vt(e){const t=e[le];return t?t.type_:$n(e)?1:Bn(e)?2:Un(e)?3:0}var ao=(e,t,n=Vt(e))=>n===2?e.has(t):he[Nn].hasOwnProperty.call(e,t),Mr=(e,t,n=Vt(e))=>n===2?e.get(t):e[t],bn=(e,t,n,r=Vt(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function zc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var $n=Array.isArray,Bn=e=>e instanceof Map,Un=e=>e instanceof Set,ki=e=>typeof e=="object",st=e=>typeof e=="function",sr=e=>typeof e=="boolean";function Fc(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Re=e=>e.copy_||e.base_,xi=e=>e.modified_?e.copy_:e.base_;function Dr(e,t){if(Bn(e))return new Map(e);if(Un(e))return new Set(e);if($n(e))return Array[Nn].slice.call(e);const n=wa(e);if(t===!0||t==="class_only"&&!n){const r=he.getOwnPropertyDescriptors(e);delete r[le];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const l=i[o],a=r[l];a[cn]===!1&&(a[cn]=!0,a[Tr]=!0),(a.get||a.set)&&(r[l]={[Tr]:!0,[cn]:!0,[yn]:a[yn],[Lt]:e[l]})}return he.create(gt(e),r)}else{const r=gt(e);if(r!==null&&n)return{...e};const i=he.create(r);return he.assign(i,e)}}function Si(e,t=!1){return qn(e)||Fe(e)||!Ae(e)||(Vt(e)>1&&he.defineProperties(e,{set:en,add:en,clear:en,delete:en}),he.freeze(e),t&&jn(e,(n,r)=>{Si(r,!0)},!1)),e}function Nc(){Ee(2)}var en={[Lt]:Nc};function qn(e){return e===null||!ki(e)?!0:he.isFrozen(e)}var wn="MapSet",Lr="Patches",so="ArrayMethods",ka={};function Je(e){const t=ka[e];return t||Ee(0,e),t}var uo=e=>!!ka[e],Rt,xa=()=>Rt,jc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:uo(wn)?Je(wn):void 0,arrayMethodsPlugin_:uo(so)?Je(so):void 0});function co(e,t){t&&(e.patchPlugin_=Je(Lr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rr(e){zr(e),e.drafts_.forEach($c),e.drafts_=null}function zr(e){e===Rt&&(Rt=e.parent_)}var fo=e=>Rt=jc(Rt,e);function $c(e){const t=e[le];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ho(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[le].modified_&&(Rr(t),Ee(4)),Ae(e)&&(e=po(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[le].base_,e,t)}else e=po(t,n);return Bc(t,e,!0),Rr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ba?e:void 0}function po(e,t){if(qn(t))return t;const n=t[le];if(!n)return kn(t,e.handledSet_,e);if(!Hn(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);va(n,e)}return n.copy_}function Bc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Si(t,n)}function Sa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Hn=(e,t)=>e.scope_===t,Uc=[];function Ea(e,t,n,r){const i=Re(e),o=e.type_;if(r!==void 0&&Mr(i,r,o)===t){bn(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;jn(i,(s,c)=>{if(Fe(c)){const f=a.get(c)||[];f.push(s),a.set(c,f)}})}const l=e.draftLocations_.get(t)??Uc;for(const a of l)bn(i,a,n,o)}function qc(e,t,n){e.callbacks_.push(function(i){var a;const o=t;if(!o||!Hn(o,i))return;(a=i.mapSetPlugin_)==null||a.fixSetContents(o);const l=xi(o);Ea(e,o.draft_??o,l,n),va(o,i)})}function va(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}Sa(e)}}function Hc(e,t,n){const{scope_:r}=e;if(Fe(n)){const i=n[le];Hn(i,r)&&i.callbacks_.push(function(){fn(e);const l=xi(i);Ea(e,n,l,t)})}else Ae(n)&&e.callbacks_.push(function(){const o=Re(e);e.type_===3?o.has(n)&&kn(n,r.handledSet_,r):Mr(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&kn(Mr(e.copy_,t,e.type_),r.handledSet_,r)})}function kn(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Fe(e)||t.has(e)||!Ae(e)||qn(e)||(t.add(e),jn(e,(r,i)=>{if(Fe(i)){const o=i[le];if(Hn(o,n)){const l=xi(o);bn(e,r,l,e.type_),Sa(o)}}else Ae(i)&&kn(i,t,n)})),e}function Wc(e,t){const n=$n(e),r={type_:n?1:0,scope_:t?t.scope_:xa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=xn;n&&(i=[r],o=zt);const{revoke:l,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=l,[a,r]}var xn={get(e,t){if(t===le)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Re(e);if(!ao(i,t,e.type_))return Vc(e,i,t);const o=i[t];if(e.finalized_||!Ae(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&Fc(t))return o;if(o===ur(e.base_,t)){fn(e);const l=e.type_===1?+t:t,a=Nr(e.scope_,o,e,l);return e.copy_[l]=a}return o},has(e,t){return t in Re(e)},ownKeys(e){return Reflect.ownKeys(Re(e))},set(e,t,n){const r=_a(Re(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ur(Re(e),t),o=i==null?void 0:i[le];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(zc(n,i)&&(n!==void 0||ao(e.base_,t,e.type_)))return!0;fn(e),Fr(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Hc(e,t,n)),!0},deleteProperty(e,t){return fn(e),ur(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Fr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Re(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[cn]:!0,[Tr]:e.type_!==1||t!=="length",[yn]:r[yn],[Lt]:n[t]}},defineProperty(){Ee(11)},getPrototypeOf(e){return gt(e.base_)},setPrototypeOf(){Ee(12)}},zt={};for(let e in xn){let t=xn[e];zt[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}zt.deleteProperty=function(e,t){return zt.set.call(this,e,t,void 0)};zt.set=function(e,t,n){return xn.set.call(this,e[0],t,n,e[0])};function ur(e,t){const n=e[le];return(n?Re(n):e)[t]}function Vc(e,t,n){var i;const r=_a(t,n);return r?Lt in r?r[Lt]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function _a(e,t){if(!(t in e))return;let n=gt(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=gt(n)}}function Fr(e){e.modified_||(e.modified_=!0,e.parent_&&Fr(e.parent_))}function fn(e){e.copy_||(e.assigned_=new Map,e.copy_=Dr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Kc=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(st(n)&&!st(r)){const l=r;r=n;const a=this;return function(c=l,...f){return a.produce(c,u=>r.call(this,u,...f))}}st(r)||Ee(6),i!==void 0&&!st(i)&&Ee(7);let o;if(Ae(n)){const l=fo(this),a=Nr(l,n,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Rr(l):zr(l)}return co(l,i),ho(o,l)}else if(!n||!ki(n)){if(o=r(n),o===void 0&&(o=n),o===ba&&(o=void 0),this.autoFreeze_&&Si(o,!0),i){const l=[],a=[];Je(Lr).generateReplacementPatches_(n,o,{patches_:l,inversePatches_:a}),i(l,a)}return o}else Ee(1,n)},this.produceWithPatches=(n,r)=>{if(st(n))return(a,...s)=>this.produceWithPatches(a,c=>n(c,...s));let i,o;return[this.produce(n,r,(a,s)=>{i=a,o=s}),i,o]},sr(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),sr(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),sr(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ae(t)||Ee(8),Fe(t)&&(t=Gc(t));const n=fo(this),r=Nr(n,t,void 0);return r[le].isManual_=!0,zr(n),r}finishDraft(t,n){const r=t&&t[le];(!r||!r.isManual_)&&Ee(9);const{scope_:i}=r;return co(i,n),ho(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const i=Je(Lr).applyPatches_;return Fe(t)?i(t,n):this.produce(t,o=>i(o,n))}};function Nr(e,t,n,r){const[i,o]=Bn(t)?Je(wn).proxyMap_(t,n):Un(t)?Je(wn).proxySet_(t,n):Wc(t,n);return((n==null?void 0:n.scope_)??xa()).drafts_.push(i),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?qc(n,o,r):o.callbacks_.push(function(s){var f;(f=s.mapSetPlugin_)==null||f.fixSetContents(o);const{patchPlugin_:c}=s;o.modified_&&c&&c.generatePatches_(o,[],s)}),i}function Gc(e){return Fe(e)||Ee(10,e),Aa(e)}function Aa(e){if(!Ae(e)||qn(e))return e;const t=e[le];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Dr(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Dr(e,!0);return jn(n,(i,o)=>{bn(n,i,Aa(o))},r),t&&(t.finalized_=!1),n}var Xc=new Kc,Pa=Xc.produce;function Ca(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Yc=Ca(),Qc=Ca,Jc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mn:mn.apply(null,arguments)};function yt(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(pe(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>ya(r)&&r.type===e,n}var Ia=class It extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,It.prototype)}static get[Symbol.species](){return It}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new It(...t[0].concat(this)):new It(...t.concat(this))}};function mo(e){return Ae(e)?Pa(e,()=>{}):e}function tn(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Zc(e){return typeof e=="boolean"}var ef=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let l=new Ia;return n&&(Zc(n)?l.push(Yc):l.push(Qc(n.extraArgument))),l},Oa="RTK_autoBatch",R1=()=>e=>({payload:e,meta:{[Oa]:!0}}),go=e=>t=>{setTimeout(t,e)},tf=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,l=!1;const a=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:go(10):e.type==="callback"?e.queueNotification:go(e.timeout),c=()=>{l=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const u=()=>i&&f(),p=r.subscribe(u);return a.add(f),()=>{p(),a.delete(f)}},dispatch(f){var u;try{return i=!((u=f==null?void 0:f.meta)!=null&&u[Oa]),o=!i,o&&(l||(l=!0,s(c))),r.dispatch(f)}finally{i=!0}}})},nf=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Ia(e);return r&&i.push(tf(typeof r=="object"?r:void 0)),i};function z1(e){const t=ef(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(wi(n))a=Dc(n);else throw new Error(pe(1));let s;typeof r=="function"?s=r(t):s=t();let c=mn;i&&(c=Jc({trace:!1,...typeof i=="object"&&i}));const f=Lc(...s),u=nf(f);let p=typeof l=="function"?l(u):u();const h=c(...p);return ga(a,o,h)}function Ta(e){const t={},n=[];let r;const i={addCase(o,l){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(pe(28));if(a in t)throw new Error(pe(29));return t[a]=l,i},addAsyncThunk(o,l){return l.pending&&(t[o.pending.type]=l.pending),l.rejected&&(t[o.rejected.type]=l.rejected),l.fulfilled&&(t[o.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:o.settled,reducer:l.settled}),i},addMatcher(o,l){return n.push({matcher:o,reducer:l}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function rf(e){return typeof e=="function"}function of(e,t){let[n,r,i]=Ta(t),o;if(rf(e))o=()=>mo(e());else{const a=mo(e);o=()=>a}function l(a=o(),s){let c=[n[s.type],...r.filter(({matcher:f})=>f(s)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,u)=>{if(u)if(Fe(f)){const h=u(f,s);return h===void 0?f:h}else{if(Ae(f))return Pa(f,p=>u(p,s));{const p=u(f,s);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},a)}return l.getInitialState=o,l}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=(e=21)=>{let t="",n=e;for(;n--;)t+=lf[Math.random()*64|0];return t},sf=Symbol.for("rtk-slice-createasyncthunk");function uf(e,t){return`${e}/${t}`}function cf({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[sf];return function(i){const{name:o,reducerPath:l=o}=i;if(!o)throw new Error(pe(11));const a=(typeof i.reducers=="function"?i.reducers(hf()):i.reducers)||{},s=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(v,A){const S=typeof v=="string"?v:v.type;if(!S)throw new Error(pe(12));if(S in c.sliceCaseReducersByType)throw new Error(pe(13));return c.sliceCaseReducersByType[S]=A,f},addMatcher(v,A){return c.sliceMatchers.push({matcher:v,reducer:A}),f},exposeAction(v,A){return c.actionCreators[v]=A,f},exposeCaseReducer(v,A){return c.sliceCaseReducersByName[v]=A,f}};s.forEach(v=>{const A=a[v],S={reducerName:v,type:uf(o,v),createNotation:typeof i.reducers=="function"};df(A)?gf(S,A,f,t):pf(S,A,f)});function u(){const[v={},A=[],S=void 0]=typeof i.extraReducers=="function"?Ta(i.extraReducers):[i.extraReducers],M={...v,...c.sliceCaseReducersByType};return of(i.initialState,D=>{for(let R in M)D.addCase(R,M[R]);for(let R of c.sliceMatchers)D.addMatcher(R.matcher,R.reducer);for(let R of A)D.addMatcher(R.matcher,R.reducer);S&&D.addDefaultCase(S)})}const p=v=>v,h=new Map,d=new WeakMap;let m;function y(v,A){return m||(m=u()),m(v,A)}function g(){return m||(m=u()),m.getInitialState()}function k(v,A=!1){function S(D){let R=D[v];return typeof R>"u"&&A&&(R=tn(d,S,g)),R}function M(D=p){const R=tn(h,A,()=>new WeakMap);return tn(R,D,()=>{const E={};for(const[O,C]of Object.entries(i.selectors??{}))E[O]=ff(C,D,()=>tn(d,D,g),A);return E})}return{reducerPath:v,getSelectors:M,get selectors(){return M(S)},selectSlice:S}}const x={name:o,reducer:y,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:g,...k(l),injectInto(v,{reducerPath:A,...S}={}){const M=A??l;return v.inject({reducerPath:M,reducer:y},S),{...x,...k(M,!0)}}};return x}}function ff(e,t,n,r){function i(o,...l){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...l)}return i.unwrapped=e,i}var F1=cf();function hf(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function pf({type:e,reducerName:t,createNotation:n},r,i){let o,l;if("reducer"in r){if(n&&!mf(r))throw new Error(pe(17));o=r.reducer,l=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?yt(e,l):yt(e))}function df(e){return e._reducerDefinitionType==="asyncThunk"}function mf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gf({type:e,reducerName:t},n,r,i){if(!i)throw new Error(pe(18));const{payloadCreator:o,fulfilled:l,pending:a,rejected:s,settled:c,options:f}=n,u=i(e,o,f);r.exposeAction(t,u),l&&r.addCase(u.fulfilled,l),a&&r.addCase(u.pending,a),s&&r.addCase(u.rejected,s),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(t,{fulfilled:l||nn,pending:a||nn,rejected:s||nn,settled:c||nn})}function nn(){}var yf="task",Ma="listener",Da="completed",Ei="cancelled",bf=`task-${Ei}`,wf=`task-${Da}`,jr=`${Ma}-${Ei}`,kf=`${Ma}-${Da}`,Wn=class{constructor(e){rr(this,"name","TaskAbortError");rr(this,"message");this.code=e,this.message=`${yf} ${Ei} (reason: ${e})`}},vi=(e,t)=>{if(typeof e!="function")throw new TypeError(pe(32))},Sn=()=>{},La=(e,t=Sn)=>(e.catch(t),e),Ra=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ye=e=>{if(e.aborted)throw new Wn(e.reason)};function za(e,t){let n=Sn;return new Promise((r,i)=>{const o=()=>i(new Wn(e.reason));if(e.aborted){o();return}n=Ra(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Sn})}var xf=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Wn?"cancelled":"rejected",error:n}}finally{t==null||t()}},En=e=>t=>La(za(e,t).then(n=>(Ye(e),n))),Fa=e=>{const t=En(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:ht}=Object,yo={},Vn="listenerMiddleware",Sf=(e,t)=>{const n=r=>Ra(e,()=>r.abort(e.reason));return(r,i)=>{vi(r);const o=new AbortController;n(o);const l=xf(async()=>{Ye(e),Ye(o.signal);const a=await r({pause:En(o.signal),delay:Fa(o.signal),signal:o.signal});return Ye(o.signal),a},()=>o.abort(wf));return i!=null&&i.autoJoin&&t.push(l.catch(Sn)),{result:En(e)(l),cancel(){o.abort(bf)}}}},Ef=(e,t)=>{const n=async(r,i)=>{Ye(t);let o=()=>{};const a=[new Promise((s,c)=>{let f=e({predicate:r,effect:(u,p)=>{p.unsubscribe(),s([u,p.getState(),p.getOriginalState()])}});o=()=>{f(),c()}})];i!=null&&a.push(new Promise(s=>setTimeout(s,i,null)));try{const s=await za(t,Promise.race(a));return Ye(t),s}finally{o()}};return(r,i)=>La(n(r,i))},Na=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=yt(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(pe(21));return vi(o),{predicate:i,type:t,effect:o}},ja=ht(e=>{const{type:t,predicate:n,effect:r}=Na(e);return{id:af(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(pe(22))}}},{withTypes:()=>ja}),bo=(e,t)=>{const{type:n,effect:r,predicate:i}=Na(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},$r=e=>{e.pending.forEach(t=>{t.abort(jr)})},vf=(e,t)=>()=>{for(const n of t.keys())$r(n);e.clear()},wo=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},$a=ht(yt(`${Vn}/add`),{withTypes:()=>$a}),_f=yt(`${Vn}/removeAll`),Ba=ht(yt(`${Vn}/remove`),{withTypes:()=>Ba}),Af=(...e)=>{console.error(`${Vn}/error`,...e)},N1=(e={})=>{const t=new Map,n=new Map,r=h=>{const d=n.get(h)??0;n.set(h,d+1)},i=h=>{const d=n.get(h)??1;d===1?n.delete(h):n.set(h,d-1)},{extra:o,onError:l=Af}=e;vi(l);const a=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),d=>{h.unsubscribe(),d!=null&&d.cancelActive&&$r(h)}),s=h=>{const d=bo(t,h)??ja(h);return a(d)};ht(s,{withTypes:()=>s});const c=h=>{const d=bo(t,h);return d&&(d.unsubscribe(),h.cancelActive&&$r(d)),!!d};ht(c,{withTypes:()=>c});const f=async(h,d,m,y)=>{const g=new AbortController,k=Ef(s,g.signal),x=[];try{h.pending.add(g),r(h),await Promise.resolve(h.effect(d,ht({},m,{getOriginalState:y,condition:(v,A)=>k(v,A).then(Boolean),take:k,delay:Fa(g.signal),pause:En(g.signal),extra:o,signal:g.signal,fork:Sf(g.signal,x),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((v,A,S)=>{v!==g&&(v.abort(jr),S.delete(v))})},cancel:()=>{g.abort(jr),h.pending.delete(g)},throwIfCancelled:()=>{Ye(g.signal)}})))}catch(v){v instanceof Wn||wo(l,v,{raisedBy:"effect"})}finally{await Promise.all(x),g.abort(kf),i(h),h.pending.delete(g)}},u=vf(t,n);return{middleware:h=>d=>m=>{if(!ya(m))return d(m);if($a.match(m))return s(m.payload);if(_f.match(m)){u();return}if(Ba.match(m))return c(m.payload);let y=h.getState();const g=()=>{if(y===yo)throw new Error(pe(23));return y};let k;try{if(k=d(m),t.size>0){const x=h.getState(),v=Array.from(t.values());for(const A of v){let S=!1;try{S=A.predicate(m,x,y)}catch(M){S=!1,wo(l,M,{raisedBy:"predicate"})}S&&f(A,m,h,g)}}}finally{y=yo}return k},startListening:s,stopListening:c,clearListeners:u}};function pe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ua={},qa={},Ha={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let l,a=null;const s=o!=null&&o.includes("leading"),c=o==null||o.includes("trailing"),f=()=>{a!==null&&(n.apply(l,a),l=void 0,a=null)},u=()=>{c&&f(),m()};let p=null;const h=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,u()},r)},d=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{d(),l=void 0,a=null},y=()=>{f()},g=function(...k){if(i!=null&&i.aborted)return;l=this,a=k;const x=p==null;h(),s&&x&&f()};return g.schedule=h,g.cancel=m,g.flush=y,i==null||i.addEventListener("abort",m,{once:!0}),g}e.debounce=t})(Ha);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ha;function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:l=!1,trailing:a=!0,maxWait:s}=o,c=Array(2);l&&(c[0]="leading"),a&&(c[1]="trailing");let f,u=null;const p=t.debounce(function(...m){f=r.apply(this,m),u=null},i,{edges:c}),h=function(...m){return s!=null&&(u===null&&(u=Date.now()),Date.now()-u>=s)?(f=r.apply(this,m),u=Date.now(),p.cancel(),p.schedule(),f):(p.apply(this,m),f)},d=()=>(p.flush(),f);return h.cancel=p.cancel,h.flush=d,h}e.debounce=n})(qa);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qa;function n(r,i=0,o={}){const{leading:l=!0,trailing:a=!0}=o;return t.debounce(r,i,{leading:l,maxWait:i,trailing:a})}e.throttle=n})(Ua);var Pf=Ua.throttle;const j1=Ne(Pf);var Wa=Symbol.for("immer-nothing"),ko=Symbol.for("immer-draftable"),me=Symbol.for("immer-state");function ve(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ft=Object.getPrototypeOf;function bt(e){return!!e&&!!e[me]}function Ze(e){var t;return e?Va(e)||Array.isArray(e)||!!e[ko]||!!((t=e.constructor)!=null&&t[ko])||Kt(e)||Gn(e):!1}var Cf=Object.prototype.constructor.toString(),xo=new WeakMap;function Va(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=xo.get(n);return r===void 0&&(r=Function.toString.call(n),xo.set(n,r)),r===Cf}function vn(e,t,n=!0){Kn(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Kn(e){const t=e[me];return t?t.type_:Array.isArray(e)?1:Kt(e)?2:Gn(e)?3:0}function Br(e,t){return Kn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ka(e,t,n){const r=Kn(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function If(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Kt(e){return e instanceof Map}function Gn(e){return e instanceof Set}function Ke(e){return e.copy_||e.base_}function Ur(e,t){if(Kt(e))return new Map(e);if(Gn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Va(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[me];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const l=i[o],a=r[l];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[l]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[l]})}return Object.create(Ft(e),r)}else{const r=Ft(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function _i(e,t=!1){return Xn(e)||bt(e)||!Ze(e)||(Kn(e)>1&&Object.defineProperties(e,{set:rn,add:rn,clear:rn,delete:rn}),Object.freeze(e),t&&Object.values(e).forEach(n=>_i(n,!0))),e}function Of(){ve(2)}var rn={value:Of};function Xn(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Tf={};function et(e){const t=Tf[e];return t||ve(0,e),t}var Nt;function Ga(){return Nt}function Mf(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function So(e,t){t&&(et("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function qr(e){Hr(e),e.drafts_.forEach(Df),e.drafts_=null}function Hr(e){e===Nt&&(Nt=e.parent_)}function Eo(e){return Nt=Mf(Nt,e)}function Df(e){const t=e[me];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function vo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[me].modified_&&(qr(t),ve(4)),Ze(e)&&(e=_n(t,e),t.parent_||An(t,e)),t.patches_&&et("Patches").generateReplacementPatches_(n[me].base_,e,t.patches_,t.inversePatches_)):e=_n(t,n,[]),qr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Wa?e:void 0}function _n(e,t,n){if(Xn(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[me];if(!i)return vn(t,(o,l)=>_o(e,i,t,o,l,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return An(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let l=o,a=!1;i.type_===3&&(l=new Set(o),o.clear(),a=!0),vn(l,(s,c)=>_o(e,i,o,s,c,n,a),r),An(e,o,!1),n&&e.patches_&&et("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function _o(e,t,n,r,i,o,l){if(i==null||typeof i!="object"&&!l)return;const a=Xn(i);if(!(a&&!l)){if(bt(i)){const s=o&&t&&t.type_!==3&&!Br(t.assigned_,r)?o.concat(r):void 0,c=_n(e,i,s);if(Ka(n,r,c),bt(c))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(Ze(i)&&!a){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&a)return;_n(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Kt(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&An(e,i)}}}function An(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_i(t,n)}function Lf(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Ga(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Ai;n&&(i=[r],o=jt);const{revoke:l,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=l,a}var Ai={get(e,t){if(t===me)return e;const n=Ke(e);if(!Br(n,t))return Rf(e,n,t);const r=n[t];return e.finalized_||!Ze(r)?r:r===cr(e.base_,t)?(fr(e),e.copy_[t]=Vr(r,e)):r},has(e,t){return t in Ke(e)},ownKeys(e){return Reflect.ownKeys(Ke(e))},set(e,t,n){const r=Xa(Ke(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=cr(Ke(e),t),o=i==null?void 0:i[me];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(If(n,i)&&(n!==void 0||Br(e.base_,t)))return!0;fr(e),Wr(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return cr(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,fr(e),Wr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ke(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ve(11)},getPrototypeOf(e){return Ft(e.base_)},setPrototypeOf(){ve(12)}},jt={};vn(Ai,(e,t)=>{jt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});jt.deleteProperty=function(e,t){return jt.set.call(this,e,t,void 0)};jt.set=function(e,t,n){return Ai.set.call(this,e[0],t,n,e[0])};function cr(e,t){const n=e[me];return(n?Ke(n):e)[t]}function Rf(e,t,n){var i;const r=Xa(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Xa(e,t){if(!(t in e))return;let n=Ft(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ft(n)}}function Wr(e){e.modified_||(e.modified_=!0,e.parent_&&Wr(e.parent_))}function fr(e){e.copy_||(e.copy_=Ur(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var zf=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const l=this;return function(s=o,...c){return l.produce(s,f=>n.call(this,f,...c))}}typeof n!="function"&&ve(6),r!==void 0&&typeof r!="function"&&ve(7);let i;if(Ze(t)){const o=Eo(this),l=Vr(t,void 0);let a=!0;try{i=n(l),a=!1}finally{a?qr(o):Hr(o)}return So(o,r),vo(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Wa&&(i=void 0),this.autoFreeze_&&_i(i,!0),r){const o=[],l=[];et("Patches").generateReplacementPatches_(t,i,o,l),r(o,l)}return i}else ve(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,s=>t(s,...a));let r,i;return[this.produce(t,n,(l,a)=>{r=l,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ze(e)||ve(8),bt(e)&&(e=Ff(e));const t=Eo(this),n=Vr(e,void 0);return n[me].isManual_=!0,Hr(t),n}finishDraft(e,t){const n=e&&e[me];(!n||!n.isManual_)&&ve(9);const{scope_:r}=n;return So(r,t),vo(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=et("Patches").applyPatches_;return bt(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Vr(e,t){const n=Kt(e)?et("MapSet").proxyMap_(e,t):Gn(e)?et("MapSet").proxySet_(e,t):Lf(e,t);return(t?t.scope_:Ga()).drafts_.push(n),n}function Ff(e){return bt(e)||ve(10,e),Ya(e)}function Ya(e){if(!Ze(e)||Xn(e))return e;const t=e[me];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ur(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ur(e,!0);return vn(n,(i,o)=>{Ka(n,i,Ya(o))},r),t&&(t.finalized_=!1),n}var Nf=new zf;Nf.produce;function $1(e){return e}var jf={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* use-sync-external-store-with-selector.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Gt=ye;function $f(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bf=typeof Object.is=="function"?Object.is:$f,Uf=Gt.useSyncExternalStore,qf=Gt.useRef,Hf=Gt.useEffect,Wf=Gt.useMemo,Vf=Gt.useDebugValue;jf.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=qf(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=Wf(function(){function s(h){if(!c){if(c=!0,f=h,h=r(h),i!==void 0&&l.hasValue){var d=l.value;if(i(d,h))return u=d}return u=h}if(d=u,Bf(f,h))return d;var m=r(h);return i!==void 0&&i(d,m)?(f=h,d):(f=h,u=m)}var c=!1,f,u,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var a=Uf(e,o[0],o[1]);return Hf(function(){l.hasValue=!0,l.value=a},[a]),Vf(a),a};function Kf(e){e()}function Gf(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Kf(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Ao={notify(){},get:()=>[]};function Xf(e,t){let n,r=Ao,i=0,o=!1;function l(m){f();const y=r.subscribe(m);let g=!1;return()=>{g||(g=!0,y(),u())}}function a(){r.notify()}function s(){d.onStateChange&&d.onStateChange()}function c(){return o}function f(){i++,n||(n=e.subscribe(s),r=Gf())}function u(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Ao)}function p(){o||(o=!0,f())}function h(){o&&(o=!1,u())}const d={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:c,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return d}var Yf=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Qf=Yf(),Jf=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Zf=Jf(),eh=()=>Qf||Zf?ye.useLayoutEffect:ye.useEffect,th=eh();function Po(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function B1(e,t){if(Po(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Po(e[n[i]],t[n[i]]))return!1;return!0}var hr=Symbol.for("react-redux-context"),pr=typeof globalThis<"u"?globalThis:{};function nh(){if(!ye.createContext)return{};const e=pr[hr]??(pr[hr]=new Map);let t=e.get(ye.createContext);return t||(t=ye.createContext(null),e.set(ye.createContext,t)),t}var rh=nh();function ih(e){const{children:t,context:n,serverState:r,store:i}=e,o=ye.useMemo(()=>{const s=Xf(i);return{store:i,subscription:s,getServerState:r?()=>r:void 0}},[i,r]),l=ye.useMemo(()=>i.getState(),[i]);th(()=>{const{subscription:s}=o;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),l!==i.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[o,l]);const a=n||rh;return ye.createElement(a.Provider,{value:o},t)}var U1=ih,Qa={},Ja={},Za={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yi;function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Za);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Za;function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Ja);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bi,n=Ja;function r(i,o,l){l&&typeof l!="number"&&t.isIterateeCall(i,o,l)&&(o=l=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),l=l===void 0?i<o?1:-1:n.toFinite(l);const a=Math.max(Math.ceil((o-i)/(l||1)),0),s=new Array(a);for(let c=0;c<a;c++)s[c]=i,i+=l;return s}e.range=r})(Qa);var oh=Qa.range;const q1=Ne(oh);var kt=1e9,lh={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ci,X=!0,be="[DecimalError] ",Qe=be+"Invalid argument: ",Pi=be+"Exponent out of range: ",xt=Math.floor,Ge=Math.pow,ah=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fe,J=1e7,G=7,es=9007199254740991,Pn=xt(es/G),T={};T.absoluteValue=T.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};T.comparedTo=T.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};T.decimalPlaces=T.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*G;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};T.dividedBy=T.div=function(e){return ze(this,new this.constructor(e))};T.dividedToIntegerBy=T.idiv=function(e){var t=this,n=t.constructor;return W(ze(t,new n(e),0,1),n.precision)};T.equals=T.eq=function(e){return!this.cmp(e)};T.exponent=function(){return Q(this)};T.greaterThan=T.gt=function(e){return this.cmp(e)>0};T.greaterThanOrEqualTo=T.gte=function(e){return this.cmp(e)>=0};T.isInteger=T.isint=function(){return this.e>this.d.length-2};T.isNegative=T.isneg=function(){return this.s<0};T.isPositive=T.ispos=function(){return this.s>0};T.isZero=function(){return this.s===0};T.lessThan=T.lt=function(e){return this.cmp(e)<0};T.lessThanOrEqualTo=T.lte=function(e){return this.cmp(e)<1};T.logarithm=T.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(fe))throw Error(be+"NaN");if(n.s<1)throw Error(be+(n.s?"NaN":"-Infinity"));return n.eq(fe)?new r(0):(X=!1,t=ze($t(n,o),$t(e,o),o),X=!0,W(t,i))};T.minus=T.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rs(t,e):ts(t,(e.s=-e.s,e))};T.modulo=T.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(be+"NaN");return n.s?(X=!1,t=ze(n,e,0,1).times(e),X=!0,n.minus(t)):W(new r(n),i)};T.naturalExponential=T.exp=function(){return ns(this)};T.naturalLogarithm=T.ln=function(){return $t(this)};T.negated=T.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};T.plus=T.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ts(t,e):rs(t,(e.s=-e.s,e))};T.precision=T.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qe+e);if(t=Q(i)+1,r=i.d.length-1,n=r*G+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};T.squareRoot=T.sqrt=function(){var e,t,n,r,i,o,l,a=this,s=a.constructor;if(a.s<1){if(!a.s)return new s(0);throw Error(be+"NaN")}for(e=Q(a),X=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=Ce(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=xt((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new s(t)):r=new s(i.toString()),n=s.precision,i=l=n+3;;)if(o=r,r=o.plus(ze(a,o,l+2)).times(.5),Ce(o.d).slice(0,l)===(t=Ce(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(W(o,n+1,0),o.times(o).eq(a)){r=o;break}}else if(t!="9999")break;l+=4}return X=!0,W(r,n)};T.times=T.mul=function(e){var t,n,r,i,o,l,a,s,c,f=this,u=f.constructor,p=f.d,h=(e=new u(e)).d;if(!f.s||!e.s)return new u(0);for(e.s*=f.s,n=f.e+e.e,s=p.length,c=h.length,s<c&&(o=p,p=h,h=o,l=s,s=c,c=l),o=[],l=s+c,r=l;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=s+r;i>r;)a=o[i]+h[r]*p[i-r-1]+t,o[i--]=a%J|0,t=a/J|0;o[i]=(o[i]+t)%J|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,X?W(e,u.precision):e};T.toDecimalPlaces=T.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ie(e,0,kt),t===void 0?t=r.rounding:Ie(t,0,8),W(n,e+Q(n)+1,t))};T.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=tt(r,!0):(Ie(e,0,kt),t===void 0?t=i.rounding:Ie(t,0,8),r=W(new i(r),e+1,t),n=tt(r,!0,e+1)),n};T.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?tt(i):(Ie(e,0,kt),t===void 0?t=o.rounding:Ie(t,0,8),r=W(new o(i),e+Q(i)+1,t),n=tt(r.abs(),!1,e+Q(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};T.toInteger=T.toint=function(){var e=this,t=e.constructor;return W(new t(e),Q(e)+1,t.rounding)};T.toNumber=function(){return+this};T.toPower=T.pow=function(e){var t,n,r,i,o,l,a=this,s=a.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(fe);if(a=new s(a),!a.s){if(e.s<1)throw Error(be+"Infinity");return a}if(a.eq(fe))return a;if(r=s.precision,e.eq(fe))return W(a,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=a.s,l){if((n=f<0?-f:f)<=es){for(i=new s(fe),t=Math.ceil(r/G+4),X=!1;n%2&&(i=i.times(a),Io(i.d,t)),n=xt(n/2),n!==0;)a=a.times(a),Io(a.d,t);return X=!0,e.s<0?new s(fe).div(i):W(i,r)}}else if(o<0)throw Error(be+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,a.s=1,X=!1,i=e.times($t(a,r+c)),X=!0,i=ns(i),i.s=o,i};T.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Q(i),r=tt(i,n<=o.toExpNeg||n>=o.toExpPos)):(Ie(e,1,kt),t===void 0?t=o.rounding:Ie(t,0,8),i=W(new o(i),e,t),n=Q(i),r=tt(i,e<=n||n<=o.toExpNeg,e)),r};T.toSignificantDigits=T.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ie(e,1,kt),t===void 0?t=r.rounding:Ie(t,0,8)),W(new r(n),e,t)};T.toString=T.valueOf=T.val=T.toJSON=T[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Q(e),n=e.constructor;return tt(e,t<=n.toExpNeg||t>=n.toExpPos)};function ts(e,t){var n,r,i,o,l,a,s,c,f=e.constructor,u=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),X?W(t,u):t;if(s=e.d,c=t.d,l=e.e,i=t.e,s=s.slice(),o=l-i,o){for(o<0?(r=s,o=-o,a=c.length):(r=c,i=l,a=s.length),l=Math.ceil(u/G),a=l>a?l+1:a+1,o>a&&(o=a,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(a=s.length,o=c.length,a-o<0&&(o=a,r=c,c=s,s=r),n=0;o;)n=(s[--o]=s[o]+c[o]+n)/J|0,s[o]%=J;for(n&&(s.unshift(n),++i),a=s.length;s[--a]==0;)s.pop();return t.d=s,t.e=i,X?W(t,u):t}function Ie(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Qe+e)}function Ce(e){var t,n,r,i=e.length-1,o="",l=e[0];if(i>0){for(o+=l,t=1;t<i;t++)r=e[t]+"",n=G-r.length,n&&(o+=Ue(n)),o+=r;l=e[t],r=l+"",n=G-r.length,n&&(o+=Ue(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var ze=function(){function e(r,i){var o,l=0,a=r.length;for(r=r.slice();a--;)o=r[a]*i+l,r[a]=o%J|0,l=o/J|0;return l&&r.unshift(l),r}function t(r,i,o,l){var a,s;if(o!=l)s=o>l?1:-1;else for(a=s=0;a<o;a++)if(r[a]!=i[a]){s=r[a]>i[a]?1:-1;break}return s}function n(r,i,o){for(var l=0;o--;)r[o]-=l,l=r[o]<i[o]?1:0,r[o]=l*J+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,l){var a,s,c,f,u,p,h,d,m,y,g,k,x,v,A,S,M,D,R=r.constructor,E=r.s==i.s?1:-1,O=r.d,C=i.d;if(!r.s)return new R(r);if(!i.s)throw Error(be+"Division by zero");for(s=r.e-i.e,M=C.length,A=O.length,h=new R(E),d=h.d=[],c=0;C[c]==(O[c]||0);)++c;if(C[c]>(O[c]||0)&&--s,o==null?k=o=R.precision:l?k=o+(Q(r)-Q(i))+1:k=o,k<0)return new R(0);if(k=k/G+2|0,c=0,M==1)for(f=0,C=C[0],k++;(c<A||f)&&k--;c++)x=f*J+(O[c]||0),d[c]=x/C|0,f=x%C|0;else{for(f=J/(C[0]+1)|0,f>1&&(C=e(C,f),O=e(O,f),M=C.length,A=O.length),v=M,m=O.slice(0,M),y=m.length;y<M;)m[y++]=0;D=C.slice(),D.unshift(0),S=C[0],C[1]>=J/2&&++S;do f=0,a=t(C,m,M,y),a<0?(g=m[0],M!=y&&(g=g*J+(m[1]||0)),f=g/S|0,f>1?(f>=J&&(f=J-1),u=e(C,f),p=u.length,y=m.length,a=t(u,m,p,y),a==1&&(f--,n(u,M<p?D:C,p))):(f==0&&(a=f=1),u=C.slice()),p=u.length,p<y&&u.unshift(0),n(m,u,y),a==-1&&(y=m.length,a=t(C,m,M,y),a<1&&(f++,n(m,M<y?D:C,y))),y=m.length):a===0&&(f++,m=[0]),d[c++]=f,a&&m[0]?m[y++]=O[v]||0:(m=[O[v]],y=1);while((v++<A||m[0]!==void 0)&&k--)}return d[0]||d.shift(),h.e=s,W(h,l?o+Q(h)+1:o)}}();function ns(e,t){var n,r,i,o,l,a,s=0,c=0,f=e.constructor,u=f.precision;if(Q(e)>16)throw Error(Pi+Q(e));if(!e.s)return new f(fe);for(X=!1,a=u,l=new f(.03125);e.abs().gte(.1);)e=e.times(l),c+=5;for(r=Math.log(Ge(2,c))/Math.LN10*2+5|0,a+=r,n=i=o=new f(fe),f.precision=a;;){if(i=W(i.times(e),a),n=n.times(++s),l=o.plus(ze(i,n,a)),Ce(l.d).slice(0,a)===Ce(o.d).slice(0,a)){for(;c--;)o=W(o.times(o),a);return f.precision=u,t==null?(X=!0,W(o,u)):o}o=l}}function Q(e){for(var t=e.e*G,n=e.d[0];n>=10;n/=10)t++;return t}function dr(e,t,n){if(t>e.LN10.sd())throw X=!0,n&&(e.precision=n),Error(be+"LN10 precision limit exceeded");return W(new e(e.LN10),t)}function Ue(e){for(var t="";e--;)t+="0";return t}function $t(e,t){var n,r,i,o,l,a,s,c,f,u=1,p=10,h=e,d=h.d,m=h.constructor,y=m.precision;if(h.s<1)throw Error(be+(h.s?"NaN":"-Infinity"));if(h.eq(fe))return new m(0);if(t==null?(X=!1,c=y):c=t,h.eq(10))return t==null&&(X=!0),dr(m,c);if(c+=p,m.precision=c,n=Ce(d),r=n.charAt(0),o=Q(h),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Ce(h.d),r=n.charAt(0),u++;o=Q(h),r>1?(h=new m("0."+n),o++):h=new m(r+"."+n.slice(1))}else return s=dr(m,c+2,y).times(o+""),h=$t(new m(r+"."+n.slice(1)),c-p).plus(s),m.precision=y,t==null?(X=!0,W(h,y)):h;for(a=l=h=ze(h.minus(fe),h.plus(fe),c),f=W(h.times(h),c),i=3;;){if(l=W(l.times(f),c),s=a.plus(ze(l,new m(i),c)),Ce(s.d).slice(0,c)===Ce(a.d).slice(0,c))return a=a.times(2),o!==0&&(a=a.plus(dr(m,c+2,y).times(o+""))),a=ze(a,new m(u),c),m.precision=y,t==null?(X=!0,W(a,y)):a;a=s,i+=2}}function Co(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=xt(n/G),e.d=[],r=(n+1)%G,n<0&&(r+=G),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=G;r<i;)e.d.push(+t.slice(r,r+=G));t=t.slice(r),r=G-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),X&&(e.e>Pn||e.e<-Pn))throw Error(Pi+n)}else e.s=0,e.e=0,e.d=[0];return e}function W(e,t,n){var r,i,o,l,a,s,c,f,u=e.d;for(l=1,o=u[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=G,i=t,c=u[f=0];else{if(f=Math.ceil((r+1)/G),o=u.length,f>=o)return e;for(c=o=u[f],l=1;o>=10;o/=10)l++;r%=G,i=r-G+l}if(n!==void 0&&(o=Ge(10,l-i-1),a=c/o%10|0,s=t<0||u[f+1]!==void 0||c%o,s=n<4?(a||s)&&(n==0||n==(e.s<0?3:2)):a>5||a==5&&(n==4||s||n==6&&(r>0?i>0?c/Ge(10,l-i):0:u[f-1])%10&1||n==(e.s<0?8:7))),t<1||!u[0])return s?(o=Q(e),u.length=1,t=t-o-1,u[0]=Ge(10,(G-t%G)%G),e.e=xt(-t/G)||0):(u.length=1,u[0]=e.e=e.s=0),e;if(r==0?(u.length=f,o=1,f--):(u.length=f+1,o=Ge(10,G-r),u[f]=i>0?(c/Ge(10,l-i)%Ge(10,i)|0)*o:0),s)for(;;)if(f==0){(u[0]+=o)==J&&(u[0]=1,++e.e);break}else{if(u[f]+=o,u[f]!=J)break;u[f--]=0,o=1}for(r=u.length;u[--r]===0;)u.pop();if(X&&(e.e>Pn||e.e<-Pn))throw Error(Pi+Q(e));return e}function rs(e,t){var n,r,i,o,l,a,s,c,f,u,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),X?W(t,h):t;if(s=e.d,u=t.d,r=t.e,c=e.e,s=s.slice(),l=c-r,l){for(f=l<0,f?(n=s,l=-l,a=u.length):(n=u,r=c,a=s.length),i=Math.max(Math.ceil(h/G),a)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=s.length,a=u.length,f=i<a,f&&(a=i),i=0;i<a;i++)if(s[i]!=u[i]){f=s[i]<u[i];break}l=0}for(f&&(n=s,s=u,u=n,t.s=-t.s),a=s.length,i=u.length-a;i>0;--i)s[a++]=0;for(i=u.length;i>l;){if(s[--i]<u[i]){for(o=i;o&&s[--o]===0;)s[o]=J-1;--s[o],s[i]+=J}s[i]-=u[i]}for(;s[--a]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,X?W(t,h):t):new p(0)}function tt(e,t,n){var r,i=Q(e),o=Ce(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+Ue(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ue(-i-1)+o,n&&(r=n-l)>0&&(o+=Ue(r))):i>=l?(o+=Ue(i+1-l),n&&(r=n-i-1)>0&&(o=o+"."+Ue(r))):((r=i+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(o+="."),o+=Ue(r))),e.s<0?"-"+o:o}function Io(e,t){if(e.length>t)return e.length=t,!0}function is(e){var t,n,r;function i(o){var l=this;if(!(l instanceof i))return new i(o);if(l.constructor=i,o instanceof i){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Qe+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return Co(l,o.toString())}else if(typeof o!="string")throw Error(Qe+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,ah.test(o))Co(l,o);else throw Error(Qe+o)}if(i.prototype=T,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=is,i.config=i.set=sh,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function sh(e){if(!e||typeof e!="object")throw Error(be+"Object expected");var t,n,r,i=["precision",1,kt,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(xt(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Qe+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Qe+n+": "+r);return this}var Ci=is(lh);fe=new Ci(1);const H1=Ci;class W1 extends Map{constructor(t,n=fh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Oo(this,t))}has(t){return super.has(Oo(this,t))}set(t,n){return super.set(uh(this,t),n)}delete(t){return super.delete(ch(this,t))}}function Oo({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function uh({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function ch({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function fh(e){return e!==null&&typeof e=="object"?e.valueOf():e}var os={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function o(s,c,f,u,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,u||s,p),d=n?n+c:c;return s._events[d]?s._events[d].fn?s._events[d]=[s._events[d],h]:s._events[d].push(h):(s._events[d]=h,s._eventsCount++),s}function l(s,c){--s._eventsCount===0?s._events=new r:delete s._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],f,u;if(this._eventsCount===0)return c;for(u in f=this._events)t.call(f,u)&&c.push(n?u.slice(1):u);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},a.prototype.listeners=function(c){var f=n?n+c:c,u=this._events[f];if(!u)return[];if(u.fn)return[u.fn];for(var p=0,h=u.length,d=new Array(h);p<h;p++)d[p]=u[p].fn;return d},a.prototype.listenerCount=function(c){var f=n?n+c:c,u=this._events[f];return u?u.fn?1:u.length:0},a.prototype.emit=function(c,f,u,p,h,d){var m=n?n+c:c;if(!this._events[m])return!1;var y=this._events[m],g=arguments.length,k,x;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,u),!0;case 4:return y.fn.call(y.context,f,u,p),!0;case 5:return y.fn.call(y.context,f,u,p,h),!0;case 6:return y.fn.call(y.context,f,u,p,h,d),!0}for(x=1,k=new Array(g-1);x<g;x++)k[x-1]=arguments[x];y.fn.apply(y.context,k)}else{var v=y.length,A;for(x=0;x<v;x++)switch(y[x].once&&this.removeListener(c,y[x].fn,void 0,!0),g){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,f);break;case 3:y[x].fn.call(y[x].context,f,u);break;case 4:y[x].fn.call(y[x].context,f,u,p);break;default:if(!k)for(A=1,k=new Array(g-1);A<g;A++)k[A-1]=arguments[A];y[x].fn.apply(y[x].context,k)}}return!0},a.prototype.on=function(c,f,u){return o(this,c,f,u,!1)},a.prototype.once=function(c,f,u){return o(this,c,f,u,!0)},a.prototype.removeListener=function(c,f,u,p){var h=n?n+c:c;if(!this._events[h])return this;if(!f)return l(this,h),this;var d=this._events[h];if(d.fn)d.fn===f&&(!p||d.once)&&(!u||d.context===u)&&l(this,h);else{for(var m=0,y=[],g=d.length;m<g;m++)(d[m].fn!==f||p&&!d[m].once||u&&d[m].context!==u)&&y.push(d[m]);y.length?this._events[h]=y.length===1?y[0]:y:l(this,h)}return this},a.prototype.removeAllListeners=function(c){var f;return c?(f=n?n+c:c,this._events[f]&&l(this,f)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(os);var hh=os.exports;const V1=Ne(hh);var ls={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(ls);var ph=ls.isPlainObject;const K1=Ne(ph);var dh="Invariant failed";function G1(e,t){throw new Error(dh)}function mh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function X1(e,t){if(e==null)return{};var n,r,i=mh(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gh(e){if(Array.isArray(e))return Kr(e)}function yh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bh(e,t){if(e){if(typeof e=="string")return Kr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kr(e,t):void 0}}function wh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
35
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y1(e){return gh(e)||yh(e)||bh(e)||wh()}function Bt(e){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(e)}function kh(e,t){if(Bt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xh(e){var t=kh(e,"string");return Bt(t)=="symbol"?t:t+""}function Q1(e,t,n){return(t=xh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},To.apply(null,arguments)}class Xt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Xt.prototype.normal={};Xt.prototype.property={};Xt.prototype.space=void 0;function as(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Xt(n,r,t)}function Ut(e){return e.toLowerCase()}class se{constructor(t,n){this.attribute=n,this.property=t}}se.prototype.attribute="";se.prototype.booleanish=!1;se.prototype.boolean=!1;se.prototype.commaOrSpaceSeparated=!1;se.prototype.commaSeparated=!1;se.prototype.defined=!1;se.prototype.mustUseProperty=!1;se.prototype.number=!1;se.prototype.overloadedBoolean=!1;se.prototype.property="";se.prototype.spaceSeparated=!1;se.prototype.space=void 0;let Sh=0;const N=rt(),Y=rt(),Gr=rt(),P=rt(),K=rt(),pt=rt(),ce=rt();function rt(){return 2**++Sh}const Xr=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Y,commaOrSpaceSeparated:ce,commaSeparated:pt,number:P,overloadedBoolean:Gr,spaceSeparated:K},Symbol.toStringTag,{value:"Module"})),mr=Object.keys(Xr);class Ii extends se{constructor(t,n,r,i){let o=-1;if(super(t,n),Mo(this,"space",i),typeof r=="number")for(;++o<mr.length;){const l=mr[o];Mo(this,mr[o],(r&Xr[l])===Xr[l])}}}Ii.prototype.defined=!0;function Mo(e,t,n){n&&(e[t]=n)}function St(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Ii(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ut(r)]=r,n[Ut(o.attribute)]=r}return new Xt(t,n,e.space)}const ss=St({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:K,ariaCurrent:null,ariaDescribedBy:K,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:K,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:K,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:K,ariaLevel:P,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:K,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:K,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:Y,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function us(e,t){return t in e?e[t]:t}function cs(e,t){return us(e,t.toLowerCase())}const Eh=St({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pt,acceptCharset:K,accessKey:K,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:K,autoFocus:N,autoPlay:N,blocking:K,capture:null,charSet:null,checked:N,cite:null,className:K,cols:P,colSpan:null,content:null,contentEditable:Y,controls:N,controlsList:K,coords:P|pt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:Gr,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:K,height:P,hidden:Gr,high:P,href:null,hrefLang:null,htmlFor:K,httpEquiv:K,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:K,itemRef:K,itemScope:N,itemType:K,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:P,manifest:null,max:null,maxLength:P,media:null,method:null,min:null,minLength:P,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,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:N,optimum:P,pattern:null,ping:K,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:K,required:N,reversed:N,rows:P,rowSpan:P,sandbox:K,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:P,sizes:null,slot:null,span:P,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P,step:null,style:null,tabIndex:P,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:Y,width:P,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:K,axis:null,background:null,bgColor:null,border:P,borderColor:null,bottomMargin:P,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:P,leftMargin:P,link:null,longDesc:null,lowSrc:null,marginHeight:P,marginWidth:P,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:P,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:P,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:P,security:null,unselectable:null},space:"html",transform:cs}),vh=St({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:ce,accentHeight:P,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P,amplitude:P,arabicForm:null,ascent:P,attributeName:null,attributeType:null,azimuth:P,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P,by:null,calcMode:null,capHeight:P,className:K,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:P,diffuseConstant:P,direction:null,display:null,dur:null,divisor:P,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:P,enableBackground:null,end:null,event:null,exponent:P,externalResourcesRequired:null,fill:null,fillOpacity:P,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:pt,g2:pt,glyphName:pt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P,horizOriginX:P,horizOriginY:P,id:null,ideographic:P,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P,k:P,k1:P,k2:P,k3:P,k4:P,kernelMatrix:ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P,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:P,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:P,overlineThickness:P,paintOrder:null,panose1:null,path:null,pathLength:P,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:K,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P,pointsAtY:P,pointsAtZ:P,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ce,rev:ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ce,requiredFeatures:ce,requiredFonts:ce,requiredFormats:ce,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:P,specularExponent:P,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P,strikethroughThickness:P,string:null,stroke:null,strokeDashArray:ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P,strokeOpacity:P,strokeWidth:null,style:null,surfaceScale:P,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ce,tabIndex:P,tableValues:null,target:null,targetX:P,targetY:P,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P,underlineThickness:P,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P,values:null,vAlphabetic:P,vMathematical:P,vectorEffect:null,vHanging:P,vIdeographic:P,version:null,vertAdvY:P,vertOriginX:P,vertOriginY:P,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:us}),fs=St({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hs=St({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cs}),ps=St({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_h={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"},Ah=/[A-Z]/g,Do=/-[a-z]/g,Ph=/^data[-\w.:]+$/i;function ds(e,t){const n=Ut(t);let r=t,i=se;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ph.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Do,Ih);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Do.test(o)){let l=o.replace(Ah,Ch);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Ii}return new i(r,t)}function Ch(e){return"-"+e.toLowerCase()}function Ih(e){return e.charAt(1).toUpperCase()}const ms=as([ss,Eh,fs,hs,ps],"html"),Yn=as([ss,vh,fs,hs,ps],"svg");function Lo(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function Oh(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ro=/[#.]/g;function Th(e,t){const n=e||"",r={};let i=0,o,l;for(;i<n.length;){Ro.lastIndex=i;const a=Ro.exec(n),s=n.slice(i,a?a.index:n.length);s&&(o?o==="#"?r.id=s:Array.isArray(r.className)?r.className.push(s):r.className=[s]:l=s,i+=s.length),a&&(o=a[0],i++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function zo(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Mh(e){return e.join(" ").trim()}function gs(e,t,n){const r=n?zh(n):void 0;function i(o,l,...a){let s;if(o==null){s={type:"root",children:[]};const c=l;a.unshift(c)}else{s=Th(o,t);const c=s.tagName.toLowerCase(),f=r?r.get(c):void 0;if(s.tagName=f||c,Dh(l))a.unshift(l);else for(const[u,p]of Object.entries(l))Lh(e,s.properties,u,p)}for(const c of a)Yr(s.children,c);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return i}function Dh(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const o=i;for(const l of o)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Lh(e,t,n,r){const i=ds(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=zo(r):i.commaSeparated?o=Lo(r):i.commaOrSpaceSeparated?o=zo(Lo(r).join(" ")):o=Fo(i,i.property,r):Array.isArray(r)?o=[...r]:o=i.property==="style"?Rh(r):String(r);if(Array.isArray(o)){const l=[];for(const a of o)l.push(Fo(i,i.property,a));o=l}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Yr(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Yr(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Yr(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Fo(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ut(n)===Ut(t)))return!0}return n}function Rh(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function zh(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Fh=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],J1=gs(ms,"div");gs(Yn,"g",Fh);const Nh=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],No={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function ys(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function jh(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function $h(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function jo(e){return $h(e)||ys(e)}const $o=document.createElement("i");function qt(e){const t="&"+e+";";$o.innerHTML=t;const n=$o.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Bh=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Z1(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let o=0,l=-1,a="",s,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,s=n.position.start):s=n.position);let f=(s?s.line:0)||1,u=(s?s.column:0)||1,p=d(),h;for(o--;++o<=e.length;)if(h===10&&(u=(c?c[l]:0)||1),h=e.charCodeAt(o),h===38){const g=e.charCodeAt(o+1);if(g===9||g===10||g===12||g===32||g===38||g===60||Number.isNaN(g)||r&&g===r){a+=String.fromCharCode(h),u++;continue}const k=o+1;let x=k,v=k,A;if(g===35){v=++x;const L=e.charCodeAt(v);L===88||L===120?(A="hexadecimal",v=++x):A="decimal"}else A="named";let S="",M="",D="";const R=A==="named"?jo:A==="decimal"?ys:jh;for(v--;++v<=e.length;){const L=e.charCodeAt(v);if(!R(L))break;D+=String.fromCharCode(L),A==="named"&&Nh.includes(D)&&(S=D,M=qt(D))}let E=e.charCodeAt(v)===59;if(E){v++;const L=A==="named"?qt(D):!1;L&&(S=D,M=L)}let O=1+v-k,C="";if(!(!E&&n.nonTerminated===!1))if(!D)A!=="named"&&m(4,O);else if(A==="named"){if(E&&!M)m(5,1);else if(S!==D&&(v=x+S.length,O=1+v-x,E=!1),!E){const L=S?1:3;if(n.attribute){const q=e.charCodeAt(v);q===61?(m(L,O),M=""):jo(q)?M="":m(L,O)}else m(L,O)}C=M}else{E||m(2,O);let L=Number.parseInt(D,A==="hexadecimal"?16:10);if(Uh(L))m(7,O),C="�";else if(L in No)m(6,O),C=No[L];else{let q="";qh(L)&&m(6,O),L>65535&&(L-=65536,q+=String.fromCharCode(L>>>10|55296),L=56320|L&1023),C=q+String.fromCharCode(L)}}if(C){y(),p=d(),o=v-1,u+=v-k+1,i.push(C);const L=d();L.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:p,end:L},e.slice(k-1,v)),p=L}else D=e.slice(k-1,v),a+=D,u+=D.length,o=v-1}else h===10&&(f++,l++,u=0),Number.isNaN(h)?y():(a+=String.fromCharCode(h),u++);return i.join("");function d(){return{line:f,column:u,offset:o+((s?s.offset:0)||0)}}function m(g,k){let x;n.warning&&(x=d(),x.column+=k,x.offset+=k,n.warning.call(n.warningContext||void 0,Bh[g],x,g))}function y(){a&&(i.push(a),n.text&&n.text.call(n.textContext||void 0,a,{start:p,end:d()}),a="")}}function Uh(e){return e>=55296&&e<=57343||e>1114111}function qh(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const Hh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vh={};function Bo(e,t){return(Vh.jsx?Wh:Hh).test(e)}const Kh=/[ \t\n\f\r]/g;function Gh(e){return typeof e=="object"?e.type==="text"?Uo(e.value):!1:Uo(e)}function Uo(e){return e.replace(Kh,"")===""}var Oi={},qo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xh=/\n/g,Yh=/^\s*/,Qh=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Jh=/^:\s*/,Zh=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ep=/^[;\s]*/,tp=/^\s+|\s+$/g,np=`
|
|
36
|
+
`,Ho="/",Wo="*",Xe="",rp="comment",ip="declaration";function op(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(d){var m=d.match(Xh);m&&(n+=m.length);var y=d.lastIndexOf(np);r=~y?d.length-y:r+d.length}function o(){var d={line:n,column:r};return function(m){return m.position=new l(d),c(),m}}function l(d){this.start=d,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(d){var m=new Error(t.source+":"+n+":"+r+": "+d);if(m.reason=d,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function s(d){var m=d.exec(e);if(m){var y=m[0];return i(y),e=e.slice(y.length),m}}function c(){s(Yh)}function f(d){var m;for(d=d||[];m=u();)m!==!1&&d.push(m);return d}function u(){var d=o();if(!(Ho!=e.charAt(0)||Wo!=e.charAt(1))){for(var m=2;Xe!=e.charAt(m)&&(Wo!=e.charAt(m)||Ho!=e.charAt(m+1));)++m;if(m+=2,Xe===e.charAt(m-1))return a("End of comment missing");var y=e.slice(2,m-2);return r+=2,i(y),e=e.slice(m),r+=2,d({type:rp,comment:y})}}function p(){var d=o(),m=s(Qh);if(m){if(u(),!s(Jh))return a("property missing ':'");var y=s(Zh),g=d({type:ip,property:Vo(m[0].replace(qo,Xe)),value:y?Vo(y[0].replace(qo,Xe)):Xe});return s(ep),g}}function h(){var d=[];f(d);for(var m;m=p();)m!==!1&&(d.push(m),f(d));return d}return c(),h()}function Vo(e){return e?e.replace(tp,Xe):Xe}var lp=op,ap=dt&&dt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oi,"__esModule",{value:!0});Oi.default=up;const sp=ap(lp);function up(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,sp.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.camelCase=void 0;var cp=/^--[a-zA-Z0-9_-]+$/,fp=/-([a-z])/g,hp=/^[^-]+$/,pp=/^-(webkit|moz|ms|o|khtml)-/,dp=/^-(ms)-/,mp=function(e){return!e||hp.test(e)||cp.test(e)},gp=function(e,t){return t.toUpperCase()},Ko=function(e,t){return"".concat(t,"-")},yp=function(e,t){return t===void 0&&(t={}),mp(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(dp,Ko):e=e.replace(pp,Ko),e.replace(fp,gp))};Qn.camelCase=yp;var bp=dt&&dt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},wp=bp(Oi),kp=Qn;function Qr(e,t){var n={};return!e||typeof e!="string"||(0,wp.default)(e,function(r,i){r&&i&&(n[(0,kp.camelCase)(r,t)]=i)}),n}Qr.default=Qr;var xp=Qr;const Sp=Ne(xp),bs=ws("end"),Ti=ws("start");function ws(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ep(e){const t=Ti(e),n=bs(e);if(t&&n)return{start:t,end:n}}function Ot(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Go(e.position):"start"in e||"end"in e?Go(e):"line"in e||"column"in e?Jr(e):""}function Jr(e){return Xo(e&&e.line)+":"+Xo(e&&e.column)}function Go(e){return Jr(e&&e.start)+"-"+Jr(e&&e.end)}function Xo(e){return e&&typeof e=="number"?e:1}class ie extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ot(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ie.prototype.file="";ie.prototype.name="";ie.prototype.reason="";ie.prototype.message="";ie.prototype.stack="";ie.prototype.column=void 0;ie.prototype.line=void 0;ie.prototype.ancestors=void 0;ie.prototype.cause=void 0;ie.prototype.fatal=void 0;ie.prototype.place=void 0;ie.prototype.ruleId=void 0;ie.prototype.source=void 0;const Mi={}.hasOwnProperty,vp=new Map,_p=/[A-Z]/g,Ap=new Set(["table","tbody","thead","tfoot","tr"]),Pp=new Set(["td","th"]),ks="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cp(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=zp(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Rp(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Yn:ms,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=xs(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function xs(e,t,n){if(t.type==="element")return Ip(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Op(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Mp(e,t,n);if(t.type==="mdxjsEsm")return Tp(e,t);if(t.type==="root")return Dp(e,t,n);if(t.type==="text")return Lp(e,t)}function Ip(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Yn,e.schema=i),e.ancestors.push(t);const o=Es(e,t.tagName,!1),l=Fp(e,t);let a=Li(e,t);return Ap.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Gh(s):!0})),Ss(e,l,o,t),Di(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Op(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ht(e,t.position)}function Tp(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ht(e,t.position)}function Mp(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Yn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Es(e,t.name,!0),l=Np(e,t),a=Li(e,t);return Ss(e,l,o,t),Di(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Dp(e,t,n){const r={};return Di(r,Li(e,t)),e.create(t,e.Fragment,r,n)}function Lp(e,t){return t.value}function Ss(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Di(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Rp(e,t,n){return r;function r(i,o,l,a){const c=Array.isArray(l.children)?n:t;return a?c(o,l,a):c(o,l)}}function zp(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),s=Ti(r);return t(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Fp(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Mi.call(t.properties,i)){const o=jp(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Pp.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Np(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Ht(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ht(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Li(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:vp;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const c=i.get(s)||0;l=s+"-"+c,i.set(s,c+1)}}const a=xs(e,o,l);a!==void 0&&n.push(a)}return n}function jp(e,t,n){const r=ds(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Oh(n):Mh(n)),r.property==="style"){let i=typeof n=="object"?n:$p(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Bp(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?_h[r.property]||r.property:r.attribute,n]}}function $p(e,t){try{return Sp(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ie("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=ks+"#cannot-parse-style-attribute",i}}function Es(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=Bo(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Bo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Mi.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ht(e)}function Ht(e,t){const n=new ie("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=ks+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Bp(e){const t={};let n;for(n in e)Mi.call(e,n)&&(t[Up(n)]=e[n]);return t}function Up(e){let t=e.replace(_p,qp);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qp(e){return"-"+e.toLowerCase()}const gr={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"]},Hp={};function Ri(e,t){const n=Hp,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return vs(e,r,i)}function vs(e,t,n){if(Wp(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yo(e.children,t,n)}return Array.isArray(e)?Yo(e,t,n):""}function Yo(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=vs(e[i],t,n);return r.join("")}function Wp(e){return!!(e&&typeof e=="object")}function de(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ge(e,t){return e.length>0?(de(e,e.length,0,t),e):t}const Qo={}.hasOwnProperty;function _s(e){const t={};let n=-1;for(;++n<e.length;)Vp(t,e[n]);return t}function Vp(e,t){let n;for(n in t){const i=(Qo.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Qo.call(i,l)||(i[l]=[]);const a=o[l];Kp(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Kp(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);de(e,0,0,r)}function As(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function _e(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const oe=qe(/[A-Za-z]/),re=qe(/[\dA-Za-z]/),Gp=qe(/[#-'*+\--9=?A-Z^-~]/);function Cn(e){return e!==null&&(e<32||e===127)}const Zr=qe(/\d/),Xp=qe(/[\dA-Fa-f]/),Yp=qe(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function V(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const Jn=qe(new RegExp("\\p{P}|\\p{S}","u")),nt=qe(/\s/);function qe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Et(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&re(e.charCodeAt(n+1))&&re(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function B(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return j(s)?(e.enter(n),a(s)):t(s)}function a(s){return j(s)&&o++<i?(e.consume(s),a):(e.exit(n),t(s))}}const Qp={tokenize:Jp};function Jp(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Zp={tokenize:ed},Jo={tokenize:td};function ed(e){const t=this,n=[];let r=0,i,o,l;return a;function a(x){if(r<n.length){const v=n[r];return t.containerState=v[1],e.attempt(v[0].continuation,s,c)(x)}return c(x)}function s(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&k();const v=t.events.length;let A=v,S;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){S=t.events[A][1].end;break}g(r);let M=v;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return de(t.events,A+1,0,t.events.slice(v)),t.events.length=M,c(x)}return a(x)}function c(x){if(r===n.length){if(!i)return p(x);if(i.currentConstruct&&i.currentConstruct.concrete)return d(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jo,f,u)(x)}function f(x){return i&&k(),g(r),p(x)}function u(x){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(x)}function p(x){return t.containerState={},e.attempt(Jo,h,d)(x)}function h(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function d(x){if(x===null){i&&k(),g(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(x)}function m(x){if(x===null){y(e.exit("chunkFlow"),!0),g(0),e.consume(x);return}return z(x)?(e.consume(x),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(x),m)}function y(x,v){const A=t.sliceStream(x);if(v&&A.push(null),x.previous=o,o&&(o.next=x),o=x,i.defineSkip(x.start),i.write(A),t.parser.lazy[x.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<l&&(!i.events[S][1].end||i.events[S][1].end.offset>l))return;const M=t.events.length;let D=M,R,E;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(R){E=t.events[D][1].end;break}R=!0}for(g(r),S=M;S<t.events.length;)t.events[S][1].end={...E},S++;de(t.events,D+1,0,t.events.slice(M)),t.events.length=S}}function g(x){let v=n.length;for(;v-- >x;){const A=n[v];t.containerState=A[1],A[0].exit.call(t,e)}n.length=x}function k(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function td(e,t,n){return B(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wt(e){if(e===null||V(e)||nt(e))return 1;if(Jn(e))return 2}function Zn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const ei={name:"attention",resolveAll:nd,tokenize:rd};function nd(e,t){let n=-1,r,i,o,l,a,s,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u={...e[r][1].end},p={...e[n][1].start};Zo(u,-s),Zo(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ge(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ge(c,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),c=ge(c,Zn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ge(c,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=ge(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,de(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function rd(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wt(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const c=e.exit("attentionSequence"),f=wt(s),u=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return c._open=!!(o===42?u:u&&(i||!p)),c._close=!!(o===42?p:p&&(f||!u)),t(s)}}function Zo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const id={name:"autolink",tokenize:od};function od(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return oe(h)?(e.consume(h),l):h===64?n(h):c(h)}function l(h){return h===43||h===45||h===46||re(h)?(r=1,a(h)):c(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||re(h))&&r++<32?(e.consume(h),a):(r=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Cn(h)?n(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),f):Gp(h)?(e.consume(h),c):n(h)}function f(h){return re(h)?u(h):n(h)}function u(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||re(h))&&r++<63){const d=h===45?p:u;return e.consume(h),d}return n(h)}}const Yt={partial:!0,tokenize:ld};function ld(e,t,n){return r;function r(o){return j(o)?B(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?t(o):n(o)}}const Ps={continuation:{tokenize:sd},exit:ud,name:"blockQuote",tokenize:ad};function ad(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return j(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function sd(e,t,n){const r=this;return i;function i(l){return j(l)?B(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Ps,t,n)(l)}}function ud(e){e.exit("blockQuote")}const Cs={name:"characterEscape",tokenize:cd};function cd(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Yp(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Is={name:"characterReference",tokenize:fd};function fd(e,t,n){const r=this;let i=0,o,l;return a;function a(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),s}function s(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,l=re,f(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Xp,f):(e.enter("characterReferenceValue"),o=7,l=Zr,f(u))}function f(u){if(u===59&&i){const p=e.exit("characterReferenceValue");return l===re&&!qt(r.sliceSerialize(p))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(u)&&i++<o?(e.consume(u),f):n(u)}}const el={partial:!0,tokenize:pd},tl={concrete:!0,name:"codeFenced",tokenize:hd};function hd(e,t,n){const r=this,i={partial:!0,tokenize:A};let o=0,l=0,a;return s;function s(S){return c(S)}function c(S){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===a?(l++,e.consume(S),f):l<3?n(S):(e.exit("codeFencedFenceSequence"),j(S)?B(e,u,"whitespace")(S):u(S))}function u(S){return S===null||z(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(el,m,v)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||z(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(S)):j(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),p)}function h(S){return S===null||z(S)?u(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||z(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(S)):S===96&&S===a?n(S):(e.consume(S),d)}function m(S){return e.attempt(i,v,y)(S)}function y(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g}function g(S){return o>0&&j(S)?B(e,k,"linePrefix",o+1)(S):k(S)}function k(S){return S===null||z(S)?e.check(el,m,v)(S):(e.enter("codeFlowValue"),x(S))}function x(S){return S===null||z(S)?(e.exit("codeFlowValue"),k(S)):(e.consume(S),x)}function v(S){return e.exit("codeFenced"),t(S)}function A(S,M,D){let R=0;return E;function E(U){return S.enter("lineEnding"),S.consume(U),S.exit("lineEnding"),O}function O(U){return S.enter("codeFencedFence"),j(U)?B(S,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):C(U)}function C(U){return U===a?(S.enter("codeFencedFenceSequence"),L(U)):D(U)}function L(U){return U===a?(R++,S.consume(U),L):R>=l?(S.exit("codeFencedFenceSequence"),j(U)?B(S,q,"whitespace")(U):q(U)):D(U)}function q(U){return U===null||z(U)?(S.exit("codeFencedFence"),M(U)):D(U)}}}function pd(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const yr={name:"codeIndented",tokenize:md},dd={partial:!0,tokenize:gd};function md(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(c)}function o(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(c):n(c)}function l(c){return c===null?s(c):z(c)?e.attempt(dd,l,s)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||z(c)?(e.exit("codeFlowValue"),l(c)):(e.consume(c),a)}function s(c){return e.exit("codeIndented"),t(c)}}function gd(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):z(l)?i(l):n(l)}}const yd={name:"codeText",previous:wd,resolve:bd,tokenize:kd};function bd(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function wd(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function kd(e,t,n){let r=0,i,o;return l;function l(u){return e.enter("codeText"),e.enter("codeTextSequence"),a(u)}function a(u){return u===96?(e.consume(u),r++,a):(e.exit("codeTextSequence"),s(u))}function s(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),s):u===96?(o=e.enter("codeTextSequence"),i=0,f(u)):z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||z(u)?(e.exit("codeTextData"),s(u)):(e.consume(u),c)}function f(u){return u===96?(e.consume(u),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(o.type="codeTextData",c(u))}}class xd{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Pt(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Pt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Pt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Pt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Pt(this.left,n.reverse())}}}function Pt(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 Os(e){const t={};let n=-1,r,i,o,l,a,s,c;const f=new xd(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Sd(f,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return de(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function Sd(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],c={};let f,u,p=-1,h=n,d=0,m=0;const y=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),u&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),u=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(m=p+1,y.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),p=y.length;p--;){const g=a.slice(y[p],y[p+1]),k=o.pop();s.push([k,k+g.length-1]),e.splice(k,2,g)}for(s.reverse(),p=-1;++p<s.length;)c[d+s[p][0]]=d+s[p][1],d+=s[p][1]-s[p][0]-1;return c}const Ed={resolve:_d,tokenize:Ad},vd={partial:!0,tokenize:Pd};function _d(e){return Os(e),e}function Ad(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):z(a)?e.check(vd,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Pd(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B(e,o,"linePrefix")}function o(l){if(l===null||z(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Ts(e,t,n,r,i,o,l,a,s){const c=s||Number.POSITIVE_INFINITY;let f=0;return u;function u(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),p):g===null||g===32||g===41||Cn(g)?n(g):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(g))}function p(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(e.exit("chunkString"),e.exit(a),p(g)):g===null||g===60||z(g)?n(g):(e.consume(g),g===92?d:h)}function d(g){return g===60||g===62||g===92?(e.consume(g),h):h(g)}function m(g){return!f&&(g===null||g===41||V(g))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(g)):f<c&&g===40?(e.consume(g),f++,m):g===41?(e.consume(g),f--,m):g===null||g===32||g===40||Cn(g)?n(g):(e.consume(g),g===92?y:m)}function y(g){return g===40||g===41||g===92?(e.consume(g),m):m(g)}}function Ms(e,t,n,r,i,o){const l=this;let a=0,s;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===null||h===91||h===93||z(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!j(h)),h===92?p:u)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}}function Ds(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):n(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),c(p))}function c(p){return p===l?(e.exit(o),s(l)):p===null?n(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||z(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?u:f)}function u(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Tt(e,t){let n;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):j(i)?B(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Cd={name:"definition",tokenize:Od},Id={partial:!0,tokenize:Td};function Od(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Ms.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=_e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return V(h)?Tt(e,c)(h):c(h)}function c(h){return Ts(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Id,u,u)(h)}function u(h){return j(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Td(e,t,n){return r;function r(a){return V(a)?Tt(e,i)(a):n(a)}function i(a){return Ds(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return j(a)?B(e,l,"whitespace")(a):l(a)}function l(a){return a===null||z(a)?t(a):n(a)}}const Md={name:"hardBreakEscape",tokenize:Dd};function Dd(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ld={name:"headingAtx",resolve:Rd,tokenize:zd};function Rd(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},de(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function zd(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||V(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||z(f)?(e.exit("atxHeading"),t(f)):j(f)?B(e,a,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function c(f){return f===null||f===35||V(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),c)}}const Fd=["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"],nl=["pre","script","style","textarea"],Nd={concrete:!0,name:"htmlFlow",resolveTo:Bd,tokenize:Ud},jd={partial:!0,tokenize:Hd},$d={partial:!0,tokenize:qd};function Bd(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ud(e,t,n){const r=this;let i,o,l,a,s;return c;function c(w){return f(w)}function f(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),o=!0,m):w===63?(e.consume(w),i=3,r.interrupt?t:b):oe(w)?(e.consume(w),l=String.fromCharCode(w),y):n(w)}function p(w){return w===45?(e.consume(w),i=2,h):w===91?(e.consume(w),i=5,a=0,d):oe(w)?(e.consume(w),i=4,r.interrupt?t:b):n(w)}function h(w){return w===45?(e.consume(w),r.interrupt?t:b):n(w)}function d(w){const xe="CDATA[";return w===xe.charCodeAt(a++)?(e.consume(w),a===xe.length?r.interrupt?t:C:d):n(w)}function m(w){return oe(w)?(e.consume(w),l=String.fromCharCode(w),y):n(w)}function y(w){if(w===null||w===47||w===62||V(w)){const xe=w===47,He=l.toLowerCase();return!xe&&!o&&nl.includes(He)?(i=1,r.interrupt?t(w):C(w)):Fd.includes(l.toLowerCase())?(i=6,xe?(e.consume(w),g):r.interrupt?t(w):C(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):o?k(w):x(w))}return w===45||re(w)?(e.consume(w),l+=String.fromCharCode(w),y):n(w)}function g(w){return w===62?(e.consume(w),r.interrupt?t:C):n(w)}function k(w){return j(w)?(e.consume(w),k):E(w)}function x(w){return w===47?(e.consume(w),E):w===58||w===95||oe(w)?(e.consume(w),v):j(w)?(e.consume(w),x):E(w)}function v(w){return w===45||w===46||w===58||w===95||re(w)?(e.consume(w),v):A(w)}function A(w){return w===61?(e.consume(w),S):j(w)?(e.consume(w),A):x(w)}function S(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),s=w,M):j(w)?(e.consume(w),S):D(w)}function M(w){return w===s?(e.consume(w),s=null,R):w===null||z(w)?n(w):(e.consume(w),M)}function D(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||V(w)?A(w):(e.consume(w),D)}function R(w){return w===47||w===62||j(w)?x(w):n(w)}function E(w){return w===62?(e.consume(w),O):n(w)}function O(w){return w===null||z(w)?C(w):j(w)?(e.consume(w),O):n(w)}function C(w){return w===45&&i===2?(e.consume(w),ne):w===60&&i===1?(e.consume(w),Z):w===62&&i===4?(e.consume(w),ke):w===63&&i===3?(e.consume(w),b):w===93&&i===5?(e.consume(w),Te):z(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jd,Me,L)(w)):w===null||z(w)?(e.exit("htmlFlowData"),L(w)):(e.consume(w),C)}function L(w){return e.check($d,q,Me)(w)}function q(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),U}function U(w){return w===null||z(w)?L(w):(e.enter("htmlFlowData"),C(w))}function ne(w){return w===45?(e.consume(w),b):C(w)}function Z(w){return w===47?(e.consume(w),l="",we):C(w)}function we(w){if(w===62){const xe=l.toLowerCase();return nl.includes(xe)?(e.consume(w),ke):C(w)}return oe(w)&&l.length<8?(e.consume(w),l+=String.fromCharCode(w),we):C(w)}function Te(w){return w===93?(e.consume(w),b):C(w)}function b(w){return w===62?(e.consume(w),ke):w===45&&i===2?(e.consume(w),b):C(w)}function ke(w){return w===null||z(w)?(e.exit("htmlFlowData"),Me(w)):(e.consume(w),ke)}function Me(w){return e.exit("htmlFlow"),t(w)}}function qd(e,t,n){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Hd(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Yt,t,n)}}const Wd={name:"htmlText",tokenize:Vd};function Vd(e,t,n){const r=this;let i,o,l;return a;function a(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),s}function s(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),A):b===63?(e.consume(b),x):oe(b)?(e.consume(b),D):n(b)}function c(b){return b===45?(e.consume(b),f):b===91?(e.consume(b),o=0,d):oe(b)?(e.consume(b),k):n(b)}function f(b){return b===45?(e.consume(b),h):n(b)}function u(b){return b===null?n(b):b===45?(e.consume(b),p):z(b)?(l=u,Z(b)):(e.consume(b),u)}function p(b){return b===45?(e.consume(b),h):u(b)}function h(b){return b===62?ne(b):b===45?p(b):u(b)}function d(b){const ke="CDATA[";return b===ke.charCodeAt(o++)?(e.consume(b),o===ke.length?m:d):n(b)}function m(b){return b===null?n(b):b===93?(e.consume(b),y):z(b)?(l=m,Z(b)):(e.consume(b),m)}function y(b){return b===93?(e.consume(b),g):m(b)}function g(b){return b===62?ne(b):b===93?(e.consume(b),g):m(b)}function k(b){return b===null||b===62?ne(b):z(b)?(l=k,Z(b)):(e.consume(b),k)}function x(b){return b===null?n(b):b===63?(e.consume(b),v):z(b)?(l=x,Z(b)):(e.consume(b),x)}function v(b){return b===62?ne(b):x(b)}function A(b){return oe(b)?(e.consume(b),S):n(b)}function S(b){return b===45||re(b)?(e.consume(b),S):M(b)}function M(b){return z(b)?(l=M,Z(b)):j(b)?(e.consume(b),M):ne(b)}function D(b){return b===45||re(b)?(e.consume(b),D):b===47||b===62||V(b)?R(b):n(b)}function R(b){return b===47?(e.consume(b),ne):b===58||b===95||oe(b)?(e.consume(b),E):z(b)?(l=R,Z(b)):j(b)?(e.consume(b),R):ne(b)}function E(b){return b===45||b===46||b===58||b===95||re(b)?(e.consume(b),E):O(b)}function O(b){return b===61?(e.consume(b),C):z(b)?(l=O,Z(b)):j(b)?(e.consume(b),O):R(b)}function C(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,L):z(b)?(l=C,Z(b)):j(b)?(e.consume(b),C):(e.consume(b),q)}function L(b){return b===i?(e.consume(b),i=void 0,U):b===null?n(b):z(b)?(l=L,Z(b)):(e.consume(b),L)}function q(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||V(b)?R(b):(e.consume(b),q)}function U(b){return b===47||b===62||V(b)?R(b):n(b)}function ne(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function Z(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),we}function we(b){return j(b)?B(e,Te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):Te(b)}function Te(b){return e.enter("htmlTextData"),l(b)}}const zi={name:"labelEnd",resolveAll:Yd,resolveTo:Qd,tokenize:Jd},Kd={tokenize:Zd},Gd={tokenize:em},Xd={tokenize:tm};function Yd(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&de(e,0,e.length,n),e}function Qd(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",c,t]],a=ge(a,e.slice(o+1,o+r+3)),a=ge(a,[["enter",f,t]]),a=ge(a,Zn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=ge(a,[["exit",f,t],e[l-2],e[l-1],["exit",c,t]]),a=ge(a,e.slice(l+1)),a=ge(a,[["exit",s,t]]),de(e,o,e.length,a),e}function Jd(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?u(p):(l=r.parser.defined.includes(_e(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(Kd,f,l?f:u)(p):p===91?e.attempt(Gd,f,l?c:u)(p):l?f(p):u(p)}function c(p){return e.attempt(Xd,f,u)(p)}function f(p){return t(p)}function u(p){return o._balanced=!0,n(p)}}function Zd(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return V(u)?Tt(e,o)(u):o(u)}function o(u){return u===41?f(u):Ts(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function l(u){return V(u)?Tt(e,s)(u):f(u)}function a(u){return n(u)}function s(u){return u===34||u===39||u===40?Ds(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):f(u)}function c(u){return V(u)?Tt(e,f)(u):f(u)}function f(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function em(e,t,n){const r=this;return i;function i(a){return Ms.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(_e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function tm(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const nm={name:"labelStartImage",resolveAll:zi.resolveAll,tokenize:rm};function rm(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const im={name:"labelStartLink",resolveAll:zi.resolveAll,tokenize:om};function om(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const br={name:"lineEnding",tokenize:lm};function lm(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,t,"linePrefix")}}const hn={name:"thematicBreak",tokenize:am};function am(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),l(c)}function l(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||z(c))?(e.exit("thematicBreak"),t(c)):n(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),j(c)?B(e,a,"whitespace")(c):a(c))}}const ae={continuation:{tokenize:fm},exit:pm,name:"list",tokenize:cm},sm={partial:!0,tokenize:dm},um={partial:!0,tokenize:hm};function cm(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Zr(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(hn,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return Zr(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Yt,r.interrupt?n:f,e.attempt(sm,p,u))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function u(h){return j(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function fm(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Yt,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!j(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(um,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(ae,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function hm(e,t,n){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function pm(e){e.exit(this.containerState.type)}function dm(e,t,n){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!j(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const rl={name:"setextUnderline",resolveTo:mm,tokenize:gm};function mm(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function gm(e,t,n){const r=this;let i;return o;function o(c){let f=r.events.length,u;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){u=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,l(c)):n(c)}function l(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),j(c)?B(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const ym={tokenize:bm};function bm(e){const t=this,n=e.attempt(Yt,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ed,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const wm={resolveAll:Rs()},km=Ls("string"),xm=Ls("text");function Ls(e){return{resolveAll:Rs(e==="text"?Sm:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return c(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return c(f)?(n.exit("data"),o(f)):(n.consume(f),s)}function c(f){if(f===null)return!0;const u=i[f];let p=-1;if(u)for(;++p<u.length;){const h=u[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Rs(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Sm(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const c=i[o];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)s=!0,a++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Em={42:ae,43:ae,45:ae,48:ae,49:ae,50:ae,51:ae,52:ae,53:ae,54:ae,55:ae,56:ae,57:ae,62:Ps},vm={91:Cd},_m={[-2]:yr,[-1]:yr,32:yr},Am={35:Ld,42:hn,45:[rl,hn],60:Nd,61:rl,95:hn,96:tl,126:tl},Pm={38:Is,92:Cs},Cm={[-5]:br,[-4]:br,[-3]:br,33:nm,38:Is,42:ei,60:[id,Wd],91:im,92:[Md,Cs],93:zi,95:ei,96:yd},Im={null:[ei,wm]},Om={null:[42,95]},Tm={null:[]},Mm=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Om,contentInitial:vm,disable:Tm,document:Em,flow:Am,flowInitial:_m,insideSpan:Im,string:Pm,text:Cm},Symbol.toStringTag,{value:"Module"}));function Dm(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:M(A),check:M(S),consume:k,enter:x,exit:v,interrupt:M(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:u};let f=t.tokenize.call(c,s);return t.resolveAll&&o.push(t),c;function u(O){return l=ge(l,O),y(),l[l.length-1]!==null?[]:(D(t,0),c.events=Zn(o,c.events,c),c.events)}function p(O,C){return Rm(h(O),C)}function h(O){return Lm(l,O)}function d(){const{_bufferIndex:O,_index:C,line:L,column:q,offset:U}=r;return{_bufferIndex:O,_index:C,line:L,column:q,offset:U}}function m(O){i[O.line]=O.column,E()}function y(){let O;for(;r._index<l.length;){const C=l[r._index];if(typeof C=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<C.length;)g(C.charCodeAt(r._bufferIndex));else g(C)}}function g(O){f=f(O)}function k(O){z(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,E()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O}function x(O,C){const L=C||{};return L.type=O,L.start=d(),c.events.push(["enter",L,c]),a.push(L),L}function v(O){const C=a.pop();return C.end=d(),c.events.push(["exit",C,c]),C}function A(O,C){D(O,C.from)}function S(O,C){C.restore()}function M(O,C){return L;function L(q,U,ne){let Z,we,Te,b;return Array.isArray(q)?Me(q):"tokenize"in q?Me([q]):ke(q);function ke(ee){return vt;function vt($e){const it=$e!==null&&ee[$e],ot=$e!==null&&ee.null,Jt=[...Array.isArray(it)?it:it?[it]:[],...Array.isArray(ot)?ot:ot?[ot]:[]];return Me(Jt)($e)}}function Me(ee){return Z=ee,we=0,ee.length===0?ne:w(ee[we])}function w(ee){return vt;function vt($e){return b=R(),Te=ee,ee.partial||(c.currentConstruct=ee),ee.name&&c.parser.constructs.disable.null.includes(ee.name)?He():ee.tokenize.call(C?Object.assign(Object.create(c),C):c,s,xe,He)($e)}}function xe(ee){return O(Te,b),U}function He(ee){return b.restore(),++we<Z.length?w(Z[we]):ne}}}function D(O,C){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&de(c.events,C,c.events.length-C,O.resolve(c.events.slice(C),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function R(){const O=d(),C=c.previous,L=c.currentConstruct,q=c.events.length,U=Array.from(a);return{from:q,restore:ne};function ne(){r=O,c.previous=C,c.currentConstruct=L,c.events.length=q,a=U,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Lm(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Rm(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
37
|
+
`;break}case-3:{l=`\r
|
|
38
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function zm(e){const r={constructs:_s([Mm,...(e||{}).extensions||[]]),content:i(Qp),defined:[],document:i(Zp),flow:i(ym),lazy:{},string:i(km),text:i(xm)};return r;function i(o){return l;function l(a){return Dm(r,o,a)}}}function Fm(e){for(;!Os(e););return e}const il=/[\0\t\n\r]/g;function Nm(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let c,f,u,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),u=0,t="",n&&(o.charCodeAt(0)===65279&&u++,n=void 0);u<o.length;){if(il.lastIndex=u,c=il.exec(o),p=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(p),!c){t=o.slice(u);break}if(h===10&&u===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<p&&(s.push(o.slice(u,p)),e+=p-u),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}u=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const jm=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $m(e){return e.replace(jm,Bm)}function Bm(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return As(n.slice(o?2:1),o?16:10)}return qt(n)||e}const zs={}.hasOwnProperty;function Um(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),qm(n)(Fm(zm(n).document().write(Nm()(e,t,!0))))}function qm(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Xi),autolinkProtocol:R,autolinkEmail:R,atxHeading:o(Vi),blockQuote:o(ot),characterEscape:R,characterReference:R,codeFenced:o(Jt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Jt,l),codeText:o(gu,l),codeTextData:R,data:R,codeFlowValue:R,definition:o(yu),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(bu),hardBreakEscape:o(Ki),hardBreakTrailing:o(Ki),htmlFlow:o(Gi,l),htmlFlowData:R,htmlText:o(Gi,l),htmlTextData:R,image:o(wu),label:l,link:o(Xi),listItem:o(ku),listItemValue:p,listOrdered:o(Yi,u),listUnordered:o(Yi),paragraph:o(xu),reference:w,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Vi),strong:o(Su),thematicBreak:o(vu)},exit:{atxHeading:s(),atxHeadingSequence:A,autolink:s(),autolinkEmail:it,autolinkProtocol:$e,blockQuote:s(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:He,characterReferenceMarkerNumeric:He,characterReferenceValue:ee,characterReference:vt,codeFenced:s(y),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:E,codeIndented:s(g),codeText:s(U),codeTextData:E,data:E,definition:s(),definitionDestinationString:v,definitionLabelString:k,definitionTitleString:x,emphasis:s(),hardBreakEscape:s(C),hardBreakTrailing:s(C),htmlFlow:s(L),htmlFlowData:E,htmlText:s(q),htmlTextData:E,image:s(Z),label:Te,labelText:we,lineEnding:O,link:s(ne),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:xe,resourceDestinationString:b,resourceTitleString:ke,resource:Me,setextHeading:s(D),setextHeadingLineSequence:M,setextHeadingText:S,strong:s(),thematicBreak:s()}};Fs(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_){let I={type:"root",children:[]};const F={stack:[I],tokenStack:[],config:t,enter:a,exit:c,buffer:l,resume:f,data:n},$=[];let H=-1;for(;++H<_.length;)if(_[H][1].type==="listOrdered"||_[H][1].type==="listUnordered")if(_[H][0]==="enter")$.push(H);else{const Se=$.pop();H=i(_,Se,H)}for(H=-1;++H<_.length;){const Se=t[_[H][0]];zs.call(Se,_[H][1].type)&&Se[_[H][1].type].call(Object.assign({sliceSerialize:_[H][2].sliceSerialize},F),_[H][1])}if(F.tokenStack.length>0){const Se=F.tokenStack[F.tokenStack.length-1];(Se[1]||ol).call(F,void 0,Se[0])}for(I.position={start:Be(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:Be(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<t.transforms.length;)I=t.transforms[H](I)||I;return I}function i(_,I,F){let $=I-1,H=-1,Se=!1,We,De,_t,At;for(;++$<=F;){const ue=_[$];switch(ue[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ue[0]==="enter"?H++:H--,At=void 0;break}case"lineEndingBlank":{ue[0]==="enter"&&(We&&!At&&!H&&!_t&&(_t=$),At=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:At=void 0}if(!H&&ue[0]==="enter"&&ue[1].type==="listItemPrefix"||H===-1&&ue[0]==="exit"&&(ue[1].type==="listUnordered"||ue[1].type==="listOrdered")){if(We){let lt=$;for(De=void 0;lt--;){const Le=_[lt];if(Le[1].type==="lineEnding"||Le[1].type==="lineEndingBlank"){if(Le[0]==="exit")continue;De&&(_[De][1].type="lineEndingBlank",Se=!0),Le[1].type="lineEnding",De=lt}else if(!(Le[1].type==="linePrefix"||Le[1].type==="blockQuotePrefix"||Le[1].type==="blockQuotePrefixWhitespace"||Le[1].type==="blockQuoteMarker"||Le[1].type==="listItemIndent"))break}_t&&(!De||_t<De)&&(We._spread=!0),We.end=Object.assign({},De?_[De][1].start:ue[1].end),_.splice(De||$,0,["exit",We,ue[2]]),$++,F++}if(ue[1].type==="listItemPrefix"){const lt={type:"listItem",_spread:!1,start:Object.assign({},ue[1].start),end:void 0};We=lt,_.splice($,0,["enter",lt,ue[2]]),$++,F++,_t=void 0,At=!0}}}return _[I][1]._spread=Se,F}function o(_,I){return F;function F($){a.call(this,_($),$),I&&I.call(this,$)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(_,I,F){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([I,F||void 0]),_.position={start:Be(I.start),end:void 0}}function s(_){return I;function I(F){_&&_.call(this,F),c.call(this,F)}}function c(_,I){const F=this.stack.pop(),$=this.tokenStack.pop();if($)$[0].type!==_.type&&(I?I.call(this,_,$[0]):($[1]||ol).call(this,_,$[0]));else throw new Error("Cannot close `"+_.type+"` ("+Ot({start:_.start,end:_.end})+"): it’s not open");F.position.end=Be(_.end)}function f(){return Ri(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function p(_){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function h(){const _=this.resume(),I=this.stack[this.stack.length-1];I.lang=_}function d(){const _=this.resume(),I=this.stack[this.stack.length-1];I.meta=_}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const _=this.resume(),I=this.stack[this.stack.length-1];I.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const _=this.resume(),I=this.stack[this.stack.length-1];I.value=_.replace(/(\r?\n|\r)$/g,"")}function k(_){const I=this.resume(),F=this.stack[this.stack.length-1];F.label=I,F.identifier=_e(this.sliceSerialize(_)).toLowerCase()}function x(){const _=this.resume(),I=this.stack[this.stack.length-1];I.title=_}function v(){const _=this.resume(),I=this.stack[this.stack.length-1];I.url=_}function A(_){const I=this.stack[this.stack.length-1];if(!I.depth){const F=this.sliceSerialize(_).length;I.depth=F}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(_){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function R(_){const F=this.stack[this.stack.length-1].children;let $=F[F.length-1];(!$||$.type!=="text")&&($=Eu(),$.position={start:Be(_.start),end:void 0},F.push($)),this.stack.push($)}function E(_){const I=this.stack.pop();I.value+=this.sliceSerialize(_),I.position.end=Be(_.end)}function O(_){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const F=I.children[I.children.length-1];F.position.end=Be(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(R.call(this,_),E.call(this,_))}function C(){this.data.atHardBreak=!0}function L(){const _=this.resume(),I=this.stack[this.stack.length-1];I.value=_}function q(){const _=this.resume(),I=this.stack[this.stack.length-1];I.value=_}function U(){const _=this.resume(),I=this.stack[this.stack.length-1];I.value=_}function ne(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=I,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function Z(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=I,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function we(_){const I=this.sliceSerialize(_),F=this.stack[this.stack.length-2];F.label=$m(I),F.identifier=_e(I).toLowerCase()}function Te(){const _=this.stack[this.stack.length-1],I=this.resume(),F=this.stack[this.stack.length-1];if(this.data.inReference=!0,F.type==="link"){const $=_.children;F.children=$}else F.alt=I}function b(){const _=this.resume(),I=this.stack[this.stack.length-1];I.url=_}function ke(){const _=this.resume(),I=this.stack[this.stack.length-1];I.title=_}function Me(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function xe(_){const I=this.resume(),F=this.stack[this.stack.length-1];F.label=I,F.identifier=_e(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function He(_){this.data.characterReferenceType=_.type}function ee(_){const I=this.sliceSerialize(_),F=this.data.characterReferenceType;let $;F?($=As(I,F==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$=qt(I);const H=this.stack[this.stack.length-1];H.value+=$}function vt(_){const I=this.stack.pop();I.position.end=Be(_.end)}function $e(_){E.call(this,_);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(_)}function it(_){E.call(this,_);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(_)}function ot(){return{type:"blockquote",children:[]}}function Jt(){return{type:"code",lang:null,meta:null,value:""}}function gu(){return{type:"inlineCode",value:""}}function yu(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bu(){return{type:"emphasis",children:[]}}function Vi(){return{type:"heading",depth:0,children:[]}}function Ki(){return{type:"break"}}function Gi(){return{type:"html",value:""}}function wu(){return{type:"image",title:null,url:"",alt:null}}function Xi(){return{type:"link",title:null,url:"",children:[]}}function Yi(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function ku(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function xu(){return{type:"paragraph",children:[]}}function Su(){return{type:"strong",children:[]}}function Eu(){return{type:"text",value:""}}function vu(){return{type:"thematicBreak"}}}function Be(e){return{line:e.line,column:e.column,offset:e.offset}}function Fs(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fs(e,r):Hm(e,r)}}function Hm(e,t){let n;for(n in t)if(zs.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ol(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ot({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ot({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ot({start:t.start,end:t.end})+") is still open")}function Wm(e){const t=this;t.parser=n;function n(r){return Um(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Vm(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Km(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
39
|
+
`}]}function Gm(e,t){const n=t.value?t.value+`
|
|
40
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Xm(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ym(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qm(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Et(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function Jm(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zm(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ns(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function eg(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ns(e,t);const i={src:Et(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function tg(e,t){const n={src:Et(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ng(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function rg(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ns(e,t);const i={href:Et(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ig(e,t){const n={href:Et(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function og(e,t,n){const r=e.all(t),i=n?lg(n):js(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let u;f&&f.type==="element"&&f.tagName==="p"?u=f:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
41
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
42
|
+
`});const c={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,c),e.applyData(t,c)}function lg(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=js(n[r])}return t}function js(e){const t=e.spread;return t??e.children.length>1}function ag(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function sg(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ug(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cg(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fg(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Ti(t.children[1]),s=bs(t.children[t.children.length-1]);a&&s&&(l.position={start:a,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function hg(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let s=-1;const c=[];for(;++s<a;){const u=t.children[s],p={},h=l?l[s]:void 0;h&&(p.align=h);let d={type:"element",tagName:o,properties:p,children:[]};u&&(d.children=e.all(u),e.patch(u,d),d=e.applyData(u,d)),c.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function pg(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ll=9,al=32;function dg(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(sl(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(sl(t.slice(i),i>0,!1)),o.join("")}function sl(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===ll||o===al;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===ll||o===al;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function mg(e,t){const n={type:"text",value:dg(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function gg(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const yg={blockquote:Vm,break:Km,code:Gm,delete:Xm,emphasis:Ym,footnoteReference:Qm,heading:Jm,html:Zm,imageReference:eg,image:tg,inlineCode:ng,linkReference:rg,link:ig,listItem:og,list:ag,paragraph:sg,root:ug,strong:cg,table:fg,tableCell:pg,tableRow:hg,text:mg,thematicBreak:gg,toml:on,yaml:on,definition:on,footnoteDefinition:on};function on(){}const $s=-1,er=0,Mt=1,In=2,Fi=3,Ni=4,ji=5,$i=6,Bs=7,Us=8,bg=typeof self=="object"?self:globalThis,ul=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new bg[e](t)},wg=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case er:case $s:return n(l,i);case Mt:{const a=n([],i);for(const s of l)a.push(r(s));return a}case In:{const a=n({},i);for(const[s,c]of l)a[r(s)]=r(c);return a}case Fi:return n(new Date(l),i);case Ni:{const{source:a,flags:s}=l;return n(new RegExp(a,s),i)}case ji:{const a=n(new Map,i);for(const[s,c]of l)a.set(r(s),r(c));return a}case $i:{const a=n(new Set,i);for(const s of l)a.add(r(s));return a}case Bs:{const{name:a,message:s}=l;return n(ul(a,s),i)}case Us:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(ul(o,l),i)};return r},cl=e=>wg(new Map,e)(0),at="",{toString:kg}={},{keys:xg}=Object,Ct=e=>{const t=typeof e;if(t!=="object"||!e)return[er,t];const n=kg.call(e).slice(8,-1);switch(n){case"Array":return[Mt,at];case"Object":return[In,at];case"Date":return[Fi,at];case"RegExp":return[Ni,at];case"Map":return[ji,at];case"Set":return[$i,at];case"DataView":return[Mt,n]}return n.includes("Array")?[Mt,n]:n.includes("Error")?[Bs,n]:[In,n]},ln=([e,t])=>e===er&&(t==="function"||t==="symbol"),Sg=(e,t,n,r)=>{const i=(l,a)=>{const s=r.push(l)-1;return n.set(a,s),s},o=l=>{if(n.has(l))return n.get(l);let[a,s]=Ct(l);switch(a){case er:{let f=l;switch(s){case"bigint":a=Us,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([$s],l)}return i([a,f],l)}case Mt:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const f=[],u=i([a,f],l);for(const p of l)f.push(o(p));return u}case In:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],u=i([a,f],l);for(const p of xg(l))(e||!ln(Ct(l[p])))&&f.push([o(p),o(l[p])]);return u}case Fi:return i([a,l.toISOString()],l);case Ni:{const{source:f,flags:u}=l;return i([a,{source:f,flags:u}],l)}case ji:{const f=[],u=i([a,f],l);for(const[p,h]of l)(e||!(ln(Ct(p))||ln(Ct(h))))&&f.push([o(p),o(h)]);return u}case $i:{const f=[],u=i([a,f],l);for(const p of l)(e||!ln(Ct(p)))&&f.push(o(p));return u}}const{message:c}=l;return i([a,{name:s,message:c}],l)};return o},fl=(e,{json:t,lossy:n}={})=>{const r=[];return Sg(!(t||n),!!t,new Map,r)(e),r},On=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?cl(fl(e,t)):structuredClone(e):(e,t)=>cl(fl(e,t));function Eg(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function vg(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _g(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Eg,r=e.options.footnoteBackLabel||vg,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[s]);if(!c)continue;const f=e.all(c),u=String(c.identifier).toUpperCase(),p=Et(u.toLowerCase());let h=0;const d=[],m=e.footnoteCounts.get(u);for(;m!==void 0&&++h<=m;){d.length>0&&d.push({type:"text",value:" "});let k=typeof n=="string"?n:n(s,h);typeof k=="string"&&(k={type:"text",value:k}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const y=f[f.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const k=y.children[y.children.length-1];k&&k.type==="text"?k.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...d)}else f.push(...d);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(c,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...On(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
43
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
44
|
+
`}]}}const tr=function(e){if(e==null)return Ig;if(typeof e=="function")return nr(e);if(typeof e=="object")return Array.isArray(e)?Ag(e):Pg(e);if(typeof e=="string")return Cg(e);throw new Error("Expected function, string, or object as test")};function Ag(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=tr(e[n]);return nr(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Pg(e){const t=e;return nr(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Cg(e){return nr(t);function t(n){return n&&n.type===e}}function nr(e){return t;function t(n,r,i){return!!(Og(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ig(){return!0}function Og(e){return e!==null&&typeof e=="object"&&"type"in e}const qs=[],Tg=!0,ti=!1,Mg="skip";function Hs(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=tr(i),l=r?-1:1;a(e,void 0,[])();function a(s,c,f){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const h=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=qs,d,m,y;if((!t||o(s,c,f[f.length-1]||void 0))&&(h=Dg(n(s,f)),h[0]===ti))return h;if("children"in s&&s.children){const g=s;if(g.children&&h[0]!==Mg)for(m=(r?g.children.length:-1)+l,y=f.concat(g);m>-1&&m<g.children.length;){const k=g.children[m];if(d=a(k,m,y)(),d[0]===ti)return d;m=typeof d[1]=="number"?d[1]:m+l}}return h}}}function Dg(e){return Array.isArray(e)?e:typeof e=="number"?[Tg,e]:e==null?qs:[e]}function Bi(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Hs(e,o,a,i);function a(s,c){const f=c[c.length-1],u=f?f.children.indexOf(s):void 0;return l(s,u,f)}}const ni={}.hasOwnProperty,Lg={};function Rg(e,t){const n=t||Lg,r=new Map,i=new Map,o=new Map,l={...yg,...n.handlers},a={all:c,applyData:Fg,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:zg,wrap:jg};return Bi(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const u=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();u.has(p)||u.set(p,f)}}),a;function s(f,u){const p=f.type,h=a.handlers[p];if(ni.call(a.handlers,p)&&h)return h(a,f,u);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:m,...y}=f,g=On(y);return g.children=a.all(f),g}return On(f)}return(a.options.unknownHandler||Ng)(a,f,u)}function c(f){const u=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=a.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=hl(d.value)),!Array.isArray(d)&&d.type==="element")){const m=d.children[0];m&&m.type==="text"&&(m.value=hl(m.value))}Array.isArray(d)?u.push(...d):u.push(d)}}}return u}}function zg(e,t){e.position&&(t.position=Ep(e))}function Fg(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,On(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ng(e,t){const n=t.data||{},r="value"in t&&!(ni.call(n,"hProperties")||ni.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)}function jg(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
45
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
46
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
47
|
+
`}),n}function hl(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function pl(e,t){const n=Rg(e,t),r=n.one(e,void 0),i=_g(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
48
|
+
`},i),o}function $g(e,t){return e&&"run"in e?async function(n,r){const i=pl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return pl(n,{file:r,...e||t})}}function dl(e){if(e)throw e}var pn=Object.prototype.hasOwnProperty,Ws=Object.prototype.toString,ml=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,yl=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Ws.call(t)==="[object Array]"},bl=function(t){if(!t||Ws.call(t)!=="[object Object]")return!1;var n=pn.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&pn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||pn.call(t,i)},wl=function(t,n){ml&&n.name==="__proto__"?ml(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},kl=function(t,n){if(n==="__proto__")if(pn.call(t,n)){if(gl)return gl(t,n).value}else return;return t[n]},Bg=function e(){var t,n,r,i,o,l,a=arguments[0],s=1,c=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<c;++s)if(t=arguments[s],t!=null)for(n in t)r=kl(a,n),i=kl(t,n),a!==i&&(f&&i&&(bl(i)||(o=yl(i)))?(o?(o=!1,l=r&&yl(r)?r:[]):l=r&&bl(r)?r:{},wl(a,{name:n,newValue:e(f,l,i)})):typeof i<"u"&&wl(a,{name:n,newValue:i}));return a};const wr=Ne(Bg);function ri(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ug(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...c){const f=e[++o];let u=-1;if(s){l(s);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,f?qg(f,a)(...c):l(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function qg(e,t){let n;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(c){const f=c;if(a&&n)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const Pe={basename:Hg,dirname:Wg,extname:Vg,join:Kg,sep:"/"};function Hg(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Qt(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Wg(e){if(Qt(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Vg(e){Qt(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Kg(...e){let t=-1,n;for(;++t<e.length;)Qt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Gg(n)}function Gg(e){Qt(e);const t=e.codePointAt(0)===47;let n=Xg(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Xg(e,t){let n="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function Qt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Yg={cwd:Qg};function Qg(){return"/"}function ii(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Jg(e){if(typeof e=="string")e=new URL(e);else if(!ii(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Zg(e)}function Zg(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const kr=["history","path","basename","stem","extname","dirname"];class Vs{constructor(t){let n;t?ii(t)?n={path:t}:typeof t=="string"||ey(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Yg.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<kr.length;){const o=kr[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)kr.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Pe.basename(this.path):void 0}set basename(t){Sr(t,"basename"),xr(t,"basename"),this.path=Pe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Pe.dirname(this.path):void 0}set dirname(t){xl(this.basename,"dirname"),this.path=Pe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Pe.extname(this.path):void 0}set extname(t){if(xr(t,"extname"),xl(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Pe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ii(t)&&(t=Jg(t)),Sr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Pe.basename(this.path,this.extname):void 0}set stem(t){Sr(t,"stem"),xr(t,"stem"),this.path=Pe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ie(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function xr(e,t){if(e&&e.includes(Pe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Pe.sep+"`")}function Sr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ey(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ty=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},ny={}.hasOwnProperty;class Ui extends ty{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=Ug()}copy(){const t=new Ui;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(wr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(_r("data",this.frozen),this.namespace[t]=n,this):ny.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_r("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=an(t),r=this.parser||this.Parser;return Er("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Er("process",this.parser||this.Parser),vr("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=an(t),s=r.parse(a);r.run(s,a,function(f,u,p){if(f||!u||!p)return c(f);const h=u,d=r.stringify(h,p);oy(d)?p.value=d:p.result=d,c(f,p)});function c(f,u){f||!u?l(f):o?o(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),Er("processSync",this.parser||this.Parser),vr("processSync",this.compiler||this.Compiler),this.process(t,i),El("processSync","process",n),r;function i(o,l){n=!0,dl(o),r=l}}run(t,n,r){Sl(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=an(n);i.run(t,s,c);function c(f,u,p){const h=u||t;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),El("runSync","run",r),i;function o(l,a){dl(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=an(n),i=this.compiler||this.Compiler;return vr("stringify",i),Sl(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(_r("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")s(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...u]=c;s(f,u)}else l(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function l(c){if(!("plugins"in c)&&!("settings"in c))throw new 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");a(c.plugins),c.settings&&(i.settings=wr(!0,i.settings,c.settings))}function a(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const u=c[f];o(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function s(c,f){let u=-1,p=-1;for(;++u<r.length;)if(r[u][0]===c){p=u;break}if(p===-1)r.push([c,...f]);else if(f.length>0){let[h,...d]=f;const m=r[p][1];ri(m)&&ri(h)&&(h=wr(!0,m,h)),r[p]=[c,h,...d]}}}}const ry=new Ui().freeze();function Er(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _r(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Sl(e){if(!ri(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function El(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function an(e){return iy(e)?e:new Vs(e)}function iy(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function oy(e){return typeof e=="string"||ly(e)}function ly(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ay="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vl=[],_l={allowDangerousHtml:!0},sy=/^(https?|ircs?|mailto|xmpp)$/i,uy=[{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 ew(e){const t=cy(e),n=fy(e);return hy(t.runSync(t.parse(n),n),e)}function cy(e){const t=e.rehypePlugins||vl,n=e.remarkPlugins||vl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._l}:_l;return ry().use(Wm).use(n).use($g,r).use(t)}function fy(e){const t=e.children||"",n=new Vs;return typeof t=="string"&&(n.value=t),n}function hy(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||py;for(const f of uy)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+ay+f.id,void 0);return Bi(e,c),Cp(e,{Fragment:ir.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ir.jsx,jsxs:ir.jsxs,passKeys:!0,passNode:!0});function c(f,u,p){if(f.type==="raw"&&p&&typeof u=="number")return l?p.children.splice(u,1):p.children[u]={type:"text",value:f.value},u;if(f.type==="element"){let h;for(h in gr)if(Object.hasOwn(gr,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],m=gr[h];(m===null||m.includes(f.tagName))&&(f.properties[h]=s(String(d||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof u=="number"&&(h=!r(f,u,p)),h&&p&&typeof u=="number")return a&&f.children?p.children.splice(u,1,...f.children):p.children.splice(u,1),u}}}function py(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||sy.test(e.slice(0,t))?e:""}function Al(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function dy(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function my(e,t,n){const i=tr((n||{}).ignore||[]),o=gy(t);let l=-1;for(;++l<o.length;)Hs(e,"text",a);function a(c,f){let u=-1,p;for(;++u<f.length;){const h=f[u],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return s(c,f)}function s(c,f){const u=f[f.length-1],p=o[l][0],h=o[l][1];let d=0;const y=u.children.indexOf(c);let g=!1,k=[];p.lastIndex=0;let x=p.exec(c.value);for(;x;){const v=x.index,A={index:x.index,input:x.input,stack:[...f,c]};let S=h(...x,A);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=v+1:(d!==v&&k.push({type:"text",value:c.value.slice(d,v)}),Array.isArray(S)?k.push(...S):S&&k.push(S),d=v+x[0].length,g=!0),!p.global)break;x=p.exec(c.value)}return g?(d<c.value.length&&k.push({type:"text",value:c.value.slice(d)}),u.children.splice(y,1,...k)):k=[c],y+k.length}}function gy(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([yy(i[0]),by(i[1])])}return t}function yy(e){return typeof e=="string"?new RegExp(dy(e),"g"):e}function by(e){return typeof e=="function"?e:function(){return e}}const Ar="phrasing",Pr=["autolink","link","image","label"];function wy(){return{transforms:[Ay],enter:{literalAutolink:xy,literalAutolinkEmail:Cr,literalAutolinkHttp:Cr,literalAutolinkWww:Cr},exit:{literalAutolink:_y,literalAutolinkEmail:vy,literalAutolinkHttp:Sy,literalAutolinkWww:Ey}}}function ky(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ar,notInConstruct:Pr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ar,notInConstruct:Pr},{character:":",before:"[ps]",after:"\\/",inConstruct:Ar,notInConstruct:Pr}]}}function xy(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Cr(e){this.config.enter.autolinkProtocol.call(this,e)}function Sy(e){this.config.exit.autolinkProtocol.call(this,e)}function Ey(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function vy(e){this.config.exit.autolinkEmail.call(this,e)}function _y(e){this.exit(e)}function Ay(e){my(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Py],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Cy]],{ignore:["link","linkReference"]})}function Py(e,t,n,r,i){let o="";if(!Ks(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Iy(n)))return!1;const l=Oy(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function Cy(e,t,n,r){return!Ks(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Iy(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Oy(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Al(e,"(");let o=Al(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Ks(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||nt(n)||Jn(n))&&(!t||n!==47)}Gs.peek=jy;function Ty(){this.buffer()}function My(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Dy(){this.buffer()}function Ly(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ry(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=_e(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zy(e){this.exit(e)}function Fy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=_e(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ny(e){this.exit(e)}function jy(){return"["}function Gs(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function $y(){return{enter:{gfmFootnoteCallString:Ty,gfmFootnoteCall:My,gfmFootnoteDefinitionLabelString:Dy,gfmFootnoteDefinition:Ly},exit:{gfmFootnoteCallString:Ry,gfmFootnoteCall:zy,gfmFootnoteDefinitionLabelString:Fy,gfmFootnoteDefinition:Ny}}}function By(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Gs},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const c=o.enter("footnoteDefinition"),f=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
49
|
+
`:" ")+o.indentLines(o.containerFlow(r,a.current()),t?Xs:Uy))),c(),s}}function Uy(e,t,n){return t===0?e:Xs(e,t,n)}function Xs(e,t,n){return(n?"":" ")+e}const qy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ys.peek=Gy;function Hy(){return{canContainEols:["delete"],enter:{strikethrough:Vy},exit:{strikethrough:Ky}}}function Wy(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qy}],handlers:{delete:Ys}}}function Vy(e){this.enter({type:"delete",children:[]},e)}function Ky(e){this.exit(e)}function Ys(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Gy(){return"~"}function Xy(e){return e.length}function Yy(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Xy,o=[],l=[],a=[],s=[];let c=0,f=-1;for(;++f<e.length;){const m=[],y=[];let g=-1;for(e[f].length>c&&(c=e[f].length);++g<e[f].length;){const k=Qy(e[f][g]);if(n.alignDelimiters!==!1){const x=i(k);y[g]=x,(s[g]===void 0||x>s[g])&&(s[g]=x)}m.push(k)}l[f]=m,a[f]=y}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<c;)o[u]=Pl(r[u]);else{const m=Pl(r);for(;++u<c;)o[u]=m}u=-1;const p=[],h=[];for(;++u<c;){const m=o[u];let y="",g="";m===99?(y=":",g=":"):m===108?y=":":m===114&&(g=":");let k=n.alignDelimiters===!1?1:Math.max(1,s[u]-y.length-g.length);const x=y+"-".repeat(k)+g;n.alignDelimiters!==!1&&(k=y.length+k+g.length,k>s[u]&&(s[u]=k),h[u]=k),p[u]=x}l.splice(1,0,p),a.splice(1,0,h),f=-1;const d=[];for(;++f<l.length;){const m=l[f],y=a[f];u=-1;const g=[];for(;++u<c;){const k=m[u]||"";let x="",v="";if(n.alignDelimiters!==!1){const A=s[u]-(y[u]||0),S=o[u];S===114?x=" ".repeat(A):S===99?A%2?(x=" ".repeat(A/2+.5),v=" ".repeat(A/2-.5)):(x=" ".repeat(A/2),v=x):v=" ".repeat(A)}n.delimiterStart!==!1&&!u&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||u)&&g.push(" "),n.alignDelimiters!==!1&&g.push(x),g.push(k),n.alignDelimiters!==!1&&g.push(v),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||u!==c-1)&&g.push("|")}d.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return d.join(`
|
|
50
|
+
`)}function Qy(e){return e==null?"":String(e)}function Pl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Jy(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),Zy);return i(),l}function Zy(e,t,n){return">"+(n?"":" ")+e}function eb(e,t){return Cl(e,t.inConstruct,!0)&&!Cl(e,t.notInConstruct,!1)}function Cl(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Il(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
51
|
+
`&&eb(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
52
|
+
`}function tb(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function nb(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rb(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function ib(e,t,n,r){const i=rb(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(nb(e,n)){const u=n.enter("codeIndented"),p=n.indentLines(o,ob);return u(),p}const a=n.createTracker(r),s=i.repeat(Math.max(tb(o,i)+1,3)),c=n.enter("codeFenced");let f=a.move(s);if(e.lang){const u=n.enter(`codeFencedLang${l}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),u()}if(e.lang&&e.meta){const u=n.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
|
53
|
+
`,encode:["`"],...a.current()})),u()}return f+=a.move(`
|
|
54
|
+
`),o&&(f+=a.move(o+`
|
|
55
|
+
`)),f+=a.move(s),c(),f}function ob(e,t,n){return(n?"":" ")+e}function qi(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lb(e,t,n,r){const i=qi(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
56
|
+
`,...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),a()),l(),c}function ab(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Wt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Tn(e,t,n){const r=wt(e),i=wt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Qs.peek=sb;function Qs(e,t,n,r){const i=ab(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const c=s.charCodeAt(0),f=Tn(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(s=Wt(c)+s.slice(1));const u=s.charCodeAt(s.length-1),p=Tn(r.after.charCodeAt(0),u,i);p.inside&&(s=s.slice(0,-1)+Wt(u));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function sb(e,t,n){return n.options.emphasis||"*"}function ub(e,t){let n=!1;return Bi(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ti}),!!((!e.depth||e.depth<3)&&Ri(e)&&(t.options.setext||n))}function cb(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(ub(e,n)){const f=n.enter("headingSetext"),u=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
|
|
57
|
+
`,after:`
|
|
58
|
+
`});return u(),f(),p+`
|
|
59
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
60
|
+
`))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");o.move(l+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
61
|
+
`,...o.current()});return/^[\t ]/.test(c)&&(c=Wt(c.charCodeAt(0))+c.slice(1)),c=c?l+" "+c:l,n.options.closeAtx&&(c+=" "+l),s(),a(),c}Js.peek=fb;function Js(e){return e.value||""}function fb(){return"<"}Zs.peek=hb;function Zs(e,t,n,r){const i=qi(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),a()),c+=s.move(")"),l(),c}function hb(){return"!"}eu.peek=pb;function eu(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const c=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(c+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const u=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!c||c!==u?s+=a.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function pb(){return"!"}tu.peek=db;function tu(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);let s;if(l.atBreak)for(;s=a.exec(r);){let c=s.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(s.index+1)}}return i+r+i}function db(){return"`"}function nu(e,t){const n=Ri(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ru.peek=mb;function ru(e,t,n,r){const i=qi(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,s;if(nu(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let u=l.move("<");return u+=l.move(n.containerPhrasing(e,{before:u,after:">",...l.current()})),u+=l.move(">"),a(),n.stack=f,u}a=n.enter("link"),s=n.enter("label");let c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function mb(e,t,n){return nu(e,n)?"<":"["}iu.peek=gb;function iu(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(c+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const u=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!c||c!==u?s+=a.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function gb(){return"["}function Hi(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function yb(e){const t=Hi(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function bb(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ou(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function wb(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?bb(n):Hi(n);const a=e.ordered?l==="."?")":".":yb(n);let s=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),ou(n)===l&&f){let u=-1;for(;++u<e.children.length;){const p=e.children[u];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;const c=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),c}function kb(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xb(e,t,n,r){const i=kb(n);let o=n.bulletCurrent||Hi(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),f);return s(),c;function f(u,p,h){return p?(h?"":" ".repeat(l))+u:(h?o:o+" ".repeat(l-o.length))+u}}function Sb(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const Eb=tr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function vb(e,t,n,r){return(e.children.some(function(l){return Eb(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function _b(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}lu.peek=Ab;function lu(e,t,n,r){const i=_b(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const c=s.charCodeAt(0),f=Tn(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(s=Wt(c)+s.slice(1));const u=s.charCodeAt(s.length-1),p=Tn(r.after.charCodeAt(0),u,i);p.inside&&(s=s.slice(0,-1)+Wt(u));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function Ab(e,t,n){return n.options.strong||"*"}function Pb(e,t,n,r){return n.safe(e.value,r)}function Cb(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Ib(e,t,n){const r=(ou(n)+(n.options.ruleSpaces?" ":"")).repeat(Cb(n));return n.options.ruleSpaces?r.slice(0,-1):r}const au={blockquote:Jy,break:Il,code:ib,definition:lb,emphasis:Qs,hardBreak:Il,heading:cb,html:Js,image:Zs,imageReference:eu,inlineCode:tu,link:ru,linkReference:iu,list:wb,listItem:xb,paragraph:Sb,root:vb,strong:lu,text:Pb,thematicBreak:Ib};function Ob(){return{enter:{table:Tb,tableData:Ol,tableHeader:Ol,tableRow:Db},exit:{codeText:Lb,table:Mb,tableData:Ir,tableHeader:Ir,tableRow:Ir}}}function Tb(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Mb(e){this.exit(e),this.data.inTable=void 0}function Db(e){this.enter({type:"tableRow",children:[]},e)}function Ir(e){this.exit(e)}function Ol(e){this.enter({type:"tableCell",children:[]},e)}function Lb(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Rb));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Rb(e,t){return t==="|"?t:e}function zb(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
62
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:a}};function l(h,d,m,y){return c(f(h,m,y),h.align)}function a(h,d,m,y){const g=u(h,m,y),k=c([g]);return k.slice(0,k.indexOf(`
|
|
63
|
+
`))}function s(h,d,m,y){const g=m.enter("tableCell"),k=m.enter("phrasing"),x=m.containerPhrasing(h,{...y,before:o,after:o});return k(),g(),x}function c(h,d){return Yy(h,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(h,d,m){const y=h.children;let g=-1;const k=[],x=d.enter("table");for(;++g<y.length;)k[g]=u(y[g],d,m);return x(),k}function u(h,d,m){const y=h.children;let g=-1;const k=[],x=d.enter("tableRow");for(;++g<y.length;)k[g]=s(y[g],h,d,m);return x(),k}function p(h,d,m){let y=au.inlineCode(h,d,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function Fb(){return{exit:{taskListCheckValueChecked:Tl,taskListCheckValueUnchecked:Tl,paragraph:jb}}}function Nb(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$b}}}function Tl(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function jb(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function $b(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let s=au.listItem(e,t,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(f){return f+l}}function Bb(){return[wy(),$y(),Hy(),Ob(),Fb()]}function Ub(e){return{extensions:[ky(),By(e),Wy(),zb(e),Nb()]}}const qb={tokenize:Xb,partial:!0},su={tokenize:Yb,partial:!0},uu={tokenize:Qb,partial:!0},cu={tokenize:Jb,partial:!0},Hb={tokenize:Zb,partial:!0},fu={name:"wwwAutolink",tokenize:Kb,previous:pu},hu={name:"protocolAutolink",tokenize:Gb,previous:du},je={name:"emailAutolink",tokenize:Vb,previous:mu},Oe={};function Wb(){return{text:Oe}}let Ve=48;for(;Ve<123;)Oe[Ve]=je,Ve++,Ve===58?Ve=65:Ve===91&&(Ve=97);Oe[43]=je;Oe[45]=je;Oe[46]=je;Oe[95]=je;Oe[72]=[je,hu];Oe[104]=[je,hu];Oe[87]=[je,fu];Oe[119]=[je,fu];function Vb(e,t,n){const r=this;let i,o;return l;function l(u){return!oi(u)||!mu.call(r,r.previous)||Wi(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(u))}function a(u){return oi(u)?(e.consume(u),a):u===64?(e.consume(u),s):n(u)}function s(u){return u===46?e.check(Hb,f,c)(u):u===45||u===95||re(u)?(o=!0,e.consume(u),s):f(u)}function c(u){return e.consume(u),i=!0,s}function f(u){return o&&i&&oe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function Kb(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!pu.call(r,r.previous)||Wi(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(qb,e.attempt(su,e.attempt(uu,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Gb(e,t,n){const r=this;let i="",o=!1;return l;function l(u){return(u===72||u===104)&&du.call(r,r.previous)&&!Wi(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),a):n(u)}function a(u){if(oe(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),a;if(u===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(u),s}return n(u)}function s(u){return u===47?(e.consume(u),o?c:(o=!0,s)):n(u)}function c(u){return u===null||Cn(u)||V(u)||nt(u)||Jn(u)?n(u):e.attempt(su,e.attempt(uu,f),n)(u)}function f(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function Xb(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function Yb(e,t,n){let r,i,o;return l;function l(c){return c===46||c===95?e.check(cu,s,a)(c):c===null||V(c)||nt(c)||c!==45&&Jn(c)?s(c):(o=!0,e.consume(c),l)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),l}function s(c){return i||r||!o?n(c):t(c)}}function Qb(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(cu,t,o)(l):l===null||V(l)||nt(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Jb(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||V(a)||nt(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||V(a)||nt(a)?t(a):r(a)}function o(a){return oe(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):oe(a)?(e.consume(a),l):n(a)}}function Zb(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return re(o)?n(o):t(o)}}function pu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||V(e)}function du(e){return!oe(e)}function mu(e){return!(e===47||oi(e))}function oi(e){return e===43||e===45||e===46||e===95||re(e)}function Wi(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const e1={tokenize:s1,partial:!0};function t1(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:o1,continuation:{tokenize:l1},exit:a1}},text:{91:{name:"gfmFootnoteCall",tokenize:i1},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:n1,resolveTo:r1}}}}function n1(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return n(s);const c=_e(r.sliceSerialize({start:l.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function r1(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function i1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),s}function s(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(o>999||u===93&&!l||u===null||u===91||V(u))return n(u);if(u===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(_e(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return V(u)||(l=!0),o++,e.consume(u),u===92?f:c}function f(u){return u===91||u===92||u===93?(e.consume(u),o++,c):c(u)}}function o1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(d)}function f(d){if(l>999||d===93&&!a||d===null||d===91||V(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return o=_e(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return V(d)||(a=!0),l++,e.consume(d),d===92?u:f}function u(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),B(e,h,"gfmFootnoteDefinitionWhitespace")):n(d)}function h(d){return t(d)}}function l1(e,t,n){return e.check(Yt,t,e.attempt(e1,t,n))}function a1(e){e.exit("gfmFootnoteDefinition")}function s1(e,t,n){const r=this;return B(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function u1(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let c=s;for(;c--;)if(l[c][0]==="exit"&&l[c][1].type==="strikethroughSequenceTemporary"&&l[c][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[c][1].end.offset-l[c][1].start.offset){l[s][1].type="strikethroughSequence",l[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[c][1].start),end:Object.assign({},l[s][1].end)},u={type:"strikethroughText",start:Object.assign({},l[c][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",f,a],["enter",l[c][1],a],["exit",l[c][1],a],["enter",u,a]],h=a.parser.constructs.insideSpan.null;h&&de(p,p.length,0,Zn(h,l.slice(c+1,s),a)),de(p,p.length,0,[["exit",u,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",f,a]]),de(l,c-1,s-c+3,p),s=c+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const c=this.previous,f=this.events;let u=0;return p;function p(d){return c===126&&f[f.length-1][1].type!=="characterEscape"?s(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const m=wt(c);if(d===126)return u>1?s(d):(l.consume(d),u++,h);if(u<2&&!n)return s(d);const y=l.exit("strikethroughSequenceTemporary"),g=wt(d);return y._open=!g||g===2&&!!m,y._close=!m||m===2&&!!g,a(d)}}}class c1{constructor(){this.map=[]}add(t,n,r){f1(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function f1(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function h1(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function p1(){return{flow:{null:{name:"table",tokenize:d1,resolveAll:m1}}}}function d1(e,t,n){const r=this;let i=0,o=0,l;return a;function a(E){let O=r.events.length-1;for(;O>-1;){const q=r.events[O][1].type;if(q==="lineEnding"||q==="linePrefix")O--;else break}const C=O>-1?r.events[O][1].type:null,L=C==="tableHead"||C==="tableRow"?S:s;return L===S&&r.parser.lazy[r.now().line]?n(E):L(E)}function s(E){return e.enter("tableHead"),e.enter("tableRow"),c(E)}function c(E){return E===124||(l=!0,o+=1),f(E)}function f(E){return E===null?n(E):z(E)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),h):n(E):j(E)?B(e,f,"whitespace")(E):(o+=1,l&&(l=!1,i+=1),E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),u(E)))}function u(E){return E===null||E===124||V(E)?(e.exit("data"),f(E)):(e.consume(E),E===92?p:u)}function p(E){return E===92||E===124?(e.consume(E),u):u(E)}function h(E){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(E):(e.enter("tableDelimiterRow"),l=!1,j(E)?B(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):d(E))}function d(E){return E===45||E===58?y(E):E===124?(l=!0,e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),m):A(E)}function m(E){return j(E)?B(e,y,"whitespace")(E):y(E)}function y(E){return E===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),g):E===45?(o+=1,g(E)):E===null||z(E)?v(E):A(E)}function g(E){return E===45?(e.enter("tableDelimiterFiller"),k(E)):A(E)}function k(E){return E===45?(e.consume(E),k):E===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(E))}function x(E){return j(E)?B(e,v,"whitespace")(E):v(E)}function v(E){return E===124?d(E):E===null||z(E)?!l||i!==o?A(E):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(E)):A(E)}function A(E){return n(E)}function S(E){return e.enter("tableRow"),M(E)}function M(E){return E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),M):E===null||z(E)?(e.exit("tableRow"),t(E)):j(E)?B(e,M,"whitespace")(E):(e.enter("data"),D(E))}function D(E){return E===null||E===124||V(E)?(e.exit("data"),M(E)):(e.consume(E),E===92?R:D)}function R(E){return E===92||E===124?(e.consume(E),D):D(E)}}function m1(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,c,f,u;const p=new c1;for(;++n<e.length;){const h=e[n],d=h[1];h[0]==="enter"?d.type==="tableHead"?(a=!1,s!==0&&(Ml(p,t,s,c,f),f=void 0,s=0),c={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",c,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,u=void 0,o=[0,0,0,0],l=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",f,t]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],u=sn(p,t,o,i,void 0,u),o=[0,0,0,0]),l[2]=n)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],u=sn(p,t,o,i,void 0,u)),o=l,l=[o[1],n,0,0])):d.type==="tableHead"?(a=!0,s=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(s=n,o[1]!==0?(l[0]=l[1],u=sn(p,t,o,i,n,u)):l[1]!==0&&(u=sn(p,t,l,i,n,u)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&Ml(p,t,s,c,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=h1(t.events,n))}return e}function sn(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},ut(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=ut(t.events,n[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=ut(t.events,n[2]),f=ut(t.events,n[3]),u={type:a,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,m=n[3]-n[2]-1;e.add(d,m,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return i!==void 0&&(o.end=Object.assign({},ut(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Ml(e,t,n,r,i){const o=[],l=ut(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function ut(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const g1={name:"tasklistCheck",tokenize:b1};function y1(){return{text:{91:g1}}}function b1(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return V(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return z(s)?t(s):j(s)?e.check({tokenize:w1},t,n)(s):n(s)}}function w1(e,t,n){return B(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function k1(e){return _s([Wb(),t1(),u1(e),p1(),y1()])}const x1={};function tw(e){const t=this,n=e||x1,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(k1(n)),o.push(Bb()),l.push(Ub(n))}export{ct as A,N1 as B,z1 as C,H1 as D,V1 as E,Dc as F,tf as G,Q1 as H,W1 as I,X1 as J,Y1 as K,J1 as L,Z1 as M,ew as N,tw as O,U1 as P,To as _,C1 as a,v1 as b,Dl as c,I1 as d,O1 as e,Pc as f,A1 as g,D1 as h,ft as i,un as j,F1 as k,R1 as l,_1 as m,Gc as n,$1 as o,Mn as p,B1 as q,P1 as r,qu as s,j1 as t,T1 as u,q1 as v,M1 as w,K1 as x,G1 as y,yt as z};
|
|
64
|
+
//# sourceMappingURL=vendor-CMMjVdZs.js.map
|