nextclaw 0.8.42 → 0.8.45
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/package.json +2 -2
- package/ui-dist/assets/{ChannelsList-DKiedAFa.js → ChannelsList-CroolNE8.js} +1 -1
- package/ui-dist/assets/{ChatPage-BwNLpkSy.js → ChatPage-CNrt5Gfh.js} +1 -1
- package/ui-dist/assets/{CronConfig-DS4SLvdJ.js → CronConfig-CqjAHF25.js} +1 -1
- package/ui-dist/assets/{DocBrowser-GX0i3zMz.js → DocBrowser-JxtaErnQ.js} +1 -1
- package/ui-dist/assets/{MarketplacePage-Cfary3pL.js → MarketplacePage-CwRpEHu7.js} +1 -1
- package/ui-dist/assets/ModelConfig-0bbUHFSf.js +1 -0
- package/ui-dist/assets/ProvidersList-BluNat2q.js +1 -0
- package/ui-dist/assets/{RuntimeConfig-BPFqqOmo.js → RuntimeConfig-IfToQkFH.js} +1 -1
- package/ui-dist/assets/{SecretsConfig-817qoOc8.js → SecretsConfig-BkizgSNf.js} +2 -2
- package/ui-dist/assets/{SessionsConfig-DSz76nPB.js → SessionsConfig-CjVmna9f.js} +1 -1
- package/ui-dist/assets/{card-DsXZnE66.js → card-FVpEr1qe.js} +1 -1
- package/ui-dist/assets/{dialog-CM-OB-VU.js → dialog-o8XweWHQ.js} +2 -2
- package/ui-dist/assets/index-nZ3tdMe1.js +2 -0
- package/ui-dist/assets/{label-BryQW6Hh.js → label-PpMv4yho.js} +1 -1
- package/ui-dist/assets/{logos-DpQfWN7T.js → logos-B2FZM2a7.js} +1 -1
- package/ui-dist/assets/{page-layout-CljvdClt.js → page-layout-DXAYLIUr.js} +1 -1
- package/ui-dist/assets/{switch-DK9xeFoj.js → switch-CGhksmrM.js} +1 -1
- package/ui-dist/assets/{tabs-custom-BWSgRC2i.js → tabs-custom-4AOSVaDz.js} +1 -1
- package/ui-dist/assets/useConfig-CPpZMJSX.js +6 -0
- package/ui-dist/assets/{useConfirmDialog-CeUaLKWy.js → useConfirmDialog-DGWSgJUB.js} +1 -1
- package/ui-dist/assets/{vendor-CrNxGKd2.js → vendor-C8fQ0Vej.js} +75 -70
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/ModelConfig-DqA1Fpq1.js +0 -1
- package/ui-dist/assets/ProvidersList-Bp8j2dHz.js +0 -1
- package/ui-dist/assets/index-BDnLuH5V.js +0 -2
- package/ui-dist/assets/useConfig-Cr9T194r.js +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextclaw",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.45",
|
|
4
4
|
"description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"chokidar": "^3.6.0",
|
|
40
40
|
"commander": "^12.1.0",
|
|
41
41
|
"@nextclaw/core": "^0.6.38",
|
|
42
|
-
"@nextclaw/server": "^0.5.
|
|
42
|
+
"@nextclaw/server": "^0.5.22",
|
|
43
43
|
"@nextclaw/openclaw-compat": "^0.1.29"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as k,j as a,ad as ae,M as I,ae as A,af as S,K as te,a0 as ne,ab as le,ag as se,ah as oe,ai as re,n as K,aj as ce,ak as ie,al as me}from"./vendor-CrNxGKd2.js";import{u as _,a as q,h as pe,i as de,I as F,f as ue}from"./useConfig-Cr9T194r.js";import{t as e,c as j,u as G,S as be,b as xe,d as ge,e as ye,g as he}from"./index-BDnLuH5V.js";import{D as fe,a as we,b as je,c as ve,d as ke,e as Ce}from"./dialog-CM-OB-VU.js";import{B as T,P as Ne,a as Pe}from"./page-layout-CljvdClt.js";import{L as Se}from"./label-BryQW6Hh.js";import{S as Ie}from"./switch-DK9xeFoj.js";import{h as M}from"./config-hints-CApS3K_7.js";import{T as De}from"./tabs-custom-BWSgRC2i.js";import{L as Fe,a as Te,S as Me}from"./logos-DpQfWN7T.js";function Ae({value:n,onChange:l,className:r,placeholder:p=""}){const[m,g]=k.useState(""),u=b=>{b.key==="Enter"&&m.trim()?(b.preventDefault(),l([...n,m.trim()]),g("")):b.key==="Backspace"&&!m&&n.length>0&&l(n.slice(0,-1))},f=b=>{l(n.filter((i,x)=>x!==b))};return a.jsxs("div",{className:j("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",r),children:[n.map((b,i)=>a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[b,a.jsx("button",{type:"button",onClick:()=>f(i),className:"hover:text-red-300 transition-colors",children:a.jsx(ae,{className:"h-3 w-3"})})]},i)),a.jsx("input",{type:"text",value:m,onChange:b=>g(b.target.value),onKeyDown:u,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:p||e("enterTag")})]})}const E=[{value:"pairing",label:"pairing"},{value:"allowlist",label:"allowlist"},{value:"open",label:"open"},{value:"disabled",label:"disabled"}],B=[{value:"open",label:"open"},{value:"allowlist",label:"allowlist"},{value:"disabled",label:"disabled"}],Le=[{value:"off",label:"off"},{value:"partial",label:"partial"},{value:"block",label:"block"},{value:"progress",label:"progress"}],Ue=n=>n.includes("token")||n.includes("secret")||n.includes("password")?a.jsx(te,{className:"h-3.5 w-3.5 text-gray-500"}):n.includes("url")||n.includes("host")?a.jsx(ne,{className:"h-3.5 w-3.5 text-gray-500"}):n.includes("email")||n.includes("mail")?a.jsx(A,{className:"h-3.5 w-3.5 text-gray-500"}):n.includes("id")||n.includes("from")?a.jsx(le,{className:"h-3.5 w-3.5 text-gray-500"}):n==="enabled"||n==="consentGranted"?a.jsx(se,{className:"h-3.5 w-3.5 text-gray-500"}):a.jsx(oe,{className:"h-3.5 w-3.5 text-gray-500"});function O(){return{telegram:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"token",type:"password",label:e("botToken")},{name:"allowFrom",type:"tags",label:e("allowFrom")},{name:"proxy",type:"text",label:e("proxy")},{name:"accountId",type:"text",label:e("accountId")},{name:"dmPolicy",type:"select",label:e("dmPolicy"),options:E},{name:"groupPolicy",type:"select",label:e("groupPolicy"),options:B},{name:"groupAllowFrom",type:"tags",label:e("groupAllowFrom")},{name:"requireMention",type:"boolean",label:e("requireMention")},{name:"mentionPatterns",type:"tags",label:e("mentionPatterns")},{name:"groups",type:"json",label:e("groupRulesJson")}],discord:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"token",type:"password",label:e("botToken")},{name:"allowBots",type:"boolean",label:e("allowBotMessages")},{name:"allowFrom",type:"tags",label:e("allowFrom")},{name:"gatewayUrl",type:"text",label:e("gatewayUrl")},{name:"intents",type:"number",label:e("intents")},{name:"proxy",type:"text",label:e("proxy")},{name:"mediaMaxMb",type:"number",label:e("attachmentMaxSizeMb")},{name:"streaming",type:"select",label:e("streamingMode"),options:Le},{name:"draftChunk",type:"json",label:e("draftChunkingJson")},{name:"textChunkLimit",type:"number",label:e("textChunkLimit")},{name:"accountId",type:"text",label:e("accountId")},{name:"dmPolicy",type:"select",label:e("dmPolicy"),options:E},{name:"groupPolicy",type:"select",label:e("groupPolicy"),options:B},{name:"groupAllowFrom",type:"tags",label:e("groupAllowFrom")},{name:"requireMention",type:"boolean",label:e("requireMention")},{name:"mentionPatterns",type:"tags",label:e("mentionPatterns")},{name:"groups",type:"json",label:e("groupRulesJson")}],whatsapp:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"bridgeUrl",type:"text",label:e("bridgeUrl")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"appId",type:"text",label:e("appId")},{name:"appSecret",type:"password",label:e("appSecret")},{name:"encryptKey",type:"password",label:e("encryptKey")},{name:"verificationToken",type:"password",label:e("verificationToken")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"clientId",type:"text",label:e("clientId")},{name:"clientSecret",type:"password",label:e("clientSecret")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],wecom:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"corpId",type:"text",label:e("corpId")},{name:"agentId",type:"text",label:e("agentId")},{name:"secret",type:"password",label:e("secret")},{name:"token",type:"password",label:e("token")},{name:"callbackPort",type:"number",label:e("callbackPort")},{name:"callbackPath",type:"text",label:e("callbackPath")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"mode",type:"text",label:e("mode")},{name:"webhookPath",type:"text",label:e("webhookPath")},{name:"allowBots",type:"boolean",label:e("allowBotMessages")},{name:"botToken",type:"password",label:e("botToken")},{name:"appToken",type:"password",label:e("appToken")}],email:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"consentGranted",type:"boolean",label:e("consentGranted")},{name:"imapHost",type:"text",label:e("imapHost")},{name:"imapPort",type:"number",label:e("imapPort")},{name:"imapUsername",type:"text",label:e("imapUsername")},{name:"imapPassword",type:"password",label:e("imapPassword")},{name:"fromAddress",type:"email",label:e("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"baseUrl",type:"text",label:e("baseUrl")},{name:"clawToken",type:"password",label:e("clawToken")},{name:"agentUserId",type:"text",label:e("agentUserId")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"appId",type:"text",label:e("appId")},{name:"secret",type:"password",label:e("appSecret")},{name:"markdownSupport",type:"boolean",label:e("markdownSupport")},{name:"allowFrom",type:"tags",label:e("allowFrom")}]}}const R={telegram:I,slack:I,email:A,default:I},$={telegram:"from-primary-300 to-primary-600",slack:"from-primary-200 to-primary-500",email:"from-primary-100 to-primary-400",default:"from-gray-300 to-gray-500"};function D(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function J(n,l){const r={...n};for(const[p,m]of Object.entries(l)){const g=r[p];if(D(g)&&D(m)){r[p]=J(g,m);continue}r[p]=m}return r}function Ee(n,l){const r=n.split("."),p={};let m=p;for(let g=0;g<r.length-1;g+=1){const u=r[g];m[u]={},m=m[u]}return m[r[r.length-1]]=l,p}function Be(){var L,U;const{channelModal:n,closeChannelModal:l}=G(),{data:r}=_(),{data:p}=q(),m=pe(),g=de(),[u,f]=k.useState({}),[b,i]=k.useState({}),[x,h]=k.useState(null),c=n.channel,w=c?r==null?void 0:r.channels[c]:null,C=c?O()[c]??[]:[],N=p==null?void 0:p.uiHints,P=c?`channels.${c}`:null,z=((L=p==null?void 0:p.actions)==null?void 0:L.filter(t=>t.scope===P))??[],V=c&&(((U=M(`channels.${c}`,N))==null?void 0:U.label)??c);k.useEffect(()=>{if(w){f({...w});const t={};(c?O()[c]??[]:[]).filter(o=>o.type==="json").forEach(o=>{const y=w[o.name];t[o.name]=JSON.stringify(y??{},null,2)}),i(t)}else f({}),i({})},[w,c]);const v=(t,s)=>{f(o=>({...o,[t]:s}))},Y=t=>{if(t.preventDefault(),!c)return;const s={...u};for(const o of C){if(o.type!=="password")continue;const y=s[o.name];(typeof y!="string"||y.length===0)&&delete s[o.name]}for(const o of C){if(o.type!=="json")continue;const y=b[o.name]??"";try{s[o.name]=y.trim()?JSON.parse(y):{}}catch{S.error(`${e("invalidJson")}: ${o.name}`);return}}m.mutate({channel:c,data:s},{onSuccess:()=>l()})},W=t=>{if(!t||!c)return;const s=t.channels;if(!D(s))return;const o=s[c];D(o)&&f(y=>J(y,o))},X=async t=>{if(!(!c||!P)){h(t.id);try{let s={...u};t.saveBeforeRun&&(s={...s,...t.savePatch??{}},f(s),await m.mutateAsync({channel:c,data:s}));const o=await g.mutateAsync({actionId:t.id,data:{scope:P,draftConfig:Ee(P,s)}});W(o.patch),o.ok?S.success(o.message||e("success")):S.error(o.message||e("error"))}catch(s){const o=s instanceof Error?s.message:String(s);S.error(`${e("error")}: ${o}`)}finally{h(null)}}},Q=R[c||""]||R.default,Z=$[c||""]||$.default;return a.jsx(fe,{open:n.open,onOpenChange:l,children:a.jsxs(we,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[a.jsx(je,{children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${Z} flex items-center justify-center`,children:a.jsx(Q,{className:"h-5 w-5 text-white"})}),a.jsxs("div",{children:[a.jsx(ve,{className:"capitalize",children:V}),a.jsx(ke,{children:e("configureMessageChannelParameters")})]})]})}),a.jsxs("form",{onSubmit:Y,className:"flex flex-col flex-1 overflow-hidden",children:[a.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2 pr-2 space-y-5",children:C.map(t=>{const s=c?M(`channels.${c}.${t.name}`,N):void 0,o=(s==null?void 0:s.label)??t.label,y=s==null?void 0:s.placeholder;return a.jsxs("div",{className:"space-y-2.5",children:[a.jsxs(Se,{htmlFor:t.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Ue(t.name),o]}),t.type==="boolean"&&a.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[a.jsx("span",{className:"text-sm text-gray-500",children:u[t.name]?e("enabled"):e("disabled")}),a.jsx(Ie,{id:t.name,checked:u[t.name]||!1,onCheckedChange:d=>v(t.name,d),className:"data-[state=checked]:bg-emerald-500"})]}),(t.type==="text"||t.type==="email")&&a.jsx(F,{id:t.name,type:t.type,value:u[t.name]||"",onChange:d=>v(t.name,d.target.value),placeholder:y,className:"rounded-xl"}),t.type==="password"&&a.jsx(F,{id:t.name,type:"password",value:u[t.name]||"",onChange:d=>v(t.name,d.target.value),placeholder:y??e("leaveBlankToKeepUnchanged"),className:"rounded-xl"}),t.type==="number"&&a.jsx(F,{id:t.name,type:"number",value:u[t.name]||0,onChange:d=>v(t.name,parseInt(d.target.value)||0),placeholder:y,className:"rounded-xl"}),t.type==="tags"&&a.jsx(Ae,{value:u[t.name]||[],onChange:d=>v(t.name,d)}),t.type==="select"&&a.jsxs(be,{value:u[t.name]||"",onValueChange:d=>v(t.name,d),children:[a.jsx(xe,{className:"rounded-xl",children:a.jsx(ge,{})}),a.jsx(ye,{children:(t.options??[]).map(d=>a.jsx(he,{value:d.value,children:d.label},d.value))})]}),t.type==="json"&&a.jsx("textarea",{id:t.name,value:b[t.name]??"{}",onChange:d=>i(ee=>({...ee,[t.name]:d.target.value})),className:"min-h-[120px] w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs font-mono"})]},t.name)})}),a.jsxs(Ce,{className:"pt-4 flex-shrink-0",children:[a.jsx(T,{type:"button",variant:"outline",onClick:l,children:e("cancel")}),a.jsx(T,{type:"submit",disabled:m.isPending||!!x,children:m.isPending?e("saving"):e("save")}),z.filter(t=>t.trigger==="manual").map(t=>a.jsx(T,{type:"button",onClick:()=>X(t),disabled:m.isPending||!!x,variant:"secondary",children:x===t.id?e("connecting"):t.title},t.id))]})]})]})})}function Oe({children:n,onClick:l,className:r}){return a.jsx("div",{onClick:l,className:j("group relative flex flex-col p-6 rounded-2xl border border-gray-200/50 bg-white shadow-card","transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:border-gray-200",r),children:n})}function Re({children:n,className:l}){return a.jsx("div",{className:j("flex items-start justify-between mb-4",l),children:n})}function $e({title:n,description:l,className:r}){return a.jsxs("div",{className:j("flex-1",r),children:[a.jsx("h3",{className:"text-[14px] font-bold text-gray-900 mb-0.5",children:n}),l&&a.jsx("p",{className:"text-[12px] text-gray-400 leading-relaxed line-clamp-2",children:l})]})}function He({children:n,className:l}){return a.jsx("div",{className:j("mt-4 pt-3 flex items-center justify-between",l),children:n})}function Ke({label:n,className:l,onClick:r}){return a.jsxs("span",{onClick:r,className:j("inline-flex items-center gap-1 text-[13px] font-medium text-gray-600 hover:text-primary transition-colors cursor-pointer group/action",l),children:[n,a.jsx(re,{className:"h-3 w-3 transition-transform group-hover/action:translate-x-0.5"})]})}const H={telegram:I,slack:ie,email:A,webhook:ce,default:K},_e={telegram:"channelDescTelegram",slack:"channelDescSlack",email:"channelDescEmail",webhook:"channelDescWebhook",discord:"channelDescDiscord",feishu:"channelDescFeishu"};function ea(){const{data:n}=_(),{data:l}=ue(),{data:r}=q(),{openChannelModal:p}=G(),[m,g]=k.useState("active"),u=r==null?void 0:r.uiHints;if(!n||!l)return a.jsx("div",{className:"p-8 text-gray-400",children:e("channelsLoading")});const f=[{id:"active",label:e("channelsTabEnabled"),count:l.channels.filter(i=>{var x;return(x=n.channels[i.name])==null?void 0:x.enabled}).length},{id:"all",label:e("channelsTabAll"),count:l.channels.length}],b=l.channels.filter(i=>{var h;const x=((h=n.channels[i.name])==null?void 0:h.enabled)||!1;return m==="all"||x});return a.jsxs(Ne,{children:[a.jsx(Pe,{title:e("channelsPageTitle")}),a.jsx(De,{tabs:f,activeTab:m,onChange:g}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:b.map(i=>{const x=n.channels[i.name],h=(x==null?void 0:x.enabled)||!1,c=H[i.name]||H.default,w=M(`channels.${i.name}`,u),C=(w==null?void 0:w.help)||e(_e[i.name]||"channelDescriptionDefault");return a.jsxs(Oe,{onClick:()=>p(i.name),children:[a.jsxs(Re,{children:[a.jsx(Fe,{name:i.name,src:Te(i.name),className:j("h-11 w-11 rounded-xl border transition-all",h?"bg-white border-primary/30":"bg-white border-gray-200/60 group-hover:border-gray-300"),imgClassName:"h-5 w-5",fallback:a.jsx(c,{className:"h-5 w-5"})}),a.jsx(Me,{status:h?"active":"inactive",label:h?e("statusActive"):e("statusInactive")})]}),a.jsx($e,{title:i.displayName||i.name,description:C}),a.jsxs(He,{children:[a.jsx(Ke,{label:h?e("actionConfigure"):e("actionEnable")}),i.tutorialUrl&&a.jsx("a",{href:i.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:N=>N.stopPropagation(),className:"flex items-center justify-center h-6 w-6 rounded-md text-gray-300 hover:text-gray-500 hover:bg-gray-100/60 transition-colors",title:e("channelsGuideTitle"),children:a.jsx(me,{className:"h-3.5 w-3.5"})})]})]},i.name)})}),b.length===0&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[a.jsx("div",{className:"h-14 w-14 flex items-center justify-center rounded-xl bg-gray-100/80 mb-4",children:a.jsx(K,{className:"h-6 w-6 text-gray-300"})}),a.jsx("h3",{className:"text-[14px] font-semibold text-gray-900 mb-1.5",children:e("channelsEmptyTitle")}),a.jsx("p",{className:"text-[13px] text-gray-400 max-w-sm",children:e("channelsEmptyDescription")})]}),a.jsx(Be,{})]})}export{ea as ChannelsList};
|
|
1
|
+
import{r as k,j as a,af as ae,M as I,ag as A,ae as S,K as te,a0 as ne,ab as le,ah as se,ai as oe,aj as re,n as K,ak as ce,al as ie,am as me}from"./vendor-C8fQ0Vej.js";import{u as _,a as q,i as pe,j as de,I as F,f as ue}from"./useConfig-CPpZMJSX.js";import{t as e,c as j,u as G,S as be,b as xe,d as ge,e as ye,g as he}from"./index-nZ3tdMe1.js";import{D as fe,a as we,b as je,c as ve,d as ke,e as Ce}from"./dialog-o8XweWHQ.js";import{B as T,P as Ne,a as Pe}from"./page-layout-DXAYLIUr.js";import{L as Se}from"./label-PpMv4yho.js";import{S as Ie}from"./switch-CGhksmrM.js";import{h as M}from"./config-hints-CApS3K_7.js";import{T as De}from"./tabs-custom-4AOSVaDz.js";import{L as Fe,a as Te,S as Me}from"./logos-B2FZM2a7.js";function Ae({value:n,onChange:l,className:r,placeholder:p=""}){const[m,g]=k.useState(""),u=b=>{b.key==="Enter"&&m.trim()?(b.preventDefault(),l([...n,m.trim()]),g("")):b.key==="Backspace"&&!m&&n.length>0&&l(n.slice(0,-1))},f=b=>{l(n.filter((i,x)=>x!==b))};return a.jsxs("div",{className:j("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",r),children:[n.map((b,i)=>a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[b,a.jsx("button",{type:"button",onClick:()=>f(i),className:"hover:text-red-300 transition-colors",children:a.jsx(ae,{className:"h-3 w-3"})})]},i)),a.jsx("input",{type:"text",value:m,onChange:b=>g(b.target.value),onKeyDown:u,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:p||e("enterTag")})]})}const E=[{value:"pairing",label:"pairing"},{value:"allowlist",label:"allowlist"},{value:"open",label:"open"},{value:"disabled",label:"disabled"}],B=[{value:"open",label:"open"},{value:"allowlist",label:"allowlist"},{value:"disabled",label:"disabled"}],Le=[{value:"off",label:"off"},{value:"partial",label:"partial"},{value:"block",label:"block"},{value:"progress",label:"progress"}],Ue=n=>n.includes("token")||n.includes("secret")||n.includes("password")?a.jsx(te,{className:"h-3.5 w-3.5 text-gray-500"}):n.includes("url")||n.includes("host")?a.jsx(ne,{className:"h-3.5 w-3.5 text-gray-500"}):n.includes("email")||n.includes("mail")?a.jsx(A,{className:"h-3.5 w-3.5 text-gray-500"}):n.includes("id")||n.includes("from")?a.jsx(le,{className:"h-3.5 w-3.5 text-gray-500"}):n==="enabled"||n==="consentGranted"?a.jsx(se,{className:"h-3.5 w-3.5 text-gray-500"}):a.jsx(oe,{className:"h-3.5 w-3.5 text-gray-500"});function O(){return{telegram:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"token",type:"password",label:e("botToken")},{name:"allowFrom",type:"tags",label:e("allowFrom")},{name:"proxy",type:"text",label:e("proxy")},{name:"accountId",type:"text",label:e("accountId")},{name:"dmPolicy",type:"select",label:e("dmPolicy"),options:E},{name:"groupPolicy",type:"select",label:e("groupPolicy"),options:B},{name:"groupAllowFrom",type:"tags",label:e("groupAllowFrom")},{name:"requireMention",type:"boolean",label:e("requireMention")},{name:"mentionPatterns",type:"tags",label:e("mentionPatterns")},{name:"groups",type:"json",label:e("groupRulesJson")}],discord:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"token",type:"password",label:e("botToken")},{name:"allowBots",type:"boolean",label:e("allowBotMessages")},{name:"allowFrom",type:"tags",label:e("allowFrom")},{name:"gatewayUrl",type:"text",label:e("gatewayUrl")},{name:"intents",type:"number",label:e("intents")},{name:"proxy",type:"text",label:e("proxy")},{name:"mediaMaxMb",type:"number",label:e("attachmentMaxSizeMb")},{name:"streaming",type:"select",label:e("streamingMode"),options:Le},{name:"draftChunk",type:"json",label:e("draftChunkingJson")},{name:"textChunkLimit",type:"number",label:e("textChunkLimit")},{name:"accountId",type:"text",label:e("accountId")},{name:"dmPolicy",type:"select",label:e("dmPolicy"),options:E},{name:"groupPolicy",type:"select",label:e("groupPolicy"),options:B},{name:"groupAllowFrom",type:"tags",label:e("groupAllowFrom")},{name:"requireMention",type:"boolean",label:e("requireMention")},{name:"mentionPatterns",type:"tags",label:e("mentionPatterns")},{name:"groups",type:"json",label:e("groupRulesJson")}],whatsapp:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"bridgeUrl",type:"text",label:e("bridgeUrl")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"appId",type:"text",label:e("appId")},{name:"appSecret",type:"password",label:e("appSecret")},{name:"encryptKey",type:"password",label:e("encryptKey")},{name:"verificationToken",type:"password",label:e("verificationToken")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"clientId",type:"text",label:e("clientId")},{name:"clientSecret",type:"password",label:e("clientSecret")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],wecom:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"corpId",type:"text",label:e("corpId")},{name:"agentId",type:"text",label:e("agentId")},{name:"secret",type:"password",label:e("secret")},{name:"token",type:"password",label:e("token")},{name:"callbackPort",type:"number",label:e("callbackPort")},{name:"callbackPath",type:"text",label:e("callbackPath")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"mode",type:"text",label:e("mode")},{name:"webhookPath",type:"text",label:e("webhookPath")},{name:"allowBots",type:"boolean",label:e("allowBotMessages")},{name:"botToken",type:"password",label:e("botToken")},{name:"appToken",type:"password",label:e("appToken")}],email:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"consentGranted",type:"boolean",label:e("consentGranted")},{name:"imapHost",type:"text",label:e("imapHost")},{name:"imapPort",type:"number",label:e("imapPort")},{name:"imapUsername",type:"text",label:e("imapUsername")},{name:"imapPassword",type:"password",label:e("imapPassword")},{name:"fromAddress",type:"email",label:e("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"baseUrl",type:"text",label:e("baseUrl")},{name:"clawToken",type:"password",label:e("clawToken")},{name:"agentUserId",type:"text",label:e("agentUserId")},{name:"allowFrom",type:"tags",label:e("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:e("enabled")},{name:"appId",type:"text",label:e("appId")},{name:"secret",type:"password",label:e("appSecret")},{name:"markdownSupport",type:"boolean",label:e("markdownSupport")},{name:"allowFrom",type:"tags",label:e("allowFrom")}]}}const R={telegram:I,slack:I,email:A,default:I},$={telegram:"from-primary-300 to-primary-600",slack:"from-primary-200 to-primary-500",email:"from-primary-100 to-primary-400",default:"from-gray-300 to-gray-500"};function D(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function J(n,l){const r={...n};for(const[p,m]of Object.entries(l)){const g=r[p];if(D(g)&&D(m)){r[p]=J(g,m);continue}r[p]=m}return r}function Ee(n,l){const r=n.split("."),p={};let m=p;for(let g=0;g<r.length-1;g+=1){const u=r[g];m[u]={},m=m[u]}return m[r[r.length-1]]=l,p}function Be(){var L,U;const{channelModal:n,closeChannelModal:l}=G(),{data:r}=_(),{data:p}=q(),m=pe(),g=de(),[u,f]=k.useState({}),[b,i]=k.useState({}),[x,h]=k.useState(null),c=n.channel,w=c?r==null?void 0:r.channels[c]:null,C=c?O()[c]??[]:[],N=p==null?void 0:p.uiHints,P=c?`channels.${c}`:null,z=((L=p==null?void 0:p.actions)==null?void 0:L.filter(t=>t.scope===P))??[],V=c&&(((U=M(`channels.${c}`,N))==null?void 0:U.label)??c);k.useEffect(()=>{if(w){f({...w});const t={};(c?O()[c]??[]:[]).filter(o=>o.type==="json").forEach(o=>{const y=w[o.name];t[o.name]=JSON.stringify(y??{},null,2)}),i(t)}else f({}),i({})},[w,c]);const v=(t,s)=>{f(o=>({...o,[t]:s}))},Y=t=>{if(t.preventDefault(),!c)return;const s={...u};for(const o of C){if(o.type!=="password")continue;const y=s[o.name];(typeof y!="string"||y.length===0)&&delete s[o.name]}for(const o of C){if(o.type!=="json")continue;const y=b[o.name]??"";try{s[o.name]=y.trim()?JSON.parse(y):{}}catch{S.error(`${e("invalidJson")}: ${o.name}`);return}}m.mutate({channel:c,data:s},{onSuccess:()=>l()})},W=t=>{if(!t||!c)return;const s=t.channels;if(!D(s))return;const o=s[c];D(o)&&f(y=>J(y,o))},X=async t=>{if(!(!c||!P)){h(t.id);try{let s={...u};t.saveBeforeRun&&(s={...s,...t.savePatch??{}},f(s),await m.mutateAsync({channel:c,data:s}));const o=await g.mutateAsync({actionId:t.id,data:{scope:P,draftConfig:Ee(P,s)}});W(o.patch),o.ok?S.success(o.message||e("success")):S.error(o.message||e("error"))}catch(s){const o=s instanceof Error?s.message:String(s);S.error(`${e("error")}: ${o}`)}finally{h(null)}}},Q=R[c||""]||R.default,Z=$[c||""]||$.default;return a.jsx(fe,{open:n.open,onOpenChange:l,children:a.jsxs(we,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[a.jsx(je,{children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${Z} flex items-center justify-center`,children:a.jsx(Q,{className:"h-5 w-5 text-white"})}),a.jsxs("div",{children:[a.jsx(ve,{className:"capitalize",children:V}),a.jsx(ke,{children:e("configureMessageChannelParameters")})]})]})}),a.jsxs("form",{onSubmit:Y,className:"flex flex-col flex-1 overflow-hidden",children:[a.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2 pr-2 space-y-5",children:C.map(t=>{const s=c?M(`channels.${c}.${t.name}`,N):void 0,o=(s==null?void 0:s.label)??t.label,y=s==null?void 0:s.placeholder;return a.jsxs("div",{className:"space-y-2.5",children:[a.jsxs(Se,{htmlFor:t.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Ue(t.name),o]}),t.type==="boolean"&&a.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[a.jsx("span",{className:"text-sm text-gray-500",children:u[t.name]?e("enabled"):e("disabled")}),a.jsx(Ie,{id:t.name,checked:u[t.name]||!1,onCheckedChange:d=>v(t.name,d),className:"data-[state=checked]:bg-emerald-500"})]}),(t.type==="text"||t.type==="email")&&a.jsx(F,{id:t.name,type:t.type,value:u[t.name]||"",onChange:d=>v(t.name,d.target.value),placeholder:y,className:"rounded-xl"}),t.type==="password"&&a.jsx(F,{id:t.name,type:"password",value:u[t.name]||"",onChange:d=>v(t.name,d.target.value),placeholder:y??e("leaveBlankToKeepUnchanged"),className:"rounded-xl"}),t.type==="number"&&a.jsx(F,{id:t.name,type:"number",value:u[t.name]||0,onChange:d=>v(t.name,parseInt(d.target.value)||0),placeholder:y,className:"rounded-xl"}),t.type==="tags"&&a.jsx(Ae,{value:u[t.name]||[],onChange:d=>v(t.name,d)}),t.type==="select"&&a.jsxs(be,{value:u[t.name]||"",onValueChange:d=>v(t.name,d),children:[a.jsx(xe,{className:"rounded-xl",children:a.jsx(ge,{})}),a.jsx(ye,{children:(t.options??[]).map(d=>a.jsx(he,{value:d.value,children:d.label},d.value))})]}),t.type==="json"&&a.jsx("textarea",{id:t.name,value:b[t.name]??"{}",onChange:d=>i(ee=>({...ee,[t.name]:d.target.value})),className:"min-h-[120px] w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs font-mono"})]},t.name)})}),a.jsxs(Ce,{className:"pt-4 flex-shrink-0",children:[a.jsx(T,{type:"button",variant:"outline",onClick:l,children:e("cancel")}),a.jsx(T,{type:"submit",disabled:m.isPending||!!x,children:m.isPending?e("saving"):e("save")}),z.filter(t=>t.trigger==="manual").map(t=>a.jsx(T,{type:"button",onClick:()=>X(t),disabled:m.isPending||!!x,variant:"secondary",children:x===t.id?e("connecting"):t.title},t.id))]})]})]})})}function Oe({children:n,onClick:l,className:r}){return a.jsx("div",{onClick:l,className:j("group relative flex flex-col p-6 rounded-2xl border border-gray-200/50 bg-white shadow-card","transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:border-gray-200",r),children:n})}function Re({children:n,className:l}){return a.jsx("div",{className:j("flex items-start justify-between mb-4",l),children:n})}function $e({title:n,description:l,className:r}){return a.jsxs("div",{className:j("flex-1",r),children:[a.jsx("h3",{className:"text-[14px] font-bold text-gray-900 mb-0.5",children:n}),l&&a.jsx("p",{className:"text-[12px] text-gray-400 leading-relaxed line-clamp-2",children:l})]})}function He({children:n,className:l}){return a.jsx("div",{className:j("mt-4 pt-3 flex items-center justify-between",l),children:n})}function Ke({label:n,className:l,onClick:r}){return a.jsxs("span",{onClick:r,className:j("inline-flex items-center gap-1 text-[13px] font-medium text-gray-600 hover:text-primary transition-colors cursor-pointer group/action",l),children:[n,a.jsx(re,{className:"h-3 w-3 transition-transform group-hover/action:translate-x-0.5"})]})}const H={telegram:I,slack:ie,email:A,webhook:ce,default:K},_e={telegram:"channelDescTelegram",slack:"channelDescSlack",email:"channelDescEmail",webhook:"channelDescWebhook",discord:"channelDescDiscord",feishu:"channelDescFeishu"};function ea(){const{data:n}=_(),{data:l}=ue(),{data:r}=q(),{openChannelModal:p}=G(),[m,g]=k.useState("active"),u=r==null?void 0:r.uiHints;if(!n||!l)return a.jsx("div",{className:"p-8 text-gray-400",children:e("channelsLoading")});const f=[{id:"active",label:e("channelsTabEnabled"),count:l.channels.filter(i=>{var x;return(x=n.channels[i.name])==null?void 0:x.enabled}).length},{id:"all",label:e("channelsTabAll"),count:l.channels.length}],b=l.channels.filter(i=>{var h;const x=((h=n.channels[i.name])==null?void 0:h.enabled)||!1;return m==="all"||x});return a.jsxs(Ne,{children:[a.jsx(Pe,{title:e("channelsPageTitle")}),a.jsx(De,{tabs:f,activeTab:m,onChange:g}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:b.map(i=>{const x=n.channels[i.name],h=(x==null?void 0:x.enabled)||!1,c=H[i.name]||H.default,w=M(`channels.${i.name}`,u),C=(w==null?void 0:w.help)||e(_e[i.name]||"channelDescriptionDefault");return a.jsxs(Oe,{onClick:()=>p(i.name),children:[a.jsxs(Re,{children:[a.jsx(Fe,{name:i.name,src:Te(i.name),className:j("h-11 w-11 rounded-xl border transition-all",h?"bg-white border-primary/30":"bg-white border-gray-200/60 group-hover:border-gray-300"),imgClassName:"h-5 w-5",fallback:a.jsx(c,{className:"h-5 w-5"})}),a.jsx(Me,{status:h?"active":"inactive",label:h?e("statusActive"):e("statusInactive")})]}),a.jsx($e,{title:i.displayName||i.name,description:C}),a.jsxs(He,{children:[a.jsx(Ke,{label:h?e("actionConfigure"):e("actionEnable")}),i.tutorialUrl&&a.jsx("a",{href:i.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:N=>N.stopPropagation(),className:"flex items-center justify-center h-6 w-6 rounded-md text-gray-300 hover:text-gray-500 hover:bg-gray-100/60 transition-colors",title:e("channelsGuideTitle"),children:a.jsx(me,{className:"h-3.5 w-3.5"})})]})]},i.name)})}),b.length===0&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[a.jsx("div",{className:"h-14 w-14 flex items-center justify-center rounded-xl bg-gray-100/80 mb-4",children:a.jsx(K,{className:"h-6 w-6 text-gray-300"})}),a.jsx("h3",{className:"text-[14px] font-semibold text-gray-900 mb-1.5",children:e("channelsEmptyTitle")}),a.jsx("p",{className:"text-[13px] text-gray-400 max-w-sm",children:e("channelsEmptyDescription")})]}),a.jsx(Be,{})]})}export{ea as ChannelsList};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as Rr,j as k,r as K,W as Qi,X as Yi,Y as jr,Z as Xi,_ as _r,a0 as Gi,a1 as Ji,a2 as Zi,a3 as el,a4 as Ln,a5 as zn,a6 as Fn,a7 as tl,a8 as nl}from"./vendor-CrNxGKd2.js";import{u as rl,c as il,d as ll,e as ol,s as al,I as sl}from"./useConfig-Cr9T194r.js";import{u as ul}from"./useConfirmDialog-CeUaLKWy.js";import{P as cl,a as fl,B as Ve}from"./page-layout-CljvdClt.js";import{a as Or,c as de,t as M,S as Rn,b as jn,d as _n,e as On,g as Ft}from"./index-BDnLuH5V.js";import{b as hl,n as pl,e as ml,a as dl,c as gl}from"./chat-message-D0s61C4e.js";import"./dialog-CM-OB-VU.js";function xl(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const yl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bl={};function Mn(e,n){return(bl.jsx?kl:yl).test(e)}const wl=/[ \t\n\f\r]/g;function Sl(e){return typeof e=="object"?e.type==="text"?Bn(e.value):!1:Bn(e)}function Bn(e){return e.replace(wl,"")===""}class pt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}pt.prototype.normal={};pt.prototype.property={};pt.prototype.space=void 0;function Mr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new pt(t,r,n)}function Zt(e){return e.toLowerCase()}class ce{constructor(n,t){this.attribute=t,this.property=n}}ce.prototype.attribute="";ce.prototype.booleanish=!1;ce.prototype.boolean=!1;ce.prototype.commaOrSpaceSeparated=!1;ce.prototype.commaSeparated=!1;ce.prototype.defined=!1;ce.prototype.mustUseProperty=!1;ce.prototype.number=!1;ce.prototype.overloadedBoolean=!1;ce.prototype.property="";ce.prototype.spaceSeparated=!1;ce.prototype.space=void 0;let Cl=0;const O=He(),te=He(),en=He(),I=He(),X=He(),Ye=He(),me=He();function He(){return 2**++Cl}const tn=Object.freeze(Object.defineProperty({__proto__:null,boolean:O,booleanish:te,commaOrSpaceSeparated:me,commaSeparated:Ye,number:I,overloadedBoolean:en,spaceSeparated:X},Symbol.toStringTag,{value:"Module"})),Rt=Object.keys(tn);class mn extends ce{constructor(n,t,r,i){let o=-1;if(super(n,t),Hn(this,"space",i),typeof r=="number")for(;++o<Rt.length;){const l=Rt[o];Hn(this,Rt[o],(r&tn[l])===tn[l])}}}mn.prototype.defined=!0;function Hn(e,n,t){t&&(e[n]=t)}function Ge(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new mn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Zt(r)]=r,t[Zt(o.attribute)]=r}return new pt(n,t,e.space)}const Br=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:te,ariaAutoComplete:null,ariaBusy:te,ariaChecked:te,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:te,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:te,ariaFlowTo:X,ariaGrabbed:te,ariaHasPopup:null,ariaHidden:te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:I,ariaLive:null,ariaModal:te,ariaMultiLine:te,ariaMultiSelectable:te,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:te,ariaReadOnly:te,ariaRelevant:null,ariaRequired:te,ariaRoleDescription:X,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:te,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Hr(e,n){return n in e?e[n]:n}function qr(e,n){return Hr(e,n.toLowerCase())}const El=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ye,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:X,autoFocus:O,autoPlay:O,blocking:X,capture:null,charSet:null,checked:O,cite:null,className:X,cols:I,colSpan:null,content:null,contentEditable:te,controls:O,controlsList:X,coords:I|Ye,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:en,draggable:te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:X,height:I,hidden:en,high:I,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:X,itemRef:X,itemScope:O,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,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:O,optimum:I,pattern:null,ping:X,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:X,required:O,reversed:O,rows:I,rowSpan:I,sandbox:X,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:te,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:te,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:O,disableRemotePlayback:O,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:qr}),Il=Ge({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:me,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:X,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Ye,g2:Ye,glyphName:Ye,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:me,rev:me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:me,requiredFeatures:me,requiredFonts:me,requiredFormats:me,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:me,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Hr}),Ur=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),$r=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qr}),Vr=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),vl={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"},Al=/[A-Z]/g,qn=/-[a-z]/g,Tl=/^data[-\w.:]+$/i;function Pl(e,n){const t=Zt(n);let r=n,i=ce;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Tl.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(qn,Nl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!qn.test(o)){let l=o.replace(Al,Dl);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=mn}return new i(r,n)}function Dl(e){return"-"+e.toLowerCase()}function Nl(e){return e.charAt(1).toUpperCase()}const Ll=Mr([Br,El,Ur,$r,Vr],"html"),dn=Mr([Br,Il,Ur,$r,Vr],"svg");function zl(e){return e.join(" ").trim()}var We={},jt,Un;function Fl(){if(Un)return jt;Un=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
1
|
+
import{U as Rr,j as k,r as K,W as Qi,X as Yi,Y as jr,Z as Xi,_ as _r,a0 as Gi,a1 as Ji,a2 as Zi,a3 as el,a4 as Ln,a5 as zn,a6 as Fn,a7 as tl,a8 as nl}from"./vendor-C8fQ0Vej.js";import{u as rl,c as il,d as ll,e as ol,s as al,I as sl}from"./useConfig-CPpZMJSX.js";import{u as ul}from"./useConfirmDialog-DGWSgJUB.js";import{P as cl,a as fl,B as Ve}from"./page-layout-DXAYLIUr.js";import{a as Or,c as de,t as M,S as Rn,b as jn,d as _n,e as On,g as Ft}from"./index-nZ3tdMe1.js";import{b as hl,n as pl,e as ml,a as dl,c as gl}from"./chat-message-D0s61C4e.js";import"./dialog-o8XweWHQ.js";function xl(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const yl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bl={};function Mn(e,n){return(bl.jsx?kl:yl).test(e)}const wl=/[ \t\n\f\r]/g;function Sl(e){return typeof e=="object"?e.type==="text"?Bn(e.value):!1:Bn(e)}function Bn(e){return e.replace(wl,"")===""}class pt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}pt.prototype.normal={};pt.prototype.property={};pt.prototype.space=void 0;function Mr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new pt(t,r,n)}function Zt(e){return e.toLowerCase()}class ce{constructor(n,t){this.attribute=t,this.property=n}}ce.prototype.attribute="";ce.prototype.booleanish=!1;ce.prototype.boolean=!1;ce.prototype.commaOrSpaceSeparated=!1;ce.prototype.commaSeparated=!1;ce.prototype.defined=!1;ce.prototype.mustUseProperty=!1;ce.prototype.number=!1;ce.prototype.overloadedBoolean=!1;ce.prototype.property="";ce.prototype.spaceSeparated=!1;ce.prototype.space=void 0;let Cl=0;const O=He(),te=He(),en=He(),I=He(),X=He(),Ye=He(),me=He();function He(){return 2**++Cl}const tn=Object.freeze(Object.defineProperty({__proto__:null,boolean:O,booleanish:te,commaOrSpaceSeparated:me,commaSeparated:Ye,number:I,overloadedBoolean:en,spaceSeparated:X},Symbol.toStringTag,{value:"Module"})),Rt=Object.keys(tn);class mn extends ce{constructor(n,t,r,i){let o=-1;if(super(n,t),Hn(this,"space",i),typeof r=="number")for(;++o<Rt.length;){const l=Rt[o];Hn(this,Rt[o],(r&tn[l])===tn[l])}}}mn.prototype.defined=!0;function Hn(e,n,t){t&&(e[n]=t)}function Ge(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new mn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Zt(r)]=r,t[Zt(o.attribute)]=r}return new pt(n,t,e.space)}const Br=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:te,ariaAutoComplete:null,ariaBusy:te,ariaChecked:te,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:te,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:te,ariaFlowTo:X,ariaGrabbed:te,ariaHasPopup:null,ariaHidden:te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:I,ariaLive:null,ariaModal:te,ariaMultiLine:te,ariaMultiSelectable:te,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:te,ariaReadOnly:te,ariaRelevant:null,ariaRequired:te,ariaRoleDescription:X,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:te,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Hr(e,n){return n in e?e[n]:n}function qr(e,n){return Hr(e,n.toLowerCase())}const El=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ye,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:X,autoFocus:O,autoPlay:O,blocking:X,capture:null,charSet:null,checked:O,cite:null,className:X,cols:I,colSpan:null,content:null,contentEditable:te,controls:O,controlsList:X,coords:I|Ye,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:en,draggable:te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:X,height:I,hidden:en,high:I,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:X,itemRef:X,itemScope:O,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,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:O,optimum:I,pattern:null,ping:X,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:X,required:O,reversed:O,rows:I,rowSpan:I,sandbox:X,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:te,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:te,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:O,disableRemotePlayback:O,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:qr}),Il=Ge({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:me,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:X,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Ye,g2:Ye,glyphName:Ye,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:me,rev:me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:me,requiredFeatures:me,requiredFonts:me,requiredFormats:me,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:me,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Hr}),Ur=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),$r=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qr}),Vr=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),vl={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"},Al=/[A-Z]/g,qn=/-[a-z]/g,Tl=/^data[-\w.:]+$/i;function Pl(e,n){const t=Zt(n);let r=n,i=ce;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Tl.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(qn,Nl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!qn.test(o)){let l=o.replace(Al,Dl);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=mn}return new i(r,n)}function Dl(e){return"-"+e.toLowerCase()}function Nl(e){return e.charAt(1).toUpperCase()}const Ll=Mr([Br,El,Ur,$r,Vr],"html"),dn=Mr([Br,Il,Ur,$r,Vr],"svg");function zl(e){return e.join(" ").trim()}var We={},jt,Un;function Fl(){if(Un)return jt;Un=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
2
2
|
`,u="/",f="*",c="",p="comment",h="declaration";function g(C,x){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];x=x||{};var v=1,E=1;function R(L){var A=L.match(n);A&&(v+=A.length);var H=L.lastIndexOf(s);E=~H?L.length-H:E+L.length}function F(){var L={line:v,column:E};return function(A){return A.position=new b(L),U(),A}}function b(L){this.start=L,this.end={line:v,column:E},this.source=x.source}b.prototype.content=C;function _(L){var A=new Error(x.source+":"+v+":"+E+": "+L);if(A.reason=L,A.filename=x.source,A.line=v,A.column=E,A.source=C,!x.silent)throw A}function V(L){var A=L.exec(C);if(A){var H=A[0];return R(H),C=C.slice(H.length),A}}function U(){V(t)}function y(L){var A;for(L=L||[];A=P();)A!==!1&&L.push(A);return L}function P(){var L=F();if(!(u!=C.charAt(0)||f!=C.charAt(1))){for(var A=2;c!=C.charAt(A)&&(f!=C.charAt(A)||u!=C.charAt(A+1));)++A;if(A+=2,c===C.charAt(A-1))return _("End of comment missing");var H=C.slice(2,A-2);return E+=2,R(H),C=C.slice(A),E+=2,L({type:p,comment:H})}}function N(){var L=F(),A=V(r);if(A){if(P(),!V(i))return _("property missing ':'");var H=V(o),G=L({type:h,property:S(A[0].replace(e,c)),value:H?S(H[0].replace(e,c)):c});return V(l),G}}function W(){var L=[];y(L);for(var A;A=N();)A!==!1&&(L.push(A),y(L));return L}return U(),W()}function S(C){return C?C.replace(a,c):c}return jt=g,jt}var $n;function Rl(){if($n)return We;$n=1;var e=We&&We.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(We,"__esModule",{value:!0}),We.default=t;const n=e(Fl());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return We}var nt={},Vn;function jl(){if(Vn)return nt;Vn=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||t.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,l))};return nt.camelCase=s,nt}var rt,Wn;function _l(){if(Wn)return rt;Wn=1;var e=rt&&rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Rl()),t=jl();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(l[(0,t.camelCase)(a,o)]=s)}),l}return r.default=r,rt=r,rt}var Ol=_l();const Ml=Rr(Ol),Wr=Kr("end"),gn=Kr("start");function Kr(e){return n;function n(t){const r=t&&t.position&&t.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 Qr(e){const n=gn(e),t=Wr(e);if(n&&t)return{start:n,end:t}}function ot(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kn(e.position):"start"in e||"end"in e?Kn(e):"line"in e||"column"in e?nn(e):""}function nn(e){return Qn(e&&e.line)+":"+Qn(e&&e.column)}function Kn(e){return nn(e&&e.start)+"-"+nn(e&&e.end)}function Qn(e){return e&&typeof e=="number"?e:1}class oe extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!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}}oe.prototype.file="";oe.prototype.name="";oe.prototype.reason="";oe.prototype.message="";oe.prototype.stack="";oe.prototype.column=void 0;oe.prototype.line=void 0;oe.prototype.ancestors=void 0;oe.prototype.cause=void 0;oe.prototype.fatal=void 0;oe.prototype.place=void 0;oe.prototype.ruleId=void 0;oe.prototype.source=void 0;const xn={}.hasOwnProperty,Bl=new Map,Hl=/[A-Z]/g,ql=new Set(["table","tbody","thead","tfoot","tr"]),Ul=new Set(["td","th"]),Yr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $l(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Jl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Gl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?dn:Ll,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Xr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Xr(e,n,t){if(n.type==="element")return Vl(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Wl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Ql(e,n,t);if(n.type==="mdxjsEsm")return Kl(e,n);if(n.type==="root")return Yl(e,n,t);if(n.type==="text")return Xl(e,n)}function Vl(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=dn,e.schema=i),e.ancestors.push(n);const o=Jr(e,n.tagName,!1),l=Zl(e,n);let a=kn(e,n);return ql.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Sl(s):!0})),Gr(e,l,o,n),yn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Wl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ut(e,n.position)}function Kl(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ut(e,n.position)}function Ql(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=dn,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Jr(e,n.name,!0),l=eo(e,n),a=kn(e,n);return Gr(e,l,o,n),yn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Yl(e,n,t){const r={};return yn(r,kn(e,n)),e.create(n,e.Fragment,r,t)}function Xl(e,n){return n.value}function Gr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function yn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Gl(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function Jl(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),s=gn(r);return n(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Zl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&xn.call(n.properties,i)){const o=to(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Ul.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function eo(e,n){const t={};for(const r of n.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(t,e.evaluater.evaluateExpression(a.argument))}else ut(e,n.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 ut(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function kn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Bl;for(;++r<n.children.length;){const o=n.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 u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=Xr(e,o,l);a!==void 0&&t.push(a)}return t}function to(e,n,t){const r=Pl(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?xl(t):zl(t)),r.property==="style"){let i=typeof t=="object"?t:no(e,String(t));return e.stylePropertyNameCase==="css"&&(i=ro(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?vl[r.property]||r.property:r.attribute,t]}}function no(e,n){try{return Ml(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new oe("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=Yr+"#cannot-parse-style-attribute",i}}function Jr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Mn(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=Mn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return xn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ut(e)}function ut(e,n){const t=new oe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Yr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function ro(e){const n={};let t;for(t in e)xn.call(e,t)&&(n[io(t)]=e[t]);return n}function io(e){let n=e.replace(Hl,lo);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function lo(e){return"-"+e.toLowerCase()}const _t={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"]},oo={};function bn(e,n){const t=oo,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Zr(e,r,i)}function Zr(e,n,t){if(ao(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yn(e.children,n,t)}return Array.isArray(e)?Yn(e,n,t):""}function Yn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Zr(e[i],n,t);return r.join("")}function ao(e){return!!(e&&typeof e=="object")}const Xn=document.createElement("i");function wn(e){const n="&"+e+";";Xn.innerHTML=n;const t=Xn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ge(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function xe(e,n){return e.length>0?(ge(e,e.length,0,n),e):n}const Gn={}.hasOwnProperty;function ei(e){const n={};let t=-1;for(;++t<e.length;)so(n,e[t]);return n}function so(e,n){let t;for(t in n){const i=(Gn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Gn.call(i,l)||(i[l]=[]);const a=o[l];uo(i[l],Array.isArray(a)?a:a?[a]:[])}}}function uo(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ge(e,0,0,r)}function ti(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function be(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ae=ze(/[A-Za-z]/),le=ze(/[\dA-Za-z]/),co=ze(/[#-'*+\--9=?A-Z^-~]/);function It(e){return e!==null&&(e<32||e===127)}const rn=ze(/\d/),fo=ze(/[\dA-Fa-f]/),ho=ze(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function Y(e){return e!==null&&(e<0||e===32)}function B(e){return e===-2||e===-1||e===32}const Tt=ze(new RegExp("\\p{P}|\\p{S}","u")),Be=ze(/\s/);function ze(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Je(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&le(e.charCodeAt(t+1))&&le(e.charCodeAt(t+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(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function $(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return B(s)?(e.enter(t),a(s)):n(s)}function a(s){return B(s)&&o++<i?(e.consume(s),a):(e.exit(t),n(s))}}const po={tokenize:mo};function mo(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=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 go={tokenize:xo},Jn={tokenize:yo};function xo(e){const n=this,t=[];let r=0,i,o,l;return a;function a(E){if(r<t.length){const R=t[r];return n.containerState=R[1],e.attempt(R[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&v();const R=n.events.length;let F=R,b;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){b=n.events[F][1].end;break}x(r);let _=R;for(;_<n.events.length;)n.events[_][1].end={...b},_++;return ge(n.events,F+1,0,n.events.slice(R)),n.events.length=_,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return g(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Jn,f,c)(E)}function f(E){return i&&v(),x(r),p(E)}function c(E){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(E)}function p(E){return n.containerState={},e.attempt(Jn,h,g)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function g(E){if(E===null){i&&v(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),S(E)}function S(E){if(E===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return z(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),S)}function C(E,R){const F=n.sliceStream(E);if(R&&F.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(F),n.parser.lazy[E.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const _=n.events.length;let V=_,U,y;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(U){y=n.events[V][1].end;break}U=!0}for(x(r),b=_;b<n.events.length;)n.events[b][1].end={...y},b++;ge(n.events,V+1,0,n.events.slice(_)),n.events.length=b}}function x(E){let R=t.length;for(;R-- >E;){const F=t[R];n.containerState=F[1],F[0].exit.call(n,e)}t.length=E}function v(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function yo(e,n,t){return $(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xe(e){if(e===null||Y(e)||Be(e))return 1;if(Tt(e))return 2}function Pt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const ln={name:"attention",resolveAll:ko,tokenize:bo};function ko(e,n){let t=-1,r,i,o,l,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Zn(c,-s),Zn(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=xe(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=xe(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),u=xe(u,Pt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=xe(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=xe(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,ge(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function bo(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Xe(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 u=e.exit("attentionSequence"),f=Xe(s),c=!f||f===2&&i||t.includes(s),p=!i||i===2&&f||t.includes(r);return u._open=!!(o===42?c:c&&(i||!p)),u._close=!!(o===42?p:p&&(f||!c)),n(s)}}function Zn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const wo={name:"autolink",tokenize:So};function So(e,n,t){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 ae(h)?(e.consume(h),l):h===64?t(h):u(h)}function l(h){return h===43||h===45||h===46||le(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||le(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||It(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):co(h)?(e.consume(h),u):t(h)}function f(h){return le(h)?c(h):t(h)}function c(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"),n):p(h)}function p(h){if((h===45||le(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return t(h)}}const mt={partial:!0,tokenize:Co};function Co(e,n,t){return r;function r(o){return B(o)?$(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?n(o):t(o)}}const ni={continuation:{tokenize:Io},exit:vo,name:"blockQuote",tokenize:Eo};function Eo(e,n,t){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 t(l)}function o(l){return B(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Io(e,n,t){const r=this;return i;function i(l){return B(l)?$(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(ni,n,t)(l)}}function vo(e){e.exit("blockQuote")}const ri={name:"characterEscape",tokenize:Ao};function Ao(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ho(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const ii={name:"characterReference",tokenize:To};function To(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=le,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=fo,f):(e.enter("characterReferenceValue"),o=7,l=rn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===le&&!wn(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const er={partial:!0,tokenize:Do},tr={concrete:!0,name:"codeFenced",tokenize:Po};function Po(e,n,t){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,a;return s;function s(b){return u(b)}function u(b){const _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?t(b):(e.exit("codeFencedFenceSequence"),B(b)?$(e,c,"whitespace")(b):c(b))}function c(b){return b===null||z(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(er,S,R)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):B(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,h,"whitespace")(b)):b===96&&b===a?t(b):(e.consume(b),p)}function h(b){return b===null||z(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?t(b):(e.consume(b),g)}function S(b){return e.attempt(i,R,C)(b)}function C(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x}function x(b){return o>0&&B(b)?$(e,v,"linePrefix",o+1)(b):v(b)}function v(b){return b===null||z(b)?e.check(er,S,R)(b):(e.enter("codeFlowValue"),E(b))}function E(b){return b===null||z(b)?(e.exit("codeFlowValue"),v(b)):(e.consume(b),E)}function R(b){return e.exit("codeFenced"),n(b)}function F(b,_,V){let U=0;return y;function y(A){return b.enter("lineEnding"),b.consume(A),b.exit("lineEnding"),P}function P(A){return b.enter("codeFencedFence"),B(A)?$(b,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):N(A)}function N(A){return A===a?(b.enter("codeFencedFenceSequence"),W(A)):V(A)}function W(A){return A===a?(U++,b.consume(A),W):U>=l?(b.exit("codeFencedFenceSequence"),B(A)?$(b,L,"whitespace")(A):L(A)):V(A)}function L(A){return A===null||z(A)?(b.exit("codeFencedFence"),_(A)):V(A)}}}function Do(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const Ot={name:"codeIndented",tokenize:Lo},No={partial:!0,tokenize:zo};function Lo(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),$(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?s(u):z(u)?e.attempt(No,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||z(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function zo(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):$(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?n(l):z(l)?i(l):t(l)}}const Fo={name:"codeText",previous:jo,resolve:Ro,tokenize:_o};function Ro(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||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),n-=r-i-2,r=i+2),i=void 0);return e}function jo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _o(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",u(c))}}class Oo{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&it(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),it(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),it(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);it(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);it(this.left,t.reverse())}}}function it(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function li(e){const n={};let t=-1,r,i,o,l,a,s,u;const f=new Oo(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-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(n,Mo(f,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,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,t),a.unshift(r),f.splice(i,t-i+1,a))}}return ge(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Mo(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,p=-1,h=t,g=0,S=0;const C=[S];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++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&&(S=p+1,C.push(S),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const x=a.slice(C[p],C[p+1]),v=o.pop();s.push([v,v+x.length-1]),e.splice(v,2,x)}for(s.reverse(),p=-1;++p<s.length;)u[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return u}const Bo={resolve:qo,tokenize:Uo},Ho={partial:!0,tokenize:$o};function qo(e){return li(e),e}function Uo(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):z(a)?e.check(Ho,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function $o(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),$(e,o,"linePrefix")}function o(l){if(l===null||z(l))return t(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?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function oi(e,n,t,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||It(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||z(x)?t(x):(e.consume(x),x===92?g:h)}function g(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function S(x){return!f&&(x===null||x===41||Y(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<u&&x===40?(e.consume(x),f++,S):x===41?(e.consume(x),f--,S):x===null||x===32||x===40||It(x)?t(x):(e.consume(x),x===92?C:S)}function C(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function ai(e,n,t,r,i,o){const l=this;let a=0,s;return u;function u(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?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||z(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!B(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function si(e,n,t,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):t(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?t(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),$(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||z(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function at(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):B(i)?$(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Vo={name:"definition",tokenize:Ko},Wo={partial:!0,tokenize:Qo};function Ko(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return ai.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return Y(h)?at(e,u)(h):u(h)}function u(h){return oi(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Wo,c,c)(h)}function c(h){return B(h)?$(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Qo(e,n,t){return r;function r(a){return Y(a)?at(e,i)(a):t(a)}function i(a){return si(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return B(a)?$(e,l,"whitespace")(a):l(a)}function l(a){return a===null||z(a)?n(a):t(a)}}const Yo={name:"hardBreakEscape",tokenize:Xo};function Xo(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Go={name:"headingAtx",resolve:Jo,tokenize:Zo};function Jo(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ge(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Zo(e,n,t){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||Y(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||z(f)?(e.exit("atxHeading"),n(f)):B(f)?$(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||Y(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const ea=["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"],nr=["pre","script","style","textarea"],ta={concrete:!0,name:"htmlFlow",resolveTo:ia,tokenize:la},na={partial:!0,tokenize:aa},ra={partial:!0,tokenize:oa};function ia(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function la(e,n,t){const r=this;let i,o,l,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),p):m===47?(e.consume(m),o=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):ae(m)?(e.consume(m),l=String.fromCharCode(m),C):t(m)}function p(m){return m===45?(e.consume(m),i=2,h):m===91?(e.consume(m),i=5,a=0,g):ae(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function h(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function g(m){const he="CDATA[";return m===he.charCodeAt(a++)?(e.consume(m),a===he.length?r.interrupt?n:N:g):t(m)}function S(m){return ae(m)?(e.consume(m),l=String.fromCharCode(m),C):t(m)}function C(m){if(m===null||m===47||m===62||Y(m)){const he=m===47,we=l.toLowerCase();return!he&&!o&&nr.includes(we)?(i=1,r.interrupt?n(m):N(m)):ea.includes(l.toLowerCase())?(i=6,he?(e.consume(m),x):r.interrupt?n(m):N(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):o?v(m):E(m))}return m===45||le(m)?(e.consume(m),l+=String.fromCharCode(m),C):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:N):t(m)}function v(m){return B(m)?(e.consume(m),v):y(m)}function E(m){return m===47?(e.consume(m),y):m===58||m===95||ae(m)?(e.consume(m),R):B(m)?(e.consume(m),E):y(m)}function R(m){return m===45||m===46||m===58||m===95||le(m)?(e.consume(m),R):F(m)}function F(m){return m===61?(e.consume(m),b):B(m)?(e.consume(m),F):E(m)}function b(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,_):B(m)?(e.consume(m),b):V(m)}function _(m){return m===s?(e.consume(m),s=null,U):m===null||z(m)?t(m):(e.consume(m),_)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Y(m)?F(m):(e.consume(m),V)}function U(m){return m===47||m===62||B(m)?E(m):t(m)}function y(m){return m===62?(e.consume(m),P):t(m)}function P(m){return m===null||z(m)?N(m):B(m)?(e.consume(m),P):t(m)}function N(m){return m===45&&i===2?(e.consume(m),H):m===60&&i===1?(e.consume(m),G):m===62&&i===4?(e.consume(m),re):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ne):z(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(na,ye,W)(m)):m===null||z(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),N)}function W(m){return e.check(ra,L,ye)(m)}function L(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),A}function A(m){return m===null||z(m)?W(m):(e.enter("htmlFlowData"),N(m))}function H(m){return m===45?(e.consume(m),d):N(m)}function G(m){return m===47?(e.consume(m),l="",fe):N(m)}function fe(m){if(m===62){const he=l.toLowerCase();return nr.includes(he)?(e.consume(m),re):N(m)}return ae(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),fe):N(m)}function ne(m){return m===93?(e.consume(m),d):N(m)}function d(m){return m===62?(e.consume(m),re):m===45&&i===2?(e.consume(m),d):N(m)}function re(m){return m===null||z(m)?(e.exit("htmlFlowData"),ye(m)):(e.consume(m),re)}function ye(m){return e.exit("htmlFlow"),n(m)}}function oa(e,n,t){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function aa(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(mt,n,t)}}const sa={name:"htmlText",tokenize:ua};function ua(e,n,t){const r=this;let i,o,l;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),F):d===63?(e.consume(d),E):ae(d)?(e.consume(d),V):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),o=0,g):ae(d)?(e.consume(d),v):t(d)}function f(d){return d===45?(e.consume(d),h):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),p):z(d)?(l=c,G(d)):(e.consume(d),c)}function p(d){return d===45?(e.consume(d),h):c(d)}function h(d){return d===62?H(d):d===45?p(d):c(d)}function g(d){const re="CDATA[";return d===re.charCodeAt(o++)?(e.consume(d),o===re.length?S:g):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),C):z(d)?(l=S,G(d)):(e.consume(d),S)}function C(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?H(d):d===93?(e.consume(d),x):S(d)}function v(d){return d===null||d===62?H(d):z(d)?(l=v,G(d)):(e.consume(d),v)}function E(d){return d===null?t(d):d===63?(e.consume(d),R):z(d)?(l=E,G(d)):(e.consume(d),E)}function R(d){return d===62?H(d):E(d)}function F(d){return ae(d)?(e.consume(d),b):t(d)}function b(d){return d===45||le(d)?(e.consume(d),b):_(d)}function _(d){return z(d)?(l=_,G(d)):B(d)?(e.consume(d),_):H(d)}function V(d){return d===45||le(d)?(e.consume(d),V):d===47||d===62||Y(d)?U(d):t(d)}function U(d){return d===47?(e.consume(d),H):d===58||d===95||ae(d)?(e.consume(d),y):z(d)?(l=U,G(d)):B(d)?(e.consume(d),U):H(d)}function y(d){return d===45||d===46||d===58||d===95||le(d)?(e.consume(d),y):P(d)}function P(d){return d===61?(e.consume(d),N):z(d)?(l=P,G(d)):B(d)?(e.consume(d),P):U(d)}function N(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,W):z(d)?(l=N,G(d)):B(d)?(e.consume(d),N):(e.consume(d),L)}function W(d){return d===i?(e.consume(d),i=void 0,A):d===null?t(d):z(d)?(l=W,G(d)):(e.consume(d),W)}function L(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||Y(d)?U(d):(e.consume(d),L)}function A(d){return d===47||d===62||Y(d)?U(d):t(d)}function H(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function G(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),fe}function fe(d){return B(d)?$(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ne(d)}function ne(d){return e.enter("htmlTextData"),l(d)}}const Sn={name:"labelEnd",resolveAll:pa,resolveTo:ma,tokenize:da},ca={tokenize:ga},fa={tokenize:xa},ha={tokenize:ya};function pa(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ge(e,0,e.length,t),e}function ma(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={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,n],["enter",u,n]],a=xe(a,e.slice(o+1,o+r+3)),a=xe(a,[["enter",f,n]]),a=xe(a,Pt(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=xe(a,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),a=xe(a,e.slice(l+1)),a=xe(a,[["exit",s,n]]),ge(e,o,e.length,a),e}function da(e,n,t){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?c(p):(l=r.parser.defined.includes(be(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(ca,f,l?f:c)(p):p===91?e.attempt(fa,f,l?u:c)(p):l?f(p):c(p)}function u(p){return e.attempt(ha,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function ga(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Y(c)?at(e,o)(c):o(c)}function o(c){return c===41?f(c):oi(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return Y(c)?at(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?si(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return Y(c)?at(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function xa(e,n,t){const r=this;return i;function i(a){return ai.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function ya(e,n,t){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"),n):t(o)}}const ka={name:"labelStartImage",resolveAll:Sn.resolveAll,tokenize:ba};function ba(e,n,t){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):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const wa={name:"labelStartLink",resolveAll:Sn.resolveAll,tokenize:Sa};function Sa(e,n,t){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?t(l):n(l)}}const Mt={name:"lineEnding",tokenize:Ca};function Ca(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$(e,n,"linePrefix")}}const Et={name:"thematicBreak",tokenize:Ea};function Ea(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||z(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),B(u)?$(e,a,"whitespace")(u):a(u))}}const ue={continuation:{tokenize:Ta},exit:Da,name:"list",tokenize:Aa},Ia={partial:!0,tokenize:Na},va={partial:!0,tokenize:Pa};function Aa(e,n,t){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 g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:rn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Et,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return rn(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"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(mt,r.interrupt?t:f,e.attempt(Ia,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return B(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Ta(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(mt,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!B(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(va,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(ue,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Pa(e,n,t){const r=this;return $(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?n(o):t(o)}}function Da(e){e.exit(this.containerState.type)}function Na(e,n,t){const r=this;return $(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!B(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const rr={name:"setextUnderline",resolveTo:La,tokenize:za};function La(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);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,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function za(e,n,t){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),B(u)?$(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||z(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const Fa={tokenize:Ra};function Ra(e){const n=this,t=e.attempt(mt,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Bo,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const ja={resolveAll:ci()},_a=ui("string"),Oa=ui("text");function ui(e){return{resolveAll:ci(e==="text"?Ma:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),o(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function ci(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Ma(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===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={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Ba={42:ue,43:ue,45:ue,48:ue,49:ue,50:ue,51:ue,52:ue,53:ue,54:ue,55:ue,56:ue,57:ue,62:ni},Ha={91:Vo},qa={[-2]:Ot,[-1]:Ot,32:Ot},Ua={35:Go,42:Et,45:[rr,Et],60:ta,61:rr,95:Et,96:tr,126:tr},$a={38:ii,92:ri},Va={[-5]:Mt,[-4]:Mt,[-3]:Mt,33:ka,38:ii,42:ln,60:[wo,sa],91:wa,92:[Yo,ri],93:Sn,95:ln,96:Fo},Wa={null:[ln,ja]},Ka={null:[42,95]},Qa={null:[]},Ya=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ka,contentInitial:Ha,disable:Qa,document:Ba,flow:Ua,flowInitial:qa,insideSpan:Wa,string:$a,text:Va},Symbol.toStringTag,{value:"Module"}));function Xa(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:_(F),check:_(b),consume:v,enter:E,exit:R,interrupt:_(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&o.push(n),u;function c(P){return l=xe(l,P),C(),l[l.length-1]!==null?[]:(V(n,0),u.events=Pt(o,u.events,u),u.events)}function p(P,N){return Ja(h(P),N)}function h(P){return Ga(l,P)}function g(){const{_bufferIndex:P,_index:N,line:W,column:L,offset:A}=r;return{_bufferIndex:P,_index:N,line:W,column:L,offset:A}}function S(P){i[P.line]=P.column,y()}function C(){let P;for(;r._index<l.length;){const N=l[r._index];if(typeof N=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<N.length;)x(N.charCodeAt(r._bufferIndex));else x(N)}}function x(P){f=f(P)}function v(P){z(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,y()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=P}function E(P,N){const W=N||{};return W.type=P,W.start=g(),u.events.push(["enter",W,u]),a.push(W),W}function R(P){const N=a.pop();return N.end=g(),u.events.push(["exit",N,u]),N}function F(P,N){V(P,N.from)}function b(P,N){N.restore()}function _(P,N){return W;function W(L,A,H){let G,fe,ne,d;return Array.isArray(L)?ye(L):"tokenize"in L?ye([L]):re(L);function re(J){return De;function De(Se){const Ce=Se!==null&&J[Se],ve=Se!==null&&J.null,Fe=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return ye(Fe)(Se)}}function ye(J){return G=J,fe=0,J.length===0?H:m(J[fe])}function m(J){return De;function De(Se){return d=U(),ne=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?we():J.tokenize.call(N?Object.assign(Object.create(u),N):u,s,he,we)(Se)}}function he(J){return P(ne,d),A}function we(J){return d.restore(),++fe<G.length?m(G[fe]):H}}}function V(P,N){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&ge(u.events,N,u.events.length-N,P.resolve(u.events.slice(N),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function U(){const P=g(),N=u.previous,W=u.currentConstruct,L=u.events.length,A=Array.from(a);return{from:L,restore:H};function H(){r=P,u.previous=N,u.currentConstruct=W,u.events.length=L,a=A,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ga(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,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 Ja(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
3
3
|
`;break}case-3:{l=`\r
|
|
4
4
|
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Za(e){const r={constructs:ei([Ya,...(e||{}).extensions||[]]),content:i(po),defined:[],document:i(go),flow:i(Fa),lazy:{},string:i(_a),text:i(Oa)};return r;function i(o){return l;function l(a){return Xa(r,o,a)}}}function es(e){for(;!li(e););return e}const ir=/[\0\t\n\r]/g;function ts(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(ir.lastIndex=c,u=ir.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){n=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),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}c=p+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const ns=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rs(e){return e.replace(ns,is)}function is(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return ti(t.slice(o?2:1),o?16:10)}return wn(t)||e}const fi={}.hasOwnProperty;function ls(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),os(t)(es(Za(t).document().write(ts()(e,n,!0))))}function os(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(qe),autolinkProtocol:U,autolinkEmail:U,atxHeading:o(ee),blockQuote:o(ve),characterEscape:U,characterReference:U,codeFenced:o(Fe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Fe,l),codeText:o(xt,l),codeTextData:U,data:U,codeFlowValue:U,definition:o(D),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Z),hardBreakEscape:o(ie),hardBreakTrailing:o(ie),htmlFlow:o(Re,l),htmlFlowData:U,htmlText:o(Re,l),htmlTextData:U,image:o(Ze),label:l,link:o(qe),listItem:o(je),listItemValue:p,listOrdered:o(se,c),listUnordered:o(se),paragraph:o(yt),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ee),strong:o(zt),thematicBreak:o(kt)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:Ce,autolinkProtocol:Se,blockQuote:s(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:J,characterReference:De,codeFenced:s(C),codeFencedFence:S,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:y,codeIndented:s(x),codeText:s(A),codeTextData:y,data:y,definition:s(),definitionDestinationString:R,definitionLabelString:v,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(N),hardBreakTrailing:s(N),htmlFlow:s(W),htmlFlowData:y,htmlText:s(L),htmlTextData:y,image:s(G),label:ne,labelText:fe,lineEnding:P,link:s(H),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:he,resourceDestinationString:d,resourceTitleString:re,resource:ye,setextHeading:s(V),setextHeadingLineSequence:_,setextHeadingText:b,strong:s(),thematicBreak:s()}};hi(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(w){let T={type:"root",children:[]};const j={stack:[T],tokenStack:[],config:n,enter:a,exit:u,buffer:l,resume:f,data:t},q=[];let Q=-1;for(;++Q<w.length;)if(w[Q][1].type==="listOrdered"||w[Q][1].type==="listUnordered")if(w[Q][0]==="enter")q.push(Q);else{const ke=q.pop();Q=i(w,ke,Q)}for(Q=-1;++Q<w.length;){const ke=n[w[Q][0]];fi.call(ke,w[Q][1].type)&&ke[w[Q][1].type].call(Object.assign({sliceSerialize:w[Q][2].sliceSerialize},j),w[Q][1])}if(j.tokenStack.length>0){const ke=j.tokenStack[j.tokenStack.length-1];(ke[1]||lr).call(j,void 0,ke[0])}for(T.position={start:Ne(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:Ne(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},Q=-1;++Q<n.transforms.length;)T=n.transforms[Q](T)||T;return T}function i(w,T,j){let q=T-1,Q=-1,ke=!1,_e,Ae,et,tt;for(;++q<=j;){const pe=w[q];switch(pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pe[0]==="enter"?Q++:Q--,tt=void 0;break}case"lineEndingBlank":{pe[0]==="enter"&&(_e&&!tt&&!Q&&!et&&(et=q),tt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:tt=void 0}if(!Q&&pe[0]==="enter"&&pe[1].type==="listItemPrefix"||Q===-1&&pe[0]==="exit"&&(pe[1].type==="listUnordered"||pe[1].type==="listOrdered")){if(_e){let $e=q;for(Ae=void 0;$e--;){const Te=w[$e];if(Te[1].type==="lineEnding"||Te[1].type==="lineEndingBlank"){if(Te[0]==="exit")continue;Ae&&(w[Ae][1].type="lineEndingBlank",ke=!0),Te[1].type="lineEnding",Ae=$e}else if(!(Te[1].type==="linePrefix"||Te[1].type==="blockQuotePrefix"||Te[1].type==="blockQuotePrefixWhitespace"||Te[1].type==="blockQuoteMarker"||Te[1].type==="listItemIndent"))break}et&&(!Ae||et<Ae)&&(_e._spread=!0),_e.end=Object.assign({},Ae?w[Ae][1].start:pe[1].end),w.splice(Ae||q,0,["exit",_e,pe[2]]),q++,j++}if(pe[1].type==="listItemPrefix"){const $e={type:"listItem",_spread:!1,start:Object.assign({},pe[1].start),end:void 0};_e=$e,w.splice(q,0,["enter",$e,pe[2]]),q++,j++,et=void 0,tt=!0}}}return w[T][1]._spread=ke,j}function o(w,T){return j;function j(q){a.call(this,w(q),q),T&&T.call(this,q)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(w,T,j){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([T,j||void 0]),w.position={start:Ne(T.start),end:void 0}}function s(w){return T;function T(j){w&&w.call(this,j),u.call(this,j)}}function u(w,T){const j=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==w.type&&(T?T.call(this,w,q[0]):(q[1]||lr).call(this,w,q[0]));else throw new Error("Cannot close `"+w.type+"` ("+ot({start:w.start,end:w.end})+"): it’s not open");j.position.end=Ne(w.end)}function f(){return bn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(w){if(this.data.expectingFirstListItemValue){const T=this.stack[this.stack.length-2];T.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function h(){const w=this.resume(),T=this.stack[this.stack.length-1];T.lang=w}function g(){const w=this.resume(),T=this.stack[this.stack.length-1];T.meta=w}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w.replace(/(\r?\n|\r)$/g,"")}function v(w){const T=this.resume(),j=this.stack[this.stack.length-1];j.label=T,j.identifier=be(this.sliceSerialize(w)).toLowerCase()}function E(){const w=this.resume(),T=this.stack[this.stack.length-1];T.title=w}function R(){const w=this.resume(),T=this.stack[this.stack.length-1];T.url=w}function F(w){const T=this.stack[this.stack.length-1];if(!T.depth){const j=this.sliceSerialize(w).length;T.depth=j}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function _(w){const T=this.stack[this.stack.length-1];T.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function U(w){const j=this.stack[this.stack.length-1].children;let q=j[j.length-1];(!q||q.type!=="text")&&(q=Ue(),q.position={start:Ne(w.start),end:void 0},j.push(q)),this.stack.push(q)}function y(w){const T=this.stack.pop();T.value+=this.sliceSerialize(w),T.position.end=Ne(w.end)}function P(w){const T=this.stack[this.stack.length-1];if(this.data.atHardBreak){const j=T.children[T.children.length-1];j.position.end=Ne(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(T.type)&&(U.call(this,w),y.call(this,w))}function N(){this.data.atHardBreak=!0}function W(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w}function L(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w}function A(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w}function H(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=T,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function G(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=T,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function fe(w){const T=this.sliceSerialize(w),j=this.stack[this.stack.length-2];j.label=rs(T),j.identifier=be(T).toLowerCase()}function ne(){const w=this.stack[this.stack.length-1],T=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){const q=w.children;j.children=q}else j.alt=T}function d(){const w=this.resume(),T=this.stack[this.stack.length-1];T.url=w}function re(){const w=this.resume(),T=this.stack[this.stack.length-1];T.title=w}function ye(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function he(w){const T=this.resume(),j=this.stack[this.stack.length-1];j.label=T,j.identifier=be(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function we(w){this.data.characterReferenceType=w.type}function J(w){const T=this.sliceSerialize(w),j=this.data.characterReferenceType;let q;j?(q=ti(T,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=wn(T);const Q=this.stack[this.stack.length-1];Q.value+=q}function De(w){const T=this.stack.pop();T.position.end=Ne(w.end)}function Se(w){y.call(this,w);const T=this.stack[this.stack.length-1];T.url=this.sliceSerialize(w)}function Ce(w){y.call(this,w);const T=this.stack[this.stack.length-1];T.url="mailto:"+this.sliceSerialize(w)}function ve(){return{type:"blockquote",children:[]}}function Fe(){return{type:"code",lang:null,meta:null,value:""}}function xt(){return{type:"inlineCode",value:""}}function D(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Z(){return{type:"emphasis",children:[]}}function ee(){return{type:"heading",depth:0,children:[]}}function ie(){return{type:"break"}}function Re(){return{type:"html",value:""}}function Ze(){return{type:"image",title:null,url:"",alt:null}}function qe(){return{type:"link",title:null,url:"",children:[]}}function se(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function je(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function yt(){return{type:"paragraph",children:[]}}function zt(){return{type:"strong",children:[]}}function Ue(){return{type:"text",value:""}}function kt(){return{type:"thematicBreak"}}}function Ne(e){return{line:e.line,column:e.column,offset:e.offset}}function hi(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?hi(e,r):as(e,r)}}function as(e,n){let t;for(t in n)if(fi.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function lr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ot({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ot({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ot({start:n.start,end:n.end})+") is still open")}function ss(e){const n=this;n.parser=t;function t(r){return ls(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function us(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function cs(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,j as e,a4 as j,A as D,
|
|
1
|
+
import{r as x,j as e,a4 as j,A as D,aq as L,ar as R,a7 as k}from"./vendor-C8fQ0Vej.js";import{u as E}from"./useConfirmDialog-DGWSgJUB.js";import{m as M,n as P,o as T,p as J,I as A}from"./useConfig-CPpZMJSX.js";import{P as F,a as z,B as o}from"./page-layout-DXAYLIUr.js";import{c as p,t,S as q,b as B,d as I,e as Q,g as f,a as y}from"./index-nZ3tdMe1.js";import{C as H,d as V}from"./card-FVpEr1qe.js";import"./dialog-o8XweWHQ.js";function g(s){return y(s??void 0)}function O(s){return typeof s!="number"||!Number.isFinite(s)?"-":y(new Date(s))}function G(s){if(typeof s!="number"||!Number.isFinite(s))return"-";const r=Math.round(s/1e3);if(r<60)return`${r}s`;const n=Math.round(r/60);if(n<60)return`${n}m`;const c=Math.round(n/60);return c<24?`${c}h`:`${Math.round(c/24)}d`}function K(s){const r=s.schedule;return r.kind==="cron"?r.expr?`cron ${r.expr}`:"cron":r.kind==="every"?`every ${G(r.everyMs)}`:r.kind==="at"?`at ${O(r.atMs)}`:"-"}function U(s){if(!s.payload.deliver)return"-";const r=s.payload.channel??"-",n=s.payload.to??"-";return`${r}:${n}`}function W(s,r){const n=r.trim().toLowerCase();return n?[s.id,s.name,s.payload.message,s.payload.channel??"",s.payload.to??""].join(" ").toLowerCase().includes(n):!0}function X(s,r){return r==="all"?!0:r==="enabled"?s.enabled:!s.enabled}function re(){var h;const[s,r]=x.useState(""),[n,c]=x.useState("all"),i=M({all:!0}),v=P(),N=T(),w=J(),{confirm:m,ConfirmDialog:C}=E(),u=x.useMemo(()=>{var l;return(((l=i.data)==null?void 0:l.jobs)??[]).filter(d=>W(d,s)).filter(d=>X(d,n))},[i.data,s,n]),b=async a=>{await m({title:`${t("cronDeleteConfirm")}?`,description:a.name?`${a.name} (${a.id})`:a.id,variant:"destructive",confirmLabel:t("delete")})&&v.mutate({id:a.id})},S=async a=>{const l=!a.enabled;await m({title:l?`${t("cronEnableConfirm")}?`:`${t("cronDisableConfirm")}?`,description:a.name?`${a.name} (${a.id})`:a.id,variant:l?"default":"destructive",confirmLabel:l?t("cronEnable"):t("cronDisable")})&&N.mutate({id:a.id,enabled:l})},$=async a=>{const l=!a.enabled;await m({title:l?`${t("cronRunForceConfirm")}?`:`${t("cronRunConfirm")}?`,description:a.name?`${a.name} (${a.id})`:a.id,confirmLabel:t("cronRunNow")})&&w.mutate({id:a.id,force:l})};return e.jsxs(F,{fullHeight:!0,children:[e.jsx(z,{title:t("cronPageTitle"),description:t("cronPageDescription"),actions:e.jsx(o,{variant:"ghost",size:"icon",className:"h-9 w-9 rounded-lg text-gray-400 hover:text-gray-700 hover:bg-gray-100",onClick:()=>i.refetch(),children:e.jsx(j,{className:p("h-4 w-4",i.isFetching&&"animate-spin")})})}),e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex flex-wrap gap-3 items-center",children:[e.jsxs("div",{className:"relative flex-1 min-w-[240px]",children:[e.jsx(A,{value:s,onChange:a=>r(a.target.value),placeholder:t("cronSearchPlaceholder"),className:"pl-9"}),e.jsx(D,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"})]}),e.jsx("div",{className:"min-w-[180px]",children:e.jsxs(q,{value:n,onValueChange:a=>c(a),children:[e.jsx(B,{className:"w-full",children:e.jsx(I,{placeholder:t("cronStatusLabel")})}),e.jsxs(Q,{children:[e.jsx(f,{value:"all",children:t("cronStatusAll")}),e.jsx(f,{value:"enabled",children:t("cronStatusEnabled")}),e.jsx(f,{value:"disabled",children:t("cronStatusDisabled")})]})]})}),e.jsxs("div",{className:"text-xs text-gray-500 ml-auto",children:[t("cronTotalLabel"),": ",((h=i.data)==null?void 0:h.total)??0," / ",u.length]})]})}),e.jsx("div",{className:"flex-1 overflow-auto custom-scrollbar",children:i.isLoading?e.jsx("div",{className:"text-sm text-gray-400 p-4 text-center",children:t("cronLoading")}):u.length===0?e.jsx("div",{className:"text-sm text-gray-400 p-4 text-center",children:t("cronEmpty")}):e.jsx("div",{className:"space-y-4",children:u.map(a=>e.jsx(H,{className:"border border-gray-200",children:e.jsx(V,{className:"pt-5 pb-5",children:e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-[220px] flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-900",children:a.name||a.id}),e.jsx("span",{className:"text-[10px] font-semibold px-2 py-0.5 rounded-full bg-gray-100 text-gray-500",children:a.id}),e.jsx("span",{className:p("text-[10px] font-semibold px-2 py-0.5 rounded-full",a.enabled?"bg-emerald-50 text-emerald-700":"bg-gray-100 text-gray-500"),children:a.enabled?t("enabled"):t("disabled")}),a.deleteAfterRun&&e.jsx("span",{className:"text-[10px] font-semibold px-2 py-0.5 rounded-full bg-amber-50 text-amber-700",children:t("cronOneShot")})]}),e.jsxs("div",{className:"mt-2 text-xs text-gray-500",children:[t("cronScheduleLabel"),": ",K(a)]}),e.jsx("div",{className:"mt-2 text-sm text-gray-700 whitespace-pre-wrap break-words",children:a.payload.message}),e.jsxs("div",{className:"mt-2 text-xs text-gray-500",children:[t("cronDeliverTo"),": ",U(a)]})]}),e.jsxs("div",{className:"min-w-[220px] text-xs text-gray-500 space-y-2",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"font-medium text-gray-700",children:[t("cronNextRun"),":"]})," ",g(a.state.nextRunAt)]}),e.jsxs("div",{children:[e.jsxs("span",{className:"font-medium text-gray-700",children:[t("cronLastRun"),":"]})," ",g(a.state.lastRunAt)]}),e.jsxs("div",{children:[e.jsxs("span",{className:"font-medium text-gray-700",children:[t("cronLastStatus"),":"]})," ",a.state.lastStatus??"-"]}),a.state.lastError&&e.jsx("div",{className:"text-[11px] text-red-500 break-words",children:a.state.lastError})]}),e.jsxs("div",{className:"flex items-start gap-2 flex-wrap justify-end",children:[e.jsxs(o,{variant:"subtle",size:"sm",onClick:()=>$(a),className:"gap-1",children:[e.jsx(L,{className:"h-3.5 w-3.5"}),t("cronRunNow")]}),e.jsxs(o,{variant:a.enabled?"outline":"primary",size:"sm",onClick:()=>S(a),className:"gap-1",children:[e.jsx(R,{className:"h-3.5 w-3.5"}),a.enabled?t("cronDisable"):t("cronEnable")]}),e.jsxs(o,{variant:"destructive",size:"sm",onClick:()=>b(a),className:"gap-1",children:[e.jsx(k,{className:"h-3.5 w-3.5"}),t("delete")]})]})]})})},a.id))})}),e.jsx(C,{})]})}export{re as CronConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,j as t,s as J,
|
|
1
|
+
import{r as s,j as t,s as J,aU as K,aV as Q,af as Z,aW as ee,aj as te,_ as re,am as se,aX as oe}from"./vendor-C8fQ0Vej.js";import{j as ae,D as W,t as x,c as C}from"./index-nZ3tdMe1.js";function ce(){const{isOpen:U,mode:f,currentUrl:i,navVersion:h,close:B,toggleMode:P,goBack:Y,goForward:F,canGoBack:I,canGoForward:O,navigate:v,syncUrl:z}=ae(),[b,y]=s.useState(""),[j,M]=s.useState(!1),[_,m]=s.useState(!1),[l,N]=s.useState(()=>({x:Math.max(40,window.innerWidth-520),y:80})),[a,R]=s.useState({w:480,h:600}),[E,A]=s.useState(420),c=s.useRef(null),d=s.useRef(null),p=s.useRef(null),k=s.useRef(null),X=s.useRef(h);s.useEffect(()=>{try{const e=new URL(i);y(e.pathname)}catch{y(i)}},[i]),s.useEffect(()=>{var e;if(h!==X.current){X.current=h;return}if((e=k.current)!=null&&e.contentWindow)try{const r=new URL(i).pathname;k.current.contentWindow.postMessage({type:"docs-navigate",path:r},"*")}catch{}},[i,h]),s.useEffect(()=>{f==="floating"&&N(e=>({x:Math.max(40,window.innerWidth-a.w-40),y:e.y}))},[f,a.w]),s.useEffect(()=>{const e=r=>{var o;((o=r.data)==null?void 0:o.type)==="docs-route-change"&&typeof r.data.url=="string"&&z(r.data.url)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[z]);const V=s.useCallback(e=>{e.preventDefault();const r=b.trim();r&&(r.startsWith("/")?v(`${W}${r}`):r.startsWith("http")?v(r):v(`${W}/${r}`))},[b,v]),$=s.useCallback(e=>{f==="floating"&&(M(!0),c.current={startX:e.clientX,startY:e.clientY,startPosX:l.x,startPosY:l.y})},[f,l]);s.useEffect(()=>{if(!j)return;const e=o=>{c.current&&N({x:c.current.startPosX+(o.clientX-c.current.startX),y:c.current.startPosY+(o.clientY-c.current.startY)})},r=()=>{M(!1),c.current=null};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",r),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r)}},[j]);const L=s.useCallback(e=>{e.preventDefault(),e.stopPropagation(),m(!0);const r=e.currentTarget.dataset.axis;d.current={startX:e.clientX,startY:e.clientY,startW:a.w,startH:a.h};const o=u=>{d.current&&R(g=>({w:r==="y"?g.w:Math.max(360,d.current.startW+(u.clientX-d.current.startX)),h:r==="x"?g.h:Math.max(400,d.current.startH+(u.clientY-d.current.startY))}))},w=()=>{m(!1),d.current=null,window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",w)};window.addEventListener("mousemove",o),window.addEventListener("mouseup",w)},[a]),G=s.useCallback(e=>{e.preventDefault(),e.stopPropagation(),m(!0),p.current={startX:e.clientX,startW:E};const r=w=>{if(!p.current)return;const u=p.current.startX-w.clientX;A(Math.max(320,Math.min(800,p.current.startW+u)))},o=()=>{m(!1),p.current=null,window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",o)};window.addEventListener("mousemove",r),window.addEventListener("mouseup",o)},[E]),T=s.useCallback(e=>{e.preventDefault(),e.stopPropagation(),m(!0);const r=e.clientX,o=a.w,w=l.x,u=H=>{const q=r-H.clientX,S=Math.max(360,o+q);R(D=>({...D,w:S})),N(D=>({...D,x:w-(S-o)}))},g=()=>{m(!1),window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",g)};window.addEventListener("mousemove",u),window.addEventListener("mouseup",g)},[a.w,l.x]);if(!U)return null;const n=f==="docked";return t.jsxs("div",{className:C("flex flex-col bg-white overflow-hidden relative",n?"h-full border-l border-gray-200 shrink-0":"rounded-2xl shadow-2xl border border-gray-200"),style:n?{width:E}:{position:"fixed",left:l.x,top:l.y,width:a.w,height:a.h,zIndex:9999},children:[n&&t.jsx("div",{className:"absolute top-0 left-0 w-1.5 h-full cursor-ew-resize z-20 hover:bg-primary/10 transition-colors",onMouseDown:G}),t.jsxs("div",{className:C("flex items-center justify-between px-4 py-2.5 bg-gray-50 border-b border-gray-200 shrink-0 select-none",!n&&"cursor-grab active:cursor-grabbing"),onMouseDown:n?void 0:$,children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx(J,{className:"w-4 h-4 text-primary"}),t.jsx("span",{className:"text-sm font-semibold text-gray-900",children:x("docBrowserTitle")})]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("button",{onClick:P,className:"hover:bg-gray-200 rounded-md p-1.5 text-gray-500 hover:text-gray-700 transition-colors",title:n?x("docBrowserFloatMode"):x("docBrowserDockMode"),children:n?t.jsx(K,{className:"w-3.5 h-3.5"}):t.jsx(Q,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:B,className:"hover:bg-gray-200 rounded-md p-1.5 text-gray-500 hover:text-gray-700 transition-colors",title:x("docBrowserClose"),children:t.jsx(Z,{className:"w-3.5 h-3.5"})})]})]}),t.jsxs("div",{className:"flex items-center gap-2 px-3.5 py-2 bg-white border-b border-gray-100 shrink-0",children:[t.jsx("button",{onClick:Y,disabled:!I,className:"p-1.5 rounded-md hover:bg-gray-100 disabled:opacity-30 disabled:cursor-not-allowed text-gray-600 transition-colors",children:t.jsx(ee,{className:"w-4 h-4"})}),t.jsx("button",{onClick:F,disabled:!O,className:"p-1.5 rounded-md hover:bg-gray-100 disabled:opacity-30 disabled:cursor-not-allowed text-gray-600 transition-colors",children:t.jsx(te,{className:"w-4 h-4"})}),t.jsxs("form",{onSubmit:V,className:"flex-1 relative",children:[t.jsx(re,{className:"w-3.5 h-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),t.jsx("input",{type:"text",value:b,onChange:e=>y(e.target.value),placeholder:x("docBrowserSearchPlaceholder"),className:"w-full h-8 pl-8 pr-3 rounded-lg bg-gray-50 border border-gray-200 text-xs text-gray-700 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 transition-colors placeholder:text-gray-400"})]})]}),t.jsxs("div",{className:"flex-1 relative overflow-hidden",children:[t.jsx("iframe",{ref:k,src:i,className:"absolute inset-0 w-full h-full border-0",title:"NextClaw Documentation",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",allow:"clipboard-read; clipboard-write"},h),(_||j)&&t.jsx("div",{className:"absolute inset-0 z-10"})]}),t.jsx("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-50 border-t border-gray-200 shrink-0",children:t.jsxs("a",{href:i,target:"_blank",rel:"noopener noreferrer","data-doc-external":!0,className:"flex items-center gap-1.5 text-xs text-primary hover:text-primary-hover font-medium transition-colors",children:[x("docBrowserOpenExternal"),t.jsx(se,{className:"w-3 h-3"})]})}),!n&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"absolute top-0 left-0 w-1.5 h-full cursor-ew-resize z-20 hover:bg-primary/10 transition-colors",onMouseDown:T}),t.jsx("div",{className:"absolute top-0 right-0 w-1.5 h-full cursor-ew-resize z-20 hover:bg-primary/10 transition-colors",onMouseDown:L,"data-axis":"x"}),t.jsx("div",{className:"absolute bottom-0 left-0 h-1.5 w-full cursor-ns-resize z-20 hover:bg-primary/10 transition-colors",onMouseDown:L,"data-axis":"y"}),t.jsx("div",{className:"absolute bottom-0 right-0 w-4 h-4 cursor-se-resize z-30 flex items-center justify-center text-gray-300 hover:text-gray-500 transition-colors",onMouseDown:L,children:t.jsx(oe,{className:"w-3 h-3 rotate-[-45deg]"})})]})]})}export{ce as DocBrowser};
|