@gobing-ai/spur 0.3.69 → 0.3.71
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/.claude-plugin/marketplace.json +1 -1
- package/config/corpus-baseline.json +0 -18
- package/config/plugin-scripts.json +8 -0
- package/config/workflow-composition-baseline.json +123 -377
- package/config/workflows/idea-pipeline.yaml +4 -3
- package/config/workflows/task-pipeline.yaml +58 -9
- package/config/workflows/wrapup-pipeline.yaml +10 -4
- package/package.json +9 -9
- package/plugins/sp/commands/dev-fixall.md +4 -3
- package/plugins/sp/plugin.json +1 -1
- package/plugins/sp/scripts/task-evidence-precheck.ts +181 -0
- package/plugins/sp/scripts/verify-answer-lint.ts +395 -0
- package/plugins/sp/skills/code-implementation/SKILL.md +1 -1
- package/plugins/sp/skills/code-verification/SKILL.md +11 -10
- package/plugins/sp/skills/code-verification/references/verdict-schema.md +10 -0
- package/plugins/sp/skills/spec-decomposition/SKILL.md +1 -1
- package/plugins/sp/skills/spur-cli/references/history.md +8 -6
- package/plugins/sp/skills/spur-dev/references/dev-operations.md +2 -2
- package/plugins/sp/skills/spur-dev/references/execution-workflow.md +8 -1
- package/plugins/sp/skills/spur-dev/references/gate-checklists.md +17 -1
- package/plugins/sp/skills/spur-dev/references/inline-pipeline-driver.md +25 -0
- package/spur.js +1385 -291
- package/web/_astro/BoardApp.BnjsI80-.js +178 -0
- package/web/_astro/BoardApp.SJcrHBZp.js +1 -0
- package/web/_astro/{TaskDetail.Dl2Eaj1w.js → TaskDetail.BvkKvo57.js} +1 -1
- package/web/_astro/{arc.uG14rp8A.js → arc.DuEIzPMi.js} +1 -1
- package/web/_astro/{architectureDiagram-3BPJPVTR.Dye6uD_x.js → architectureDiagram-3BPJPVTR.D0dUxCjA.js} +1 -1
- package/web/_astro/{blockDiagram-GPEHLZMM.B9Pkh7Hb.js → blockDiagram-GPEHLZMM.Cv60iOpM.js} +1 -1
- package/web/_astro/{c4Diagram-AAUBKEIU.C2x7SC_X.js → c4Diagram-AAUBKEIU.Ddx7WGhb.js} +1 -1
- package/web/_astro/channel.tWfETQvX.js +1 -0
- package/web/_astro/{chunk-2J33WTMH.D2p4-nWk.js → chunk-2J33WTMH.BGKzU_1t.js} +1 -1
- package/web/_astro/{chunk-4BX2VUAB.S-6jf33o.js → chunk-4BX2VUAB.FlApjIIH.js} +1 -1
- package/web/_astro/{chunk-55IACEB6.DVXj4Fdh.js → chunk-55IACEB6.CDfmvDeW.js} +1 -1
- package/web/_astro/{chunk-727SXJPM.Dz689FMN.js → chunk-727SXJPM.T9bc-xir.js} +1 -1
- package/web/_astro/{chunk-AQP2D5EJ.KxYj5TnI.js → chunk-AQP2D5EJ.BiTc-MQo.js} +1 -1
- package/web/_astro/{chunk-FMBD7UC4.itTQyHQB.js → chunk-FMBD7UC4.he4KrHni.js} +1 -1
- package/web/_astro/{chunk-ND2GUHAM.euSrbJf5.js → chunk-ND2GUHAM.D05XuUuJ.js} +1 -1
- package/web/_astro/{chunk-QZHKN3VN.OWASJRQy.js → chunk-QZHKN3VN.CA2NThIE.js} +1 -1
- package/web/_astro/{classDiagram-4FO5ZUOK.BLvrlpNO.js → classDiagram-4FO5ZUOK.Couj-zYZ.js} +1 -1
- package/web/_astro/{classDiagram-v2-Q7XG4LA2.BLvrlpNO.js → classDiagram-v2-Q7XG4LA2.Couj-zYZ.js} +1 -1
- package/web/_astro/{cose-bilkent-S5V4N54A.XBF-rmyD.js → cose-bilkent-S5V4N54A.B8YYW7NG.js} +1 -1
- package/web/_astro/{cynefin-OW5HDTMX.DlCx762Z.js → cynefin-OW5HDTMX.BExFdiin.js} +1 -1
- package/web/_astro/{dagre-BM42HDAG.D17Rshxv.js → dagre-BM42HDAG.BybKbz3q.js} +1 -1
- package/web/_astro/{diagram-2AECGRRQ.AhBIVJC8.js → diagram-2AECGRRQ.UyRTSl9n.js} +1 -1
- package/web/_astro/{diagram-5GNKFQAL.C9ximjyC.js → diagram-5GNKFQAL.BrxCucBf.js} +1 -1
- package/web/_astro/{diagram-KO2AKTUF.CZb7Ru_9.js → diagram-KO2AKTUF.CdE5oy5J.js} +1 -1
- package/web/_astro/{diagram-LMA3HP47.BW7LwqoS.js → diagram-LMA3HP47.BJLgdosK.js} +1 -1
- package/web/_astro/{diagram-OG6HWLK6.XC025W0V.js → diagram-OG6HWLK6.CUynieTU.js} +1 -1
- package/web/_astro/{erDiagram-TEJ5UH35.CpMXmBDP.js → erDiagram-TEJ5UH35.C0vS6DJv.js} +1 -1
- package/web/_astro/{flowDiagram-I6XJVG4X.D2ednJWg.js → flowDiagram-I6XJVG4X.T3QLi_en.js} +1 -1
- package/web/_astro/{ganttDiagram-6RSMTGT7.BjL9FGKO.js → ganttDiagram-6RSMTGT7.BNsk3w9Z.js} +1 -1
- package/web/_astro/{gitGraphDiagram-PVQCEYII.B90g1VGk.js → gitGraphDiagram-PVQCEYII.Mwe2I4V6.js} +1 -1
- package/web/_astro/index.9npdrEIr.css +1 -0
- package/web/_astro/{infoDiagram-5YYISTIA.RqgycKtQ.js → infoDiagram-5YYISTIA.BlcjLmtc.js} +1 -1
- package/web/_astro/{ishikawaDiagram-YF4QCWOH.Ctn-zt6a.js → ishikawaDiagram-YF4QCWOH.js8qeS0h.js} +1 -1
- package/web/_astro/{journeyDiagram-JHISSGLW.DJhT8Ctp.js → journeyDiagram-JHISSGLW.CM6UK0a4.js} +1 -1
- package/web/_astro/{kanban-definition-UN3LZRKU.BY1QdejI.js → kanban-definition-UN3LZRKU.a6ihOzMd.js} +1 -1
- package/web/_astro/{linear.Di7YObSt.js → linear.CsIB2jFu.js} +1 -1
- package/web/_astro/{mermaid.core.CbxtJS3Q.js → mermaid.core.Br2Fo22q.js} +4 -4
- package/web/_astro/{mindmap-definition-RKZ34NQL.CxvR4g_J.js → mindmap-definition-RKZ34NQL.29inC1Mk.js} +1 -1
- package/web/_astro/{pieDiagram-4H26LBE5.jNWqnBHH.js → pieDiagram-4H26LBE5.C9CxG_Kf.js} +1 -1
- package/web/_astro/{quadrantDiagram-W4KKPZXB.BCp12MbA.js → quadrantDiagram-W4KKPZXB.6qo9MOJM.js} +1 -1
- package/web/_astro/{requirementDiagram-4Y6WPE33.Dxhm4TyR.js → requirementDiagram-4Y6WPE33.DN07zrP5.js} +1 -1
- package/web/_astro/{sankeyDiagram-5OEKKPKP.BtQXp4J9.js → sankeyDiagram-5OEKKPKP.BSw5o173.js} +1 -1
- package/web/_astro/{sequenceDiagram-3UESZ5HK.BWEM1R_Q.js → sequenceDiagram-3UESZ5HK.LJPzySKw.js} +1 -1
- package/web/_astro/{stateDiagram-AJRCARHV.BG3wUkWB.js → stateDiagram-AJRCARHV.ClNjEiKV.js} +1 -1
- package/web/_astro/{stateDiagram-v2-BHNVJYJU.BLtMeFVP.js → stateDiagram-v2-BHNVJYJU.c6Z-_WfX.js} +1 -1
- package/web/_astro/{timeline-definition-PNZ67QCA.D5fHo0az.js → timeline-definition-PNZ67QCA.CIMR-87j.js} +1 -1
- package/web/_astro/{vennDiagram-CIIHVFJN.0DcuMluU.js → vennDiagram-CIIHVFJN.BnRSRI9I.js} +1 -1
- package/web/_astro/{wardleyDiagram-YWT4CUSO.BZ-dxgHm.js → wardleyDiagram-YWT4CUSO.uN08C3gv.js} +1 -1
- package/web/_astro/{xychartDiagram-2RQKCTM6.Bg-XWF7z.js → xychartDiagram-2RQKCTM6.BjbEvfuq.js} +1 -1
- package/web/index.html +2 -2
- package/web/_astro/BoardApp.BQFbkeqq.js +0 -178
- package/web/_astro/BoardApp.CTkqrhWd.js +0 -1
- package/web/_astro/channel.Dsvulp7W.js +0 -1
- package/web/_astro/index.BVXdIsZV.css +0 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/mermaid.core.Br2Fo22q.js","_astro/index.De90oHcH.js","_astro/TaskDetail.BvkKvo57.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as g,R as lN,g as Ol,c as at,b as uN}from"./index.De90oHcH.js";var Fu={exports:{}},Is={};var Ub;function cN(){if(Ub)return Is;Ub=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var o in a)o!=="key"&&(s[o]=a[o])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:i,ref:a!==void 0?a:null,props:s}}return Is.Fragment=t,Is.jsx=n,Is.jsxs=n,Is}var $b;function dN(){return $b||($b=1,Fu.exports=cN()),Fu.exports}var l=dN();var $y=e=>{throw TypeError(e)},pN=(e,t,n)=>t.has(e)||$y("Cannot "+n),Mu=(e,t,n)=>(pN(e,t,"read from private field"),n?n.call(e):t.get(e)),fN=(e,t,n)=>t.has(e)?$y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),zb="popstate";function mN(e={}){function t(r,a){let{pathname:s,search:i,hash:o}=r.location;return mi("",{pathname:s,search:i,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:vr(a)}return gN(t,n,null,e)}function ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hN(){return Math.random().toString(36).substring(2,10)}function Hb(e,t){return{usr:e.state,key:e.key,idx:t}}function mi(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ta(t):t,state:n,key:t&&t.key||r||hN()}}function vr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ta(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function gN(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,i=a.history,o="POP",u=null,c=p();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function p(){return(i.state||{idx:null}).idx}function d(){o="POP";let x=p(),y=x==null?null:x-c;c=x,u&&u({action:o,location:E.location,delta:y})}function f(x,y){o="PUSH";let v=mi(E.location,x,y);c=p()+1;let T=Hb(v,c),N=E.createHref(v);try{i.pushState(T,"",N)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;a.location.assign(N)}s&&u&&u({action:o,location:E.location,delta:1})}function m(x,y){o="REPLACE";let v=mi(E.location,x,y);c=p();let T=Hb(v,c),N=E.createHref(v);i.replaceState(T,"",N),s&&u&&u({action:o,location:E.location,delta:0})}function b(x){return zy(x)}let E={get action(){return o},get location(){return e(a,i)},listen(x){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(zb,d),u=x,()=>{a.removeEventListener(zb,d),u=null}},createHref(x){return t(a,x)},createURL:b,encodeLocation(x){let y=b(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:m,go(x){return i.go(x)}};return E}function zy(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ct(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:vr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Vs,Gb=class{constructor(e){if(fN(this,Vs,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Mu(this,Vs).has(e))return Mu(this,Vs).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Mu(this,Vs).set(e,t)}};Vs=new WeakMap;var bN=new Set(["lazy","caseSensitive","path","id","index","children"]);function EN(e){return bN.has(e)}var xN=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function yN(e){return xN.has(e)}function TN(e){return e.index===!0}function hi(e,t,n=[],r={},a=!1){return e.map((s,i)=>{let o=[...n,String(i)],u=typeof s.id=="string"?s.id:o.join("-");if(ct(s.index!==!0||!s.children,"Cannot specify children on an index route"),ct(a||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),TN(s)){let c={...s,id:u};return r[u]=Wb(c,t(c)),c}else{let c={...s,id:u,children:void 0};return r[u]=Wb(c,t(c)),s.children&&(c.children=hi(s.children,t,o,r,a)),c}})}function Wb(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Vr(e,t,n="/"){return qs(e,t,n,!1)}function qs(e,t,n,r){let a=typeof t=="string"?ta(t):t,s=sr(a.pathname||"/",n);if(s==null)return null;let i=Hy(e);vN(i);let o=null;for(let u=0;o==null&&u<i.length;++u){let c=LN(s);o=DN(i[u],c,r)}return o}function SN(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Hy(e,t=[],n=[],r="",a=!1){let s=(i,o,u=a,c)=>{let p={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&u)return;ct(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let d=Sr([r,p.relativePath]),f=n.concat(p);i.children&&i.children.length>0&&(ct(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Hy(i.children,t,f,d,u)),!(i.path==null&&!i.index)&&t.push({path:d,score:IN(d,i.index),routesMeta:f})};return e.forEach((i,o)=>{if(i.path===""||!i.path?.includes("?"))s(i,o);else for(let u of Gy(i.path))s(i,o,!0,u)}),t}function Gy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let i=Gy(r.join("/")),o=[];return o.push(...i.map(u=>u===""?s:[s,u].join("/"))),a&&o.push(...i),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function vN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var wN=/^:[\w-]+$/,NN=3,AN=2,_N=1,CN=10,kN=-2,Vb=e=>e==="*";function IN(e,t){let n=e.split("/"),r=n.length;return n.some(Vb)&&(r+=kN),t&&(r+=AN),n.filter(a=>!Vb(a)).reduce((a,s)=>a+(wN.test(s)?NN:s===""?_N:CN),r)}function RN(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function DN(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",i=[];for(let o=0;o<r.length;++o){let u=r[o],c=o===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",d=Qo({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},p),f=u.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Qo({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!d)return null;Object.assign(a,d.params),i.push({params:a,pathname:Sr([s,d.pathname]),pathnameBase:PN(Sr([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=Sr([s,d.pathnameBase]))}return i}function Qo(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ON(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((c,{paramName:p,isOptional:d},f)=>{if(p==="*"){let b=o[f]||"";i=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const m=o[f];return d&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function ON(e,t=!1,n=!0){Vt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function LN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function sr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function FN({basename:e,pathname:t}){return t==="/"?e:Sr([e,t])}var Wy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ll=e=>Wy.test(e);function MN(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ta(e):e,s;if(n)if(Ll(n))s=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),Vt(!1,`Pathnames cannot have embedded double slashes - normalizing ${i} -> ${n}`)}n.startsWith("/")?s=qb(n.substring(1),"/"):s=qb(n,t)}else s=t;return{pathname:s,search:jN(r),hash:BN(a)}}function qb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Pu(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Vy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Fl(e){let t=Vy(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ml(e,t,n,r=!1){let a;typeof e=="string"?a=ta(e):(a={...e},ct(!a.pathname||!a.pathname.includes("?"),Pu("?","pathname","search",a)),ct(!a.pathname||!a.pathname.includes("#"),Pu("#","pathname","hash",a)),ct(!a.search||!a.search.includes("#"),Pu("#","search","hash",a)));let s=e===""||a.pathname==="",i=s?"/":a.pathname,o;if(i==null)o=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}o=d>=0?t[d]:"/"}let u=MN(a,o),c=i&&i!=="/"&&i.endsWith("/"),p=(s||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}var Sr=e=>e.join("/").replace(/\/\/+/g,"/"),PN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,BN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Oi=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function gi(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Li(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var qy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yy(e,t){let n=e;if(typeof n!="string"||!Wy.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(qy)try{let s=new URL(window.location.href),i=n.startsWith("//")?new URL(s.protocol+n):new URL(n),o=sr(i.pathname,t);i.origin===s.origin&&o!=null?n=o+i.search+i.hash:a=!0}catch{Vt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}var Zr=Symbol("Uninstrumented");function UN(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(a=>a({id:t.id,index:t.index,path:t.path,instrument(s){let i=Object.keys(n);for(let o of i)s[o]&&n[o].push(s[o])}}));let r={};if(typeof t.lazy=="function"&&n.lazy.length>0){let a=Ga(n.lazy,t.lazy,()=>{});a&&(r.lazy=a)}if(typeof t.lazy=="object"){let a=t.lazy;["middleware","loader","action"].forEach(s=>{let i=a[s],o=n[`lazy.${s}`];if(typeof i=="function"&&o.length>0){let u=Ga(o,i,()=>{});u&&(r.lazy=Object.assign(r.lazy||{},{[s]:u}))}})}return["loader","action"].forEach(a=>{let s=t[a];if(typeof s=="function"&&n[a].length>0){let i=s[Zr]??s,o=Ga(n[a],i,(...u)=>Yb(u[0]));o&&(o[Zr]=i,r[a]=o)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(a=>{let s=a[Zr]??a,i=Ga(n.middleware,s,(...o)=>Yb(o[0]));return i?(i[Zr]=s,i):a})),r}function $N(e,t){let n={navigate:[],fetch:[]};if(t.forEach(r=>r({instrument(a){let s=Object.keys(a);for(let i of s)a[i]&&n[i].push(a[i])}})),n.navigate.length>0){let r=e.navigate[Zr]??e.navigate,a=Ga(n.navigate,r,(...s)=>{let[i,o]=s;return{to:typeof i=="number"||typeof i=="string"?i:i?vr(i):".",...Zb(e,o??{})}});a&&(a[Zr]=r,e.navigate=a)}if(n.fetch.length>0){let r=e.fetch[Zr]??e.fetch,a=Ga(n.fetch,r,(...s)=>{let[i,,o,u]=s;return{href:o??".",fetcherKey:i,...Zb(e,u??{})}});a&&(a[Zr]=r,e.fetch=a)}return e}function Ga(e,t,n){return e.length===0?null:async(...r)=>{let a=await Zy(e,n(...r),()=>t(...r),e.length-1);if(a.type==="error")throw a.value;return a.value}}async function Zy(e,t,n,r){let a=e[r],s;if(a){let i,o=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=Zy(e,t,n,r-1),s=await i,ct(s,"Expected a result"),s.type==="error"&&s.value instanceof Error?{status:"error",error:s.value}:{status:"success",error:void 0});try{await a(o,t)}catch(u){console.error("An instrumentation function threw an error:",u)}i||await o(),await i}else try{s={type:"success",value:await n()}}catch(i){s={type:"error",value:i}}return s||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Yb(e){let{request:t,context:n,params:r,unstable_pattern:a}=e;return{request:zN(t),params:{...r},unstable_pattern:a,context:HN(n)}}function Zb(e,t){return{currentUrl:vr(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function zN(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function HN(e){if(WN(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var GN=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function WN(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===GN}var Ky=["POST","PUT","PATCH","DELETE"],VN=new Set(Ky),qN=["GET",...Ky],YN=new Set(qN),Xy=new Set([301,302,303,307,308]),ZN=new Set([307,308]),ju={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},KN={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},XN=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Qy="remix-router-transitions",Jy=Symbol("ResetLoaderData");function QN(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";ct(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||XN,s=a;if(e.unstable_instrumentations){let M=e.unstable_instrumentations;s=z=>({...a(z),...UN(M.map(Y=>Y.route).filter(Boolean),z)})}let i={},o=hi(e.routes,s,void 0,i),u,c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let p=e.dataStrategy||rA,d={...e.future},f=null,m=new Set,b=null,E=null,x=null,y=e.hydrationData!=null,v=Vr(o,e.history.location,c),T=!1,N=null,D;if(v==null&&!e.patchRoutesOnNavigation){let M=er(404,{pathname:e.history.location.pathname}),{matches:z,route:Y}=lo(o);D=!0,v=z,N={[Y.id]:M}}else if(v&&!e.hydrationData&&ge(v,o,e.history.location.pathname).active&&(v=null),v)if(v.some(M=>M.route.lazy))D=!1;else if(!v.some(M=>jd(M.route)))D=!0;else{let M=e.hydrationData?e.hydrationData.loaderData:null,z=e.hydrationData?e.hydrationData.errors:null;if(z){let Y=v.findIndex(oe=>z[oe.route.id]!==void 0);D=v.slice(0,Y+1).every(oe=>!zc(oe.route,M,z))}else D=v.every(Y=>!zc(Y.route,M,z))}else{D=!1,v=[];let M=ge(null,o,e.history.location.pathname);M.active&&M.matches&&(T=!0,v=M.matches)}let A,S={historyAction:e.history.action,location:e.history.location,matches:v,initialized:D,navigation:ju,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||N,fetchers:new Map,blockers:new Map},w="POP",R=null,C=!1,U,k=!1,j=new Map,W=null,$=!1,ee=!1,me=new Set,se=new Map,xe=0,O=-1,te=new Map,le=new Set,L=new Map,ke=new Map,Re=new Set,Q=new Map,_e,ue=null;function X(){if(f=e.history.listen(({action:M,location:z,delta:Y})=>{if(_e){_e(),_e=void 0;return}Vt(Q.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let oe=Xt({currentLocation:S.location,nextLocation:z,historyAction:M});if(oe&&Y!=null){let be=new Promise(De=>{_e=De});e.history.go(Y*-1),St(oe,{state:"blocked",location:z,proceed(){St(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),be.then(()=>e.history.go(Y))},reset(){let De=new Map(S.blockers);De.set(oe,Rs),de({blockers:De})}}),R?.resolve(),R=null;return}return Fe(M,z)}),n){TA(t,j);let M=()=>SA(t,j);t.addEventListener("pagehide",M),W=()=>t.removeEventListener("pagehide",M)}return S.initialized||Fe("POP",S.location,{initialHydration:!0}),A}function We(){f&&f(),W&&W(),m.clear(),U&&U.abort(),S.fetchers.forEach((M,z)=>Rt(z)),S.blockers.forEach((M,z)=>je(z))}function fe(M){return m.add(M),()=>m.delete(M)}function de(M,z={}){M.matches&&(M.matches=M.matches.map(be=>{let De=i[be.route.id],Ie=be.route;return Ie.element!==De.element||Ie.errorElement!==De.errorElement||Ie.hydrateFallbackElement!==De.hydrateFallbackElement?{...be,route:De}:be})),S={...S,...M};let Y=[],oe=[];S.fetchers.forEach((be,De)=>{be.state==="idle"&&(Re.has(De)?Y.push(De):oe.push(De))}),Re.forEach(be=>{!S.fetchers.has(be)&&!se.has(be)&&Y.push(be)}),[...m].forEach(be=>be(S,{deletedFetchers:Y,newErrors:M.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),Y.forEach(be=>Rt(be)),oe.forEach(be=>S.fetchers.delete(be))}function Te(M,z,{flushSync:Y}={}){let oe=S.actionData!=null&&S.navigation.formMethod!=null&&kn(S.navigation.formMethod)&&S.navigation.state==="loading"&&M.state?._isRedirect!==!0,be;z.actionData?Object.keys(z.actionData).length>0?be=z.actionData:be=null:oe?be=S.actionData:be=null;let De=z.loaderData?s0(S.loaderData,z.loaderData,z.matches||[],z.errors):S.loaderData,Ie=S.blockers;Ie.size>0&&(Ie=new Map(Ie),Ie.forEach((Ze,He)=>Ie.set(He,Rs)));let Pe=$?!1:ae(M,z.matches||S.matches),Ne=C===!0||S.navigation.formMethod!=null&&kn(S.navigation.formMethod)&&M.state?._isRedirect!==!0;u&&(o=u,u=void 0),$||w==="POP"||(w==="PUSH"?e.history.push(M,M.state):w==="REPLACE"&&e.history.replace(M,M.state));let Be;if(w==="POP"){let Ze=j.get(S.location.pathname);Ze&&Ze.has(M.pathname)?Be={currentLocation:S.location,nextLocation:M}:j.has(M.pathname)&&(Be={currentLocation:M,nextLocation:S.location})}else if(k){let Ze=j.get(S.location.pathname);Ze?Ze.add(M.pathname):(Ze=new Set([M.pathname]),j.set(S.location.pathname,Ze)),Be={currentLocation:S.location,nextLocation:M}}de({...z,actionData:be,loaderData:De,historyAction:w,location:M,initialized:!0,navigation:ju,revalidation:"idle",restoreScrollPosition:Pe,preventScrollReset:Ne,blockers:Ie},{viewTransitionOpts:Be,flushSync:Y===!0}),w="POP",C=!1,k=!1,$=!1,ee=!1,R?.resolve(),R=null,ue?.resolve(),ue=null}async function Se(M,z){if(R?.resolve(),R=null,typeof M=="number"){R||(R=u0());let xt=R.promise;return e.history.go(M),xt}let Y=$c(S.location,S.matches,c,M,z?.fromRouteId,z?.relative),{path:oe,submission:be,error:De}=Kb(!1,Y,z),Ie=S.location,Pe=mi(S.location,oe,z&&z.state);Pe={...Pe,...e.history.encodeLocation(Pe)};let Ne=z&&z.replace!=null?z.replace:void 0,Be="PUSH";Ne===!0?Be="REPLACE":Ne===!1||be!=null&&kn(be.formMethod)&&be.formAction===S.location.pathname+S.location.search&&(Be="REPLACE");let Ze=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,He=(z&&z.flushSync)===!0,Et=Xt({currentLocation:Ie,nextLocation:Pe,historyAction:Be});if(Et){St(Et,{state:"blocked",location:Pe,proceed(){St(Et,{state:"proceeding",proceed:void 0,reset:void 0,location:Pe}),Se(M,z)},reset(){let xt=new Map(S.blockers);xt.set(Et,Rs),de({blockers:xt})}});return}await Fe(Be,Pe,{submission:be,pendingError:De,preventScrollReset:Ze,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:He,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function H(){ue||(ue=u0()),ie(),de({revalidation:"loading"});let M=ue.promise;return S.navigation.state==="submitting"?M:S.navigation.state==="idle"?(Fe(S.historyAction,S.location,{startUninterruptedRevalidation:!0}),M):(Fe(w||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:k===!0}),M)}async function Fe(M,z,Y){U&&U.abort(),U=null,w=M,$=(Y&&Y.startUninterruptedRevalidation)===!0,kt(S.location,S.matches),C=(Y&&Y.preventScrollReset)===!0,k=(Y&&Y.enableViewTransition)===!0;let oe=u||o,be=Y&&Y.overrideNavigation,De=Y?.initialHydration&&S.matches&&S.matches.length>0&&!T?S.matches:Vr(oe,z,c),Ie=(Y&&Y.flushSync)===!0;if(De&&S.initialized&&!ee&&dA(S.location,z)&&!(Y&&Y.submission&&kn(Y.submission.formMethod))){Te(z,{matches:De},{flushSync:Ie});return}let Pe=ge(De,oe,z.pathname);if(Pe.active&&Pe.matches&&(De=Pe.matches),!De){let{error:en,notFoundMatches:En,route:It}=Me(z.pathname);Te(z,{matches:En,loaderData:{},errors:{[It.id]:en}},{flushSync:Ie});return}U=new AbortController;let Ne=$a(e.history,z,U.signal,Y&&Y.submission),Be=e.getContext?await e.getContext():new Gb,Ze;if(Y&&Y.pendingError)Ze=[qr(De).route.id,{type:"error",error:Y.pendingError}];else if(Y&&Y.submission&&kn(Y.submission.formMethod)){let en=await Ke(Ne,z,Y.submission,De,Be,Pe.active,Y&&Y.initialHydration===!0,{replace:Y.replace,flushSync:Ie});if(en.shortCircuited)return;if(en.pendingActionResult){let[En,It]=en.pendingActionResult;if(Wn(It)&&gi(It.error)&&It.error.status===404){U=null,Te(z,{matches:en.matches,loaderData:{},errors:{[En]:It.error}});return}}De=en.matches||De,Ze=en.pendingActionResult,be=Bu(z,Y.submission),Ie=!1,Pe.active=!1,Ne=$a(e.history,Ne.url,Ne.signal)}let{shortCircuited:He,matches:Et,loaderData:xt,errors:Jt}=await Xe(Ne,z,De,Be,Pe.active,be,Y&&Y.submission,Y&&Y.fetcherSubmission,Y&&Y.replace,Y&&Y.initialHydration===!0,Ie,Ze,Y&&Y.callSiteDefaultShouldRevalidate);He||(U=null,Te(z,{matches:Et||De,...i0(Ze),loaderData:xt,errors:Jt}))}async function Ke(M,z,Y,oe,be,De,Ie,Pe={}){ie();let Ne=xA(z,Y);if(de({navigation:Ne},{flushSync:Pe.flushSync===!0}),De){let He=await tt(oe,z.pathname,M.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){if(He.partialMatches.length===0){let{matches:xt,route:Jt}=lo(o);return{matches:xt,pendingActionResult:[Jt.id,{type:"error",error:He.error}]}}let Et=qr(He.partialMatches).route.id;return{matches:He.partialMatches,pendingActionResult:[Et,{type:"error",error:He.error}]}}else if(He.matches)oe=He.matches;else{let{notFoundMatches:Et,error:xt,route:Jt}=Me(z.pathname);return{matches:Et,pendingActionResult:[Jt.id,{type:"error",error:xt}]}}}let Be,Ze=Bo(oe,z);if(!Ze.route.action&&!Ze.route.lazy)Be={type:"error",error:er(405,{method:M.method,pathname:z.pathname,routeId:Ze.route.id})};else{let He=Ka(s,i,M,oe,Ze,Ie?[]:r,be),Et=await rt(M,He,be,null);if(Be=Et[Ze.route.id],!Be){for(let xt of oe)if(Et[xt.route.id]){Be=Et[xt.route.id];break}}if(M.signal.aborted)return{shortCircuited:!0}}if(ca(Be)){let He;return Pe&&Pe.replace!=null?He=Pe.replace:He=n0(Be.response.headers.get("Location"),new URL(M.url),c)===S.location.pathname+S.location.search,await Le(M,Be,!0,{submission:Y,replace:He}),{shortCircuited:!0}}if(Wn(Be)){let He=qr(oe,Ze.route.id);return(Pe&&Pe.replace)!==!0&&(w="PUSH"),{matches:oe,pendingActionResult:[He.route.id,Be,Ze.route.id]}}return{matches:oe,pendingActionResult:[Ze.route.id,Be]}}async function Xe(M,z,Y,oe,be,De,Ie,Pe,Ne,Be,Ze,He,Et){let xt=De||Bu(z,Ie),Jt=Ie||Pe||l0(xt),en=!$&&!Be;if(be){if(en){let Wt=Pt(He);de({navigation:xt,...Wt!==void 0?{actionData:Wt}:{}},{flushSync:Ze})}let ft=await tt(Y,z.pathname,M.signal);if(ft.type==="aborted")return{shortCircuited:!0};if(ft.type==="error"){if(ft.partialMatches.length===0){let{matches:Xn,route:xn}=lo(o);return{matches:Xn,loaderData:{},errors:{[xn.id]:ft.error}}}let Wt=qr(ft.partialMatches).route.id;return{matches:ft.partialMatches,loaderData:{},errors:{[Wt]:ft.error}}}else if(ft.matches)Y=ft.matches;else{let{error:Wt,notFoundMatches:Xn,route:xn}=Me(z.pathname);return{matches:Xn,loaderData:{},errors:{[xn.id]:Wt}}}}let En=u||o,{dsMatches:It,revalidatingFetchers:jn}=Xb(M,oe,s,i,e.history,S,Y,Jt,z,Be?[]:r,Be===!0,ee,me,Re,L,le,En,c,e.patchRoutesOnNavigation!=null,He,Et);if(O=++xe,!e.dataStrategy&&!It.some(ft=>ft.shouldLoad)&&!It.some(ft=>ft.route.middleware&&ft.route.middleware.length>0)&&jn.length===0){let ft=re();return Te(z,{matches:Y,loaderData:{},errors:He&&Wn(He[1])?{[He[0]]:He[1].error}:null,...i0(He),...ft?{fetchers:new Map(S.fetchers)}:{}},{flushSync:Ze}),{shortCircuited:!0}}if(en){let ft={};if(!be){ft.navigation=xt;let Wt=Pt(He);Wt!==void 0&&(ft.actionData=Wt)}jn.length>0&&(ft.fetchers=dt(jn)),de(ft,{flushSync:Ze})}jn.forEach(ft=>{Nt(ft.key),ft.controller&&se.set(ft.key,ft.controller)});let _n=()=>jn.forEach(ft=>Nt(ft.key));U&&U.signal.addEventListener("abort",_n);let{loaderResults:Pr,fetcherResults:Cn}=await Z(It,jn,M,oe);if(M.signal.aborted)return{shortCircuited:!0};U&&U.signal.removeEventListener("abort",_n),jn.forEach(ft=>se.delete(ft.key));let Kn=uo(Pr);if(Kn)return await Le(M,Kn.result,!0,{replace:Ne}),{shortCircuited:!0};if(Kn=uo(Cn),Kn)return le.add(Kn.key),await Le(M,Kn.result,!0,{replace:Ne}),{shortCircuited:!0};let{loaderData:Cs,errors:jr}=a0(S,Y,Pr,He,jn,Cn);Be&&S.errors&&(jr={...S.errors,...jr});let hr=re(),Cr=Ae(O),Br=hr||Cr||jn.length>0;return{matches:Y,loaderData:Cs,errors:jr,...Br?{fetchers:new Map(S.fetchers)}:{}}}function Pt(M){if(M&&!Wn(M[1]))return{[M[0]]:M[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function dt(M){return M.forEach(z=>{let Y=S.fetchers.get(z.key),oe=Ds(void 0,Y?Y.data:void 0);S.fetchers.set(z.key,oe)}),new Map(S.fetchers)}async function lt(M,z,Y,oe){Nt(M);let be=(oe&&oe.flushSync)===!0,De=u||o,Ie=$c(S.location,S.matches,c,Y,z,oe?.relative),Pe=Vr(De,Ie,c),Ne=ge(Pe,De,Ie);if(Ne.active&&Ne.matches&&(Pe=Ne.matches),!Pe){Oe(M,z,er(404,{pathname:Ie}),{flushSync:be});return}let{path:Be,submission:Ze,error:He}=Kb(!0,Ie,oe);if(He){Oe(M,z,He,{flushSync:be});return}let Et=e.getContext?await e.getContext():new Gb,xt=(oe&&oe.preventScrollReset)===!0;if(Ze&&kn(Ze.formMethod)){await Kt(M,z,Be,Pe,Et,Ne.active,be,xt,Ze,oe&&oe.unstable_defaultShouldRevalidate);return}L.set(M,{routeId:z,path:Be}),await it(M,z,Be,Pe,Et,Ne.active,be,xt,Ze)}async function Kt(M,z,Y,oe,be,De,Ie,Pe,Ne,Be){ie(),L.delete(M);let Ze=S.fetchers.get(M);Ce(M,yA(Ne,Ze),{flushSync:Ie});let He=new AbortController,Et=$a(e.history,Y,He.signal,Ne);if(De){let zt=await tt(oe,new URL(Et.url).pathname,Et.signal,M);if(zt.type==="aborted")return;if(zt.type==="error"){Oe(M,z,zt.error,{flushSync:Ie});return}else if(zt.matches)oe=zt.matches;else{Oe(M,z,er(404,{pathname:Y}),{flushSync:Ie});return}}let xt=Bo(oe,Y);if(!xt.route.action&&!xt.route.lazy){let zt=er(405,{method:Ne.formMethod,pathname:Y,routeId:z});Oe(M,z,zt,{flushSync:Ie});return}se.set(M,He);let Jt=xe,en=Ka(s,i,Et,oe,xt,r,be),En=await rt(Et,en,be,M),It=En[xt.route.id];if(!It){for(let zt of en)if(En[zt.route.id]){It=En[zt.route.id];break}}if(Et.signal.aborted){se.get(M)===He&&se.delete(M);return}if(Re.has(M)){if(ca(It)||Wn(It)){Ce(M,kr(void 0));return}}else{if(ca(It))if(se.delete(M),O>Jt){Ce(M,kr(void 0));return}else return le.add(M),Ce(M,Ds(Ne)),Le(Et,It,!1,{fetcherSubmission:Ne,preventScrollReset:Pe});if(Wn(It)){Oe(M,z,It.error);return}}let jn=S.navigation.location||S.location,_n=$a(e.history,jn,He.signal),Pr=u||o,Cn=S.navigation.state!=="idle"?Vr(Pr,S.navigation.location,c):S.matches;ct(Cn,"Didn't find any matches after fetcher action");let Kn=++xe;te.set(M,Kn);let Cs=Ds(Ne,It.data);S.fetchers.set(M,Cs);let{dsMatches:jr,revalidatingFetchers:hr}=Xb(_n,be,s,i,e.history,S,Cn,Ne,jn,r,!1,ee,me,Re,L,le,Pr,c,e.patchRoutesOnNavigation!=null,[xt.route.id,It],Be);hr.filter(zt=>zt.key!==M).forEach(zt=>{let La=zt.key,ks=S.fetchers.get(La),io=Ds(void 0,ks?ks.data:void 0);S.fetchers.set(La,io),Nt(La),zt.controller&&se.set(La,zt.controller)}),de({fetchers:new Map(S.fetchers)});let Cr=()=>hr.forEach(zt=>Nt(zt.key));He.signal.addEventListener("abort",Cr);let{loaderResults:Br,fetcherResults:ft}=await Z(jr,hr,_n,be);if(He.signal.aborted)return;if(He.signal.removeEventListener("abort",Cr),te.delete(M),se.delete(M),hr.forEach(zt=>se.delete(zt.key)),S.fetchers.has(M)){let zt=kr(It.data);S.fetchers.set(M,zt)}let Wt=uo(Br);if(Wt)return Le(_n,Wt.result,!1,{preventScrollReset:Pe});if(Wt=uo(ft),Wt)return le.add(Wt.key),Le(_n,Wt.result,!1,{preventScrollReset:Pe});let{loaderData:Xn,errors:xn}=a0(S,Cn,Br,void 0,hr,ft);Ae(Kn),S.navigation.state==="loading"&&Kn>O?(ct(w,"Expected pending action"),U&&U.abort(),Te(S.navigation.location,{matches:Cn,loaderData:Xn,errors:xn,fetchers:new Map(S.fetchers)})):(de({errors:xn,loaderData:s0(S.loaderData,Xn,Cn,xn),fetchers:new Map(S.fetchers)}),ee=!1)}async function it(M,z,Y,oe,be,De,Ie,Pe,Ne){let Be=S.fetchers.get(M);Ce(M,Ds(Ne,Be?Be.data:void 0),{flushSync:Ie});let Ze=new AbortController,He=$a(e.history,Y,Ze.signal);if(De){let It=await tt(oe,new URL(He.url).pathname,He.signal,M);if(It.type==="aborted")return;if(It.type==="error"){Oe(M,z,It.error,{flushSync:Ie});return}else if(It.matches)oe=It.matches;else{Oe(M,z,er(404,{pathname:Y}),{flushSync:Ie});return}}let Et=Bo(oe,Y);se.set(M,Ze);let xt=xe,Jt=Ka(s,i,He,oe,Et,r,be),En=(await rt(He,Jt,be,M))[Et.route.id];if(se.get(M)===Ze&&se.delete(M),!He.signal.aborted){if(Re.has(M)){Ce(M,kr(void 0));return}if(ca(En))if(O>xt){Ce(M,kr(void 0));return}else{le.add(M),await Le(He,En,!1,{preventScrollReset:Pe});return}if(Wn(En)){Oe(M,z,En.error);return}Ce(M,kr(En.data))}}async function Le(M,z,Y,{submission:oe,fetcherSubmission:be,preventScrollReset:De,replace:Ie}={}){Y||(R?.resolve(),R=null),z.response.headers.has("X-Remix-Revalidate")&&(ee=!0);let Pe=z.response.headers.get("Location");ct(Pe,"Expected a Location header on the redirect Response"),Pe=n0(Pe,new URL(M.url),c);let Ne=mi(S.location,Pe,{_isRedirect:!0});if(n){let Jt=!1;if(z.response.headers.has("X-Remix-Reload-Document"))Jt=!0;else if(Ll(Pe)){const en=zy(Pe,!0);Jt=en.origin!==t.location.origin||sr(en.pathname,c)==null}if(Jt){Ie?t.location.replace(Pe):t.location.assign(Pe);return}}U=null;let Be=Ie===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ze,formAction:He,formEncType:Et}=S.navigation;!oe&&!be&&Ze&&He&&Et&&(oe=l0(S.navigation));let xt=oe||be;if(ZN.has(z.response.status)&&xt&&kn(xt.formMethod))await Fe(Be,Ne,{submission:{...xt,formAction:Pe},preventScrollReset:De||C,enableViewTransition:Y?k:void 0});else{let Jt=Bu(Ne,oe);await Fe(Be,Ne,{overrideNavigation:Jt,fetcherSubmission:be,preventScrollReset:De||C,enableViewTransition:Y?k:void 0})}}async function rt(M,z,Y,oe){let be,De={};try{be=await sA(p,M,z,oe,Y,!1)}catch(Ie){return z.filter(Pe=>Pe.shouldLoad).forEach(Pe=>{De[Pe.route.id]={type:"error",error:Ie}}),De}if(M.signal.aborted)return De;if(!kn(M.method))for(let Ie of z){if(be[Ie.route.id]?.type==="error")break;!be.hasOwnProperty(Ie.route.id)&&!S.loaderData.hasOwnProperty(Ie.route.id)&&(!S.errors||!S.errors.hasOwnProperty(Ie.route.id))&&Ie.shouldCallHandler()&&(be[Ie.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Ie.route.id}`)})}for(let[Ie,Pe]of Object.entries(be))if(hA(Pe)){let Ne=Pe.result;De[Ie]={type:"redirect",response:uA(Ne,M,Ie,z,c)}}else De[Ie]=await lA(Pe);return De}async function Z(M,z,Y,oe){let be=rt(Y,M,oe,null),De=Promise.all(z.map(async Ne=>{if(Ne.matches&&Ne.match&&Ne.request&&Ne.controller){let Ze=(await rt(Ne.request,Ne.matches,oe,Ne.key))[Ne.match.route.id];return{[Ne.key]:Ze}}else return Promise.resolve({[Ne.key]:{type:"error",error:er(404,{pathname:Ne.path})}})})),Ie=await be,Pe=(await De).reduce((Ne,Be)=>Object.assign(Ne,Be),{});return{loaderResults:Ie,fetcherResults:Pe}}function ie(){ee=!0,L.forEach((M,z)=>{se.has(z)&&me.add(z),Nt(z)})}function Ce(M,z,Y={}){S.fetchers.set(M,z),de({fetchers:new Map(S.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function Oe(M,z,Y,oe={}){let be=qr(S.matches,z);Rt(M),de({errors:{[be.route.id]:Y},fetchers:new Map(S.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function Ve(M){return ke.set(M,(ke.get(M)||0)+1),Re.has(M)&&Re.delete(M),S.fetchers.get(M)||KN}function st(M,z){Nt(M,z?.reason),Ce(M,kr(null))}function Rt(M){let z=S.fetchers.get(M);se.has(M)&&!(z&&z.state==="loading"&&te.has(M))&&Nt(M),L.delete(M),te.delete(M),le.delete(M),Re.delete(M),me.delete(M),S.fetchers.delete(M)}function Ct(M){let z=(ke.get(M)||0)-1;z<=0?(ke.delete(M),Re.add(M)):ke.set(M,z),de({fetchers:new Map(S.fetchers)})}function Nt(M,z){let Y=se.get(M);Y&&(Y.abort(z),se.delete(M))}function Lt(M){for(let z of M){let Y=Ve(z),oe=kr(Y.data);S.fetchers.set(z,oe)}}function re(){let M=[],z=!1;for(let Y of le){let oe=S.fetchers.get(Y);ct(oe,`Expected fetcher: ${Y}`),oe.state==="loading"&&(le.delete(Y),M.push(Y),z=!0)}return Lt(M),z}function Ae(M){let z=[];for(let[Y,oe]of te)if(oe<M){let be=S.fetchers.get(Y);ct(be,`Expected fetcher: ${Y}`),be.state==="loading"&&(Nt(Y),te.delete(Y),z.push(Y))}return Lt(z),z.length>0}function $e(M,z){let Y=S.blockers.get(M)||Rs;return Q.get(M)!==z&&Q.set(M,z),Y}function je(M){S.blockers.delete(M),Q.delete(M)}function St(M,z){let Y=S.blockers.get(M)||Rs;ct(Y.state==="unblocked"&&z.state==="blocked"||Y.state==="blocked"&&z.state==="blocked"||Y.state==="blocked"&&z.state==="proceeding"||Y.state==="blocked"&&z.state==="unblocked"||Y.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${Y.state} -> ${z.state}`);let oe=new Map(S.blockers);oe.set(M,z),de({blockers:oe})}function Xt({currentLocation:M,nextLocation:z,historyAction:Y}){if(Q.size===0)return;Q.size>1&&Vt(!1,"A router only supports one blocker at a time");let oe=Array.from(Q.entries()),[be,De]=oe[oe.length-1],Ie=S.blockers.get(be);if(!(Ie&&Ie.state==="proceeding")&&De({currentLocation:M,nextLocation:z,historyAction:Y}))return be}function Me(M){let z=er(404,{pathname:M}),Y=u||o,{matches:oe,route:be}=lo(Y);return{notFoundMatches:oe,route:be,error:z}}function pt(M,z,Y){if(b=M,x=z,E=Y||null,!y&&S.navigation===ju){y=!0;let oe=ae(S.location,S.matches);oe!=null&&de({restoreScrollPosition:oe})}return()=>{b=null,x=null,E=null}}function Qe(M,z){return E&&E(M,z.map(oe=>SN(oe,S.loaderData)))||M.key}function kt(M,z){if(b&&x){let Y=Qe(M,z);b[Y]=x()}}function ae(M,z){if(b){let Y=Qe(M,z),oe=b[Y];if(typeof oe=="number")return oe}return null}function ge(M,z,Y){if(e.patchRoutesOnNavigation)if(M){if(Object.keys(M[0].params).length>0)return{active:!0,matches:qs(z,Y,c,!0)}}else return{active:!0,matches:qs(z,Y,c,!0)||[]};return{active:!1,matches:null}}async function tt(M,z,Y,oe){if(!e.patchRoutesOnNavigation)return{type:"success",matches:M};let be=M;for(;;){let De=u==null,Ie=u||o,Pe=i;try{await e.patchRoutesOnNavigation({signal:Y,path:z,matches:be,fetcherKey:oe,patch:(Ze,He)=>{Y.aborted||Qb(Ze,He,Ie,Pe,s,!1)}})}catch(Ze){return{type:"error",error:Ze,partialMatches:be}}finally{De&&!Y.aborted&&(o=[...o])}if(Y.aborted)return{type:"aborted"};let Ne=Vr(Ie,z,c),Be=null;if(Ne){if(Object.keys(Ne[0].params).length===0)return{type:"success",matches:Ne};if(Be=qs(Ie,z,c,!0),!(Be&&be.length<Be.length&&Dt(be,Be.slice(0,be.length))))return{type:"success",matches:Ne}}if(Be||(Be=qs(Ie,z,c,!0)),!Be||Dt(be,Be))return{type:"success",matches:null};be=Be}}function Dt(M,z){return M.length===z.length&&M.every((Y,oe)=>Y.route.id===z[oe].route.id)}function G(M){i={},u=hi(M,s,void 0,i)}function ze(M,z,Y=!1){let oe=u==null;Qb(M,z,u||o,i,s,Y),oe&&(o=[...o],de({}))}return A={get basename(){return c},get future(){return d},get state(){return S},get routes(){return o},get window(){return t},initialize:X,subscribe:fe,enableScrollRestoration:pt,navigate:Se,fetch:lt,revalidate:H,createHref:M=>e.history.createHref(M),encodeLocation:M=>e.history.encodeLocation(M),getFetcher:Ve,resetFetcher:st,deleteFetcher:Ct,dispose:We,getBlocker:$e,deleteBlocker:je,patchRoutes:ze,_internalFetchControllers:se,_internalSetRoutes:G,_internalSetStateDoNotUseOrYouWillBreakYourApp(M){de(M)}},e.unstable_instrumentations&&(A=$N(A,e.unstable_instrumentations.map(M=>M.router).filter(Boolean))),A}function JN(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $c(e,t,n,r,a,s){let i,o;if(a){i=[];for(let c of t)if(i.push(c),c.route.id===a){o=c;break}}else i=t,o=t[t.length-1];let u=Ml(r||".",Fl(i),sr(e.pathname,n)||e.pathname,s==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&o){let c=Ud(u.search);if(o.route.index&&!c)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!o.route.index&&c){let p=new URLSearchParams(u.search),d=p.getAll("index");p.delete("index"),d.filter(m=>m).forEach(m=>p.append("index",m));let f=p.toString();u.search=f?`?${f}`:""}}return n!=="/"&&(u.pathname=FN({basename:n,pathname:u.pathname})),vr(u)}function Kb(e,t,n){if(!n||!JN(n))return{path:t};if(n.formMethod&&!EA(n.formMethod))return{path:t,error:er(405,{method:n.formMethod})};let r=()=>({path:t,error:er(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),i=s1(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!kn(s))return r();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((f,[m,b])=>`${f}${m}=${b}
|
|
3
|
+
`,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:i,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!kn(s))return r();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:i,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return r()}}}ct(typeof FormData=="function","FormData is not available in this environment");let o,u;if(n.formData)o=Gc(n.formData),u=n.formData;else if(n.body instanceof FormData)o=Gc(n.body),u=n.body;else if(n.body instanceof URLSearchParams)o=n.body,u=r0(o);else if(n.body==null)o=new URLSearchParams,u=new FormData;else try{o=new URLSearchParams(n.body),u=r0(o)}catch{return r()}let c={formMethod:s,formAction:i,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(kn(c.formMethod))return{path:t,submission:c};let p=ta(t);return e&&p.search&&Ud(p.search)&&o.append("index",""),p.search=`?${o}`,{path:vr(p),submission:c}}function Xb(e,t,n,r,a,s,i,o,u,c,p,d,f,m,b,E,x,y,v,T,N){let D=T?Wn(T[1])?T[1].error:T[1].data:void 0,A=a.createURL(s.location),S=a.createURL(u),w;if(p&&s.errors){let $=Object.keys(s.errors)[0];w=i.findIndex(ee=>ee.route.id===$)}else if(T&&Wn(T[1])){let $=T[0];w=i.findIndex(ee=>ee.route.id===$)-1}let R=T?T[1].statusCode:void 0,C=R&&R>=400,U={currentUrl:A,currentParams:s.matches[0]?.params||{},nextUrl:S,nextParams:i[0].params,...o,actionResult:D,actionStatus:R},k=Li(i),j=i.map(($,ee)=>{let{route:me}=$,se=null;if(w!=null&&ee>w?se=!1:me.lazy?se=!0:jd(me)?p?se=zc(me,s.loaderData,s.errors):eA(s.loaderData,s.matches[ee],$)&&(se=!0):se=!1,se!==null)return Hc(n,r,e,k,$,c,t,se);let xe=!1;typeof N=="boolean"?xe=N:C?xe=!1:(d||A.pathname+A.search===S.pathname+S.search||A.search!==S.search||tA(s.matches[ee],$))&&(xe=!0);let O={...U,defaultShouldRevalidate:xe},te=Qs($,O);return Hc(n,r,e,k,$,c,t,te,O,N)}),W=[];return b.forEach(($,ee)=>{if(p||!i.some(ke=>ke.route.id===$.routeId)||m.has(ee))return;let me=s.fetchers.get(ee),se=me&&me.state!=="idle"&&me.data===void 0,xe=Vr(x,$.path,y);if(!xe){if(v&&se)return;W.push({key:ee,routeId:$.routeId,path:$.path,matches:null,match:null,request:null,controller:null});return}if(E.has(ee))return;let O=Bo(xe,$.path),te=new AbortController,le=$a(a,$.path,te.signal),L=null;if(f.has(ee))f.delete(ee),L=Ka(n,r,le,xe,O,c,t);else if(se)d&&(L=Ka(n,r,le,xe,O,c,t));else{let ke;typeof N=="boolean"?ke=N:C?ke=!1:ke=d;let Re={...U,defaultShouldRevalidate:ke};Qs(O,Re)&&(L=Ka(n,r,le,xe,O,c,t,Re))}L&&W.push({key:ee,routeId:$.routeId,path:$.path,matches:L,match:O,request:le,controller:te})}),{dsMatches:j,revalidatingFetchers:W}}function jd(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function zc(e,t,n){if(e.lazy)return!0;if(!jd(e))return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function eA(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function tA(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Qs(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Qb(e,t,n,r,a,s){let i;if(e){let c=r[e];ct(c,`No route found to patch children into: routeId = ${e}`),c.children||(c.children=[]),i=c.children}else i=n;let o=[],u=[];if(t.forEach(c=>{let p=i.find(d=>e1(c,d));p?u.push({existingRoute:p,newRoute:c}):o.push(c)}),o.length>0){let c=hi(o,a,[e||"_","patch",String(i?.length||"0")],r);i.push(...c)}if(s&&u.length>0)for(let c=0;c<u.length;c++){let{existingRoute:p,newRoute:d}=u[c],f=p,[m]=hi([d],a,[],{},!0);Object.assign(f,{element:m.element?m.element:f.element,errorElement:m.errorElement?m.errorElement:f.errorElement,hydrateFallbackElement:m.hydrateFallbackElement?m.hydrateFallbackElement:f.hydrateFallbackElement})}}function e1(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(a=>e1(n,a))):!1}var Jb=new WeakMap,t1=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(ct(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let s=a.lazy[e];if(!s)return;let i=Jb.get(a);i||(i={},Jb.set(a,i));let o=i[e];if(o)return o;let u=(async()=>{let c=EN(e),d=a[e]!==void 0&&e!=="hasErrorBoundary";if(c)Vt(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(d)Vt(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let f=await s();f!=null&&(Object.assign(a,{[e]:f}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(f=>f===void 0)&&(a.lazy=void 0))})();return i[e]=u,u},e0=new WeakMap;function nA(e,t,n,r,a){let s=n[e.id];if(ct(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=e0.get(s);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let d=(async()=>{ct(typeof e.lazy=="function","No lazy route function found");let f=await e.lazy(),m={};for(let b in f){let E=f[b];if(E===void 0)continue;let x=yN(b),v=s[b]!==void 0&&b!=="hasErrorBoundary";x?Vt(!x,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):v?Vt(!v,`Route "${s.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):m[b]=E}Object.assign(s,m),Object.assign(s,{...r(s),lazy:void 0})})();return e0.set(s,d),d.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:d}}let i=Object.keys(e.lazy),o=[],u;for(let p of i){if(a&&a.includes(p))continue;let d=t1({key:p,route:e,manifest:n,mapRouteProperties:r});d&&(o.push(d),p===t&&(u=d))}let c=o.length>0?Promise.all(o).then(()=>{}):void 0;return c?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:u}}async function t0(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,s)=>{n[t[s].route.id]=a}),n}async function rA(e){return e.matches.some(t=>t.route.middleware)?n1(e,()=>t0(e)):t0(e)}function n1(e,t){return aA(e,t,r=>{if(bA(r))throw r;return r},fA,n);function n(r,a,s){if(s)return Promise.resolve(Object.assign(s.value,{[a]:{type:"error",result:r}}));{let{matches:i}=e,o=Math.min(Math.max(i.findIndex(c=>c.route.id===a),0),Math.max(i.findIndex(c=>c.shouldCallHandler()),0)),u=qr(i,i[o].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function aA(e,t,n,r,a){let{matches:s,request:i,params:o,context:u,unstable_pattern:c}=e,p=s.flatMap(f=>f.route.middleware?f.route.middleware.map(m=>[f.route.id,m]):[]);return await r1({request:i,params:o,context:u,unstable_pattern:c},p,t,n,r,a)}async function r1(e,t,n,r,a,s,i=0){let{request:o}=e;if(o.signal.aborted)throw o.signal.reason??new Error(`Request aborted: ${o.method} ${o.url}`);let u=t[i];if(!u)return await n();let[c,p]=u,d,f=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");try{return d={value:await r1(e,t,n,r,a,s,i+1)},d.value}catch(m){return d={value:await s(m,c,d)},d.value}};try{let m=await p(e,f),b=m!=null?r(m):void 0;return a(b)?b:d?b??d.value:(d={value:await f()},d.value)}catch(m){return await s(m,c,d)}}function a1(e,t,n,r,a){let s=t1({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=nA(r.route,kn(n.method)?"action":"loader",t,e,a);return{middleware:s,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Hc(e,t,n,r,a,s,i,o,u=null,c){let p=!1,d=a1(e,t,n,a,s);return{...a,_lazyPromises:d,shouldLoad:o,shouldRevalidateArgs:u,shouldCallHandler(f){return p=!0,u?typeof c=="boolean"?Qs(a,{...u,defaultShouldRevalidate:c}):typeof f=="boolean"?Qs(a,{...u,defaultShouldRevalidate:f}):Qs(a,u):o},resolve(f){let{lazy:m,loader:b,middleware:E}=a.route,x=p||o||f&&!kn(n.method)&&(m||b),y=E&&E.length>0&&!b&&!m;return x&&(kn(n.method)||!y)?iA({request:n,unstable_pattern:r,match:a,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:f,scopedContext:i}):Promise.resolve({type:"data",result:void 0})}}}function Ka(e,t,n,r,a,s,i,o=null){return r.map(u=>u.route.id!==a.route.id?{...u,shouldLoad:!1,shouldRevalidateArgs:o,shouldCallHandler:()=>!1,_lazyPromises:a1(e,t,n,u,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Hc(e,t,n,Li(r),u,s,i,!0,o))}async function sA(e,t,n,r,a,s){n.some(c=>c._lazyPromises?.middleware)&&await Promise.all(n.map(c=>c._lazyPromises?.middleware));let i={request:t,unstable_pattern:Li(n),params:n[0].params,context:a,matches:n},u=await e({...i,fetcherKey:r,runClientMiddleware:c=>{let p=i;return n1(p,()=>c({...p,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return u}async function iA({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:a,handlerOverride:s,scopedContext:i}){let o,u,c=kn(e.method),p=c?"action":"loader",d=f=>{let m,b=new Promise((y,v)=>m=v);u=()=>m(),e.signal.addEventListener("abort",u);let E=y=>typeof f!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${p}" [routeId: ${n.route.id}]`)):f({request:e,unstable_pattern:t,params:n.params,context:i},...y!==void 0?[y]:[]),x=(async()=>{try{return{type:"data",result:await(s?s(v=>E(v)):E())}}catch(y){return{type:"error",result:y}}})();return Promise.race([x,b])};try{let f=c?n.route.action:n.route.loader;if(r||a)if(f){let m,[b]=await Promise.all([d(f).catch(E=>{m=E}),r,a]);if(m!==void 0)throw m;o=b}else{await r;let m=c?n.route.action:n.route.loader;if(m)[o]=await Promise.all([d(m),a]);else if(p==="action"){let b=new URL(e.url),E=b.pathname+b.search;throw er(405,{method:e.method,pathname:E,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(f)o=await d(f);else{let m=new URL(e.url),b=m.pathname+m.search;throw er(404,{pathname:b})}}catch(f){return{type:"error",result:f}}finally{u&&e.signal.removeEventListener("abort",u)}return o}async function oA(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function lA(e){let{result:t,type:n}=e;if(Bd(t)){let r;try{r=await oA(t)}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new Oi(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?o0(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:pA(t),statusCode:gi(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:gi(t)?t.status:void 0}:o0(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function uA(e,t,n,r,a){let s=e.headers.get("Location");if(ct(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ll(s)){let i=r.slice(0,r.findIndex(o=>o.route.id===n)+1);s=$c(new URL(t.url),i,a,s),e.headers.set("Location",s)}return e}function n0(e,t,n){if(Ll(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=sr(a.pathname,n)!=null;if(a.origin===t.origin&&s)return a.pathname+a.search+a.hash}return e}function $a(e,t,n,r){let a=e.createURL(s1(t)).toString(),s={signal:n};if(r&&kn(r.formMethod)){let{formMethod:i,formEncType:o}=r;s.method=i.toUpperCase(),o==="application/json"?(s.headers=new Headers({"Content-Type":o}),s.body=JSON.stringify(r.json)):o==="text/plain"?s.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?s.body=Gc(r.formData):s.body=r.formData}return new Request(a,s)}function Gc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function r0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function cA(e,t,n,r=!1,a=!1){let s={},i=null,o,u=!1,c={},p=n&&Wn(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,m=t[f];if(ct(!ca(m),"Cannot handle redirect results in processLoaderData"),Wn(m)){let b=m.error;if(p!==void 0&&(b=p,p=void 0),i=i||{},a)i[f]=b;else{let E=qr(e,f);i[E.route.id]==null&&(i[E.route.id]=b)}r||(s[f]=Jy),u||(u=!0,o=gi(m.error)?m.error.status:500),m.headers&&(c[f]=m.headers)}else s[f]=m.data,m.statusCode&&m.statusCode!==200&&!u&&(o=m.statusCode),m.headers&&(c[f]=m.headers)}),p!==void 0&&n&&(i={[n[0]]:p},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:i,statusCode:o||200,loaderHeaders:c}}function a0(e,t,n,r,a,s){let{loaderData:i,errors:o}=cA(t,n,r);return a.filter(u=>!u.matches||u.matches.some(c=>c.shouldLoad)).forEach(u=>{let{key:c,match:p,controller:d}=u;if(d&&d.signal.aborted)return;let f=s[c];if(ct(f,"Did not find corresponding fetcher result"),Wn(f)){let m=qr(e.matches,p?.route.id);o&&o[m.route.id]||(o={...o,[m.route.id]:f.error}),e.fetchers.delete(c)}else if(ca(f))ct(!1,"Unhandled fetcher revalidation redirect");else{let m=kr(f.data);e.fetchers.set(c,m)}}),{loaderData:i,errors:o}}function s0(e,t,n,r){let a=Object.entries(t).filter(([,s])=>s!==Jy).reduce((s,[i,o])=>(s[i]=o,s),{});for(let s of n){let i=s.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&s.route.loader&&(a[i]=e[i]),r&&r.hasOwnProperty(i))break}return a}function i0(e){return e?Wn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function qr(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function lo(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function er(e,{pathname:t,routeId:n,method:r,type:a,message:s}={}){let i="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(i="Bad Request",r&&t&&n?o=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(o="Unable to encode submission body")):e===403?(i="Forbidden",o=`Route "${n}" does not match URL "${t}"`):e===404?(i="Not Found",o=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",r&&t&&n?o=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(o=`Invalid request method "${r.toUpperCase()}"`)),new Oi(e||500,i,new Error(o),!0)}function uo(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(ca(a))return{key:r,result:a}}}function s1(e){let t=typeof e=="string"?ta(e):e;return vr({...t,hash:""})}function dA(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function pA(e){return new Oi(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function fA(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&mA(n))}function mA(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function hA(e){return Bd(e.result)&&Xy.has(e.result.status)}function Wn(e){return e.type==="error"}function ca(e){return(e&&e.type)==="redirect"}function o0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Bd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function gA(e){return Xy.has(e)}function bA(e){return Bd(e)&&gA(e.status)&&e.headers.has("Location")}function EA(e){return YN.has(e.toUpperCase())}function kn(e){return VN.has(e.toUpperCase())}function Ud(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Bo(e,t){let n=typeof t=="string"?ta(t).search:t.search;if(e[e.length-1].route.index&&Ud(n||""))return e[e.length-1];let r=Vy(e);return r[r.length-1]}function l0(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:s,json:i}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Bu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function xA(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ds(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function yA(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function kr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function TA(e,t){try{let n=e.sessionStorage.getItem(Qy);if(n){let r=JSON.parse(n);for(let[a,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(a,new Set(s||[]))}}catch{}}function SA(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(Qy,JSON.stringify(n))}catch(r){Vt(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function u0(){let e,t,n=new Promise((r,a)=>{e=async s=>{r(s);try{await n}catch{}},t=async s=>{a(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Sa=g.createContext(null);Sa.displayName="DataRouter";var Fi=g.createContext(null);Fi.displayName="DataRouterState";var i1=g.createContext(!1);function vA(){return g.useContext(i1)}var $d=g.createContext({isTransitioning:!1});$d.displayName="ViewTransition";var o1=g.createContext(new Map);o1.displayName="Fetchers";var wA=g.createContext(null);wA.displayName="Await";var Zn=g.createContext(null);Zn.displayName="Navigation";var Pl=g.createContext(null);Pl.displayName="Location";var dr=g.createContext({outlet:null,matches:[],isDataRoute:!1});dr.displayName="Route";var zd=g.createContext(null);zd.displayName="RouteError";var l1="REACT_ROUTER_ERROR",NA="REDIRECT",AA="ROUTE_ERROR_RESPONSE";function _A(e){if(e.startsWith(`${l1}:${NA}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function CA(e){if(e.startsWith(`${l1}:${AA}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Oi(t.status,t.statusText,t.data)}catch{}}function kA(e,{relative:t}={}){ct(ds(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(Zn),{hash:a,pathname:s,search:i}=Mi(e,{relative:t}),o=s;return n!=="/"&&(o=s==="/"?n:Sr([n,s])),r.createHref({pathname:o,search:i,hash:a})}function ds(){return g.useContext(Pl)!=null}function ir(){return ct(ds(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Pl).location}var u1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function c1(e){g.useContext(Zn).static||g.useLayoutEffect(e)}function jl(){let{isDataRoute:e}=g.useContext(dr);return e?GA():IA()}function IA(){ct(ds(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(Sa),{basename:t,navigator:n}=g.useContext(Zn),{matches:r}=g.useContext(dr),{pathname:a}=ir(),s=JSON.stringify(Fl(r)),i=g.useRef(!1);return c1(()=>{i.current=!0}),g.useCallback((u,c={})=>{if(Vt(i.current,u1),!i.current)return;if(typeof u=="number"){n.go(u);return}let p=Ml(u,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Sr([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,s,a,e])}var RA=g.createContext(null);function DA(e){let t=g.useContext(dr).outlet;return g.useMemo(()=>t&&g.createElement(RA.Provider,{value:e},t),[t,e])}function Mi(e,{relative:t}={}){let{matches:n}=g.useContext(dr),{pathname:r}=ir(),a=JSON.stringify(Fl(n));return g.useMemo(()=>Ml(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function OA(e,t,n,r,a){ct(ds(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(Zn),{matches:i}=g.useContext(dr),o=i[i.length-1],u=o?o.params:{},c=o?o.pathname:"/",p=o?o.pathnameBase:"/",d=o&&o.route;{let v=d&&d.path||"";p1(c,!d||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
4
|
+
|
|
5
|
+
Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=ir(),m;m=f;let b=m.pathname||"/",E=b;if(p!=="/"){let v=p.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=Vr(e,{pathname:E});return Vt(d||x!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Vt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),jA(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},u,v.params),pathname:Sr([p,s.encodeLocation?s.encodeLocation(v.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?p:Sr([p,s.encodeLocation?s.encodeLocation(v.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),i,n,r,a)}function LA(){let e=HA(),t=gi(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:s},"ErrorBoundary")," or"," ",g.createElement("code",{style:s},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:a},n):null,i)}var FA=g.createElement(LA,null),d1=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=CA(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(dr.Provider,{value:this.props.routeContext},g.createElement(zd.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(MA,{error:e},t):t}};d1.contextType=i1;var Uu=new WeakMap;function MA({children:e,error:t}){let{basename:n}=g.useContext(Zn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=_A(t.digest);if(r){let a=Uu.get(t);if(a)throw a;let s=Yy(r.location,n);if(qy&&!Uu.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Uu.set(t,i),i}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function PA({routeContext:e,match:t,children:n}){let r=g.useContext(Sa);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(dr.Provider,{value:e},n)}function jA(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,i=n?.errors;if(i!=null){let p=s.findIndex(d=>d.route.id&&i?.[d.route.id]!==void 0);ct(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let o=!1,u=-1;if(n)for(let p=0;p<s.length;p++){let d=s[p];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=p),d.route.id){let{loaderData:f,errors:m}=n,b=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||b){o=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}let c=n&&r?(p,d)=>{r(p,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Li(n.matches),errorInfo:d})}:void 0;return s.reduceRight((p,d,f)=>{let m,b=!1,E=null,x=null;n&&(m=i&&d.route.id?i[d.route.id]:void 0,E=d.route.errorElement||FA,o&&(u<0&&f===0?(p1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,x=null):u===f&&(b=!0,x=d.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,f+1)),v=()=>{let T;return m?T=E:b?T=x:d.route.Component?T=g.createElement(d.route.Component,null):d.route.element?T=d.route.element:T=p,g.createElement(PA,{match:d,routeContext:{outlet:p,matches:y,isDataRoute:n!=null},children:T})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?g.createElement(d1,{location:n.location,revalidation:n.revalidation,component:E,error:m,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):v()},null)}function Hd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function BA(e){let t=g.useContext(Sa);return ct(t,Hd(e)),t}function UA(e){let t=g.useContext(Fi);return ct(t,Hd(e)),t}function $A(e){let t=g.useContext(dr);return ct(t,Hd(e)),t}function Gd(e){let t=$A(e),n=t.matches[t.matches.length-1];return ct(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function zA(){return Gd("useRouteId")}function HA(){let e=g.useContext(zd),t=UA("useRouteError"),n=Gd("useRouteError");return e!==void 0?e:t.errors?.[n]}function GA(){let{router:e}=BA("useNavigate"),t=Gd("useNavigate"),n=g.useRef(!1);return c1(()=>{n.current=!0}),g.useCallback(async(a,s={})=>{Vt(n.current,u1),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var c0={};function p1(e,t,n){!t&&!c0[e]&&(c0[e]=!0,Vt(!1,n))}var d0={};function p0(e,t){!e&&!d0[t]&&(d0[t]=!0,console.warn(t))}var WA="useOptimistic",f0=lN[WA],VA=()=>{};function qA(e){return f0?f0(e):[e,VA]}function YA(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Vt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:g.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Vt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:g.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Vt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var ZA=["HydrateFallback","hydrateFallbackElement"],KA=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function XA({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){r=vA()||r;let[s,i]=g.useState(e.state),[o,u]=qA(s),[c,p]=g.useState(),[d,f]=g.useState({isTransitioning:!1}),[m,b]=g.useState(),[E,x]=g.useState(),[y,v]=g.useState(),T=g.useRef(new Map),N=g.useCallback((w,{deletedFetchers:R,newErrors:C,flushSync:U,viewTransitionOpts:k})=>{C&&n&&Object.values(C).forEach(W=>n(W,{location:w.location,params:w.matches[0]?.params??{},unstable_pattern:Li(w.matches)})),w.fetchers.forEach((W,$)=>{W.data!==void 0&&T.current.set($,W.data)}),R.forEach(W=>T.current.delete(W)),p0(U===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let j=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(p0(k==null||j,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!k||!j){t&&U?t(()=>i(w)):r===!1?i(w):g.startTransition(()=>{r===!0&&u(W=>m0(W,w)),i(w)});return}if(t&&U){t(()=>{E&&(m?.resolve(),E.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:k.currentLocation,nextLocation:k.nextLocation})});let W=e.window.document.startViewTransition(()=>{t(()=>i(w))});W.finished.finally(()=>{t(()=>{b(void 0),x(void 0),p(void 0),f({isTransitioning:!1})})}),t(()=>x(W));return}E?(m?.resolve(),E.skipTransition(),v({state:w,currentLocation:k.currentLocation,nextLocation:k.nextLocation})):(p(w),f({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}))},[e.window,t,E,m,r,u,n]);g.useLayoutEffect(()=>e.subscribe(N),[e,N]),g.useEffect(()=>{d.isTransitioning&&!d.flushSync&&b(new KA)},[d]),g.useEffect(()=>{if(m&&c&&e.window){let w=c,R=m.promise,C=e.window.document.startViewTransition(async()=>{r===!1?i(w):g.startTransition(()=>{r===!0&&u(U=>m0(U,w)),i(w)}),await R});C.finished.finally(()=>{b(void 0),x(void 0),p(void 0),f({isTransitioning:!1})}),x(C)}},[c,m,e.window,r,u]),g.useEffect(()=>{m&&c&&o.location.key===c.location.key&&m.resolve()},[m,E,o.location,c]),g.useEffect(()=>{!d.isTransitioning&&y&&(p(y.state),f({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),v(void 0))},[d.isTransitioning,y]);let D=g.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,R,C)=>e.navigate(w,{state:R,preventScrollReset:C?.preventScrollReset}),replace:(w,R,C)=>e.navigate(w,{replace:!0,state:R,preventScrollReset:C?.preventScrollReset})}),[e]),A=e.basename||"/",S=g.useMemo(()=>({router:e,navigator:D,static:!1,basename:A,onError:n}),[e,D,A,n]);return g.createElement(g.Fragment,null,g.createElement(Sa.Provider,{value:S},g.createElement(Fi.Provider,{value:o},g.createElement(o1.Provider,{value:T.current},g.createElement($d.Provider,{value:d},g.createElement(t_,{basename:A,location:o.location,navigationType:o.historyAction,navigator:D,unstable_useTransitions:r},g.createElement(QA,{routes:e.routes,future:e.future,state:o,onError:n})))))),null)}function m0(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var QA=g.memo(JA);function JA({routes:e,future:t,state:n,onError:r}){return OA(e,void 0,n,r,t)}function h0({to:e,replace:t,state:n,relative:r}){ct(ds(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=g.useContext(Zn);Vt(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=g.useContext(dr),{pathname:i}=ir(),o=jl(),u=Ml(e,Fl(s),i,r==="path"),c=JSON.stringify(u);return g.useEffect(()=>{o(JSON.parse(c),{replace:t,state:n,relative:r})},[o,c,r,t,n]),null}function e_(e){return DA(e.context)}function t_({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1,unstable_useTransitions:i}){ct(!ds(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:o,navigator:a,static:s,unstable_useTransitions:i,future:{}}),[o,a,s,i]);typeof n=="string"&&(n=ta(n));let{pathname:c="/",search:p="",hash:d="",state:f=null,key:m="default"}=n,b=g.useMemo(()=>{let E=sr(c,o);return E==null?null:{location:{pathname:E,search:p,hash:d,state:f,key:m},navigationType:r}},[o,c,p,d,f,m,r]);return Vt(b!=null,`<Router basename="${o}"> is not able to match the URL "${c}${p}${d}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:g.createElement(Zn.Provider,{value:u},g.createElement(Pl.Provider,{children:t,value:b}))}var Uo="get",$o="application/x-www-form-urlencoded";function Bl(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function n_(e){return Bl(e)&&e.tagName.toLowerCase()==="button"}function r_(e){return Bl(e)&&e.tagName.toLowerCase()==="form"}function a_(e){return Bl(e)&&e.tagName.toLowerCase()==="input"}function s_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function i_(e,t){return e.button===0&&(!t||t==="_self")&&!s_(e)}function Wc(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function o_(e,t){let n=Wc(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(s=>{n.append(a,s)})}),n}var co=null;function l_(){if(co===null)try{new FormData(document.createElement("form"),0),co=!1}catch{co=!0}return co}var u_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $u(e){return e!=null&&!u_.has(e)?(Vt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$o}"`),null):e}function c_(e,t){let n,r,a,s,i;if(r_(e)){let o=e.getAttribute("action");r=o?sr(o,t):null,n=e.getAttribute("method")||Uo,a=$u(e.getAttribute("enctype"))||$o,s=new FormData(e)}else if(n_(e)||a_(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||o.getAttribute("action");if(r=u?sr(u,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Uo,a=$u(e.getAttribute("formenctype"))||$u(o.getAttribute("enctype"))||$o,s=new FormData(o,e),!l_()){let{name:c,type:p,value:d}=e;if(p==="image"){let f=c?`${c}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}else c&&s.append(c,d)}}else{if(Bl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Uo,r=null,a=$o,i=e}return s&&a==="text/plain"&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wd(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function d_(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&sr(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function p_(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function f_(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function m_(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let i=await p_(s,n);return i.links?i.links():[]}return[]}));return E_(r.flat(1).filter(f_).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function g0(e,t,n,r,a,s){let i=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,o=(u,c)=>n[c].pathname!==u.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==u.params["*"];return s==="assets"?t.filter((u,c)=>i(u,c)||o(u,c)):s==="data"?t.filter((u,c)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(i(u,c)||o(u,c))return!0;if(u.route.shouldRevalidate){let d=u.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function h_(e,t,{includeHydrateFallback:n}={}){return g_(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function g_(e){return[...new Set(e)]}function b_(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function E_(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(b_(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function f1(){let e=g.useContext(Sa);return Wd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function x_(){let e=g.useContext(Fi);return Wd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Vd=g.createContext(void 0);Vd.displayName="FrameworkContext";function m1(){let e=g.useContext(Vd);return Wd(e,"You must render this element inside a <HydratedRouter> element"),e}function y_(e,t){let n=g.useContext(Vd),[r,a]=g.useState(!1),[s,i]=g.useState(!1),{onFocus:o,onBlur:u,onMouseEnter:c,onMouseLeave:p,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let E=y=>{y.forEach(v=>{i(v.isIntersecting)})},x=new IntersectionObserver(E,{threshold:.5});return f.current&&x.observe(f.current),()=>{x.disconnect()}}},[e]),g.useEffect(()=>{if(r){let E=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(E)}}},[r]);let m=()=>{a(!0)},b=()=>{a(!1),i(!1)};return n?e!=="intent"?[s,f,{}]:[s,f,{onFocus:Os(o,m),onBlur:Os(u,b),onMouseEnter:Os(c,m),onMouseLeave:Os(p,b),onTouchStart:Os(d,m)}]:[!1,f,{}]}function Os(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function T_({page:e,...t}){let{router:n}=f1(),r=g.useMemo(()=>Vr(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(v_,{page:e,matches:r,...t}):null}function S_(e){let{manifest:t,routeModules:n}=m1(),[r,a]=g.useState([]);return g.useEffect(()=>{let s=!1;return m_(e,t,n).then(i=>{s||a(i)}),()=>{s=!0}},[e,t,n]),r}function v_({page:e,matches:t,...n}){let r=ir(),{manifest:a,routeModules:s}=m1(),{basename:i}=f1(),{loaderData:o,matches:u}=x_(),c=g.useMemo(()=>g0(e,t,u,a,r,"data"),[e,t,u,a,r]),p=g.useMemo(()=>g0(e,t,u,a,r,"assets"),[e,t,u,a,r]),d=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,E=!1;if(t.forEach(y=>{let v=a.routes[y.route.id];!v||!v.hasLoader||(!c.some(T=>T.route.id===y.route.id)&&y.route.id in o&&s[y.route.id]?.shouldRevalidate||v.hasClientLoader?E=!0:b.add(y.route.id))}),b.size===0)return[];let x=d_(e,i,"data");return E&&b.size>0&&x.searchParams.set("_routes",t.filter(y=>b.has(y.route.id)).map(y=>y.route.id).join(",")),[x.pathname+x.search]},[i,o,r,a,c,t,e,s]),f=g.useMemo(()=>h_(p,a),[p,a]),m=S_(p);return g.createElement(g.Fragment,null,d.map(b=>g.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),f.map(b=>g.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),m.map(({key:b,link:E})=>g.createElement("link",{key:b,nonce:n.nonce,...E})))}function w_(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var N_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{N_&&(window.__reactRouterVersion="7.11.0")}catch{}function A_(e,t){return QN({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:mN({window:t?.window}),hydrationData:__(),routes:e,mapRouteProperties:YA,hydrationRouteProperties:ZA,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function __(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:C_(e.errors)}),e}function C_(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new Oi(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let s=window[a.__subType];if(typeof s=="function")try{let i=new s(a.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let s=new Error(a.message);s.stack="",n[r]=s}}else n[r]=a;return n}var h1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,g1=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:i,state:o,target:u,to:c,preventScrollReset:p,viewTransition:d,unstable_defaultShouldRevalidate:f,...m},b){let{basename:E,unstable_useTransitions:x}=g.useContext(Zn),y=typeof c=="string"&&h1.test(c),v=Yy(c,E);c=v.to;let T=kA(c,{relative:a}),[N,D,A]=y_(r,m),S=R_(c,{replace:i,state:o,target:u,preventScrollReset:p,relative:a,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:x});function w(C){t&&t(C),C.defaultPrevented||S(C)}let R=g.createElement("a",{...m,...A,href:v.absoluteURL||T,onClick:v.isExternal||s?t:w,ref:w_(b,D),target:u,"data-discover":!y&&n==="render"?"true":void 0});return N&&!y?g.createElement(g.Fragment,null,R,g.createElement(T_,{page:T})):R});g1.displayName="Link";var b1=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:i,viewTransition:o,children:u,...c},p){let d=Mi(i,{relative:c.relative}),f=ir(),m=g.useContext(Fi),{navigator:b,basename:E}=g.useContext(Zn),x=m!=null&&P_(d)&&o===!0,y=b.encodeLocation?b.encodeLocation(d).pathname:d.pathname,v=f.pathname,T=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(v=v.toLowerCase(),T=T?T.toLowerCase():null,y=y.toLowerCase()),T&&E&&(T=sr(T,E)||T);const N=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let D=v===y||!a&&v.startsWith(y)&&v.charAt(N)==="/",A=T!=null&&(T===y||!a&&T.startsWith(y)&&T.charAt(y.length)==="/"),S={isActive:D,isPending:A,isTransitioning:x},w=D?t:void 0,R;typeof r=="function"?R=r(S):R=[r,D?"active":null,A?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let C=typeof s=="function"?s(S):s;return g.createElement(g1,{...c,"aria-current":w,className:R,ref:p,style:C,to:i,viewTransition:o},typeof u=="function"?u(S):u)});b1.displayName="NavLink";var k_=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:i=Uo,action:o,onSubmit:u,relative:c,preventScrollReset:p,viewTransition:d,unstable_defaultShouldRevalidate:f,...m},b)=>{let{unstable_useTransitions:E}=g.useContext(Zn),x=F_(),y=M_(o,{relative:c}),v=i.toLowerCase()==="get"?"get":"post",T=typeof o=="string"&&h1.test(o),N=D=>{if(u&&u(D),D.defaultPrevented)return;D.preventDefault();let A=D.nativeEvent.submitter,S=A?.getAttribute("formmethod")||i,w=()=>x(A||D.currentTarget,{fetcherKey:t,method:S,navigate:n,replace:a,state:s,relative:c,preventScrollReset:p,viewTransition:d,unstable_defaultShouldRevalidate:f});E&&n!==!1?g.startTransition(()=>w()):w()};return g.createElement("form",{ref:b,method:v,action:y,onSubmit:r?u:N,...m,"data-discover":!T&&e==="render"?"true":void 0})});k_.displayName="Form";function I_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function E1(e){let t=g.useContext(Sa);return ct(t,I_(e)),t}function R_(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:i,unstable_defaultShouldRevalidate:o,unstable_useTransitions:u}={}){let c=jl(),p=ir(),d=Mi(e,{relative:s});return g.useCallback(f=>{if(i_(f,t)){f.preventDefault();let m=n!==void 0?n:vr(p)===vr(d),b=()=>c(e,{replace:m,state:r,preventScrollReset:a,relative:s,viewTransition:i,unstable_defaultShouldRevalidate:o});u?g.startTransition(()=>b()):b()}},[p,c,d,n,r,t,e,a,s,i,o,u])}function D_(e){Vt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=g.useRef(Wc(e)),n=g.useRef(!1),r=ir(),a=g.useMemo(()=>o_(r.search,n.current?null:t.current),[r.search]),s=jl(),i=g.useCallback((o,u)=>{const c=Wc(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,s("?"+c,u)},[s,a]);return[a,i]}var O_=0,L_=()=>`__${String(++O_)}__`;function F_(){let{router:e}=E1("useSubmit"),{basename:t}=g.useContext(Zn),n=zA(),r=e.fetch,a=e.navigate;return g.useCallback(async(s,i={})=>{let{action:o,method:u,encType:c,formData:p,body:d}=c_(s,t);if(i.navigate===!1){let f=i.fetcherKey||L_();await r(f,n,i.action||o,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:d,formMethod:i.method||u,formEncType:i.encType||c,flushSync:i.flushSync})}else await a(i.action||o,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:d,formMethod:i.method||u,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}function M_(e,{relative:t}={}){let{basename:n}=g.useContext(Zn),r=g.useContext(dr);ct(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Mi(e||".",{relative:t})},i=ir();if(e==null){s.search=i.search;let o=new URLSearchParams(s.search),u=o.getAll("index");if(u.some(p=>p==="")){o.delete("index"),u.filter(d=>d).forEach(d=>o.append("index",d));let p=o.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Sr([n,s.pathname])),vr(s)}function P_(e,{relative:t}={}){let n=g.useContext($d);ct(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=E1("useViewTransitionState"),a=Mi(e,{relative:t});if(!n.isTransitioning)return!1;let s=sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qo(a.pathname,i)!=null||Qo(a.pathname,s)!=null}function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(null,arguments)}const Pi=(function(e){if(e==null)return $_;if(typeof e=="function")return Ul(e);if(typeof e=="object")return Array.isArray(e)?j_(e):B_(e);if(typeof e=="string")return U_(e);throw new Error("Expected function, string, or object as test")});function j_(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Pi(e[n]);return Ul(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function B_(e){const t=e;return Ul(n);function n(r){const a=r;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function U_(e){return Ul(t);function t(n){return n&&n.type===e}}function Ul(e){return t;function t(n,r,a){return!!(z_(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function $_(){return!0}function z_(e){return e!==null&&typeof e=="object"&&"type"in e}const x1=[],H_=!0,Jo=!1,Js="skip";function qd(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const s=Pi(a),i=r?-1:1;o(e,void 0,[])();function o(u,c,p){const d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=x1,b,E,x;if((!t||s(u,c,p[p.length-1]||void 0))&&(m=G_(n(u,p)),m[0]===Jo))return m;if("children"in u&&u.children){const y=u;if(y.children&&m[0]!==Js)for(E=(r?y.children.length:-1)+i,x=p.concat(y);E>-1&&E<y.children.length;){const v=y.children[E];if(b=o(v,E,x)(),b[0]===Jo)return b;E=typeof b[1]=="number"?b[1]:E+i}}return m}}}function G_(e){return Array.isArray(e)?e:typeof e=="number"?[H_,e]:e==null?x1:[e]}function $n(e,t,n,r){let a,s,i;typeof t=="function"&&typeof n!="function"?(s=void 0,i=t,a=n):(s=t,i=n,a=r),qd(e,s,o,a);function o(u,c){const p=c[c.length-1],d=p?p.children.indexOf(u):void 0;return i(u,d,p)}}function Wa(e){return"children"in e?y1(e):"value"in e?e.value:""}function W_(e){return e.type==="text"?e.value:"children"in e?y1(e):""}function y1(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=W_(e.children[t]);return n.join("")}const V_={}.hasOwnProperty;function q_(e,t,n){const r=Pi(t),a=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,s=a??!0;return i(e);function i(o,u,c){const p=[];if(!r(o,u,c))return;if(Y_(o)){let m=-1;for(;++m<o.children.length;){const b=i(o.children[m],m,o);b&&p.push(b)}if(s&&o.children.length>0&&p.length===0)return}const d={};let f;for(f in o)V_.call(o,f)&&(d[f]=f==="children"?p:o[f]);return d}}function Y_(e){return"children"in e&&e.children!==void 0}var po={exports:{}},b0;function Z_(){return b0||(b0=1,(function(e,t){function n(r){let a=[],s;for(let i of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(i))a.push(parseInt(i,10));else if(s=i.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,u,c,p]=s;if(u&&p){u=parseInt(u),p=parseInt(p);const d=u<p?1:-1;(c==="-"||c===".."||c==="‥")&&(p+=d);for(let f=u;f!==p;f+=d)a.push(f)}}return a}t.default=n,e.exports=n})(po,po.exports)),po.exports}var K_=Z_();const X_=Ol(K_);bt.displayName="clike";bt.aliases=[];function bt(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}pr.displayName="c";pr.aliases=[];function pr(e){e.register(bt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}va.displayName="cpp";va.aliases=[];function va(e){e.register(pr),(function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(e)}$l.displayName="arduino";$l.aliases=["ino"];function $l(e){e.register(va),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}ji.displayName="bash";ji.aliases=["sh","shell"];function ji(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,o=0;o<s.length;o++)i[s[o]]=t.languages.bash[s[o]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}wa.displayName="csharp";wa.aliases=["cs","dotnet"];function wa(e){e.register(bt),(function(t){function n(O,te){return O.replace(/<<(\d+)>>/g,function(le,L){return"(?:"+te[+L]+")"})}function r(O,te,le){return RegExp(n(O,te),"")}function a(O,te){for(var le=0;le<te;le++)O=O.replace(/<<self>>/g,function(){return"(?:"+O+")"});return O.replace(/<<self>>/g,"[^\\s\\S]")}var s={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function i(O){return"\\b(?:"+O.trim().replace(/ /g,"|")+")\\b"}var o=i(s.typeDeclaration),u=RegExp(i(s.type+" "+s.typeDeclaration+" "+s.contextual+" "+s.other)),c=i(s.typeDeclaration+" "+s.contextual+" "+s.other),p=i(s.type+" "+s.typeDeclaration+" "+s.other),d=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=a(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[m,d]),E=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),x=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[E,x]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,f,x]),T=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),N=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[T,E,x]),D={keyword:u,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,w=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[w]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[E]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,N]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,b]),lookbehind:!0,inside:D},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[E]),lookbehind:!0,inside:D},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[N,p,m]),inside:D}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[N,E]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[N]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,d]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(d),alias:"class-name",inside:D}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,b,m,N,u.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,f]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(N),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=S+"|"+A,C=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),U=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),k=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[E,U]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[k,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[k]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[U]),inside:t.languages.csharp},"class-name":{pattern:RegExp(E),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var W=/:[^}\r\n]+/.source,$=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),ee=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[$,W]),me=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[R]),2),se=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[me,W]);function xe(O,te){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[O]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[te,W]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ee]),lookbehind:!0,greedy:!0,inside:xe(ee,$)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:xe(se,me)}],char:{pattern:RegExp(A),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}bn.displayName="markup";bn.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function bn(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};s["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:s},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}na.displayName="css";na.aliases=[];function na(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}zl.displayName="diff";zl.aliases=[];function zl(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var a=n[r],s=[];/^\w+$/.test(r)||s.push(/\w+/.exec(r)[0]),r==="diff"&&s.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+a+`].*(?:\r
|
|
6
|
+
?|
|
|
7
|
+
|(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}Hl.displayName="go";Hl.aliases=[];function Hl(e){e.register(bt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}Gl.displayName="ini";Gl.aliases=[];function Gl(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Na.displayName="java";Na.aliases=[];function Na(e){e.register(bt),(function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}Wl.displayName="regex";Wl.aliases=[];function Wl(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i="(?:[^\\\\-]|"+r.source+")",o=RegExp(i+"-"+i),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":s,escape:r}},"special-escape":n,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":u}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}wn.displayName="javascript";wn.aliases=["js"];function wn(e){e.register(bt),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}ps.displayName="json";ps.aliases=["webmanifest"];function ps(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}Vl.displayName="kotlin";Vl.aliases=["kt","kts"];function Vl(e){e.register(bt),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(e)}ql.displayName="less";ql.aliases=[];function ql(e){e.register(na),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Bi.displayName="lua";Bi.aliases=[];function Bi(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}Yl.displayName="makefile";Yl.aliases=[];function Yl(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Ui.displayName="yaml";Ui.aliases=["yml"];function Ui(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}Zl.displayName="markdown";Zl.aliases=["md"];function Zl(e){e.register(bn),(function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+i+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+i+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(u){o!==u&&(t.languages.markdown[o].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,d=c.length;p<d;p++){var f=c[p];if(f.type!=="code"){u(f.content);continue}var m=f.content[1],b=f.content[3];if(m&&b&&m.type==="code-language"&&b.type==="code-block"&&typeof m.content=="string"){var E=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");E=(/[a-z][\w-]*/i.exec(E)||[""])[0].toLowerCase();var x="language-"+E;b.alias?typeof b.alias=="string"?b.alias=[b.alias,x]:b.alias.push(x):b.alias=[x]}}}u(o.tokens)}),t.hooks.add("wrap",function(o){if(o.type==="code-block"){for(var u="",c=0,p=o.classes.length;c<p;c++){var d=o.classes[c],f=/language-(.+)/.exec(d);if(f){u=f[1];break}}var m=t.languages[u];if(m)o.content=t.highlight(o.content.value,m,u);else if(u&&u!=="none"&&t.plugins.autoloader){var b="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);o.attributes.id=b,t.plugins.autoloader.loadLanguages(u,function(){var E=document.getElementById(b);E&&(E.innerHTML=t.highlight(E.textContent,t.languages[u],u))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}Kl.displayName="objectivec";Kl.aliases=["objc"];function Kl(e){e.register(pr),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Xl.displayName="perl";Xl.aliases=[];function Xl(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Nn.displayName="markup-templating";Nn.aliases=[];function Nn(e){e.register(bn),(function(t){function n(r,a){return"___"+r.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,a,s,i){if(r.language===a){var o=r.tokenStack=[];r.code=r.code.replace(s,function(u){if(typeof i=="function"&&!i(u))return u;for(var c=o.length,p;r.code.indexOf(p=n(a,c))!==-1;)++c;return o[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,a){if(r.language!==a||!r.tokenStack)return;r.grammar=t.languages[a];var s=0,i=Object.keys(r.tokenStack);function o(u){for(var c=0;c<u.length&&!(s>=i.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var d=i[s],f=r.tokenStack[d],m=typeof p=="string"?p:p.content,b=n(a,d),E=m.indexOf(b);if(E>-1){++s;var x=m.substring(0,E),y=new t.Token(a,t.tokenize(f,r.grammar),"language-"+a,f),v=m.substring(E+b.length),T=[];x&&T.push.apply(T,o([x])),T.push(y),v&&T.push.apply(T,o([v])),typeof p=="string"?u.splice.apply(u,[c,1].concat(T)):p.content=T}}else p.content&&o(p.content)}return u}o(r.tokens)}}})})(e)}Aa.displayName="php";Aa.aliases=[];function Aa(e){e.register(Nn),(function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:s,punctuation:i};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:a,operator:s,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})})(e)}$i.displayName="python";$i.aliases=["py"];function $i(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}Ql.displayName="r";Ql.aliases=[];function Ql(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}_a.displayName="ruby";_a.aliases=["rb"];function _a(e){e.register(bt),(function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby})(e)}Jl.displayName="rust";Jl.aliases=[];function Jl(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}eu.displayName="sass";eu.aliases=[];function eu(e){e.register(na),(function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}tu.displayName="scss";tu.aliases=[];function tu(e){e.register(na),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}fs.displayName="sql";fs.aliases=[];function fs(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}nu.displayName="swift";nu.aliases=[];function nu(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}ms.displayName="typescript";ms.aliases=["ts"];function ms(e){e.register(wn),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript})(e)}zi.displayName="basic";zi.aliases=[];function zi(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Hi.displayName="vbnet";Hi.aliases=[];function Hi(e){e.register(zi),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class Gi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Gi.prototype.normal={};Gi.prototype.property={};Gi.prototype.space=void 0;function T1(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Gi(n,r,t)}function bi(e){return e.toLowerCase()}class zn{constructor(t,n){this.attribute=n,this.property=t}}zn.prototype.attribute="";zn.prototype.booleanish=!1;zn.prototype.boolean=!1;zn.prototype.commaOrSpaceSeparated=!1;zn.prototype.commaSeparated=!1;zn.prototype.defined=!1;zn.prototype.mustUseProperty=!1;zn.prototype.number=!1;zn.prototype.overloadedBoolean=!1;zn.prototype.property="";zn.prototype.spaceSeparated=!1;zn.prototype.space=void 0;let Q_=0;const nt=Ca(),nn=Ca(),Vc=Ca(),Ee=Ca(),jt=Ca(),fa=Ca(),Gn=Ca();function Ca(){return 2**++Q_}const qc=Object.freeze(Object.defineProperty({__proto__:null,boolean:nt,booleanish:nn,commaOrSpaceSeparated:Gn,commaSeparated:fa,number:Ee,overloadedBoolean:Vc,spaceSeparated:jt},Symbol.toStringTag,{value:"Module"})),zu=Object.keys(qc);class Yd extends zn{constructor(t,n,r,a){let s=-1;if(super(t,n),E0(this,"space",a),typeof r=="number")for(;++s<zu.length;){const i=zu[s];E0(this,zu[s],(r&qc[i])===qc[i])}}}Yd.prototype.defined=!0;function E0(e,t,n){n&&(e[t]=n)}function hs(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new Yd(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[bi(r)]=r,n[bi(s.attribute)]=r}return new Gi(t,n,e.space)}const S1=hs({properties:{ariaActiveDescendant:null,ariaAtomic:nn,ariaAutoComplete:null,ariaBusy:nn,ariaChecked:nn,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:jt,ariaCurrent:null,ariaDescribedBy:jt,ariaDetails:null,ariaDisabled:nn,ariaDropEffect:jt,ariaErrorMessage:null,ariaExpanded:nn,ariaFlowTo:jt,ariaGrabbed:nn,ariaHasPopup:null,ariaHidden:nn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:jt,ariaLevel:Ee,ariaLive:null,ariaModal:nn,ariaMultiLine:nn,ariaMultiSelectable:nn,ariaOrientation:null,ariaOwns:jt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:nn,ariaReadOnly:nn,ariaRelevant:null,ariaRequired:nn,ariaRoleDescription:jt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:nn,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function v1(e,t){return t in e?e[t]:t}function w1(e,t){return v1(e,t.toLowerCase())}const J_=hs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fa,acceptCharset:jt,accessKey:jt,action:null,allow:null,allowFullScreen:nt,allowPaymentRequest:nt,allowUserMedia:nt,alpha:nt,alt:null,as:null,async:nt,autoCapitalize:null,autoComplete:jt,autoFocus:nt,autoPlay:nt,blocking:jt,capture:null,charSet:null,checked:nt,cite:null,className:jt,closedBy:null,colorSpace:null,cols:Ee,colSpan:Ee,command:null,commandFor:null,content:null,contentEditable:nn,controls:nt,controlsList:jt,coords:Ee|fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:nt,defer:nt,dir:null,dirName:null,disabled:nt,download:Vc,draggable:nn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:nt,formTarget:null,headers:jt,height:Ee,hidden:Vc,high:Ee,href:null,hrefLang:null,htmlFor:jt,httpEquiv:jt,id:null,imageSizes:null,imageSrcSet:null,inert:nt,inputMode:null,integrity:null,is:null,isMap:nt,itemId:null,itemProp:jt,itemRef:jt,itemScope:nt,itemType:jt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:nt,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:nt,muted:nt,name:null,nonce:null,noModule:nt,noValidate:nt,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:nt,optimum:Ee,pattern:null,ping:jt,placeholder:null,playsInline:nt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:nt,referrerPolicy:null,rel:jt,required:nt,reversed:nt,rows:Ee,rowSpan:Ee,sandbox:jt,scope:null,scoped:nt,seamless:nt,selected:nt,shadowRootClonable:nt,shadowRootCustomElementRegistry:nt,shadowRootDelegatesFocus:nt,shadowRootMode:null,shadowRootSerializable:nt,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:nn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:nt,useMap:null,value:nn,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:jt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:nt,declare:nt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:nt,noHref:nt,noShade:nt,noWrap:nt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:nn,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:nt,disablePictureInPicture:nt,disableRemotePlayback:nt,exportParts:fa,part:jt,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:w1}),eC=hs({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Gn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:jt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:nt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:fa,g2:fa,glyphName:fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:jt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:v1}),N1=hs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),A1=hs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:w1}),_1=hs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),tC={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"},nC=/[A-Z]/g,x0=/-[a-z]/g,rC=/^data[-\w.:]+$/i;function gs(e,t){const n=bi(t);let r=t,a=zn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&rC.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(x0,sC);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!x0.test(s)){let i=s.replace(nC,aC);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=Yd}return new a(r,t)}function aC(e){return"-"+e.toLowerCase()}function sC(e){return e.charAt(1).toUpperCase()}const ka=T1([S1,J_,N1,A1,_1],"html"),fr=T1([S1,eC,N1,A1,_1],"svg");function Yc(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const i=n.slice(a,r).trim();(i||!s)&&t.push(i),a=r+1,r=n.indexOf(",",a)}return t}function ru(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const y0=/[#.]/g;function iC(e,t){const n=e||"",r={};let a=0,s,i;for(;a<n.length;){y0.lastIndex=a;const o=y0.exec(n),u=n.slice(a,o?o.index:n.length);u&&(s?s==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:i=u,a+=u.length),o&&(s=o[0],a++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}function Zc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function au(e){return e.join(" ").trim()}function C1(e,t,n){const r=n?cC(n):void 0;function a(s,i,...o){let u;if(s==null){u={type:"root",children:[]};const c=i;o.unshift(c)}else{u=iC(s,t);const c=u.tagName.toLowerCase(),p=r?r.get(c):void 0;if(u.tagName=p||c,oC(i))o.unshift(i);else for(const[d,f]of Object.entries(i))lC(e,u.properties,d,f)}for(const c of o)Kc(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function oC(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const i of s)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function lC(e,t,n,r){const a=gs(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=Zc(r):a.commaSeparated?s=Yc(r):a.commaOrSpaceSeparated?s=Zc(Yc(r).join(" ")):s=T0(a,a.property,r):Array.isArray(r)?s=[...r]:s=a.property==="style"?uC(r):String(r);if(Array.isArray(s)){const i=[];for(const o of s)i.push(T0(a,a.property,o));s=i}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function Kc(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Kc(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Kc(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function T0(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||bi(n)===bi(t)))return!0}return n}function uC(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function cC(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const dC=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],k1=C1(ka,"div"),pC=C1(fr,"g",dC),I1=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],S0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function R1(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function fC(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function mC(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function v0(e){return mC(e)||R1(e)}const w0=document.createElement("i");function Ei(e){const t="&"+e+";";w0.innerHTML=t;const n=w0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const hC=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function gC(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let s=0,i=-1,o="",u,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,u=n.position.start):u=n.position);let p=(u?u.line:0)||1,d=(u?u.column:0)||1,f=b(),m;for(s--;++s<=e.length;)if(m===10&&(d=(c?c[i]:0)||1),m=e.charCodeAt(s),m===38){const y=e.charCodeAt(s+1);if(y===9||y===10||y===12||y===32||y===38||y===60||Number.isNaN(y)||r&&y===r){o+=String.fromCharCode(m),d++;continue}const v=s+1;let T=v,N=v,D;if(y===35){N=++T;const j=e.charCodeAt(N);j===88||j===120?(D="hexadecimal",N=++T):D="decimal"}else D="named";let A="",S="",w="";const R=D==="named"?v0:D==="decimal"?R1:fC;for(N--;++N<=e.length;){const j=e.charCodeAt(N);if(!R(j))break;w+=String.fromCharCode(j),D==="named"&&I1.includes(w)&&(A=w,S=Ei(w))}let C=e.charCodeAt(N)===59;if(C){N++;const j=D==="named"?Ei(w):!1;j&&(A=w,S=j)}let U=1+N-v,k="";if(!(!C&&n.nonTerminated===!1))if(!w)D!=="named"&&E(4,U);else if(D==="named"){if(C&&!S)E(5,1);else if(A!==w&&(N=T+A.length,U=1+N-T,C=!1),!C){const j=A?1:3;if(n.attribute){const W=e.charCodeAt(N);W===61?(E(j,U),S=""):v0(W)?S="":E(j,U)}else E(j,U)}k=S}else{C||E(2,U);let j=Number.parseInt(w,D==="hexadecimal"?16:10);if(bC(j))E(7,U),k="�";else if(j in S0)E(6,U),k=S0[j];else{let W="";EC(j)&&E(6,U),j>65535&&(j-=65536,W+=String.fromCharCode(j>>>10|55296),j=56320|j&1023),k=W+String.fromCharCode(j)}}if(k){x(),f=b(),s=N-1,d+=N-v+1,a.push(k);const j=b();j.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,k,{start:f,end:j},e.slice(v-1,N)),f=j}else w=e.slice(v-1,N),o+=w,d+=w.length,s=N-1}else m===10&&(p++,i++,d=0),Number.isNaN(m)?x():(o+=String.fromCharCode(m),d++);return a.join("");function b(){return{line:p,column:d,offset:s+((u?u.offset:0)||0)}}function E(y,v){let T;n.warning&&(T=b(),T.column+=v,T.offset+=v,n.warning.call(n.warningContext||void 0,hC[y],T,y))}function x(){o&&(a.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:f,end:b()}),o="")}}function bC(e){return e>=55296&&e<=57343||e>1114111}function EC(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var xC=0,fo={},cn={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++xC}),e.__id},clone:function e(t,n){n=n||{};var r,a;switch(cn.util.type(t)){case"Object":if(a=cn.util.objId(t),n[a])return n[a];r={},n[a]=r;for(var s in t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return a=cn.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(i,o){r[o]=e(i,n)}),r);default:return t}}},languages:{plain:fo,plaintext:fo,text:fo,txt:fo,extend:function(e,t){var n=cn.util.clone(cn.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||cn.languages;var a=r[e],s={};for(var i in a)if(a.hasOwnProperty(i)){if(i==t)for(var o in n)n.hasOwnProperty(o)&&(s[o]=n[o]);n.hasOwnProperty(i)||(s[i]=a[i])}var u=r[e];return r[e]=s,cn.languages.DFS(cn.languages,function(c,p){p===u&&c!=e&&(this[c]=s)}),s},DFS:function e(t,n,r,a){a=a||{};var s=cn.util.objId;for(var i in t)if(t.hasOwnProperty(i)){n.call(t,i,t[i],r||i);var o=t[i],u=cn.util.type(o);u==="Object"&&!a[s(o)]?(a[s(o)]=!0,e(o,n,null,a)):u==="Array"&&!a[s(o)]&&(a[s(o)]=!0,e(o,n,i,a))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(cn.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=cn.tokenize(r.code,r.grammar),cn.hooks.run("after-tokenize",r),ei.stringify(cn.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new yC;return zo(a,a.head,e),D1(e,a,t,a.head,0),SC(a)},hooks:{all:{},add:function(e,t){var n=cn.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=cn.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:ei};function ei(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function N0(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var s=a[1].length;a.index+=s,a[0]=a[0].slice(s)}return a}function D1(e,t,n,r,a,s){for(var i in n)if(!(!n.hasOwnProperty(i)||!n[i])){var o=n[i];o=Array.isArray(o)?o:[o];for(var u=0;u<o.length;++u){if(s&&s.cause==i+","+u)return;var c=o[u],p=c.inside,d=!!c.lookbehind,f=!!c.greedy,m=c.alias;if(f&&!c.pattern.global){var b=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,b+"g")}for(var E=c.pattern||c,x=r.next,y=a;x!==t.tail&&!(s&&y>=s.reach);y+=x.value.length,x=x.next){var v=x.value;if(t.length>e.length)return;if(!(v instanceof ei)){var T=1,N;if(f){if(N=N0(E,y,e,d),!N||N.index>=e.length)break;var w=N.index,D=N.index+N[0].length,A=y;for(A+=x.value.length;w>=A;)x=x.next,A+=x.value.length;if(A-=x.value.length,y=A,x.value instanceof ei)continue;for(var S=x;S!==t.tail&&(A<D||typeof S.value=="string");S=S.next)T++,A+=S.value.length;T--,v=e.slice(y,A),N.index-=y}else if(N=N0(E,0,v,d),!N)continue;var w=N.index,R=N[0],C=v.slice(0,w),U=v.slice(w+R.length),k=y+v.length;s&&k>s.reach&&(s.reach=k);var j=x.prev;C&&(j=zo(t,j,C),y+=C.length),TC(t,j,T);var W=new ei(i,p?cn.tokenize(R,p):R,m,R);if(x=zo(t,j,W),U&&zo(t,x,U),T>1){var $={cause:i+","+u,reach:k};D1(e,t,n,x.prev,y,$),s&&$.reach>s.reach&&(s.reach=$.reach)}}}}}}function yC(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function zo(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function TC(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}function SC(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const O1=cn;function L1(){}L1.prototype=O1;const _=new L1;_.highlight=vC;_.register=wC;_.alias=NC;_.registered=AC;_.listLanguages=_C;_.util.encode=CC;_.Token.stringify=Xc;function vC(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(_.languages,r))n=_.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:O1.highlight.call(_,e,n,r)}}function wC(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(_.languages,e.displayName)||e(_)}function NC(e,t){const n=_.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let a;for(a in r)if(Object.hasOwn(r,a)){const s=r[a],i=typeof s=="string"?[s]:s;let o=-1;for(;++o<i.length;)n[i[o]]=n[a]}}function AC(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(_.languages,e)}function _C(){const e=_.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Xc(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let a=-1;for(;++a<e.length;)e[a]!==null&&e[a]!==void 0&&e[a]!==""&&r.push(Xc(e[a],t));return r}const n={attributes:{},classes:["token",e.type],content:Xc(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),_.hooks.run("wrap",n),k1(n.tag+"."+n.classes.join("."),kC(n.attributes),n.content)}function CC(e){return e}function kC(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=gC(e[t]));return e}_.register(bt);_.register(pr);_.register(va);_.register($l);_.register(ji);_.register(wa);_.register(bn);_.register(na);_.register(zl);_.register(Hl);_.register(Gl);_.register(Na);_.register(Wl);_.register(wn);_.register(ps);_.register(Vl);_.register(ql);_.register(Bi);_.register(Yl);_.register(Ui);_.register(Zl);_.register(Kl);_.register(Xl);_.register(Nn);_.register(Aa);_.register($i);_.register(Ql);_.register(_a);_.register(Jl);_.register(eu);_.register(tu);_.register(fs);_.register(nu);_.register(ms);_.register(zi);_.register(Hi);Zd.displayName="abap";Zd.aliases=[];function Zd(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}Kd.displayName="abnf";Kd.aliases=[];function Kd(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}Xd.displayName="actionscript";Xd.aliases=[];function Xd(e){e.register(wn),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}Qd.displayName="ada";Qd.aliases=[];function Qd(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Jd.displayName="agda";Jd.aliases=[];function Jd(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}ep.displayName="al";ep.aliases=[];function ep(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}tp.displayName="antlr4";tp.aliases=["g4"];function tp(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}np.displayName="apacheconf";np.aliases=[];function np(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}rp.displayName="apex";rp.aliases=[];function rp(e){e.register(bt),e.register(fs),(function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return n.source});function a(i){return RegExp(i.replace(/<CLASS-NAME>/g,function(){return r}),"i")}var s={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:s},{pattern:a(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:a(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(e)}ap.displayName="apl";ap.aliases=[];function ap(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}sp.displayName="applescript";sp.aliases=[];function sp(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}ip.displayName="aql";ip.aliases=[];function ip(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}op.displayName="arff";op.aliases=[];function op(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}lp.displayName="armasm";lp.aliases=["arm-asm"];function lp(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}up.displayName="arturo";up.aliases=["art"];function up(e){(function(t){var n=function(r,a){return{pattern:RegExp(/\{!/.source+"(?:"+(a||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}cp.displayName="asciidoc";cp.aliases=["adoc"];function cp(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(s){s=s.split(" ");for(var i={},o=0,u=s.length;o<u;o++)i[s[o]]=r[s[o]];return i}n.inside.interpreted.inside.rest=a("macro inline replacement entity"),r["passthrough-block"].inside.rest=a("macro"),r["literal-block"].inside.rest=a("callout"),r.table.inside.rest=a("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),r["other-block"].inside.rest=a("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),r.title.inside.rest=a("macro inline replacement entity"),t.hooks.add("wrap",function(s){s.type==="entity"&&(s.attributes.title=s.content.value.replace(/&/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}dp.displayName="aspnet";dp.aliases=[];function dp(e){e.register(wa),e.register(bn),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}pp.displayName="asm6502";pp.aliases=[];function pp(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}fp.displayName="asmatmel";fp.aliases=[];function fp(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}mp.displayName="autohotkey";mp.aliases=[];function mp(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}hp.displayName="autoit";hp.aliases=[];function hp(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}gp.displayName="avisynth";gp.aliases=["avs"];function gp(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(d,f){return p[+f]})}function r(c,p,d){return RegExp(n(c,p),d)}var a=/bool|clip|float|int|string|val/.source,s=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),i=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[s,i,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}bp.displayName="avro-idl";bp.aliases=["avdl"];function bp(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}Ep.displayName="awk";Ep.aliases=["gawk"];function Ep(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}xp.displayName="batch";xp.aliases=[];function xp(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,s=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:r,variable:n,number:s,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:r,variable:n,number:s,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:s,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:s,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}yp.displayName="bbcode";yp.aliases=["shortcode"];function yp(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Tp.displayName="bbj";Tp.aliases=[];function Tp(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Sp.displayName="bicep";Sp.aliases=[];function Sp(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}vp.displayName="birb";vp.aliases=[];function vp(e){e.register(bt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}wp.displayName="bison";wp.aliases=[];function wp(e){e.register(pr),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Np.displayName="bnf";Np.aliases=["rbnf"];function Np(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}Ap.displayName="bqn";Ap.aliases=[];function Ap(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}_p.displayName="brainfuck";_p.aliases=[];function _p(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Cp.displayName="brightscript";Cp.aliases=[];function Cp(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}kp.displayName="bro";kp.aliases=[];function kp(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Ip.displayName="bsl";Ip.aliases=["oscript"];function Ip(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Rp.displayName="cfscript";Rp.aliases=["cfc"];function Rp(e){e.register(bt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Dp.displayName="chaiscript";Dp.aliases=[];function Dp(e){e.register(bt),e.register(va),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Op.displayName="cil";Op.aliases=[];function Op(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Lp.displayName="cilkc";Lp.aliases=["cilk-c"];function Lp(e){e.register(pr),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Fp.displayName="cilkcpp";Fp.aliases=["cilk","cilk-cpp"];function Fp(e){e.register(va),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Mp.displayName="clojure";Mp.aliases=[];function Mp(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Pp.displayName="cmake";Pp.aliases=[];function Pp(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}jp.displayName="cobol";jp.aliases=[];function jp(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Bp.displayName="coffeescript";Bp.aliases=["coffee"];function Bp(e){e.register(wn),(function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(e)}Up.displayName="concurnas";Up.aliases=["conc"];function Up(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}$p.displayName="csp";$p.aliases=[];function $p(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}zp.displayName="cooklang";zp.aliases=[];function zp(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,a=/\{[^}#@]*\}/.source,s=r+a,i=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+s+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+s+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+i+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Hp.displayName="coq";Hp.aliases=[];function Hp(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Gp.displayName="crystal";Gp.aliases=[];function Gp(e){e.register(_a),(function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(e)}Wp.displayName="css-extras";Wp.aliases=[];function Wp(e){e.register(na),(function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:s})})(e)}Vp.displayName="csv";Vp.aliases=[];function Vp(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}qp.displayName="cue";qp.aliases=[];function qp(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,a="(?:"+r.replace(/<esc>/g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+a+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Yp.displayName="cypher";Yp.aliases=[];function Yp(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}Zp.displayName="d";Zp.aliases=[];function Zp(e){e.register(bt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}Kp.displayName="dart";Kp.aliases=[];function Kp(e){e.register(bt),(function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[a,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}Xp.displayName="dataweave";Xp.aliases=[];function Xp(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Qp.displayName="dax";Qp.aliases=[];function Qp(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Jp.displayName="dhall";Jp.aliases=[];function Jp(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}ef.displayName="django";ef.aliases=["jinja2"];function ef(e){e.register(Nn),(function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"django",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"jinja2",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"jinja2")})})(e)}tf.displayName="dns-zone-file";tf.aliases=["dns-zone"];function tf(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}nf.displayName="docker";nf.aliases=["dockerfile"];function nf(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,s=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),i={pattern:RegExp(a),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}rf.displayName="dot";rf.aliases=["gv"];function rf(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function a(s,i){return RegExp(s.replace(/<ID>/g,function(){return n}),i)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:a(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:a(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:a(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}af.displayName="ebnf";af.aliases=[];function af(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}sf.displayName="editorconfig";sf.aliases=[];function sf(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}of.displayName="eiffel";of.aliases=[];function of(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}lf.displayName="ejs";lf.aliases=["eta"];function lf(e){e.register(wn),e.register(Nn),(function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs})(e)}uf.displayName="elixir";uf.aliases=[];function uf(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}cf.displayName="elm";cf.aliases=[];function cf(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}df.displayName="etlua";df.aliases=[];function df(e){e.register(Bi),e.register(Nn),(function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})})(e)}pf.displayName="erb";pf.aliases=[];function pf(e){e.register(Nn),e.register(_a),(function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})})(e)}ff.displayName="erlang";ff.aliases=[];function ff(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}mf.displayName="excel-formula";mf.aliases=["xls","xlsx"];function mf(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}hf.displayName="fsharp";hf.aliases=[];function hf(e){e.register(bt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}gf.displayName="factor";gf.aliases=[];function gf(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},s=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},i=function(c){return new RegExp("(^|\\s)(?:"+c.map(s).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(c){a[c].pattern=i(o[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];a.combinators.pattern=i(u),t.languages.factor=a})(e)}bf.displayName="false";bf.aliases=[];function bf(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}Ef.displayName="firestore-security-rules";Ef.aliases=[];function Ef(e){e.register(bt),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}xf.displayName="flow";xf.aliases=[];function xf(e){e.register(wn),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(e)}yf.displayName="fortran";yf.aliases=[];function yf(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Tf.displayName="ftl";Tf.aliases=[];function Tf(e){e.register(Nn),(function(t){for(var n=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},t.hooks.add("before-tokenize",function(s){var i=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(s,"ftl",i)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})})(e)}Sf.displayName="gml";Sf.aliases=["gamemakerlanguage"];function Sf(e){e.register(bt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}vf.displayName="gap";vf.aliases=[];function vf(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}wf.displayName="gcode";wf.aliases=[];function wf(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Nf.displayName="gdscript";Nf.aliases=[];function Nf(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Af.displayName="gedcom";Af.aliases=[];function Af(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}_f.displayName="gettext";_f.aliases=["po"];function _f(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Cf.displayName="gherkin";Cf.aliases=[];function Cf(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}kf.displayName="git";kf.aliases=[];function kf(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}If.displayName="glsl";If.aliases=[];function If(e){e.register(pr),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Rf.displayName="gn";Rf.aliases=["gni"];function Rf(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}Df.displayName="linker-script";Df.aliases=["ld"];function Df(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Of.displayName="go-module";Of.aliases=["go-mod"];function Of(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Lf.displayName="gradle";Lf.aliases=[];function Lf(e){e.register(bt),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle})(e)}Ff.displayName="graphql";Ff.aliases=[];function Ff(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),a=0;function s(x){return r[a+x]}function i(x,y){y=y||0;for(var v=0;v<x.length;v++){var T=s(v+y);if(!T||T.type!==x[v])return!1}return!0}function o(x,y){for(var v=1,T=a;T<r.length;T++){var N=r[T],D=N.content;if(N.type==="punctuation"&&typeof D=="string"){if(x.test(D))v++;else if(y.test(D)&&(v--,v===0))return T}}return-1}function u(x,y){var v=x.alias;v?Array.isArray(v)||(x.alias=v=[v]):x.alias=v=[],v.push(y)}for(;a<r.length;){var c=r[a++];if(c.type==="keyword"&&c.content==="mutation"){var p=[];if(i(["definition-mutation","punctuation"])&&s(1).content==="("){a+=2;var d=o(/^\($/,/^\)$/);if(d===-1)continue;for(;a<d;a++){var f=s(0);f.type==="variable"&&(u(f,"variable-input"),p.push(f.content))}a=d+1}if(i(["punctuation","property-query"])&&s(0).content==="{"&&(a++,u(s(0),"property-mutation"),p.length>0)){var m=o(/^\{$/,/^\}$/);if(m===-1)continue;for(var b=a;b<m;b++){var E=r[b];E.type==="variable"&&p.indexOf(E.content)>=0&&u(E,"variable-input")}}}}})}Mf.displayName="groovy";Mf.aliases=[];function Mf(e){e.register(bt),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy})(e)}Pf.displayName="textile";Pf.aliases=[];function Pf(e){e.register(bn),(function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function a(d,f){return RegExp(d.replace(/<MOD>/g,function(){return"(?:"+n+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),f||"")}var s={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},i=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:s},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:s},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")<MOD>+/.source),lookbehind:!0,inside:s},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:s},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=i.phrase.inside,u={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};i.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=o.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=o.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(e)}jf.displayName="haml";jf.aliases=[];function jf(e){e.register(_a),(function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],a={},s=0,i=r.length;s<i;s++){var o=r[s];o=typeof o=="string"?{filter:o,language:o}:o,t.languages[o.language]&&(a["filter-"+o.filter]={pattern:RegExp(n.replace("{{filter_name}}",function(){return o.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("haml","filter",a)})(e)}Bf.displayName="handlebars";Bf.aliases=["hbs","mustache"];function Bf(e){e.register(Nn),(function(t){t.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars})(e)}Wi.displayName="haskell";Wi.aliases=["hs"];function Wi(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Uf.displayName="haxe";Uf.aliases=[];function Uf(e){e.register(bt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}$f.displayName="hcl";$f.aliases=[];function $f(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}zf.displayName="hlsl";zf.aliases=[];function zf(e){e.register(pr),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}Hf.displayName="hoon";Hf.aliases=[];function Hf(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Gf.displayName="hpkp";Gf.aliases=[];function Gf(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Wf.displayName="hsts";Wf.aliases=[];function Wf(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Vf.displayName="uri";Vf.aliases=["url"];function Vf(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}qf.displayName="http";qf.aliases=[];function qf(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},s={"application/json":!0,"application/xml":!0};function i(p){var d=p.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+p+"|"+f+")"}var o;for(var u in a)if(a[u]){o=o||{};var c=s[u]?i(u):u;o[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[u]}}o&&t.languages.insertBefore("http","header",o)})(e)}Yf.displayName="ichigojam";Yf.aliases=[];function Yf(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}Zf.displayName="icon";Zf.aliases=[];function Zf(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}Kf.displayName="icu-message-format";Kf.aliases=[];function Kf(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(/<SELF>/g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},s={pattern:r,greedy:!0,inside:{escape:a}},i=n(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),o={pattern:RegExp(i),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(i),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:s},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}Xf.displayName="idris";Xf.aliases=["idr"];function Xf(e){e.register(Wi),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Qf.displayName="ignore";Qf.aliases=["gitignore","hgignore","npmignore"];function Qf(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}Jf.displayName="inform7";Jf.aliases=[];function Jf(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}em.displayName="io";em.aliases=[];function em(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}tm.displayName="j";tm.aliases=[];function tm(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}bs.displayName="javadoclike";bs.aliases=[];function bs(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(s,i){var o="doc-comment",u=t.languages[s];if(u){var c=u[o];if(!c){var p={};p[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(s,"comment",p),c=u[o]}if(c instanceof RegExp&&(c=u[o]={pattern:c}),Array.isArray(c))for(var d=0,f=c.length;d<f;d++)c[d]instanceof RegExp&&(c[d]={pattern:c[d]}),i(c[d]);else i(c)}}function a(s,i){typeof s=="string"&&(s=[s]),s.forEach(function(o){r(o,function(u){u.inside||(u.inside={}),u.inside.rest=i})})}Object.defineProperty(n,"addSupport",{value:a}),n.addSupport(["java","javascript","php"],n)})(e)}nm.displayName="scala";nm.aliases=[];function nm(e){e.register(Na),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}rm.displayName="javadoc";rm.aliases=[];function rm(e){e.register(Na),e.register(bs),e.register(bn),(function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,a=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+a+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)})(e)}am.displayName="javastacktrace";am.aliases=[];function am(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}sm.displayName="jexl";sm.aliases=[];function sm(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}im.displayName="jolie";im.aliases=[];function im(e){e.register(bt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}om.displayName="jq";om.aliases=[];function om(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},s=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:r,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};a.interpolation.inside.content.inside=s})(e)}lm.displayName="js-templates";lm.aliases=[];function lm(e){e.register(wn),(function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,a=n.inside.interpolation,s=a.inside["interpolation-punctuation"],i=a.pattern.source;function o(b,E){if(t.languages[b])return{pattern:RegExp("((?:"+E+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function u(b,E){return"___"+E.toUpperCase()+"_"+b+"___"}function c(b,E,x){var y={code:b,grammar:E,language:x};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function p(b){var E={};E["interpolation-punctuation"]=s;var x=t.tokenize(b,E);if(x.length===3){var y=[1,1];y.push.apply(y,c(x[1],t.languages.javascript,"javascript")),x.splice.apply(x,y)}return new t.Token("interpolation",x,a.alias,b)}function d(b,E,x){var y=t.tokenize(b,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),v=0,T={},N=y.map(function(w){if(typeof w=="string")return w;for(var R=w.content,C;b.indexOf(C=u(v++,x))!==-1;);return T[C]=R,C}).join(""),D=c(N,E,x),A=Object.keys(T);v=0;function S(w){for(var R=0;R<w.length;R++){if(v>=A.length)return;var C=w[R];if(typeof C=="string"||typeof C.content=="string"){var U=A[v],k=typeof C=="string"?C:C.content,j=k.indexOf(U);if(j!==-1){++v;var W=k.substring(0,j),$=p(T[U]),ee=k.substring(j+U.length),me=[];if(W&&me.push(W),me.push($),ee){var se=[ee];S(se),me.push.apply(me,se)}typeof C=="string"?(w.splice.apply(w,[R,1].concat(me)),R+=me.length-1):C.content=me}}else{var xe=C.content;Array.isArray(xe)?S(xe):S([xe])}}}return S(D),new t.Token(x,D,"language-"+x,b)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in f))return;function E(x){for(var y=0,v=x.length;y<v;y++){var T=x[y];if(typeof T!="string"){var N=T.content;if(!Array.isArray(N)){typeof N!="string"&&E([N]);continue}if(T.type==="template-string"){var D=N[1];if(N.length===3&&typeof D!="string"&&D.type==="embedded-code"){var A=m(D),S=D.alias,w=Array.isArray(S)?S[0]:S,R=t.languages[w];if(!R)continue;N[1]=d(A,R,w)}}else E(N)}}}E(b.tokens)});function m(b){return typeof b=="string"?b:Array.isArray(b)?b.map(m).join(""):m(b.content)}})(e)}um.displayName="jsdoc";um.aliases=[];function um(e){e.register(bs),e.register(wn),e.register(ms),(function(t){var n=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:n,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(e)}cm.displayName="n4js";cm.aliases=["n4jsd"];function cm(e){e.register(wn),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}dm.displayName="js-extras";dm.aliases=[];function dm(e){e.register(wn),(function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],a=0;a<r.length;a++){var s=r[a],i=t.languages.javascript[s];t.util.type(i)==="RegExp"&&(i=t.languages.javascript[s]={pattern:i});var o=i.inside||{};i.inside=o,o["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}pm.displayName="json5";pm.aliases=[];function pm(e){e.register(ps),(function(t){var n=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(n.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:n,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(e)}fm.displayName="jsonp";fm.aliases=[];function fm(e){e.register(ps),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}mm.displayName="jsstacktrace";mm.aliases=[];function mm(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}hm.displayName="julia";hm.aliases=[];function hm(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}gm.displayName="keepalived";gm.aliases=[];function gm(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}bm.displayName="keyman";bm.aliases=[];function bm(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}Em.displayName="kumir";Em.aliases=["kum"];function Em(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(a,s){return RegExp(a.replace(/<nonId>/g,n),s)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}xm.displayName="kusto";xm.aliases=[];function xm(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}ym.displayName="latex";ym.aliases=["context","tex"];function ym(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}Tm.displayName="latte";Tm.aliases=[];function Tm(e){e.register(bt),e.register(Nn),e.register(Aa),(function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var a=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",a),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})})(e)}Vi.displayName="scheme";Vi.aliases=[];function Vi(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var a in r)r[a]=r[a].replace(/<[\w\s]+>/g,function(s){return"(?:"+r[s].trim()+")"});return r[a]}})(e)}Sm.displayName="lilypond";Sm.aliases=["ly"];function Sm(e){e.register(Vi),(function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,r=5,a=0;a<r;a++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var s=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,t.languages.ly=s})(e)}vm.displayName="liquid";vm.aliases=[];function vm(e){e.register(Nn),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(a){var s=/^\{%-?\s*(\w+)/.exec(a);if(s){var i=s[1];if(i==="raw"&&!r)return r=!0,!0;if(i==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}wm.displayName="lisp";wm.aliases=["elisp","emacs","emacs-lisp"];function wm(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,s="&"+a,i="(\\()",o="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(i+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(i+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(i+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(i+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(i+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(i+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(s),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:p},f="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(i+c+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:d},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=m,p.defun.inside.arguments=t.util.clone(m),p.defun.inside.arguments.inside.sublist=m,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}Nm.displayName="livescript";Nm.aliases=[];function Nm(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}Am.displayName="llvm";Am.aliases=[];function Am(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}_m.displayName="log";_m.aliases=[];function _m(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}Cm.displayName="lolcode";Cm.aliases=[];function Cm(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}km.displayName="magma";km.aliases=[];function km(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}su.displayName="mata";su.aliases=[];function su(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}Im.displayName="matlab";Im.aliases=[];function Im(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}Rm.displayName="maxscript";Rm.aliases=[];function Rm(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}Dm.displayName="mel";Dm.aliases=[];function Dm(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Om.displayName="mermaid";Om.aliases=[];function Om(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}Lm.displayName="metafont";Lm.aliases=[];function Lm(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}Fm.displayName="mizar";Fm.aliases=[];function Fm(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}Mm.displayName="mongodb";Mm.aliases=[];function Mm(e){e.register(wn),(function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(s){return s.replace("$","\\$")});var a="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+a+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})})(e)}Pm.displayName="monkey";Pm.aliases=[];function Pm(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}jm.displayName="moonscript";jm.aliases=["moon"];function jm(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Bm.displayName="n1ql";Bm.aliases=[];function Bm(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}Um.displayName="nand2tetris-hdl";Um.aliases=[];function Um(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}$m.displayName="naniscript";$m.aliases=["nani"];function $m(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(i){var o=i.tokens;o.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=s(u);a(c)||(u.type="bad-line",u.content=c)}})});function a(i){for(var o="[]{}",u=[],c=0;c<i.length;c++){var p=i[c],d=o.indexOf(p);if(d!==-1){if(d%2===0)u.push(d+1);else if(u.pop()!==d)return!1}}return u.length===0}function s(i){return typeof i=="string"?i:Array.isArray(i)?i.map(s).join(""):s(i.content)}})(e)}zm.displayName="nasm";zm.aliases=[];function zm(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}Hm.displayName="neon";Hm.aliases=[];function Hm(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Gm.displayName="nevod";Gm.aliases=[];function Gm(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}Wm.displayName="nginx";Wm.aliases=[];function Wm(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}Vm.displayName="nim";Vm.aliases=[];function Vm(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}qm.displayName="nix";qm.aliases=[];function qm(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}Ym.displayName="nsis";Ym.aliases=[];function Ym(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}Zm.displayName="ocaml";Zm.aliases=[];function Zm(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}Km.displayName="odin";Km.aliases=[];function Km(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}Xm.displayName="opencl";Xm.aliases=[];function Xm(e){e.register(pr),(function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))})(e)}Qm.displayName="openqasm";Qm.aliases=["qasm"];function Qm(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}Jm.displayName="oz";Jm.aliases=[];function Jm(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}eh.displayName="parigp";eh.aliases=[];function eh(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}th.displayName="parser";th.aliases=[];function th(e){e.register(bn),(function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(e)}nh.displayName="pascal";nh.aliases=["objectpascal"];function nh(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}rh.displayName="pascaligo";rh.aliases=[];function rh(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return n}),a=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},s=["comment","keyword","builtin","operator","punctuation"].reduce(function(i,o){return i[o]=a[o],i},{});a["class-name"].forEach(function(i){i.inside=s})})(e)}ah.displayName="psl";ah.aliases=[];function ah(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}sh.displayName="pcaxis";sh.aliases=["px"];function sh(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}ih.displayName="peoplecode";ih.aliases=["pcode"];function ih(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}oh.displayName="phpdoc";oh.aliases=[];function oh(e){e.register(bs),e.register(Aa),(function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)})(e)}lh.displayName="php-extras";lh.aliases=[];function lh(e){e.register(Aa),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}uh.displayName="plant-uml";uh.aliases=["plantuml"];function uh(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,a=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,s="(?:-+"+a+"-+|\\.+"+a+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",i=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+s+o+"|"+i+s+"(?:"+o+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}ch.displayName="plsql";ch.aliases=[];function ch(e){e.register(fs),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}dh.displayName="powerquery";dh.aliases=["mscript","pq"];function dh(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}ph.displayName="powershell";ph.aliases=[];function ph(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}fh.displayName="processing";fh.aliases=[];function fh(e){e.register(bt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}mh.displayName="prolog";mh.aliases=[];function mh(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}hh.displayName="promql";hh.aliases=[];function hh(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],a=["offset"],s=n.concat(r,a);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+s.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}gh.displayName="properties";gh.aliases=[];function gh(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}bh.displayName="protobuf";bh.aliases=[];function bh(e){e.register(bt),(function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(e)}Eh.displayName="stylus";Eh.aliases=[];function Eh(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}xh.displayName="twig";xh.aliases=[];function xh(e){e.register(Nn),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}yh.displayName="pug";yh.aliases=[];function yh(e){e.register(wn),e.register(bn),(function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},s=0,i=r.length;s<i;s++){var o=r[s];o=typeof o=="string"?{filter:o,language:o}:o,t.languages[o.language]&&(a["filter-"+o.filter]={pattern:RegExp(n.replace("<filter_name>",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",a)})(e)}Th.displayName="puppet";Th.aliases=[];function Th(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}Sh.displayName="pure";Sh.aliases=[];function Sh(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(a){var s=a;if(typeof a!="string"&&(s=a.alias,a=a.lang),t.languages[s]){var i={};i["inline-lang-"+s]={pattern:RegExp(r.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},i["inline-lang-"+s].inside.rest=t.util.clone(t.languages[s]),t.languages.insertBefore("pure","inline-lang",i)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}vh.displayName="purebasic";vh.aliases=["pbfasm"];function vh(e){e.register(bt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}wh.displayName="purescript";wh.aliases=["purs"];function wh(e){e.register(Wi),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}Nh.displayName="qsharp";Nh.aliases=["qs"];function Nh(e){e.register(bt),(function(t){function n(m,b){return m.replace(/<<(\d+)>>/g,function(E,x){return"(?:"+b[+x]+")"})}function r(m,b,E){return RegExp(n(m,b),"")}function a(m,b){for(var E=0;E<b;E++)m=m.replace(/<<self>>/g,function(){return"(?:"+m+")"});return m.replace(/<<self>>/g,"[^\\s\\S]")}var s={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function i(m){return"\\b(?:"+m.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(i(s.type+" "+s.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:o,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var f=a(n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[d]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}Ah.displayName="q";Ah.aliases=[];function Ah(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}_h.displayName="qml";_h.aliases=[];function _h(e){e.register(wn),(function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return n}).replace(/<comment>/g,function(){return r}),s=0;s<2;s++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}Ch.displayName="qore";Ch.aliases=[];function Ch(e){e.register(bt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}kh.displayName="racket";kh.aliases=["rkt"];function kh(e){e.register(Vi),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}Ih.displayName="cshtml";Ih.aliases=["razor"];function Ih(e){e.register(wa),e.register(bn),(function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(v,T){for(var N=0;N<T;N++)v=v.replace(/<self>/g,function(){return"(?:"+v+")"});return v.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+n+")")}var s=a(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),i=a(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),o=a(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),u=a(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+s+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+s+"|"+i+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,d),m=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|"+a(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+m+")";t.languages.cshtml=t.languages.extend("markup",{});var E=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(b),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),x={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:E},y={pattern:RegExp(/(^|[^@])/.source+c),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:x}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+m),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+d),t.languages.insertBefore("inside","punctuation",{value:y},t.languages.cshtml.tag.inside["attr-value"]),t.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[o,/(?:code|functions)\s*/.source+o,/(?:for|foreach|lock|switch|using|while)\s*/.source+s+/\s*/.source+o,/do\s*/.source+o+/\s*while\s*/.source+s+/(?:\s*;)?/.source,/try\s*/.source+o+/\s*catch\s*/.source+s+/\s*/.source+o+/\s*finally\s*/.source+o,/if\s*/.source+s+/\s*/.source+o+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+s+")?"+/\s*/.source+o+")*",/helper\s+\w+\s*/.source+s+/\s*/.source+o].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:x}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:x}},value:y,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}iu.displayName="jsx";iu.aliases=[];function iu(e){e.register(wn),e.register(bn),(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(c,p){return c=c.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(c,p)}s=i(s).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(o).join(""):""},u=function(c){for(var p=[],d=0;d<c.length;d++){var f=c[d],m=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?p.length>0&&p[p.length-1].tagName===o(f.content[0].content[1])&&p.pop():f.content[f.content.length-1].content==="/>"||p.push({tagName:o(f.content[0].content[1]),openedBraces:0}):p.length>0&&f.type==="punctuation"&&f.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?p[p.length-1].openedBraces--:m=!0),(m||typeof f=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=o(f);d<c.length-1&&(typeof c[d+1]=="string"||c[d+1].type==="plain-text")&&(b+=o(c[d+1]),c.splice(d+1,1)),d>0&&(typeof c[d-1]=="string"||c[d-1].type==="plain-text")&&(b=o(c[d-1])+b,c.splice(d-1,1),d--),c[d]=new t.Token("plain-text",b,null,b)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})})(e)}Rh.displayName="tsx";Rh.aliases=[];function Rh(e){e.register(iu),e.register(ms),(function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(e)}Dh.displayName="reason";Dh.aliases=[];function Dh(e){e.register(bt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}Oh.displayName="rego";Oh.aliases=[];function Oh(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}Lh.displayName="renpy";Lh.aliases=["rpy"];function Lh(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}Fh.displayName="rescript";Fh.aliases=["res"];function Fh(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}Mh.displayName="rest";Mh.aliases=[];function Mh(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}Ph.displayName="rip";Ph.aliases=[];function Ph(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}jh.displayName="roboconf";jh.aliases=[];function jh(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}Bh.displayName="robotframework";Bh.aliases=["robot"];function Bh(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in c)p[d]=c[d];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return u}),"im"),alias:"section",inside:p}}var s={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},i={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":i,documentation:s,property:o}),keywords:a("Keywords",{"keyword-name":i,documentation:s,property:o}),tasks:a("Tasks",{"task-name":i,documentation:s,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}Uh.displayName="sas";Uh.aliases=[];function Uh(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(n+"[bx]"),alias:"number"},s={pattern:/&[a-z_]\w*/i},i={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},f={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":s,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":a,punctuation:p,string:c},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},E={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},x={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:d,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:r,"numeric-constant":a,punctuation:p,string:c}},T={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":E,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:T,"submit-statement":x,"global-statements":E,number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:T,"submit-statement":x,"global-statements":E,number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:f}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:o,keyword:T,function:d,format:m,altformat:b,"global-statements":E,number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,inside:f},"macro-keyword":i,"macro-variable":s,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":i,"macro-variable":s,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:f},"cas-actions":v,comment:u,function:d,format:m,altformat:b,"numeric-constant":a,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:o,keyword:T,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}$h.displayName="shell-session";$h.aliases=["sh-session","shellsession"];function $h(e){e.register(ji),(function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]})(e)}zh.displayName="smali";zh.aliases=[];function zh(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Hh.displayName="smalltalk";Hh.aliases=[];function Hh(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Gh.displayName="smarty";Gh.aliases=[];function Gh(e){e.register(Nn),(function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(a){var s="{literal}",i="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(a,"smarty",r,function(u){return u===i&&(o=!1),o?!1:(u===s&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"smarty")})})(e)}Wh.displayName="sml";Wh.aliases=["smlnj"];function Wh(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}Vh.displayName="solidity";Vh.aliases=["sol"];function Vh(e){e.register(bt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}qh.displayName="solution-file";qh.aliases=["sln"];function qh(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}Yh.displayName="soy";Yh.aliases=[];function Yh(e){e.register(Nn),(function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(a){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,i="{literal}",o="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(a,"soy",s,function(c){return c===o&&(u=!1),u?!1:(c===i&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})})(e)}ou.displayName="turtle";ou.aliases=["trig"];function ou(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}Zh.displayName="sparql";Zh.aliases=["rq"];function Zh(e){e.register(ou),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}Kh.displayName="splunk-spl";Kh.aliases=[];function Kh(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}Xh.displayName="sqf";Xh.aliases=[];function Xh(e){e.register(bt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Qh.displayName="squirrel";Qh.aliases=[];function Qh(e){e.register(bt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}Jh.displayName="stan";Jh.aliases=[];function Jh(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}eg.displayName="stata";eg.aliases=[];function eg(e){e.register(Na),e.register(su),e.register($i),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}tg.displayName="iecst";tg.aliases=[];function tg(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}ng.displayName="supercollider";ng.aliases=["sclang"];function ng(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}rg.displayName="systemd";rg.aliases=[];function rg(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r
|
|
8
|
+
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}qi.displayName="t4-templating";qi.aliases=[];function qi(e){(function(t){function n(a,s,i){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:i}}}}function r(a){var s=t.languages[a],i="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",s,i),"class-feature":n("\\+",s,i),standard:n("",s,i)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}ag.displayName="t4-cs";ag.aliases=["t4"];function ag(e){e.register(wa),e.register(qi),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}sg.displayName="t4-vb";sg.aliases=[];function sg(e){e.register(qi),e.register(Hi),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}ig.displayName="tap";ig.aliases=[];function ig(e){e.register(Ui),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}og.displayName="tcl";og.aliases=[];function og(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}lg.displayName="tt2";lg.aliases=[];function lg(e){e.register(bt),e.register(Nn),(function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})})(e)}ug.displayName="toml";ug.aliases=[];function ug(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(a){return a.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}cg.displayName="tremor";cg.aliases=["trickle","troy"];function cg(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}dg.displayName="typoscript";dg.aliases=["tsconfig"];function dg(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}pg.displayName="unrealscript";pg.aliases=["uc","uscript"];function pg(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}fg.displayName="uorazor";fg.aliases=[];function fg(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}mg.displayName="v";mg.aliases=[];function mg(e){e.register(bt),(function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})})(e)}hg.displayName="vala";hg.aliases=[];function hg(e){e.register(bt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}gg.displayName="velocity";gg.aliases=[];function gg(e){e.register(bn),(function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity})(e)}bg.displayName="verilog";bg.aliases=[];function bg(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}Eg.displayName="vhdl";Eg.aliases=[];function Eg(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}xg.displayName="vim";xg.aliases=[];function xg(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}yg.displayName="visual-basic";yg.aliases=["vb","vba"];function yg(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}Tg.displayName="warpscript";Tg.aliases=[];function Tg(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}Sg.displayName="wasm";Sg.aliases=[];function Sg(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}vg.displayName="web-idl";vg.aliases=["webidl"];function vg(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:a}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var s in t.languages["web-idl"])s!=="class-name"&&(a[s]=t.languages["web-idl"][s]);t.languages.webidl=t.languages["web-idl"]})(e)}wg.displayName="wgsl";wg.aliases=[];function wg(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}Ng.displayName="wiki";Ng.aliases=[];function Ng(e){e.register(bn),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}Ag.displayName="wolfram";Ag.aliases=["mathematica","nb","wl"];function Ag(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}_g.displayName="wren";_g.aliases=[];function _g(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}Cg.displayName="xeora";Cg.aliases=["xeoracube"];function Cg(e){e.register(bn),(function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora})(e)}kg.displayName="xml-doc";kg.aliases=[];function kg(e){e.register(bn),(function(t){function n(i,o){t.languages[i]&&t.languages.insertBefore(i,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},s={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",a),n("fsharp",a),n("vbnet",s)})(e)}Ig.displayName="xojo";Ig.aliases=[];function Ig(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}Rg.displayName="xquery";Rg.aliases=[];function Rg(e){e.register(bn),(function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(n).join("")},r=function(a){for(var s=[],i=0;i<a.length;i++){var o=a[i],u=!1;if(typeof o!="string"&&(o.type==="tag"&&o.content[0]&&o.content[0].type==="tag"?o.content[0].content[0].content==="</"?s.length>0&&s[s.length-1].tagName===n(o.content[0].content[1])&&s.pop():o.content[o.content.length-1].content==="/>"||s.push({tagName:n(o.content[0].content[1]),openedBraces:0}):s.length>0&&o.type==="punctuation"&&o.content==="{"&&(!a[i+1]||a[i+1].type!=="punctuation"||a[i+1].content!=="{")&&(!a[i-1]||a[i-1].type!=="plain-text"||a[i-1].content!=="{")?s[s.length-1].openedBraces++:s.length>0&&s[s.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?s[s.length-1].openedBraces--:o.type!=="comment"&&(u=!0)),(u||typeof o=="string")&&s.length>0&&s[s.length-1].openedBraces===0){var c=n(o);i<a.length-1&&(typeof a[i+1]=="string"||a[i+1].type==="plain-text")&&(c+=n(a[i+1]),a.splice(i+1,1)),i>0&&(typeof a[i-1]=="string"||a[i-1].type==="plain-text")&&(c=n(a[i-1])+c,a.splice(i-1,1),i--),/^\s+$/.test(c)?a[i]=c:a[i]=new t.Token("plain-text",c,null,c)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&r(a.tokens)})})(e)}Dg.displayName="yang";Dg.aliases=[];function Dg(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}Og.displayName="zig";Og.aliases=[];function Og(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+r.source+")(?!\\d)\\w+\\b",s=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,i=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,n(s)),o=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,n(a)),u="(?!\\s)(?:!?\\s*(?:"+i+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,n(u)).replace(/<ALIGN>/g,n(s))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,n(u)).replace(/<ALIGN>/g,n(s))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}_.register(bn);_.register(na);_.register(bt);_.register(Wl);_.register(wn);_.register(Zd);_.register(Kd);_.register(Xd);_.register(Qd);_.register(Jd);_.register(ep);_.register(tp);_.register(np);_.register(fs);_.register(rp);_.register(ap);_.register(sp);_.register(ip);_.register(pr);_.register(va);_.register($l);_.register(op);_.register(lp);_.register(ji);_.register(Ui);_.register(Zl);_.register(up);_.register(cp);_.register(wa);_.register(dp);_.register(pp);_.register(fp);_.register(mp);_.register(hp);_.register(gp);_.register(bp);_.register(Ep);_.register(zi);_.register(xp);_.register(yp);_.register(Tp);_.register(Sp);_.register(vp);_.register(wp);_.register(Np);_.register(Ap);_.register(_p);_.register(Cp);_.register(kp);_.register(Ip);_.register(Rp);_.register(Dp);_.register(Op);_.register(Lp);_.register(Fp);_.register(Mp);_.register(Pp);_.register(jp);_.register(Bp);_.register(Up);_.register($p);_.register(zp);_.register(Hp);_.register(_a);_.register(Gp);_.register(Wp);_.register(Vp);_.register(qp);_.register(Yp);_.register(Zp);_.register(Kp);_.register(Xp);_.register(Qp);_.register(Jp);_.register(zl);_.register(Nn);_.register(ef);_.register(tf);_.register(nf);_.register(rf);_.register(af);_.register(sf);_.register(of);_.register(lf);_.register(uf);_.register(cf);_.register(Bi);_.register(df);_.register(pf);_.register(ff);_.register(mf);_.register(hf);_.register(gf);_.register(bf);_.register(Ef);_.register(xf);_.register(yf);_.register(Tf);_.register(Sf);_.register(vf);_.register(wf);_.register(Nf);_.register(Af);_.register(_f);_.register(Cf);_.register(kf);_.register(If);_.register(Rf);_.register(Df);_.register(Hl);_.register(Of);_.register(Lf);_.register(Ff);_.register(Mf);_.register(ql);_.register(tu);_.register(Pf);_.register(jf);_.register(Bf);_.register(Wi);_.register(Uf);_.register($f);_.register(zf);_.register(Hf);_.register(Gf);_.register(Wf);_.register(ps);_.register(Vf);_.register(qf);_.register(Yf);_.register(Zf);_.register(Kf);_.register(Xf);_.register(Qf);_.register(Jf);_.register(Gl);_.register(em);_.register(tm);_.register(Na);_.register(Aa);_.register(bs);_.register(nm);_.register(rm);_.register(am);_.register(sm);_.register(im);_.register(om);_.register(lm);_.register(ms);_.register(um);_.register(cm);_.register(dm);_.register(pm);_.register(fm);_.register(mm);_.register(hm);_.register(gm);_.register(bm);_.register(Vl);_.register(Em);_.register(xm);_.register(ym);_.register(Tm);_.register(Vi);_.register(Sm);_.register(vm);_.register(wm);_.register(Nm);_.register(Am);_.register(_m);_.register(Cm);_.register(km);_.register(Yl);_.register(su);_.register(Im);_.register(Rm);_.register(Dm);_.register(Om);_.register(Lm);_.register(Fm);_.register(Mm);_.register(Pm);_.register(jm);_.register(Bm);_.register(Um);_.register($m);_.register(zm);_.register(Hm);_.register(Gm);_.register(Wm);_.register(Vm);_.register(qm);_.register(Ym);_.register(Kl);_.register(Zm);_.register(Km);_.register(Xm);_.register(Qm);_.register(Jm);_.register(eh);_.register(th);_.register(nh);_.register(rh);_.register(ah);_.register(sh);_.register(ih);_.register(Xl);_.register(oh);_.register(lh);_.register(uh);_.register(ch);_.register(dh);_.register(ph);_.register(fh);_.register(mh);_.register(hh);_.register(gh);_.register(bh);_.register(Eh);_.register(xh);_.register(yh);_.register(Th);_.register(Sh);_.register(vh);_.register(wh);_.register($i);_.register(Nh);_.register(Ah);_.register(_h);_.register(Ch);_.register(Ql);_.register(kh);_.register(Ih);_.register(iu);_.register(Rh);_.register(Dh);_.register(Oh);_.register(Lh);_.register(Fh);_.register(Mh);_.register(Ph);_.register(jh);_.register(Bh);_.register(Jl);_.register(Uh);_.register(eu);_.register($h);_.register(zh);_.register(Hh);_.register(Gh);_.register(Wh);_.register(Vh);_.register(qh);_.register(Yh);_.register(ou);_.register(Zh);_.register(Kh);_.register(Xh);_.register(Qh);_.register(Jh);_.register(eg);_.register(tg);_.register(ng);_.register(nu);_.register(rg);_.register(qi);_.register(ag);_.register(Hi);_.register(sg);_.register(ig);_.register(og);_.register(lg);_.register(ug);_.register(cg);_.register(dg);_.register(pg);_.register(fg);_.register(mg);_.register(hg);_.register(gg);_.register(bg);_.register(Eg);_.register(xg);_.register(yg);_.register(Tg);_.register(Sg);_.register(vg);_.register(wg);_.register(Ng);_.register(Ag);_.register(_g);_.register(Cg);_.register(kg);_.register(Ig);_.register(Rg);_.register(Dg);_.register(Og);function Qc(){Qc=function(a,s){return new n(a,void 0,s)};var e=RegExp.prototype,t=new WeakMap;function n(a,s,i){var o=new RegExp(a,s);return t.set(o,i||t.get(a)),el(o,n.prototype)}function r(a,s){var i=t.get(s);return Object.keys(i).reduce(function(o,u){var c=i[u];if(typeof c=="number")o[u]=a[c];else{for(var p=0;a[c[p]]===void 0&&p+1<c.length;)p++;o[u]=a[c[p]]}return o},Object.create(null))}return(function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),s&&el(a,s)})(n,RegExp),n.prototype.exec=function(a){var s=e.exec.call(this,a);if(s){s.groups=r(s,this);var i=s.indices;i&&(i.groups=r(i,this))}return s},n.prototype[Symbol.replace]=function(a,s){if(typeof s=="string"){var i=t.get(this);return e[Symbol.replace].call(this,a,s.replace(/\$<([^>]+)>/g,function(u,c){var p=i[c];return"$"+(Array.isArray(p)?p.join("$"):p)}))}if(typeof s=="function"){var o=this;return e[Symbol.replace].call(this,a,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,o)),s.apply(this,u)})}return e[Symbol.replace].call(this,a,s)},Qc.apply(this,arguments)}function el(e,t){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},el(e,t)}function A0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hu(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=(function(a,s){if(a){if(typeof a=="string")return A0(a,s);var i=Object.prototype.toString.call(a).slice(8,-1);return i==="Object"&&a.constructor&&(i=a.constructor.name),i==="Map"||i==="Set"?Array.from(a):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?A0(a,s):void 0}})(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var IC=function(e){return function(t){return t===void 0&&(t={}),(function(r,a){if(a&&!r.registered(a))throw new Error('The default language "'+a+'" is not registered with refractor.')})(e,t.defaultLanguage),function(r){$n(r,"element",n)};function n(r,a,s){var i,o;if(s&&s.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(i=r.data)==null?void 0:i.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var c,p,d=(function(D){for(var A,S=Hu(D.properties.className);!(A=S()).done;){var w=A.value;if(w.slice(0,9)==="language-")return w.slice(9).toLowerCase()}return null})(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var f,m;m=(f=d)!=null&&f.includes("diff-")?d.split("-")[1]:d,c=e.highlight(Wa(r),m),s.properties.className=(s.properties.className||[]).concat("language-"+m)}catch(D){if(!t.ignoreMissing||!/Unknown language/.test(D.message))throw D;c=r}else c=r;c.children=(p=1,function D(A){return A.reduce(function(S,w){if(w.type==="text"){var R=w.value,C=(R.match(/\n/g)||"").length;if(C===0)w.position={start:{line:p,column:1},end:{line:p,column:1}},S.push(w);else for(var U,k=R.split(`
|
|
10
|
+
`),j=Hu(k.entries());!(U=j()).done;){var W=U.value,$=W[0],ee=W[1];S.push({type:"text",value:$===k.length-1?ee:ee+`
|
|
11
|
+
`,position:{start:{line:p+$,column:1},end:{line:p+$,column:1}}})}return p+=C,S}if(Object.prototype.hasOwnProperty.call(w,"children")){var me=p;return w.children=D(w.children),S.push(w),w.position={start:{line:me,column:1},end:{line:p,column:1}},S}return S.push(w),S},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var b,E=(function(D){var A=/{([\d,-]+)}/,S=D.split(",").map(function(C){return C.trim()}).join();if(A.test(S)){var w=A.exec(S)[1],R=X_(w);return function(C){return R.includes(C+1)}}return function(){return!1}})(u),x=(function(D){var A=Qc(/showLineNumbers=(\d+)/i,{lines:1});if(A.test(D)){var S=A.exec(D);return Number(S.groups.lines)}return 1})(u),y=(function(D){for(var A=new Array(D),S=0;S<D;S++)A[S]={type:"element",tagName:"span",properties:{className:[]},children:[]};return A})(c.position.end.line),v=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],T=function(){var D,A,S=b.value,w=S[0],R=S[1];R.properties.className=["code-line"];var C=q_(c,function(U){return U.position.start.line<=w+1&&U.position.end.line>=w+1});R.children=C.children,(u.toLowerCase().includes("showLineNumbers".toLowerCase())||t.showLineNumbers===!0||typeof t.showLineNumbers=="object"&&t.showLineNumbers.includes(d))&&!v.some(function(U){return u.toLowerCase().includes(U)})&&(R.properties.line=[(w+x).toString()],R.properties.className.push("line-number")),E(w)&&R.properties.className.push("highlight-line"),(d==="diff"||(D=d)!=null&&D.includes("diff-"))&&Wa(R).substring(0,1)==="-"?R.properties.className.push("deleted"):(d==="diff"||(A=d)!=null&&A.includes("diff-"))&&Wa(R).substring(0,1)==="+"&&R.properties.className.push("inserted")},N=Hu(y.entries());!(b=N()).done;)T();y.length>0&&Wa(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},F1=IC(_),Ho={},Jc={};function RC(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,s=e.charAt(r),i=n[s]||(n[s]={chars:{}});a&&(i.self=e),n=i.chars}}function _0(e){if(e.length===0)return Ho;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];RC(a,t)}return t}function DC(e){if(e.length===0)return Jc;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var mo={},C0={type:"String",optional:!0};function OC(e){var t={type:"NoArgument",optional:!1};function n(i){if(t.type&&t.type!==i&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(i,'".'));t.type=i}for(var r=0,a=e;r<a.length;r++){var s=a[r];s==="NoArgument"&&(t.optional=!0),s==="Formula"&&n("Formula"),s==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),s==="String"&&n("String"),s==="Selector"&&n("Selector")}return t}function LC(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],s=e[a];if(s)for(var i=0,o=s;i<o.length;i++){var u=o[i];(t[u]||(t[u]=[])).push(a)}}return t}function k0(e){for(var t=LC(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var s=a[r],i=t[s];i&&(n[s]=OC(i))}return n}var ns=function(){return ns=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ns.apply(this,arguments)},FC={},ed={wildcard:!0};function MC(e){return e?typeof e=="boolean"?ed:e:FC}function PC(e,t){return function(n,r){return t(e(n),e(r))}}function jC(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function I0(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Fa(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=ns({},t),a=0,s=Object.entries(n);a<s.length;a++){var i=s[a],o=i[0],u=i[1];if(o!=="latest"){var c=e[o];r[o]=c(t[o],u)}}return r}}function gr(e,t){return t!==void 0?t:e}function ho(e,t){return t?e?e.concat(t):t:e}function R0(e,t){if(!t)return e;if(!e)return t;for(var n=ns({},e),r=0,a=Object.entries(t);r<a.length;r++){var s=a[r],i=s[0],o=s[1];if(!o){delete n[i];continue}var u=e[i];if(!u){n[i]=o;continue}n[i]=u.concat(o)}return n}var ma=jC(Fa({baseSyntax:gr,modules:ho,tag:I0(ed,Fa({wildcard:gr})),ids:gr,classNames:gr,nestingSelector:gr,namespace:I0(ed,Fa({wildcard:gr})),combinators:ho,attributes:Fa({operators:ho,caseSensitivityModifiers:ho,unknownCaseSensitivityModifiers:gr}),pseudoClasses:Fa({unknown:gr,definitions:R0}),pseudoElements:Fa({unknown:gr,notation:gr,definitions:PC(function(e){return Array.isArray(e)?{NoArgument:e}:e},R0)})})),M1={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},P1=ma(M1,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),td=ma(P1,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),j1=ma(td,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),tl={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}},"css-nesting-1":{latest:!0,nestingSelector:!0}},B1=ns(ns({},j1),{modules:Object.entries(tl).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),BC=ma(B1,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),nd={css1:M1,css2:P1,css3:td,"selectors-3":td,"selectors-4":j1,latest:B1,progressive:BC};function UC(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],s=nd[a];if(s.pseudoClasses&&typeof s.pseudoClasses=="object"){var i=s.pseudoClasses.definitions;if(i)for(var o=0,u=Object.entries(i);o<u.length;o++)for(var c=u[o],p=c[1],d=0,f=p;d<f.length;d++){var m=f[d];e.pseudoClasses[m]||(e.pseudoClasses[m]=[]),e.pseudoClasses[m].includes(a)||e.pseudoClasses[m].push(a)}}if(s.pseudoElements&&typeof s.pseudoElements=="object"){var i=s.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var b=0,E=i;b<E.length;b++){var x=E[b];e.pseudoElements[x]||(e.pseudoElements[x]=[]),e.pseudoElements[x].includes(a)||e.pseudoElements[x].push(a)}else for(var y=0,v=Object.values(i);y<v.length;y++)for(var p=v[y],T=0,N=p;T<N.length;T++){var D=N[T];e.pseudoElements[D]||(e.pseudoElements[D]=[]),e.pseudoElements[D].includes(a)||e.pseudoElements[D].push(a)}}}for(var A=0,S=Object.entries(tl);A<S.length;A++){var w=S[A],R=w[0],C=w[1];if(C.pseudoClasses&&typeof C.pseudoClasses=="object"){var i=C.pseudoClasses.definitions;if(i)for(var U=0,k=Object.values(i);U<k.length;U++)for(var p=k[U],j=0,W=p;j<W.length;j++){var $=W[j];e.pseudoClasses[$]||(e.pseudoClasses[$]=[]),e.pseudoClasses[$].includes(R)||e.pseudoClasses[$].push(R)}}if(C.pseudoElements&&typeof C.pseudoElements=="object"){var i=C.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var ee=0,me=i;ee<me.length;ee++){var se=me[ee];e.pseudoElements[se]||(e.pseudoElements[se]=[]),e.pseudoElements[se].includes(R)||e.pseudoElements[se].push(R)}else for(var xe=0,O=Object.values(i);xe<O.length;xe++)for(var p=O[xe],te=0,le=p;te<le.length;te++){var L=le[te];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(R)||e.pseudoElements[L].push(R)}}}return e}var D0=UC();function Ls(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function O0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Fs(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var $C={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},zC={'"':!0,"'":!0},Gu={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},HC=6,Wu="css-selector-parser parse error: ";function GC(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,s=a===void 0?!0:a,i=e.modules,o=typeof n=="object"?n:nd[n];if(o.baseSyntax&&(o=ma(nd[o.baseSyntax],o)),o.modules&&o.modules.length>0)for(var u=0,c=o.modules;u<c.length;u++){var p=c[u],d=tl[p];d&&(o=ma(d,o))}if(i&&i.length>0)for(var f=0,m=i;f<m.length;f++){var b=m[f],d=tl[b];d&&(o=ma(d,o))}var E=o.tag?[!0,!!MC(o.tag).wildcard]:[!1,!1],x=E[0],y=E[1],v=!!o.ids,T=!!o.classNames,N=!!o.nestingSelector,D=!!o.namespace,A=o.namespace&&(o.namespace===!0||o.namespace.wildcard===!0);if(D&&!x)throw new Error("".concat(Wu,"Namespaces cannot be enabled while tags are disabled."));var S=!!r,w=o.combinators?_0(o.combinators):Ho,R=o.attributes?[!0,o.attributes.operators?_0(o.attributes.operators):Ho,o.attributes.caseSensitivityModifiers?DC(o.attributes.caseSensitivityModifiers):Jc,o.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,Ho,Jc,!1],C=R[0],U=R[1],k=R[2],j=R[3],W=j||Object.keys(k).length>0,$=o.pseudoClasses?[!0,o.pseudoClasses.definitions?k0(o.pseudoClasses.definitions):mo,o.pseudoClasses.unknown==="accept"]:[!1,mo,!1],ee=$[0],me=$[1],se=$[2],xe=o.pseudoElements?[!0,o.pseudoElements.notation==="singleColon"||o.pseudoElements.notation==="both",!o.pseudoElements.notation||o.pseudoElements.notation==="doubleColon"||o.pseudoElements.notation==="both",o.pseudoElements.definitions?k0(Array.isArray(o.pseudoElements.definitions)?{NoArgument:o.pseudoElements.definitions}:o.pseudoElements.definitions):mo,o.pseudoElements.unknown==="accept"]:[!1,!1,!1,mo,!1],O=xe[0],te=xe[1],le=xe[2],L=xe[3],ke=xe[4],Re="",Q=Re.length,_e=0,ue="",X=function(re){return ue===re},We=function(){return X("*")||Ls(ue)},fe=function(re){_e=re,ue=Re.charAt(_e)},de=function(){_e++,ue=Re.charAt(_e)},Te=function(){var re=ue;return _e++,ue=Re.charAt(_e),re};function Se(re){var Ae=Math.min(Q-1,_e),$e=new Error("".concat(Wu).concat(re," Pos: ").concat(Ae,"."));throw $e.position=Ae,$e.name="ParserError",$e}function H(re,Ae){if(!re)return Se(Ae)}var Fe=function(){H(_e<Q,"Unexpected end of input.")},Ke=function(){return _e>=Q},Xe=function(re){H(_e<Q,'Expected "'.concat(re,'" but end of input reached.')),H(ue===re,'Expected "'.concat(re,'" but "').concat(ue,'" found.')),_e++,ue=Re.charAt(_e)};function Pt(re){var Ae=dt(re,_e);if(Ae)return _e+=Ae.length,ue=Re.charAt(_e),Ae}function dt(re,Ae){var $e=Re.charAt(Ae),je=re[$e];if(je){var St=dt(je.chars,Ae+1);if(St)return St;if(je.self)return je.self}}function lt(){for(var re=Te(),Ae=1;Fs(ue)&&Ae<HC;)re+=Te(),Ae++;return rt(),String.fromCharCode(parseInt(re,16))}function Kt(re){var Ae="";for(Xe(re);_e<Q;){if(X(re))return de(),Ae;X("\\")?(de(),X(re)?(Ae+=re,de()):ue===`
|
|
12
|
+
`||ue==="\f"?de():ue==="\r"?(de(),X(`
|
|
13
|
+
`)&&de()):Fs(ue)?Ae+=lt():(Ae+=ue,de())):(Ae+=ue,de())}return Ae}function it(){if(!Ls(ue))return null;for(var re="";X("-");)re+=ue,de();for(re==="-"&&!O0(ue)&&!X("\\")&&Se("Identifiers cannot consist of a single hyphen."),s&&re.length>=2&&Se("Identifiers cannot start with two hyphens with strict mode on."),Gu[ue]&&Se("Identifiers cannot start with hyphens followed by digits.");_e<Q;)if(O0(ue))re+=Te();else if(X("\\"))de(),Fe(),Fs(ue)?re+=lt():re+=Te();else break;return re}function Le(){for(var re="";_e<Q&&!X(")");)if(X("\\")){if(de(),Ke()&&!s)return(re+"\\").trim();Fe(),Fs(ue)?re+=lt():re+=Te()}else re+=Te();return re.trim()}function rt(){if(ue===" "||ue===" "||ue==="\f"||ue===`
|
|
14
|
+
`){de();return}ue==="\r"&&de(),ue===`
|
|
15
|
+
`&&de()}function Z(){for(;$C[ue];)de()}function ie(re){re===void 0&&(re=!1),Z();for(var Ae=[Lt(re)];X(",");)de(),Z(),Ae.push(Lt(re));return{type:"Selector",rules:Ae}}function Ce(){Xe("["),Z();var re;if(X("|")){H(D,"Namespaces are not enabled."),de();var Ae=it();H(Ae,"Expected attribute name."),re={type:"Attribute",name:Ae,namespace:{type:"NoNamespace"}}}else if(X("*")){H(D,"Namespaces are not enabled."),H(A,"Wildcard namespace is not enabled."),de(),Xe("|");var $e=it();H($e,"Expected attribute name."),re={type:"Attribute",name:$e,namespace:{type:"WildcardNamespace"}}}else{var je=it();if(H(je,"Expected attribute name."),re={type:"Attribute",name:je},X("|")){var St=_e;if(de(),Ls(ue)){H(D,"Namespaces are not enabled.");var Xt=it();H(Xt,"Expected attribute name."),re={type:"Attribute",name:Xt,namespace:{type:"NamespaceName",name:je}}}else fe(St)}}if(H(re.name,"Expected attribute name."),Z(),Ke()&&!s)return re;if(X("]"))de();else{if(re.operator=Pt(U),H(re.operator,"Expected a valid attribute selector operator."),Z(),Fe(),zC[ue])re.value={type:"String",value:Kt(ue)};else if(S&&X("$")){de();var Me=it();H(Me,"Expected substitute name."),re.value={type:"Substitution",name:Me}}else{var pt=it();H(pt,"Expected attribute value."),re.value={type:"String",value:pt}}if(Z(),Ke()&&!s)return re;if(!X("]")){var Qe=it();if(H(Qe,"Expected end of attribute selector."),re.caseSensitivityModifier=Qe,H(W,"Attribute case sensitivity modifiers are not enabled."),H(j||k[re.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Z(),Ke()&&!s)return re}Xe("]")}return re}function Oe(){for(var re="";Gu[ue];)re+=Te();return H(re!=="","Formula parse error."),parseInt(re)}var Ve=function(){return X("-")||X("+")||Gu[ue]};function st(){if(X("e")||X("o")){var re=it();if(re==="even")return Z(),[2,0];if(re==="odd")return Z(),[2,1]}var Ae=null,$e=1;if(X("-")&&(de(),$e=-1),Ve()&&(X("+")&&de(),Ae=Oe(),!X("\\")&&!X("n")))return[0,Ae*$e];Ae===null&&(Ae=1),Ae*=$e;var je;if(X("\\")?(de(),Fs(ue)?je=lt():je=Te()):je=Te(),H(je==="n",'Formula parse error: expected "n".'),Z(),X("+")||X("-")){var St=X("+")?1:-1;return de(),Z(),[Ae,St*Oe()]}else return[Ae,0]}function Rt(re,Ae,$e){var je;if(X("(")){if(de(),Z(),S&&X("$")){de();var St=it();H(St,"Expected substitute name."),je={type:"Substitution",name:St}}else if($e.type==="String")je={type:"String",value:Le()},H(je.value,"Expected ".concat(Ae," argument value."));else if($e.type==="Selector")je=ie(!0);else if($e.type==="Formula"){var Xt=st(),Me=Xt[0],pt=Xt[1];if(je={type:"Formula",a:Me,b:pt},$e.ofSelector&&(Z(),X("o")||X("\\"))){var Qe=it();H(Qe==="of","Formula of selector parse error."),Z(),je={type:"FormulaOfSelector",a:Me,b:pt,selector:Lt()}}}else return Se("Invalid ".concat(Ae," signature."));if(Z(),Ke()&&!s)return je;Xe(")")}else H($e.optional,"Argument is required for ".concat(Ae,' "').concat(re,'".'));return je}function Ct(){if(X("*"))return H(y,"Wildcard tag name is not enabled."),de(),{type:"WildcardTag"};if(Ls(ue)){H(x,"Tag names are not enabled.");var re=it();return H(re,"Expected tag name."),{type:"TagName",name:re}}else return Se("Expected tag name.")}function Nt(){if(X("*")){var re=_e;if(de(),!X("|")||(de(),!We()))return fe(re),Ct();H(D,"Namespaces are not enabled."),H(A,"Wildcard namespace is not enabled.");var Ae=Ct();return Ae.namespace={type:"WildcardNamespace"},Ae}else if(X("|")){H(D,"Namespaces are not enabled."),de();var Ae=Ct();return Ae.namespace={type:"NoNamespace"},Ae}else if(Ls(ue)){var $e=it();if(H($e,"Expected tag name."),!X("|"))return H(x,"Tag names are not enabled."),{type:"TagName",name:$e};var re=_e;if(de(),!We())return fe(re),{type:"TagName",name:$e};H(D,"Namespaces are not enabled.");var Ae=Ct();return Ae.namespace={type:"NamespaceName",name:$e},Ae}else return Se("Expected tag name.")}function Lt(re){var Ae,$e;re===void 0&&(re=!1);var je={type:"Rule",items:[]};if(re){var St=Pt(w);St&&(je.combinator=St,Z())}for(;_e<Q;)if(We())H(je.items.length===0,"Unexpected tag/namespace start."),je.items.push(Nt());else if(X("|")){var Xt=_e;if(de(),We())H(je.items.length===0,"Unexpected tag/namespace start."),fe(Xt),je.items.push(Nt());else{fe(Xt);break}}else if(X(".")){H(T,"Class names are not enabled."),de();var Me=it();H(Me,"Expected class name."),je.items.push({type:"ClassName",name:Me})}else if(X("#")){H(v,"IDs are not enabled."),de();var pt=it();H(pt,"Expected ID name."),je.items.push({type:"Id",name:pt})}else if(X("&"))H(N,"Nesting selector is not enabled."),de(),je.items.push({type:"NestingSelector"});else if(X("["))H(C,"Attributes are not enabled."),je.items.push(Ce());else if(X(":")){var Qe=!1,kt=!1;de(),X(":")&&(H(O,"Pseudo elements are not enabled."),H(le,"Pseudo elements double colon notation is not enabled."),Qe=!0,de());var ae=it();if(H(Qe||ae,"Expected pseudo-class name."),H(!Qe||ae,"Expected pseudo-element name."),H(ae,"Expected pseudo-class name."),!(!Qe||ke||Object.prototype.hasOwnProperty.call(L,ae))){var ge=D0.pseudoElements[ae],tt='Unknown pseudo-element "'.concat(ae,'"');ge&&ge.length>0&&(tt+=". It is defined in: ".concat(ge.join(", "))),Se(tt+".")}if(kt=O&&(Qe||!Qe&&te&&Object.prototype.hasOwnProperty.call(L,ae)),kt){var Dt=(Ae=L[ae])!==null&&Ae!==void 0?Ae:ke&&C0,G={type:"PseudoElement",name:ae},ze=Rt(ae,"pseudo-element",Dt);ze&&(H(ze.type!=="Formula"&&ze.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),G.argument=ze),je.items.push(G)}else{H(ee,"Pseudo-classes are not enabled.");var Dt=($e=me[ae])!==null&&$e!==void 0?$e:se&&C0;if(!Dt){var ge=D0.pseudoClasses[ae],tt='Unknown pseudo-class: "'.concat(ae,'"');ge&&ge.length>0&&(tt+=". It is defined in: ".concat(ge.join(", "))),Se(tt+".")}var ze=Rt(ae,"pseudo-class",Dt),M={type:"PseudoClass",name:ae};ze&&(M.argument=ze),je.items.push(M)}}else break;if(je.items.length===0)return Ke()?Se("Expected rule but end of input reached."):Se('Expected rule but "'.concat(ue,'" found.'));if(Z(),!Ke()&&!X(",")&&!X(")")){var St=Pt(w);Z(),je.nestedRule=Lt(),je.nestedRule.combinator=St}return je}return function(re){if(typeof re!="string")throw new Error("".concat(Wu,"Expected string input."));return Re=re,Q=Re.length,_e=0,ue=Re.charAt(0),ie()}}const WC=GC({syntax:"selectors-4"});function VC(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return WC(e)}const U1="֑-߿יִ-﷽ﹰ-ﻼ",$1="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",qC=new RegExp("^[^"+$1+"]*["+U1+"]"),YC=new RegExp("^[^"+U1+"]*["+$1+"]");function ZC(e){const t=String(e||"");return qC.test(t)?"rtl":YC.test(t)?"ltr":"neutral"}function KC(e,t){const n=e.schema,r=e.language,a=e.direction,s=e.editableOrEditingHost;let i;if(t.type==="element"){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",d=L0(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=fr),d==="rtl"?i=d:d==="ltr"||d!=="auto"&&t.tagName==="html"||d!=="auto"&&t.tagName==="input"&&p==="tel"?i="ltr":(d==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?i=Vu(Wa(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?i=t.properties.value?Vu(String(t.properties.value)):"ltr":$n(t,u)),i&&(e.direction=i)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return o;function o(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=s}function u(c){if(c.type==="text")return i=Vu(c.value),i?Jo:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||L0(c)))return Js}}function Vu(e){const t=ZC(e);return t==="neutral"?void 0:t}function L0(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function XC(e,t,n){const r=gs(n,e.name),a=t.properties[r.property];let s=QC(a,r);if(!e.value)return s!==void 0;e.value.type;let i=e.value.value;if(e.caseSensitivityModifier==="i"&&(i=i.toLowerCase(),s&&(s=s.toLowerCase())),s!==void 0)switch(e.operator){case"=":return i===s;case"$=":return i===s.slice(-i.length);case"*=":return s.includes(i);case"^=":return i===s.slice(0,i.length);case"|=":return i===s||i===s.slice(0,i.length)&&s.charAt(i.length)==="-";case"~=":return i===s||Zc(s).includes(i)}return!1}function QC(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?ru:au)(e)}else return String(e)}const JC=[];function ek(e,t){return(t.properties.className||JC).includes(e.name)}function tk(e,t){return t.properties.id===e.name}function nk(e,t){return e.name===t.tagName}function rk(e,t){return function(n,r){let a=F0(n,"tag");const s=F0(r??"*","range"),i=[];let o=-1;for(;++o<s.length;){const u=s[o].toLowerCase();if(!t&&u==="*")continue;let c=-1;const p=[];for(;++c<a.length;)if(e(a[c].toLowerCase(),u)){if(!t)return a[c];i.push(a[c])}else p.push(a[c]);a=p}return t?i:void 0}}const ak=rk(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,s=0;if(r[s]!=="*"&&n[a]!==r[s])return!1;for(a++,s++;s<r.length;){if(r[s]==="*"){s++;continue}if(!n[a])return!1;if(n[a]===r[s]){a++,s++;continue}if(n[a].length===1)return!1;a++}return!0},!0);function F0(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const sk={}.hasOwnProperty;function ga(e,t){const n=e.type==="element"&&sk.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const ik=/[ \t\n\f\r]/g;function Yi(e){return typeof e=="object"?e.type==="text"?M0(e.value):!1:M0(e)}function M0(e){return e.replace(ik,"")===""}const ok=new Set([9,10,12,13,32]),P0=48,lk=57;function uk(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=s(),a=i();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),o(),t<e.length?(r=s(),o(),a=i()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function i(){const u=t;let c=0;for(;t<e.length&&e.charCodeAt(t)>=P0&&e.charCodeAt(t)<=lk;)c=c*10+(e.charCodeAt(t)-P0),t++;return t===u?null:c}function o(){for(;t<e.length&&ok.has(e.charCodeAt(t));)t++}}var qu,j0;function ck(){return j0||(j0=1,qu={trueFunc:function(){return!0},falseFunc:function(){return!1}}),qu}var dk=ck();const B0=Ol(dk);function pk(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return B0.falseFunc;if(t===-1)return s=>s<=n;if(t===0)return s=>s===n;if(t===1)return n<0?B0.trueFunc:s=>s>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?s=>s>=n&&s%r===a:s=>s<=n&&s%r===a}function U0(e){return pk(uk(e))}const $0={}.hasOwnProperty;function lu(e,t){const n=t||{};function r(a,...s){let i=r.invalid;const o=r.handlers;if(a&&$0.call(a,e)){const u=String(a[e]);i=$0.call(o,u)?o[u]:r.unknown}if(i)return i.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const fk=U0.default||U0,mk=lu("name",{handlers:{"any-link":hk,blank:gk,checked:bk,dir:Ek,disabled:z1,empty:xk,enabled:yk,"first-child":Tk,"first-of-type":Sk,has:vk,is:H1,lang:Nk,"last-child":Ak,"last-of-type":_k,not:Ck,"nth-child":kk,"nth-last-child":Ik,"nth-last-of-type":Rk,"nth-of-type":Dk,"only-child":Ok,"only-of-type":Lk,optional:Fk,"read-only":Mk,"read-write":G1,required:W1,root:Pk,scope:jk},invalid:wk,unknown:Bk});function hk(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&ga(t,"href")}function wr(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function gk(e,t){return!V1(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Yi(r)}}function bk(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&ga(t,"checked")):t.tagName==="option"?ga(t,"selected"):!1}function Ek(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function z1(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&ga(t,"disabled")}function xk(e,t){return!V1(t,n);function n(r){return r.type==="element"||r.type==="text"}}function yk(e,t){return!z1(e,t)}function Tk(e,t,n,r,a){return wr(a,e),a.elementIndex===0}function Sk(e,t,n,r,a){return wr(a,e),a.typeIndex===0}function uu(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=fk(n.a+"n+"+n.b),e._cachedFn=t}return t}function vk(e,t,n,r,a){e.argument,e.argument.type;const s={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Lg(s,{type:"root",children:t.children}),s.results.length>0}function wk(){}function H1(e,t,n,r,a){e.argument,e.argument.type;const s={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Lg(s,t),s.results[0]===t}function Nk(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&ak(a.language,Yc(e.argument.value)).length>0}function Ak(e,t,n,r,a){return wr(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function _k(e,t,n,r,a){return wr(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Ck(e,t,n,r,a){return!H1(e,t,n,r,a)}function kk(e,t,n,r,a){const s=uu(e);return wr(a,e),typeof a.elementIndex=="number"&&s(a.elementIndex)}function Ik(e,t,n,r,a){const s=uu(e);return wr(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&s(a.elementCount-a.elementIndex-1))}function Rk(e,t,n,r,a){const s=uu(e);return wr(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&s(a.typeCount-1-a.typeIndex)}function Dk(e,t,n,r,a){const s=uu(e);return wr(a,e),typeof a.typeIndex=="number"&&s(a.typeIndex)}function Ok(e,t,n,r,a){return wr(a,e),a.elementCount===1}function Lk(e,t,n,r,a){return wr(a,e),a.typeCount===1}function Fk(e,t){return!W1(e,t)}function Mk(e,t,n,r,a){return!G1(e,t,n,r,a)}function G1(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!ga(t,"readOnly")&&!ga(t,"disabled"):!!a.editableOrEditingHost}function W1(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&ga(t,"required")}function Pk(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function jk(e,t,n,r,a){return a.scopeElements.includes(t)}function V1(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function Bk(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Uk(e,t,n,r,a){for(const s of e.items)if(s.type==="Attribute"){if(!XC(s,t,a.schema))return!1}else if(s.type==="Id"){if(!tk(s,t))return!1}else if(s.type==="ClassName"){if(!ek(s,t))return!1}else if(s.type==="PseudoClass"){if(!mk(s,t,n,r,a))return!1}else{if(s.type==="PseudoElement")throw new Error("Invalid selector: `::"+s.name+"`");if(s.type==="TagName"&&!nk(s,t))return!1}return!0}const $k=[];function Lg(e,t){t&&q1(e,[],t,void 0,void 0,t)}function Yu(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function zk(e,t,n,r){const a=Go(t.descendant,t.directChild);let s,i=-1;const o={count:0,types:new Map},u={count:0,types:new Map};for(;++i<n.children.length;)z0(o,n.children[i]);for(i=-1;++i<n.children.length;){const c=n.children[i],p=c.type==="element"?c.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=o.count,e.typeCount=p?o.types.get(p):0,"children"in c){const d=Go(a,s),f=q1(e,d,n.children[i],i,n,r);s=Go(f.generalSibling,f.adjacentSibling)}if(e.one&&e.found)break;z0(u,n.children[i])}}function Hk(e,t,n,r,a){const s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let i=-1;for(;++i<t.length;){const o=t[i];if(e.one&&e.found)break;if(e.shallow&&o.nestedRule)throw new Error("Expected selector without nesting");if(Uk(o,n,r,a,e)){const u=o.nestedRule;if(u){const c=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";Yu(s,c,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?Yu(s,"descendant",o):o.combinator==="~"&&Yu(s,"generalSibling",o)}return s}function Go(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:$k}function z0(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function q1(e,t,n,r,a,s){let i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=KC(e,n);if(n.type==="element"){let u=e.rootQuery.rules;a&&a!==s&&(u=e.rootQuery.rules.filter(c=>c.combinator===void 0||c.combinator===">"&&a===s)),i=Hk(e,Go(t,u),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&zk(e,i,n,s),o(),i}function Gk(e,t,n){const r=Wk(e,t);return Lg(r,t||void 0),r.results}function Wk(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:VC(e),schema:ka,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Y1=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Y1(n.children))}),t),Vk=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=Gk(t,r);a&&a.length>0&&$n(r,a,(s,i,o)=>{n(s,i,o)});return}$n(r,(a,s,i)=>{n(a,s,i)})}}};function qk(e,t,n,r){let a,s,i;s=t,i=n,a=r,qd(e,s,o,a);function o(u,c){const p=c[c.length-1],d=p?p.children.indexOf(u):void 0;return i(u,d,p)}}const Yk=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Zk=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},Z1=(e=[],t,n,r="<!--",a="-->")=>{let s=t;for(;s<e.length;)if(s++,n){const i=e[s];if(i&&i.value&&i.value.replace(/(\n|\s)/g,"")!==""||e[s]&&e[s].type==="element")return i.tagName===n?i:void 0}else{const i=e[s];if(!i||i.type==="element")return;if(i.type==="text"){const o=Z1(e,s,void 0);if(o)return o}if(i.type&&/^(comment|raw|text)$/ig.test(i.type)){const o=new RegExp(`^(s+)?${r}(.*?)${a}`);if(i.value&&!/^rehype:/.test(i.value.replace(/^(\n|\s)+/,"").replace(o,"$2")||""))return;let u=i.value.replace(/^(\n|\s)+/,"");return i.value=u,i}}},H0=({value:e=""},t="<!--",n="-->")=>{let r;try{r=new RegExp(`^${t}(.*?)${n}`)}catch{return{}}const a=e.match(r),i=(a?a[1]:e).replace(/^rehype:/,""),o=Yk(i);return Object.keys(o).forEach(u=>{o[u]==="true"?o[u]=!0:o[u]==="false"?o[u]=!1:typeof o[u]=="string"&&!/^0/.test(o[u])&&!isNaN(+o[u])&&(o[u]=+o[u])}),o},G0=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Kk=(e={})=>{const{properties:t="data",codeBlockParames:n=!0,commentStart:r="<!--",commentEnd:a="-->"}=e;return s=>{qk(s,"element",(i,o,u)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&u&&Array.isArray(u.children)&&u.children.length>1){const p=i.children[0];if(p&&p.tagName==="code"&&typeof o=="number"){const d=Zk(u.children,o);if(d){const f=H0(d,r,a);Object.keys(f).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},p.properties=G0(p.properties,f,t))}}}let c=u;if((/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)||c.type=="root")&&u&&Array.isArray(u.children)&&typeof o=="number"){const p=Z1(u.children,o,"",r,a);if(p){const d=H0(p,r,a);Object.keys(d).length>0&&(i.properties=G0(i.properties,d,t))}}})}},K1=-1,cu=0,ti=1,nl=2,Fg=3,Mg=4,Pg=5,jg=6,X1=7,Q1=8,{defineProperty:Xk}=Object,J1=typeof self=="object"?self:globalThis,W0=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new J1[e](t)},Qk=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);const[s,i]=t[a];switch(s){case cu:case K1:return n(i,a);case ti:{const o=n([],a);for(const u of i)o.push(r(u));return o}case nl:{const o=n({},a);for(const[u,c]of i){const p=r(u),d=r(c);p==="__proto__"?Xk(o,p,{value:d,configurable:!0,enumerable:!0,writable:!0}):o[p]=d}return o}case Fg:return n(new Date(i),a);case Mg:{const{source:o,flags:u}=i;return n(new RegExp(o,u),a)}case Pg:{const o=n(new Map,a);for(const[u,c]of i)o.set(r(u),r(c));return o}case jg:{const o=n(new Set,a);for(const u of i)o.add(r(u));return o}case X1:{const{name:o,message:u}=i;return n(typeof J1[o]=="function"?W0(o,u):new Error(u),a)}case Q1:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:o}=new Uint8Array(i);return n(new DataView(o),i)}case"-0":return-0}return n(W0(s,i),a)};return r},V0=e=>Qk(new Map,e)(0),ua="",{toString:Jk}={},{keys:eI,is:tI}=Object,Ms=e=>{const t=typeof e;if(t!=="object"||!e)return[cu,t];const n=Jk.call(e).slice(8,-1);switch(n){case"Array":return[ti,ua];case"Object":return[nl,ua];case"Date":return[Fg,ua];case"RegExp":return[Mg,ua];case"Map":return[Pg,ua];case"Set":return[jg,ua];case"DataView":return[ti,n]}return n.includes("Array")?[ti,n]:e instanceof Error?[X1,e.name||"Error"]:[nl,n]},go=([e,t])=>e===cu&&(t==="function"||t==="symbol"),nI=(e,t,n,r)=>{const a=(i,o)=>{const u=r.push(i)-1;return n.set(o,u),u},s=i=>{if(n.has(i))return n.get(i);let[o,u]=Ms(i);switch(o){case cu:{let p=i;switch(u){case"bigint":o=Q1,p=i.toString();break;case"number":if(!i&&tI(i,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return a([K1],i)}return a([o,p],i)}case ti:{if(u){let f=i;return u==="DataView"?f=new Uint8Array(i.buffer):u==="ArrayBuffer"&&(f=new Uint8Array(i)),a([u,[...f]],i)}const p=[],d=a([o,p],i);for(const f of i)p.push(s(f));return d}case nl:{if(u)switch(u){case"BigInt":return a([u,i.toString()],i);case"Boolean":case"Number":case"String":return a([u,i.valueOf()],i)}if(t&&"toJSON"in i)return s(i.toJSON());const p=[],d=a([o,p],i);for(const f of eI(i))(e||!go(Ms(i[f])))&&p.push([s(f),s(i[f])]);return d}case Fg:return a([o,isNaN(i.getTime())?ua:i.toISOString()],i);case Mg:{const{source:p,flags:d}=i;return a([o,{source:p,flags:d}],i)}case Pg:{const p=[],d=a([o,p],i);for(const[f,m]of i)(e||!(go(Ms(f))||go(Ms(m))))&&p.push([s(f),s(m)]);return d}case jg:{const p=[],d=a([o,p],i);for(const f of i)(e||!go(Ms(f)))&&p.push(s(f));return d}}const{message:c}=i;return a([o,{name:u,message:c}],i)};return s},q0=(e,{json:t,lossy:n}={})=>{const r=[];return nI(!(t||n),!!t,new Map,r)(e),r},ba=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?V0(q0(e,t)):structuredClone(e):(e,t)=>V0(q0(e,t));function rI(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let i=0;for(;;){let o=n[i];if(o===void 0){const u=Y0(t,n[i-1]);o=u===-1?t.length+1:u+1,n[i]=o}if(o>s)return{line:i+1,column:s-(i>0?n[i-1]:0)+1,offset:s};i++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const o=n[n.length-1],u=Y0(t,o),c=u===-1?t.length+1:u+1;if(o===c)break;n.push(c)}const i=(s.line>1?n[s.line-2]:0)+s.column-1;if(i<n[s.line-1])return i}}}function Y0(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
16
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const da={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},eT={}.hasOwnProperty,aI=Object.prototype;function tT(e,t){const n=t||{};return Bg({file:n.file||void 0,location:!1,schema:n.space==="svg"?fr:ka,verbose:n.verbose||!1},e)}function Bg(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Wo(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:nT(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const s=String(e.file),i=rI(s),o=i.toPoint(0),u=i.toPoint(s.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Wo(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Wo(e,r,n),n}default:return n=sI(e,t),n}}function nT(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Bg(e,t[n]);r.push(a)}return r}function sI(e,t){const n=e.schema;e.schema=t.namespaceURI===da.svg?fr:ka;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;eT.call(aI,u)||(a[u]=o.value)}const i=(e.schema.space==="svg"?pC:k1)(t.tagName,a,nT(e,t.childNodes));if(Wo(e,t,i),i.tagName==="template"){const o=t,u=o.sourceCodeLocation,c=u&&u.startTag&&Va(u.startTag),p=u&&u.endTag&&Va(u.endTag),d=Bg(e,o.content);c&&p&&e.file&&(d.position={start:c.end,end:p.start}),i.content=d}return e.schema=n,i}function Wo(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=iI(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function iI(e,t,n){const r=Va(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const s={};let i;if(n.attrs)for(i in n.attrs)eT.call(n.attrs,i)&&(s[gs(e.schema,i).property]=Va(n.attrs[i]));n.startTag;const o=Va(n.startTag),u=n.endTag?Va(n.endTag):void 0,c={opening:o};u&&(c.closing=u),c.properties=s,t.data={position:c}}}return r}function Va(e){const t=Z0({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Z0({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Z0(e){return e.line&&e.column?e:void 0}const oI={},lI={}.hasOwnProperty,rT=lu("type",{handlers:{root:cI,element:hI,text:fI,comment:mI,doctype:pI}});function uI(e,t){const r=(t||oI).space;return rT(e,r==="svg"?fr:ka)}function cI(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ug(e.children,n,t),Es(e,n),n}function dI(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ug(e.children,n,t),Es(e,n),n}function pI(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Es(e,t),t}function fI(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Es(e,t),t}function mI(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Es(e,t),t}function hI(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=fr);const a=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&lI.call(e.properties,s)){const u=gI(r,s,e.properties[s]);u&&a.push(u)}}const i=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:da[i],childNodes:[],parentNode:null};return o.childNodes=Ug(e.children,o,r),Es(e,o),e.tagName==="template"&&e.content&&(o.content=dI(e.content,r)),o}function gI(e,t,n){const r=gs(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ru(n):au(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=a.name.indexOf(":");s<0?a.prefix="":(a.name=a.name.slice(s+1),a.prefix=r.attribute.slice(0,s)),a.namespace=da[r.space]}return a}function Ug(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const s=rT(e[r],n);s.parentNode=t,a.push(s)}return a}function Es(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const aT=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],bI=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ht="�";var I;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));const Bn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function sT(e){return e>=55296&&e<=57343}function EI(e){return e>=56320&&e<=57343}function xI(e,t){return(e-55296)*1024+9216+t}function iT(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function oT(e){return e>=64976&&e<=65007||bI.has(e)}var J;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(J||(J={}));const yI=65536;class TI{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yI,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:s}=this,i=a+n,o=s+n;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(EI(n))return this.pos++,this._addGap(),xI(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,I.EOF;return this._err(J.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;const r=this.html.charCodeAt(n);return r===I.CARRIAGE_RETURN?I.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;let t=this.html.charCodeAt(this.pos);return t===I.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,I.LINE_FEED):t===I.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,sT(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===I.LINE_FEED||t===I.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){iT(t)?this._err(J.controlCharacterInInputStream):oT(t)&&this._err(J.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var mt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(mt||(mt={}));function lT(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const SI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),vI=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function wI(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vI.get(e))!==null&&t!==void 0?t:e}var gn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(gn||(gn={}));const NI=32;var Kr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Kr||(Kr={}));function rd(e){return e>=gn.ZERO&&e<=gn.NINE}function AI(e){return e>=gn.UPPER_A&&e<=gn.UPPER_F||e>=gn.LOWER_A&&e<=gn.LOWER_F}function _I(e){return e>=gn.UPPER_A&&e<=gn.UPPER_Z||e>=gn.LOWER_A&&e<=gn.LOWER_Z||rd(e)}function CI(e){return e===gn.EQUALS||_I(e)}var dn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(dn||(dn={}));var Ir;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ir||(Ir={}));class kI{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=dn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ir.Strict}startEntity(t){this.decodeMode=t,this.state=dn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case dn.EntityStart:return t.charCodeAt(n)===gn.NUM?(this.state=dn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=dn.NamedEntity,this.stateNamedEntity(t,n));case dn.NumericStart:return this.stateNumericStart(t,n);case dn.NumericDecimal:return this.stateNumericDecimal(t,n);case dn.NumericHex:return this.stateNumericHex(t,n);case dn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|NI)===gn.LOWER_X?(this.state=dn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=dn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const s=r-n;this.result=this.result*Math.pow(a,s)+Number.parseInt(t.substr(n,s),a),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(rd(a)||AI(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(rd(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===gn.SEMI)this.consumed+=1;else if(this.decodeMode===Ir.Strict)return 0;return this.emitCodePoint(wI(this.result),this.consumed),this.errors&&(t!==gn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],s=(a&Kr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=II(r,a,this.treeIndex+Math.max(1,s),i),this.treeIndex<0)return this.result===0||this.decodeMode===Ir.Attribute&&(s===0||CI(i))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],s=(a&Kr.VALUE_LENGTH)>>14,s!==0){if(i===gn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Ir.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Kr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Kr.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case dn.NamedEntity:return this.result!==0&&(this.decodeMode!==Ir.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case dn.NumericDecimal:return this.emitNumericEntity(0,2);case dn.NumericHex:return this.emitNumericEntity(0,3);case dn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case dn.EntityStart:return 0}}}function II(e,t,n,r){const a=(t&Kr.BRANCH_LENGTH)>>7,s=t&Kr.JUMP_TABLE;if(a===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=a?-1:e[n+u]-1}let i=n,o=i+a-1;for(;i<=o;){const u=i+o>>>1,c=e[u];if(c<r)i=u+1;else if(c>r)o=u-1;else return e[u+a]}return-1}var ce;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ce||(ce={}));var ha;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ha||(ha={}));var nr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(nr||(nr={}));var q;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(q||(q={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const RI=new Map([[q.A,h.A],[q.ADDRESS,h.ADDRESS],[q.ANNOTATION_XML,h.ANNOTATION_XML],[q.APPLET,h.APPLET],[q.AREA,h.AREA],[q.ARTICLE,h.ARTICLE],[q.ASIDE,h.ASIDE],[q.B,h.B],[q.BASE,h.BASE],[q.BASEFONT,h.BASEFONT],[q.BGSOUND,h.BGSOUND],[q.BIG,h.BIG],[q.BLOCKQUOTE,h.BLOCKQUOTE],[q.BODY,h.BODY],[q.BR,h.BR],[q.BUTTON,h.BUTTON],[q.CAPTION,h.CAPTION],[q.CENTER,h.CENTER],[q.CODE,h.CODE],[q.COL,h.COL],[q.COLGROUP,h.COLGROUP],[q.DD,h.DD],[q.DESC,h.DESC],[q.DETAILS,h.DETAILS],[q.DIALOG,h.DIALOG],[q.DIR,h.DIR],[q.DIV,h.DIV],[q.DL,h.DL],[q.DT,h.DT],[q.EM,h.EM],[q.EMBED,h.EMBED],[q.FIELDSET,h.FIELDSET],[q.FIGCAPTION,h.FIGCAPTION],[q.FIGURE,h.FIGURE],[q.FONT,h.FONT],[q.FOOTER,h.FOOTER],[q.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[q.FORM,h.FORM],[q.FRAME,h.FRAME],[q.FRAMESET,h.FRAMESET],[q.H1,h.H1],[q.H2,h.H2],[q.H3,h.H3],[q.H4,h.H4],[q.H5,h.H5],[q.H6,h.H6],[q.HEAD,h.HEAD],[q.HEADER,h.HEADER],[q.HGROUP,h.HGROUP],[q.HR,h.HR],[q.HTML,h.HTML],[q.I,h.I],[q.IMG,h.IMG],[q.IMAGE,h.IMAGE],[q.INPUT,h.INPUT],[q.IFRAME,h.IFRAME],[q.KEYGEN,h.KEYGEN],[q.LABEL,h.LABEL],[q.LI,h.LI],[q.LINK,h.LINK],[q.LISTING,h.LISTING],[q.MAIN,h.MAIN],[q.MALIGNMARK,h.MALIGNMARK],[q.MARQUEE,h.MARQUEE],[q.MATH,h.MATH],[q.MENU,h.MENU],[q.META,h.META],[q.MGLYPH,h.MGLYPH],[q.MI,h.MI],[q.MO,h.MO],[q.MN,h.MN],[q.MS,h.MS],[q.MTEXT,h.MTEXT],[q.NAV,h.NAV],[q.NOBR,h.NOBR],[q.NOFRAMES,h.NOFRAMES],[q.NOEMBED,h.NOEMBED],[q.NOSCRIPT,h.NOSCRIPT],[q.OBJECT,h.OBJECT],[q.OL,h.OL],[q.OPTGROUP,h.OPTGROUP],[q.OPTION,h.OPTION],[q.P,h.P],[q.PARAM,h.PARAM],[q.PLAINTEXT,h.PLAINTEXT],[q.PRE,h.PRE],[q.RB,h.RB],[q.RP,h.RP],[q.RT,h.RT],[q.RTC,h.RTC],[q.RUBY,h.RUBY],[q.S,h.S],[q.SCRIPT,h.SCRIPT],[q.SEARCH,h.SEARCH],[q.SECTION,h.SECTION],[q.SELECT,h.SELECT],[q.SOURCE,h.SOURCE],[q.SMALL,h.SMALL],[q.SPAN,h.SPAN],[q.STRIKE,h.STRIKE],[q.STRONG,h.STRONG],[q.STYLE,h.STYLE],[q.SUB,h.SUB],[q.SUMMARY,h.SUMMARY],[q.SUP,h.SUP],[q.TABLE,h.TABLE],[q.TBODY,h.TBODY],[q.TEMPLATE,h.TEMPLATE],[q.TEXTAREA,h.TEXTAREA],[q.TFOOT,h.TFOOT],[q.TD,h.TD],[q.TH,h.TH],[q.THEAD,h.THEAD],[q.TITLE,h.TITLE],[q.TR,h.TR],[q.TRACK,h.TRACK],[q.TT,h.TT],[q.U,h.U],[q.UL,h.UL],[q.SVG,h.SVG],[q.VAR,h.VAR],[q.WBR,h.WBR],[q.XMP,h.XMP]]);function xs(e){var t;return(t=RI.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const he=h,DI={[ce.HTML]:new Set([he.ADDRESS,he.APPLET,he.AREA,he.ARTICLE,he.ASIDE,he.BASE,he.BASEFONT,he.BGSOUND,he.BLOCKQUOTE,he.BODY,he.BR,he.BUTTON,he.CAPTION,he.CENTER,he.COL,he.COLGROUP,he.DD,he.DETAILS,he.DIR,he.DIV,he.DL,he.DT,he.EMBED,he.FIELDSET,he.FIGCAPTION,he.FIGURE,he.FOOTER,he.FORM,he.FRAME,he.FRAMESET,he.H1,he.H2,he.H3,he.H4,he.H5,he.H6,he.HEAD,he.HEADER,he.HGROUP,he.HR,he.HTML,he.IFRAME,he.IMG,he.INPUT,he.LI,he.LINK,he.LISTING,he.MAIN,he.MARQUEE,he.MENU,he.META,he.NAV,he.NOEMBED,he.NOFRAMES,he.NOSCRIPT,he.OBJECT,he.OL,he.P,he.PARAM,he.PLAINTEXT,he.PRE,he.SCRIPT,he.SECTION,he.SELECT,he.SOURCE,he.STYLE,he.SUMMARY,he.TABLE,he.TBODY,he.TD,he.TEMPLATE,he.TEXTAREA,he.TFOOT,he.TH,he.THEAD,he.TITLE,he.TR,he.TRACK,he.UL,he.WBR,he.XMP]),[ce.MATHML]:new Set([he.MI,he.MO,he.MN,he.MS,he.MTEXT,he.ANNOTATION_XML]),[ce.SVG]:new Set([he.TITLE,he.FOREIGN_OBJECT,he.DESC]),[ce.XLINK]:new Set,[ce.XML]:new Set,[ce.XMLNS]:new Set},ad=new Set([he.H1,he.H2,he.H3,he.H4,he.H5,he.H6]);q.STYLE,q.SCRIPT,q.XMP,q.IFRAME,q.NOEMBED,q.NOFRAMES,q.PLAINTEXT;var F;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(F||(F={}));const Qt={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function OI(e){return e>=I.DIGIT_0&&e<=I.DIGIT_9}function Ys(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_Z}function LI(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_Z}function zr(e){return LI(e)||Ys(e)}function K0(e){return zr(e)||OI(e)}function bo(e){return e+32}function uT(e){return e===I.SPACE||e===I.LINE_FEED||e===I.TABULATION||e===I.FORM_FEED}function X0(e){return uT(e)||e===I.SOLIDUS||e===I.GREATER_THAN_SIGN}function FI(e){return e===I.NULL?J.nullCharacterReference:e>1114111?J.characterReferenceOutsideUnicodeRange:sT(e)?J.surrogateCharacterReference:oT(e)?J.noncharacterCharacterReference:iT(e)||e===I.CARRIAGE_RETURN?J.controlCharacterReference:null}class MI{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new TI(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kI(SI,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(J.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(J.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=FI(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:mt.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:mt.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:mt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:mt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(lT(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(J.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=xs(t.tagName),t.type===mt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(J.endTagWithAttributes),t.selfClosing&&this._err(J.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case mt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case mt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case mt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:mt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=uT(t)?mt.WHITESPACE_CHARACTER:t===I.NULL?mt.NULL_CHARACTER:mt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(mt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ir.Attribute:Ir.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case F.DATA:{this._stateData(t);break}case F.RCDATA:{this._stateRcdata(t);break}case F.RAWTEXT:{this._stateRawtext(t);break}case F.SCRIPT_DATA:{this._stateScriptData(t);break}case F.PLAINTEXT:{this._statePlaintext(t);break}case F.TAG_OPEN:{this._stateTagOpen(t);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case F.TAG_NAME:{this._stateTagName(t);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case F.BOGUS_COMMENT:{this._stateBogusComment(t);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case F.COMMENT_START:{this._stateCommentStart(t);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case F.COMMENT:{this._stateComment(t);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case F.COMMENT_END:{this._stateCommentEnd(t);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case F.DOCTYPE:{this._stateDoctype(t);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case F.CDATA_SECTION:{this._stateCdataSection(t);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(J.unexpectedNullCharacter),this._emitCodePoint(t);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case I.AMPERSAND:{this._startCharacterReference();break}case I.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case I.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case I.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case I.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(zr(t))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case I.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case I.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case I.QUESTION_MARK:{this._err(J.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t);break}case I.EOF:{this._err(J.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(J.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(zr(t))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case I.GREATER_THAN_SIGN:{this._err(J.missingEndTagName),this.state=F.DATA;break}case I.EOF:{this._err(J.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(J.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.tagName+=Ht;break}case I.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ys(t)?bo(t):t)}}_stateRcdataLessThanSign(t){t===I.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){zr(t)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case I.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case I.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===I.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){zr(t)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case I.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case I.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){zr(t)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===I.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===I.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===I.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zr(t)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){zr(t)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&X0(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Bn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===I.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&X0(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Bn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._err(J.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:{this._err(J.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.name+=Ht;break}default:this.currentAttr.name+=String.fromCodePoint(Ys(t)?bo(t):t)}}_stateAfterAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case I.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case I.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(J.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case I.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case I.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case I.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case I.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:case I.EQUALS_SIGN:case I.GRAVE_ACCENT:{this._err(J.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case I.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this._err(J.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case I.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this._err(J.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case I.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.data+=Ht;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Bn.DASH_DASH,!0)?(this._createCommentToken(Bn.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(Bn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Bn.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(Bn.CDATA_START,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(J.cdataInHtmlContent),this._createCommentToken(Bn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(J.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case I.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case I.GREATER_THAN_SIGN:{this._err(J.abruptClosingOfEmptyComment),this.state=F.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case I.GREATER_THAN_SIGN:{this._err(J.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case I.LESS_THAN_SIGN:{n.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.data+=Ht;break}case I.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case I.EXCLAMATION_MARK:{n.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case I.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===I.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===I.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==I.GREATER_THAN_SIGN&&t!==I.EOF&&this._err(J.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case I.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case I.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case I.HYPHEN_MINUS:{n.data+="-";break}case I.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{n.data+="--!",this.state=F.COMMENT_END_DASH;break}case I.GREATER_THAN_SIGN:{this._err(J.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=F.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case I.EOF:{this._err(J.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ys(t))this._createDoctypeToken(String.fromCharCode(bo(t))),this.state=F.DOCTYPE_NAME;else switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.NULL:{this._err(J.unexpectedNullCharacter),this._createDoctypeToken(Ht),this.state=F.DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this._err(J.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.EOF:{this._err(J.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.name+=Ht;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ys(t)?bo(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Bn.PUBLIC,!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Bn.SYSTEM,!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(J.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(J.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(J.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(J.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(J.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.publicId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(J.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.publicId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(J.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case I.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case I.QUOTATION_MARK:{this._err(J.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(J.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(J.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(J.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(J.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(J.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.systemId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(J.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(J.unexpectedNullCharacter),n.systemId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(J.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.EOF:{this._err(J.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case I.NULL:{this._err(J.unexpectedNullCharacter);break}case I.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case I.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case I.EOF:{this._err(J.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===I.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case I.GREATER_THAN_SIGN:{this.state=F.DATA;break}case I.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(I.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&K0(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){K0(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===I.SEMICOLON&&this._err(J.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const cT=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),Q0=new Set([...cT,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),rl=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),PI=new Set([...rl,h.OL,h.UL]),jI=new Set([...rl,h.BUTTON]),J0=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),eE=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),BI=new Set([h.TR,h.TEMPLATE,h.HTML]),UI=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),$I=new Set([h.TABLE,h.TEMPLATE,h.HTML]),zI=new Set([h.TD,h.TH]);class HI{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ce.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ce.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ad,ce.HTML)}popUntilTableCellPopped(){this.popUntilPopped(zI,ce.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo($I,ce.HTML)}clearBackToTableBodyContext(){this.clearBackTo(UI,ce.HTML)}clearBackToTableRowContext(){this.clearBackTo(BI,ce.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ce.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case ce.SVG:{if(eE.has(a))return!1;break}case ce.MATHML:{if(J0.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,rl)}hasInListItemScope(t){return this.hasInDynamicScope(t,PI)}hasInButtonScope(t){return this.hasInDynamicScope(t,jI)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ce.HTML:{if(ad.has(n))return!0;if(rl.has(n))return!1;break}case ce.SVG:{if(eE.has(n))return!1;break}case ce.MATHML:{if(J0.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ce.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ce.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ce.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&cT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Q0.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Q0.has(this.currentTagId);)this.pop()}}const Zu=3;var Tr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Tr||(Tr={}));const tE={type:Tr.Marker};class GI{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,s=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===Tr.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===i){const p=this.treeAdapter.getAttrList(c);p.length===a&&r.push({idx:o,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Zu)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Zu)return;const a=new Map(n.map(i=>[i.name,i.value]));let s=0;for(let i=0;i<r.length;i++){const o=r[i];o.attrs.every(u=>a.get(u.name)===u.value)&&(s+=1,s>=Zu&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(tE)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Tr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Tr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(tE);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Tr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Tr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Tr.Element&&n.element===t)}}const Hr={createDocument(){return{nodeName:"#document",mode:nr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Hr.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Hr.isTextNode(n)){n.value+=t;return}}Hr.appendChild(e,Hr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Hr.isTextNode(r)?r.value+=t:Hr.insertBefore(e,Hr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},dT="html",WI="about:legacy-compat",VI="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",pT=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],qI=[...pT,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],YI=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),fT=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ZI=[...fT,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function nE(e,t){return t.some(n=>e.startsWith(n))}function KI(e){return e.name===dT&&e.publicId===null&&(e.systemId===null||e.systemId===WI)}function XI(e){if(e.name!==dT)return nr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===VI)return nr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),YI.has(n))return nr.QUIRKS;let r=t===null?qI:pT;if(nE(n,r))return nr.QUIRKS;if(r=t===null?fT:ZI,nE(n,r))return nr.LIMITED_QUIRKS}return nr.NO_QUIRKS}const rE={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},QI="definitionurl",JI="definitionURL",eR=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),tR=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ce.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ce.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ce.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ce.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ce.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ce.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ce.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ce.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ce.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ce.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ce.XMLNS}]]),nR=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),rR=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function aR(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===ha.COLOR||r===ha.SIZE||r===ha.FACE)||rR.has(t)}function mT(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===QI){e.attrs[t].name=JI;break}}function hT(e){for(let t=0;t<e.attrs.length;t++){const n=eR.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function $g(e){for(let t=0;t<e.attrs.length;t++){const n=tR.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function sR(e){const t=nR.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=xs(e.tagName))}function iR(e,t){return t===ce.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function oR(e,t,n){if(t===ce.MATHML&&e===h.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ha.ENCODING){const a=n[r].value.toLowerCase();return a===rE.TEXT_HTML||a===rE.APPLICATION_XML}}return t===ce.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function lR(e,t,n,r){return(!r||r===ce.HTML)&&oR(e,t,n)||(!r||r===ce.MATHML)&&iR(e,t)}const uR="hidden",cR=8,dR=3;var B;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(B||(B={}));const pR={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},gT=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),aE={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hr,onParseError:null};class al{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=B.INITIAL,this.originalInsertionMode=B.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...aE,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new MI(this.options,this),this.activeFormattingElements=new GI(this.treeAdapter),this.fragmentContextID=r?xs(this.treeAdapter.getTagName(r)):h.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new HI(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...aE,...n};t??(t=r.treeAdapter.createElement(q.TEMPLATE,ce.HTML,[]));const a=r.treeAdapter.createElement("documentmock",ce.HTML,[]),s=new this(r,a,t);return s.fragmentContextID===h.TEMPLATE&&s.tmplInsertionModeStack.unshift(B.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const s=(a=t.location)!==null&&a!==void 0?a:pR,i={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(i)}onItemPush(t,n,r){var a,s;(s=(a=this.treeAdapter).onItemPush)===null||s===void 0||s.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let s,i;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,i=this.fragmentContextID):{current:s,currentTagId:i}=this.openElements,this._setContextModes(s,i)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ce.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ce.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=B.TEXT}switchToPlaintextParsing(){this.insertionMode=B.TEXT,this.originalInsertionMode=B.IN_BODY,this.tokenizer.state=Qt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===q.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ce.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=Qt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=Qt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=Qt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=Qt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const i=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));i&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ce.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ce.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(q.HTML,ce.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),s=r?a.lastIndexOf(r):a.length,i=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:u,endCol:c,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:u,endCol:c,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),s=n.type===mt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ce.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ce.HTML)}_processToken(t){switch(t.type){case mt.CHARACTER:{this.onCharacter(t);break}case mt.NULL_CHARACTER:{this.onNullCharacter(t);break}case mt.COMMENT:{this.onComment(t);break}case mt.DOCTYPE:{this.onDoctype(t);break}case mt.START_TAG:{this._processStartTag(t);break}case mt.END_TAG:{this.onEndTag(t);break}case mt.EOF:{this.onEof(t);break}case mt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return lR(t,a,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Tr.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=B.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=B.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=B.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=B.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=B.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=B.IN_TABLE;return}case h.BODY:{this.insertionMode=B.IN_BODY;return}case h.FRAMESET:{this.insertionMode=B.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?B.AFTER_HEAD:B.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=B.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=B.IN_HEAD;return}break}}this.insertionMode=B.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=B.IN_SELECT_IN_TABLE;return}}this.insertionMode=B.IN_SELECT}_isElementCausesFosterParenting(t){return gT.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ce.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return DI[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){z2(this,t);return}switch(this.insertionMode){case B.INITIAL:{Ps(this,t);break}case B.BEFORE_HTML:{ni(this,t);break}case B.BEFORE_HEAD:{ri(this,t);break}case B.IN_HEAD:{ai(this,t);break}case B.IN_HEAD_NO_SCRIPT:{si(this,t);break}case B.AFTER_HEAD:{ii(this,t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:{ET(this,t);break}case B.TEXT:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Ku(this,t);break}case B.IN_TABLE_TEXT:{wT(this,t);break}case B.IN_COLUMN_GROUP:{sl(this,t);break}case B.AFTER_BODY:{il(this,t);break}case B.AFTER_AFTER_BODY:{Vo(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$2(this,t);return}switch(this.insertionMode){case B.INITIAL:{Ps(this,t);break}case B.BEFORE_HTML:{ni(this,t);break}case B.BEFORE_HEAD:{ri(this,t);break}case B.IN_HEAD:{ai(this,t);break}case B.IN_HEAD_NO_SCRIPT:{si(this,t);break}case B.AFTER_HEAD:{ii(this,t);break}case B.TEXT:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Ku(this,t);break}case B.IN_COLUMN_GROUP:{sl(this,t);break}case B.AFTER_BODY:{il(this,t);break}case B.AFTER_AFTER_BODY:{Vo(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){sd(this,t);return}switch(this.insertionMode){case B.INITIAL:case B.BEFORE_HTML:case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_TEMPLATE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{sd(this,t);break}case B.IN_TABLE_TEXT:{js(this,t);break}case B.AFTER_BODY:{xR(this,t);break}case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{yR(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case B.INITIAL:{TR(this,t);break}case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:{this._err(t,J.misplacedDoctype);break}case B.IN_TABLE_TEXT:{js(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,J.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?H2(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Ps(this,t);break}case B.BEFORE_HTML:{SR(this,t);break}case B.BEFORE_HEAD:{wR(this,t);break}case B.IN_HEAD:{mr(this,t);break}case B.IN_HEAD_NO_SCRIPT:{_R(this,t);break}case B.AFTER_HEAD:{kR(this,t);break}case B.IN_BODY:{Rn(this,t);break}case B.IN_TABLE:{rs(this,t);break}case B.IN_TABLE_TEXT:{js(this,t);break}case B.IN_CAPTION:{N2(this,t);break}case B.IN_COLUMN_GROUP:{Gg(this,t);break}case B.IN_TABLE_BODY:{fu(this,t);break}case B.IN_ROW:{mu(this,t);break}case B.IN_CELL:{C2(this,t);break}case B.IN_SELECT:{_T(this,t);break}case B.IN_SELECT_IN_TABLE:{I2(this,t);break}case B.IN_TEMPLATE:{D2(this,t);break}case B.AFTER_BODY:{L2(this,t);break}case B.IN_FRAMESET:{F2(this,t);break}case B.AFTER_FRAMESET:{P2(this,t);break}case B.AFTER_AFTER_BODY:{B2(this,t);break}case B.AFTER_AFTER_FRAMESET:{U2(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?G2(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Ps(this,t);break}case B.BEFORE_HTML:{vR(this,t);break}case B.BEFORE_HEAD:{NR(this,t);break}case B.IN_HEAD:{AR(this,t);break}case B.IN_HEAD_NO_SCRIPT:{CR(this,t);break}case B.AFTER_HEAD:{IR(this,t);break}case B.IN_BODY:{pu(this,t);break}case B.TEXT:{h2(this,t);break}case B.IN_TABLE:{xi(this,t);break}case B.IN_TABLE_TEXT:{js(this,t);break}case B.IN_CAPTION:{A2(this,t);break}case B.IN_COLUMN_GROUP:{_2(this,t);break}case B.IN_TABLE_BODY:{id(this,t);break}case B.IN_ROW:{AT(this,t);break}case B.IN_CELL:{k2(this,t);break}case B.IN_SELECT:{CT(this,t);break}case B.IN_SELECT_IN_TABLE:{R2(this,t);break}case B.IN_TEMPLATE:{O2(this,t);break}case B.AFTER_BODY:{IT(this,t);break}case B.IN_FRAMESET:{M2(this,t);break}case B.AFTER_FRAMESET:{j2(this,t);break}case B.AFTER_AFTER_BODY:{Vo(this,t);break}}}onEof(t){switch(this.insertionMode){case B.INITIAL:{Ps(this,t);break}case B.BEFORE_HTML:{ni(this,t);break}case B.BEFORE_HEAD:{ri(this,t);break}case B.IN_HEAD:{ai(this,t);break}case B.IN_HEAD_NO_SCRIPT:{si(this,t);break}case B.AFTER_HEAD:{ii(this,t);break}case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{ST(this,t);break}case B.TEXT:{g2(this,t);break}case B.IN_TABLE_TEXT:{js(this,t);break}case B.IN_TEMPLATE:{kT(this,t);break}case B.AFTER_BODY:case B.IN_FRAMESET:case B.AFTER_FRAMESET:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{Hg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===I.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.TEXT:case B.IN_COLUMN_GROUP:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{this._insertCharacters(t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:case B.AFTER_BODY:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{bT(this,t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Ku(this,t);break}case B.IN_TABLE_TEXT:{vT(this,t);break}}}}function fR(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):TT(e,t),n}function mR(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function hR(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let s=0,i=a;i!==n;s++,i=a){a=e.openElements.getCommonAncestor(i);const o=e.activeFormattingElements.getElementEntry(i),u=o&&s>=dR;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(i)):(i=gR(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function gR(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function bR(e,t,n){const r=e.treeAdapter.getTagName(t),a=xs(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);a===h.TEMPLATE&&s===ce.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ER(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,s=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,a.tagID)}function zg(e,t){for(let n=0;n<cR;n++){const r=fR(e,t);if(!r)break;const a=mR(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const s=hR(e,a,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),i&&bR(e,i,s),ER(e,a,r)}}function sd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function xR(e,t){e._appendCommentNode(t,e.openElements.items[0])}function yR(e,t){e._appendCommentNode(t,e.document)}function Hg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(s);i&&!i.endTag&&e._setEndLocation(s,t)}}}}function TR(e,t){e._setDocumentType(t);const n=t.forceQuirks?nr.QUIRKS:XI(t);KI(t)||e._err(t,J.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=B.BEFORE_HTML}function Ps(e,t){e._err(t,J.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,nr.QUIRKS),e.insertionMode=B.BEFORE_HTML,e._processToken(t)}function SR(e,t){t.tagID===h.HTML?(e._insertElement(t,ce.HTML),e.insertionMode=B.BEFORE_HEAD):ni(e,t)}function vR(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&ni(e,t)}function ni(e,t){e._insertFakeRootElement(),e.insertionMode=B.BEFORE_HEAD,e._processToken(t)}function wR(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.HEAD:{e._insertElement(t,ce.HTML),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD;break}default:ri(e,t)}}function NR(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?ri(e,t):e._err(t,J.endTagWithoutMatchingOpenElement)}function ri(e,t){e._insertFakeElement(q.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD,e._processToken(t)}function mr(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,Qt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Qt.RAWTEXT):(e._insertElement(t,ce.HTML),e.insertionMode=B.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,Qt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,Qt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=B.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(B.IN_TEMPLATE);break}case h.HEAD:{e._err(t,J.misplacedStartTagForHeadElement);break}default:ai(e,t)}}function AR(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=B.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{ai(e,t);break}case h.TEMPLATE:{Ia(e,t);break}default:e._err(t,J.endTagWithoutMatchingOpenElement)}}function Ia(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,J.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,J.endTagWithoutMatchingOpenElement)}function ai(e,t){e.openElements.pop(),e.insertionMode=B.AFTER_HEAD,e._processToken(t)}function _R(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{mr(e,t);break}case h.NOSCRIPT:{e._err(t,J.nestedNoscriptInHead);break}default:si(e,t)}}function CR(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=B.IN_HEAD;break}case h.BR:{si(e,t);break}default:e._err(t,J.endTagWithoutMatchingOpenElement)}}function si(e,t){const n=t.type===mt.EOF?J.openElementsLeftAfterEof:J.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=B.IN_HEAD,e._processToken(t)}function kR(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.BODY:{e._insertElement(t,ce.HTML),e.framesetOk=!1,e.insertionMode=B.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,ce.HTML),e.insertionMode=B.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,J.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),mr(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,J.misplacedStartTagForHeadElement);break}default:ii(e,t)}}function IR(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{ii(e,t);break}case h.TEMPLATE:{Ia(e,t);break}default:e._err(t,J.endTagWithoutMatchingOpenElement)}}function ii(e,t){e._insertFakeElement(q.BODY,h.BODY),e.insertionMode=B.IN_BODY,du(e,t)}function du(e,t){switch(t.type){case mt.CHARACTER:{ET(e,t);break}case mt.WHITESPACE_CHARACTER:{bT(e,t);break}case mt.COMMENT:{sd(e,t);break}case mt.START_TAG:{Rn(e,t);break}case mt.END_TAG:{pu(e,t);break}case mt.EOF:{ST(e,t);break}}}function bT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ET(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function RR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function DR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function OR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_FRAMESET)}function LR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML)}function FR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ad.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ce.HTML)}function MR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function PR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),n||(e.formElement=e.openElements.current))}function jR(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===h.LI&&a===h.LI||(n===h.DD||n===h.DT)&&(a===h.DD||a===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML)}function BR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),e.tokenizer.state=Qt.PLAINTEXT}function UR(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.framesetOk=!1}function $R(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(q.A);n&&(zg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function HR(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(zg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function GR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function WR(e,t){e.treeAdapter.getDocumentMode(e.document)!==nr.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),e.framesetOk=!1,e.insertionMode=B.IN_TABLE}function xT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ce.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yT(e){const t=lT(e,ha.TYPE);return t!=null&&t.toLowerCase()===uR}function VR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ce.HTML),yT(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function qR(e,t){e._appendElement(t,ce.HTML),t.ackSelfClosing=!0}function YR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,ce.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ZR(e,t){t.tagName=q.IMG,t.tagID=h.IMG,xT(e,t)}function KR(e,t){e._insertElement(t,ce.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Qt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=B.TEXT}function XR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function QR(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function sE(e,t){e._switchToTextParsing(t,Qt.RAWTEXT)}function JR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===B.IN_TABLE||e.insertionMode===B.IN_CAPTION||e.insertionMode===B.IN_TABLE_BODY||e.insertionMode===B.IN_ROW||e.insertionMode===B.IN_CELL?B.IN_SELECT_IN_TABLE:B.IN_SELECT}function e2(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML)}function t2(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ce.HTML)}function n2(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,ce.HTML)}function r2(e,t){e._reconstructActiveFormattingElements(),mT(t),$g(t),t.selfClosing?e._appendElement(t,ce.MATHML):e._insertElement(t,ce.MATHML),t.ackSelfClosing=!0}function a2(e,t){e._reconstructActiveFormattingElements(),hT(t),$g(t),t.selfClosing?e._appendElement(t,ce.SVG):e._insertElement(t,ce.SVG),t.ackSelfClosing=!0}function iE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML)}function Rn(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{zR(e,t);break}case h.A:{$R(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{FR(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{LR(e,t);break}case h.LI:case h.DD:case h.DT:{jR(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{xT(e,t);break}case h.HR:{YR(e,t);break}case h.RB:case h.RTC:{t2(e,t);break}case h.RT:case h.RP:{n2(e,t);break}case h.PRE:case h.LISTING:{MR(e,t);break}case h.XMP:{XR(e,t);break}case h.SVG:{a2(e,t);break}case h.HTML:{RR(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{mr(e,t);break}case h.BODY:{DR(e,t);break}case h.FORM:{PR(e,t);break}case h.NOBR:{HR(e,t);break}case h.MATH:{r2(e,t);break}case h.TABLE:{WR(e,t);break}case h.INPUT:{VR(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{qR(e,t);break}case h.IMAGE:{ZR(e,t);break}case h.BUTTON:{UR(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{GR(e,t);break}case h.IFRAME:{QR(e,t);break}case h.SELECT:{JR(e,t);break}case h.OPTION:case h.OPTGROUP:{e2(e,t);break}case h.NOEMBED:case h.NOFRAMES:{sE(e,t);break}case h.FRAMESET:{OR(e,t);break}case h.TEXTAREA:{KR(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?sE(e,t):iE(e,t);break}case h.PLAINTEXT:{BR(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:iE(e,t)}}function s2(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function i2(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B.AFTER_BODY,IT(e,t))}function o2(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function l2(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function u2(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(q.P,h.P),e._closePElement()}function c2(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function d2(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function p2(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function f2(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function m2(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(q.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function TT(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a],i=e.openElements.tagIDs[a];if(r===i&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(s,i))break}}function pu(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{zg(e,t);break}case h.P:{u2(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{o2(e,t);break}case h.LI:{c2(e);break}case h.DD:case h.DT:{d2(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{p2(e);break}case h.BR:{m2(e);break}case h.BODY:{s2(e,t);break}case h.HTML:{i2(e,t);break}case h.FORM:{l2(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{f2(e,t);break}case h.TEMPLATE:{Ia(e,t);break}default:TT(e,t)}}function ST(e,t){e.tmplInsertionModeStack.length>0?kT(e,t):Hg(e,t)}function h2(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function g2(e,t){e._err(t,J.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ku(e,t){if(e.openElements.currentTagId!==void 0&&gT.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=B.IN_TABLE_TEXT,t.type){case mt.CHARACTER:{wT(e,t);break}case mt.WHITESPACE_CHARACTER:{vT(e,t);break}}else Zi(e,t)}function b2(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_CAPTION}function E2(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_COLUMN_GROUP}function x2(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.COLGROUP,h.COLGROUP),e.insertionMode=B.IN_COLUMN_GROUP,Gg(e,t)}function y2(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_TABLE_BODY}function T2(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.TBODY,h.TBODY),e.insertionMode=B.IN_TABLE_BODY,fu(e,t)}function S2(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function v2(e,t){yT(t)?e._appendElement(t,ce.HTML):Zi(e,t),t.ackSelfClosing=!0}function w2(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ce.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function rs(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{T2(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{mr(e,t);break}case h.COL:{x2(e,t);break}case h.FORM:{w2(e,t);break}case h.TABLE:{S2(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{y2(e,t);break}case h.INPUT:{v2(e,t);break}case h.CAPTION:{b2(e,t);break}case h.COLGROUP:{E2(e,t);break}default:Zi(e,t)}}function xi(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{Ia(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:Zi(e,t)}}function Zi(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,du(e,t),e.fosterParentingEnabled=n}function vT(e,t){e.pendingCharacterTokens.push(t)}function wT(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function js(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Zi(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const NT=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function N2(e,t){const n=t.tagID;NT.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,rs(e,t)):Rn(e,t)}function A2(e,t){const n=t.tagID;switch(n){case h.CAPTION:case h.TABLE:{e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,n===h.TABLE&&xi(e,t));break}case h.BODY:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:pu(e,t)}}function Gg(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.COL:{e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{mr(e,t);break}default:sl(e,t)}}function _2(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case h.TEMPLATE:{Ia(e,t);break}case h.COL:break;default:sl(e,t)}}function sl(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE,e._processToken(t))}function fu(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(q.TR,h.TR),e.insertionMode=B.IN_ROW,mu(e,t);break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,rs(e,t));break}default:rs(e,t)}}function id(e,t){const n=t.tagID;switch(t.tagID){case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,xi(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:case h.TR:break;default:xi(e,t)}}function mu(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_CELL,e.activeFormattingElements.insertMarker();break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,fu(e,t));break}default:rs(e,t)}}function AT(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,id(e,t));break}case h.TBODY:case h.TFOOT:case h.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,id(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:break;default:xi(e,t)}}function C2(e,t){const n=t.tagID;NT.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),mu(e,t)):Rn(e,t)}function k2(e,t){const n=t.tagID;switch(n){case h.TD:case h.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),AT(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:pu(e,t)}}function _T(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,ce.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ce.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.INPUT:case h.KEYGEN:case h.TEXTAREA:case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),t.tagID!==h.SELECT&&e._processStartTag(t));break}case h.SCRIPT:case h.TEMPLATE:{mr(e,t);break}}}function CT(e,t){switch(t.tagID){case h.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{Ia(e,t);break}}}function I2(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_T(e,t)}function R2(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):CT(e,t)}function D2(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{mr(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=B.IN_TABLE,e.insertionMode=B.IN_TABLE,rs(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=B.IN_COLUMN_GROUP,e.insertionMode=B.IN_COLUMN_GROUP,Gg(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=B.IN_TABLE_BODY,e.insertionMode=B.IN_TABLE_BODY,fu(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=B.IN_ROW,e.insertionMode=B.IN_ROW,mu(e,t);break}default:e.tmplInsertionModeStack[0]=B.IN_BODY,e.insertionMode=B.IN_BODY,Rn(e,t)}}function O2(e,t){t.tagID===h.TEMPLATE&&Ia(e,t)}function kT(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Hg(e,t)}function L2(e,t){t.tagID===h.HTML?Rn(e,t):il(e,t)}function IT(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=B.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else il(e,t)}function il(e,t){e.insertionMode=B.IN_BODY,du(e,t)}function F2(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.FRAMESET:{e._insertElement(t,ce.HTML);break}case h.FRAME:{e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{mr(e,t);break}}}function M2(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=B.AFTER_FRAMESET))}function P2(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.NOFRAMES:{mr(e,t);break}}}function j2(e,t){t.tagID===h.HTML&&(e.insertionMode=B.AFTER_AFTER_FRAMESET)}function B2(e,t){t.tagID===h.HTML?Rn(e,t):Vo(e,t)}function Vo(e,t){e.insertionMode=B.IN_BODY,du(e,t)}function U2(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.NOFRAMES:{mr(e,t);break}}}function $2(e,t){t.chars=Ht,e._insertCharacters(t)}function z2(e,t){e._insertCharacters(t),e.framesetOk=!1}function RT(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ce.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function H2(e,t){if(aR(t))RT(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ce.MATHML?mT(t):r===ce.SVG&&(sR(t),hT(t)),$g(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function G2(e,t){if(t.tagID===h.P||t.tagID===h.BR){RT(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ce.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}q.AREA,q.BASE,q.BASEFONT,q.BGSOUND,q.BR,q.COL,q.EMBED,q.FRAME,q.HR,q.IMG,q.INPUT,q.KEYGEN,q.LINK,q.META,q.PARAM,q.SOURCE,q.TRACK,q.WBR;function W2(e,t){return al.parse(e,t)}function V2(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=al.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}const hu=DT("end"),Nr=DT("start");function DT(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function q2(e){const t=Nr(e),n=hu(e);if(t&&n)return{start:t,end:n}}const Y2=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Z2=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),oE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function OT(e,t){const n=sD(e),r=lu("type",{handlers:{root:K2,element:X2,text:Q2,comment:FT,doctype:J2,raw:tD},unknown:nD}),a={parser:n?new al(oE):al.getFragmentParser(void 0,oE),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),ys(a,Nr());const s=n?a.parser.document:a.parser.getFragment(),i=tT(s,{file:a.options.file});return a.stitches&&$n(i,"comment",function(o,u,c){const p=o;if(p.value.stitch&&c&&u!==void 0){const d=c.children;return d[u]=p.value.stitch,u}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function LT(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function K2(e,t){LT(e.children,t)}function X2(e,t){rD(e,t),LT(e.children,t),aD(e,t)}function Q2(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:mt.CHARACTER,chars:e.value,location:Ki(e)};ys(t,Nr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function J2(e,t){const n={type:mt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ki(e)};ys(t,Nr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function eD(e,t){t.stitches=!0;const n=iD(e);if("children"in e&&"children"in n){const r=OT({type:"root",children:e.children},t.options);n.children=r.children}FT({type:"comment",value:{stitch:n}},t)}function FT(e,t){const n=e.value,r={type:mt.COMMENT,data:n,location:Ki(e)};ys(t,Nr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tD(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,MT(t,Nr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Y2,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function nD(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))eD(n,t);else{let r="";throw Z2.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function ys(e,t){MT(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Qt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function MT(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function rD(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Qt.PLAINTEXT)return;ys(t,Nr(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:da.html;a===da.html&&n==="svg"&&(a=da.svg);const s=uI({...e,children:[]},{space:a===da.svg?"svg":"html"}),i={type:mt.START_TAG,tagName:n,tagID:xs(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:Ki(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function aD(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&aT.includes(n)||t.parser.tokenizer.state===Qt.PLAINTEXT)return;ys(t,hu(e));const r={type:mt.END_TAG,tagName:n,tagID:xs(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ki(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Qt.RCDATA||t.parser.tokenizer.state===Qt.RAWTEXT||t.parser.tokenizer.state===Qt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Qt.DATA)}function sD(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ki(e){const t=Nr(e)||{line:void 0,column:void 0,offset:void 0},n=hu(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function iD(e){return"children"in e?ba({...e,children:[]}):ba(e)}function PT(e){return function(t,n){return OT(t,{...e,file:n})}}function yi(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const oD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uD={};function lE(e,t){return(uD.jsx?lD:oD).test(e)}var Ma={},Xu,uE;function cD(){if(uE)return Xu;uE=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
17
|
+
`,c="/",p="*",d="",f="comment",m="declaration";function b(x,y){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];y=y||{};var v=1,T=1;function N(W){var $=W.match(t);$&&(v+=$.length);var ee=W.lastIndexOf(u);T=~ee?W.length-ee:T+W.length}function D(){var W={line:v,column:T};return function($){return $.position=new A(W),R(),$}}function A(W){this.start=W,this.end={line:v,column:T},this.source=y.source}A.prototype.content=x;function S(W){var $=new Error(y.source+":"+v+":"+T+": "+W);if($.reason=W,$.filename=y.source,$.line=v,$.column=T,$.source=x,!y.silent)throw $}function w(W){var $=W.exec(x);if($){var ee=$[0];return N(ee),x=x.slice(ee.length),$}}function R(){w(n)}function C(W){var $;for(W=W||[];$=U();)$!==!1&&W.push($);return W}function U(){var W=D();if(!(c!=x.charAt(0)||p!=x.charAt(1))){for(var $=2;d!=x.charAt($)&&(p!=x.charAt($)||c!=x.charAt($+1));)++$;if($+=2,d===x.charAt($-1))return S("End of comment missing");var ee=x.slice(2,$-2);return T+=2,N(ee),x=x.slice($),T+=2,W({type:f,comment:ee})}}function k(){var W=D(),$=w(r);if($){if(U(),!w(a))return S("property missing ':'");var ee=w(s),me=W({type:m,property:E($[0].replace(e,d)),value:ee?E(ee[0].replace(e,d)):d});return w(i),me}}function j(){var W=[];C(W);for(var $;$=k();)$!==!1&&(W.push($),C(W));return W}return R(),j()}function E(x){return x?x.replace(o,d):d}return Xu=b,Xu}var cE;function dD(){if(cE)return Ma;cE=1;var e=Ma&&Ma.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.default=n;const t=e(cD());function n(r,a){let s=null;if(!r||typeof r!="string")return s;const i=(0,t.default)(r),o=typeof a=="function";return i.forEach(u=>{if(u.type!=="declaration")return;const{property:c,value:p}=u;o?a(c,p,u):p&&(s=s||{},s[c]=p)}),s}return Ma}var Bs={},dE;function pD(){if(dE)return Bs;dE=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(c){return!c||n.test(c)||e.test(c)},i=function(c,p){return p.toUpperCase()},o=function(c,p){return"".concat(p,"-")},u=function(c,p){return p===void 0&&(p={}),s(c)?c:(c=c.toLowerCase(),p.reactCompat?c=c.replace(a,o):c=c.replace(r,o),c.replace(t,i))};return Bs.camelCase=u,Bs}var Us,pE;function fD(){if(pE)return Us;pE=1;var e=Us&&Us.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(dD()),n=pD();function r(a,s){var i={};return!a||typeof a!="string"||(0,t.default)(a,function(o,u){o&&u&&(i[(0,n.camelCase)(o,s)]=u)}),i}return r.default=r,Us=r,Us}var mD=fD();const hD=Ol(mD);function oi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fE(e.position):"start"in e||"end"in e?fE(e):"line"in e||"column"in e?od(e):""}function od(e){return mE(e&&e.line)+":"+mE(e&&e.column)}function fE(e){return od(e&&e.start)+"-"+od(e&&e.end)}function mE(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",s={},i=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(i=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=oi(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="";An.prototype.name="";An.prototype.reason="";An.prototype.message="";An.prototype.stack="";An.prototype.column=void 0;An.prototype.line=void 0;An.prototype.ancestors=void 0;An.prototype.cause=void 0;An.prototype.fatal=void 0;An.prototype.place=void 0;An.prototype.ruleId=void 0;An.prototype.source=void 0;const Wg={}.hasOwnProperty,gD=new Map,bD=/[A-Z]/g,ED=new Set(["table","tbody","thead","tfoot","tr"]),xD=new Set(["td","th"]),jT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yD(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=CD(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_D(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fr:ka,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=BT(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function BT(e,t,n){if(t.type==="element")return TD(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return SD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return wD(e,t,n);if(t.type==="mdxjsEsm")return vD(e,t);if(t.type==="root")return ND(e,t,n);if(t.type==="text")return AD(e,t)}function TD(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=fr,e.schema=a),e.ancestors.push(t);const s=$T(e,t.tagName,!1),i=kD(e,t);let o=qg(e,t);return ED.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Yi(u):!0})),UT(e,i,s,t),Vg(i,o),e.ancestors.pop(),e.schema=r,e.create(t,s,i,n)}function SD(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ti(e,t.position)}function vD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ti(e,t.position)}function wD(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=fr,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:$T(e,t.name,!0),i=ID(e,t),o=qg(e,t);return UT(e,i,s,t),Vg(i,o),e.ancestors.pop(),e.schema=r,e.create(t,s,i,n)}function ND(e,t,n){const r={};return Vg(r,qg(e,t)),e.create(t,e.Fragment,r,n)}function AD(e,t){return t.value}function UT(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Vg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _D(e,t,n){return r;function r(a,s,i,o){const c=Array.isArray(i.children)?n:t;return o?c(s,i,o):c(s,i)}}function CD(e,t){return n;function n(r,a,s,i){const o=Array.isArray(s.children),u=Nr(r);return t(a,s,i,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function kD(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Wg.call(t.properties,a)){const s=RD(e,a,t.properties[a]);if(s){const[i,o]=s;e.tableCellAlignToStyle&&i==="align"&&typeof o=="string"&&xD.has(t.tagName)?r=o:n[i]=o}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ID(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const i=s.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ti(e,t.position);else{const a=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,s=e.evaluater.evaluateExpression(o.expression)}else Ti(e,t.position);else s=r.value===null?!0:r.value;n[a]=s}return n}function qg(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:gD;for(;++r<t.children.length;){const s=t.children[r];let i;if(e.passKeys){const u=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(u){const c=a.get(u)||0;i=u+"-"+c,a.set(u,c+1)}}const o=BT(e,s,i);o!==void 0&&n.push(o)}return n}function RD(e,t,n){const r=gs(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ru(n):au(n)),r.property==="style"){let a=typeof n=="object"?n:DD(e,String(n));return e.stylePropertyNameCase==="css"&&(a=OD(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?tC[r.property]||r.property:r.attribute,n]}}function DD(e,t){try{return hD(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=jT+"#cannot-parse-style-attribute",a}}function $T(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,i;for(;++s<a.length;){const o=lE(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};i=i?{type:"MemberExpression",object:i,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}r=i}else r=lE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Wg.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ti(e)}function Ti(e,t){const n=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=jT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function OD(e){const t={};let n;for(n in e)Wg.call(e,n)&&(t[LD(n)]=e[n]);return t}function LD(e){let t=e.replace(bD,FD);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function FD(e){return"-"+e.toLowerCase()}const Qu={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"]},MD={};function Yg(e,t){const n=MD,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return zT(e,r,a)}function zT(e,t,n){if(PD(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hE(e.children,t,n)}return Array.isArray(e)?hE(e,t,n):""}function hE(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=zT(e[a],t,n);return r.join("")}function PD(e){return!!(e&&typeof e=="object")}function Vn(e,t,n,r){const a=e.length;let s=0,i;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function rr(e,t){return e.length>0?(Vn(e,e.length,0,t),e):t}const gE={}.hasOwnProperty;function HT(e){const t={};let n=-1;for(;++n<e.length;)jD(t,e[n]);return t}function jD(e,t){let n;for(n in t){const a=(gE.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let i;if(s)for(i in s){gE.call(a,i)||(a[i]=[]);const o=s[i];BD(a[i],Array.isArray(o)?o:o?[o]:[])}}}function BD(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Vn(e,0,0,r)}function GT(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ur(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fn=ra(/[A-Za-z]/),In=ra(/[\dA-Za-z]/),UD=ra(/[#-'*+\--9=?A-Z^-~]/);function ol(e){return e!==null&&(e<32||e===127)}const ld=ra(/\d/),$D=ra(/[\dA-Fa-f]/),zD=ra(/[!-/:-@[-`{-~]/);function qe(e){return e!==null&&e<-2}function Ut(e){return e!==null&&(e<0||e===32)}function gt(e){return e===-2||e===-1||e===32}const gu=ra(/\p{P}|\p{S}/u),Ea=ra(/\s/);function ra(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ts(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let i="";if(s===37&&In(e.charCodeAt(n+1))&&In(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(i=String.fromCharCode(s));else if(s>55295&&s<57344){const o=e.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(i=String.fromCharCode(s,o),a=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Tt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return i;function i(u){return gt(u)?(e.enter(n),o(u)):t(u)}function o(u){return gt(u)&&s++<a?(e.consume(u),o):(e.exit(n),t(u))}}const HD={tokenize:GD};function GD(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Tt(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),s(o)}function s(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,i(o)}function i(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return qe(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),i)}}const WD={tokenize:VD},bE={tokenize:qD};function VD(e){const t=this,n=[];let r=0,a,s,i;return o;function o(T){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,u,c)(T)}return c(T)}function u(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();const N=t.events.length;let D=N,A;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){A=t.events[D][1].end;break}y(r);let S=N;for(;S<t.events.length;)t.events[S][1].end={...A},S++;return Vn(t.events,D+1,0,t.events.slice(N)),t.events.length=S,c(T)}return o(T)}function c(T){if(r===n.length){if(!a)return f(T);if(a.currentConstruct&&a.currentConstruct.concrete)return b(T);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(bE,p,d)(T)}function p(T){return a&&v(),y(r),f(T)}function d(T){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,b(T)}function f(T){return t.containerState={},e.attempt(bE,m,b)(T)}function m(T){return r++,n.push([t.currentConstruct,t.containerState]),f(T)}function b(T){if(T===null){a&&v(),y(0),e.consume(T);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),E(T)}function E(T){if(T===null){x(e.exit("chunkFlow"),!0),y(0),e.consume(T);return}return qe(T)?(e.consume(T),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(T),E)}function x(T,N){const D=t.sliceStream(T);if(N&&D.push(null),T.previous=s,s&&(s.next=T),s=T,a.defineSkip(T.start),a.write(D),t.parser.lazy[T.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<i&&(!a.events[A][1].end||a.events[A][1].end.offset>i))return;const S=t.events.length;let w=S,R,C;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){if(R){C=t.events[w][1].end;break}R=!0}for(y(r),A=S;A<t.events.length;)t.events[A][1].end={...C},A++;Vn(t.events,w+1,0,t.events.slice(S)),t.events.length=A}}function y(T){let N=n.length;for(;N-- >T;){const D=n[N];t.containerState=D[1],D[0].exit.call(t,e)}n.length=T}function v(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function qD(e,t,n){return Tt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function as(e){if(e===null||Ut(e)||Ea(e))return 1;if(gu(e))return 2}function bu(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const ud={name:"attention",resolveAll:YD,tokenize:ZD};function YD(e,t){let n=-1,r,a,s,i,o,u,c,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};EE(d,-u),EE(f,u),i={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},s={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[r][1].end={...i.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=rr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=rr(c,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",s,t]]),c=rr(c,bu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=rr(c,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=rr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Vn(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ZD(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=as(r);let s;return i;function i(u){return s=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===s)return e.consume(u),o;const c=e.exit("attentionSequence"),p=as(u),d=!p||p===2&&a||n.includes(u),f=!a||a===2&&p||n.includes(r);return c._open=!!(s===42?d:d&&(a||!f)),c._close=!!(s===42?f:f&&(p||!d)),t(u)}}function EE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const KD={name:"autolink",tokenize:XD};function XD(e,t,n){let r=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return Fn(m)?(e.consume(m),i):m===64?n(m):c(m)}function i(m){return m===43||m===45||m===46||In(m)?(r=1,o(m)):c(m)}function o(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||In(m))&&r++<32?(e.consume(m),o):(r=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||ol(m)?n(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),p):UD(m)?(e.consume(m),c):n(m)}function p(m){return In(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):f(m)}function f(m){if((m===45||In(m))&&r++<63){const b=m===45?f:d;return e.consume(m),b}return n(m)}}const Xi={partial:!0,tokenize:QD};function QD(e,t,n){return r;function r(s){return gt(s)?Tt(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||qe(s)?t(s):n(s)}}const WT={continuation:{tokenize:eO},exit:tO,name:"blockQuote",tokenize:JD};function JD(e,t,n){const r=this;return a;function a(i){if(i===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),s}return n(i)}function s(i){return gt(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function eO(e,t,n){const r=this;return a;function a(i){return gt(i)?Tt(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):s(i)}function s(i){return e.attempt(WT,t,n)(i)}}function tO(e){e.exit("blockQuote")}const VT={name:"characterEscape",tokenize:nO};function nO(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return zD(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const qT={name:"characterReference",tokenize:rO};function rO(e,t,n){const r=this;let a=0,s,i;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,i=In,p(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,i=$D,p):(e.enter("characterReferenceValue"),s=7,i=ld,p(d))}function p(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return i===In&&!Ei(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&a++<s?(e.consume(d),p):n(d)}}const xE={partial:!0,tokenize:sO},yE={concrete:!0,name:"codeFenced",tokenize:aO};function aO(e,t,n){const r=this,a={partial:!0,tokenize:D};let s=0,i=0,o;return u;function u(A){return c(A)}function c(A){const S=r.events[r.events.length-1];return s=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(A)}function p(A){return A===o?(i++,e.consume(A),p):i<3?n(A):(e.exit("codeFencedFenceSequence"),gt(A)?Tt(e,d,"whitespace")(A):d(A))}function d(A){return A===null||qe(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(xE,E,N)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||qe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):gt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Tt(e,m,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),f)}function m(A){return A===null||qe(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===null||qe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===o?n(A):(e.consume(A),b)}function E(A){return e.attempt(a,N,x)(A)}function x(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),y}function y(A){return s>0&>(A)?Tt(e,v,"linePrefix",s+1)(A):v(A)}function v(A){return A===null||qe(A)?e.check(xE,E,N)(A):(e.enter("codeFlowValue"),T(A))}function T(A){return A===null||qe(A)?(e.exit("codeFlowValue"),v(A)):(e.consume(A),T)}function N(A){return e.exit("codeFenced"),t(A)}function D(A,S,w){let R=0;return C;function C($){return A.enter("lineEnding"),A.consume($),A.exit("lineEnding"),U}function U($){return A.enter("codeFencedFence"),gt($)?Tt(A,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):k($)}function k($){return $===o?(A.enter("codeFencedFenceSequence"),j($)):w($)}function j($){return $===o?(R++,A.consume($),j):R>=i?(A.exit("codeFencedFenceSequence"),gt($)?Tt(A,W,"whitespace")($):W($)):w($)}function W($){return $===null||qe($)?(A.exit("codeFencedFence"),S($)):w($)}}}function sO(e,t,n){const r=this;return a;function a(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s)}function s(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const Ju={name:"codeIndented",tokenize:oO},iO={partial:!0,tokenize:lO};function oO(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Tt(e,s,"linePrefix",5)(c)}function s(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(c):n(c)}function i(c){return c===null?u(c):qe(c)?e.attempt(iO,i,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||qe(c)?(e.exit("codeFlowValue"),i(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function lO(e,t,n){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?n(i):qe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):Tt(e,s,"linePrefix",5)(i)}function s(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):qe(i)?a(i):n(i)}}const uO={name:"codeText",previous:dO,resolve:cO,tokenize:pO};function cO(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function dO(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pO(e,t,n){let r=0,a,s;return i;function i(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(s=e.enter("codeTextSequence"),a=0,p(d)):qe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||qe(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),c)}function p(d){return d===96?(e.consume(d),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(s.type="codeTextData",c(d))}}class fO{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&$s(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$s(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$s(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$s(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$s(this.left,n.reverse())}}}function $s(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function YT(e){const t={};let n=-1,r,a,s,i,o,u,c;const p=new fO(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,mO(p,n)),n=t[n],c=!0);else if(r[1]._container){for(s=n,a=void 0;s--;)if(i=p.get(s),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=s);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},o=p.slice(a,n),o.unshift(r),p.splice(a,n-a+1,o))}}return Vn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function mO(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const o=i.events,u=[],c={};let p,d,f=-1,m=n,b=0,E=0;const x=[E];for(;m;){for(;e.get(++a)[1]!==m;);s.push(a),m._tokenizer||(p=r.sliceStream(m),m.next||p.push(null),d&&i.defineSkip(m.start),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(p),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(E=f+1,x.push(E),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(i.events=[],m?(m._tokenizer=void 0,m.previous=void 0):x.pop(),f=x.length;f--;){const y=o.slice(x[f],x[f+1]),v=s.pop();u.push([v,v+y.length-1]),e.splice(v,2,y)}for(u.reverse(),f=-1;++f<u.length;)c[b+u[f][0]]=b+u[f][1],b+=u[f][1]-u[f][0]-1;return c}const hO={resolve:bO,tokenize:EO},gO={partial:!0,tokenize:xO};function bO(e){return YT(e),e}function EO(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?s(o):qe(o)?e.check(gO,i,s)(o):(e.consume(o),a)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function i(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function xO(e,t,n){const r=this;return a;function a(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Tt(e,s,"linePrefix")}function s(i){if(i===null||qe(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function ZT(e,t,n,r,a,s,i,o,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return d;function d(y){return y===60?(e.enter(r),e.enter(a),e.enter(s),e.consume(y),e.exit(s),f):y===null||y===32||y===41||ol(y)?n(y):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(y))}function f(y){return y===62?(e.enter(s),e.consume(y),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(o),f(y)):y===null||y===60||qe(y)?n(y):(e.consume(y),y===92?b:m)}function b(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function E(y){return!p&&(y===null||y===41||Ut(y))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(y)):p<c&&y===40?(e.consume(y),p++,E):y===41?(e.consume(y),p--,E):y===null||y===32||y===40||ol(y)?n(y):(e.consume(y),y===92?x:E)}function x(y){return y===40||y===41||y===92?(e.consume(y),E):E(y)}}function KT(e,t,n,r,a,s){const i=this;let o=0,u;return c;function c(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(s),p}function p(m){return o>999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?n(m):m===93?(e.exit(s),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):qe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||qe(m)||o++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!gt(m)),m===92?f:d)}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function XT(e,t,n,r,a,s){let i;return o;function o(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),i=f===40?41:f,u):n(f)}function u(f){return f===i?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(s),c(f))}function c(f){return f===i?(e.exit(s),u(i)):f===null?n(f):qe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Tt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===i||f===null||qe(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:p)}function d(f){return f===i||f===92?(e.consume(f),p):p(f)}}function li(e,t){let n;return r;function r(a){return qe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):gt(a)?Tt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const yO={name:"definition",tokenize:SO},TO={partial:!0,tokenize:vO};function SO(e,t,n){const r=this;let a;return s;function s(m){return e.enter("definition"),i(m)}function i(m){return KT.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=ur(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Ut(m)?li(e,c)(m):c(m)}function c(m){return ZT(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(TO,d,d)(m)}function d(m){return gt(m)?Tt(e,f,"whitespace")(m):f(m)}function f(m){return m===null||qe(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function vO(e,t,n){return r;function r(o){return Ut(o)?li(e,a)(o):n(o)}function a(o){return XT(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return gt(o)?Tt(e,i,"whitespace")(o):i(o)}function i(o){return o===null||qe(o)?t(o):n(o)}}const wO={name:"hardBreakEscape",tokenize:NO};function NO(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return qe(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const AO={name:"headingAtx",resolve:_O,tokenize:CO};function _O(e,t){let n=e.length-2,r=3,a,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Vn(e,r,n-r+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function CO(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),i(p)}function i(p){return p===35&&r++<6?(e.consume(p),i):p===null||Ut(p)?(e.exit("atxHeadingSequence"),o(p)):n(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||qe(p)?(e.exit("atxHeading"),t(p)):gt(p)?Tt(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||Ut(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}const kO=["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"],TE=["pre","script","style","textarea"],IO={concrete:!0,name:"htmlFlow",resolveTo:OO,tokenize:LO},RO={partial:!0,tokenize:MO},DO={partial:!0,tokenize:FO};function OO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function LO(e,t,n){const r=this;let a,s,i,o,u;return c;function c(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),s=!0,E):L===63?(e.consume(L),a=3,r.interrupt?t:O):Fn(L)?(e.consume(L),i=String.fromCharCode(L),x):n(L)}function f(L){return L===45?(e.consume(L),a=2,m):L===91?(e.consume(L),a=5,o=0,b):Fn(L)?(e.consume(L),a=4,r.interrupt?t:O):n(L)}function m(L){return L===45?(e.consume(L),r.interrupt?t:O):n(L)}function b(L){const ke="CDATA[";return L===ke.charCodeAt(o++)?(e.consume(L),o===ke.length?r.interrupt?t:k:b):n(L)}function E(L){return Fn(L)?(e.consume(L),i=String.fromCharCode(L),x):n(L)}function x(L){if(L===null||L===47||L===62||Ut(L)){const ke=L===47,Re=i.toLowerCase();return!ke&&!s&&TE.includes(Re)?(a=1,r.interrupt?t(L):k(L)):kO.includes(i.toLowerCase())?(a=6,ke?(e.consume(L),y):r.interrupt?t(L):k(L)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):s?v(L):T(L))}return L===45||In(L)?(e.consume(L),i+=String.fromCharCode(L),x):n(L)}function y(L){return L===62?(e.consume(L),r.interrupt?t:k):n(L)}function v(L){return gt(L)?(e.consume(L),v):C(L)}function T(L){return L===47?(e.consume(L),C):L===58||L===95||Fn(L)?(e.consume(L),N):gt(L)?(e.consume(L),T):C(L)}function N(L){return L===45||L===46||L===58||L===95||In(L)?(e.consume(L),N):D(L)}function D(L){return L===61?(e.consume(L),A):gt(L)?(e.consume(L),D):T(L)}function A(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,S):gt(L)?(e.consume(L),A):w(L)}function S(L){return L===u?(e.consume(L),u=null,R):L===null||qe(L)?n(L):(e.consume(L),S)}function w(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Ut(L)?D(L):(e.consume(L),w)}function R(L){return L===47||L===62||gt(L)?T(L):n(L)}function C(L){return L===62?(e.consume(L),U):n(L)}function U(L){return L===null||qe(L)?k(L):gt(L)?(e.consume(L),U):n(L)}function k(L){return L===45&&a===2?(e.consume(L),ee):L===60&&a===1?(e.consume(L),me):L===62&&a===4?(e.consume(L),te):L===63&&a===3?(e.consume(L),O):L===93&&a===5?(e.consume(L),xe):qe(L)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(RO,le,j)(L)):L===null||qe(L)?(e.exit("htmlFlowData"),j(L)):(e.consume(L),k)}function j(L){return e.check(DO,W,le)(L)}function W(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return L===null||qe(L)?j(L):(e.enter("htmlFlowData"),k(L))}function ee(L){return L===45?(e.consume(L),O):k(L)}function me(L){return L===47?(e.consume(L),i="",se):k(L)}function se(L){if(L===62){const ke=i.toLowerCase();return TE.includes(ke)?(e.consume(L),te):k(L)}return Fn(L)&&i.length<8?(e.consume(L),i+=String.fromCharCode(L),se):k(L)}function xe(L){return L===93?(e.consume(L),O):k(L)}function O(L){return L===62?(e.consume(L),te):L===45&&a===2?(e.consume(L),O):k(L)}function te(L){return L===null||qe(L)?(e.exit("htmlFlowData"),le(L)):(e.consume(L),te)}function le(L){return e.exit("htmlFlow"),t(L)}}function FO(e,t,n){const r=this;return a;function a(i){return qe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s):n(i)}function s(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function MO(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Xi,t,n)}}const PO={name:"htmlText",tokenize:jO};function jO(e,t,n){const r=this;let a,s,i;return o;function o(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),u}function u(O){return O===33?(e.consume(O),c):O===47?(e.consume(O),D):O===63?(e.consume(O),T):Fn(O)?(e.consume(O),w):n(O)}function c(O){return O===45?(e.consume(O),p):O===91?(e.consume(O),s=0,b):Fn(O)?(e.consume(O),v):n(O)}function p(O){return O===45?(e.consume(O),m):n(O)}function d(O){return O===null?n(O):O===45?(e.consume(O),f):qe(O)?(i=d,me(O)):(e.consume(O),d)}function f(O){return O===45?(e.consume(O),m):d(O)}function m(O){return O===62?ee(O):O===45?f(O):d(O)}function b(O){const te="CDATA[";return O===te.charCodeAt(s++)?(e.consume(O),s===te.length?E:b):n(O)}function E(O){return O===null?n(O):O===93?(e.consume(O),x):qe(O)?(i=E,me(O)):(e.consume(O),E)}function x(O){return O===93?(e.consume(O),y):E(O)}function y(O){return O===62?ee(O):O===93?(e.consume(O),y):E(O)}function v(O){return O===null||O===62?ee(O):qe(O)?(i=v,me(O)):(e.consume(O),v)}function T(O){return O===null?n(O):O===63?(e.consume(O),N):qe(O)?(i=T,me(O)):(e.consume(O),T)}function N(O){return O===62?ee(O):T(O)}function D(O){return Fn(O)?(e.consume(O),A):n(O)}function A(O){return O===45||In(O)?(e.consume(O),A):S(O)}function S(O){return qe(O)?(i=S,me(O)):gt(O)?(e.consume(O),S):ee(O)}function w(O){return O===45||In(O)?(e.consume(O),w):O===47||O===62||Ut(O)?R(O):n(O)}function R(O){return O===47?(e.consume(O),ee):O===58||O===95||Fn(O)?(e.consume(O),C):qe(O)?(i=R,me(O)):gt(O)?(e.consume(O),R):ee(O)}function C(O){return O===45||O===46||O===58||O===95||In(O)?(e.consume(O),C):U(O)}function U(O){return O===61?(e.consume(O),k):qe(O)?(i=U,me(O)):gt(O)?(e.consume(O),U):R(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),a=O,j):qe(O)?(i=k,me(O)):gt(O)?(e.consume(O),k):(e.consume(O),W)}function j(O){return O===a?(e.consume(O),a=void 0,$):O===null?n(O):qe(O)?(i=j,me(O)):(e.consume(O),j)}function W(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||Ut(O)?R(O):(e.consume(O),W)}function $(O){return O===47||O===62||Ut(O)?R(O):n(O)}function ee(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function me(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),se}function se(O){return gt(O)?Tt(e,xe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):xe(O)}function xe(O){return e.enter("htmlTextData"),i(O)}}const Zg={name:"labelEnd",resolveAll:zO,resolveTo:HO,tokenize:GO},BO={tokenize:WO},UO={tokenize:VO},$O={tokenize:qO};function zO(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Vn(e,0,e.length,n),e}function HO(e,t){let n=e.length,r=0,a,s,i,o;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(i=n);const u={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[s][1].start},end:{...e[i][1].end}},p={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",u,t],["enter",c,t]],o=rr(o,e.slice(s+1,s+r+3)),o=rr(o,[["enter",p,t]]),o=rr(o,bu(t.parser.constructs.insideSpan.null,e.slice(s+r+4,i-3),t)),o=rr(o,[["exit",p,t],e[i-2],e[i-1],["exit",c,t]]),o=rr(o,e.slice(i+1)),o=rr(o,[["exit",u,t]]),Vn(e,s,e.length,o),e}function GO(e,t,n){const r=this;let a=r.events.length,s,i;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){s=r.events[a][1];break}return o;function o(f){return s?s._inactive?d(f):(i=r.parser.defined.includes(ur(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):n(f)}function u(f){return f===40?e.attempt(BO,p,i?p:d)(f):f===91?e.attempt(UO,p,i?c:d)(f):i?p(f):d(f)}function c(f){return e.attempt($O,p,d)(f)}function p(f){return t(f)}function d(f){return s._balanced=!0,n(f)}}function WO(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Ut(d)?li(e,s)(d):s(d)}function s(d){return d===41?p(d):ZT(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return Ut(d)?li(e,u)(d):p(d)}function o(d){return n(d)}function u(d){return d===34||d===39||d===40?XT(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):p(d)}function c(d){return Ut(d)?li(e,p)(d):p(d)}function p(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function VO(e,t,n){const r=this;return a;function a(o){return KT.call(r,e,s,i,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(ur(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function i(o){return n(o)}}function qO(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const YO={name:"labelStartImage",resolveAll:Zg.resolveAll,tokenize:ZO};function ZO(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),i):n(o)}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const KO={name:"labelStartLink",resolveAll:Zg.resolveAll,tokenize:XO};function XO(e,t,n){const r=this;return a;function a(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),s}function s(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const ec={name:"lineEnding",tokenize:QO};function QO(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Tt(e,t,"linePrefix")}}const qo={name:"thematicBreak",tokenize:JO};function JO(e,t,n){let r=0,a;return s;function s(c){return e.enter("thematicBreak"),i(c)}function i(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||qe(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===a?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),gt(c)?Tt(e,o,"whitespace")(c):o(c))}}const Un={continuation:{tokenize:rL},exit:sL,name:"list",tokenize:nL},eL={partial:!0,tokenize:iL},tL={partial:!0,tokenize:aL};function nL(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return o;function o(m){const b=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:ld(m)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(qo,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return ld(m)&&++i<10?(e.consume(m),u):(!r.interrupt||i<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Xi,r.interrupt?n:p,e.attempt(eL,f,d))}function p(m){return r.containerState.initialBlankLine=!0,s++,f(m)}function d(m){return gt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):n(m)}function f(m){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function rL(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xi,a,s);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Tt(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!gt(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tL,t,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Tt(e,e.attempt(Un,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function aL(e,t,n){const r=this;return Tt(e,a,"listItemIndent",r.containerState.size+1);function a(s){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(s):n(s)}}function sL(e){e.exit(this.containerState.type)}function iL(e,t,n){const r=this;return Tt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const i=r.events[r.events.length-1];return!gt(s)&&i&&i[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const SE={name:"setextUnderline",resolveTo:oL,tokenize:lL};function oL(e,t){let n=e.length,r,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function lL(e,t,n){const r=this;let a;return s;function s(c){let p=r.events.length,d;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){d=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,i(c)):n(c)}function i(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),gt(c)?Tt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||qe(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const uL={tokenize:cL};function cL(e){const t=this,n=e.attempt(Xi,r,e.attempt(this.parser.constructs.flowInitial,a,Tt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(hO,a)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const dL={resolveAll:JT()},pL=QT("string"),fL=QT("text");function QT(e){return{resolveAll:JT(e==="text"?mL:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],s=n.attempt(a,i,o);return i;function i(p){return c(p)?s(p):o(p)}function o(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),s(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const d=a[p];let f=-1;if(d)for(;++f<d.length;){const m=d[f];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function JT(e){return t;function t(n,r){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,r):n}}function mL(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let s=a.length,i=-1,o=0,u;for(;s--;){const c=a[s];if(typeof c=="string"){for(i=c.length;c.charCodeAt(i-1)===32;)o++,i--;if(i)break;i=-1}else if(c===-2)u=!0,o++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?i:r.start._bufferIndex+i,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const hL={42:Un,43:Un,45:Un,48:Un,49:Un,50:Un,51:Un,52:Un,53:Un,54:Un,55:Un,56:Un,57:Un,62:WT},gL={91:yO},bL={[-2]:Ju,[-1]:Ju,32:Ju},EL={35:AO,42:qo,45:[SE,qo],60:IO,61:SE,95:qo,96:yE,126:yE},xL={38:qT,92:VT},yL={[-5]:ec,[-4]:ec,[-3]:ec,33:YO,38:qT,42:ud,60:[KD,PO],91:KO,92:[wO,VT],93:Zg,95:ud,96:uO},TL={null:[ud,dL]},SL={null:[42,95]},vL={null:[]},wL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:SL,contentInitial:gL,disable:vL,document:hL,flow:EL,flowInitial:bL,insideSpan:TL,string:xL,text:yL},Symbol.toStringTag,{value:"Module"}));function NL(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},s=[];let i=[],o=[];const u={attempt:S(D),check:S(A),consume:v,enter:T,exit:N,interrupt:S(A,{interrupt:!0})},c={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:m,write:d};let p=t.tokenize.call(c,u);return t.resolveAll&&s.push(t),c;function d(U){return i=rr(i,U),x(),i[i.length-1]!==null?[]:(w(t,0),c.events=bu(s,c.events,c),c.events)}function f(U,k){return _L(m(U),k)}function m(U){return AL(i,U)}function b(){const{_bufferIndex:U,_index:k,line:j,column:W,offset:$}=r;return{_bufferIndex:U,_index:k,line:j,column:W,offset:$}}function E(U){a[U.line]=U.column,C()}function x(){let U;for(;r._index<i.length;){const k=i[r._index];if(typeof k=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<k.length;)y(k.charCodeAt(r._bufferIndex));else y(k)}}function y(U){p=p(U)}function v(U){qe(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,C()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=U}function T(U,k){const j=k||{};return j.type=U,j.start=b(),c.events.push(["enter",j,c]),o.push(j),j}function N(U){const k=o.pop();return k.end=b(),c.events.push(["exit",k,c]),k}function D(U,k){w(U,k.from)}function A(U,k){k.restore()}function S(U,k){return j;function j(W,$,ee){let me,se,xe,O;return Array.isArray(W)?le(W):"tokenize"in W?le([W]):te(W);function te(Q){return _e;function _e(ue){const X=ue!==null&&Q[ue],We=ue!==null&&Q.null,fe=[...Array.isArray(X)?X:X?[X]:[],...Array.isArray(We)?We:We?[We]:[]];return le(fe)(ue)}}function le(Q){return me=Q,se=0,Q.length===0?ee:L(Q[se])}function L(Q){return _e;function _e(ue){return O=R(),xe=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?Re():Q.tokenize.call(k?Object.assign(Object.create(c),k):c,u,ke,Re)(ue)}}function ke(Q){return U(xe,O),$}function Re(Q){return O.restore(),++se<me.length?L(me[se]):ee}}}function w(U,k){U.resolveAll&&!s.includes(U)&&s.push(U),U.resolve&&Vn(c.events,k,c.events.length-k,U.resolve(c.events.slice(k),c)),U.resolveTo&&(c.events=U.resolveTo(c.events,c))}function R(){const U=b(),k=c.previous,j=c.currentConstruct,W=c.events.length,$=Array.from(o);return{from:W,restore:ee};function ee(){r=U,c.previous=k,c.currentConstruct=j,c.events.length=W,o=$,C()}}function C(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function AL(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,s)];else{if(i=e.slice(n,a),r>-1){const o=i[0];typeof o=="string"?i[0]=o.slice(r):i.shift()}s>0&&i.push(e[a].slice(0,s))}return i}function _L(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let i;if(typeof s=="string")i=s;else switch(s){case-5:{i="\r";break}case-4:{i=`
|
|
18
|
+
`;break}case-3:{i=`\r
|
|
19
|
+
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&a)continue;i=" ";break}default:i=String.fromCharCode(s)}a=s===-2,r.push(i)}return r.join("")}function CL(e){const r={constructs:HT([wL,...(e||{}).extensions||[]]),content:a(HD),defined:[],document:a(WD),flow:a(uL),lazy:{},string:a(pL),text:a(fL)};return r;function a(s){return i;function i(o){return NL(r,s,o)}}}function kL(e){for(;!YT(e););return e}const vE=/[\0\t\n\r]/g;function IL(){let e=1,t="",n=!0,r;return a;function a(s,i,o){const u=[];let c,p,d,f,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(i||void 0).decode(s)),d=0,t="",n&&(s.charCodeAt(0)===65279&&d++,n=void 0);d<s.length;){if(vE.lastIndex=d,c=vE.exec(s),f=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(f),!c){t=s.slice(d);break}if(m===10&&d===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<f&&(u.push(s.slice(d,f)),e+=f-d),m){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const RL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function DL(e){return e.replace(RL,OL)}function OL(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),s=a===120||a===88;return GT(n.slice(s?2:1),s?16:10)}return Ei(n)||e}const eS={}.hasOwnProperty;function LL(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),FL(n)(kL(CL(n).document().write(IL()(e,t,!0))))}function FL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Pt),autolinkProtocol:R,autolinkEmail:R,atxHeading:s(H),blockQuote:s(We),characterEscape:R,characterReference:R,codeFenced:s(fe),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:s(fe,i),codeText:s(de,i),codeTextData:R,data:R,codeFlowValue:R,definition:s(Te),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:s(Se),hardBreakEscape:s(Fe),hardBreakTrailing:s(Fe),htmlFlow:s(Ke,i),htmlFlowData:R,htmlText:s(Ke,i),htmlTextData:R,image:s(Xe),label:i,link:s(Pt),listItem:s(lt),listItemValue:f,listOrdered:s(dt,d),listUnordered:s(dt),paragraph:s(Kt),reference:L,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:s(H),strong:s(it),thematicBreak:s(rt)},exit:{atxHeading:u(),atxHeadingSequence:D,autolink:u(),autolinkEmail:X,autolinkProtocol:ue,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:Q,characterReference:_e,codeFenced:u(x),codeFencedFence:E,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:C,codeIndented:u(y),codeText:u($),codeTextData:C,data:C,definition:u(),definitionDestinationString:N,definitionLabelString:v,definitionTitleString:T,emphasis:u(),hardBreakEscape:u(k),hardBreakTrailing:u(k),htmlFlow:u(j),htmlFlowData:C,htmlText:u(W),htmlTextData:C,image:u(me),label:xe,labelText:se,lineEnding:U,link:u(ee),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ke,resourceDestinationString:O,resourceTitleString:te,resource:le,setextHeading:u(w),setextHeadingLineSequence:S,setextHeadingText:A,strong:u(),thematicBreak:u()}};tS(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Z){let ie={type:"root",children:[]};const Ce={stack:[ie],tokenStack:[],config:t,enter:o,exit:c,buffer:i,resume:p,data:n},Oe=[];let Ve=-1;for(;++Ve<Z.length;)if(Z[Ve][1].type==="listOrdered"||Z[Ve][1].type==="listUnordered")if(Z[Ve][0]==="enter")Oe.push(Ve);else{const st=Oe.pop();Ve=a(Z,st,Ve)}for(Ve=-1;++Ve<Z.length;){const st=t[Z[Ve][0]];eS.call(st,Z[Ve][1].type)&&st[Z[Ve][1].type].call(Object.assign({sliceSerialize:Z[Ve][2].sliceSerialize},Ce),Z[Ve][1])}if(Ce.tokenStack.length>0){const st=Ce.tokenStack[Ce.tokenStack.length-1];(st[1]||wE).call(Ce,void 0,st[0])}for(ie.position={start:Ur(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ur(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<t.transforms.length;)ie=t.transforms[Ve](ie)||ie;return ie}function a(Z,ie,Ce){let Oe=ie-1,Ve=-1,st=!1,Rt,Ct,Nt,Lt;for(;++Oe<=Ce;){const re=Z[Oe];switch(re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{re[0]==="enter"?Ve++:Ve--,Lt=void 0;break}case"lineEndingBlank":{re[0]==="enter"&&(Rt&&!Lt&&!Ve&&!Nt&&(Nt=Oe),Lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Lt=void 0}if(!Ve&&re[0]==="enter"&&re[1].type==="listItemPrefix"||Ve===-1&&re[0]==="exit"&&(re[1].type==="listUnordered"||re[1].type==="listOrdered")){if(Rt){let Ae=Oe;for(Ct=void 0;Ae--;){const $e=Z[Ae];if($e[1].type==="lineEnding"||$e[1].type==="lineEndingBlank"){if($e[0]==="exit")continue;Ct&&(Z[Ct][1].type="lineEndingBlank",st=!0),$e[1].type="lineEnding",Ct=Ae}else if(!($e[1].type==="linePrefix"||$e[1].type==="blockQuotePrefix"||$e[1].type==="blockQuotePrefixWhitespace"||$e[1].type==="blockQuoteMarker"||$e[1].type==="listItemIndent"))break}Nt&&(!Ct||Nt<Ct)&&(Rt._spread=!0),Rt.end=Object.assign({},Ct?Z[Ct][1].start:re[1].end),Z.splice(Ct||Oe,0,["exit",Rt,re[2]]),Oe++,Ce++}if(re[1].type==="listItemPrefix"){const Ae={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};Rt=Ae,Z.splice(Oe,0,["enter",Ae,re[2]]),Oe++,Ce++,Nt=void 0,Lt=!0}}}return Z[ie][1]._spread=st,Ce}function s(Z,ie){return Ce;function Ce(Oe){o.call(this,Z(Oe),Oe),ie&&ie.call(this,Oe)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(Z,ie,Ce){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ie,Ce||void 0]),Z.position={start:Ur(ie.start),end:void 0}}function u(Z){return ie;function ie(Ce){Z&&Z.call(this,Ce),c.call(this,Ce)}}function c(Z,ie){const Ce=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==Z.type&&(ie?ie.call(this,Z,Oe[0]):(Oe[1]||wE).call(this,Z,Oe[0]));else throw new Error("Cannot close `"+Z.type+"` ("+oi({start:Z.start,end:Z.end})+"): it’s not open");Ce.position.end=Ur(Z.end)}function p(){return Yg(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(Z){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function m(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=Z}function b(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=Z}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z.replace(/(\r?\n|\r)$/g,"")}function v(Z){const ie=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ie,Ce.identifier=ur(this.sliceSerialize(Z)).toLowerCase()}function T(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Z}function N(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Z}function D(Z){const ie=this.stack[this.stack.length-1];if(!ie.depth){const Ce=this.sliceSerialize(Z).length;ie.depth=Ce}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function S(Z){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function R(Z){const Ce=this.stack[this.stack.length-1].children;let Oe=Ce[Ce.length-1];(!Oe||Oe.type!=="text")&&(Oe=Le(),Oe.position={start:Ur(Z.start),end:void 0},Ce.push(Oe)),this.stack.push(Oe)}function C(Z){const ie=this.stack.pop();ie.value+=this.sliceSerialize(Z),ie.position.end=Ur(Z.end)}function U(Z){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=ie.children[ie.children.length-1];Ce.position.end=Ur(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(R.call(this,Z),C.call(this,Z))}function k(){this.data.atHardBreak=!0}function j(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function W(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function $(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function ee(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ie,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function me(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ie,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function se(Z){const ie=this.sliceSerialize(Z),Ce=this.stack[this.stack.length-2];Ce.label=DL(ie),Ce.identifier=ur(ie).toLowerCase()}function xe(){const Z=this.stack[this.stack.length-1],ie=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Oe=Z.children;Ce.children=Oe}else Ce.alt=ie}function O(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Z}function te(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Z}function le(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function ke(Z){const ie=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ie,Ce.identifier=ur(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function Re(Z){this.data.characterReferenceType=Z.type}function Q(Z){const ie=this.sliceSerialize(Z),Ce=this.data.characterReferenceType;let Oe;Ce?(Oe=GT(ie,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Oe=Ei(ie);const Ve=this.stack[this.stack.length-1];Ve.value+=Oe}function _e(Z){const ie=this.stack.pop();ie.position.end=Ur(Z.end)}function ue(Z){C.call(this,Z);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(Z)}function X(Z){C.call(this,Z);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(Z)}function We(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function de(){return{type:"inlineCode",value:""}}function Te(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Se(){return{type:"emphasis",children:[]}}function H(){return{type:"heading",depth:0,children:[]}}function Fe(){return{type:"break"}}function Ke(){return{type:"html",value:""}}function Xe(){return{type:"image",title:null,url:"",alt:null}}function Pt(){return{type:"link",title:null,url:"",children:[]}}function dt(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function lt(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Kt(){return{type:"paragraph",children:[]}}function it(){return{type:"strong",children:[]}}function Le(){return{type:"text",value:""}}function rt(){return{type:"thematicBreak"}}}function Ur(e){return{line:e.line,column:e.column,offset:e.offset}}function tS(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?tS(e,r):ML(e,r)}}function ML(e,t){let n;for(n in t)if(eS.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function wE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+oi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+oi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+oi({start:t.start,end:t.end})+") is still open")}function PL(e){const t=this;t.parser=n;function n(r){return LL(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function jL(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function BL(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
20
|
+
`}]}function UL(e,t){const n=t.value?t.value+`
|
|
21
|
+
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function $L(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zL(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HL(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Ts(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let i,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=s+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function GL(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WL(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function nS(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&i.type==="text"?i.value+=r:a.push({type:"text",value:r}),a}function VL(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nS(e,t);const a={src:Ts(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function qL(e,t){const n={src:Ts(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function YL(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ZL(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nS(e,t);const a={href:Ts(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function KL(e,t){const n={href:Ts(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function XL(e,t,n){const r=e.all(t),a=n?QL(n):rS(t),s={},i=[];if(typeof t.checked=="boolean"){const p=r[0];let d;p&&p.type==="element"&&p.tagName==="p"?d=p:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const p=r[o];(a||o!==0||p.type!=="element"||p.tagName!=="p")&&i.push({type:"text",value:`
|
|
22
|
+
`}),p.type==="element"&&p.tagName==="p"&&!a?i.push(...p.children):i.push(p)}const u=r[r.length-1];u&&(a||u.type!=="element"||u.tagName!=="p")&&i.push({type:"text",value:`
|
|
23
|
+
`});const c={type:"element",tagName:"li",properties:s,children:i};return e.patch(t,c),e.applyData(t,c)}function QL(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=rS(n[r])}return t}function rS(e){const t=e.spread;return t??e.children.length>1}function JL(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const i=r[a];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function e3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function t3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function n3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function r3(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],i),a.push(i)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Nr(t.children[1]),u=hu(t.children[t.children.length-1]);o&&u&&(i.position={start:o,end:u}),a.push(i)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function a3(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",i=n&&n.type==="table"?n.align:void 0,o=i?i.length:t.children.length;let u=-1;const c=[];for(;++u<o;){const d=t.children[u],f={},m=i?i[u]:void 0;m&&(f.align=m);let b={type:"element",tagName:s,properties:f,children:[]};d&&(b.children=e.all(d),e.patch(d,b),b=e.applyData(d,b)),c.push(b)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,p),e.applyData(t,p)}function s3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const NE=9,AE=32;function i3(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(_E(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(_E(t.slice(a),a>0,!1)),s.join("")}function _E(e,t,n){let r=0,a=e.length;if(t){let s=e.codePointAt(r);for(;s===NE||s===AE;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(a-1);for(;s===NE||s===AE;)a--,s=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function o3(e,t){const n={type:"text",value:i3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function l3(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const u3={blockquote:jL,break:BL,code:UL,delete:$L,emphasis:zL,footnoteReference:HL,heading:GL,html:WL,imageReference:VL,image:qL,inlineCode:YL,linkReference:ZL,link:KL,listItem:XL,list:JL,paragraph:e3,root:t3,strong:n3,table:r3,tableCell:s3,tableRow:a3,text:o3,thematicBreak:l3,toml:Eo,yaml:Eo,definition:Eo,footnoteDefinition:Eo};function Eo(){}function c3(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function d3(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function p3(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||c3,r=e.options.footnoteBackLabel||d3,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const p=e.all(c),d=String(c.identifier).toUpperCase(),f=Ts(d.toLowerCase());let m=0;const b=[],E=e.footnoteCounts.get(d);for(;E!==void 0&&++m<=E;){b.length>0&&b.push({type:"text",value:" "});let v=typeof n=="string"?n:n(u,m);typeof v=="string"&&(v={type:"text",value:v}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,m),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const x=p[p.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const v=x.children[x.children.length-1];v&&v.type==="text"?v.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...b)}else p.push(...b);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(p,!0)};e.patch(c,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ba(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
24
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
25
|
+
`}]}}const cd={}.hasOwnProperty,f3={};function m3(e,t){const n=t||f3,r=new Map,a=new Map,s=new Map,i={...u3,...n.handlers},o={all:c,applyData:g3,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:i,one:u,options:n,patch:h3,wrap:E3};return $n(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const d=p.type==="definition"?r:a,f=String(p.identifier).toUpperCase();d.has(f)||d.set(f,p)}}),o;function u(p,d){const f=p.type,m=o.handlers[f];if(cd.call(o.handlers,f)&&m)return m(o,p,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in p){const{children:E,...x}=p,y=ba(x);return y.children=o.all(p),y}return ba(p)}return(o.options.unknownHandler||b3)(o,p,d)}function c(p){const d=[];if("children"in p){const f=p.children;let m=-1;for(;++m<f.length;){const b=o.one(f[m],p);if(b){if(m&&f[m-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=CE(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=CE(E.value))}Array.isArray(b)?d.push(...b):d.push(b)}}}return d}}function h3(e,t){e.position&&(t.position=q2(e))}function g3(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const i="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:i}}n.type==="element"&&s&&Object.assign(n.properties,ba(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function b3(e,t){const n=t.data||{},r="value"in t&&!(cd.call(n,"hProperties")||cd.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function E3(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
26
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
27
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
28
|
+
`}),n}function CE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function kE(e,t){const n=m3(e,t),r=n.one(e,void 0),a=p3(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
|
|
29
|
+
`},a),s}function x3(e,t){return e&&"run"in e?async function(n,r){const a=kE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return kE(n,{file:r,...e||t})}}function IE(e){if(e)throw e}var tc,RE;function y3(){if(RE)return tc;RE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},s=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var p=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!d)return!1;var f;for(f in c);return typeof f>"u"||e.call(c,f)},i=function(c,p){n&&p.name==="__proto__"?n(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},o=function(c,p){if(p==="__proto__")if(e.call(c,p)){if(r)return r(c,p).value}else return;return c[p]};return tc=function u(){var c,p,d,f,m,b,E=arguments[0],x=1,y=arguments.length,v=!1;for(typeof E=="boolean"&&(v=E,E=arguments[1]||{},x=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});x<y;++x)if(c=arguments[x],c!=null)for(p in c)d=o(E,p),f=o(c,p),E!==f&&(v&&f&&(s(f)||(m=a(f)))?(m?(m=!1,b=d&&a(d)?d:[]):b=d&&s(d)?d:{},i(E,{name:p,newValue:u(v,b,f)})):typeof f<"u"&&i(E,{name:p,newValue:f}));return E},tc}var T3=y3();const nc=Ol(T3);function dd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function S3(){const e=[],t={run:n,use:r};return t;function n(...a){let s=-1;const i=a.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);o(null,...a);function o(u,...c){const p=e[++s];let d=-1;if(u){i(u);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,p?v3(p,o)(...c):i(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function v3(e,t){let n;return r;function r(...i){const o=e.length>i.length;let u;o&&i.push(a);try{u=e.apply(this,i)}catch(c){const p=c;if(o&&n)throw p;return a(p)}o||(u&&u.then&&typeof u.then=="function"?u.then(s,a):u instanceof Error?a(u):s(u))}function a(i,...o){n||(n=!0,t(i,...o))}function s(i){a(null,i)}}const yr={basename:w3,dirname:N3,extname:A3,join:_3,sep:"/"};function w3(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Qi(e);let n=0,r=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else r<0&&(s=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else i<0&&(s=!0,i=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function N3(e){if(Qi(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function A3(e){Qi(e);let t=e.length,n=-1,r=0,a=-1,s=0,i;for(;t--;){const o=e.codePointAt(t);if(o===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),o===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function _3(...e){let t=-1,n;for(;++t<e.length;)Qi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":C3(n)}function C3(e){Qi(e);const t=e.codePointAt(0)===47;let n=k3(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function k3(e,t){let n="",r=0,a=-1,s=0,i=-1,o,u;for(;++i<=e.length;){if(i<e.length)o=e.codePointAt(i);else{if(o===47)break;o=47}if(o===47){if(!(a===i-1||s===1))if(a!==i-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),a=i,s=0;continue}}else if(n.length>0){n="",r=0,a=i,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,i):n=e.slice(a+1,i),r=i-a-1;a=i,s=0}else o===46&&s>-1?s++:s=-1}return n}function Qi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const I3={cwd:R3};function R3(){return"/"}function pd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function D3(e){if(typeof e=="string")e=new URL(e);else if(!pd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return O3(e)}function O3(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const rc=["history","path","basename","stem","extname","dirname"];class ll{constructor(t){let n;t?pd(t)?n={path:t}:typeof t=="string"||L3(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":I3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<rc.length;){const s=rc[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)rc.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?yr.basename(this.path):void 0}set basename(t){sc(t,"basename"),ac(t,"basename"),this.path=yr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yr.dirname(this.path):void 0}set dirname(t){DE(this.basename,"dirname"),this.path=yr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yr.extname(this.path):void 0}set extname(t){if(ac(t,"extname"),DE(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){pd(t)&&(t=D3(t)),sc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yr.basename(this.path,this.extname):void 0}set stem(t){sc(t,"stem"),ac(t,"stem"),this.path=yr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new An(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ac(e,t){if(e&&e.includes(yr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yr.sep+"`")}function sc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function DE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function L3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const F3=(function(e){const r=this.constructor.prototype,a=r[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),M3={}.hasOwnProperty;class Kg extends F3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=S3()}copy(){const t=new Kg;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(nc(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(lc("data",this.frozen),this.namespace[t]=n,this):M3.call(this.namespace,t)&&this.namespace[t]||void 0:t?(lc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=xo(t),r=this.parser||this.Parser;return ic("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ic("process",this.parser||this.Parser),oc("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,i){const o=xo(t),u=r.parse(o);r.run(u,o,function(p,d,f){if(p||!d||!f)return c(p);const m=d,b=r.stringify(m,f);j3(b)?f.value=b:f.result=b,c(p,f)});function c(p,d){p||!d?i(p):s?s(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),ic("processSync",this.parser||this.Parser),oc("processSync",this.compiler||this.Compiler),this.process(t,a),LE("processSync","process",n),r;function a(s,i){n=!0,IE(s),r=i}}run(t,n,r){OE(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(i,o){const u=xo(n);a.run(t,u,c);function c(p,d,f){const m=d||t;p?o(p):i?i(m):r(void 0,m,f)}}}runSync(t,n){let r=!1,a;return this.run(t,n,s),LE("runSync","run",r),a;function s(i,o){IE(i),a=o,r=!0}}stringify(t,n){this.freeze();const r=xo(n),a=this.compiler||this.Compiler;return oc("stringify",a),OE(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(lc("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[p,...d]=c;u(p,d)}else i(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function i(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(a.settings=nc(!0,a.settings,c.settings))}function o(c){let p=-1;if(c!=null)if(Array.isArray(c))for(;++p<c.length;){const d=c[p];s(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,p){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...p]);else if(p.length>0){let[m,...b]=p;const E=r[f][1];dd(E)&&dd(m)&&(m=nc(!0,E,m)),r[f]=[c,m,...b]}}}}const aS=new Kg().freeze();function ic(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function oc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function OE(e){if(!dd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function LE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xo(e){return P3(e)?e:new ll(e)}function P3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function j3(e){return typeof e=="string"||B3(e)}function B3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const U3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",FE=[],ME={allowDangerousHtml:!0},$3=/^(https?|ircs?|mailto|xmpp)$/i,z3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function H3(e){const t=G3(e),n=W3(e);return V3(t.runSync(t.parse(n),n),e)}function G3(e){const t=e.rehypePlugins||FE,n=e.remarkPlugins||FE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ME}:ME;return aS().use(PL).use(n).use(x3,r).use(t)}function W3(e){const t=e.children||"",n=new ll;return typeof t=="string"&&(n.value=t),n}function V3(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,s=t.disallowedElements,i=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||q3;for(const p of z3)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+U3+p.id,void 0);return $n(e,c),yD(e,{Fragment:l.Fragment,components:a,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0});function c(p,d,f){if(p.type==="raw"&&f&&typeof d=="number")return i?f.children.splice(d,1):f.children[d]={type:"text",value:p.value},d;if(p.type==="element"){let m;for(m in Qu)if(Object.hasOwn(Qu,m)&&Object.hasOwn(p.properties,m)){const b=p.properties[m],E=Qu[m];(E===null||E.includes(p.tagName))&&(p.properties[m]=u(String(b||""),m,p))}}if(p.type==="element"){let m=n?!n.includes(p.tagName):s?s.includes(p.tagName):!1;if(!m&&r&&typeof d=="number"&&(m=!r(p,d,f)),m&&f&&typeof d=="number")return o&&p.children?f.children.splice(d,1,...p.children):f.children.splice(d,1),d}}}function q3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||$3.test(e.slice(0,t))?e:""}function ul(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Y3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Z3(e,t,n){const a=Pi((n||{}).ignore||[]),s=K3(t);let i=-1;for(;++i<s.length;)qd(e,"text",o);function o(c,p){let d=-1,f;for(;++d<p.length;){const m=p[d],b=f?f.children:void 0;if(a(m,b?b.indexOf(m):void 0,f))return;f=m}if(f)return u(c,p)}function u(c,p){const d=p[p.length-1],f=s[i][0],m=s[i][1];let b=0;const x=d.children.indexOf(c);let y=!1,v=[];f.lastIndex=0;let T=f.exec(c.value);for(;T;){const N=T.index,D={index:T.index,input:T.input,stack:[...p,c]};let A=m(...T,D);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=N+1:(b!==N&&v.push({type:"text",value:c.value.slice(b,N)}),Array.isArray(A)?v.push(...A):A&&v.push(A),b=N+T[0].length,y=!0),!f.global)break;T=f.exec(c.value)}return y?(b<c.value.length&&v.push({type:"text",value:c.value.slice(b)}),d.children.splice(x,1,...v)):v=[c],x+v.length}}function K3(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([X3(a[0]),Q3(a[1])])}return t}function X3(e){return typeof e=="string"?new RegExp(Y3(e),"g"):e}function Q3(e){return typeof e=="function"?e:function(){return e}}const uc="phrasing",cc=["autolink","link","image","label"];function J3(){return{transforms:[i6],enter:{literalAutolink:t6,literalAutolinkEmail:dc,literalAutolinkHttp:dc,literalAutolinkWww:dc},exit:{literalAutolink:s6,literalAutolinkEmail:a6,literalAutolinkHttp:n6,literalAutolinkWww:r6}}}function e6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:uc,notInConstruct:cc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:uc,notInConstruct:cc},{character:":",before:"[ps]",after:"\\/",inConstruct:uc,notInConstruct:cc}]}}function t6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function dc(e){this.config.enter.autolinkProtocol.call(this,e)}function n6(e){this.config.exit.autolinkProtocol.call(this,e)}function r6(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function a6(e){this.config.exit.autolinkEmail.call(this,e)}function s6(e){this.exit(e)}function i6(e){Z3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,o6],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,l6]],{ignore:["link","linkReference"]})}function o6(e,t,n,r,a){let s="";if(!sS(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!u6(n)))return!1;const i=c6(n+r);if(!i[0])return!1;const o={type:"link",title:null,url:s+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function l6(e,t,n,r){return!sS(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function u6(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function c6(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=ul(e,"(");let s=ul(e,")");for(;r!==-1&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function sS(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ea(n)||gu(n))&&(!t||n!==47)}iS.peek=x6;function d6(){this.buffer()}function p6(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function f6(){this.buffer()}function m6(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function h6(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ur(this.sliceSerialize(e)).toLowerCase(),n.label=t}function g6(e){this.exit(e)}function b6(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ur(this.sliceSerialize(e)).toLowerCase(),n.label=t}function E6(e){this.exit(e)}function x6(){return"["}function iS(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const i=n.enter("footnoteReference"),o=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),i(),s+=a.move("]"),s}function y6(){return{enter:{gfmFootnoteCallString:d6,gfmFootnoteCall:p6,gfmFootnoteDefinitionLabelString:f6,gfmFootnoteDefinition:m6},exit:{gfmFootnoteCallString:h6,gfmFootnoteCall:g6,gfmFootnoteDefinitionLabelString:b6,gfmFootnoteDefinition:E6}}}function T6(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:iS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,s,i){const o=s.createTracker(i);let u=o.move("[^");const c=s.enter("footnoteDefinition"),p=s.enter("label");return u+=o.move(s.safe(s.associationId(r),{before:u,after:"]"})),p(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?`
|
|
30
|
+
`:" ")+s.indentLines(s.containerFlow(r,o.current()),t?oS:S6))),c(),u}}function S6(e,t,n){return t===0?e:oS(e,t,n)}function oS(e,t,n){return(n?"":" ")+e}const v6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];lS.peek=C6;function w6(){return{canContainEols:["delete"],enter:{strikethrough:A6},exit:{strikethrough:_6}}}function N6(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:v6}],handlers:{delete:lS}}}function A6(e){this.enter({type:"delete",children:[]},e)}function _6(e){this.exit(e)}function lS(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),s(),i}function C6(){return"~"}function k6(e){return e.length}function I6(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||k6,s=[],i=[],o=[],u=[];let c=0,p=-1;for(;++p<e.length;){const E=[],x=[];let y=-1;for(e[p].length>c&&(c=e[p].length);++y<e[p].length;){const v=R6(e[p][y]);if(n.alignDelimiters!==!1){const T=a(v);x[y]=T,(u[y]===void 0||T>u[y])&&(u[y]=T)}E.push(v)}i[p]=E,o[p]=x}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)s[d]=PE(r[d]);else{const E=PE(r);for(;++d<c;)s[d]=E}d=-1;const f=[],m=[];for(;++d<c;){const E=s[d];let x="",y="";E===99?(x=":",y=":"):E===108?x=":":E===114&&(y=":");let v=n.alignDelimiters===!1?1:Math.max(1,u[d]-x.length-y.length);const T=x+"-".repeat(v)+y;n.alignDelimiters!==!1&&(v=x.length+v+y.length,v>u[d]&&(u[d]=v),m[d]=v),f[d]=T}i.splice(1,0,f),o.splice(1,0,m),p=-1;const b=[];for(;++p<i.length;){const E=i[p],x=o[p];d=-1;const y=[];for(;++d<c;){const v=E[d]||"";let T="",N="";if(n.alignDelimiters!==!1){const D=u[d]-(x[d]||0),A=s[d];A===114?T=" ".repeat(D):A===99?D%2?(T=" ".repeat(D/2+.5),N=" ".repeat(D/2-.5)):(T=" ".repeat(D/2),N=T):N=" ".repeat(D)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(T),y.push(v),n.alignDelimiters!==!1&&y.push(N),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&y.push("|")}b.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return b.join(`
|
|
31
|
+
`)}function R6(e){return e==null?"":String(e)}function PE(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function D6(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const i=n.indentLines(n.containerFlow(e,s.current()),O6);return a(),i}function O6(e,t,n){return">"+(n?"":" ")+e}function L6(e,t){return jE(e,t.inConstruct,!0)&&!jE(e,t.notInConstruct,!1)}function jE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function BE(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
32
|
+
`&&L6(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
33
|
+
`}function F6(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++s>i&&(i=s):s=1,a=r+t.length,r=n.indexOf(t,a);return i}function M6(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function P6(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function j6(e,t,n,r){const a=P6(n),s=e.value||"",i=a==="`"?"GraveAccent":"Tilde";if(M6(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(s,B6);return d(),f}const o=n.createTracker(r),u=a.repeat(Math.max(F6(s,a)+1,3)),c=n.enter("codeFenced");let p=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${i}`);p+=o.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${i}`);p+=o.move(" "),p+=o.move(n.safe(e.meta,{before:p,after:`
|
|
34
|
+
`,encode:["`"],...o.current()})),d()}return p+=o.move(`
|
|
35
|
+
`),s&&(p+=o.move(s+`
|
|
36
|
+
`)),p+=o.move(u),c(),p}function B6(e,t,n){return(n?"":" ")+e}function Xg(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function U6(e,t,n,r){const a=Xg(n),s=a==='"'?"Quote":"Apostrophe",i=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
37
|
+
`,...u.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=u.move(" "+a),c+=u.move(n.safe(e.title,{before:c,after:a,...u.current()})),c+=u.move(a),o()),i(),c}function $6(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Si(e){return"&#x"+e.toString(16).toUpperCase()+";"}function cl(e,t,n){const r=as(e),a=as(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}uS.peek=z6;function uS(e,t,n,r){const a=$6(n),s=n.enter("emphasis"),i=n.createTracker(r),o=i.move(a);let u=i.move(n.containerPhrasing(e,{after:a,before:o,...i.current()}));const c=u.charCodeAt(0),p=cl(r.before.charCodeAt(r.before.length-1),c,a);p.inside&&(u=Si(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=cl(r.after.charCodeAt(0),d,a);f.inside&&(u=u.slice(0,-1)+Si(d));const m=i.move(a);return s(),n.attentionEncodeSurroundingInfo={after:f.outside,before:p.outside},o+u+m}function z6(e,t,n){return n.options.emphasis||"*"}function H6(e,t){let n=!1;return $n(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Jo}),!!((!e.depth||e.depth<3)&&Yg(e)&&(t.options.setext||n))}function G6(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(H6(e,n)){const p=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...s.current(),before:`
|
|
38
|
+
`,after:`
|
|
39
|
+
`});return d(),p(),f+`
|
|
40
|
+
`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
41
|
+
`))+1))}const i="#".repeat(a),o=n.enter("headingAtx"),u=n.enter("phrasing");s.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
42
|
+
`,...s.current()});return/^[\t ]/.test(c)&&(c=Si(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),u(),o(),c}cS.peek=W6;function cS(e){return e.value||""}function W6(){return"<"}dS.peek=V6;function dS(e,t,n,r){const a=Xg(n),s=a==='"'?"Quote":"Apostrophe",i=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=u.move(" "+a),c+=u.move(n.safe(e.title,{before:c,after:a,...u.current()})),c+=u.move(a),o()),c+=u.move(")"),i(),c}function V6(){return"!"}pS.peek=q6;function pS(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let i=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const c=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),i();const p=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return i(),n.stack=p,s(),a==="full"||!c||c!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function q6(){return"!"}fS.peek=Y6;function fS(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const i=n.unsafe[s],o=n.compilePattern(i);let u;if(i.atBreak)for(;u=o.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return a+r+a}function Y6(){return"`"}function mS(e,t){const n=Yg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}hS.peek=Z6;function hS(e,t,n,r){const a=Xg(n),s=a==='"'?"Quote":"Apostrophe",i=n.createTracker(r);let o,u;if(mS(e,n)){const p=n.stack;n.stack=[],o=n.enter("autolink");let d=i.move("<");return d+=i.move(n.containerPhrasing(e,{before:d,after:">",...i.current()})),d+=i.move(">"),o(),n.stack=p,d}o=n.enter("link"),u=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(u=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),u(),e.title&&(u=n.enter(`title${s}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),u()),c+=i.move(")"),o(),c}function Z6(e,t,n){return mS(e,n)?"<":"["}gS.peek=K6;function gS(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let i=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),i();const p=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return i(),n.stack=p,s(),a==="full"||!c||c!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function K6(){return"["}function Qg(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function X6(e){const t=Qg(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Q6(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function bS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function J6(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let i=e.ordered?Q6(n):Qg(n);const o=e.ordered?i==="."?")":".":X6(n);let u=t&&n.bulletLastUsed?i===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),bS(n)===i&&p){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(i=o),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=s,a(),c}function e4(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function t4(e,t,n,r){const a=e4(n);let s=n.bulletCurrent||Qg(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let i=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const o=n.createTracker(r);o.move(s+" ".repeat(i-s.length)),o.shift(i);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),p);return u(),c;function p(d,f,m){return f?(m?"":" ".repeat(i))+d:(m?s:s+" ".repeat(i-s.length))+d}}function n4(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),i=n.containerPhrasing(e,r);return s(),a(),i}const r4=Pi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function a4(e,t,n,r){return(e.children.some(function(i){return r4(i)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function s4(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ES.peek=i4;function ES(e,t,n,r){const a=s4(n),s=n.enter("strong"),i=n.createTracker(r),o=i.move(a+a);let u=i.move(n.containerPhrasing(e,{after:a,before:o,...i.current()}));const c=u.charCodeAt(0),p=cl(r.before.charCodeAt(r.before.length-1),c,a);p.inside&&(u=Si(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=cl(r.after.charCodeAt(0),d,a);f.inside&&(u=u.slice(0,-1)+Si(d));const m=i.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:f.outside,before:p.outside},o+u+m}function i4(e,t,n){return n.options.strong||"*"}function o4(e,t,n,r){return n.safe(e.value,r)}function l4(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function u4(e,t,n){const r=(bS(n)+(n.options.ruleSpaces?" ":"")).repeat(l4(n));return n.options.ruleSpaces?r.slice(0,-1):r}const xS={blockquote:D6,break:BE,code:j6,definition:U6,emphasis:uS,hardBreak:BE,heading:G6,html:cS,image:dS,imageReference:pS,inlineCode:fS,link:hS,linkReference:gS,list:J6,listItem:t4,paragraph:n4,root:a4,strong:ES,text:o4,thematicBreak:u4};function c4(){return{enter:{table:d4,tableData:UE,tableHeader:UE,tableRow:f4},exit:{codeText:m4,table:p4,tableData:pc,tableHeader:pc,tableRow:pc}}}function d4(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function p4(e){this.exit(e),this.data.inTable=void 0}function f4(e){this.enter({type:"tableRow",children:[]},e)}function pc(e){this.exit(e)}function UE(e){this.enter({type:"tableCell",children:[]},e)}function m4(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,h4));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function h4(e,t){return t==="|"?t:e}function g4(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
43
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:i,tableCell:u,tableRow:o}};function i(m,b,E,x){return c(p(m,E,x),m.align)}function o(m,b,E,x){const y=d(m,E,x),v=c([y]);return v.slice(0,v.indexOf(`
|
|
44
|
+
`))}function u(m,b,E,x){const y=E.enter("tableCell"),v=E.enter("phrasing"),T=E.containerPhrasing(m,{...x,before:s,after:s});return v(),y(),T}function c(m,b){return I6(m,{align:b,alignDelimiters:r,padding:n,stringLength:a})}function p(m,b,E){const x=m.children;let y=-1;const v=[],T=b.enter("table");for(;++y<x.length;)v[y]=d(x[y],b,E);return T(),v}function d(m,b,E){const x=m.children;let y=-1;const v=[],T=b.enter("tableRow");for(;++y<x.length;)v[y]=u(x[y],m,b,E);return T(),v}function f(m,b,E){let x=xS.inlineCode(m,b,E);return E.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function b4(){return{exit:{taskListCheckValueChecked:$E,taskListCheckValueUnchecked:$E,paragraph:x4}}}function E4(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:y4}}}function $E(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function x4(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let s=-1,i;for(;++s<a.length;){const o=a[s];if(o.type==="paragraph"){i=o;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function y4(e,t,n,r){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(i);let u=xS.listItem(e,t,n,{...r,...o.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(p){return p+i}}function T4(){return[J3(),y6(),w6(),c4(),b4()]}function S4(e){return{extensions:[e6(),T6(e),N6(),g4(e),E4()]}}const v4={tokenize:k4,partial:!0},yS={tokenize:I4,partial:!0},TS={tokenize:R4,partial:!0},SS={tokenize:D4,partial:!0},w4={tokenize:O4,partial:!0},vS={name:"wwwAutolink",tokenize:_4,previous:NS},wS={name:"protocolAutolink",tokenize:C4,previous:AS},Mr={name:"emailAutolink",tokenize:A4,previous:_S},Ar={};function N4(){return{text:Ar}}let ia=48;for(;ia<123;)Ar[ia]=Mr,ia++,ia===58?ia=65:ia===91&&(ia=97);Ar[43]=Mr;Ar[45]=Mr;Ar[46]=Mr;Ar[95]=Mr;Ar[72]=[Mr,wS];Ar[104]=[Mr,wS];Ar[87]=[Mr,vS];Ar[119]=[Mr,vS];function A4(e,t,n){const r=this;let a,s;return i;function i(d){return!fd(d)||!_S.call(r,r.previous)||Jg(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return fd(d)?(e.consume(d),o):d===64?(e.consume(d),u):n(d)}function u(d){return d===46?e.check(w4,p,c)(d):d===45||d===95||In(d)?(s=!0,e.consume(d),u):p(d)}function c(d){return e.consume(d),a=!0,u}function p(d){return s&&a&&Fn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function _4(e,t,n){const r=this;return a;function a(i){return i!==87&&i!==119||!NS.call(r,r.previous)||Jg(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(v4,e.attempt(yS,e.attempt(TS,s),n),n)(i))}function s(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function C4(e,t,n){const r=this;let a="",s=!1;return i;function i(d){return(d===72||d===104)&&AS.call(r,r.previous)&&!Jg(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(Fn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(d),u}return n(d)}function u(d){return d===47?(e.consume(d),s?c:(s=!0,u)):n(d)}function c(d){return d===null||ol(d)||Ut(d)||Ea(d)||gu(d)?n(d):e.attempt(yS,e.attempt(TS,p),n)(d)}function p(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function k4(e,t,n){let r=0;return a;function a(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),a):i===46&&r===3?(e.consume(i),s):n(i)}function s(i){return i===null?n(i):t(i)}}function I4(e,t,n){let r,a,s;return i;function i(c){return c===46||c===95?e.check(SS,u,o)(c):c===null||Ut(c)||Ea(c)||c!==45&&gu(c)?u(c):(s=!0,e.consume(c),i)}function o(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),i}function u(c){return a||r||!s?n(c):t(c)}}function R4(e,t){let n=0,r=0;return a;function a(i){return i===40?(n++,e.consume(i),a):i===41&&r<n?s(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(SS,t,s)(i):i===null||Ut(i)||Ea(i)?t(i):(e.consume(i),a)}function s(i){return i===41&&r++,e.consume(i),a}}function D4(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),s):o===93?(e.consume(o),a):o===60||o===null||Ut(o)||Ea(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||Ut(o)||Ea(o)?t(o):r(o)}function s(o){return Fn(o)?i(o):n(o)}function i(o){return o===59?(e.consume(o),r):Fn(o)?(e.consume(o),i):n(o)}}function O4(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return In(s)?n(s):t(s)}}function NS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ut(e)}function AS(e){return!Fn(e)}function _S(e){return!(e===47||fd(e))}function fd(e){return e===43||e===45||e===46||e===95||In(e)}function Jg(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const L4={tokenize:z4,partial:!0};function F4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:B4,continuation:{tokenize:U4},exit:$4}},text:{91:{name:"gfmFootnoteCall",tokenize:j4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:M4,resolveTo:P4}}}}function M4(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const u=r.events[a][1];if(u.type==="labelImage"){i=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!i||!i._balanced)return n(u);const c=ur(r.sliceSerialize({start:i.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function P4(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",i,t],["exit",i,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function j4(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,i;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(s>999||d===93&&!i||d===null||d===91||Ut(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(ur(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ut(d)||(i=!0),s++,e.consume(d),d===92?p:c}function p(d){return d===91||d===92||d===93?(e.consume(d),s++,c):c(d)}}function B4(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,i=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(i>999||b===93&&!o||b===null||b===91||Ut(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return s=ur(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ut(b)||(o=!0),i++,e.consume(b),b===92?d:p}function d(b){return b===91||b===92||b===93?(e.consume(b),i++,p):p(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(s)||a.push(s),Tt(e,m,"gfmFootnoteDefinitionWhitespace")):n(b)}function m(b){return t(b)}}function U4(e,t,n){return e.check(Xi,t,e.attempt(L4,t,n))}function $4(e){e.exit("gfmFootnoteDefinition")}function z4(e,t,n){const r=this;return Tt(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(s):n(s)}}function H4(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(i,o){let u=-1;for(;++u<i.length;)if(i[u][0]==="enter"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._close){let c=u;for(;c--;)if(i[c][0]==="exit"&&i[c][1].type==="strikethroughSequenceTemporary"&&i[c][1]._open&&i[u][1].end.offset-i[u][1].start.offset===i[c][1].end.offset-i[c][1].start.offset){i[u][1].type="strikethroughSequence",i[c][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},i[c][1].start),end:Object.assign({},i[u][1].end)},d={type:"strikethroughText",start:Object.assign({},i[c][1].end),end:Object.assign({},i[u][1].start)},f=[["enter",p,o],["enter",i[c][1],o],["exit",i[c][1],o],["enter",d,o]],m=o.parser.constructs.insideSpan.null;m&&Vn(f,f.length,0,bu(m,i.slice(c+1,u),o)),Vn(f,f.length,0,[["exit",d,o],["enter",i[u][1],o],["exit",i[u][1],o],["exit",p,o]]),Vn(i,c-1,u-c+3,f),u=c+f.length-2;break}}for(u=-1;++u<i.length;)i[u][1].type==="strikethroughSequenceTemporary"&&(i[u][1].type="data");return i}function s(i,o,u){const c=this.previous,p=this.events;let d=0;return f;function f(b){return c===126&&p[p.length-1][1].type!=="characterEscape"?u(b):(i.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const E=as(c);if(b===126)return d>1?u(b):(i.consume(b),d++,m);if(d<2&&!n)return u(b);const x=i.exit("strikethroughSequenceTemporary"),y=as(b);return x._open=!y||y===2&&!!E,x._close=!E||E===2&&!!y,o(b)}}}class G4{constructor(){this.map=[]}add(t,n,r){W4(this,t,n,r)}consume(t){if(this.map.sort(function(s,i){return s[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const s of a)t.push(s);a=r.pop()}this.map.length=0}}function W4(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function V4(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function q4(){return{flow:{null:{name:"table",tokenize:Y4,resolveAll:Z4}}}}function Y4(e,t,n){const r=this;let a=0,s=0,i;return o;function o(C){let U=r.events.length-1;for(;U>-1;){const W=r.events[U][1].type;if(W==="lineEnding"||W==="linePrefix")U--;else break}const k=U>-1?r.events[U][1].type:null,j=k==="tableHead"||k==="tableRow"?A:u;return j===A&&r.parser.lazy[r.now().line]?n(C):j(C)}function u(C){return e.enter("tableHead"),e.enter("tableRow"),c(C)}function c(C){return C===124||(i=!0,s+=1),p(C)}function p(C){return C===null?n(C):qe(C)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),m):n(C):gt(C)?Tt(e,p,"whitespace")(C):(s+=1,i&&(i=!1,a+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),i=!0,p):(e.enter("data"),d(C)))}function d(C){return C===null||C===124||Ut(C)?(e.exit("data"),p(C)):(e.consume(C),C===92?f:d)}function f(C){return C===92||C===124?(e.consume(C),d):d(C)}function m(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),i=!1,gt(C)?Tt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):b(C))}function b(C){return C===45||C===58?x(C):C===124?(i=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),E):D(C)}function E(C){return gt(C)?Tt(e,x,"whitespace")(C):x(C)}function x(C){return C===58?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),y):C===45?(s+=1,y(C)):C===null||qe(C)?N(C):D(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),v(C)):D(C)}function v(C){return C===45?(e.consume(C),v):C===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(C))}function T(C){return gt(C)?Tt(e,N,"whitespace")(C):N(C)}function N(C){return C===124?b(C):C===null||qe(C)?!i||a!==s?D(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):D(C)}function D(C){return n(C)}function A(C){return e.enter("tableRow"),S(C)}function S(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),S):C===null||qe(C)?(e.exit("tableRow"),t(C)):gt(C)?Tt(e,S,"whitespace")(C):(e.enter("data"),w(C))}function w(C){return C===null||C===124||Ut(C)?(e.exit("data"),S(C)):(e.consume(C),C===92?R:w)}function R(C){return C===92||C===124?(e.consume(C),w):w(C)}}function Z4(e,t){let n=-1,r=!0,a=0,s=[0,0,0,0],i=[0,0,0,0],o=!1,u=0,c,p,d;const f=new G4;for(;++n<e.length;){const m=e[n],b=m[1];m[0]==="enter"?b.type==="tableHead"?(o=!1,u!==0&&(zE(f,t,u,c,p),p=void 0,u=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",c,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],i=[0,n+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",p,t]])),a=b.type==="tableDelimiterRow"?2:p?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(s[1]!==0&&(i[0]=i[1],d=yo(f,t,s,a,void 0,d),s=[0,0,0,0]),i[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(i[0]=i[1],d=yo(f,t,s,a,void 0,d)),s=i,i=[s[1],n,0,0])):b.type==="tableHead"?(o=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,s[1]!==0?(i[0]=i[1],d=yo(f,t,s,a,n,d)):i[1]!==0&&(d=yo(f,t,i,a,n,d)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(i[3]=n)}for(u!==0&&zE(f,t,u,c,p),f.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=V4(t.events,n))}return e}function yo(e,t,n,r,a,s){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(s.end=Object.assign({},za(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=za(t.events,n[1]);if(s={type:i,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const c=za(t.events,n[2]),p=za(t.events,n[3]),d={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],m=t.events[n[3]];if(f[1].end=Object.assign({},m[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(s.end=Object.assign({},za(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function zE(e,t,n,r,a){const s=[],i=za(t.events,n);a&&(a.end=Object.assign({},i),s.push(["exit",a,t])),r.end=Object.assign({},i),s.push(["exit",r,t]),e.add(n+1,0,s)}function za(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const K4={name:"tasklistCheck",tokenize:Q4};function X4(){return{text:{91:K4}}}function Q4(e,t,n){const r=this;return a;function a(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return Ut(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),i):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),i):n(u)}function i(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return qe(u)?t(u):gt(u)?e.check({tokenize:J4},t,n)(u):n(u)}}function J4(e,t,n){return Tt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function eF(e){return HT([N4(),F4(),H4(e),q4(),X4()])}const tF={};function nF(e){const t=this,n=e||tF,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(eF(n)),s.push(T4()),i.push(S4(n))}const rF=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,aF=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,sF=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{$n(n,"blockquote",(r,a,s)=>{let i="",o="",u=!0,c=r.children.map(p=>{if(u&&p.type==="paragraph"){const d=p.children[0],f=d.type==="text"?d.value:"",m=e?aF:rF,b=f.match(m);if(b&&(u=!1,i=b[1].toLocaleLowerCase(),o=e&&b[2]||i.toLocaleUpperCase(),f.includes(`
|
|
45
|
+
`)&&(p.children[0]={type:"text",value:f.replace(m,"").replace(/^\n+/,"")}),!f.includes(`
|
|
46
|
+
`))){const E=[];p.children.forEach((x,y)=>{y!=0&&(y==1&&x.type==="break"||E.push(x))}),p.children=[...E]}}return p});i&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${i}`,dir:"auto"}},c.unshift({type:"paragraph",children:[iF(i),{type:"text",value:o.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...c]})};function iF(e){let t=oF[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const oF={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function lF(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function CS(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?CS(t.parentElement):null}function uF(e){var t=n=>{var r=CS(n.target);r&&(r.classList.add("active"),lF(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};g.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}var cF=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],dF=e=>e;const pF=at.forwardRef((e,t)=>{var n=e.prefixCls,r=n===void 0?"wmde-markdown wmde-markdown-color":n,a=e.className,s=e.source,i=e.style;e.disableCopy;var o=e.skipHtml,u=o===void 0?!0:o,c=e.onScroll,p=e.onMouseOver,d=e.pluginsFilter;e.rehypeRewrite;var f=e.wrapperElement,m=f===void 0?{}:f,b=e.warpperElement,E=b===void 0?{}:b,x=e.urlTransform,y=yi(e,cF),v=at.useRef(null);g.useImperativeHandle(t,()=>ht({},e,{mdp:v}),[v,e]);var T=(r||"")+" "+(a||"");uF(v);var N=[...y.rehypePlugins||[]],D={allowElement:(w,R,C)=>y.allowElement?y.allowElement(w,R,C):/^[A-Za-z0-9]+$/.test(w.tagName)};u||N.push(PT);var A=[sF,...y.remarkPlugins||[],nF],S=ht({},E,m);return l.jsx("div",ht({ref:v,onScroll:c,onMouseOver:p},S,{className:T,style:i,children:l.jsx(H3,ht({},D,y,{skipHtml:!u,urlTransform:x||dF,rehypePlugins:d?d("rehype",N):N,remarkPlugins:d?d("remark",A):A,children:s||""}))}))});var fF=function(t){return n=>{$n(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=ht({},r.properties,{"data-meta":String(r.data.meta)}))})}},mF=function(t){return n=>{$n(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var a=r.properties.dataMeta;typeof a=="string"&&(r.data.meta=a),delete r.properties.dataMeta}})}};const hF=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,gF=Object.hasOwnProperty;class bF{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=EF(t,n===!0);const s=a;for(;gF.call(r.occurrences,a);)r.occurrences[s]++,a=s+"-"+r.occurrences[s];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}}function EF(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(hF,"").replace(/ /g,"-"))}function kS(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const xF={},HE=new bF;function yF(e){const n=(e||xF).prefix||"";return function(r){HE.reset(),$n(r,"element",function(a){kS(a)&&!a.properties.id&&(a.properties.id=n+HE.slug(Wa(a)))})}}const IS=(function(e){if(e==null)return vF;if(typeof e=="string")return SF(e);if(typeof e=="object")return TF(e);if(typeof e=="function")return eb(e);throw new Error("Expected function, string, or array as `test`")});function TF(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=IS(e[n]);return eb(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function SF(e){return eb(t);function t(n){return n.tagName===e}}function eb(e){return t;function t(n,r,a){return!!(wF(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function vF(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function wF(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const GE={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},NF={};function AF(e){const t=e||NF;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",s=t.content,i=t.group,o=IS(t.test);let u;return a==="after"||a==="before"?u=p:a==="wrap"?u=d:(u=c,n||(n={ariaHidden:"true",tabIndex:-1})),function(f){$n(f,"element",function(m,b,E){if(kS(m)&&m.properties.id&&o(m,b,E))return Object.assign(m.properties,To(r,m)),u(m,b,E)})};function c(f){const m=WE(s||GE,f);return f.children[a==="prepend"?"unshift":"push"](fc(f,To(n,f),m)),[Js]}function p(f,m,b){if(typeof m!="number"||!b)return;const E=WE(s||GE,f),x=fc(f,To(n,f),E);let y=a==="before"?[x,f]:[f,x];if(i){const v=RS(i,f);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=y,y=[v])}return b.children.splice(m,1,...y),[Js,m+y.length]}function d(f){let m=f.children,b=[];return typeof s=="function"?(m=[],b=s(f)):s&&(b=tb(s)),f.children=[fc(f,To(n,f),Array.isArray(b)?[...m,...b]:[...m,b])],[Js]}}function tb(e){return ba(e)}function fc(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function WE(e,t){const n=RS(e,t);return Array.isArray(n)?n:[n]}function RS(e,t){return typeof e=="function"?e(t):tb(e)}function To(e,t){return typeof e=="function"?e(t):e?tb(e):{}}const _F=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{$n(r,(a,s,i)=>{if(a.type==="element"||a.type==="root"){let o=!1;a.children=a.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^<!--(.*?)-->/,"$1"),c===t)return o=!0,!1;if(c===n)return o=!1,!1}return!o})}})}};var CF={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function kF(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var IF=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var s=n.children&&n.children[0];s&&s.properties&&s.properties.ariaHidden==="true"&&(s.properties=ht({class:"anchor"},s.properties),s.children=[CF])}if(n.type==="element"&&n.tagName==="pre"&&!e){var i=Y1(n.children);n.children.push(kF(i))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},RF=[yF,AF,_F];const DF=at.forwardRef((e,t)=>{var n,r=[fF,PT,mF,...RF,[Vk,{rewrite:IF((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Kk,{properties:"attr"}],...e.rehypePlugins||[],[F1,{ignoreMissing:!0}]];return l.jsx(pF,ht({},e,{rehypePlugins:r,ref:t}))});function OF(e,t){return t||(t=e.slice(0)),e.raw=t,e}const LF={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},FF="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",MF=/-[a-z]/g,PF=/%c(?:([-+])(\d+))?/g,jF=/%x/g,BF={2:!0,1:!1,0:null},UF={};function $F(e,t){const n=t||UF,r=n.onerror,a=e instanceof ll?e:new ll(e),s=n.fragment?V2:W2,i=String(a),o=s(i,{sourceCodeLocationInfo:!0,onParseError:n.onerror?u:null,scriptingEnabled:!1});return tT(o,{file:a,space:n.space,verbose:n.verbose});function u(c){const p=c.code,d=zF(p),f=n[d],m=f??!0,b=typeof m=="number"?m:m?1:0;if(b){const x=LF[d],y=new An(E(x.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:p,source:"hast-util-from-html"});a.path&&(y.file=a.path,y.name=a.path+":"+y.name),y.fatal=BF[b],y.note=E(x.description),y.url=x.url===!1?void 0:FF+p,r(y)}function E(x){return x.replace(PF,y).replace(jF,v);function y(T,N,D){const A=(D?Number.parseInt(D,10):0)*(N==="-"?-1:1),S=i.charAt(c.startOffset+A);return GF(S)}function v(){return WF(i.charCodeAt(c.startOffset))}}}}function zF(e){return e.replace(MF,HF)}function HF(e){return e.charAt(1).toUpperCase()}function GF(e){return e==="`"?"` ` `":e}function WF(e){return"0x"+e.toString(16).toUpperCase()}function VF(e){const t=this,{emitParseErrors:n,...r}={...t.data("settings"),...e};t.parser=a;function a(s,i){return $F(s,{...r,onerror:n?function(o){i.path&&(o.name=i.path+":"+o.name,o.file=i.path),i.messages.push(o)}:void 0})}}const qF=/["&'<>`]/g,YF=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ZF=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,KF=/[|\\{}()[\]^$+*?.]/g,VE=new WeakMap;function XF(e,t){if(e=e.replace(t.subset?QF(t.subset):qF,r),t.subset||t.escapeOnly)return e;return e.replace(YF,n).replace(ZF,r);function n(a,s,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(s+2),t)}function r(a,s,i){return t.format(a.charCodeAt(0),i.charCodeAt(s+1),t)}}function QF(e){let t=VE.get(e);return t||(t=JF(e),VE.set(e,t)),t}function JF(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(KF,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const eM=/[\dA-Fa-f]/;function tM(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!eM.test(String.fromCharCode(t))?r:r+";"}const nM=/\d/;function rM(e,t,n){const r="&#"+String(e);return n&&t&&!nM.test(String.fromCharCode(t))?r:r+";"}const mc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},aM=["cent","copy","divide","gt","lt","not","para","times"],DS={}.hasOwnProperty,md={};let So;for(So in mc)DS.call(mc,So)&&(md[mc[So]]=So);const sM=/[^\dA-Za-z]/;function iM(e,t,n,r){const a=String.fromCharCode(e);if(DS.call(md,a)){const s=md[a],i="&"+s;return n&&I1.includes(s)&&!aM.includes(s)&&(!r||t&&t!==61&&sM.test(String.fromCharCode(t)))?i:i+";"}return""}function oM(e,t,n){let r=tM(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=iM(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=rM(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Xa(e,t){return XF(e,Object.assign({format:oM},t))}const lM=/^>|^->|<!--|-->|--!>|<!-$/g,uM=[">"],cM=["<",">"];function dM(e,t,n,r){return r.settings.bogusComments?"<?"+Xa(e.value,Object.assign({},r.settings.characterReferences,{subset:uM}))+">":"<!--"+e.value.replace(lM,a)+"-->";function a(s){return Xa(s,Object.assign({},r.settings.characterReferences,{subset:cM}))}}function pM(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const ln=LS(1),OS=LS(-1),fM=[];function LS(e){return t;function t(n,r,a){const s=n?n.children:fM;let i=(r||0)+e,o=s[i];if(!a)for(;o&&Yi(o);)i+=e,o=s[i];return o}}const mM={}.hasOwnProperty;function FS(e){return t;function t(n,r,a){return mM.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const nb=FS({body:gM,caption:hc,colgroup:hc,dd:yM,dt:xM,head:hc,html:hM,li:EM,optgroup:TM,option:SM,p:bM,rp:qE,rt:qE,tbody:wM,td:YE,tfoot:NM,th:YE,thead:vM,tr:AM});function hc(e,t,n){const r=ln(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Yi(r.value.charAt(0)))}function hM(e,t,n){const r=ln(n,t);return!r||r.type!=="comment"}function gM(e,t,n){const r=ln(n,t);return!r||r.type!=="comment"}function bM(e,t,n){const r=ln(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function EM(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&r.tagName==="li"}function xM(e,t,n){const r=ln(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function yM(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function qE(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function TM(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function SM(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function vM(e,t,n){const r=ln(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function wM(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function NM(e,t,n){return!ln(n,t)}function AM(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function YE(e,t,n){const r=ln(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const _M=FS({body:IM,colgroup:RM,head:kM,html:CM,tbody:DM});function CM(e){const t=ln(e,-1);return!t||t.type!=="comment"}function kM(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function IM(e){const t=ln(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Yi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function RM(e,t,n){const r=OS(n,t),a=ln(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&nb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function DM(e,t,n){const r=OS(n,t),a=ln(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&nb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const vo={name:[[`
|
|
47
|
+
\f\r &/=>`.split(""),`
|
|
48
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
49
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
50
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
51
|
+
\f\r &>`.split(""),`\0
|
|
52
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
53
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
54
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function OM(e,t,n,r){const a=r.schema,s=a.space==="svg"?!1:r.settings.omitOptionalTags;let i=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let u;a.space==="html"&&e.tagName==="svg"&&(r.schema=fr);const c=LM(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(i=!1),(c||!s||!_M(e,t,n))&&(o.push("<",e.tagName,c?" "+c:""),i&&(a.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(p),!i&&(!s||!nb(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}function LM(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=FM(e,a,t[a]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function FM(e,t,n){const r=gs(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let i=e.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=Xa(r.attribute,Object.assign({},e.settings.characterReferences,{subset:vo.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?ru:au)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(o=Xa(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:vo.unquoted[a][s]}))),o!==n&&(e.settings.quoteSmart&&ul(n,i)>ul(n,e.alternative)&&(i=e.alternative),o=i+Xa(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?vo.single:vo.double)[a][s],attribute:!0}))+i),u+(o&&"="+o))}const MM=["<","&"];function MS(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Xa(e.value,Object.assign({},r.settings.characterReferences,{subset:MM}))}function PM(e,t,n,r){return r.settings.allowDangerousHtml?e.value:MS(e,t,n,r)}function jM(e,t,n,r){return r.all(e)}const BM=lu("type",{invalid:UM,unknown:$M,handlers:{comment:dM,doctype:pM,element:OM,raw:PM,root:jM,text:MS}});function UM(e){throw new Error("Expected node, not `"+e+"`")}function $M(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const zM={},HM={},GM=[];function WM(e,t){const n=t||zM,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:VM,all:qM,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||aT,characterReferences:n.characterReferences||HM,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?fr:ka,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function VM(e,t,n){return BM(e,t,n,this)}function qM(e){const t=[],n=e&&e.children||GM;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function YM(e){const t=this,n={...t.data("settings"),...e};t.compiler=r;function r(a){return WM(a,n)}}const ZM=aS().use(VF).use(YM).freeze();function KM(e,t){return ht({},e,t)}var Ra=at.createContext({markdown:""}),ZE;function XM(e){return e.replace(/[<&"]/g,t=>({"<":"<",">":">","&":"&",'"':"""})[t])}function QM(e){var t=e.prefixCls,n=g.useContext(Ra),r=n.markdown,a=r===void 0?"":r,s=n.highlightEnable,i=n.dispatch,o=at.createRef();if(g.useEffect(()=>{o.current&&i&&i({textareaPre:o.current})},[]),!a)return l.jsx("pre",{ref:o,className:t+"-text-pre wmde-markdown-color"});var u='<pre class="language-markdown '+t+'-text-pre wmde-markdown-color"><code class="language-markdown">'+XM(String.raw(ZE||(ZE=OF(["",""])),a))+`
|
|
55
|
+
</code></pre>`;if(s)try{u=ZM().data("settings",{fragment:!0}).use(F1,{ignoreMissing:!0}).processSync(u).toString()}catch{}return at.createElement("div",{className:"wmde-markdown-color",dangerouslySetInnerHTML:{__html:u||""}})}function PS(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=ht({},t,PS(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function jS(e,t,n,r,a){t===void 0&&(t=[]);var s=PS(t||[]),i=[];if(e.altKey&&i.push("alt"),e.shiftKey&&i.push("shift"),e.metaKey&&i.push("cmd"),e.ctrlKey&&i.push("ctrl"),i.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&i.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&i.push("escape"),!(i.length<1)){var o=!!s[i.join("+")],u=o?s[i.join("+")]:void 0;if(Object.keys(s).forEach(c=>{var p=c.split("+").every(d=>/ctrlcmd/.test(d)?i.includes("ctrl")||i.includes("cmd"):i.includes(d));p&&(u=s[c])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,a,i);return}}}var gc;function KE(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof gc>"u"){var t=document.createElement("textarea");t.value="1",gc=!!t.firstChild}return gc}function Qa(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,s=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var i=document.createRange(),o=document.createTextNode(t);if(KE(e)){var u=e.firstChild;if(!u)e.appendChild(o);else{for(var c=0,p=null,d=null;u&&(p===null||d===null);){var f=u.nodeValue.length;a>=c&&a<=c+f&&i.setStart(p=u,a-c),s>=c&&s<=c+f&&i.setEnd(d=u,s-c),c+=f,u=u.nextSibling}a!==s&&i.deleteContents()}}if(KE(e)&&i.commonAncestorContainer.nodeName==="#text")i.insertNode(o);else{var m=e.value;e.value=m.slice(0,a)+t+m.slice(s)}}e.setSelectionRange(a+t.length,a+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function Mn(e){var t=e.text,n=e.selection,r=e.prefix,a=e.suffix,s=a===void 0?r:a,i=n;if(t&&t.length&&n.start===n.end&&(i=JM(t,n.start)),i.start>=r.length&&i.end<=t.length-s.length){var o=t.slice(i.start-r.length,i.end+s.length);if(o.startsWith(r)&&o.endsWith(s))return{start:i.start-r.length,end:i.end+s.length}}return i}function ui(e){var t=e.text,n=e.selection,r=t.slice(0,n.start).lastIndexOf(`
|
|
56
|
+
`)+1,a=t.slice(n.end).indexOf(`
|
|
57
|
+
`)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function BS(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function US(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function JM(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=o=>o===" "||o.charCodeAt(0)===10,r=0,a=e.length,s=t;s-1>-1;s--)if(n(e[s-1])){r=s;break}for(var i=t;i<e.length;i++)if(n(e[i])){a=i;break}return{start:r,end:a}}function Sn(e){var t=e.api,n=e.selectedText,r=e.selection,a=e.prefix,s=e.suffix,i=s===void 0?a:s;n.length>=a.length+i.length&&n.startsWith(a)&&n.endsWith(i)?(t.replaceSelection(n.slice(a.length,i.length?-i.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+i),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function rb(e,t){var n=e.split(/\n/),r=0,a=n.map((s,i)=>{if(typeof t=="string")return s.startsWith(t)?(r-=t.length,s.slice(t.length)):(r+=t.length,t+s);if(typeof t=="function"){if(s.startsWith(t(s,i)))return r-=t(s,i).length,s.slice(t(s,i).length);var o=t(s,i);return r+=o.length,t(s,i)+s}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
58
|
+
`);return{modifiedText:a,insertionLength:r}}var e5={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:l.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:l.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},$S={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:l.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:l.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",s="\n```\n";r.selectedText.length>=a.length+s.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(s)?(a="```\n",s="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
|
|
59
|
+
`||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
60
|
+
`||r.selection.end===e.text.length)&&(s="\n```"));var i=Mn({text:e.text,selection:e.selection,prefix:a,suffix:s}),o=t.setSelectionRange(i);Sn({api:t,selectedText:o.selectedText,selection:e.selection,prefix:a,suffix:s})}},t5={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:l.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:l.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
|
|
61
|
+
`)===-1){var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else $S.execute(e,t)}},n5={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:l.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:l.jsxs("g",{fill:"none",fillRule:"evenodd",children:[l.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},Yo={keyCommand:"divider"},r5={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function a5(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var s5=(e,t)=>{var n=ht({children:e,icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var a=ht({},(a5(r),r));return a.parent=n,ht({},a)})),n},i5={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:l.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},o5={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:l.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:l.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Mn({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},l5={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:l.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:l.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},u5={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:l.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=Mn({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ab=(e,t,n)=>{var r=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),s=BS(a.text,a.selection.start),i=Array(s+1).join(`
|
|
65
|
+
`),o=US(a.text,a.selection.end),u=Array(o+1).join(`
|
|
66
|
+
`),c=rb(a.selectedText,n),p=c.modifiedText,d=c.insertionLength;if(d<0){var f=a.selection.start,m=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
|
|
67
|
+
`&&(f-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
|
|
68
|
+
`&&(m+=1),t.setSelectionRange({start:f,end:m}),t.replaceSelection(""+p),t.setSelectionRange({start:f,end:f+p.length})}else{t.replaceSelection(""+i+p+u);var b=a.selection.start+s,E=b+p.length;t.setSelectionRange({start:b,end:E})}},c5={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:l.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{ab(e,t,"- ")}},d5={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:l.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{ab(e,t,(n,r)=>r+1+". ")}},p5={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:l.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{ab(e,t,(n,r)=>"- [ ] ")}},f5={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[l.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),l.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},m5={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[l.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),l.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},h5={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[l.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),l.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},g5={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=BS(r.text,r.selection.start),s=Array(a+1).join(`
|
|
69
|
+
`),i=US(r.text,r.selection.end),o=Array(i+1).join(`
|
|
70
|
+
`),u=rb(r.selectedText,e.command.prefix);t.replaceSelection(""+s+u.modifiedText+o);var c=r.selection.start+a,p=c+u.modifiedText.length;t.setSelectionRange({start:c,end:p})}},b5={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:l.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},zS={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:l.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{Ss({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},E5=zS;function Ss(e){var t=e.state,n=e.api,r=e.prefix,a=e.suffix,s=a===void 0?r:a,i=ui({text:t.text,selection:t.selection}),o=n.setSelectionRange(i);Sn({api:n,selectedText:o.selectedText,selection:t.selection,prefix:r,suffix:s})}ht({},zS,{icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var x5={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:l.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{Ss({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},y5=x5,T5={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:l.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{Ss({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},S5=T5,v5={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:l.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{Ss({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},w5=v5,N5={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:l.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{Ss({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},A5=N5,_5={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:l.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{Ss({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},C5=_5,k5={name:"table",keyCommand:"table",prefix:`
|
|
71
|
+
| Header | Header |
|
|
72
|
+
|--------|--------|
|
|
73
|
+
| Cell | Cell |
|
|
74
|
+
| Cell | Cell |
|
|
75
|
+
| Cell | Cell |
|
|
76
|
+
|
|
77
|
+
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:l.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},I5={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:l.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:l.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},R5=()=>[e5,l5,b5,i5,s5([E5,y5,S5,w5,A5,C5],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),Yo,u5,g5,t5,$S,n5,o5,k5,Yo,c5,d5,p5,Yo,I5],D5=()=>[m5,h5,f5,Yo,r5];function dl(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}class sb{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Qa(this.textArea,t),dl(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,dl(this.textArea)}}class ib{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new sb(t)}getState(){return this.textArea?dl(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(ht({command:t},dl(this.textArea)),this.textApi,n,r,a)}}function Zo(e){e.stopPropagation(),e.preventDefault()}function XE(e,t){Zo(e);var n=e.target,r=new sb(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=ui({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var s=n.value.slice(a.start,a.end);if(t<0){var i=ui({text:n.value,selection:{start:a.start-1,end:a.start-1}}),o=n.value.slice(i.start,i.end);r.setSelectionRange({start:i.start,end:a.end}),Qa(n,s+`
|
|
78
|
+
`+o),r.setSelectionRange({start:i.start,end:i.start+s.length})}else{var u=ui({text:n.value,selection:{start:a.end+1,end:a.end+1}}),c=n.value.slice(u.start,u.end);r.setSelectionRange({start:a.start,end:u.end}),Qa(n,c+`
|
|
79
|
+
`+s),r.setSelectionRange({start:u.end-s.length,end:u.end})}}}function O5(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),s=a.split(`
|
|
80
|
+
`),i=s[s.length-1],o=new sb(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){Zo(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var c=r.value.substring(0,r.selectionStart).split(`
|
|
81
|
+
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
82
|
+
`),d=[];p.forEach((S,w)=>{S!==c[w]&&d.push(S)});var f=d.join(`
|
|
83
|
+
`),m=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;o.setSelectionRange({start:r.value.indexOf(f),end:r.selectionEnd});var E=rb(f,e.shiftKey?"":u),x=E.modifiedText;e.shiftKey&&(x=x.split(`
|
|
84
|
+
`).map(S=>S.replace(new RegExp("^"+u),"")).join(`
|
|
85
|
+
`)),o.replaceSelection(x);var y=e.shiftKey?-t:t,v=e.shiftKey?-d.length*t:d.length*t;o.setSelectionRange({start:b+y,end:b+m.length+v})}else return Qa(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(i)||/^\d+.\s/.test(i))&&!e.shiftKey){Zo(e);var T=`
|
|
86
|
+
- `;return i.startsWith("*")&&(T=`
|
|
87
|
+
* `),(i.startsWith("- [ ]")||i.startsWith("- [X]")||i.startsWith("- [x]"))&&(T=`
|
|
88
|
+
- [ ] `),/^\d+.\s/.test(i)&&(T=`
|
|
89
|
+
`+(parseInt(i)+1)+". "),Qa(r,T)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){Zo(e);var N={start:r.selectionStart,end:r.selectionEnd},D=N;N=ui({text:r.value,selection:N});var A=r.value.slice(N.start,N.end);o.setSelectionRange({start:N.end,end:N.end}),Qa(r,`
|
|
90
|
+
`+A),o.setSelectionRange({start:D.start,end:D.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?XE(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&XE(e,1)}var L5=["prefixCls","onChange"],F5=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function M5(e){var t=e.prefixCls,n=e.onChange,r=yi(e,L5),a=g.useContext(Ra),s=a.markdown,i=a.commands,o=a.fullscreen,u=a.preview,c=a.highlightEnable,p=a.extraCommands,d=a.tabSize,f=a.defaultTabEnable,m=a.autoFocusEnd,b=a.textareaWarp,E=a.dispatch;yi(a,F5);var x=at.useRef(null),y=at.useRef(),v=at.useRef({fullscreen:o,preview:u});g.useEffect(()=>{v.current={fullscreen:o,preview:u,highlightEnable:c}},[o,u,c]),g.useEffect(()=>{if(x.current&&E){var N=new ib(x.current);y.current=N,E({textarea:x.current,commandOrchestrator:N})}},[]),g.useEffect(()=>{if(m&&x.current&&b){x.current.focus();var N=x.current.value.length;x.current.setSelectionRange(N,N),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),x.current&&(x.current.scrollTop=x.current.scrollHeight)},0)}},[b]);var T=N=>{O5(N,d,f),jS(N,[...i||[],...p||[]],y.current,E,v.current)};return g.useEffect(()=>(x.current&&x.current.addEventListener("keydown",T),()=>{x.current&&x.current.removeEventListener("keydown",T)}),[]),l.jsx("textarea",ht({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:x,className:t+"-text-input "+(r.className?r.className:""),value:s,onChange:N=>{E&&E({markdown:N.target.value}),n&&n(N)}}))}var P5=["prefixCls","className","onScroll","renderTextarea"];function j5(e){var t,n=e?.Markdown,r=(t=e?.useMinHeight)!=null?t:!1;return function(s){var i=s||{},o=i.prefixCls,u=i.className,c=i.onScroll,p=i.renderTextarea,d=yi(i,P5),f=g.useContext(Ra),m=f.markdown,b=f.scrollTop,E=f.commands,x=f.minHeight,y=f.highlightEnable,v=f.extraCommands,T=f.dispatch,N=at.useRef(null),D=at.useRef(),A=at.createRef();g.useEffect(()=>{var w={};A.current&&(w.textareaWarp=A.current||void 0,A.current.scrollTop=b||0),T&&T(ht({},w))},[]),g.useEffect(()=>{if(N.current&&T){var w=new ib(N.current);D.current=w,T({textarea:N.current,commandOrchestrator:w})}},[]);var S=n&&y?{}:{WebkitTextFillColor:"initial",overflow:"auto"};return l.jsx("div",{ref:A,className:o+"-area "+(u||""),onScroll:c,children:l.jsx("div",{className:o+"-text",style:r?{minHeight:x}:void 0,children:p?at.cloneElement(p(ht({},d,{value:m,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:o+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:T,onChange:d.onChange,shortcuts:jS,useContext:{commands:E,extraCommands:v,commandOrchestrator:D.current}}),{ref:N}):l.jsxs(g.Fragment,{children:[n&&y&&l.jsx(n,{prefixCls:o}),l.jsx(M5,ht({prefixCls:o},d,{style:S}))]})})})}}const B5=j5({Markdown:QM,useMinHeight:!0});function U5(e){var t=e||{},n=t.prefixCls,r=t.groupName,a=t.commands,s=t.children,i=g.useContext(Ra),o=i.barPopup,u=o===void 0?{}:o;return g.useMemo(()=>l.jsx("div",{className:n+"-toolbar-child "+(r&&u[r]?"active":""),onClick:c=>c.stopPropagation(),children:Array.isArray(a)?l.jsx(HS,ht({commands:a},e,{isChild:!0})):s}),[a,u,r,n])}function QE(e){var t=e.prefixCls,n=e.overflow,r=g.useContext(Ra),a=r.fullscreen,s=r.preview,i=r.barPopup,o=i===void 0?{}:i,u=r.components,c=r.commandOrchestrator,p=r.dispatch,d=g.useRef("");function f(m,b){if(p){var E={barPopup:ht({},o)};m.keyCommand==="preview"&&(E.preview=m.value),m.keyCommand==="fullscreen"&&(E.fullscreen=!a),e.commands&&m.keyCommand==="group"?e.commands.forEach(x=>{b===x.groupName?E.barPopup[b]=!0:x.keyCommand&&(E.barPopup[x.groupName]=!1)}):(b||m.parent)&&Object.keys(E.barPopup||{}).forEach(x=>{E.barPopup[x]=!1}),Object.keys(E).length&&p(ht({},E)),c&&c.executeCommand(m)}}return g.useEffect(()=>{document&&n&&(a?document.body.style.overflow="hidden":(d.current||(d.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=d.current))},[a,d,n]),l.jsx("ul",{children:(e.commands||[]).map((m,b)=>{if(m.keyCommand==="divider")return l.jsx("li",ht({},m.liProps,{className:t+"-toolbar-divider"}),b);if(!m.keyCommand)return l.jsx(g.Fragment,{},b);var E=a&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&s===m.value,x=m.children&&typeof m.children=="function"?m.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>f({},m.groupName),execute:()=>f({execute:m.execute}),dispatch:p}):void 0,y=o&&s&&s==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),v=u?.toolbar||m.render,T=v&&typeof v=="function"?v(m,!!y,f,b):null;return l.jsxs("li",ht({},m.liProps,{className:E?"active":"",children:[T&&at.isValidElement(T)&&T,!T&&!m.buttonProps&&m.icon,!T&&m.buttonProps&&at.createElement("button",ht({type:"button",key:b,disabled:y,"data-name":m.name},m.buttonProps,{onClick:N=>{N.stopPropagation(),f(m,m.groupName)}}),m.icon),m.children&&l.jsx(U5,{overflow:n,groupName:m.groupName,prefixCls:t,children:x,commands:Array.isArray(m.children)?m.children:void 0})]}),b)})})}function HS(e){e===void 0&&(e={});var t=e,n=t.prefixCls,r=t.isChild,a=t.className,s=g.useContext(Ra),i=s.commands,o=s.extraCommands;return l.jsxs("div",{className:n+"-toolbar "+a,children:[l.jsx(QE,ht({},e,{commands:e.commands||i||[]})),!r&&l.jsx(QE,ht({},e,{commands:o||[]}))]})}function JE(e){var t=e.hideToolbar,n=e.toolbarBottom,r=e.placement,a=e.overflow,s=e.prefixCls;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var i=n?"bottom":"";return l.jsx(HS,{prefixCls:s,overflow:a,className:i})}var $5=e=>{var t=e||{},n=t.prefixCls,r=t.onChange,a=g.useRef(null),s=g.useRef(),i=g.useRef(e.height);g.useEffect(()=>{i.current!==e.height&&(i.current=e.height)},[e.height]);function o(d){if(s.current){var f,m=d.clientY||((f=d.changedTouches[0])==null?void 0:f.clientY),b=s.current.height+m-s.current.dragY;b>=e.minHeight&&b<=e.maxHeight&&r&&r(s.current.height+(m-s.current.dragY))}}function u(){var d,f;s.current=void 0,document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",u),(d=a.current)==null||d.removeEventListener("touchmove",o),(f=a.current)==null||f.removeEventListener("touchend",u)}function c(d){var f,m,b;d.preventDefault();var E=d.clientY||((f=d.changedTouches[0])==null?void 0:f.clientY);s.current={height:i.current,dragY:E},document.addEventListener("mousemove",o),document.addEventListener("mouseup",u),(m=a.current)==null||m.addEventListener("touchmove",o,{passive:!1}),(b=a.current)==null||b.addEventListener("touchend",u,{passive:!1})}g.useEffect(()=>{if(document){var d,f;(d=a.current)==null||d.addEventListener("touchstart",c,{passive:!1}),(f=a.current)==null||f.addEventListener("mousedown",c)}return()=>{if(document){var m;(m=a.current)==null||m.removeEventListener("touchstart",c),document.removeEventListener("mousemove",o)}}},[]);var p=g.useMemo(()=>l.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:l.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return l.jsx("div",{className:n+"-bar",ref:a,children:p})},z5=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function H5(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}function G5(e){var t=e.MarkdownPreview,n=e.TextArea,r=t,a=n,s=at.forwardRef((o,u)=>{var c=o||{},p=c.prefixCls,d=p===void 0?"w-md-editor":p,f=c.className,m=c.value,b=c.commands,E=b===void 0?R5():b,x=c.commandsFilter,y=c.direction,v=c.extraCommands,T=v===void 0?D5():v,N=c.height,D=N===void 0?200:N,A=c.enableScroll,S=A===void 0?!0:A,w=c.visibleDragbar,R=w===void 0?typeof o.visiableDragbar=="boolean"?o.visiableDragbar:!0:w,C=c.highlightEnable,U=C===void 0?!0:C,k=c.preview,j=k===void 0?"live":k,W=c.fullscreen,$=W===void 0?!1:W,ee=c.overflow,me=ee===void 0?!0:ee,se=c.previewOptions,xe=se===void 0?{}:se,O=c.textareaProps,te=c.maxHeight,le=te===void 0?1200:te,L=c.minHeight,ke=L===void 0?100:L,Re=c.autoFocus,Q=c.autoFocusEnd,_e=Q===void 0?!1:Q,ue=c.tabSize,X=ue===void 0?2:ue,We=c.defaultTabEnable,fe=We===void 0?!1:We,de=c.onChange,Te=c.onStatistics,Se=c.onHeightChange,H=c.hideToolbar,Fe=c.toolbarBottom,Ke=Fe===void 0?!1:Fe,Xe=c.components,Pt=c.renderTextarea,dt=yi(c,z5),lt=E.map(Me=>x?x(Me,!1):Me).filter(Boolean),Kt=T.map(Me=>x?x(Me,!0):Me).filter(Boolean),it=g.useReducer(KM,{markdown:m,preview:j,components:Xe,height:D,minHeight:ke,highlightEnable:U,tabSize:X,defaultTabEnable:fe,scrollTop:0,scrollTopPreview:0,commands:lt,extraCommands:Kt,fullscreen:$,barPopup:{}}),Le=it[0],rt=it[1],Z=g.useRef(null),ie=g.useRef(null),Ce=g.useRef(S);g.useImperativeHandle(u,()=>ht({},Le,{container:Z.current,dispatch:rt})),g.useMemo(()=>Ce.current=S,[S]),g.useEffect(()=>{var Me={};Z.current&&(Me.container=Z.current||void 0),Me.markdown=m||"",Me.barPopup={},rt&&rt(ht({},Le,Me))},[]);var Oe=[f,"wmde-markdown-var",y?d+"-"+y:null,d,Le.preview?d+"-show-"+Le.preview:null,Le.fullscreen?d+"-fullscreen":null].filter(Boolean).join(" ").trim();g.useMemo(()=>m!==Le.markdown&&rt({markdown:m||""}),[m,Le.markdown]),g.useMemo(()=>j!==Le.preview&&rt({preview:j}),[j]),g.useMemo(()=>X!==Le.tabSize&&rt({tabSize:X}),[X]),g.useMemo(()=>U!==Le.highlightEnable&&rt({highlightEnable:U}),[U]),g.useMemo(()=>Re!==Le.autoFocus&&rt({autoFocus:Re}),[Re]),g.useMemo(()=>_e!==Le.autoFocusEnd&&rt({autoFocusEnd:_e}),[_e]),g.useMemo(()=>$!==Le.fullscreen&&rt({fullscreen:$}),[$]),g.useMemo(()=>D!==Le.height&&rt({height:D}),[D]),g.useMemo(()=>D!==Le.height&&Se&&Se(Le.height,D,Le),[D,Se,Le]),g.useMemo(()=>E!==Le.commands&&rt({commands:lt}),[o.commands]),g.useMemo(()=>T!==Le.extraCommands&&rt({extraCommands:Kt}),[o.extraCommands]);var Ve=g.useRef(),st=g.useRef("preview"),Rt=g.useRef(!1);g.useMemo(()=>{Ve.current=Le.textareaWarp,Le.textareaWarp&&(Le.textareaWarp.addEventListener("mouseover",()=>{st.current="text"}),Le.textareaWarp.addEventListener("mouseleave",()=>{st.current="preview"}))},[Le.textareaWarp]);var Ct=(Me,pt)=>{if(Ce.current){var Qe=Ve.current,kt=ie.current?ie.current:void 0;if(Rt.current||(st.current=pt,Rt.current=!0),Qe&&kt){var ae=(Qe.scrollHeight-Qe.offsetHeight)/(kt.scrollHeight-kt.offsetHeight);Me.target===Qe&&st.current==="text"&&(kt.scrollTop=Qe.scrollTop/ae),Me.target===kt&&st.current==="preview"&&(Qe.scrollTop=kt.scrollTop*ae);var ge=0;st.current==="text"?ge=Qe.scrollTop||0:st.current==="preview"&&(ge=kt.scrollTop||0),rt({scrollTop:ge})}}},Nt=d+"-preview "+(xe.className||""),Lt=Me=>Ct(Me,"preview"),re=g.useMemo(()=>l.jsx("div",{ref:ie,className:Nt,children:l.jsx(r,ht({},xe,{onScroll:Lt,source:Le.markdown||""}))}),[Nt,xe,Le.markdown]),Ae=Xe?.preview&&Xe?.preview(Le.markdown||"",Le,rt);Ae&&at.isValidElement(Ae)&&(re=l.jsx("div",{className:Nt,ref:ie,onScroll:Lt,children:Ae}));var $e=ht({},dt.style,{height:Le.height||"100%"}),je=()=>rt({barPopup:ht({},H5(Le.barPopup))}),St=Me=>rt({height:Me}),Xt=Me=>{if(de&&de(Me.target.value,Me,Le),O&&O.onChange&&O.onChange(Me),Le.textarea&&Le.textarea instanceof HTMLTextAreaElement&&Te){var pt=new ib(Le.textarea),Qe=pt.getState()||{};Te(ht({},Qe,{lineCount:Me.target.value.split(`
|
|
91
|
+
`).length,length:Me.target.value.length}))}};return l.jsx(Ra.Provider,{value:ht({},Le,{dispatch:rt}),children:l.jsxs("div",ht({ref:Z,className:Oe},dt,{onClick:je,style:$e,children:[l.jsx(JE,{hideToolbar:H,toolbarBottom:Ke,prefixCls:d,overflow:me,placement:"top"}),l.jsxs("div",{className:d+"-content",children:[/(edit|live)/.test(Le.preview||"")&&l.jsx(a,ht({className:d+"-input",prefixCls:d,autoFocus:Re},O,{onChange:Xt,renderTextarea:Xe?.textarea||Pt,onScroll:Me=>Ct(Me,"text")})),/(live|preview)/.test(Le.preview||"")&&re]}),R&&!Le.fullscreen&&l.jsx($5,{prefixCls:d,height:Le.height,maxHeight:le,minHeight:ke,onChange:St}),l.jsx(JE,{hideToolbar:H,toolbarBottom:Ke,prefixCls:d,overflow:me,placement:"bottom"})]}))})}),i=s;return i.Markdown=t,i.displayName="MDEditor",i}const pl=G5({MarkdownPreview:DF,TextArea:B5}),W5={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error",outline:"badge-outline"},V5={xs:"badge-xs",sm:"badge-sm",md:"badge-md",lg:"badge-lg"};function Mt({variant:e,size:t,className:n,...r}){const a=["badge",e&&W5[e],t&&V5[t],n].filter(Boolean).join(" ");return l.jsx("span",{className:a,...r})}const q5={primary:"btn-primary",ghost:"btn-ghost",error:"btn-error",outline:"btn-outline",accent:"btn-accent",warning:"btn-warning"},Y5={xs:"btn-xs",sm:"btn-sm",md:"btn-md",lg:"btn-lg"};function Ye({variant:e,size:t,loading:n,asChild:r,className:a,disabled:s,children:i,...o}){const u=["btn",e&&q5[e],t&&Y5[t],a].filter(Boolean).join(" ");if(r&&at.isValidElement(i)){const c=i,p=[u,c.props.className].filter(Boolean).join(" ");return at.cloneElement(c,{className:p})}return l.jsxs("button",{className:u,disabled:s||n,...o,children:[n&&l.jsx("span",{className:"loading loading-spinner"}),i]})}const Z5={bordered:"card-bordered",primary:"card-primary",secondary:"card-secondary",accent:"card-accent",neutral:"card-neutral",imagefull:"card-image-full",compact:"card-compact",normal:"card-normal",side:"card-side"};function Ji({variant:e,asChild:t,className:n,children:r,...a}){const s=["card",e&&Z5[e],n].filter(Boolean).join(" ");if(t&&at.isValidElement(r)){const i=r,o=[s,i.props.className].filter(Boolean).join(" ");return at.cloneElement(i,{className:o})}return l.jsx("div",{className:s,...a,children:r})}function eo({className:e,...t}){const n=["card-body",e].filter(Boolean).join(" ");return l.jsx("div",{className:n,...t})}const K5={primary:"checkbox-primary",secondary:"checkbox-secondary",accent:"checkbox-accent",neutral:"checkbox-neutral",success:"checkbox-success",warning:"checkbox-warning",error:"checkbox-error",info:"checkbox-info"},X5={xs:"checkbox-xs",sm:"checkbox-sm",md:"checkbox-md",lg:"checkbox-lg"};function ob({variant:e,size:t,className:n,...r}){const a=["checkbox",e&&K5[e],t&&X5[t],n].filter(Boolean).join(" ");return l.jsx("input",{type:"checkbox",className:a,...r})}const Q5={bordered:"input-bordered",ghost:"input-ghost",primary:"input-primary",secondary:"input-secondary",accent:"input-accent",info:"input-info",success:"input-success",warning:"input-warning",error:"input-error"},J5={xs:"input-xs",sm:"input-sm",md:"input-md",lg:"input-lg",xl:"input-xl"};function vi({variant:e,size:t,error:n,className:r,...a}){const s=["input",e&&Q5[e],t&&J5[t],n&&"input-error",r].filter(Boolean).join(" ");return l.jsx("input",{className:s,...a})}const eP={spinner:"loading-spinner",dots:"loading-dots",ring:"loading-ring",ball:"loading-ball",bars:"loading-bars",infinity:"loading-infinity"},tP={xs:"loading-xs",sm:"loading-sm",md:"loading-md",lg:"loading-lg",xl:"loading-xl"};function Da({variant:e="spinner",size:t,className:n,...r}){const a=["loading",eP[e],t&&tP[t],n].filter(Boolean).join(" ");return l.jsx("span",{className:a,...r})}const nP={primary:"modal-primary",secondary:"modal-secondary",accent:"modal-accent",neutral:"modal-neutral",success:"modal-success",warning:"modal-warning",error:"modal-error",info:"modal-info"};function fl({variant:e,open:t,onClose:n,className:r,children:a,...s}){if(!t)return null;const i=["modal-box",e&&nP[e],r].filter(Boolean).join(" ");return l.jsx("div",{className:"modal modal-open",role:"dialog","aria-modal":"true",tabIndex:-1,onClick:o=>{o.target===o.currentTarget&&n?.()},onKeyDown:o=>{o.key==="Escape"&&n?.()},...s,children:l.jsx("div",{className:i,children:a})})}const rP={bordered:"select-bordered",ghost:"select-ghost",primary:"select-primary",secondary:"select-secondary",accent:"select-accent",info:"select-info",success:"select-success",warning:"select-warning",error:"select-error"},aP={xs:"select-xs",sm:"select-sm",md:"select-md",lg:"select-lg"};function Jr({variant:e,size:t,className:n,children:r,...a}){const s=["select",e&&rP[e],t&&aP[t],n].filter(Boolean).join(" ");return l.jsx("select",{className:s,...a,children:r})}const sP={bordered:"textarea-bordered",ghost:"textarea-ghost",primary:"textarea-primary",secondary:"textarea-secondary",accent:"textarea-accent",info:"textarea-info",success:"textarea-success",warning:"textarea-warning",error:"textarea-error"},iP={xs:"textarea-xs",sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg",xl:"textarea-xl"};function oP({variant:e,size:t,error:n,className:r,...a}){const s=["textarea",e&&sP[e],t&&iP[t],n&&"textarea-error",r].filter(Boolean).join(" ");return l.jsx("textarea",{className:s,...a})}const lP={top:"tooltip-top",bottom:"tooltip-bottom",left:"tooltip-left",right:"tooltip-right"};function uP({position:e,tip:t,className:n,...r}){const a=["tooltip",e&&lP[e],n].filter(Boolean).join(" ");return l.jsx("span",{className:a,"data-tip":t,...r})}const GS="spur-board-layout",Pa={sidebarWidth:240,rightPanelWidth:320,sidebarCollapsed:!1,rightPanelCollapsed:!0};function cP(){try{const e=localStorage.getItem(GS);if(!e)return{...Pa};const t=JSON.parse(e);return{sidebarWidth:typeof t.sidebarWidth=="number"?t.sidebarWidth:Pa.sidebarWidth,rightPanelWidth:typeof t.rightPanelWidth=="number"?t.rightPanelWidth:Pa.rightPanelWidth,sidebarCollapsed:typeof t.sidebarCollapsed=="boolean"?t.sidebarCollapsed:Pa.sidebarCollapsed,rightPanelCollapsed:typeof t.rightPanelCollapsed=="boolean"?t.rightPanelCollapsed:Pa.rightPanelCollapsed}}catch{return{...Pa}}}function dP(e){try{localStorage.setItem(GS,JSON.stringify(e))}catch{}}const pP=[];function fP(e){return e[0]??{}}function ml(e){return Array.isArray(e)?e:e==null?[]:[e]}const ex="orpc",mP="@orpc/shared",hP="1.14.4";class gP extends Error{constructor(...t){super(...t),this.name="AbortError"}}function bP(e){let t;return()=>{if(t)return t.result;const n=e();return t={result:n},n}}function EP(e){let t=Promise.resolve();return(...n)=>t=t.catch(()=>{}).then(()=>e(...n))}const xP=2,yP=`__${mP}@${hP}/otel/config__`;function Eu(){return globalThis[yP]}function lb(e,t={},n){return Eu()?.tracer?.startSpan(e,t,n)}function xa(e,t,n={}){if(!e)return;const r=TP(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:xP,message:r.message})}function TP(e){if(e instanceof Error){const t={message:e.message,name:e.name,stack:e.stack};return"code"in e&&(typeof e.code=="string"||typeof e.code=="number")&&(t.code=e.code),t}return{message:String(e)}}async function Zs({name:e,context:t,...n},r){const a=Eu()?.tracer;if(!a)return r();const s=async i=>{try{return await r(i)}catch(o){throw xa(i,o,n),o}finally{i.end()}};return t?a.startActiveSpan(e,n,t,s):a.startActiveSpan(e,n,s)}async function ss(e,t){const n=Eu();if(!e||!n)return t();const r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function wi(e){return!e||typeof e!="object"?!1:"next"in e&&typeof e.next=="function"&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]=="function"}const SP=Symbol.for("asyncDispose"),vP=Symbol.asyncDispose??SP;class ub{#e=!1;#t=!1;#n;#r;constructor(t,n){this.#n=n,this.#r=EP(async()=>{if(this.#e)return{done:!0,value:void 0};try{const r=await t();return r.done&&(this.#e=!0),r}catch(r){throw this.#e=!0,r}finally{this.#e&&!this.#t&&(this.#t=!0,await this.#n("next"))}})}next(){return this.#r()}async return(t){return this.#e=!0,this.#t||(this.#t=!0,await this.#n("return")),{done:!0,value:t}}async throw(t){throw this.#e=!0,this.#t||(this.#t=!0,await this.#n("throw")),t}async[vP](){this.#e=!0,this.#t||(this.#t=!0,await this.#n("dispose"))}[Symbol.asyncIterator](){return this}}function tx({name:e,...t},n){let r;return new ub(async()=>{r??=lb(e);try{const a=await ss(r,()=>n.next());return r?.addEvent(a.done?"completed":"yielded"),a}catch(a){throw xa(r,a,t),a}},async a=>{try{a!=="next"&&await ss(r,()=>n.return?.())}catch(s){throw xa(r,s,t),s}finally{r?.end()}})}function wP(e){return async(t,...n)=>{try{return await t.next()}catch(r){throw await e(r,t,...n),r}}}function hd(e,t,n){const r=(a,s)=>{const i=e[s];return i?i({...a,next:(o=a)=>r(o,s+1)}):n(a)};return r(t,0)}function Ko(e){if(e)return JSON.parse(e)}function gd(e){return JSON.stringify(e)}function NP(e){return ya(e)?Object.getPrototypeOf(e)?.constructor:null}function Xr(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function ya(e){return!!e&&(typeof e=="object"||typeof e=="function")}function nx(e,t){let n=e;for(const r of t){if(!ya(n))return;n=n[r]}return n}const WS=(()=>{const e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function rx(e,...t){return typeof e=="function"?e(...t):e}function VS(e){return new Proxy(e,{get(t,n,r){const a=Reflect.get(t,n,r);return n!=="then"||typeof a!="function"?a:new Proxy(a,{apply(s,i,o){if(o.length!==2||o.some(c=>!_P(c)))return Reflect.apply(s,i,o);let u=!0;o[0].call(i,VS(new Proxy(t,{get:(c,p,d)=>{if(u&&p==="then"){u=!1;return}return Reflect.get(c,p,d)}})))}})}})}const AP=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function _P(e){return typeof e=="function"&&AP.test(e.toString())}function CP(e){try{return decodeURIComponent(e)}catch{return e}}const kP="@orpc/client",IP="1.14.4",cb={BAD_REQUEST:{status:400,message:"Bad Request"},UNAUTHORIZED:{status:401,message:"Unauthorized"},FORBIDDEN:{status:403,message:"Forbidden"},NOT_FOUND:{status:404,message:"Not Found"},METHOD_NOT_SUPPORTED:{status:405,message:"Method Not Supported"},NOT_ACCEPTABLE:{status:406,message:"Not Acceptable"},TIMEOUT:{status:408,message:"Request Timeout"},CONFLICT:{status:409,message:"Conflict"},PRECONDITION_FAILED:{status:412,message:"Precondition Failed"},PAYLOAD_TOO_LARGE:{status:413,message:"Payload Too Large"},UNSUPPORTED_MEDIA_TYPE:{status:415,message:"Unsupported Media Type"},UNPROCESSABLE_CONTENT:{status:422,message:"Unprocessable Content"},TOO_MANY_REQUESTS:{status:429,message:"Too Many Requests"},CLIENT_CLOSED_REQUEST:{status:499,message:"Client Closed Request"},INTERNAL_SERVER_ERROR:{status:500,message:"Internal Server Error"},NOT_IMPLEMENTED:{status:501,message:"Not Implemented"},BAD_GATEWAY:{status:502,message:"Bad Gateway"},SERVICE_UNAVAILABLE:{status:503,message:"Service Unavailable"},GATEWAY_TIMEOUT:{status:504,message:"Gateway Timeout"}};function RP(e,t){return t??cb[e]?.status??500}function DP(e,t){return t||cb[e]?.message||e}const qS=Symbol.for(`__${kP}@${IP}/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[qS]??=new WeakSet;const bd=globalThis[qS];class Ni extends Error{defined;code;status;data;constructor(t,...n){const r=fP(n);if(r.status!==void 0&&!Ai(r.status))throw new Error("[ORPCError] Invalid error status code.");const a=DP(t,r.message);super(a,r),this.code=t,this.status=RP(t,r.status),this.defined=r.defined??!1,this.data=r.data}toJSON(){return{defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](t){if(bd.has(this)){const n=NP(t);if(n&&bd.has(n))return!0}return super[Symbol.hasInstance](t)}}bd.add(Ni);function OP(e){return e instanceof Ni?e:new Ni("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:e})}function Ai(e){return e<200||e>=400}function YS(e){if(!Xr(e))return!1;const t=["defined","code","status","message","data"];return Object.keys(e).some(n=>!t.includes(n))?!1:"defined"in e&&typeof e.defined=="boolean"&&"code"in e&&typeof e.code=="string"&&"status"in e&&typeof e.status=="number"&&Ai(e.status)&&"message"in e&&typeof e.message=="string"}function ZS(e,t={}){return new Ni(e.code,{...t,...e})}class xu extends TypeError{}class LP extends TypeError{}class _i extends Error{data;constructor(t){super(t?.message??"An error event was received",t),this.data=t?.data}}function FP(e){const t=e.replace(/\n+$/,"").split(/\n/),n={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(const r of t){const a=r.indexOf(":"),s=a===-1?r:r.slice(0,a),i=a===-1?"":r.slice(a+1).replace(/^\s/,"");if(a===0)n.comments.push(i);else if(s==="data")n.data??="",n.data+=`${i}
|
|
92
|
+
`;else if(s==="event")n.event=i;else if(s==="id")n.id=i;else if(s==="retry"){const o=Number.parseInt(i);Number.isInteger(o)&&o>=0&&o.toString()===i&&(n.retry=o)}}return n.data=n.data?.replace(/\n$/,""),n}class MP{constructor(t={}){this.options=t}incomplete="";feed(t){this.incomplete+=t;const n=this.incomplete.lastIndexOf(`
|
|
93
|
+
|
|
94
|
+
`);if(n===-1)return;const r=this.incomplete.slice(0,n).split(/\n\n/);this.incomplete=this.incomplete.slice(n+2);for(const a of r){const s=FP(`${a}
|
|
95
|
+
|
|
96
|
+
`);this.options.onEvent&&this.options.onEvent(s)}}end(){if(this.incomplete)throw new LP("Event Iterator ended before complete")}}class PP extends TransformStream{constructor(){let t;super({start(n){t=new MP({onEvent:r=>{n.enqueue(r)}})},transform(n){t.feed(n)},flush(){t.end()}})}}function KS(e){if(e.includes(`
|
|
97
|
+
`))throw new xu("Event's id must not contain a newline character")}function jP(e){if(e.includes(`
|
|
98
|
+
`))throw new xu("Event's event must not contain a newline character")}function XS(e){if(!Number.isInteger(e)||e<0)throw new xu("Event's retry must be a integer and >= 0")}function QS(e){if(e.includes(`
|
|
99
|
+
`))throw new xu("Event's comment must not contain a newline character")}function BP(e){const t=e?.split(/\n/)??[];let n="";for(const r of t)n+=`data: ${r}
|
|
100
|
+
`;return n}function UP(e){let t="";for(const n of e??[])QS(n),t+=`: ${n}
|
|
101
|
+
`;return t}function wo(e){let t="";return t+=UP(e.comments),e.event!==void 0&&(jP(e.event),t+=`event: ${e.event}
|
|
102
|
+
`),e.retry!==void 0&&(XS(e.retry),t+=`retry: ${e.retry}
|
|
103
|
+
`),e.id!==void 0&&(KS(e.id),t+=`id: ${e.id}
|
|
104
|
+
`),t+=BP(e.data),t+=`
|
|
105
|
+
`,t}const JS=Symbol("ORPC_EVENT_SOURCE_META");function ci(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&KS(t.id),t.retry!==void 0&&XS(t.retry),t.comments!==void 0)for(const n of t.comments)QS(n);return new Proxy(e,{get(n,r,a){return r===JS?t:Reflect.get(n,r,a)}})}function hl(e){return ya(e)?Reflect.get(e,JS):void 0}function $P(e,t="inline"){const n=e.replace(/[^\x20-\x7E]/g,"_").replace(/"/g,'\\"'),r=encodeURIComponent(e).replace(/['()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(a,s)=>String.fromCharCode(Number.parseInt(s,16)));return`${t}; filename="${n}"; filename*=utf-8''${r}`}function zP(e){const t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]=="string")return CP(t[2]);const n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]=="string")return n[1].replace(/\\"/g,'"')}function ax(e,t){const n={...e};for(const r in t)Array.isArray(t[r])?n[r]=[...ml(n[r]),...t[r]]:t[r]!==void 0&&(Array.isArray(n[r])?n[r]=[...n[r],t[r]]:n[r]!==void 0?n[r]=[n[r],t[r]]:n[r]=t[r]);return n}function sx(e,t){const n=async r=>{let a=await t.error(r);if(a!==r){const s=hl(r);s&&ya(a)&&(a=ci(a,s))}return a};return new ub(async()=>{const{done:r,value:a}=await(async()=>{try{return await e.next()}catch(i){throw await n(i)}})();let s=await t.value(a,r);if(s!==a){const i=hl(a);i&&ya(s)&&(s=ci(s,i))}return{done:r,value:s}},async()=>{try{await e.return?.()}catch(r){throw await n(r)}})}function HP(e){return{...e,context:e.context??{}}}function ev(e,t={}){const n=t.path??[],r=async(...[s,i={}])=>await e.call(n,s,HP(i)),a=new Proxy(r,{get(s,i){return typeof i!="string"?Reflect.get(s,i):ev(e,{...t,path:[...n,i]})}});return VS(a)}function tv(e,t){return{...e,...t}}class db{"~orpc";constructor(t){if(t.route?.successStatus&&Ai(t.route.successStatus))throw new Error("[ContractProcedure] Invalid successStatus.");if(Object.values(t.errorMap).some(n=>n&&n.status&&!Ai(n.status)))throw new Error("[ContractProcedure] Invalid error status code.");this["~orpc"]=t}}function Ed(e){return e instanceof db?!0:(typeof e=="object"||typeof e=="function")&&e!==null&&"~orpc"in e&&typeof e["~orpc"]=="object"&&e["~orpc"]!==null&&"errorMap"in e["~orpc"]&&"route"in e["~orpc"]&&"meta"in e["~orpc"]}function GP(e,t={}){const r=e?.pipeThrough(new TextDecoderStream).pipeThrough(new PP)?.getReader();let a,s=!1;return new ub(async()=>{a??=lb("consume_event_iterator_stream");try{for(;;){if(r===void 0)return{done:!0,value:void 0};const{done:i,value:o}=await ss(a,()=>r.read());if(i){if(s)throw new gP("Stream was cancelled");return{done:!0,value:void 0}}switch(o.event){case"message":{let u=Ko(o.data);return ya(u)&&(u=ci(u,o)),a?.addEvent("message"),{done:!1,value:u}}case"error":{let u=new _i({data:Ko(o.data)});throw u=ci(u,o),a?.addEvent("error"),u}case"done":{let u=Ko(o.data);return ya(u)&&(u=ci(u,o)),a?.addEvent("done"),{done:!0,value:u}}default:a?.addEvent("maybe_keepalive")}}}catch(i){throw i instanceof _i||xa(a,i,t),i}},async i=>{try{i!=="next"&&(s=!0,a?.addEvent("cancelled")),await ss(a,()=>r?.cancel())}catch(o){throw xa(a,o,t),o}finally{a?.end()}})}function WP(e,t={}){const n=t.eventIteratorKeepAliveEnabled??!0,r=t.eventIteratorKeepAliveInterval??5e3,a=t.eventIteratorKeepAliveComment??"",s=t.eventIteratorInitialCommentEnabled??!0,i=t.eventIteratorInitialComment??"";let o=!1,u,c;return new ReadableStream({start(d){c=lb("stream_event_iterator"),s&&d.enqueue(wo({comments:[i]}))},async pull(d){try{n&&(u=setInterval(()=>{d.enqueue(wo({comments:[a]})),c?.addEvent("keepalive")},r));const f=await ss(c,()=>e.next());if(clearInterval(u),o)return;const m=hl(f.value);if(!f.done||f.value!==void 0||m!==void 0){const b=f.done?"done":"message";d.enqueue(wo({...m,event:b,data:gd(f.value)})),c?.addEvent(b)}f.done&&(d.close(),c?.end())}catch(f){if(clearInterval(u),o)return;f instanceof _i?(d.enqueue(wo({...hl(f),event:"error",data:gd(f.data)})),c?.addEvent("error"),d.close()):(xa(c,f),d.error(f)),c?.end()}},async cancel(){try{o=!0,clearInterval(u),c?.addEvent("cancelled"),await ss(c,()=>e.return?.())}catch(d){throw xa(c,d),d}finally{c?.end()}}}).pipeThrough(new TextEncoderStream)}function VP(e,t={}){return Zs({name:"parse_standard_body",signal:t.signal},async()=>{const n=e.headers.get("content-disposition");if(typeof n=="string"){const s=zP(n)??"blob",i=await e.blob();return new File([i],s,{type:i.type})}const r=e.headers.get("content-type");if(!r||r.startsWith("application/json")){const s=await e.text();return Ko(s)}if(r.startsWith("multipart/form-data"))return await e.formData();if(r.startsWith("application/x-www-form-urlencoded")){const s=await e.text();return new URLSearchParams(s)}if(r.startsWith("text/event-stream"))return GP(e.body,t);if(r.startsWith("text/plain"))return await e.text();const a=await e.blob();return new File([a],"blob",{type:a.type})})}function qP(e,t,n={}){if(e instanceof ReadableStream)return e;const r=t.get("content-disposition");if(t.delete("content-type"),t.delete("content-disposition"),e!==void 0)return e instanceof Blob?(t.set("content-type",e.type),t.set("content-length",e.size.toString()),t.set("content-disposition",r??$P(e instanceof File?e.name:"blob")),e):e instanceof FormData||e instanceof URLSearchParams?e:wi(e)?(t.set("content-type","text/event-stream"),WP(e,n)):(t.set("content-type","application/json"),gd(e))}function nv(e,t={}){return e.forEach((n,r)=>{Array.isArray(t[r])?t[r].push(n):t[r]!==void 0?t[r]=[t[r],n]:t[r]=n}),t}function YP(e,t=new Headers){for(const[n,r]of Object.entries(e))if(Array.isArray(r))for(const a of r)t.append(n,a);else r!==void 0&&t.append(n,r);return t}function ZP(e,t={}){const n=YP(e.headers),r=qP(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function KP(e,t={}){return{body:bP(()=>VP(e,t)),status:e.status,get headers(){const n=nv(e.headers);return Object.defineProperty(this,"headers",{value:n,writable:!0}),n},set headers(n){Object.defineProperty(this,"headers",{value:n,writable:!0})}}}class rv{plugins;constructor(t=[]){this.plugins=[...t].sort((n,r)=>(n.order??0)-(r.order??0))}init(t){for(const n of this.plugins)n.init?.(t)}}class XP{constructor(t,n,r={}){this.codec=t,this.sender=n,new rv(r.plugins).init(r),this.interceptors=ml(r.interceptors),this.clientInterceptors=ml(r.clientInterceptors)}interceptors;clientInterceptors;call(t,n,r){return Zs({name:`${ex}.${t.join("/")}`,signal:r.signal},a=>(a?.setAttribute("rpc.system",ex),a?.setAttribute("rpc.method",t.join(".")),wi(n)&&(n=tx({name:"consume_event_iterator_input",signal:r.signal},n)),hd(this.interceptors,{...r,path:t,input:n},async({path:s,input:i,...o})=>{const u=Eu();let c;const p=u?.trace.getActiveSpan()??a;p&&u&&(c=u?.trace.setSpan(u.context.active(),p));const d=await Zs({name:"encode_request",context:c},()=>this.codec.encode(s,i,o)),f=await hd(this.clientInterceptors,{...o,input:i,path:s,request:d},({input:b,path:E,request:x,...y})=>Zs({name:"send_request",signal:y.signal,context:c},()=>this.sender.call(x,y,E,b))),m=await Zs({name:"decode_response",context:c},()=>this.codec.decode(f,o,s,i));return wi(m)?tx({name:"consume_event_iterator_output",signal:o.signal},m):m})))}}function ix(e){return`/${e.map(encodeURIComponent).join("/")}`}function QP(e){return typeof e.forEach=="function"?nv(e):e}function JP(e){return Object.entries(cb).find(([,t])=>t.status===e)?.[0]??"MALFORMED_ORPC_ERROR_RESPONSE"}function ej(e,t){return{...e,...t}}function tj(e,t){return{...e,...t}}function nj(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function rj(e,t){return{...e,tags:[...t,...e.tags??[]]}}function aj(e,t){return e?`${e}${t}`:t}function sj(e,t){return e?[...e,...t]:t}function ij(e,t){let n=e;return t.prefix&&(n=nj(n,t.prefix)),t.tags?.length&&(n=rj(n,t.tags)),n}function av(e,t){if(Ed(e))return new db({...e["~orpc"],errorMap:tv(t.errorMap,e["~orpc"].errorMap),route:ij(e["~orpc"].route,t)});if(typeof e!="object"||e===null)return e;const n={};for(const r in e)n[r]=av(e[r],t);return n}class Jn extends db{constructor(t){super(t),this["~orpc"].prefix=t.prefix,this["~orpc"].tags=t.tags}$meta(t){return new Jn({...this["~orpc"],meta:t})}$route(t){return new Jn({...this["~orpc"],route:t})}$input(t){return new Jn({...this["~orpc"],inputSchema:t})}errors(t){return new Jn({...this["~orpc"],errorMap:tv(this["~orpc"].errorMap,t)})}meta(t){return new Jn({...this["~orpc"],meta:ej(this["~orpc"].meta,t)})}route(t){return new Jn({...this["~orpc"],route:tj(this["~orpc"].route,t)})}input(t){return new Jn({...this["~orpc"],inputSchema:t})}output(t){return new Jn({...this["~orpc"],outputSchema:t})}prefix(t){return new Jn({...this["~orpc"],prefix:aj(this["~orpc"].prefix,t)})}tag(...t){return new Jn({...this["~orpc"],tags:sj(this["~orpc"].tags,t)})}router(t){return av(t,this["~orpc"])}}const Ft=new Jn({errorMap:{},route:{},meta:{}}),oj={defaultMethod:"POST",defaultSuccessStatus:200,defaultSuccessDescription:"OK",defaultInputStructure:"compact",defaultOutputStructure:"compact"};function No(e,t){return t===void 0?oj[e]:t}var ox;function ne(e,t,n){function r(o,u){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:u,constr:i,traits:new Set},enumerable:!1}),o._zod.traits.has(e))return;o._zod.traits.add(e),t(o,u);const c=i.prototype,p=Object.keys(c);for(let d=0;d<p.length;d++){const f=p[d];f in o||(o[f]=c[f].bind(o))}}const a=n?.Parent??Object;class s extends a{}Object.defineProperty(s,"name",{value:e});function i(o){var u;const c=n?.Parent?new s:this;r(c,o),(u=c._zod).deferred??(u.deferred=[]);for(const p of c._zod.deferred)p();return c}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:o=>n?.Parent&&o instanceof n.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class Ja extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class sv extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(ox=globalThis).__zod_globalConfig??(ox.__zod_globalConfig={});const pb=globalThis.__zod_globalConfig;function Dr(e){return pb}function iv(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function xd(e,t){return typeof t=="bigint"?t.toString():t}function yu(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function fb(e){return e==null}function mb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function lj(e,t){const n=e/t,r=Math.round(n),a=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<a?0:n-r}const lx=Symbol("evaluating");function Ot(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==lx)return r===void 0&&(r=lx,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function Oa(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function aa(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function ux(e){return JSON.stringify(e)}function uj(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ov="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ci(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const cj=yu(()=>{if(pb.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function is(e){if(Ci(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ci(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function lv(e){return is(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const dj=new Set(["string","number","symbol"]);function os(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function sa(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ge(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function pj(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const fj={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function mj(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=aa(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return Oa(this,"shape",i),i},checks:[]});return sa(e,s)}function hj(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=aa(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return Oa(this,"shape",i),i},checks:[]});return sa(e,s)}function gj(e,t){if(!is(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=aa(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Oa(this,"shape",s),s}});return sa(e,a)}function bj(e,t){if(!is(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=aa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Oa(this,"shape",r),r}});return sa(e,n)}function Ej(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=aa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Oa(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return sa(e,n)}function xj(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=aa(t._zod.def,{get shape(){const o=t._zod.def.shape,u={...o};if(n)for(const c in n){if(!(c in o))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(u[c]=e?new e({type:"optional",innerType:o[c]}):o[c])}else for(const c in o)u[c]=e?new e({type:"optional",innerType:o[c]}):o[c];return Oa(this,"shape",u),u},checks:[]});return sa(t,i)}function yj(e,t,n){const r=aa(t._zod.def,{get shape(){const a=t._zod.def.shape,s={...a};if(n)for(const i in n){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(s[i]=new e({type:"nonoptional",innerType:a[i]}))}else for(const i in a)s[i]=new e({type:"nonoptional",innerType:a[i]});return Oa(this,"shape",s),s}});return sa(t,r)}function qa(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Tj(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ya(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ao(e){return typeof e=="string"?e:e?.message}function Or(e,t,n){const r=e.message?e.message:Ao(e.inst?._zod.def?.error?.(e))??Ao(t?.error?.(e))??Ao(n.customError?.(e))??Ao(n.localeError?.(e))??"Invalid input",{inst:a,continue:s,input:i,...o}=e;return o.path??(o.path=[]),o.message=r,t?.reportInput&&(o.input=i),o}function hb(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ki(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const uv=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xd,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},cv=ne("$ZodError",uv),dv=ne("$ZodError",uv,{Parent:Error});function Sj(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function vj(e,t=n=>n.message){const n={_errors:[]},r=(a,s=[])=>{for(const i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(o=>r({issues:o},[...s,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...s,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...s,...i.path]);else{const o=[...s,...i.path];if(o.length===0)n._errors.push(t(i));else{let u=n,c=0;for(;c<o.length;){const p=o[c];c===o.length-1?(u[p]=u[p]||{_errors:[]},u[p]._errors.push(t(i))):u[p]=u[p]||{_errors:[]},u=u[p],c++}}}};return r(e),n}const gb=e=>(t,n,r,a)=>{const s=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new Ja;if(i.issues.length){const o=new(a?.Err??e)(i.issues.map(u=>Or(u,s,Dr())));throw ov(o,a?.callee),o}return i.value},bb=e=>async(t,n,r,a)=>{const s=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){const o=new(a?.Err??e)(i.issues.map(u=>Or(u,s,Dr())));throw ov(o,a?.callee),o}return i.value},Tu=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Ja;return s.issues.length?{success:!1,error:new(e??cv)(s.issues.map(i=>Or(i,a,Dr())))}:{success:!0,data:s.value}},wj=Tu(dv),Su=e=>async(t,n,r)=>{const a=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(i=>Or(i,a,Dr())))}:{success:!0,data:s.value}},Nj=Su(dv),Aj=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return gb(e)(t,n,a)},_j=e=>(t,n,r)=>gb(e)(t,n,r),Cj=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return bb(e)(t,n,a)},kj=e=>async(t,n,r)=>bb(e)(t,n,r),Ij=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Tu(e)(t,n,a)},Rj=e=>(t,n,r)=>Tu(e)(t,n,r),Dj=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Su(e)(t,n,a)},Oj=e=>async(t,n,r)=>Su(e)(t,n,r),Lj=/^[cC][0-9a-z]{6,}$/,Fj=/^[0-9a-z]+$/,Mj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Pj=/^[0-9a-vA-V]{20}$/,jj=/^[A-Za-z0-9]{27}$/,Bj=/^[a-zA-Z0-9_-]{21}$/,Uj=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,$j=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,cx=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zj=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Hj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Gj(){return new RegExp(Hj,"u")}const Wj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Vj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qj=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Yj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Zj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pv=/^[A-Za-z0-9_-]*$/,Kj=/^https?$/,Xj=/^\+[1-9]\d{6,14}$/,fv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Qj=new RegExp(`^${fv}$`);function mv(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Jj(e){return new RegExp(`^${mv(e)}$`)}function e8(e){const t=mv({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${fv}T(?:${r})$`)}const t8=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},n8=/^-?\d+$/,hv=/^-?\d+(?:\.\d+)?$/,r8=/^(?:true|false)$/i,a8=/^[^A-Z]*$/,s8=/^[^a-z]*$/,Hn=ne("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),gv={number:"number",bigint:"bigint",object:"date"},bv=ne("$ZodCheckLessThan",(e,t)=>{Hn.init(e,t);const n=gv[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,s=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ev=ne("$ZodCheckGreaterThan",(e,t)=>{Hn.init(e,t);const n=gv[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,s=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),i8=ne("$ZodCheckMultipleOf",(e,t)=>{Hn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):lj(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),o8=ne("$ZodCheckNumberFormat",(e,t)=>{Hn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[a,s]=fj[t.format];e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,o.minimum=a,o.maximum=s,n&&(o.pattern=n8)}),e._zod.check=i=>{const o=i.value;if(n){if(!Number.isInteger(o)){i.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?i.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):i.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}o<a&&i.issues.push({origin:"number",input:o,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),o>s&&i.issues.push({origin:"number",input:o,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),l8=ne("$ZodCheckMaxLength",(e,t)=>{var n;Hn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!fb(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const i=hb(a);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),u8=ne("$ZodCheckMinLength",(e,t)=>{var n;Hn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!fb(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const i=hb(a);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),c8=ne("$ZodCheckLengthEquals",(e,t)=>{var n;Hn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!fb(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,s=a.length;if(s===t.length)return;const i=hb(a),o=s>t.length;r.issues.push({origin:i,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),vu=ne("$ZodCheckStringFormat",(e,t)=>{var n,r;Hn.init(e,t),e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),d8=ne("$ZodCheckRegex",(e,t)=>{vu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),p8=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=a8),vu.init(e,t)}),f8=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=s8),vu.init(e,t)}),m8=ne("$ZodCheckIncludes",(e,t)=>{Hn.init(e,t);const n=os(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const s=a._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),h8=ne("$ZodCheckStartsWith",(e,t)=>{Hn.init(e,t);const n=new RegExp(`^${os(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),g8=ne("$ZodCheckEndsWith",(e,t)=>{Hn.init(e,t);const n=new RegExp(`.*${os(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),b8=ne("$ZodCheckOverwrite",(e,t)=>{Hn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class E8{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
106
|
+
`).filter(i=>i),a=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(a)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,a.join(`
|
|
107
|
+
`))}}const x8={major:4,minor:4,patch:3},qt=ne("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=x8;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const s of a._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(i,o,u)=>{let c=qa(i),p;for(const d of o){if(d._zod.def.when){if(Tj(i)||!d._zod.def.when(i))continue}else if(c)continue;const f=i.issues.length,m=d._zod.check(i);if(m instanceof Promise&&u?.async===!1)throw new Ja;if(p||m instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await m,i.issues.length!==f&&(c||(c=qa(i,f)))});else{if(i.issues.length===f)continue;c||(c=qa(i,f))}}return p?p.then(()=>i):i},s=(i,o,u)=>{if(qa(i))return i.aborted=!0,i;const c=a(o,r,u);if(c instanceof Promise){if(u.async===!1)throw new Ja;return c.then(p=>e._zod.parse(p,u))}return e._zod.parse(c,u)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if(o.direction==="backward"){const c=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return c instanceof Promise?c.then(p=>s(p,i,o)):s(c,i,o)}const u=e._zod.parse(i,o);if(u instanceof Promise){if(o.async===!1)throw new Ja;return u.then(c=>a(c,r,o))}return a(u,r,o)}}Ot(e,"~standard",()=>({validate:a=>{try{const s=wj(e,a);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return Nj(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Eb=ne("$ZodString",(e,t)=>{qt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??t8(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Gt=ne("$ZodStringFormat",(e,t)=>{vu.init(e,t),Eb.init(e,t)}),y8=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=$j),Gt.init(e,t)}),T8=ne("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=cx(r))}else t.pattern??(t.pattern=cx());Gt.init(e,t)}),S8=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=zj),Gt.init(e,t)}),v8=ne("$ZodURL",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Kj.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),w8=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Gj()),Gt.init(e,t)}),N8=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Bj),Gt.init(e,t)}),A8=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Lj),Gt.init(e,t)}),_8=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Fj),Gt.init(e,t)}),C8=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Mj),Gt.init(e,t)}),k8=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pj),Gt.init(e,t)}),I8=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jj),Gt.init(e,t)}),R8=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=e8(t)),Gt.init(e,t)}),D8=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Qj),Gt.init(e,t)}),O8=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Jj(t)),Gt.init(e,t)}),L8=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Uj),Gt.init(e,t)}),F8=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Wj),Gt.init(e,t),e._zod.bag.format="ipv4"}),M8=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Vj),Gt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),P8=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=qj),Gt.init(e,t)}),j8=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Yj),Gt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[a,s]=r;if(!s)throw new Error;const i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function xv(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const B8=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Zj),Gt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{xv(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function U8(e){if(!pv.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return xv(n)}const $8=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=pv),Gt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{U8(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),z8=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Xj),Gt.init(e,t)});function H8(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const G8=ne("$ZodJWT",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{H8(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),yv=ne("$ZodNumber",(e,t)=>{qt.init(e,t),e._zod.pattern=e._zod.bag.pattern??hv,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const s=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...s?{received:s}:{}}),n}}),W8=ne("$ZodNumberFormat",(e,t)=>{o8.init(e,t),yv.init(e,t)}),V8=ne("$ZodBoolean",(e,t)=>{qt.init(e,t),e._zod.pattern=r8,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),q8=ne("$ZodUnknown",(e,t)=>{qt.init(e,t),e._zod.parse=n=>n}),Y8=ne("$ZodNever",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function dx(e,t,n){e.issues.length&&t.issues.push(...Ya(n,e.issues)),t.value[n]=e.value}const Z8=ne("$ZodArray",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const s=[];for(let i=0;i<a.length;i++){const o=a[i],u=t.element._zod.run({value:o,issues:[]},r);u instanceof Promise?s.push(u.then(c=>dx(c,n,i))):dx(u,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function gl(e,t,n,r,a,s){const i=n in r;if(e.issues.length){if(a&&s&&!i)return;t.issues.push(...Ya(n,e.issues))}if(!i&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function Tv(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=pj(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Sv(e,t,n,r,a,s){const i=[],o=a.keySet,u=a.catchall._zod,c=u.def.type,p=u.optin==="optional",d=u.optout==="optional";for(const f in t){if(f==="__proto__"||o.has(f))continue;if(c==="never"){i.push(f);continue}const m=u.run({value:t[f],issues:[]},r);m instanceof Promise?e.push(m.then(b=>gl(b,n,f,t,p,d))):gl(m,n,f,t,p,d)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const K8=ne("$ZodObject",(e,t)=>{if(qt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const o=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...o};return Object.defineProperty(t,"shape",{value:u}),u}})}const r=yu(()=>Tv(t));Ot(e._zod,"propValues",()=>{const o=t.shape,u={};for(const c in o){const p=o[c]._zod;if(p.values){u[c]??(u[c]=new Set);for(const d of p.values)u[c].add(d)}}return u});const a=Ci,s=t.catchall;let i;e._zod.parse=(o,u)=>{i??(i=r.value);const c=o.value;if(!a(c))return o.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),o;o.value={};const p=[],d=i.shape;for(const f of i.keys){const m=d[f],b=m._zod.optin==="optional",E=m._zod.optout==="optional",x=m._zod.run({value:c[f],issues:[]},u);x instanceof Promise?p.push(x.then(y=>gl(y,o,f,c,b,E))):gl(x,o,f,c,b,E)}return s?Sv(p,c,o,u,r.value,e):p.length?Promise.all(p).then(()=>o):o}}),X8=ne("$ZodObjectJIT",(e,t)=>{K8.init(e,t);const n=e._zod.parse,r=yu(()=>Tv(t)),a=f=>{const m=new E8(["shape","payload","ctx"]),b=r.value,E=T=>{const N=ux(T);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};m.write("const input = payload.value;");const x=Object.create(null);let y=0;for(const T of b.keys)x[T]=`key_${y++}`;m.write("const newResult = {};");for(const T of b.keys){const N=x[T],D=ux(T),A=f[T],S=A?._zod?.optin==="optional",w=A?._zod?.optout==="optional";m.write(`const ${N} = ${E(T)};`),S&&w?m.write(`
|
|
108
|
+
if (${N}.issues.length) {
|
|
109
|
+
if (${D} in input) {
|
|
110
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
111
|
+
...iss,
|
|
112
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
113
|
+
})));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (${N}.value === undefined) {
|
|
118
|
+
if (${D} in input) {
|
|
119
|
+
newResult[${D}] = undefined;
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
newResult[${D}] = ${N}.value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
`):S?m.write(`
|
|
126
|
+
if (${N}.issues.length) {
|
|
127
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
128
|
+
...iss,
|
|
129
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
130
|
+
})));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (${N}.value === undefined) {
|
|
134
|
+
if (${D} in input) {
|
|
135
|
+
newResult[${D}] = undefined;
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
newResult[${D}] = ${N}.value;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
`):m.write(`
|
|
142
|
+
const ${N}_present = ${D} in input;
|
|
143
|
+
if (${N}.issues.length) {
|
|
144
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
145
|
+
...iss,
|
|
146
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
147
|
+
})));
|
|
148
|
+
}
|
|
149
|
+
if (!${N}_present && !${N}.issues.length) {
|
|
150
|
+
payload.issues.push({
|
|
151
|
+
code: "invalid_type",
|
|
152
|
+
expected: "nonoptional",
|
|
153
|
+
input: undefined,
|
|
154
|
+
path: [${D}]
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (${N}_present) {
|
|
159
|
+
if (${N}.value === undefined) {
|
|
160
|
+
newResult[${D}] = undefined;
|
|
161
|
+
} else {
|
|
162
|
+
newResult[${D}] = ${N}.value;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");const v=m.compile();return(T,N)=>v(f,T,N)};let s;const i=Ci,o=!pb.jitless,c=o&&cj.value,p=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=r.value);const b=f.value;return i(b)?o&&c&&m?.async===!1&&m.jitless!==!0?(s||(s=a(t.shape)),f=s(f,m),p?Sv([],b,f,m,d,e):f):n(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),f)}});function px(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const a=e.filter(s=>!qa(s));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>Or(i,r,Dr())))}),t)}const vv=ne("$ZodUnion",(e,t)=>{qt.init(e,t),Ot(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Ot(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Ot(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Ot(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${r.map(a=>mb(a.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,a)=>{if(n)return n(r,a);let s=!1;const i=[];for(const o of t.options){const u=o._zod.run({value:r.value,issues:[]},a);if(u instanceof Promise)i.push(u),s=!0;else{if(u.issues.length===0)return u;i.push(u)}}return s?Promise.all(i).then(o=>px(o,r,e,a)):px(i,r,e,a)}}),Q8=ne("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,vv.init(e,t);const n=e._zod.parse;Ot(e._zod,"propValues",()=>{const a={};for(const s of t.options){const i=s._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[o,u]of Object.entries(i)){a[o]||(a[o]=new Set);for(const c of u)a[o].add(c)}}return a});const r=yu(()=>{const a=t.options,s=new Map;for(const i of a){const o=i._zod.propValues?.[t.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const u of o){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,i)}}return s});e._zod.parse=(a,s)=>{const i=a.value;if(!Ci(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;const o=r.value.get(i?.[t.discriminator]);return o?o._zod.run(a,s):t.unionFallback||s.direction==="backward"?n(a,s):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),a)}}),J8=ne("$ZodIntersection",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,s=t.left._zod.run({value:a,issues:[]},r),i=t.right._zod.run({value:a,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([u,c])=>fx(n,u,c)):fx(n,s,i)}});function yd(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(is(e)&&is(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(const s of r){const i=yd(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};a[s]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],s=t[r],i=yd(a,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function fx(e,t,n){const r=new Map;let a;for(const o of t.issues)if(o.code==="unrecognized_keys"){a??(a=o);for(const u of o.keys)r.has(u)||r.set(u,{}),r.get(u).l=!0}else e.issues.push(o);for(const o of n.issues)if(o.code==="unrecognized_keys")for(const u of o.keys)r.has(u)||r.set(u,{}),r.get(u).r=!0;else e.issues.push(o);const s=[...r].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(s.length&&a&&e.issues.push({...a,keys:s}),qa(e))return e;const i=yd(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const eB=ne("$ZodRecord",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!is(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const s=[],i=t.keyType._zod.values;if(i){n.value={};const o=new Set;for(const c of i)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){o.add(typeof c=="number"?c.toString():c);const p=t.keyType._zod.run({value:c,issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(m=>Or(m,r,Dr())),input:c,path:[c],inst:e});continue}const d=p.value,f=t.valueType._zod.run({value:a[c],issues:[]},r);f instanceof Promise?s.push(f.then(m=>{m.issues.length&&n.issues.push(...Ya(c,m.issues)),n.value[d]=m.value})):(f.issues.length&&n.issues.push(...Ya(c,f.issues)),n.value[d]=f.value)}let u;for(const c in a)o.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:u})}else{n.value={};for(const o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let u=t.keyType._zod.run({value:o,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&hv.test(o)&&u.issues.length){const d=t.keyType._zod.run({value:Number(o),issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){t.mode==="loose"?n.value[o]=a[o]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>Or(d,r,Dr())),input:o,path:[o],inst:e});continue}const p=t.valueType._zod.run({value:a[o],issues:[]},r);p instanceof Promise?s.push(p.then(d=>{d.issues.length&&n.issues.push(...Ya(o,d.issues)),n.value[u.value]=d.value})):(p.issues.length&&n.issues.push(...Ya(o,p.issues)),n.value[u.value]=p.value)}}return s.length?Promise.all(s).then(()=>n):n}}),tB=ne("$ZodEnum",(e,t)=>{qt.init(e,t);const n=iv(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>dj.has(typeof a)).map(a=>typeof a=="string"?os(a):a.toString()).join("|")})$`),e._zod.parse=(a,s)=>{const i=a.value;return r.has(i)||a.issues.push({code:"invalid_value",values:n,input:i,inst:e}),a}}),nB=ne("$ZodLiteral",(e,t)=>{if(qt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?os(r):r?os(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,a)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),rB=ne("$ZodTransform",(e,t)=>{qt.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new sv(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n.fallback=!0,n));if(a instanceof Promise)throw new Ja;return n.value=a,n.fallback=!0,n}});function mx(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const wv=ne("$ZodOptional",(e,t)=>{qt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ot(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ot(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${mb(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const a=n.value,s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>mx(i,a)):mx(s,a)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),aB=ne("$ZodExactOptional",(e,t)=>{wv.init(e,t),Ot(e._zod,"values",()=>t.innerType._zod.values),Ot(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),sB=ne("$ZodNullable",(e,t)=>{qt.init(e,t),Ot(e._zod,"optin",()=>t.innerType._zod.optin),Ot(e._zod,"optout",()=>t.innerType._zod.optout),Ot(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${mb(n.source)}|null)$`):void 0}),Ot(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),iB=ne("$ZodDefault",(e,t)=>{qt.init(e,t),e._zod.optin="optional",Ot(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>hx(s,t)):hx(a,t)}});function hx(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const oB=ne("$ZodPrefault",(e,t)=>{qt.init(e,t),e._zod.optin="optional",Ot(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),lB=ne("$ZodNonOptional",(e,t)=>{qt.init(e,t),Ot(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>gx(s,e)):gx(a,e)}});function gx(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const uB=ne("$ZodCatch",(e,t)=>{qt.init(e,t),e._zod.optin="optional",Ot(e._zod,"optout",()=>t.innerType._zod.optout),Ot(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>Or(i,r,Dr()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>Or(s,r,Dr()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Nv=ne("$ZodPipe",(e,t)=>{qt.init(e,t),Ot(e._zod,"values",()=>t.in._zod.values),Ot(e._zod,"optin",()=>t.in._zod.optin),Ot(e._zod,"optout",()=>t.out._zod.optout),Ot(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>_o(i,t.in,r)):_o(s,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(s=>_o(s,t.out,r)):_o(a,t.out,r)}});function _o(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const cB=ne("$ZodPreprocess",(e,t)=>{Nv.init(e,t)}),dB=ne("$ZodReadonly",(e,t)=>{qt.init(e,t),Ot(e._zod,"propValues",()=>t.innerType._zod.propValues),Ot(e._zod,"values",()=>t.innerType._zod.values),Ot(e._zod,"optin",()=>t.innerType?._zod?.optin),Ot(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(bx):bx(a)}});function bx(e){return e.value=Object.freeze(e.value),e}const pB=ne("$ZodCustom",(e,t)=>{Hn.init(e,t),qt.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(s=>Ex(s,n,r,e));Ex(a,n,r,e)}});function Ex(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(ki(a))}}var xx;class fB{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const a={...r,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function mB(){return new fB}(xx=globalThis).__zod_globalRegistry??(xx.__zod_globalRegistry=mB());const Ks=globalThis.__zod_globalRegistry;function hB(e,t){return new e({type:"string",...Ge(t)})}function gB(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ge(t)})}function yx(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ge(t)})}function bB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ge(t)})}function EB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ge(t)})}function xB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ge(t)})}function yB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ge(t)})}function TB(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ge(t)})}function SB(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ge(t)})}function vB(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ge(t)})}function wB(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ge(t)})}function NB(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ge(t)})}function AB(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ge(t)})}function _B(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ge(t)})}function CB(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ge(t)})}function kB(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ge(t)})}function IB(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ge(t)})}function RB(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ge(t)})}function DB(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ge(t)})}function OB(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ge(t)})}function LB(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ge(t)})}function FB(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ge(t)})}function MB(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ge(t)})}function PB(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ge(t)})}function jB(e,t){return new e({type:"string",format:"date",check:"string_format",...Ge(t)})}function BB(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ge(t)})}function UB(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ge(t)})}function $B(e,t){return new e({type:"number",checks:[],...Ge(t)})}function zB(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ge(t)})}function HB(e,t){return new e({type:"boolean",...Ge(t)})}function GB(e){return new e({type:"unknown"})}function WB(e,t){return new e({type:"never",...Ge(t)})}function Tx(e,t){return new bv({check:"less_than",...Ge(t),value:e,inclusive:!1})}function bc(e,t){return new bv({check:"less_than",...Ge(t),value:e,inclusive:!0})}function Sx(e,t){return new Ev({check:"greater_than",...Ge(t),value:e,inclusive:!1})}function Ec(e,t){return new Ev({check:"greater_than",...Ge(t),value:e,inclusive:!0})}function vx(e,t){return new i8({check:"multiple_of",...Ge(t),value:e})}function Av(e,t){return new l8({check:"max_length",...Ge(t),maximum:e})}function bl(e,t){return new u8({check:"min_length",...Ge(t),minimum:e})}function _v(e,t){return new c8({check:"length_equals",...Ge(t),length:e})}function VB(e,t){return new d8({check:"string_format",format:"regex",...Ge(t),pattern:e})}function qB(e){return new p8({check:"string_format",format:"lowercase",...Ge(e)})}function YB(e){return new f8({check:"string_format",format:"uppercase",...Ge(e)})}function ZB(e,t){return new m8({check:"string_format",format:"includes",...Ge(t),includes:e})}function KB(e,t){return new h8({check:"string_format",format:"starts_with",...Ge(t),prefix:e})}function XB(e,t){return new g8({check:"string_format",format:"ends_with",...Ge(t),suffix:e})}function vs(e){return new b8({check:"overwrite",tx:e})}function QB(e){return vs(t=>t.normalize(e))}function JB(){return vs(e=>e.trim())}function eU(){return vs(e=>e.toLowerCase())}function tU(){return vs(e=>e.toUpperCase())}function nU(){return vs(e=>uj(e))}function rU(e,t,n){return new e({type:"array",element:t,...Ge(n)})}function aU(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ge(n)})}function sU(e,t){const n=iU(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(ki(a,r.value,n._zod.def));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(ki(s))}},e(r.value,r)),t);return n}function iU(e,t){const n=new Hn({check:"custom",...Ge(t)});return n._zod.check=e,n}function Cv(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ks,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function an(e,t,n={path:[],schemaPath:[]}){var r;const a=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const o=e._zod.toJSONSchema?.();if(o)i.schema=o;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,p);else{const f=i.schema,m=t.processors[a.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);m(e,t,f,p)}const d=e._zod.parent;d&&(i.ref||(i.ref=d),an(d,t,p),t.seen.get(d).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(i.schema,u),t.io==="input"&&On(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function kv(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const i of e.seen.entries()){const o=e.metadataRegistry.get(i[0])?.id;if(o){const u=r.get(o);if(u&&u!==i[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(o,i[0])}}const a=i=>{const o=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(i[0])?.id,f=e.external.uri??(b=>b);if(d)return{ref:f(d)};const m=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=m,{defId:m,ref:`${f("__shared")}#/${o}/${m}`}}if(i[1]===n)return{ref:"#"};const c=`#/${o}/`,p=i[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:c+p}},s=i=>{if(i[1].schema.$ref)return;const o=i[1],{ref:u,defId:c}=a(i);o.def={...o.schema},c&&(o.defId=c);const p=o.schema;for(const d in p)delete p[d];p.$ref=u};if(e.cycles==="throw")for(const i of e.seen.entries()){const o=i[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
167
|
+
|
|
168
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const o=i[1];if(t===i[0]){s(i);continue}if(e.external){const c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){s(i);continue}}if(e.metadataRegistry.get(i[0])?.id){s(i);continue}if(o.cycle){s(i);continue}if(o.count>1&&e.reused==="ref"){s(i);continue}}}function Iv(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=o=>{const u=e.seen.get(o);if(u.ref===null)return;const c=u.def??u.schema,p={...c},d=u.ref;if(u.ref=null,d){r(d);const m=e.seen.get(d),b=m.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(b)):Object.assign(c,b),Object.assign(c,p),o._zod.parent===d)for(const x in c)x==="$ref"||x==="allOf"||x in p||delete c[x];if(b.$ref&&m.def)for(const x in c)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(c[x])===JSON.stringify(m.def[x])&&delete c[x]}const f=o._zod.parent;if(f&&f!==d){r(f);const m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(const b in c)b==="$ref"||b==="allOf"||b in m.def&&JSON.stringify(c[b])===JSON.stringify(m.def[b])&&delete c[b]}e.override({zodSchema:o,jsonSchema:c,path:u.path??[]})};for(const o of[...e.seen.entries()].reverse())r(o[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const o=e.external.registry.get(t)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(o)}Object.assign(a,n.def??n.schema);const s=e.metadataRegistry.get(t)?.id;s!==void 0&&a.id===s&&delete a.id;const i=e.external?.defs??{};for(const o of e.seen.entries()){const u=o[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{const o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...t["~standard"],jsonSchema:{input:El(t,"input",e.processors),output:El(t,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function On(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return On(r.element,n);if(r.type==="set")return On(r.valueType,n);if(r.type==="lazy")return On(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return On(r.innerType,n);if(r.type==="intersection")return On(r.left,n)||On(r.right,n);if(r.type==="record"||r.type==="map")return On(r.keyType,n)||On(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:On(r.in,n)||On(r.out,n);if(r.type==="object"){for(const a in r.shape)if(On(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(On(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(On(a,n))return!0;return!!(r.rest&&On(r.rest,n))}return!1}const oU=(e,t={})=>n=>{const r=Cv({...n,processors:t});return an(e,r),kv(r,e),Iv(r,e)},El=(e,t,n={})=>r=>{const{libraryOptions:a,target:s}=r??{},i=Cv({...a??{},target:s,io:t,processors:n});return an(e,i),kv(i,e),Iv(i,e)},lU={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},uU=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:s,maximum:i,format:o,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof s=="number"&&(a.minLength=s),typeof i=="number"&&(a.maxLength=i),o&&(a.format=lU[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),c&&(a.contentEncoding=c),u&&u.size>0){const p=[...u];p.length===1?a.pattern=p[0].source:p.length>1&&(a.allOf=[...p.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},cU=(e,t,n,r)=>{const a=n,{minimum:s,maximum:i,format:o,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:p}=e._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";const d=typeof p=="number"&&p>=(s??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(i??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";d?m?(a.minimum=p,a.exclusiveMinimum=!0):a.exclusiveMinimum=p:typeof s=="number"&&(a.minimum=s),f?m?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof i=="number"&&(a.maximum=i),typeof u=="number"&&(a.multipleOf=u)},dU=(e,t,n,r)=>{n.type="boolean"},pU=(e,t,n,r)=>{n.not={}},fU=(e,t,n,r)=>{},mU=(e,t,n,r)=>{const a=e._zod.def,s=iv(a.entries);s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},hU=(e,t,n,r)=>{const a=e._zod.def,s=[];for(const i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(i))}else s.push(i);if(s.length!==0)if(s.length===1){const i=s[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),s.every(i=>typeof i=="boolean")&&(n.type="boolean"),s.every(i=>i===null)&&(n.type="null"),n.enum=s},gU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},bU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},EU=(e,t,n,r)=>{const a=n,s=e._zod.def,{minimum:i,maximum:o}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=an(s.element,t,{...r,path:[...r.path,"items"]})},xU=(e,t,n,r)=>{const a=n,s=e._zod.def;a.type="object",a.properties={};const i=s.shape;for(const c in i)a.properties[c]=an(i[c],t,{...r,path:[...r.path,"properties",c]});const o=new Set(Object.keys(i)),u=new Set([...o].filter(c=>{const p=s.shape[c]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));u.size>0&&(a.required=Array.from(u)),s.catchall?._zod.def.type==="never"?a.additionalProperties=!1:s.catchall?s.catchall&&(a.additionalProperties=an(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},yU=(e,t,n,r)=>{const a=e._zod.def,s=a.inclusive===!1,i=a.options.map((o,u)=>an(o,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?n.oneOf=i:n.anyOf=i},TU=(e,t,n,r)=>{const a=e._zod.def,s=an(a.left,t,{...r,path:[...r.path,"allOf",0]}),i=an(a.right,t,{...r,path:[...r.path,"allOf",1]}),o=c=>"allOf"in c&&Object.keys(c).length===1,u=[...o(s)?s.allOf:[s],...o(i)?i.allOf:[i]];n.allOf=u},SU=(e,t,n,r)=>{const a=n,s=e._zod.def;a.type="object";const i=s.keyType,u=i._zod.bag?.patterns;if(s.mode==="loose"&&u&&u.size>0){const p=an(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});a.patternProperties={};for(const d of u)a.patternProperties[d.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=an(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),a.additionalProperties=an(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=i._zod.values;if(c){const p=[...c].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(a.required=p)}},vU=(e,t,n,r)=>{const a=e._zod.def,s=an(a.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},wU=(e,t,n,r)=>{const a=e._zod.def;an(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},NU=(e,t,n,r)=>{const a=e._zod.def;an(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},AU=(e,t,n,r)=>{const a=e._zod.def;an(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},_U=(e,t,n,r)=>{const a=e._zod.def;an(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},CU=(e,t,n,r)=>{const a=e._zod.def,s=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?s?a.out:a.in:a.out;an(i,t,r);const o=t.seen.get(e);o.ref=i},kU=(e,t,n,r)=>{const a=e._zod.def;an(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,n.readOnly=!0},Rv=(e,t,n,r)=>{const a=e._zod.def;an(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},IU=ne("ZodISODateTime",(e,t)=>{R8.init(e,t),Zt.init(e,t)});function RU(e){return PB(IU,e)}const DU=ne("ZodISODate",(e,t)=>{D8.init(e,t),Zt.init(e,t)});function OU(e){return jB(DU,e)}const LU=ne("ZodISOTime",(e,t)=>{O8.init(e,t),Zt.init(e,t)});function FU(e){return BB(LU,e)}const MU=ne("ZodISODuration",(e,t)=>{L8.init(e,t),Zt.init(e,t)});function PU(e){return UB(MU,e)}const jU=(e,t)=>{cv.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>vj(e,n)},flatten:{value:n=>Sj(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xd,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xd,2)}},isEmpty:{get(){return e.issues.length===0}}})},or=ne("ZodError",jU,{Parent:Error}),BU=gb(or),UU=bb(or),$U=Tu(or),zU=Su(or),HU=Aj(or),GU=_j(or),WU=Cj(or),VU=kj(or),qU=Ij(or),YU=Rj(or),ZU=Dj(or),KU=Oj(or),wx=new WeakMap;function to(e,t,n){const r=Object.getPrototypeOf(e);let a=wx.get(r);if(a||(a=new Set,wx.set(r,a)),!a.has(t)){a.add(t);for(const s in n){const i=n[s];Object.defineProperty(r,s,{configurable:!0,enumerable:!1,get(){const o=i.bind(this);return Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}const Yt=ne("ZodType",(e,t)=>(qt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:El(e,"input"),output:El(e,"output")}}),e.toJSONSchema=oU(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>BU(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>$U(e,n,r),e.parseAsync=async(n,r)=>UU(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>zU(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>HU(e,n,r),e.decode=(n,r)=>GU(e,n,r),e.encodeAsync=async(n,r)=>WU(e,n,r),e.decodeAsync=async(n,r)=>VU(e,n,r),e.safeEncode=(n,r)=>qU(e,n,r),e.safeDecode=(n,r)=>YU(e,n,r),e.safeEncodeAsync=async(n,r)=>ZU(e,n,r),e.safeDecodeAsync=async(n,r)=>KU(e,n,r),to(e,"ZodType",{check(...n){const r=this.def;return this.clone(aa(r,{checks:[...r.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return sa(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check($7(n,r))},superRefine(n,r){return this.check(z7(n,r))},overwrite(n){return this.check(vs(n))},optional(){return Cx(this)},exactOptional(){return C7(this)},nullable(){return kx(this)},nullish(){return Cx(kx(this))},nonoptional(n){return L7(this,n)},array(){return ot(this)},or(n){return S7([this,n])},and(n){return Mv(this,n)},transform(n){return Ix(this,Pv(n))},default(n){return R7(this,n)},prefault(n){return O7(this,n)},catch(n){return M7(this,n)},pipe(n){return Ix(this,n)},readonly(){return B7(this)},describe(n){const r=this.clone();return Ks.add(r,{description:n}),r},meta(...n){if(n.length===0)return Ks.get(this);const r=this.clone();return Ks.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Ks.get(e)?.description},configurable:!0}),e)),Dv=ne("_ZodString",(e,t)=>{Eb.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(r,a,s)=>uU(e,r,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,to(e,"_ZodString",{regex(...r){return this.check(VB(...r))},includes(...r){return this.check(ZB(...r))},startsWith(...r){return this.check(KB(...r))},endsWith(...r){return this.check(XB(...r))},min(...r){return this.check(bl(...r))},max(...r){return this.check(Av(...r))},length(...r){return this.check(_v(...r))},nonempty(...r){return this.check(bl(1,...r))},lowercase(r){return this.check(qB(r))},uppercase(r){return this.check(YB(r))},trim(){return this.check(JB())},normalize(...r){return this.check(QB(...r))},toLowerCase(){return this.check(eU())},toUpperCase(){return this.check(tU())},slugify(){return this.check(nU())}})}),XU=ne("ZodString",(e,t)=>{Eb.init(e,t),Dv.init(e,t),e.email=n=>e.check(gB(QU,n)),e.url=n=>e.check(TB(JU,n)),e.jwt=n=>e.check(MB(m7,n)),e.emoji=n=>e.check(SB(e7,n)),e.guid=n=>e.check(yx(Nx,n)),e.uuid=n=>e.check(bB(Co,n)),e.uuidv4=n=>e.check(EB(Co,n)),e.uuidv6=n=>e.check(xB(Co,n)),e.uuidv7=n=>e.check(yB(Co,n)),e.nanoid=n=>e.check(vB(t7,n)),e.guid=n=>e.check(yx(Nx,n)),e.cuid=n=>e.check(wB(n7,n)),e.cuid2=n=>e.check(NB(r7,n)),e.ulid=n=>e.check(AB(a7,n)),e.base64=n=>e.check(OB(d7,n)),e.base64url=n=>e.check(LB(p7,n)),e.xid=n=>e.check(_B(s7,n)),e.ksuid=n=>e.check(CB(i7,n)),e.ipv4=n=>e.check(kB(o7,n)),e.ipv6=n=>e.check(IB(l7,n)),e.cidrv4=n=>e.check(RB(u7,n)),e.cidrv6=n=>e.check(DB(c7,n)),e.e164=n=>e.check(FB(f7,n)),e.datetime=n=>e.check(RU(n)),e.date=n=>e.check(OU(n)),e.time=n=>e.check(FU(n)),e.duration=n=>e.check(PU(n))});function V(e){return hB(XU,e)}const Zt=ne("ZodStringFormat",(e,t)=>{Gt.init(e,t),Dv.init(e,t)}),QU=ne("ZodEmail",(e,t)=>{S8.init(e,t),Zt.init(e,t)}),Nx=ne("ZodGUID",(e,t)=>{y8.init(e,t),Zt.init(e,t)}),Co=ne("ZodUUID",(e,t)=>{T8.init(e,t),Zt.init(e,t)}),JU=ne("ZodURL",(e,t)=>{v8.init(e,t),Zt.init(e,t)}),e7=ne("ZodEmoji",(e,t)=>{w8.init(e,t),Zt.init(e,t)}),t7=ne("ZodNanoID",(e,t)=>{N8.init(e,t),Zt.init(e,t)}),n7=ne("ZodCUID",(e,t)=>{A8.init(e,t),Zt.init(e,t)}),r7=ne("ZodCUID2",(e,t)=>{_8.init(e,t),Zt.init(e,t)}),a7=ne("ZodULID",(e,t)=>{C8.init(e,t),Zt.init(e,t)}),s7=ne("ZodXID",(e,t)=>{k8.init(e,t),Zt.init(e,t)}),i7=ne("ZodKSUID",(e,t)=>{I8.init(e,t),Zt.init(e,t)}),o7=ne("ZodIPv4",(e,t)=>{F8.init(e,t),Zt.init(e,t)}),l7=ne("ZodIPv6",(e,t)=>{M8.init(e,t),Zt.init(e,t)}),u7=ne("ZodCIDRv4",(e,t)=>{P8.init(e,t),Zt.init(e,t)}),c7=ne("ZodCIDRv6",(e,t)=>{j8.init(e,t),Zt.init(e,t)}),d7=ne("ZodBase64",(e,t)=>{B8.init(e,t),Zt.init(e,t)}),p7=ne("ZodBase64URL",(e,t)=>{$8.init(e,t),Zt.init(e,t)}),f7=ne("ZodE164",(e,t)=>{z8.init(e,t),Zt.init(e,t)}),m7=ne("ZodJWT",(e,t)=>{G8.init(e,t),Zt.init(e,t)}),Ov=ne("ZodNumber",(e,t)=>{yv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(r,a,s)=>cU(e,r,a),to(e,"ZodNumber",{gt(r,a){return this.check(Sx(r,a))},gte(r,a){return this.check(Ec(r,a))},min(r,a){return this.check(Ec(r,a))},lt(r,a){return this.check(Tx(r,a))},lte(r,a){return this.check(bc(r,a))},max(r,a){return this.check(bc(r,a))},int(r){return this.check(Ax(r))},safe(r){return this.check(Ax(r))},positive(r){return this.check(Sx(0,r))},nonnegative(r){return this.check(Ec(0,r))},negative(r){return this.check(Tx(0,r))},nonpositive(r){return this.check(bc(0,r))},multipleOf(r,a){return this.check(vx(r,a))},step(r,a){return this.check(vx(r,a))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function pe(e){return $B(Ov,e)}const h7=ne("ZodNumberFormat",(e,t)=>{W8.init(e,t),Ov.init(e,t)});function Ax(e){return zB(h7,e)}const g7=ne("ZodBoolean",(e,t)=>{V8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>dU(e,n,r)});function Lr(e){return HB(g7,e)}const b7=ne("ZodUnknown",(e,t)=>{q8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>fU()});function ls(){return GB(b7)}const E7=ne("ZodNever",(e,t)=>{Y8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>pU(e,n,r)});function x7(e){return WB(E7,e)}const y7=ne("ZodArray",(e,t)=>{Z8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>EU(e,n,r,a),e.element=t.element,to(e,"ZodArray",{min(n,r){return this.check(bl(n,r))},nonempty(n){return this.check(bl(1,n))},max(n,r){return this.check(Av(n,r))},length(n,r){return this.check(_v(n,r))},unwrap(){return this.element}})});function ot(e,t){return rU(y7,e,t)}const T7=ne("ZodObject",(e,t)=>{X8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>xU(e,n,r,a),Ot(e,"shape",()=>t.shape),to(e,"ZodObject",{keyof(){return et(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ls()})},loose(){return this.clone({...this._zod.def,catchall:ls()})},strict(){return this.clone({...this._zod.def,catchall:x7()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return gj(this,n)},safeExtend(n){return bj(this,n)},merge(n){return Ej(this,n)},pick(n){return mj(this,n)},omit(n){return hj(this,n)},partial(...n){return xj(jv,this,n[0])},required(...n){return yj(Bv,this,n[0])}})});function ye(e,t){const n={type:"object",shape:e??{},...Ge(t)};return new T7(n)}const Lv=ne("ZodUnion",(e,t)=>{vv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>yU(e,n,r,a),e.options=t.options});function S7(e,t){return new Lv({type:"union",options:e,...Ge(t)})}const v7=ne("ZodDiscriminatedUnion",(e,t)=>{Lv.init(e,t),Q8.init(e,t)});function Fv(e,t,n){return new v7({type:"union",options:t,discriminator:e,...Ge(n)})}const w7=ne("ZodIntersection",(e,t)=>{J8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>TU(e,n,r,a)});function Mv(e,t){return new w7({type:"intersection",left:e,right:t})}const _x=ne("ZodRecord",(e,t)=>{eB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>SU(e,n,r,a),e.keyType=t.keyType,e.valueType=t.valueType});function wu(e,t,n){return!t||!t._zod?new _x({type:"record",keyType:V(),valueType:e,...Ge(t)}):new _x({type:"record",keyType:e,valueType:t,...Ge(n)})}const Td=ne("ZodEnum",(e,t)=>{tB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(r,a,s)=>mU(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Td({...t,checks:[],...Ge(a),entries:s})},e.exclude=(r,a)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new Td({...t,checks:[],...Ge(a),entries:s})}});function et(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Td({type:"enum",entries:n,...Ge(t)})}const N7=ne("ZodLiteral",(e,t)=>{nB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>hU(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function qn(e,t){return new N7({type:"literal",values:Array.isArray(e)?e:[e],...Ge(t)})}const A7=ne("ZodTransform",(e,t)=>{rB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>bU(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new sv(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(ki(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(ki(i))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(s=>(n.value=s,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function Pv(e){return new A7({type:"transform",transform:e})}const jv=ne("ZodOptional",(e,t)=>{wv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Rv(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function Cx(e){return new jv({type:"optional",innerType:e})}const _7=ne("ZodExactOptional",(e,t)=>{aB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Rv(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function C7(e){return new _7({type:"optional",innerType:e})}const k7=ne("ZodNullable",(e,t)=>{sB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>vU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function kx(e){return new k7({type:"nullable",innerType:e})}const I7=ne("ZodDefault",(e,t)=>{iB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>NU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function R7(e,t){return new I7({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():lv(t)}})}const D7=ne("ZodPrefault",(e,t)=>{oB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>AU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function O7(e,t){return new D7({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():lv(t)}})}const Bv=ne("ZodNonOptional",(e,t)=>{lB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>wU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function L7(e,t){return new Bv({type:"nonoptional",innerType:e,...Ge(t)})}const F7=ne("ZodCatch",(e,t)=>{uB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>_U(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function M7(e,t){return new F7({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Uv=ne("ZodPipe",(e,t)=>{Nv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>CU(e,n,r,a),e.in=t.in,e.out=t.out});function Ix(e,t){return new Uv({type:"pipe",in:e,out:t})}const P7=ne("ZodPreprocess",(e,t)=>{Uv.init(e,t),cB.init(e,t)}),j7=ne("ZodReadonly",(e,t)=>{dB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>kU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function B7(e){return new j7({type:"readonly",innerType:e})}const U7=ne("ZodCustom",(e,t)=>{pB.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>gU(e,n)});function $7(e,t={}){return aU(U7,e,t)}function z7(e,t){return sU(e,t)}function xc(e,t){return new P7({type:"pipe",in:Pv(e),out:t})}const ar=["backlog","todo","wip","testing","blocked","done","cancelled"],ws=["backlog","active","verifying","blocked","done","cancelled"],H7={backlog:"📋",todo:"🔲",wip:"🚧",testing:"🧪",blocked:"🚫",done:"✅",cancelled:"⛔"};function xb(e){try{return H7[zv(e)]??""}catch{return""}}const Nu=["P0","P1","P2","P3"],G7=["simple","standard","complex","research","refine","plan","unit","review","docs"],$v=["task","issue","review","meta","brainstorm"],Au=["standard","feature-impl","issue","review","meta","brainstorm"],yb=/^[A-Z][1-9]*$/,W7={completed:"done",complete:"done","in-progress":"wip","in progress":"wip",in_progress:"wip",dropped:"cancelled",cancel:"cancelled",canceled:"cancelled",new:"backlog",pending:"backlog",blocked:"blocked",wip:"wip",testing:"testing",done:"done",cancelled:"cancelled",backlog:"backlog",todo:"todo"};function zv(e){const t=e.trim().toLowerCase(),n=W7[t];if(n===void 0)throw new Error(`Unknown task status: ${JSON.stringify(e)} (allowed: ${ar.join(", ")})`);return n}const xl=V().min(1).refine(e=>!Number.isNaN(Date.parse(e)),{message:"must be an ISO 8601 timestamp"}),Hv=V().regex(yb,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}).nullable().optional(),Gv=V().regex(/^\d{4}$/,{message:"parent_wbs must be a 4-digit WBS string"}).nullable().optional();ye({schema_version:qn(1),name:V().min(1),description:V().optional(),status:xc(e=>{if(typeof e=="string")try{return zv(e)}catch{}return e},et(ar)),type:et($v).optional().default("task"),template:et(Au).optional(),profile:et(G7).optional(),feature_id:Hv,parent_wbs:Gv,priority:et(Nu).optional(),tags:ot(V()).optional(),dependencies:ot(V()).optional(),ac_numbering:qn("task-local").optional(),ac_altitude:et(["graduating","task-local"]).optional(),done_forced:xc(e=>typeof e=="string"?e==="true":e,Lr().optional()),done_reason:V().optional(),feature_link_declined:xc(e=>typeof e=="string"?e==="true":e,Lr().optional()),created_at:xl,updated_at:xl});ye({schema_version:qn(1),id:V().regex(yb,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}),name:V().min(1),status:et(ws),priority:et(Nu).optional(),tags:ot(V()).optional(),created_at:xl,updated_at:xl});const V7=ye({name:V().min(1,"name is required"),background:V().optional(),requirements:V().optional(),design:V().optional(),plan:V().optional(),acceptance_criteria:V().optional(),feature_id:Hv,parent_wbs:Gv,priority:et(Nu).optional(),tags:ot(V()).optional(),template:et(Au).optional()}).strict();ot(V7).min(1,"batch must contain at least one task");const q7=["NOT_FOUND","VALIDATION_FAILED","GUARD_DENIED","LOCK_TIMEOUT","CONFLICT","INTERNAL_ERROR"];function $t(e){return ye({ok:qn(!0),data:e})}ye({ok:qn(!1),error:ye({code:et(q7),message:V(),details:ls().optional()})});ye({nextCursor:V().optional(),hasMore:Lr(),limit:pe().int().positive()});const Yn=V().regex(yb,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}),Y7=ye({id:Yn,name:V().min(1),status:et(ws),priority:et(Nu).optional(),parentId:Yn.nullable().optional(),wbsCount:pe().int().nonnegative().optional()}),Z7=$t(ot(Y7)),K7=$t(ye({id:Yn,name:V(),status:et(ws),frontmatter:wu(V(),ls()),content:V(),filePath:V()})),X7=ye({id:Yn}),Q7=ye({name:V().min(1),parentId:Yn.optional()}),J7=$t(ye({id:V(),filePath:V()})),e9=ye({id:Yn,toStatus:et(ws),actor:V().optional()}),t9=$t(ye({id:V(),status:et(ws)})),n9=ye({id:Yn,body:V(),actor:V().optional()}),r9=$t(ye({})),a9=et(["brainstorm","plan"]),s9=et(["claude","codex","gemini","pi","opencode","antigravity","openclaw"]),i9=ye({id:Yn,action:a9,channel:s9.optional(),skipDeps:Lr().optional()}),o9=ye({runId:V(),action:V(),status:qn("queued")}),l9=$t(o9),u9=ye({id:Yn,name:V().min(1)}),c9=$t(ye({id:V(),filePath:V()})),d9=ye({id:Yn,title:V().min(1)}),p9=$t(ye({wbs:V(),filePath:V()})),f9=ye({id:Yn,wbs:V().regex(/^\d{4}$/)}),m9=$t(ye({})),Wv=et(["pull","push"]),h9=ye({id:Yn,direction:Wv}),g9=$t(ye({direction:Wv,affectedTasks:pe().int().nonnegative(),applied:Lr(),newStatus:V().optional()})),b9={list:Ft.route({method:"GET",path:"/features",summary:"List features",tags:["feature"]}).output(Z7),show:Ft.route({method:"GET",path:"/features/{id}",summary:"Show feature detail",tags:["feature"]}).input(X7).output(K7),create:Ft.route({method:"POST",path:"/features",summary:"Create a feature",tags:["feature"]}).input(Q7).output(J7),transition:Ft.route({method:"PATCH",path:"/features/{id}/status",summary:"Transition feature status",tags:["feature"]}).input(e9).output(t9),refresh:Ft.route({method:"POST",path:"/features/refresh",summary:"Refresh feature index and kanban",tags:["feature"]}).output($t(ye({rebuilt:pe().int().nonnegative()}))),check:Ft.route({method:"POST",path:"/features/{id}/check",summary:"Run the four-layer feature check",tags:["feature"]}).input(ye({id:Yn})).output($t(ye({id:V(),status:V(),pass:Lr(),findings:ot(ye({layer:et(["L1","L2","L3","L4"]),severity:et(["error","warning","info"]),section:V(),message:V()})),requiredSections:ot(V()),missingSections:ot(V())}))),body:Ft.route({method:"PATCH",path:"/features/{id}/body",summary:"Update feature body",tags:["feature"]}).input(n9).output(r9),action:Ft.route({method:"POST",path:"/features/{id}/action",summary:"Run a feature workflow action",tags:["feature"]}).input(i9).output(l9),children:Ft.route({method:"POST",path:"/features/{id}/children",summary:"Create a child feature",tags:["feature"]}).input(u9).output(c9),tasks:Ft.route({method:"POST",path:"/features/{id}/tasks",summary:"Create a task linked to feature",tags:["feature"]}).input(d9).output(p9),link:Ft.route({method:"PATCH",path:"/features/{id}/link",summary:"Link an existing task to feature",tags:["feature"]}).input(f9).output(m9),sync:Ft.route({method:"POST",path:"/features/{id}/sync",summary:"Sync feature status with linked tasks",tags:["feature"]}).input(h9).output(g9)},E9=et(["1h","4h","24h","7d","30d","all","custom"]),x9=et(["auto","5m","10m","30m","1h","4h","1d"]),y9=et(["model","source","tool","skill"]),Ii=ye({range:E9.default("4h"),from:V().datetime().optional(),to:V().datetime().optional(),sources:ot(V()).optional(),models:ot(V()).optional(),tools:ot(V()).optional(),skills:ot(V()).optional(),bucket:x9.default("auto"),dimension:y9.default("model")}),_u=ye({billedTokens:pe(),cacheSavedTokens:pe(),cacheReadTokens:pe(),freshInputTokens:pe(),outputTokens:pe()}),Rx=ye({totalBilledTokens:pe(),cacheSavedTokens:pe(),cacheSavedPercent:pe(),sessionsCount:pe(),toolCallsCount:pe(),errorRate:pe()}),T9=ye({day:V(),totalBilledTokens:pe(),cacheSavedTokens:pe(),sessionsCount:pe(),toolCallsCount:pe(),cacheHitRatio:pe()}),zs=ye({bucketStart:V(),cacheHitRatio:pe(),series:wu(V(),pe())}),Dx=ye({id:V(),label:V(),color:V(),tokens:pe(),share:pe()}),S9=ye({id:V(),count:pe(),errors:pe(),errorRate:pe()}),v9=ye({id:V(),label:V(),color:V(),count:pe()}),w9=ye({hitRatio:pe(),savedTokens:pe(),totalRead:pe()}),N9=ye({kpis:Rx,timeSeries:ot(zs),topModels:ot(Dx),topSources:ot(Dx),topTools:ot(S9),skillsUsed:ot(v9),cacheEfficiency:w9,kpiTrend:ot(T9),previousKpis:Rx.nullable(),skillTimeSeries:ot(zs),modelTimeSeries:ot(zs).optional(),sourceTimeSeries:ot(zs).optional(),toolTimeSeries:ot(zs).optional()}),A9=$t(N9),_9=et(["read","write","bash","search","run","user","assistant","unknown"]),Vv=et(["measured","inferred","unmeasured"]),C9=et(["exact","estimated"]),k9=Fv("mode",[ye({mode:qn("session"),source:V().min(1),sessionId:V().min(1)}),ye({mode:qn("consolidated"),filter:Ii.optional(),taskWbs:V().optional(),runId:V().optional()})]),I9=ye({seq:pe(),eventType:et(["message","tool"]),kind:_9,title:V(),toolName:V().nullable(),durationMs:pe().nullable(),durationSource:Vv,tokens:pe(),freshInputTokens:pe(),cacheReadTokens:pe(),outputTokens:pe(),promptTokens:_u.nullable(),exitCode:pe().nullable(),payload:V().nullable(),agent:V(),model:V()}),R9=ye({key:V(),sessionId:V(),turnIndex:pe(),timestamp:V().nullable(),source:V(),model:V(),correlationExactness:C9.nullable(),totalDurationMs:pe(),totalTokens:pe(),operationCount:pe(),events:ot(I9)}),D9=ye({sessionId:V().nullable(),source:V().nullable(),model:V().nullable(),start:V().nullable(),end:V().nullable(),durationMs:pe(),tokens:_u,messageCount:pe(),toolCallCount:pe(),sessionCount:pe()}),O9=ye({mode:et(["session","consolidated"]),scope:D9,truncated:Lr(),blocks:ot(R9)}),L9=$t(O9),F9=ye({id:V(),source:V(),model:V(),modelDetail:V().optional(),start:V(),durationMs:pe(),messages:pe(),toolCalls:pe(),billedTokens:pe(),cacheReadTokens:pe(),freshInputTokens:pe(),outputTokens:pe(),topTool:V(),state:V()}),M9=ye({items:ot(F9),total:pe(),page:pe(),pageSize:pe()}),P9=$t(M9),j9=ye({filter:Ii.optional(),page:pe().int().min(1).default(1),pageSize:pe().int().min(1).max(100).default(20),sortBy:et(["start","duration","messages","toolCalls","billedTokens","cacheRead","freshInput"]).default("start"),sortDir:et(["asc","desc"]).default("desc")}),B9=et(["read","write","bash","search","mcp","other"]),U9=et(["all","ok","error"]),$9=ye({seq:pe(),toolSeq:pe(),ts:V().nullable(),toolName:V(),category:B9,status:et(["ok","error","unknown"]),durationMs:pe().nullable(),durationSource:Vv,resultBytes:pe().nullable(),argsRaw:V().nullable(),argsDigest:V().nullable(),errorText:V().nullable(),callId:V().nullable(),messageHash:V(),sessionId:V(),source:V(),model:V().nullable(),tokens:_u}),z9=ye({sessionId:V().nullable(),source:V().nullable(),model:V().nullable(),start:V().nullable(),end:V().nullable(),totalCalls:pe(),uniqueTools:pe(),errorCount:pe(),errorRate:pe(),totalDurationMs:pe(),meanDurationMs:pe(),durationUnmeasured:pe(),sessionCount:pe(),tokens:_u}),H9=Mv(Fv("mode",[ye({mode:qn("session"),source:V().min(1),sessionId:V().min(1)}),ye({mode:qn("consolidated"),filter:Ii.optional()})]),ye({toolNames:ot(V()).optional(),status:U9.default("all"),search:V().optional()})),G9=ye({mode:et(["session","consolidated"]),scope:z9,truncated:Lr(),items:ot($9)}),W9=$t(G9),V9=ye({tool:V(),argsHint:V(),sessionId:V(),repeats:pe(),fromSeq:pe(),toSeq:pe(),wastedTokens:pe()}),q9=ye({sessionId:V(),timestamp:V(),freshTokens:pe(),reason:V()}),Y9=ye({id:V(),source:V(),model:V(),tokens:pe(),durationMs:pe()}),Ox=ye({stepIndex:pe(),sessionId:V(),toolName:V(),tokens:pe(),durationMs:pe().optional(),agent:V(),model:V()}),Z9=ye({model:V(),speedMsMean:pe(),cacheRatio:pe(),reliability:pe(),outputRatio:pe()}),K9=ye({loops:ot(V9),cacheWaste:ot(q9),heavySessions:ot(Y9),largestTokenSteps:ot(Ox),slowSteps:ot(Ox),modelComparison:ot(Z9)}),X9=$t(K9),Q9=ye({date:V(),tokens:pe(),sessions:pe()}),J9=ye({id:V(),name:V(),color:V(),importPath:V(),filePattern:V(),filesCount:pe(),sizeMb:pe().nullable(),sessionCount:pe(),totalTokens:pe(),cacheSavedTokens:pe(),freshTokens:pe(),toolCalls:pe(),firstDate:V().nullable(),lastDate:V().nullable(),heatmapDays:ot(Q9),maxDailyTokens:pe()}),e$=ye({agentId:V(),agentName:V(),path:V(),matchPattern:V(),fileCount:pe(),status:et(["active","empty","missing"])}),t$=ye({totalFiles:pe(),corpusSizeBytes:pe(),dateCoverage:ye({from:V().nullable(),to:V().nullable()}),totalSessions:pe(),lastImportedAt:V().nullable()}),n$=ye({overview:t$,agents:ot(J9),roots:ot(e$)}),r$=$t(n$),a$=ye({mode:et(["full","incremental"]).default("incremental")}),s$=ye({runId:V(),status:et(["queued","coalesced","already-running"]),message:V()}),i$=$t(s$),o$={getSummary:Ft.route({method:"POST",path:"/history/summary",summary:"Get conversation history analytics summary",tags:["history"]}).input(Ii.optional()).output(A9),getTimeline:Ft.route({method:"POST",path:"/history/timeline",summary:"Get chronological session or consolidated execution timeline",tags:["history"]}).input(k9).output(L9),getToolSequence:Ft.route({method:"POST",path:"/history/tool-sequence",summary:"Get ordered tool invocation sequence for a session or filtered scope",tags:["history"]}).input(H9).output(W9),getSessions:Ft.route({method:"POST",path:"/history/sessions",summary:"List and filter conversation sessions",tags:["history"]}).input(j9).output(P9),getInsights:Ft.route({method:"POST",path:"/history/insights",summary:"Get conversation forensic insights and loops",tags:["history"]}).input(Ii.optional()).output(X9),getSources:Ft.route({method:"GET",path:"/history/sources",summary:"Get all-time agent sources overview and heatmaps",tags:["history"]}).output(r$),triggerImport:Ft.route({method:"POST",path:"/history/import",summary:"Trigger history transcript import and analysis",tags:["history"]}).input(a$).output(i$)},l$=$t(ye({eventName:V(),occurredAt:V().datetime(),actor:V().nullable().optional(),payload:wu(V(),ls())})),u$={stream:Ft.route({method:"GET",path:"/events/planning",summary:"Stream planning events (SSE)",tags:["events"]}).output(l$)},c$=ye({wbs:V().regex(/^\d{4}$/),name:V().min(1),status:et(ar),priority:V().optional(),featureId:V().nullable().optional(),parentWbs:V().regex(/^\d{4}$/).nullable().optional(),type:et($v).optional(),filePath:V(),updatedAt:V().optional()}),d$=$t(ot(c$)),p$=ye({folder:V().optional(),status:V().optional(),parent:V().optional()}),f$=$t(ye({wbs:V(),name:V(),status:et(ar),frontmatter:wu(V(),ls()),content:V(),filePath:V()})),m$=ye({wbs:V().regex(/^\d{4}$/)}),h$=ye({title:V().min(1),featureId:V().optional(),parentWbs:V().regex(/^\d{4}$/).optional(),folder:V().optional(),template:et(Au).optional()}),g$=$t(ye({wbs:V(),filePath:V()})),b$=ye({wbs:V().regex(/^\d{4}$/),toStatus:et(ar),actor:V().optional()}),E$=$t(ye({wbs:V(),status:et(ar)})),x$=ye({wbs:V().regex(/^\d{4}$/),body:V(),actor:V().optional()}),y$=$t(ye({wbs:V(),filePath:V()})),T$=et(["claude","codex","gemini","pi","opencode","antigravity","openclaw"]),S$=et(["refine","plan","run","verify","decompose","evaluate"]),v$=ye({wbs:V().regex(/^\d{4}$/),action:S$,channel:T$.optional(),skipDeps:Lr().optional()}),w$=$t(ye({runId:V(),action:V(),status:qn("queued")})),N$=ye({path:V(),label:V().optional()}),A$=$t(ot(N$)).extend({activeFolder:V().optional()}),_$={list:Ft.route({method:"GET",path:"/tasks",summary:"List tasks",tags:["task"]}).input(p$).output(d$),folders:Ft.route({method:"GET",path:"/tasks/folders",summary:"List configured task folders",tags:["task"]}).output(A$),show:Ft.route({method:"GET",path:"/tasks/{wbs}",summary:"Show task detail",tags:["task"]}).input(m$).output(f$),create:Ft.route({method:"POST",path:"/tasks",summary:"Create a task",tags:["task"]}).input(h$).output(g$),transition:Ft.route({method:"PATCH",path:"/tasks/{wbs}/status",summary:"Transition task status",tags:["task"]}).input(b$).output(E$),body:Ft.route({method:"PATCH",path:"/tasks/{wbs}/body",summary:"Update task body",tags:["task"]}).input(x$).output(y$),action:Ft.route({method:"POST",path:"/tasks/{wbs}/actions",summary:"Run a task action",tags:["task"]}).input(v$).output(w$)},C$=ye({status:qn("ok"),timestamp:V(),service:qn("spur"),version:V()}),k$={health:Ft.route({method:"GET",path:"/health",summary:"Read application health",tags:["system"]}).output(C$),task:{..._$},feature:{...b9},history:{...o$},...u$};class I$ extends rv{initRuntimeAdapter(t){for(const n of this.plugins)n.initRuntimeAdapter?.(t)}}class R${fetch;toFetchRequestOptions;adapterInterceptors;constructor(t){new I$(t.plugins).initRuntimeAdapter(t),this.fetch=t.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=t,this.adapterInterceptors=ml(t.adapterInterceptors)}async call(t,n,r,a){const s=ZP(t,this.toFetchRequestOptions),i=await hd(this.adapterInterceptors,{...n,request:s,path:r,input:a,init:{redirect:"manual"}},({request:u,path:c,input:p,init:d,...f})=>this.fetch(u,d,f,c,p));return KP(i,{signal:s.signal})}}class D${maxArrayIndex;constructor(t={}){this.maxArrayIndex=t.maxBracketNotationArrayIndex??9999}serialize(t,n=[],r=[]){if(Array.isArray(t))t.forEach((a,s)=>{this.serialize(a,[...n,s],r)});else if(Xr(t))for(const a in t)this.serialize(t[a],[...n,a],r);else r.push([this.stringifyPath(n),t]);return r}deserialize(t){if(t.length===0)return{};const n=new WeakSet,r={value:[]};for(const[a,s]of t){const i=this.parsePath(a);let o=r,u="value";i.forEach((c,p)=>{!Array.isArray(o[u])&&!Xr(o[u])&&(o[u]=[]),p!==i.length-1?Array.isArray(o[u])&&!Lx(c,this.maxArrayIndex)&&(n.has(o[u])?(n.delete(o[u]),o[u]=Fx(o[u])):o[u]=yc(o[u])):Array.isArray(o[u])&&(c===""?o[u].length&&!n.has(o[u])&&(o[u]=yc(o[u])):n.has(o[u])?(n.delete(o[u]),o[u]=Fx(o[u])):Lx(c,this.maxArrayIndex)||(o[u]=yc(o[u]))),o=o[u],u=c}),Array.isArray(o)&&u===""?(n.add(o),o.push(s)):u in o?Array.isArray(o[u])?o[u].push(s):o[u]=[o[u],s]:o[u]=s}return r.value}stringifyPath(t){return t.map(n=>n.toString().replace(/[\\[\]]/g,r=>{switch(r){case"\\":return"\\\\";case"[":return"\\[";case"]":return"\\]";default:return r}})).reduce((n,r,a)=>a===0?r:`${n}[${r}]`,"")}parsePath(t){const n=[];let r=!1,a="",s=0;for(let i=0;i<t.length;i++){const o=t[i],u=t[i+1];r&&o==="]"&&(u===void 0||u==="[")&&s%2===0?(u===void 0&&(r=!1),n.push(a),a="",i++):n.length===0&&o==="["&&s%2===0?(r=!0,n.push(a),a=""):o==="\\"?s++:(a+="\\".repeat(s/2)+o,s=0)}return r||n.length===0?[t]:n}}function Lx(e,t){return/^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function yc(e){const t=new WS;return e.forEach((n,r)=>{t[r]=n}),t}function Fx(e){const t=new WS;return t[""]=e.length===1?e[0]:e,t}class O${customSerializers;constructor(t={}){this.customSerializers=t.customJsonSerializers??[]}serialize(t,n={value:!1}){for(const r of this.customSerializers)if(r.condition(t))return this.serialize(r.serialize(t),n);if(t instanceof Blob)return n.value=!0,[t,n.value];if(t instanceof Set)return this.serialize(Array.from(t),n);if(t instanceof Map)return this.serialize(Array.from(t.entries()),n);if(Array.isArray(t))return[t.map(a=>a===void 0?null:this.serialize(a,n)[0]),n.value];if(Xr(t)){const r={};for(const a in t)a==="toJSON"&&typeof t[a]=="function"||(r[a]=this.serialize(t[a],n)[0]);return[r,n.value]}return typeof t=="bigint"||t instanceof RegExp||t instanceof URL?[t.toString(),n.value]:t instanceof Date?[Number.isNaN(t.getTime())?null:t.toISOString(),n.value]:Number.isNaN(t)?[null,n.value]:[t,n.value]}}function Sd(e){return`/${e.replace(/\/{2,}/g,"/").replace(/^\/|\/$/g,"")}`}function Mx(e){return e?Sd(e).match(/\/\{[^}]+\}/g)?.map(t=>({raw:t,name:t.match(/\{\+?([^}]+)\}/)[1]})):void 0}class L${constructor(t,n,r){this.contract=t,this.serializer=n,this.baseUrl=r.url,this.headers=r.headers??{},this.customErrorResponseBodyDecoder=r.customErrorResponseBodyDecoder}baseUrl;headers;customErrorResponseBodyDecoder;async encode(t,n,r){let a=QP(await rx(this.headers,r,t,n));r.lastEventId!==void 0&&(a=ax(a,{"last-event-id":r.lastEventId}));const s=await rx(this.baseUrl,r,t,n),i=nx(this.contract,t);if(!Ed(i))throw new Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${t.join(".")}`);return No("defaultInputStructure",i["~orpc"].route.inputStructure)==="compact"?this.#e(i,t,n,r,s,a):this.#t(i,t,n,r,s,a)}#e(t,n,r,a,s,i){let o=Sd(t["~orpc"].route.path??ix(n)),u=r;const c=Mx(o);if(c?.length){if(!Xr(r))throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "compact" structure when has dynamic params at ${n.join(".")}.`);const f={...r};for(const m of c){const b=r[m.name];o=o.replace(m.raw,`/${encodeURIComponent(`${this.serializer.serialize(b)}`)}`),delete f[m.name]}u=Object.keys(f).length?f:void 0}const p=No("defaultMethod",t["~orpc"].route.method),d=new URL(s);if(d.pathname=`${d.pathname.replace(/\/$/,"")}${o}`,p==="GET"){const f=this.serializer.serialize(u,{outputFormat:"URLSearchParams"});for(const[m,b]of f)d.searchParams.append(m,b);return{url:d,method:p,headers:i,body:void 0,signal:a.signal}}return{url:d,method:p,headers:i,body:this.serializer.serialize(u),signal:a.signal}}#t(t,n,r,a,s,i){let o=Sd(t["~orpc"].route.path??ix(n));const u=Mx(o);if(!Xr(r)&&r!==void 0)throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${n.join(".")}.`);if(u?.length){if(!Xr(r?.params))throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input.params shape for "detailed" structure when has dynamic params at ${n.join(".")}.`);for(const f of u){const m=r.params[f.name];o=o.replace(f.raw,`/${encodeURIComponent(`${this.serializer.serialize(m)}`)}`)}}let c=i;if(r?.headers!==void 0){if(!Xr(r.headers))throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${n.join(".")}.`);c=ax(r.headers,i)}const p=No("defaultMethod",t["~orpc"].route.method),d=new URL(s);if(d.pathname=`${d.pathname.replace(/\/$/,"")}${o}`,r?.query!==void 0){const f=this.serializer.serialize(r.query,{outputFormat:"URLSearchParams"});for(const[m,b]of f)d.searchParams.append(m,b)}return p==="GET"?{url:d,method:p,headers:c,body:void 0,signal:a.signal}:{url:d,method:p,headers:c,body:this.serializer.serialize(r?.body),signal:a.signal}}async decode(t,n,r){const a=!Ai(t.status),s=await(async()=>{let u=!1;try{const c=await t.body();return u=!0,this.serializer.deserialize(c)}catch(c){throw u?new Error("Invalid OpenAPI response format.",{cause:c}):new Error("Cannot parse response body, please check the response body and content-type.",{cause:c})}})();if(!a){const u=this.customErrorResponseBodyDecoder?.(s,t);throw u??(YS(s)?ZS(s):new Ni(JP(t.status),{status:t.status,data:{...t,body:s}}))}const i=nx(this.contract,r);if(!Ed(i))throw new Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${r.join(".")}`);return No("defaultOutputStructure",i["~orpc"].route.outputStructure)==="compact"?s:{status:t.status,headers:t.headers,body:s}}}class F${constructor(t,n){this.jsonSerializer=t,this.bracketNotation=n}serialize(t,n={}){return wi(t)&&!n.outputFormat?sx(t,{value:async r=>this.#e(r,{outputFormat:"plain"}),error:async r=>new _i({data:this.#e(OP(r).toJSON(),{outputFormat:"plain"}),cause:r})}):this.#e(t,n)}#e(t,n){const[r,a]=this.jsonSerializer.serialize(t);if(n.outputFormat==="plain")return r;if(n.outputFormat==="URLSearchParams"){const i=new URLSearchParams;for(const[o,u]of this.bracketNotation.serialize(r))(typeof u=="string"||typeof u=="number"||typeof u=="boolean")&&i.append(o,u.toString());return i}if(r instanceof Blob||r===void 0||!a)return r;const s=new FormData;for(const[i,o]of this.bracketNotation.serialize(r))typeof o=="string"||typeof o=="number"||typeof o=="boolean"?s.append(i,o.toString()):o instanceof Blob&&s.append(i,o);return s}deserialize(t){return t instanceof URLSearchParams||t instanceof FormData?this.bracketNotation.deserialize(Array.from(t.entries())):wi(t)?sx(t,{value:async n=>n,error:async n=>n instanceof _i&&YS(n.data)?ZS(n.data,{cause:n}):n}):t}}class M$ extends XP{constructor(t,n,r){const a=new O$(r),s=new D$({maxBracketNotationArrayIndex:4294967294}),i=new F$(a,s),o=new L$(t,i,r);super(o,n,r)}}class P$ extends M${constructor(t,n){const r=new R$(n);super(t,r,n)}}function _t(e=void 0,t=globalThis.location?.origin,n=!1){return e||(t&&t!=="null"?new URL("/api",t).toString():"http://localhost:3000/api")}function wt(e,t=1e4){const n=new AbortController,r=setTimeout(()=>n.abort(),t),a=e.signal;a&&a.addEventListener("abort",()=>n.abort(),{once:!0});const s=new Request(e,{signal:n.signal});return fetch(s).finally(()=>clearTimeout(r))}function j$(e){return wt(e)}function B$(e){typeof globalThis<"u"&&globalThis.dispatchEvent&&globalThis.dispatchEvent(new CustomEvent("api-error",{detail:{message:e instanceof Error?e.message:String(e)}}))}const rn=ev(new P$(k$,{url:_t(),fetch:j$,adapterInterceptors:[wP(B$)]})),_r=()=>`${_t()}/features`;async function U$(e){const t=await wt(new Request(_r(),{signal:e}));if(!t.ok)throw new Error(`feature list fetch failed: ${t.status}`);const r=await t.json();if(!r.ok||!Array.isArray(r.data))throw new Error("feature list: invalid response shape");return r.data}async function Px(e,t){const n=await wt(new Request(`${_r()}/${encodeURIComponent(e)}`,{signal:t}));if(!n.ok)throw new Error(`feature show fetch failed: ${n.status}`);const a=await n.json();if(!a.ok||!a.data)throw new Error("feature show: invalid response shape");return a.data}async function $$(e,t,n){const r=await wt(new Request(`${_r()}/${encodeURIComponent(e)}/status`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({id:e,toStatus:t}),signal:n})),a=await r.json();if(!r.ok){const i=a;throw new Error(i.error?.message??`transition failed: ${r.status}`)}return a.data?.status??t}async function z$(e,t){const n=await wt(new Request(`${_r()}/${encodeURIComponent(e.id)}/body`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const a=await n.json();throw new Error(a.error?.message??`body update failed: ${n.status}`)}}async function H$(e,t){const n=await wt(new Request(`${_r()}/${encodeURIComponent(e.id)}/action`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const s=await n.json();throw new Error(s.error?.message??`action dispatch failed: ${n.status}`)}return await n.json()}async function qv(e,t){const n=await wt(new Request(`${_r()}/${encodeURIComponent(e.id)}/children`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const s=await n.json();throw new Error(s.error?.message??`create child failed: ${n.status}`)}return await n.json()}async function G$(e,t){const n=await wt(new Request(_r(),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:e}),signal:t}));if(!n.ok){const i=await n.json();throw new Error(i.error?.message??`create feature failed: ${n.status}`)}const a=await n.json();if(!a.ok||!a.data)throw new Error("create feature: invalid response shape");return a.data}async function W$(e,t){const n=await wt(new Request(`${_r()}/${encodeURIComponent(e.id)}/tasks`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const s=await n.json();throw new Error(s.error?.message??`create task failed: ${n.status}`)}return await n.json()}async function V$(e,t){const n=await wt(new Request(`${_r()}/${encodeURIComponent(e.id)}/link`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const s=await n.json();throw new Error(s.error?.message??`link task failed: ${n.status}`)}return await n.json()}async function q$(e,t){const n=await wt(new Request(`${_r()}/${encodeURIComponent(e.id)}/sync`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const s=await n.json();throw new Error(s.error?.message??`sync failed: ${n.status}`)}return await n.json()}var pa=uN();const Y$=(function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"})(),Z$=function(e){return"/"+e},jx={},Yv=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),o=i?.nonce||i?.getAttribute("nonce");a=u(n.map(c=>{if(c=Z$(c),c in jx)return;jx[c]=!0;const p=c.endsWith(".css"),d=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=p?"stylesheet":Y$,p||(f.as="script"),f.crossOrigin="",f.href=c,o&&f.setAttribute("nonce",o),document.head.appendChild(f),p)return new Promise((m,b)=>{f.addEventListener("load",m),f.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i}return a.then(i=>{for(const o of i||[])o.status==="rejected"&&s(o.reason);return t().catch(s)})};function Bx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K$(e){if(Array.isArray(e))return e}function X$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,i,o=[],u=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(u=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(p){c=!0,a=p}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return o}}function Q$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
169
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J$(e,t){return K$(e)||X$(e,t)||ez(e,t)||Q$()}function ez(e,t){if(e){if(typeof e=="string")return Bx(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bx(e,t):void 0}}const Zv=Object.entries,Ux=Object.setPrototypeOf,tz=Object.isFrozen,nz=Object.getPrototypeOf,rz=Object.getOwnPropertyDescriptor;let Tn=Object.freeze,vn=Object.seal,Ha=Object.create,Kv=typeof Reflect<"u"&&Reflect,vd=Kv.apply,wd=Kv.construct;Tn||(Tn=function(t){return t});vn||(vn=function(t){return t});vd||(vd=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];return t.apply(n,a)});wd||(wd=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return new t(...r)});const Hs=sn(Array.prototype.forEach),az=sn(Array.prototype.lastIndexOf),$x=sn(Array.prototype.pop),ja=sn(Array.prototype.push),sz=sn(Array.prototype.splice),Yr=Array.isArray,Xs=sn(String.prototype.toLowerCase),Tc=sn(String.prototype.toString),zx=sn(String.prototype.match),Gs=sn(String.prototype.replace),Hx=sn(String.prototype.indexOf),iz=sn(String.prototype.trim),oz=sn(Number.prototype.toString),lz=sn(Boolean.prototype.toString),Gx=typeof BigInt>"u"?null:sn(BigInt.prototype.toString),Wx=typeof Symbol>"u"?null:sn(Symbol.prototype.toString),pn=sn(Object.prototype.hasOwnProperty),Ws=sn(Object.prototype.toString),yn=sn(RegExp.prototype.test),oa=uz(TypeError);function sn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return vd(e,t,r)}}function uz(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wd(e,n)}}function yt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xs;if(Ux&&Ux(e,null),!Yr(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){const s=n(a);s!==a&&(tz(t)||(t[r]=s),a=s)}e[a]=!0}return e}function cz(e){for(let t=0;t<e.length;t++)pn(e,t)||(e[t]=null);return e}function Ln(e){const t=Ha(null);for(const r of Zv(e)){var n=J$(r,2);const a=n[0],s=n[1];pn(e,a)&&(Yr(s)?t[a]=cz(s):s&&typeof s=="object"&&s.constructor===Object?t[a]=Ln(s):t[a]=s)}return t}function dz(e){switch(typeof e){case"string":return e;case"number":return oz(e);case"boolean":return lz(e);case"bigint":return Gx?Gx(e):"0";case"symbol":return Wx?Wx(e):"Symbol()";case"undefined":return Ws(e);case"function":case"object":{if(e===null)return Ws(e);const t=e,n=xr(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:Ws(r)}return Ws(e)}default:return Ws(e)}}function xr(e,t){for(;e!==null;){const r=rz(e,t);if(r){if(r.get)return sn(r.get);if(typeof r.value=="function")return sn(r.value)}e=nz(e)}function n(){return null}return n}function pz(e){try{return yn(e,""),!0}catch{return!1}}const Vx=Tn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sc=Tn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),vc=Tn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),fz=Tn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wc=Tn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mz=Tn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qx=Tn(["#text"]),Yx=Tn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Nc=Tn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zx=Tn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ko=Tn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hz=vn(/{{[\w\W]*|^[\w\W]*}}/g),gz=vn(/<%[\w\W]*|^[\w\W]*%>/g),bz=vn(/\${[\w\W]*/g),Ez=vn(/^data-[\-\w.\u00B7-\uFFFF]+$/),xz=vn(/^aria-[\-\w]+$/),Kx=vn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yz=vn(/^(?:\w+script|data):/i),Tz=vn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Sz=vn(/^html$/i),vz=vn(/^[a-z][.\w]*(-[.\w]+)+$/i),Xx=vn(/<[/\w!]/g),wz=vn(/<[/\w]/g),Nz=vn(/<\/no(script|embed|frames)/i),Az=vn(/\/>/i),br={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},_z=function(){return typeof window>"u"?null:window},Cz=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Qx=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},$r=function(t,n,r,a){return pn(t,n)&&Yr(t[n])?yt(a.base?Ln(a.base):{},t[n],a.transform):r};function Xv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_z();const t=we=>Xv(we);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==br.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,a=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,i=e.Node,o=e.Element,u=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,d=e.trustedTypes,f=o.prototype,m=xr(f,"cloneNode"),b=xr(f,"remove"),E=xr(f,"nextSibling"),x=xr(f,"childNodes"),y=xr(f,"parentNode"),v=xr(f,"shadowRoot"),T=xr(f,"attributes"),N=i&&i.prototype?xr(i.prototype,"nodeType"):null,D=i&&i.prototype?xr(i.prototype,"nodeName"):null;if(typeof s=="function"){const we=n.createElement("template");we.content&&we.content.ownerDocument&&(n=we.content.ownerDocument)}let A,S="",w,R=!1,C=0;const U=function(){if(C>0)throw oa('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},k=function(P){U(),C++;try{return A.createHTML(P)}finally{C--}},j=function(P){U(),C++;try{return A.createScriptURL(P)}finally{C--}},W=function(){return R||(w=Cz(d,a),R=!0),w},$=n,ee=$.implementation,me=$.createNodeIterator,se=$.createDocumentFragment,xe=$.getElementsByTagName,O=r.importNode;let te=Qx();t.isSupported=typeof Zv=="function"&&typeof y=="function"&&ee&&ee.createHTMLDocument!==void 0;const le=hz,L=gz,ke=bz,Re=Ez,Q=xz,_e=yz,ue=Tz,X=vz;let We=Kx,fe=null;const de=yt({},[...Vx,...Sc,...vc,...wc,...qx]);let Te=null;const Se=yt({},[...Yx,...Nc,...Zx,...ko]);let H=Object.seal(Ha(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Fe=null,Ke=null;const Xe=Object.seal(Ha(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pt=!0,dt=!0,lt=!1,Kt=!0,it=!1,Le=!0,rt=!1,Z=!1,ie=null,Ce=null,Oe=!1,Ve=!1,st=!1,Rt=!1,Ct=!0,Nt=!1;const Lt="user-content-";let re=!0,Ae=!1,$e={},je=null;const St=yt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Xt=null;const Me=yt({},["audio","video","img","source","image","track"]);let pt=null;const Qe=yt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kt="http://www.w3.org/1998/Math/MathML",ae="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let tt=ge,Dt=!1,G=null;const ze=yt({},[kt,ae,ge],Tc),M=Tn(["mi","mo","mn","ms","mtext"]);let z=yt({},M);const Y=Tn(["annotation-xml"]);let oe=yt({},Y);const be=yt({},["title","style","font","a","script"]);let De=null;const Ie=["application/xhtml+xml","text/html"],Pe="text/html";let Ne=null,Be=null;const Ze=n.createElement("form"),He=function(P){return P instanceof RegExp||P instanceof Function},Et=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Be&&Be===P)return;(!P||typeof P!="object")&&(P={}),P=Ln(P),De=Ie.indexOf(P.PARSER_MEDIA_TYPE)===-1?Pe:P.PARSER_MEDIA_TYPE,Ne=De==="application/xhtml+xml"?Tc:Xs,fe=$r(P,"ALLOWED_TAGS",de,{transform:Ne}),Te=$r(P,"ALLOWED_ATTR",Se,{transform:Ne}),G=$r(P,"ALLOWED_NAMESPACES",ze,{transform:Tc}),pt=$r(P,"ADD_URI_SAFE_ATTR",Qe,{transform:Ne,base:Qe}),Xt=$r(P,"ADD_DATA_URI_TAGS",Me,{transform:Ne,base:Me}),je=$r(P,"FORBID_CONTENTS",St,{transform:Ne}),Fe=$r(P,"FORBID_TAGS",Ln({}),{transform:Ne}),Ke=$r(P,"FORBID_ATTR",Ln({}),{transform:Ne}),$e=pn(P,"USE_PROFILES")?P.USE_PROFILES&&typeof P.USE_PROFILES=="object"?Ln(P.USE_PROFILES):P.USE_PROFILES:!1,Pt=P.ALLOW_ARIA_ATTR!==!1,dt=P.ALLOW_DATA_ATTR!==!1,lt=P.ALLOW_UNKNOWN_PROTOCOLS||!1,Kt=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,it=P.SAFE_FOR_TEMPLATES||!1,Le=P.SAFE_FOR_XML!==!1,rt=P.WHOLE_DOCUMENT||!1,Ve=P.RETURN_DOM||!1,st=P.RETURN_DOM_FRAGMENT||!1,Rt=P.RETURN_TRUSTED_TYPE||!1,Oe=P.FORCE_BODY||!1,Ct=P.SANITIZE_DOM!==!1,Nt=P.SANITIZE_NAMED_PROPS||!1,re=P.KEEP_CONTENT!==!1,Ae=P.IN_PLACE||!1,We=pz(P.ALLOWED_URI_REGEXP)?P.ALLOWED_URI_REGEXP:Kx,tt=typeof P.NAMESPACE=="string"?P.NAMESPACE:ge,z=pn(P,"MATHML_TEXT_INTEGRATION_POINTS")&&P.MATHML_TEXT_INTEGRATION_POINTS&&typeof P.MATHML_TEXT_INTEGRATION_POINTS=="object"?Ln(P.MATHML_TEXT_INTEGRATION_POINTS):yt({},M),oe=pn(P,"HTML_INTEGRATION_POINTS")&&P.HTML_INTEGRATION_POINTS&&typeof P.HTML_INTEGRATION_POINTS=="object"?Ln(P.HTML_INTEGRATION_POINTS):yt({},Y);const K=pn(P,"CUSTOM_ELEMENT_HANDLING")&&P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING=="object"?Ln(P.CUSTOM_ELEMENT_HANDLING):Ha(null);if(H=Ha(null),pn(K,"tagNameCheck")&&He(K.tagNameCheck)&&(H.tagNameCheck=K.tagNameCheck),pn(K,"attributeNameCheck")&&He(K.attributeNameCheck)&&(H.attributeNameCheck=K.attributeNameCheck),pn(K,"allowCustomizedBuiltInElements")&&typeof K.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=K.allowCustomizedBuiltInElements),vn(H),it&&(dt=!1),st&&(Ve=!0),$e&&(fe=yt({},qx),Te=Ha(null),$e.html===!0&&(yt(fe,Vx),yt(Te,Yx)),$e.svg===!0&&(yt(fe,Sc),yt(Te,Nc),yt(Te,ko)),$e.svgFilters===!0&&(yt(fe,vc),yt(Te,Nc),yt(Te,ko)),$e.mathMl===!0&&(yt(fe,wc),yt(Te,Zx),yt(Te,ko))),Xe.tagCheck=null,Xe.attributeCheck=null,pn(P,"ADD_TAGS")&&(typeof P.ADD_TAGS=="function"?Xe.tagCheck=P.ADD_TAGS:Yr(P.ADD_TAGS)&&(fe===de&&(fe=Ln(fe)),yt(fe,P.ADD_TAGS,Ne))),pn(P,"ADD_ATTR")&&(typeof P.ADD_ATTR=="function"?Xe.attributeCheck=P.ADD_ATTR:Yr(P.ADD_ATTR)&&(Te===Se&&(Te=Ln(Te)),yt(Te,P.ADD_ATTR,Ne))),pn(P,"ADD_URI_SAFE_ATTR")&&Yr(P.ADD_URI_SAFE_ATTR)&&yt(pt,P.ADD_URI_SAFE_ATTR,Ne),pn(P,"FORBID_CONTENTS")&&Yr(P.FORBID_CONTENTS)&&(je===St&&(je=Ln(je)),yt(je,P.FORBID_CONTENTS,Ne)),pn(P,"ADD_FORBID_CONTENTS")&&Yr(P.ADD_FORBID_CONTENTS)&&(je===St&&(je=Ln(je)),yt(je,P.ADD_FORBID_CONTENTS,Ne)),re&&(fe["#text"]=!0),rt&&yt(fe,["html","head","body"]),fe.table&&(yt(fe,["tbody"]),delete Fe.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw oa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw oa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ve=A;A=P.TRUSTED_TYPES_POLICY;try{S=k("")}catch(Ue){throw A=ve,Ue}}else P.TRUSTED_TYPES_POLICY===null?(A=void 0,S=""):(A===void 0&&(A=W()),A&&typeof S=="string"&&(S=k("")));Tn&&Tn(P),Be=P},xt=yt({},[...Sc,...vc,...fz]),Jt=yt({},[...wc,...mz]),en=function(P,K,ve){return K.namespaceURI===ge?P==="svg":K.namespaceURI===kt?P==="svg"&&(ve==="annotation-xml"||z[ve]):!!xt[P]},En=function(P,K,ve){return K.namespaceURI===ge?P==="math":K.namespaceURI===ae?P==="math"&&oe[ve]:!!Jt[P]},It=function(P,K,ve){return K.namespaceURI===ae&&!oe[ve]||K.namespaceURI===kt&&!z[ve]?!1:!Jt[P]&&(be[P]||!xt[P])},jn=function(P){let K=y(P);(!K||!K.tagName)&&(K={namespaceURI:tt,tagName:"template"});const ve=Xs(P.tagName),Ue=Xs(K.tagName);return G[P.namespaceURI]?P.namespaceURI===ae?en(ve,K,Ue):P.namespaceURI===kt?En(ve,K,Ue):P.namespaceURI===ge?It(ve,K,Ue):!!(De==="application/xhtml+xml"&&G[P.namespaceURI]):!1},_n=function(P){ja(t.removed,{element:P});try{y(P).removeChild(P)}catch{if(b(P),!y(P))throw oa("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Pr=function(P){const K=x(P);if(K){const Ue=[];Hs(K,ut=>{ja(Ue,ut)}),Hs(Ue,ut=>{try{b(ut)}catch{}})}const ve=T(P);if(ve)for(let Ue=ve.length-1;Ue>=0;--Ue){const ut=ve[Ue],vt=ut&&ut.name;if(typeof vt=="string")try{P.removeAttribute(vt)}catch{}}},Cn=function(P,K){try{ja(t.removed,{attribute:K.getAttributeNode(P),from:K})}catch{ja(t.removed,{attribute:null,from:K})}if(K.removeAttribute(P),P==="is")if(Ve||st)try{_n(K)}catch{}else try{K.setAttribute(P,"")}catch{}},Kn=function(P){const K=T(P);if(K)for(let ve=K.length-1;ve>=0;--ve){const Ue=K[ve],ut=Ue&&Ue.name;if(!(typeof ut!="string"||Te[Ne(ut)]))try{P.removeAttribute(ut)}catch{}}},Cs=function(P){const K=[P];for(;K.length>0;){const ve=K.pop();(N?N(ve):ve.nodeType)===br.element&&Kn(ve);const ut=x(ve);if(ut)for(let vt=ut.length-1;vt>=0;--vt)K.push(ut[vt])}},jr=function(P){let K=null,ve=null;if(Oe)P="<remove></remove>"+P;else{const vt=zx(P,/^[\r\n\t ]+/);ve=vt&&vt[0]}De==="application/xhtml+xml"&&tt===ge&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const Ue=A?k(P):P;if(tt===ge)try{K=new p().parseFromString(Ue,De)}catch{}if(!K||!K.documentElement){K=ee.createDocument(tt,"template",null);try{K.documentElement.innerHTML=Dt?S:Ue}catch{}}const ut=K.body||K.documentElement;return P&&ve&&ut.insertBefore(n.createTextNode(ve),ut.childNodes[0]||null),tt===ge?xe.call(K,rt?"html":"body")[0]:rt?K.documentElement:ut},hr=function(P){return me.call(P.ownerDocument||P,P,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cr=function(P){return P=Gs(P,le," "),P=Gs(P,L," "),P=Gs(P,ke," "),P},Br=function(P){var K;P.normalize();const ve=me.call(P.ownerDocument||P,P,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Ue=ve.nextNode();for(;Ue;)Ue.data=Cr(Ue.data),Ue=ve.nextNode();const ut=(K=P.querySelectorAll)===null||K===void 0?void 0:K.call(P,"template");ut&&Hs(ut,vt=>{Wt(vt.content)&&Br(vt.content)})},ft=function(P){const K=D?D(P):null;return typeof K!="string"||Ne(K)!=="form"?!1:typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||P.attributes!==T(P)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function"||P.nodeType!==N(P)||P.childNodes!==x(P)},Wt=function(P){if(!N||typeof P!="object"||P===null)return!1;try{return N(P)===br.documentFragment}catch{return!1}},Xn=function(P){if(!N||typeof P!="object"||P===null)return!1;try{return typeof N(P)=="number"}catch{return!1}};function xn(we,P,K){we.length!==0&&Hs(we,ve=>{ve.call(t,P,K,Be)})}const zt=function(P,K){return!!(Le&&P.hasChildNodes()&&!Xn(P.firstElementChild)&&yn(Xx,P.textContent)&&yn(Xx,P.innerHTML)||Le&&P.namespaceURI===ge&&K==="style"&&Xn(P.firstElementChild)||P.nodeType===br.processingInstruction||Le&&P.nodeType===br.comment&&yn(wz,P.data))},La=function(P,K){if(!Fe[K]&&jb(K)&&(H.tagNameCheck instanceof RegExp&&yn(H.tagNameCheck,K)||H.tagNameCheck instanceof Function&&H.tagNameCheck(K)))return!1;if(re&&!je[K]){const ve=y(P),Ue=x(P);if(Ue&&ve){const ut=Ue.length;for(let vt=ut-1;vt>=0;--vt){const un=Ae?Ue[vt]:m(Ue[vt],!0);ve.insertBefore(un,E(P))}}}return _n(P),!0},ks=function(P){if(xn(te.beforeSanitizeElements,P,null),ft(P))return _n(P),!0;const K=Ne(D?D(P):P.nodeName);if(xn(te.uponSanitizeElement,P,{tagName:K,allowedTags:fe}),zt(P,K))return _n(P),!0;if(Fe[K]||!(Xe.tagCheck instanceof Function&&Xe.tagCheck(K))&&!fe[K])return La(P,K);if((N?N(P):P.nodeType)===br.element&&!jn(P)||(K==="noscript"||K==="noembed"||K==="noframes")&&yn(Nz,P.innerHTML))return _n(P),!0;if(it&&P.nodeType===br.text){const Ue=Cr(P.textContent);P.textContent!==Ue&&(ja(t.removed,{element:P.cloneNode()}),P.textContent=Ue)}return xn(te.afterSanitizeElements,P,null),!1},io=function(P,K,ve){if(Ke[K]||Ct&&(K==="id"||K==="name")&&(ve in n||ve in Ze))return!1;const Ue=Te[K]||Xe.attributeCheck instanceof Function&&Xe.attributeCheck(K,P);if(!(dt&&yn(Re,K))){if(!(Pt&&yn(Q,K))){if(Ue){if(!pt[K]){if(!yn(We,Gs(ve,ue,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&P!=="script"&&Hx(ve,"data:")===0&&Xt[P])){if(!(lt&&!yn(_e,Gs(ve,ue,"")))){if(ve)return!1}}}}}else if(!(jb(P)&&(H.tagNameCheck instanceof RegExp&&yn(H.tagNameCheck,P)||H.tagNameCheck instanceof Function&&H.tagNameCheck(P))&&(H.attributeNameCheck instanceof RegExp&&yn(H.attributeNameCheck,K)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(K,P))||K==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&yn(H.tagNameCheck,ve)||H.tagNameCheck instanceof Function&&H.tagNameCheck(ve))))return!1}}return!0},sN=yt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),jb=function(P){return!sN[Xs(P)]&&yn(X,P)},iN=function(P,K,ve,Ue){if(A&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!ve)switch(d.getAttributeType(P,K)){case"TrustedHTML":return k(Ue);case"TrustedScriptURL":return j(Ue)}return Ue},oN=function(P,K,ve,Ue){try{ve?P.setAttributeNS(ve,K,Ue):P.setAttribute(K,Ue),ft(P)?_n(P):$x(t.removed)}catch{Cn(K,P)}},Bb=function(P){xn(te.beforeSanitizeAttributes,P,null);const K=P.attributes;if(!K||ft(P))return;const ve={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let Ue=K.length;const ut=Ne(P.nodeName);for(;Ue--;){const vt=K[Ue],un=vt.name,tn=vt.namespaceURI,Qn=vt.value,lr=Ne(un),Lu=Qn;let Dn=un==="value"?Lu:iz(Lu);if(ve.attrName=lr,ve.attrValue=Dn,ve.keepAttr=!0,ve.forceKeepAttr=void 0,xn(te.uponSanitizeAttribute,P,ve),Dn=ve.attrValue,Nt&&(lr==="id"||lr==="name")&&Hx(Dn,Lt)!==0&&(Cn(un,P),Dn=Lt+Dn),Le&&yn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Dn)){Cn(un,P);continue}if(lr==="attributename"&&zx(Dn,"href")){Cn(un,P);continue}if(!ve.forceKeepAttr){if(!ve.keepAttr){Cn(un,P);continue}if(!Kt&&yn(Az,Dn)){Cn(un,P);continue}if(it&&(Dn=Cr(Dn)),!io(ut,lr,Dn)){Cn(un,P);continue}Dn=iN(ut,lr,tn,Dn),Dn!==Lu&&oN(P,un,tn,Dn)}}xn(te.afterSanitizeAttributes,P,null)},oo=function(P){let K=null;const ve=hr(P);for(xn(te.beforeSanitizeShadowDOM,P,null);K=ve.nextNode();)if(xn(te.uponSanitizeShadowNode,K,null),ks(K),Bb(K),Wt(K.content)&&oo(K.content),(N?N(K):K.nodeType)===br.element){const ut=v(K);Wt(ut)&&(Ou(ut),oo(ut))}xn(te.afterSanitizeShadowDOM,P,null)},Ou=function(P){const K=[{node:P,shadow:null}];for(;K.length>0;){const ve=K.pop();if(ve.shadow){oo(ve.shadow);continue}const Ue=ve.node,vt=(N?N(Ue):Ue.nodeType)===br.element,un=x(Ue);if(un)for(let tn=un.length-1;tn>=0;--tn)K.push({node:un[tn],shadow:null});if(vt){const tn=D?D(Ue):null;if(typeof tn=="string"&&Ne(tn)==="template"){const Qn=Ue.content;Wt(Qn)&&K.push({node:Qn,shadow:null})}}if(vt){const tn=v(Ue);Wt(tn)&&K.push({node:null,shadow:tn},{node:tn,shadow:null})}}};return t.sanitize=function(we){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,ve=null,Ue=null,ut=null;if(Dt=!we,Dt&&(we="<!-->"),typeof we!="string"&&!Xn(we)&&(we=dz(we),typeof we!="string"))throw oa("dirty is not a string, aborting");if(!t.isSupported)return we;Z?(fe=ie,Te=Ce):Et(P),(te.uponSanitizeElement.length>0||te.uponSanitizeAttribute.length>0)&&(fe=Ln(fe)),te.uponSanitizeAttribute.length>0&&(Te=Ln(Te)),t.removed=[];const vt=Ae&&typeof we!="string"&&Xn(we);if(vt){const Qn=D?D(we):we.nodeName;if(typeof Qn=="string"){const lr=Ne(Qn);if(!fe[lr]||Fe[lr])throw oa("root node is forbidden and cannot be sanitized in-place")}if(ft(we))throw oa("root node is clobbered and cannot be sanitized in-place");try{Ou(we)}catch(lr){throw Pr(we),lr}}else if(Xn(we))K=jr("<!---->"),ve=K.ownerDocument.importNode(we,!0),ve.nodeType===br.element&&ve.nodeName==="BODY"||ve.nodeName==="HTML"?K=ve:K.appendChild(ve),Ou(ve);else{if(!Ve&&!it&&!rt&&we.indexOf("<")===-1)return A&&Rt?k(we):we;if(K=jr(we),!K)return Ve?null:Rt?S:""}K&&Oe&&_n(K.firstChild);const un=hr(vt?we:K);try{for(;Ue=un.nextNode();)ks(Ue),Bb(Ue),Wt(Ue.content)&&oo(Ue.content)}catch(Qn){throw vt&&Pr(we),Qn}if(vt)return Hs(t.removed,Qn=>{Qn.element&&Cs(Qn.element)}),it&&Br(we),we;if(Ve){if(it&&Br(K),st)for(ut=se.call(K.ownerDocument);K.firstChild;)ut.appendChild(K.firstChild);else ut=K;return(Te.shadowroot||Te.shadowrootmode)&&(ut=O.call(r,ut,!0)),ut}let tn=rt?K.outerHTML:K.innerHTML;return rt&&fe["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&yn(Sz,K.ownerDocument.doctype.name)&&(tn="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
|
|
170
|
+
`+tn),it&&(tn=Cr(tn)),A&&Rt?k(tn):tn},t.setConfig=function(){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Et(we),Z=!0,ie=fe,Ce=Te},t.clearConfig=function(){Be=null,Z=!1,ie=null,Ce=null,A=w,S=""},t.isValidAttribute=function(we,P,K){Be||Et({});const ve=Ne(we),Ue=Ne(P);return io(ve,Ue,K)},t.addHook=function(we,P){typeof P=="function"&&pn(te,we)&&ja(te[we],P)},t.removeHook=function(we,P){if(pn(te,we)){if(P!==void 0){const K=az(te[we],P);return K===-1?void 0:sz(te[we],K,1)[0]}return $x(te[we])}},t.removeHooks=function(we){pn(te,we)&&(te[we]=[])},t.removeAllHooks=function(){te=Qx()},t}var kz=Xv();function Iz({code:e}){const t=g.useId().replace(/:/g,""),n=g.useRef(null),[r,a]=g.useState(null),[s,i]=g.useState(!1);return g.useEffect(()=>{let o=!1;return(async()=>{try{const u=(await Yv(async()=>{const{default:d}=await import("./mermaid.core.Br2Fo22q.js").then(f=>f.bl);return{default:d}},__vite__mapDeps([0,1]))).default;u.initialize({startOnLoad:!1,theme:"dark",securityLevel:"strict"});const c=await u.render(`mermaid-${t}`,e),p=kz.sanitize(c.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}});o||a(p)}catch{o||i(!0)}})(),()=>{o=!0}},[e,t]),g.useEffect(()=>{n.current&&(n.current.innerHTML=r??"")},[r]),s?l.jsx("pre",{children:l.jsx("code",{children:e})}):l.jsx("div",{ref:n,className:"mermaid-diagram flex justify-center","data-testid":"mermaid-diagram"})}function Rz(e){return(e??"").match(/language-(\w+)/)?.[1]??null}function Nd(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Nd).join(""):typeof e=="object"&&"props"in e?Nd(e.props.children):""}function Dz({className:e,children:t,...n}){return Rz(e)==="mermaid"?l.jsx(Iz,{code:Nd(t).trim()}):l.jsx("code",{className:e,...n,children:t})}function Oz({source:e}){return l.jsx(pl.Markdown,{source:e,wrapperElement:{"data-color-mode":"light"},components:{code:Dz}})}function yl({targetVar:e,onResizeEnd:t,direction:n="horizontal",invert:r=!1}){const a=g.useRef(null),s=g.useCallback(o=>{o.preventDefault();const u=document.documentElement,p=getComputedStyle(u).getPropertyValue(e).trim(),d=parseFloat(p)||0;a.current={x:o.clientX,y:o.clientY,w:d},o.target.setPointerCapture(o.pointerId);const f=b=>{if(!a.current)return;const E=n==="horizontal"?b.clientX-a.current.x:b.clientY-a.current.y,x=r?-E:E,y=Math.max(0,a.current.w+x);u.style.setProperty(e,`${y}px`)},m=()=>{if(!a.current)return;const b=getComputedStyle(u).getPropertyValue(e).trim(),E=parseFloat(b)||a.current.w;t(Math.round(E)),a.current=null,window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",m)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",m,{once:!0})},[e,t,n,r]),i=n==="horizontal";return l.jsx("hr",{"data-testid":`resize-handle-${i?"h":"v"}`,"aria-orientation":i?"vertical":"horizontal","aria-label":i?"Resize sidebar":"Resize panel",tabIndex:0,className:"resize-handle shrink-0 bg-spur-border hover:bg-spur-accent cursor-col-resize transition-colors border-0",style:{width:i?4:"100%",height:i?"100%":4,margin:0},onPointerDown:s})}const Jx="spur:new-task-panel-width",ey=384,Ac=384;function ty({id:e,label:t,placeholder:n,value:r,mode:a,onChange:s,onModeChange:i,disabled:o}){return l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[l.jsxs("label",{htmlFor:e,className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:[t," ",l.jsx("span",{className:"text-spur-text-muted font-normal",children:"(optional, markdown)"})]}),l.jsxs("fieldset",{className:"flex items-center gap-1",children:[l.jsxs("legend",{className:"sr-only",children:[t," mode"]}),l.jsx(Ye,{type:"button",variant:a==="edit"?"primary":"ghost",size:"xs",onClick:()=>i("edit"),disabled:o,"aria-pressed":a==="edit",children:"Edit"}),l.jsx(Ye,{type:"button",variant:a==="preview"?"primary":"ghost",size:"xs",onClick:()=>i("preview"),disabled:o,"aria-pressed":a==="preview",children:"Preview"})]})]}),a==="edit"?l.jsx("div",{className:"min-h-40","data-testid":`${e}-editor`,children:l.jsx(pl,{value:r,onChange:u=>s(u??""),height:160,textareaProps:{id:e,placeholder:n,disabled:o,"aria-label":t},"data-color-mode":"dark"})}):l.jsx("div",{className:"min-h-40 rounded border border-spur-border bg-spur-bg p-3 text-sm text-spur-text overflow-y-auto","data-testid":`${e}-preview`,children:r.trim()?l.jsx(pl.Markdown,{source:r,"data-color-mode":"dark"}):l.jsx("p",{className:"text-xs text-spur-text-muted",children:n})})]})}function Qv({open:e,onClose:t,onCreated:n,folder:r,featureId:a}){const[s,i]=g.useState(""),[o,u]=g.useState(""),[c,p]=g.useState(""),[d,f]=g.useState("edit"),[m,b]=g.useState("edit"),[E,x]=g.useState("standard"),[y,v]=g.useState(!1),[T,N]=g.useState(""),[D,A]=g.useState(!1),[S,w]=g.useState(()=>{if(typeof window>"u")return ey;try{const k=Number.parseFloat(window.localStorage.getItem(Jx)??"");if(Number.isFinite(k)&&k>0)return Math.max(Ac,Math.min(k,window.innerWidth*.9))}catch{}return ey}),R=D&&s.trim()===""?"Name is required":"";g.useEffect(()=>{document.documentElement.style.setProperty("--new-task-panel-w",`${S}px`)},[S]);const C=()=>{y||(i(""),u(""),p(""),f("edit"),b("edit"),x("standard"),N(""),A(!1),t())},U=async()=>{A(!0);const k=s.trim();if(k!==""){v(!0),N("");try{const W=(await rn.task.create({title:k,folder:r,template:E,featureId:a})).data.wbs,$=[];if(o.trim()&&$.push(`### Background
|
|
171
|
+
${o.trim()}`),c.trim()&&$.push(`### Requirements
|
|
172
|
+
${c.trim()}`),$.length>0)try{await rn.task.body({wbs:W,body:$.join(`
|
|
173
|
+
|
|
174
|
+
`)})}catch(ee){const me=ee instanceof Error?ee.message:"Body seeding failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:`Task created but body seeding failed: ${me}`}}))}C(),n()}catch(j){const W=j instanceof Error?j.message:"Create failed";N(W),typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:W}}))}finally{v(!1)}}};return e?l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 bg-black/40 z-40",onClick:C,"aria-hidden":"true"}),l.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-[90vw] bg-spur-surface border-l border-spur-border z-50 flex shadow-2xl",style:{width:S,minWidth:Ac},role:"dialog","aria-label":"New Task",children:[l.jsx(yl,{targetVar:"--new-task-panel-w",onResizeEnd:k=>{const j=typeof window<"u"?window.innerWidth*.9:k,W=Math.max(Ac,Math.min(k,j));w(W);try{window.localStorage.setItem(Jx,String(W))}catch{}},direction:"horizontal",invert:!0}),l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[l.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-spur-border shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-spur-text",children:"New Task"}),l.jsx(Ye,{variant:"ghost",size:"sm",className:"text-spur-text-muted",onClick:C,"aria-label":"Close",disabled:y,children:"✕"})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[l.jsxs("div",{children:[l.jsxs("label",{htmlFor:"new-task-name",className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide block mb-1.5",children:["Name ",l.jsx("span",{className:"text-spur-error",children:"*"})]}),l.jsx(vi,{id:"new-task-name",type:"text",variant:"bordered",size:"sm",error:!!R,className:"w-full bg-spur-bg text-spur-text",placeholder:"Task name",value:s,onChange:k=>{i(k.target.value),D||A(!0)},onBlur:()=>A(!0),disabled:y}),R&&l.jsx("p",{className:"text-xs text-spur-error mt-1",children:R})]}),l.jsxs("div",{children:[l.jsx("label",{htmlFor:"new-task-template",className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide block mb-1.5",children:"Template"}),l.jsx(Jr,{id:"new-task-template",variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:E,onChange:k=>x(k.target.value),disabled:y,children:Au.map(k=>l.jsx("option",{value:k,children:k},k))})]}),l.jsx(ty,{id:"new-task-background",label:"Background",placeholder:"Why this task exists…",value:o,mode:d,onChange:u,onModeChange:f,disabled:y}),l.jsx(ty,{id:"new-task-requirements",label:"Requirements",placeholder:"What must be done…",value:c,mode:m,onChange:p,onModeChange:b,disabled:y}),T&&l.jsx("div",{className:"text-xs text-spur-error bg-spur-error/10 border border-spur-error/20 rounded p-2",children:T})]}),l.jsxs("div",{className:"flex items-center justify-end gap-2 p-4 border-t border-spur-border shrink-0",children:[l.jsx(Ye,{variant:"ghost",size:"sm",className:"text-spur-text-muted",onClick:C,disabled:y,children:"Cancel"}),l.jsx(Ye,{variant:"primary",size:"sm",onClick:U,disabled:y,children:y?"Creating…":"Create Task"})]})]})]})]}):null}const Lz=5e3,Fz=()=>`${_t()}/events/planning`,Mz=async(e={})=>rn.task.list(e);class Jv{state={tasks:[],subtaskProgress:new Map,loading:!0,error:null,connected:!1,lastSyncAt:void 0};listeners=[];interval;eventSource;refCount=0;listFn;constructor(t=Mz){this.listFn=t}getState=()=>this.state;setListFn=t=>{t!==this.listFn&&(this.listFn=t,this.refresh())};subscribe=t=>(this.listeners.push(t),this.refCount++,this.refCount===1&&(this.refresh(),this.interval=setInterval(this.refresh,Lz),this.connectSSE()),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.refCount--,this.refCount===0&&(this.interval&&(clearInterval(this.interval),this.interval=void 0),this.disconnectSSE())});refresh=async()=>{try{const n=(await this.listFn()).data??[];this.state={tasks:n,subtaskProgress:ny(n),loading:!1,error:null,connected:this.state.connected,lastSyncAt:Date.now()}}catch(t){this.state={...this.state,loading:!1,error:t}}this.emit()};setTasks=t=>{const n=typeof t=="function"?t(this.state.tasks):t;this.state={...this.state,tasks:n,subtaskProgress:ny(n),lastSyncAt:Date.now()},this.emit()};handleSSEOpen=()=>{this.state={...this.state,connected:!0},this.emit()};handleSSEMessage=()=>{this.refresh()};handleSSEError=()=>{this.state={...this.state,connected:!1},this.emit()};async connectSSE(){if(this.eventSource||typeof EventSource>"u")return;const t=new EventSource(Fz());this.eventSource=t,t.onopen=this.handleSSEOpen,t.onmessage=this.handleSSEMessage,t.onerror=this.handleSSEError}disconnectSSE(){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.state={...this.state,connected:!1})}emit(){for(const t of this.listeners)t()}}const ew=g.createContext(null);let _c=null;function Pz(){return _c||(_c=new Jv),_c}function ny(e){const t=new Map;for(const n of e){if(!n.parentWbs)continue;const r=t.get(n.parentWbs)??{done:0,total:0};r.total+=1,n.status==="done"&&(r.done+=1),t.set(n.parentWbs,r)}return t}function Tb(e){const t=g.useContext(ew),n=g.useRef(null);e&&!n.current&&(n.current=new Jv(e));const r=n.current??t??Pz();return g.useEffect(()=>{e&&n.current&&n.current.setListFn(e)},[e]),{...g.useSyncExternalStore(r.subscribe,r.getState),setTasks:r.setTasks,store:r}}function jz({progress:e,isDismissed:t,onDismiss:n,onReopen:r}){const{status:a,runId:s,action:i,error:o}=e,u=g.useRef(null);if(g.useEffect(()=>{a==="failed"&&t&&s&&u.current!==s&&(u.current=s,typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:o||`Action ${i||"job"} failed`}})))},[a,t,s,i,o]),a==="idle"||!s)return null;const c=a==="queued"||a==="running";if(t)return c?l.jsx("div",{className:"fixed bottom-4 right-4 z-40",children:l.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-2 px-3 py-1.5 bg-spur-bg border border-spur-border hover:border-spur-primary text-spur-text text-xs rounded-full shadow-md font-medium transition-colors",children:[l.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"}),l.jsxs("span",{children:[i?`${i.charAt(0).toUpperCase()}${i.slice(1)}`:"Action"," (",a,")"]}),l.jsx("span",{className:"text-spur-text-muted",children:"⤢"})]})}):null;const p=a==="succeeded"?"success":a==="failed"?"error":a==="running"?"accent":"warning";return l.jsxs("div",{className:"fixed bottom-4 right-4 z-40 w-80 p-4 bg-spur-bg border border-spur-border rounded-lg shadow-xl backdrop-blur flex flex-col gap-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:i?`${i.charAt(0).toUpperCase()}${i.slice(1)}`:"Action"}),l.jsx(Mt,{variant:p,children:a})]}),l.jsx("button",{type:"button",onClick:n,className:"text-spur-text-muted hover:text-spur-text text-base font-bold leading-none p-1","aria-label":"Dismiss progress panel",children:"×"})]}),l.jsxs("div",{className:"text-xs text-spur-text-muted font-mono truncate",children:["ID: ",s]}),c&&l.jsxs("div",{className:"flex items-center gap-2 text-xs text-spur-text",children:[l.jsx(Da,{className:"w-3.5 h-3.5"}),l.jsx("span",{children:a==="queued"?"Enqueued in job runner...":"Running agent slash command..."})]}),a==="succeeded"&&l.jsx("div",{className:"text-xs text-green-400 font-medium",children:"✓ Action completed successfully."}),a==="failed"&&l.jsxs("div",{className:"text-xs text-red-400 font-medium break-words",children:["✕ ",o||"Action job failed."]}),!c&&l.jsx("div",{className:"flex justify-end pt-1",children:l.jsx(Ye,{variant:"outline",size:"sm",onClick:n,children:"Close"})})]})}const Bz={backlog:["brainstorm","plan","add-child","add-task","start","cancel"],active:["add-child","add-task","link-task","sync-status","verify","block","cancel"],verifying:["sync-status","complete","rework","cancel"],blocked:["add-child","add-task","unblock","cancel"],done:[],cancelled:[]},Er={brainstorm:"Brainstorm",plan:"Plan","add-child":"+ Child","add-task":"+ Task","link-task":"Link Task","sync-status":"Sync",start:"Start",verify:"Verify",complete:"Complete",rework:"Rework",block:"Block",unblock:"Unblock",cancel:"Cancel"},Uz={start:"primary",verify:"primary",complete:"primary",unblock:"primary",brainstorm:"secondary",plan:"secondary","add-child":"secondary","add-task":"secondary","link-task":"secondary","sync-status":"secondary",block:"hazard",rework:"hazard",cancel:"hazard"},$z={start:!0,verify:!0,complete:!0,rework:!0,block:!0,unblock:!0,cancel:!0},zz={start:"active",verify:"verifying",complete:"done",rework:"active",block:"blocked",unblock:"active",cancel:"cancelled"};function tw({open:e,parentId:t,onClose:n,onCreated:r}){const[a,s]=g.useState(""),[i,o]=g.useState(!1),[u,c]=g.useState(""),[p,d]=g.useState(!1),f=p&&a.trim()===""?"Name is required":"",m=()=>{s(""),d(!1),c(""),n()},b=async()=>{d(!0);const E=a.trim();if(E!==""){o(!0),c("");try{t?await qv({id:t,name:E}):await G$(E),m(),r()}catch(x){const y=x instanceof Error?x.message:"Create failed";c(y)}finally{o(!1)}}};return e?l.jsx("div",{className:"fixed inset-y-0 right-0 z-40 flex","data-new-feature-panel":!0,children:l.jsxs("div",{className:"w-96 border-l border-spur-border bg-spur-surface shadow-xl flex flex-col",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-spur-border shrink-0",children:[l.jsx("h3",{className:"text-sm font-semibold text-spur-text",children:t?"New Child Feature":"New Feature"}),l.jsx(Ye,{variant:"ghost",size:"xs",onClick:m,"aria-label":"Close panel",children:"✕"})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[t&&l.jsxs("div",{className:"text-xs text-spur-text-muted",children:["Parent: ",l.jsx("span",{className:"font-mono text-spur-accent",children:t})]}),l.jsxs("div",{children:[l.jsx("label",{htmlFor:"new-feature-name",className:"block text-xs font-medium text-spur-text mb-1",children:"Feature Name *"}),l.jsx(vi,{id:"new-feature-name",value:a,onChange:E=>{s(E.target.value),p||d(!0)},onKeyDown:E=>{E.key==="Enter"&&a.trim()&&b()},placeholder:"e.g. Authentication module",disabled:i}),f&&l.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),u&&l.jsx("p",{className:"text-xs text-red-500 mt-1",children:u})]}),l.jsx("div",{className:"text-xs text-spur-text-muted",children:t?`The feature ID will be auto-allocated (next free digit under ${t}).`:"The feature ID will be auto-allocated (next free letter A–Z)."})]}),l.jsxs("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t border-spur-border shrink-0",children:[l.jsx(Ye,{variant:"ghost",size:"xs",onClick:m,disabled:i,children:"Cancel"}),l.jsx(Ye,{variant:"primary",size:"xs",onClick:b,disabled:i||a.trim()==="",loading:i,children:"Create Feature"})]})]})}):null}const nw={backlog:{status:"backlog",label:"Backlog",colorClass:"text-spur-text-muted",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",role:"img","aria-label":t,children:l.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"2.5",strokeDasharray:"2 2"})})},active:{status:"active",label:"Active",colorClass:"text-spur-accent",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"currentColor",role:"img","aria-label":t,children:l.jsx("circle",{cx:"8",cy:"8",r:"4.5"})})},verifying:{status:"verifying",label:"Verifying",colorClass:"text-spur-warning",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsxs("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",role:"img","aria-label":t,children:[l.jsx("path",{d:"M1.5 8s2.5-4 6.5-4 6.5 4 6.5 4-2.5 4-6.5 4-6.5-4-6.5-4z"}),l.jsx("circle",{cx:"8",cy:"8",r:"2"})]})},blocked:{status:"blocked",label:"Blocked",colorClass:"text-spur-error",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsxs("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":t,children:[l.jsx("path",{d:"M8 2.5l5.5 10.5H2.5L8 2.5z"}),l.jsx("path",{d:"M8 6v3"}),l.jsx("circle",{cx:"8",cy:"11.5",r:"0.5",fill:"currentColor"})]})},done:{status:"done",label:"Done",colorClass:"text-spur-success",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":t,children:l.jsx("path",{d:"M3.5 8.5l3.5 3.5 5.5-7"})})},cancelled:{status:"cancelled",label:"Cancelled",colorClass:"text-spur-text-faint",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsxs("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":t,children:[l.jsx("path",{d:"M5.5 2.5h5l3 3v5l-3 3h-5l-3-3v-5l3-3z"}),l.jsx("path",{d:"M6.25 6.25l3.5 3.5M9.75 6.25l-3.5 3.5"})]})}};function rw(e){const t=nw[e.toLowerCase()];return t?t.label:`Unknown status: ${e}`}function Sb({status:e,className:t}){const n=e.toLowerCase(),r=nw[n];if(r){const a=r.Icon;return l.jsx(a,{className:`${r.colorClass} ${t??"w-3.5 h-3.5"}`,ariaLabel:r.label})}return l.jsx("svg",{className:`inline-block shrink-0 text-spur-text-muted ${t??"w-3.5 h-3.5"}`,viewBox:"0 0 16 16",fill:"currentColor",role:"img","aria-label":rw(e),children:l.jsx("circle",{cx:"8",cy:"8",r:"4"})})}function aw(e){return e?e.startsWith("feature.")||e.startsWith("queue.job."):!1}function Hz(e){if(!e||typeof e!="object")return null;const t=e;if(typeof t.jobId=="string"&&t.jobId.length>0)return t.jobId;if(typeof t.runId=="string"&&t.runId.length>0)return t.runId;if(t.job&&typeof t.job=="object"){const n=t.job;if(typeof n.id=="string"&&n.id.length>0)return n.id;if(typeof n.jobId=="string"&&n.jobId.length>0)return n.jobId}return null}function Gz(e,t){return t?Hz(e)===t:!1}const Cc={status:"idle"};function Wz(e,t,n){if(e.status==="idle"||!e.runId||!Gz(n,e.runId))return e;switch(t){case"queue.job.enqueued":case"queue.job.created":return{...e,status:"queued"};case"queue.job.started":case"queue.job.running":return{...e,status:"running"};case"queue.job.completed":return{...e,status:"succeeded"};case"queue.job.failed":{const r=n&&typeof n=="object"&&typeof n.error=="string"?n.error:"Job failed";return{...e,status:"failed",error:r}}default:return e}}const Vz=()=>`${_t()}/events/planning`;function qz(e){const[t,n]=g.useState(Cc);g.useEffect(()=>{e&&n(Cc)},[e]);const r=g.useCallback((s,i)=>{n({status:"queued",runId:s,action:i})},[]),a=g.useCallback(()=>{n(Cc)},[]);return g.useEffect(()=>{if(typeof EventSource>"u"||!t.runId)return;const s=new EventSource(Vz());return s.onmessage=i=>{try{const o=JSON.parse(i.data),u=o.eventName;if(!aw(u)||!u)return;n(c=>Wz(c,u,o.payload))}catch{}},()=>{s.close()}},[t.runId]),{progress:t,trackAction:r,clearProgress:a}}function Yz({featureId:e,onClose:t,refreshKey:n=0,childFeatures:r=[],onSelectFeature:a,metadataDockRef:s}){const[i,o]=g.useState(null),[u,c]=g.useState(""),[p,d]=g.useState(""),[f,m]=g.useState("preview"),[b,E]=g.useState(!1),[x,y]=g.useState(!1),[v,T]=g.useState(null),[N,D]=g.useState({}),[A,S]=g.useState(!1),[w,R]=g.useState(null),[C,U]=g.useState(null),[k,j]=g.useState(!1),[W,$]=g.useState(null),[ee,me]=g.useState(null),[se,xe]=g.useState(""),[O,te]=g.useState("claude"),[le,L]=g.useState("push"),[ke,Re]=g.useState(!1),[Q,_e]=g.useState(!1),{progress:ue,trackAction:X}=qz(e),[We,fe]=g.useState(!1),de=g.useRef(null),Te=g.useRef(f);Te.current=f,g.useEffect(()=>{if(!A||k||W||ee)return;const G=ze=>{ze.key==="Escape"&&S(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[A,k,W,ee]);const{tasks:Se}=Tb(),H=(Se??[]).filter(G=>G.featureId===e),Fe=g.useRef(0),Ke=g.useCallback(()=>++Fe.current,[]),Xe=g.useCallback(G=>G===Fe.current,[]),Pt=g.useCallback(async()=>{const G=Ke(),ze=await Px(e);return Xe(G)?ze:null},[e,Ke,Xe]),dt=g.useCallback((G,ze)=>{if(o(G),de.current=G.id,D(G.frontmatter),ze?.body!==!1){const M=Zz(G.content);c(M),d(M)}},[]),lt=g.useCallback(async G=>{const ze=await Pt();return ze&&(dt(ze,G),E(!1)),ze},[Pt,dt]),Kt=g.useCallback((G,ze)=>{const M=G instanceof Error?G.message:ze;U({kind:"error",message:M}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:M}}))},[]),it=g.useMemo(()=>({featureId:e,generation:n}),[e,n]);g.useEffect(()=>{const{featureId:G}=it;if(!G){o(null),de.current=null,c(""),d(""),m("preview"),T(null),U(null);return}const ze=de.current===G,M=ze&&Te.current==="edit";ze||(m("preview"),E(!0)),T(null);const z=Ke();(async()=>{try{const Y=await Px(G);if(!Xe(z))return;dt(Y,{body:!M})}catch(Y){if(!Xe(z))return;T(Y instanceof Error?Y.message:"Failed to load feature")}finally{Xe(z)&&E(!1)}})()},[it,Ke,Xe,dt]);const Le=async()=>{Re(!1);try{await lt({body:!1})}catch{}},rt=async()=>{_e(!1);try{await lt()}catch{}};if(v)return l.jsx("div",{className:"flex items-center justify-center h-full p-4",children:l.jsx("p",{className:"text-sm text-red-500",children:v})});if(!i)return l.jsx("div",{className:"flex items-center justify-center h-full text-spur-text-muted text-sm",children:"Select a feature to view details"});const Z=()=>{d(u),m("edit")},ie=()=>{d(u),m("preview")},Ce=async()=>{y(!0);try{await z$({id:e,body:p}),c(p),m("preview"),await lt()}catch(G){d(u),m("preview");const ze=G instanceof Error?G.message:"Save failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:ze}}))}finally{y(!1)}},Oe=G=>{if(!w){if(U(null),$z[G]){st(G);return}if(G==="brainstorm"||G==="plan"){$(G);return}if(G==="add-child"){_e(!0);return}if(G==="add-task"){Re(!0);return}if(G==="link-task"){me(G),xe("");return}if(G==="sync-status"){$("sync-status");return}}},Ve=async G=>{const ze=zz[G];if(ze){R(G),U(null);try{const M=await $$(e,ze);o(z=>z&&{...z,status:M}),await lt({body:!1}),U({kind:"ok",message:`${Er[G]??G}: status is now ${M}.`})}catch(M){Kt(M,"Transition failed")}finally{R(null)}}},st=async G=>{if(G==="cancel"){j(!0);return}await Ve(G)},Rt=async()=>{j(!1),await Ve("cancel")},Ct=async()=>{const G=ee;if(!(!G||!se.trim())){me(null),R(G),U(null);try{G==="add-child"?await qv({id:e,name:se.trim()}):G==="add-task"?await W$({id:e,title:se.trim()}):G==="link-task"&&await V$({id:e,wbs:se.trim()}),await lt({body:!1}),U({kind:"ok",message:`${Er[G]??G} completed.`})}catch(ze){Kt(ze,"Action failed")}finally{R(null)}}},Nt=async()=>{if(!W)return;const G=W;$(null),R(G),U(null);try{if(G==="sync-status"){const ze=await q$({id:e,direction:le});await lt({body:!1});const M=ze.data?.applied,z=ze.data?.newStatus;U({kind:"ok",message:M?`Sync applied${z?`: status is now ${z}`:""}.`:"Sync finished — no status change was needed."})}else{const ze=await H$({id:e,action:G,channel:O});ze?.data?.runId&&(X(ze.data.runId,G),fe(!1)),await lt({body:!1}),U({kind:"ok",message:`${Er[G]??G} dispatched on ${O}.`})}}catch(ze){Kt(ze,"Action failed")}finally{R(null)}},Lt=G=>{if(!G)return"";try{const ze=new Date(G);return Number.isNaN(ze.getTime())?"":ze.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}},re=G=>{if(!G)return"";try{const ze=new Date(G);if(Number.isNaN(ze.getTime()))return"";const M=Date.now()-ze.getTime(),z=Math.floor(M/864e5);return z===0?"today":z===1?"yesterday":z<30?`${z}d ago`:z<365?`${Math.floor(z/30)}mo ago`:`${Math.floor(z/365)}y ago`}catch{return""}},Ae=Array.isArray(N.tags)?N.tags:[],$e=Lt(N.created_at),je=re(N.created_at),St=Lt(N.updated_at),Xt=re(N.updated_at),Me=G=>{window.location.assign(`/board/tasks/${G}`)},pt=Bz[i.status]??[],Qe=G=>Uz[G]??"secondary",kt=pt.filter(G=>Qe(G)==="primary"),ae=pt.filter(G=>Qe(G)==="secondary"),ge=pt.filter(G=>Qe(G)==="hazard"),tt=!!s?.current,Dt=l.jsx("aside",{id:"feature-metadata-panel","data-testid":"feature-metadata-panel","aria-label":"Feature metadata","aria-hidden":!A,hidden:tt&&!A,className:`flex flex-col overflow-hidden bg-base-200 shadow-xl ${tt?"absolute top-0 bottom-0 left-[calc(100%_+_12px)] z-20 w-72 lg:w-80 rounded-lg border border-spur-border":`absolute inset-y-0 right-0 z-30 w-80 max-w-full border-l border-spur-border transition-transform duration-200 ${A?"translate-x-0":"translate-x-full"}`}`,children:A&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-spur-border bg-base-300/60 shrink-0",children:[l.jsxs("span",{className:"text-xs font-semibold text-spur-text flex items-center gap-1.5",children:[l.jsx("span",{children:"ℹ"})," Metadata"]}),l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent h-5 w-5 p-0 text-xs flex items-center justify-center",onClick:()=>S(!1),"aria-label":"Close metadata",title:"Close metadata",children:"✕"})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-3",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:"Status"}),l.jsx("span",{className:"text-sm text-spur-text","data-testid":"metadata-status",children:i.status})]}),($e||St)&&l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("span",{className:"text-xs text-spur-text-muted block",children:"Dates"}),$e&&l.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[l.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"Created"}),l.jsx("span",{className:"text-spur-text",children:$e}),l.jsxs("span",{className:"text-spur-text-muted",children:["(",je,")"]})]}),St&&l.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[l.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"Updated"}),l.jsx("span",{className:"text-spur-text",children:St}),l.jsxs("span",{className:"text-spur-text-muted",children:["(",Xt,")"]})]})]}),Ae.length>0&&l.jsxs("div",{children:[l.jsx("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:"Tags"}),l.jsx("div",{className:"flex flex-wrap gap-1",children:Ae.map(G=>l.jsx(Mt,{variant:"outline",size:"xs",className:"text-spur-text-muted",children:G},G))})]}),l.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[l.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"File"}),l.jsx("span",{className:"text-spur-text font-mono truncate",children:i.filePath})]}),r.length>0&&l.jsxs("div",{children:[l.jsxs("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:["Child features (",r.length,")"]}),l.jsx("div",{className:"space-y-1",children:r.map(G=>l.jsxs("button",{type:"button",onClick:()=>a?.(G.id),className:"flex items-center gap-2 w-full text-xs text-left hover:underline cursor-pointer","aria-label":`Open child feature ${G.id}: ${G.name}`,children:[l.jsx("span",{className:"shrink-0 text-[13px]",title:G.status,children:l.jsx(Sb,{status:G.status})}),l.jsx("span",{className:"font-mono text-spur-accent shrink-0",children:G.id}),l.jsx("span",{className:"text-spur-text truncate flex-1 min-w-0",children:G.name})]},G.id))})]}),l.jsxs("div",{children:[l.jsxs("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:["Linked Tasks (",H.length,")"]}),H.length===0?l.jsx("span",{className:"text-xs text-spur-text-muted italic",children:"No linked tasks"}):l.jsx("div",{className:"space-y-1",children:H.map(G=>l.jsxs("div",{className:"flex items-center gap-2 w-full text-xs",children:[l.jsx("span",{className:"shrink-0 text-[13px]",title:G.status,children:xb(G.status)}),l.jsxs("button",{type:"button",onClick:()=>Me(G.wbs),className:"flex items-center gap-2 flex-1 min-w-0 text-left hover:underline cursor-pointer","aria-label":`Go to task ${G.wbs}: ${G.name}`,children:[l.jsx("span",{className:"font-mono text-spur-accent shrink-0",children:G.wbs}),l.jsx("span",{className:"text-spur-text truncate",children:G.name})]}),l.jsx("span",{className:"px-1.5 py-0.5 rounded-full border border-spur-border text-[10px] text-spur-text-muted shrink-0",children:G.status})]},G.wbs))})]})]})]})});return l.jsxs("div",{className:"relative flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-start justify-between gap-3 p-3 border-b border-spur-border shrink-0",children:[l.jsxs("div",{className:"flex flex-col gap-1 overflow-hidden",children:[l.jsxs("h3",{className:"text-sm font-semibold text-spur-text truncate",children:[i.id," — ",i.name]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1","data-testid":"header-chips",children:[l.jsx("span",{className:"px-2 py-0.5 rounded-full border border-spur-border text-xs text-spur-text-muted","data-testid":"status-pill",children:i.status}),typeof i.frontmatter.priority=="string"&&l.jsx("span",{className:"px-2 py-0.5 rounded-full bg-spur-accent/15 text-xs text-spur-accent",children:i.frontmatter.priority}),Ae.map(G=>l.jsx("span",{className:"px-2 py-0.5 rounded-full border border-spur-border text-xs text-spur-text-muted",children:G},G))]})]}),l.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 shrink-0",children:[[["primary",kt],["secondary",ae]].map(([G,ze])=>ze.map(M=>l.jsx(Ye,{variant:G==="primary"?"primary":"outline",size:"xs",onClick:()=>Oe(M),disabled:w!==null,"aria-busy":w===M,"aria-label":Er[M],"data-action-tier":G,children:w===M?"…":Er[M]},M))),ge.length>0&&l.jsx("div",{className:"flex items-center gap-1 border-l border-spur-border pl-1.5 ml-1.5",children:ge.map(G=>l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-error",onClick:()=>Oe(G),disabled:w!==null,"aria-busy":w===G,"aria-label":Er[G],"data-action-tier":"hazard",children:w===G?"…":Er[G]},G))}),f==="preview"?l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:Z,disabled:b,"aria-label":"Edit body",children:"Edit"}):l.jsxs(l.Fragment,{children:[l.jsx(Ye,{variant:"primary",size:"xs",onClick:Ce,disabled:x,"aria-label":"Save body",children:x?"Saving…":"Save"}),l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:ie,disabled:x,"aria-label":"Cancel edit",children:"Cancel"})]}),l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-text-muted",onClick:()=>S(G=>!G),"aria-expanded":A,"aria-controls":"feature-metadata-panel","data-testid":"metadata-toggle",children:"ℹ Metadata"}),t&&l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-text-muted",onClick:t,"aria-label":"Close detail",children:"✕"})]})]}),C&&l.jsx("div",{role:"status","data-testid":"action-feedback","data-kind":C.kind,className:`px-3 py-1.5 text-xs border-b border-spur-border shrink-0 ${C.kind==="error"?"bg-spur-error/10 text-spur-error":"bg-spur-success/10 text-spur-success"}`,children:C.message}),l.jsx("div",{className:"flex-1 flex flex-col overflow-hidden p-3","data-testid":"feature-body-section",children:b?l.jsxs("div",{className:"flex items-center gap-2 text-sm text-spur-text-muted",children:[l.jsx(Da,{size:"xs",className:"text-spur-accent"}),"Loading body…"]}):f==="edit"?l.jsx("div",{className:"flex-1 min-h-0 w-full","data-testid":"body-editor",children:l.jsx(pl,{value:p,onChange:G=>d(G??""),height:"100%","data-color-mode":"light"})}):l.jsx("div",{className:"flex-1 overflow-y-auto w-full","data-testid":"body-preview",children:l.jsx(Oz,{source:u})})}),k&&l.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Confirm cancel feature",tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:G=>{G.target===G.currentTarget&&j(!1)},onKeyDown:G=>{G.key==="Escape"&&j(!1)},children:l.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-xs w-full",children:[l.jsxs("p",{className:"text-sm text-spur-text mb-4",children:["Cancel feature ",l.jsx("strong",{children:e}),"? This marks it as cancelled and cannot be undone from the board."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(Ye,{variant:"ghost",size:"xs",onClick:()=>j(!1),children:"Keep"}),l.jsx(Ye,{variant:"error",size:"xs",onClick:Rt,children:"Cancel feature"})]})]})}),W&&l.jsx("div",{role:"dialog","aria-modal":"true","aria-label":`Configure ${W} action`,tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:G=>{G.target===G.currentTarget&&$(null)},onKeyDown:G=>{G.key==="Escape"&&$(null)},children:l.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-sm w-full",children:[W==="sync-status"?l.jsxs(l.Fragment,{children:[l.jsx("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:"Sync Status — Direction"}),l.jsx("div",{className:"space-y-3",children:l.jsxs(Jr,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:le,onChange:G=>L(G.target.value),children:[l.jsx("option",{value:"push",children:"Push (feature → tasks)"}),l.jsx("option",{value:"pull",children:"Pull (tasks → feature)"})]})})]}):l.jsxs(l.Fragment,{children:[l.jsxs("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:[Er[W]," — Select Channel"]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx(Jr,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:O,onChange:G=>te(G.target.value),children:["claude","codex","gemini","pi","opencode","antigravity","openclaw"].map(G=>l.jsx("option",{value:G,children:G},G))}),l.jsxs("label",{htmlFor:"skip-deps",className:"flex items-center gap-2 cursor-pointer",children:[l.jsx(ob,{id:"skip-deps",size:"xs",checked:!1,onChange:()=>{}}),l.jsx("span",{className:"text-xs text-spur-text",children:"Skip dependencies"})]})]})]}),l.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[l.jsx(Ye,{variant:"ghost",size:"xs",onClick:()=>$(null),children:"Cancel"}),l.jsx(Ye,{variant:"primary",size:"xs",onClick:Nt,children:w===W?"Dispatching…":"Dispatch"})]})]})}),ee&&l.jsx("div",{role:"dialog","aria-modal":"true","aria-label":`${Er[ee]} input`,tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:G=>{G.target===G.currentTarget&&me(null)},onKeyDown:G=>{G.key==="Escape"&&me(null)},children:l.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-sm w-full",children:[l.jsx("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:Er[ee]}),ee==="link-task"?l.jsxs(Jr,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:se,onChange:G=>xe(G.target.value),children:[l.jsx("option",{value:"",children:"— Select a task —"}),(Se??[]).filter(G=>G.featureId!==e).map(G=>l.jsxs("option",{value:G.wbs,children:[G.wbs," — ",G.name]},G.wbs))]}):l.jsx("input",{type:"text",className:"w-full px-3 py-2 rounded border border-spur-border bg-spur-bg text-sm text-spur-text focus:outline-none focus:border-spur-accent",placeholder:"Enter child feature name",value:se,onChange:G=>xe(G.target.value),onKeyDown:G=>{G.key==="Enter"&&se.trim()&&Ct()}}),l.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[l.jsx(Ye,{variant:"ghost",size:"xs",onClick:()=>me(null),children:"Cancel"}),l.jsx(Ye,{variant:"primary",size:"xs",onClick:Ct,disabled:!se.trim()||w===ee,children:w===ee?"…":"Create"})]})]})}),l.jsx(Qv,{open:ke,onClose:()=>Re(!1),onCreated:Le,folder:["docs","tasks2"].join("/"),featureId:e}),l.jsx(tw,{open:Q,parentId:e,onClose:()=>_e(!1),onCreated:rt}),l.jsx(jz,{progress:ue,isDismissed:We,onDismiss:()=>fe(!0),onReopen:()=>fe(!1)}),s?.current?pa.createPortal(Dt,s.current):Dt]})}function Zz(e){const t=e.match(/^---\n[\s\S]*?\n---\n/);return t?e.slice(t[0].length):e}function sw(e,t){return e.id.localeCompare(t.id)}function Kz({features:e,selectedId:t,onSelect:n}){const[r,a]=g.useState(()=>new Set),s=g.useCallback(u=>{a(c=>{const p=new Set(c);return p.has(u)?p.delete(u):p.add(u),p})},[]),i=e.filter(u=>u.id.length===1).slice().sort(sw),o=iw(e);return l.jsx("ul",{className:"py-1","data-feature-tree":!0,children:i.map(u=>l.jsx(ow,{feature:u,childrenMap:o,selectedId:t,onSelect:n,collapsedIds:r,onToggleFold:s,depth:0},u.id))})}function iw(e){const t=new Map;for(const n of e){if(n.id.length<=1)continue;const r=n.id.slice(0,-1),a=t.get(r);a?a.push(n):t.set(r,[n])}for(const n of t.values())n.sort(sw);return t}function ow({feature:e,childrenMap:t,selectedId:n,onSelect:r,collapsedIds:a,onToggleFold:s,depth:i}){const o=t.get(e.id),u=o!==void 0&&o.length>0,c=a.has(e.id),p=e.id===n,d=`${i*16}px`;return l.jsxs("li",{children:[l.jsxs("div",{className:`w-full flex items-center transition-colors hover:bg-base-300 ${p?"bg-spur-accent/10 text-spur-accent font-semibold":"text-spur-text"}`,style:{paddingLeft:`calc(0.25rem + ${d})`},children:[u?l.jsx("button",{type:"button",onClick:f=>{f.stopPropagation(),s(e.id)},"aria-expanded":!c,"aria-controls":`feature-tree-children-${e.id}`,"aria-label":`${c?"Expand":"Collapse"} ${e.id}: ${e.name}`,className:"p-1 hover:bg-base-100 rounded text-spur-text-muted hover:text-spur-text text-[10px] flex items-center justify-center shrink-0 w-5 h-5 cursor-pointer",children:l.jsx("span",{className:`inline-block transition-transform duration-150 ${c?"":"rotate-90"}`,"aria-hidden":"true",children:"▶"})}):l.jsx("span",{className:"w-5 shrink-0","aria-hidden":"true"}),l.jsxs("button",{type:"button",onClick:()=>r(e.id),className:`flex-1 flex items-center gap-1.5 px-1.5 py-1 text-left text-sm truncate min-w-0 cursor-pointer ${p?"bg-spur-accent/10 text-spur-accent font-semibold":"text-spur-text"}`,children:[l.jsx(uP,{position:"right",tip:rw(e.status),className:"flex! w-4 shrink-0 items-center justify-center","data-testid":"feature-tree-status",children:l.jsx(Sb,{status:e.status})}),l.jsx("span",{className:"text-xs font-mono text-spur-text-muted shrink-0",children:e.id}),l.jsx("span",{className:"flex-1 truncate",children:e.name})]})]}),u&&!c&&l.jsx("ul",{id:`feature-tree-children-${e.id}`,children:o.map(f=>l.jsx(ow,{feature:f,childrenMap:t,selectedId:n,onSelect:r,collapsedIds:a,onToggleFold:s,depth:i+1},f.id))})]})}function Xz(){const[e,t]=g.useState(!1),[n,r]=g.useState(""),[a,s]=g.useState(null),i=()=>{r(""),s("Agent dispatch is not wired yet — this bar is UI only (F84 R6).")};return e?l.jsxs("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-30 w-[calc(100vw-2rem)] max-w-[84rem] backdrop-blur-md bg-base-100/80 border border-spur-border shadow-2xl rounded-2xl p-2.5 flex flex-col gap-2","data-testid":"agent-bar",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Mt,{variant:"outline",size:"sm",className:"shrink-0 font-mono",children:"agent · stub"}),l.jsx(oP,{rows:1,value:n,onChange:o=>r(o.target.value),placeholder:"Ask a coding agent to refine or implement this feature…","aria-label":"Agent prompt",className:"flex-1 min-h-9 resize-none bg-transparent","data-testid":"agent-bar-input"}),l.jsx(Ye,{variant:"primary",size:"sm",disabled:n.trim().length===0,onClick:i,children:"Send"}),l.jsx(Ye,{variant:"ghost",size:"sm",onClick:()=>t(!1),"aria-label":"Collapse agent prompt bar","aria-expanded":!0,children:"▾"})]}),a&&l.jsx("p",{role:"status",className:"px-1 text-xs text-spur-text-muted",children:a})]}):l.jsx(Ye,{variant:"ghost",className:"fixed bottom-6 right-6 z-30 h-12 w-12 rounded-full backdrop-blur-md bg-base-100/80 border border-spur-border shadow-2xl text-xl",onClick:()=>t(!0),"aria-label":"Open agent prompt bar","aria-expanded":!1,"data-testid":"agent-bar-dock",children:"✨"})}const Qz=()=>`${_t()}/events/planning`;function Jz({className:e="w-3.5 h-3.5"}){return l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("polygon",{points:"1.5 2.5 14.5 2.5 9.5 8.5 9.5 13.5 6.5 13.5 6.5 8.5 1.5 2.5"})})}function eH(){const[e,t]=g.useState(null),[n,r]=g.useState(null),[a,s]=g.useState(!1),[i,o]=g.useState("all"),[u,c]=g.useState(!0),[p,d]=g.useState(!1),[f,m]=g.useState(null),[b,E]=g.useState(0),x=g.useRef(null),y=g.useRef(null),v=g.useMemo(()=>iw(e??[]),[e]),T=g.useCallback(async w=>{try{const R=await U$(w);t(R),m(null)}catch(R){if(w?.aborted)return;m(R instanceof Error?R.message:String(R))}},[]);if(g.useEffect(()=>{const w=new AbortController;return T(w.signal),()=>w.abort()},[T]),g.useEffect(()=>{if(!p)return;const w=C=>{x.current&&!x.current.contains(C.target)&&d(!1)},R=C=>{C.key==="Escape"&&d(!1)};return document.addEventListener("mousedown",w),document.addEventListener("keydown",R),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",R)}},[p]),g.useEffect(()=>{if(typeof EventSource>"u")return;const w=new EventSource(Qz());return w.onmessage=R=>{try{const U=JSON.parse(R.data).eventName;if(!aw(U))return;T(),n&&(U==="feature.updated"||U==="feature.transitioned"||U==="queue.job.completed")&&E(k=>k+1)}catch{}},()=>w.close()},[T,n]),f)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load features: ",f]});if(e===null)return l.jsx("div",{className:"flex items-center justify-center h-full text-spur-text-muted text-sm",children:"Loading features…"});const N=()=>{s(!1),T()},A=(w=>{if(i==="all")return w;const R=i.toLowerCase(),C=new Set;for(const U of w)if(U.status.toLowerCase()===R){C.add(U.id);let k=U.id;for(;k.length>1;)k=k.slice(0,-1),C.add(k)}return w.filter(U=>C.has(U.id))})(e),S=n?v.get(n)??[]:[];return l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"relative h-full w-full p-4 overflow-hidden","data-features-shell":!0,children:l.jsxs("div",{className:"flex flex-col h-full w-full max-w-[1600px] mx-auto gap-3","data-features-workspace":!0,children:[l.jsxs("header",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-spur-border pb-3 shrink-0",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"text-2xl","aria-hidden":"true",children:"🎯"}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-xl font-bold tracking-tight text-spur-text",children:"Features"}),l.jsx("p",{className:"text-xs text-spur-text-muted",children:"Hierarchical feature roadmap, acceptance criteria, and lifecycle progression"})]})]}),l.jsxs("div",{className:"flex items-center gap-1","data-features-actions":!0,children:[l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:()=>c(w=>!w),"aria-label":u?"Collapse feature tree":"Expand feature tree","aria-expanded":u,"aria-controls":"feature-tree-dock",title:u?"Collapse feature tree":"Expand feature tree",children:u?"◧":"▶"}),l.jsxs("div",{className:"relative",ref:x,children:[l.jsxs(Ye,{variant:"ghost",size:"xs",className:`relative text-spur-text-muted hover:text-spur-accent flex items-center gap-1 ${i!=="all"?"text-spur-accent font-semibold":""}`,onClick:()=>d(w=>!w),"aria-label":"Filter features by status","aria-expanded":p,title:"Filter features by status",children:[l.jsx(Jz,{className:"w-3.5 h-3.5"}),i!=="all"&&l.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-spur-accent shrink-0","aria-hidden":"true"})]}),p&&l.jsxs("div",{className:"absolute right-0 top-full mt-1 z-20 w-44 rounded-md shadow-lg bg-base-100 border border-spur-border py-1 text-xs","data-filter-menu":!0,children:[l.jsxs("div",{className:"px-2.5 py-1 font-semibold text-spur-text-muted border-b border-spur-border flex items-center justify-between",children:[l.jsx("span",{children:"Filter by Status"}),i!=="all"&&l.jsx("button",{type:"button",onClick:()=>{o("all"),d(!1)},className:"text-[10px] text-spur-accent hover:underline",children:"Reset"})]}),l.jsxs("button",{type:"button",onClick:()=>{o("all"),d(!1)},className:`w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-base-200 ${i==="all"?"font-semibold text-spur-accent bg-spur-accent/10":"text-spur-text"}`,children:[l.jsx("span",{className:"flex-1",children:"All"}),i==="all"&&l.jsx("span",{children:"✓"})]}),ws.map(w=>l.jsxs("button",{type:"button",onClick:()=>{o(w),d(!1)},className:`w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-base-200 capitalize ${i===w?"font-semibold text-spur-accent bg-spur-accent/10":"text-spur-text"}`,children:[l.jsx(Sb,{status:w}),l.jsx("span",{className:"flex-1 capitalize",children:w}),i===w&&l.jsx("span",{children:"✓"})]},w))]})]}),l.jsx(Ye,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:()=>s(!0),"aria-label":"Add root feature",title:"Add root feature",children:"+"})]})]}),l.jsxs("div",{className:"relative flex-1 min-h-0",ref:y,children:[l.jsxs("div",{id:"feature-tree-dock",hidden:!u,className:"absolute right-[calc(100%_+_12px)] top-0 bottom-0 z-20 w-72 lg:w-80 flex flex-col overflow-hidden rounded-lg border border-spur-border bg-base-200 shadow-xl",children:[l.jsx("div",{className:"flex items-center justify-between px-3 py-2 border-b border-spur-border bg-base-300/60 shrink-0",children:l.jsxs("span",{className:"text-xs font-semibold text-spur-text flex items-center gap-1.5",children:[l.jsx("span",{children:"🌳"})," Feature Tree"]})}),l.jsx("div",{className:"flex-1 overflow-y-auto p-1",children:e.length===0?l.jsx("div",{className:"p-3 text-xs text-spur-text-muted italic",children:"No features found."}):A.length===0?l.jsxs("div",{className:"p-3 text-xs text-spur-text-muted italic",children:['No features match status filter "',i,'".']}):l.jsx(Kz,{features:A,selectedId:n,onSelect:r})})]}),l.jsx("div",{className:"w-full h-full overflow-hidden rounded-lg border border-spur-border bg-base-100 relative","data-testid":"detail-workspace",children:l.jsx("div",{className:"w-full h-full overflow-y-auto",children:n?l.jsx(Yz,{featureId:n,refreshKey:b,onClose:()=>r(null),childFeatures:S,onSelectFeature:r,metadataDockRef:y}):l.jsx("div",{className:"flex items-center justify-center h-full text-sm text-spur-text-muted italic",children:"Select a feature to view details"})})})]})]})}),l.jsx(tw,{open:a,parentId:"",onClose:()=>s(!1),onCreated:N}),l.jsx(Xz,{})]})}const tH={id:"features",name:"Feature Board",icon:"🏷️",route:"features",component:eH,sidebarLabel:"Features"},nH=Object.freeze(Object.defineProperty({__proto__:null,module:tH},Symbol.toStringTag,{value:"Module"})),us=({id:e})=>{const t={width:16,height:16,viewBox:"0 0 24 24",role:"img","aria-label":`${e} icon`};switch(e){case"claude":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"Claude Code icon"}),l.jsx("path",{d:"M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M5.3 18.7l13.4-13.4"})]});case"codex":return l.jsxs("svg",{...t,fill:"currentColor",children:[l.jsx("title",{children:"Codex icon"}),l.jsx("path",{d:"M21.5 9.8a5.5 5.5 0 0 0-.5-4.2 5.6 5.6 0 0 0-4.6-2.8 5.6 5.6 0 0 0-4.2 1.4A5.5 5.5 0 0 0 7.8 3a5.6 5.6 0 0 0-4.5 3.3 5.5 5.5 0 0 0 .7 4.2 5.5 5.5 0 0 0-.7 4.2 5.6 5.6 0 0 0 4.5 3.3c.3.7.8 1.3 1.4 1.8a5.6 5.6 0 0 0 6.8-.4 5.5 5.5 0 0 0 4.4-1.4 5.6 5.6 0 0 0 1.4-4.2 5.5 5.5 0 0 0-.5-4.2zm-8.5 11.2a3.7 3.7 0 0 1-2.4-.9l2.7-1.6a1 1 0 0 0 .5-.9v-3.7l3.1 1.8v3.6a3.7 3.7 0 0 1-3.9 1.7zm-7.6-3.8a3.7 3.7 0 0 1-.4-2.5l2.7 1.6a1 1 0 0 0 1 0l3.2-1.8v3.6L6.8 20a3.7 3.7 0 0 1-1.4-2.8zm-1.3-8.3a3.7 3.7 0 0 1 2-1.6v3.2a1 1 0 0 0 .5.9l3.2 1.8-3.1 1.8-3.1-1.8a3.7 3.7 0 0 1 .5-4.3zm12.6 1.8l-3.2-1.8 3.1-1.8 3.1 1.8a3.7 3.7 0 0 1-.5 4.3 3.7 3.7 0 0 1-2 1.6v-3.2a1 1 0 0 0-.5-.9zm2.2 4.5l-2.7-1.6a1 1 0 0 0-1 0l-3.2 1.8V11.8l3.1-1.8 3.1 1.8a3.7 3.7 0 0 1 .7 4.4zm-7-1.3l-2.7-1.6 2.7-1.6 2.7 1.6-2.7 1.6z"})]});case"agy":return l.jsxs("svg",{...t,fill:"currentColor",children:[l.jsx("title",{children:"Antigravity CLI icon"}),l.jsx("path",{d:"M12 1.5C12 7.3 7.3 12 1.5 12c5.8 0 10.5 4.7 10.5 10.5 0-5.8 4.7-10.5 10.5-10.5-5.8 0-10.5-4.7-10.5-10.5z"})]});case"omp":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"OMP icon"}),l.jsx("circle",{cx:"12",cy:"12",r:"9"}),l.jsx("path",{d:"M10 8.5l5 3.5-5 3.5z"})]});case"openclaw":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"OpenClaw icon"}),l.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 3.8 2.1 7.1 5.2 8.8L6 22l3.8-1.2C10.5 21.5 11.2 22 12 22c5.5 0 10-4.5 10-10S17.5 2 12 2zM8 11.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zm5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0z"})]});case"hermes":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:[l.jsx("title",{children:"Hermes icon"}),l.jsx("path",{d:"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"})]});case"grok":return l.jsxs("svg",{...t,fill:"currentColor",children:[l.jsx("title",{children:"Grok Build icon"}),l.jsx("path",{d:"M18.2 3H21l-6.5 7.4L22 21h-5.8l-4.5-5.9L6.5 21H3.6l6.9-7.9L3 3h5.9l4.1 5.4L18.2 3zm-1 16.3h1.5L8.7 4.6H7.1l10.1 14.7z"})]});case"opencode":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"OpenCode icon"}),l.jsx("polyline",{points:"16 18 22 12 16 6"}),l.jsx("polyline",{points:"8 6 2 12 8 18"})]});case"pi":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[l.jsx("title",{children:"Pi icon"}),l.jsx("path",{d:"M4 6h16M9 6v13M15 6v11a2 2 0 0 0 2 2"})]});default:return null}},rH=new Set(["claude","codex","agy","omp","openclaw","hermes","grok","opencode","pi"]),aH=(e,t)=>e.includes(t)?e.filter(n=>n!==t):[...e,t],Io=({label:e,unconstrainedLabel:t,options:n,selected:r,onChange:a,open:s,onOpenChange:i,showIcon:o=!1})=>{const u=g.useRef(null),[c,p]=g.useState("");g.useEffect(()=>{if(!s)return;const x=y=>{u.current&&!u.current.contains(y.target)&&i(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,i]);const d=c.trim().toLowerCase(),f=d?n.filter(x=>x.label.toLowerCase().includes(d)||x.id.toLowerCase().includes(d)):n,m=x=>a(x.length>0?x:void 0),b=x=>{if(x.key==="Escape"){x.stopPropagation(),i(!1);return}if(x.key!=="ArrowDown"&&x.key!=="ArrowUp")return;x.preventDefault();const y=Array.from(u.current?.querySelectorAll('input[type="checkbox"]')??[]);if(y.length===0)return;const v=y.indexOf(document.activeElement);(x.key==="ArrowDown"?y[(v+1+y.length)%y.length]:y[(v-1+y.length)%y.length])?.focus()},E=r.length===0?t:`${r.length} selected`;return l.jsxs("div",{ref:u,className:"relative",children:[l.jsxs("button",{type:"button","aria-haspopup":"dialog","aria-expanded":s,className:"px-2.5 py-1 text-xs rounded border border-base-content/20 hover:bg-base-content/10 font-medium text-base-content",onClick:()=>i(!s),children:[e,": ",E]}),s&&l.jsxs("div",{role:"dialog","aria-label":`Filter by ${e}`,onKeyDown:b,className:"absolute left-0 mt-1 z-20 p-2 shadow-lg bg-base-300 rounded-lg border border-base-content/10 w-60 text-xs flex flex-col gap-1.5",children:[l.jsx("input",{type:"search","aria-label":`Search ${e}`,value:c,onChange:x=>p(x.target.value),placeholder:"Search…",className:"px-2 py-1 rounded border border-base-content/20 bg-base-100 text-base-content focus:outline-none focus:border-primary"}),l.jsxs("div",{className:"flex items-center justify-between gap-2 text-[10px]",children:[l.jsx("button",{type:"button",className:"text-primary hover:underline cursor-pointer",onClick:()=>m(f.map(x=>x.id)),children:"Select all"}),l.jsx("button",{type:"button",className:"text-error/80 hover:text-error underline cursor-pointer",onClick:()=>a(void 0),children:"Clear all"})]}),l.jsxs("div",{className:"flex flex-col gap-0.5 max-h-56 overflow-y-auto",children:[f.map(x=>l.jsxs("label",{className:"flex items-center gap-2 cursor-pointer py-1 px-1.5 hover:bg-base-200 rounded",children:[o&&l.jsx("span",{className:"w-3.5 inline-flex items-center justify-center shrink-0",children:rH.has(x.id)?l.jsx(us,{id:x.id}):l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:x.color??"#5e6ad2"}})}),l.jsx("span",{className:"font-mono text-[11px] flex-1 truncate",children:x.label}),l.jsx("input",{type:"checkbox",className:"h-3.5 w-3.5 rounded border-base-content/30 text-primary",checked:r.includes(x.id),onChange:()=>m(aH(r,x.id))})]},x.id)),f.length===0&&l.jsx("span",{className:"text-base-content/50 px-1.5 py-1",children:"No matches"})]})]})]})},sH=({filter:e,onChange:t,sourceOptions:n=[],modelOptions:r=[],toolOptions:a=[],skillOptions:s=[],scope:i})=>{const[o,u]=g.useState(null),c=f=>{t({...e,range:f})},p=(f,m)=>{const E=(e[f]||[]).filter(x=>x!==m);t({...e,[f]:E.length>0?E:void 0})},d=(f,m)=>{t({...e,[f]:m})};return l.jsxs("div",{className:"flex flex-col gap-2.5 p-3.5 bg-base-200/50 rounded-xl border border-base-content/10 mb-4",children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[l.jsxs("div",{className:"flex items-center gap-1.5 bg-base-300 p-1 rounded-lg",children:[["1h","4h","24h","7d","30d","all"].map(f=>l.jsx("button",{type:"button",className:`px-2.5 py-1 text-xs rounded font-medium transition-colors ${e.range===f?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>c(f),children:f.toUpperCase()},f)),l.jsx("button",{type:"button",className:`px-2.5 py-1 text-xs rounded font-medium transition-colors ${e.range==="custom"?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>c("custom"),children:"Custom"})]}),i&&l.jsxs("div",{className:"flex items-center gap-2 text-xs text-base-content/70 font-mono","data-testid":"history-filter-scope",children:[l.jsx("span",{children:i.rangeLabel}),l.jsx("span",{"aria-hidden":"true",children:"·"}),l.jsx("span",{children:i.sessionCount===void 0?"… sessions":i.sessionCount===null?"— sessions":`${i.sessionCount} sessions`}),i.sourceCount!==void 0&&l.jsxs(l.Fragment,{children:[l.jsx("span",{"aria-hidden":"true",children:"·"}),l.jsx("span",{children:e.sources?.length?`${e.sources.length} sources selected`:`${i.sourceCount} sources available`})]})]})]}),e.range==="custom"&&l.jsxs("div",{className:"flex items-center gap-3 pt-1",children:[l.jsxs("label",{className:"text-xs text-base-content/70 flex items-center gap-1",children:["From:",l.jsx("input",{type:"datetime-local",className:"px-2 py-1 text-xs rounded border border-base-content/20 bg-base-300 text-base-content",value:e.from?e.from.slice(0,16):"",onChange:f=>t({...e,from:f.target.value?new Date(f.target.value).toISOString():void 0})})]}),l.jsxs("label",{className:"text-xs text-base-content/70 flex items-center gap-1",children:["To:",l.jsx("input",{type:"datetime-local",className:"px-2 py-1 text-xs rounded border border-base-content/20 bg-base-300 text-base-content",value:e.to?e.to.slice(0,16):"",onChange:f=>t({...e,to:f.target.value?new Date(f.target.value).toISOString():void 0})})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-1 border-t border-base-content/10",children:[l.jsx(Io,{label:"Agents",unconstrainedLabel:"All",options:n,selected:e.sources??[],onChange:f=>d("sources",f),open:o==="sources",onOpenChange:f=>u(f?"sources":null),showIcon:!0}),l.jsx(Io,{label:"Models",unconstrainedLabel:"Any",options:r,selected:e.models??[],onChange:f=>d("models",f),open:o==="models",onOpenChange:f=>u(f?"models":null)}),l.jsx(Io,{label:"Tools",unconstrainedLabel:"Any",options:a,selected:e.tools??[],onChange:f=>d("tools",f),open:o==="tools",onOpenChange:f=>u(f?"tools":null)}),l.jsx(Io,{label:"Skills",unconstrainedLabel:"Any",options:s,selected:e.skills??[],onChange:f=>d("skills",f),open:o==="skills",onOpenChange:f=>u(f?"skills":null)}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 ml-auto",children:[e.sources?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content gap-1",children:[l.jsx("span",{className:"capitalize",children:f}),l.jsx("button",{type:"button",onClick:()=>p("sources",f),className:"hover:text-error",children:"×"})]},f)),e.models?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content font-mono text-[10px] gap-1",children:[l.jsx("span",{children:f}),l.jsx("button",{type:"button",onClick:()=>p("models",f),className:"hover:text-error",children:"×"})]},f)),e.tools?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content font-mono text-[10px] gap-1",children:[l.jsx("span",{children:f}),l.jsx("button",{type:"button",onClick:()=>p("tools",f),className:"hover:text-error",children:"×"})]},f)),e.skills?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content font-mono text-[10px] gap-1",children:[l.jsx("span",{children:f}),l.jsx("button",{type:"button",onClick:()=>p("skills",f),className:"hover:text-error",children:"×"})]},f)),((e.sources?.length??0)>0||(e.models?.length??0)>0||(e.tools?.length??0)>0||(e.skills?.length??0)>0)&&l.jsx("button",{type:"button",className:"text-xs text-error/80 hover:text-error underline ml-1 cursor-pointer",onClick:()=>t({range:e.range,bucket:e.bucket}),children:"Clear all"})]})]})]})};function Je(e){if(!Number.isFinite(e)||e===0)return"0";const t=Math.abs(e);return t>=1e6?`${(e/1e6).toFixed(1)}M`:t>=1e3?`${(e/1e3).toFixed(1)}K`:Math.round(e).toLocaleString()}function lw(e){return e===0?"0":Math.abs(e)>=1e6?`${Math.round(e/1e6)}M`:Math.abs(e)>=1e3?`${Math.round(e/1e3)}K`:Math.round(e).toString()}function mn(e){return Math.round(e).toLocaleString()}function Qr(e,t=1){return`${e.toFixed(t)}%`}function uw(e){if(e<1)return"<1m";if(e<60)return`${Math.round(e)}m`;const t=Math.floor(e/60);return`${t}h ${Math.round(e-t*60)}m`}function Ad(e){return e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/6e4)}m ${Math.round(e%6e4/1e3)}s`}function _d(e,t=4){if(e<=0)return[0,1];const n=e/t,r=10**Math.floor(Math.log10(n)),a=n/r,s=(a<=1?1:a<=2?2:a<=2.5?2.5:a<=5?5:10)*r,i=[];for(let u=0;u<=e*1.0001+s/2;u+=s)i.push(u);const o=i[i.length-1];return o!==void 0&&o<e&&i.push(o+s),i}const iH=({buckets:e,series:t,lineColor:n="#22d3ee",height:r=260})=>{const a=g.useRef(null),[s,i]=g.useState(1e3),[o,u]=g.useState(null);g.useEffect(()=>{if(!a.current)return;const $=a.current;(()=>{const se=$.clientWidth;se>0&&i(se)})();const me=new ResizeObserver(se=>{for(const xe of se){const O=Math.round(xe.contentRect.width);O>0&&i(O)}});return me.observe($),()=>me.disconnect()},[]);const c=s,p=54,d=50,f=16,m=26,b=Math.max(60,c-p-d),E=r-f-m,x=e.map($=>t.reduce((ee,me)=>ee+($.v[me.id]||0),0)),y=Math.max(1,...x),v=_d(y,4),T=v[v.length-1]||y,N=$=>f+E-$/T*E,D=$=>f+E-Math.max(0,Math.min(100,$))/100*E,A=b/Math.max(1,e.length),S=Math.max(2,A*.85),w=$=>p+$*A+A/2,R=Math.max(2,Math.floor(b/70)),C=Math.max(1,Math.ceil(e.length/R)),U=e.map(($,ee)=>$.lineValue!==void 0?{x:w(ee),y:D($.lineValue)}:null).filter($=>$!==null),k=U.length>1?U.map(($,ee)=>`${ee===0?"M":"L"}${$.x.toFixed(1)},${$.y.toFixed(1)}`).join(" "):"",j=$=>{const ee=$.currentTarget.getBoundingClientRect();if(ee.width<=0)return;const se=($.clientX-ee.left)/ee.width*c-p;if(se>=0&&se<=b){const xe=Math.floor(se/A);if(xe>=0&&xe<e.length){u(xe);return}}u(null)},W=o!==null?Math.max(110,Math.min(c-110,w(o))):c/2;return l.jsxs("div",{ref:a,className:"relative w-full overflow-hidden",children:[l.jsxs("svg",{viewBox:`0 0 ${c} ${r}`,width:"100%",height:r,className:"w-full block select-none",role:"img","aria-label":"Stacked column token chart with cache hit ratio overlay",onMouseMove:j,onMouseLeave:()=>u(null),children:[v.map($=>l.jsxs("g",{children:[l.jsx("line",{x1:p,x2:p+b,y1:N($),y2:N($),stroke:"currentColor",strokeOpacity:.1}),l.jsx("text",{x:p-8,y:N($)+3.5,textAnchor:"end",className:"text-[10px] fill-base-content/60",children:lw($)})]},$)),[0,25,50,75,100].map($=>l.jsxs("text",{x:p+b+8,y:D($)+3.5,textAnchor:"start",fill:n,className:"text-[10px] opacity-80",children:[$,"%"]},$)),o!==null&&l.jsx("rect",{x:p+o*A,y:f,width:A,height:E,fill:"currentColor",fillOpacity:.04,rx:2}),e.map(($,ee)=>{const me=p+ee*A+(A-S)/2;let se=0;return l.jsxs("g",{opacity:o===null||o===ee?1:.45,children:[t.slice().reverse().map(xe=>{const O=$.v[xe.id]||0;if(O<=0)return null;const te=N(se+O),le=N(se)-te,L=Math.max(1,le);return se+=O,l.jsx("rect",{x:me,y:te,width:S,height:L,fill:xe.color,rx:1},xe.id)}),ee%C===0&&l.jsx("text",{x:w(ee),y:r-6,textAnchor:"middle",className:"text-[10px] fill-base-content/60",children:$.label})]},$.id??`${$.label}-${ee}`)}),k&&l.jsxs(l.Fragment,{children:[l.jsx("path",{d:k,fill:"none",stroke:"currentColor",strokeWidth:4,strokeOpacity:.2,strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:k,fill:"none",stroke:n,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),o!==null&&e[o]?.lineValue!==void 0&&l.jsx("circle",{cx:w(o),cy:D(e[o]?.lineValue??0),r:4.5,fill:n,stroke:"#1f2937",strokeWidth:2})]}),o!==null&&e[o]&&l.jsxs("div",{className:"absolute top-2 bg-base-300 border border-base-content/15 shadow-xl rounded-lg px-3 py-2 text-xs pointer-events-none z-20 flex flex-col gap-1 min-w-[180px] backdrop-blur-sm",style:{left:`${W}px`,transform:"translateX(-50%)"},children:[l.jsx("div",{className:"font-semibold text-base-content/90 border-b border-base-content/10 pb-1",children:(e[o]?.id??e[o]?.label??"").slice(0,16).replace("T"," ")}),t.filter($=>(e[o]?.v[$.id]??0)>0).map($=>l.jsxs("div",{className:"flex justify-between items-center gap-2",children:[l.jsxs("span",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{background:$.color}}),$.label]}),l.jsx("span",{className:"font-mono",children:Je(e[o]?.v[$.id]??0)})]},$.id)),l.jsxs("div",{className:"flex justify-between items-center font-bold pt-1 border-t border-base-content/10",children:[l.jsx("span",{children:"Total"}),l.jsx("span",{className:"font-mono",children:Je(x[o]??0)})]}),e[o]?.lineValue!==void 0&&l.jsxs("div",{className:"flex justify-between items-center text-cyan-400",children:[l.jsx("span",{children:"Cache Hit Ratio"}),l.jsxs("span",{className:"font-mono",children:[e[o]?.lineValue,"%"]})]})]})]})},oH=({buckets:e,series:t,height:n=200})=>{const r=g.useRef(null),[a,s]=g.useState(540);g.useEffect(()=>{if(!r.current)return;const N=r.current;(()=>{const S=N.clientWidth;S>0&&s(S)})();const A=new ResizeObserver(S=>{for(const w of S){const R=Math.round(w.contentRect.width);R>0&&s(R)}});return A.observe(N),()=>A.disconnect()},[]);const i=a,o=46,u=12,c=10,p=24,d=Math.max(60,i-o-u),f=n-c-p,m=e.length,b=e.map(N=>t.reduce((D,A)=>D+(N.v[A.id]||0),0)),E=_d(Math.max(1,...b),3).pop()||1,x=N=>o+(m<=1?d/2:N/(m-1)*d),y=N=>c+f-N/E*f,v=new Array(m).fill(0),T=t.map(N=>{const D=v.slice(),A=v.map((w,R)=>w+(e[R]?.v[N.id]||0));let S=`M${x(0)},${y(A[0]||0)}`;for(let w=1;w<m;w++)S+=`L${x(w)},${y(A[w]||0)}`;for(let w=m-1;w>=0;w--)S+=`L${x(w)},${y(D[w]||0)}`;S+="Z";for(let w=0;w<m;w++)v[w]=A[w]||0;return{id:N.id,color:N.color,d:S}});return l.jsx("div",{ref:r,className:"w-full overflow-hidden",children:l.jsxs("svg",{viewBox:`0 0 ${i} ${n}`,width:"100%",height:n,className:"w-full block select-none",role:"img","aria-label":"Stacked area chart",children:[_d(E,3).map(N=>l.jsxs("g",{children:[l.jsx("line",{x1:o,x2:o+d,y1:y(N),y2:y(N),stroke:"currentColor",strokeOpacity:.1}),l.jsx("text",{x:o-7,y:y(N)+3.5,textAnchor:"end",className:"text-[10px] fill-base-content/60",children:lw(N)})]},N)),T.map(N=>l.jsx("path",{d:N.d,fill:N.color,opacity:.8},N.id)),e.map((N,D)=>D%Math.ceil(m/6)===0?l.jsx("text",{x:x(D),y:n-6,textAnchor:"middle",className:"text-[10px] fill-base-content/60",children:N.label},N.id??N.label):null)]})})},lH=({points:e,color:t="#3987e5",height:n=190,valueFmt:r=Qr})=>{const a=g.useRef(null),[s,i]=g.useState(540);g.useEffect(()=>{if(!a.current)return;const N=a.current;(()=>{const S=N.clientWidth;S>0&&i(S)})();const A=new ResizeObserver(S=>{for(const w of S){const R=Math.round(w.contentRect.width);R>0&&i(R)}});return A.observe(N),()=>A.disconnect()},[]);const o=s,u=44,c=12,p=14,d=24,f=Math.max(60,o-u-c),m=n-p-d,b=e.length,E=100,x=0,y=N=>u+(b<=1?f/2:N/(b-1)*f),v=N=>p+m-(N-x)/(E-x)*m;let T=`M${y(0)},${v(e[0]?.v??0)}`;for(let N=1;N<b;N++)T+=`L${y(N)},${v(e[N]?.v??0)}`;return l.jsx("div",{ref:a,className:"w-full overflow-hidden",children:l.jsxs("svg",{viewBox:`0 0 ${o} ${n}`,width:"100%",height:n,className:"w-full block select-none",role:"img","aria-label":"Line chart",children:[[0,25,50,75,100].map(N=>l.jsxs("g",{children:[l.jsx("line",{x1:u,x2:u+f,y1:v(N),y2:v(N),stroke:"currentColor",strokeOpacity:.1}),l.jsxs("text",{x:u-7,y:v(N)+3.5,textAnchor:"end",className:"text-[10px] fill-base-content/60",children:[N,"%"]})]},N)),l.jsx("path",{d:`${T}L${y(b-1)},${p+m}L${y(0)},${p+m}Z`,fill:t,opacity:.1}),l.jsx("path",{d:T,fill:"none",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),e.map((N,D)=>D%Math.ceil(b/6)===0||D===b-1?l.jsx("text",{x:y(D),y:n-6,textAnchor:"middle",className:"text-[10px] fill-base-content/60",children:N.label},N.id??N.label):null)]})})},uH=({axes:e,series:t,height:n=260})=>{const s=n/2+4,i=Math.min(520/2-78,n/2-44),o=e.length,u=p=>-Math.PI/2+p/o*Math.PI*2,c=(p,d)=>[260+Math.cos(u(p))*i*d,s+Math.sin(u(p))*i*d];return l.jsxs("svg",{viewBox:`0 0 520 ${n}`,className:"w-full h-auto select-none",role:"img","aria-label":"Radar chart",children:[[.25,.5,.75,1].map(p=>{const d=`${e.map((f,m)=>{const[b,E]=c(m,p);return`${m===0?"M":"L"}${b?.toFixed(1)},${E?.toFixed(1)}`}).join(" ")}Z`;return l.jsx("path",{d,fill:"none",stroke:"currentColor",strokeOpacity:.15},p)}),e.map((p,d)=>{const[f,m]=c(d,1),[b,E]=c(d,1.2);return l.jsxs("g",{children:[l.jsx("line",{x1:260,y1:s,x2:f,y2:m,stroke:"currentColor",strokeOpacity:.2}),l.jsx("text",{x:b,y:(E??0)+3.5,textAnchor:Math.abs((b??0)-260)<6?"middle":(b??0)>260?"start":"end",className:"text-[11px] font-semibold fill-base-content/80",children:p})]},p)}),t.map(p=>{const d=`${p.values.map((f,m)=>{const[b,E]=c(m,Math.max(.04,f/100));return`${m===0?"M":"L"}${b?.toFixed(1)},${E?.toFixed(1)}`}).join(" ")}Z`;return l.jsxs("g",{children:[l.jsx("path",{d,fill:p.color,opacity:.15}),l.jsx("path",{d,fill:"none",stroke:p.color,strokeWidth:2,strokeLinejoin:"round"}),p.values.map((f,m)=>{const[b,E]=c(m,Math.max(.04,f/100));return l.jsx("circle",{cx:b,cy:E,r:3.5,fill:p.color,stroke:"#1f2937",strokeWidth:1.5},`${p.label}-${e[m]}`)})]},p.label)})]})},ry=[0,.3,.5,.75,1],kc=(e,t)=>e.reduce((n,r)=>Math.max(n,r[t]),0),cH=(e,t)=>{if(e<=0||t<=0)return 0;const n=e/t;return n<=.25?1:n<=.5?2:n<=.75?3:4},dH=({days:e,color:t="#3987e5",maxDailyTokens:n})=>{const[r,a]=g.useState(null),s=n??kc(e,"tokens"),i=s<=0&&kc(e,"sessions")>0,o=i?kc(e,"sessions"):s,u=[...e].sort((d,f)=>d.date.localeCompare(f.date)),c=[];for(let d=0;d<u.length;d+=7)c.push(u.slice(d,d+7));const p=d=>{const f=c[d]?.[0];if(!f)return"";const m=new Date(`${f.date}T00:00:00Z`).toLocaleString("en-US",{month:"short",timeZone:"UTC"});if(d===0)return m;const b=c[d-1]?.[0];return b&&b.date.slice(0,7)===f.date.slice(0,7)?"":m};return l.jsxs("section",{className:"relative flex flex-col gap-1.5 w-full","data-testid":"heatmap-calendar","aria-label":"Daily activity heatmap",onMouseLeave:()=>a(null),children:[r&&l.jsxs("div",{className:"absolute -top-1 pointer-events-none z-30 transform -translate-x-1/2 -translate-y-full flex flex-col items-center min-w-[140px] transition-all duration-75",style:{left:`${Math.max(20,Math.min(80,(r.colIdx+.5)/13*100))}%`},children:[l.jsxs("div",{className:"bg-base-100 border border-base-content/20 shadow-xl rounded-md px-2.5 py-1.5 text-[10px] font-mono text-center text-base-content backdrop-blur-md",children:[l.jsx("div",{className:"font-bold text-primary",children:r.date}),l.jsxs("div",{className:"text-base-content/90 font-medium",children:[l.jsx("span",{className:"text-base-content font-bold",children:Je(r.tokens)})," tokens"]}),l.jsxs("div",{className:"text-base-content/60 text-[9px]",children:[r.sessions," ",r.sessions===1?"session":"sessions"]})]}),l.jsx("div",{className:"w-1.5 h-1.5 bg-base-100 border-r border-b border-base-content/20 transform rotate-45 -mt-0.5"})]}),l.jsxs("div",{className:"flex items-start gap-1 w-full",children:[l.jsx("div",{className:"w-5 shrink-0 pt-3 flex flex-col gap-[3px] text-[9px] font-mono text-base-content/50 select-none","aria-hidden":"true",children:["Mon","","Wed","","Fri","",""].map((d,f)=>l.jsx("div",{className:"w-full aspect-square flex items-center justify-end pr-1 leading-none",children:d},d||`weekday-${f}`))}),l.jsx("div",{className:"flex-1 w-full",style:{display:"grid",gridTemplateColumns:"repeat(13, minmax(0, 1fr))",gap:"3px"},children:c.map((d,f)=>{const m=d[0];return l.jsxs("div",{className:"flex flex-col gap-[3px]","data-testid":"heatmap-week",children:[l.jsx("div",{className:"h-3 text-[9px] leading-3 text-base-content/50 truncate font-mono",children:p(f)}),l.jsx("div",{className:"flex flex-col gap-[3px]",children:d.map(b=>{const E=cH(i?b.sessions:b.tokens,o);return l.jsx("button",{type:"button",className:"w-full aspect-square rounded-[2px] p-0 border-0 transition-transform hover:scale-125 focus:scale-125 focus:outline-hidden cursor-pointer",style:E===0?{backgroundColor:"currentColor",opacity:.08}:{backgroundColor:t,opacity:ry[E]},onMouseEnter:()=>a({...b,colIdx:f}),onFocus:()=>a({...b,colIdx:f}),onBlur:()=>a(null),title:`${b.date}: ${Je(b.tokens)} tokens (${b.sessions} sessions)`,children:l.jsx("span",{className:"sr-only",children:`${b.date}: ${Je(b.tokens)} tokens, ${b.sessions} sessions`})},b.date)})})]},m?.date??`week-${f}`)})})]}),l.jsx("div",{className:"flex items-center justify-end gap-1.5 pt-0.5",children:l.jsxs("div",{className:"flex items-center gap-1 text-[9px] font-mono text-base-content/50",children:[l.jsx("span",{children:"Less"}),ry.map(d=>l.jsx("span",{className:"w-2.5 h-2.5 rounded-[2px] inline-block",style:d===0?{backgroundColor:"currentColor",opacity:.08}:{backgroundColor:t,opacity:d}},d)),l.jsx("span",{children:"More"})]})})]})},Cd=({value:e,max:t,color:n="#3987e5",height:r=6})=>{const a=Math.max(0,Math.min(100,t>0?e/t*100:0));return l.jsx("div",{className:"w-full bg-base-300 rounded-full overflow-hidden",style:{height:r},children:l.jsx("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${a}%`,backgroundColor:n}})})},pH=({values:e,color:t="#3987e5",width:n=120,height:r=36})=>{const a=Math.max(...e,1),s=Math.min(...e,0),i=a-s||1,o=e.length,u=d=>o<=1?n/2:d/(o-1)*(n-4)+2,c=d=>r-3-(d-s)/i*(r-6);let p="";if(o>0){p=`M${u(0)},${c(e[0]??0)}`;for(let d=1;d<o;d++)p+=`L${u(d)},${c(e[d]??0)}`}return l.jsxs("svg",{viewBox:`0 0 ${n} ${r}`,className:"inline-block select-none overflow-visible",style:{width:n,height:r},role:"img","aria-label":"Trend sparkline",children:[o>1&&l.jsx("path",{d:p,fill:"none",stroke:t,strokeWidth:1.5,strokeLinecap:"round"}),o===1&&l.jsx("circle",{cx:u(0),cy:c(e[0]??0),r:2,fill:t})]})},cw=({data:e,loading:t,error:n,cacheHitTrend:r,onSelectSession:a})=>{const[s,i]=g.useState("model"),[o,u]=g.useState("asc");if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load insights: ",n]})});if(!e)return null;const{loops:c,cacheWaste:p,heavySessions:d,largestTokenSteps:f,slowSteps:m,modelComparison:b}=e,E=k=>{s===k?u(j=>j==="asc"?"desc":"asc"):(i(k),u(k==="model"?"asc":"desc"))},x=[...b].sort((k,j)=>{const W=o==="asc"?1:-1;return s==="model"?W*k.model.localeCompare(j.model):W*((k[s]??0)-(j[s]??0))}),y=k=>s!==k?l.jsx("span",{className:"opacity-30 ml-1 text-[10px]",children:"↕"}):l.jsx("span",{className:"text-primary ml-1 text-[10px]",children:o==="asc"?"▲":"▼"}),v=Math.max(1,...d.map(k=>k.tokens)),T=Math.max(1,...m.map(k=>k.durationMs??0)),N=["Speed","Cache Ratio","Reliability","Output Ratio"],D={"claude-opus-4.6":"#3987e5","claude-sonnet-4.6":"#199e70","gpt-5.6-sol":"#9085e9","grok-4.6":"#d95926",other:"#898781"},A=b.map(k=>k.speedMsMean),S=Math.min(...A),w=Math.max(...A),R=k=>w===S?100:Math.max(0,Math.min(100,Math.round((w-k)/(w-S)*100))),C=k=>Math.max(0,Math.min(100,Math.round(k*100))),U=b.map(k=>{const j=R(k.speedMsMean),W=C(k.cacheRatio),$=C(k.reliability),ee=C(k.outputRatio*5);return{label:k.model,color:D[k.model]??"#3987e5",values:[j,W,$,ee]}});return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Top Cache-Wasting Incidents"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Steps that re-sent full context without cache hits"}),l.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3 items-start",children:[(r?.length??0)>1&&l.jsx("div",{"data-testid":"cache-hit-trend-chart",children:l.jsx(lH,{points:(r??[]).map(k=>({id:k.day,label:k.day.slice(5),v:k.cacheHitRatio})),color:"#22d3ee",height:140})}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Session"}),l.jsx("th",{className:"py-1.5",children:"Fresh Tokens"}),l.jsx("th",{className:"py-1.5",children:"Cause"})]})}),l.jsx("tbody",{children:p.map(k=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsx("td",{className:"py-1.5",children:l.jsx("button",{type:"button",className:"text-primary hover:underline",onClick:()=>a?.(k.sessionId),children:k.sessionId})}),l.jsx("td",{className:"py-1.5 text-error font-bold",children:Je(k.freshTokens)}),l.jsx("td",{className:"py-1.5 text-base-content/70",children:k.reason})]},`${k.sessionId}-${k.freshTokens}-${k.timestamp}`))})]})})]})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Heaviest Token Sessions"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Sessions consuming highest billed volume"}),l.jsx("div",{className:"flex flex-col gap-3",children:d.map(k=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex justify-between text-xs font-mono",children:[l.jsxs("button",{type:"button",className:"text-primary hover:underline font-bold",onClick:()=>a?.(k.id,k.source),children:[k.id," (",k.source," · ",k.model,")"]}),l.jsx("span",{children:Je(k.tokens)})]}),l.jsx(Cd,{value:k.tokens,max:v,color:"#3987e5",height:6})]},k.id))})]})]}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Top Time-Consuming Steps"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Longest tool execution durations"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Tool / Step"}),l.jsx("th",{className:"py-1.5",children:"Session"}),l.jsx("th",{className:"py-1.5 text-right",children:"Duration"}),l.jsx("th",{className:"py-1.5 text-right",children:"Tokens"})]})}),l.jsx("tbody",{children:m.map(k=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsxs("td",{className:"py-1.5 font-bold",children:[k.toolName," ",l.jsxs("span",{className:"text-[10px] text-base-content/50",children:["#",k.stepIndex]})]}),l.jsx("td",{className:"py-1.5",children:l.jsx("button",{type:"button",className:"text-primary hover:underline",onClick:()=>a?.(k.sessionId,k.agent),children:k.sessionId})}),l.jsx("td",{className:"py-1.5 text-right text-amber-400 font-bold w-24",children:l.jsxs("div",{className:"flex flex-col items-end gap-1",children:[l.jsx("span",{children:Ad(k.durationMs??0)}),l.jsx(Cd,{value:k.durationMs??0,max:T,color:"#fbbf24",height:4})]})}),l.jsx("td",{className:"py-1.5 text-right",children:Je(k.tokens)})]},`${k.sessionId}-${k.toolName}-${k.stepIndex}`))})]})})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Largest Token Steps"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Single tool calls with highest token load"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Tool / Step"}),l.jsx("th",{className:"py-1.5",children:"Session"}),l.jsx("th",{className:"py-1.5",children:"Agent / Model"}),l.jsx("th",{className:"py-1.5 text-right",children:"Tokens"})]})}),l.jsx("tbody",{children:f.map(k=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsxs("td",{className:"py-1.5 font-bold",children:[k.toolName," ",l.jsxs("span",{className:"text-[10px] text-base-content/50",children:["#",k.stepIndex]})]}),l.jsx("td",{className:"py-1.5",children:l.jsx("button",{type:"button",className:"text-primary hover:underline",onClick:()=>a?.(k.sessionId,k.agent),children:k.sessionId})}),l.jsxs("td",{className:"py-1.5 text-xs text-base-content/70",children:[k.agent," · ",k.model]}),l.jsx("td",{className:"py-1.5 text-right text-primary font-bold",children:Je(k.tokens)})]},`${k.sessionId}-${k.toolName}-${k.stepIndex}`))})]})})]})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Model Multi-Axis Comparison"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-4",children:"Speed, Cache ratio, Reliability, and Output ratio"}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[l.jsx("div",{className:"flex justify-center",children:l.jsx(uH,{axes:N,series:U,height:280})}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsxs("th",{className:"py-1.5 cursor-pointer select-none hover:text-base-content",onClick:()=>E("model"),children:["Model ",y("model")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("speedMsMean"),children:["Mean Speed (ms) ",y("speedMsMean")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("cacheRatio"),children:["Cache Ratio ",y("cacheRatio")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("reliability"),children:["Reliability ",y("reliability")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("outputRatio"),children:["Output Ratio ",y("outputRatio")]})]})}),l.jsx("tbody",{children:x.map(k=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsxs("td",{className:"py-1.5 font-bold flex items-center gap-1.5",children:[l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:D[k.model]??"#3987e5"}}),k.model]}),l.jsx("td",{className:"py-1.5 text-right font-mono",children:mn(k.speedMsMean)}),l.jsx("td",{className:"py-1.5 text-right text-cyan-400 font-mono",children:Qr(k.cacheRatio*100)}),l.jsx("td",{className:"py-1.5 text-right text-emerald-400 font-mono",children:Qr(k.reliability*100)}),l.jsx("td",{className:"py-1.5 text-right font-mono",children:Qr(k.outputRatio*100)})]},k.model))})]})})]})]}),c.length>0&&l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-warning/30 p-5",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[l.jsx("span",{className:"text-warning text-lg",children:"⚠️"}),l.jsx("h3",{className:"font-bold text-base",children:"Detected Execution Loops (Repeats ≥ 3)"})]}),l.jsx("p",{className:"text-xs text-base-content/60 mb-4",children:"Identified consecutive identical tool invocations without intervening state changes."}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:c.map(k=>l.jsxs("div",{className:"p-4 bg-base-300/70 rounded-xl border border-base-content/10 flex flex-col justify-between gap-3",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-mono font-bold bg-warning/20 text-warning border border-warning/30",children:[k.tool," × ",k.repeats," repeats"]}),l.jsx("button",{type:"button",className:"text-xs font-mono text-primary hover:underline",onClick:()=>a?.(k.sessionId),children:k.sessionId})]}),l.jsx("div",{className:"font-mono text-xs text-base-content/80 mt-2",children:k.argsHint}),l.jsxs("div",{className:"text-[11px] text-base-content/50 mt-1",children:["Step sequence: #",k.fromSeq," → #",k.toSeq]})]}),l.jsxs("div",{className:"flex justify-between items-center text-xs font-mono pt-2 border-t border-base-content/10",children:[l.jsx("span",{className:"text-base-content/60",children:"Estimated Wasted Tokens:"}),l.jsx("span",{className:"text-error font-bold",children:Je(k.wastedTokens)})]})]},`${k.tool}-${k.sessionId}-${k.fromSeq}`))})]})]})},dw=({data:e,loading:t,error:n,sortBy:r="start",sortDir:a="desc",page:s=1,pageSize:i=20,onSortChange:o,onPageChange:u,onSelectSession:c})=>{if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load sessions: ",n]})});if(!e)return null;const{items:p,total:d}=e,f=Math.max(1,Math.ceil(d/i)),m=b=>r!==b?null:l.jsx("span",{className:"ml-1 text-primary",children:a==="asc"?"▲":"▼"});return l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsx("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 overflow-hidden",children:l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"bg-base-300/80 text-base-content/70 border-b border-base-content/10",children:[l.jsx("th",{className:"p-3",children:"Session ID"}),l.jsx("th",{className:"p-3",children:"Agent"}),l.jsx("th",{className:"p-3",children:"Model"}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors",onClick:()=>o?.("start"),children:["Start Time ",m("start")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("duration"),children:["Duration ",m("duration")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("messages"),children:["Msgs ",m("messages")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("toolCalls"),children:["Tools ",m("toolCalls")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("billedTokens"),children:["Billed Tok ",m("billedTokens")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("cacheRead"),children:["Cache Read ",m("cacheRead")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("freshInput"),children:["Fresh Input ",m("freshInput")]}),l.jsx("th",{className:"p-3",children:"Top Tool"}),l.jsx("th",{className:"p-3 text-center",children:"State"})]})}),l.jsx("tbody",{children:p.length===0?l.jsx("tr",{children:l.jsx("td",{colSpan:12,className:"text-center py-8 text-base-content/50",children:"No sessions matching the current filter."})}):p.map(b=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-primary/10 cursor-pointer transition-colors",onClick:()=>c?.(b.source,b.id),title:"Click to view execution timeline",children:[l.jsx("td",{className:"p-3 font-bold text-primary",children:l.jsx("span",{className:"font-mono text-xs",title:b.id,children:b.id.length>18?`${b.id.slice(0,16)}…`:b.id})}),l.jsx("td",{className:"p-3",children:l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-base-300 uppercase font-mono text-base-content",children:b.source})}),l.jsx("td",{className:"p-3 text-base-content/70",children:b.model}),l.jsx("td",{className:"p-3",children:b.start.slice(0,19).replace("T"," ")}),l.jsx("td",{className:"p-3 text-right font-semibold tabular-nums",children:uw(b.durationMs/6e4)}),l.jsx("td",{className:"p-3 text-right tabular-nums",children:mn(b.messages)}),l.jsx("td",{className:"p-3 text-right tabular-nums",children:mn(b.toolCalls)}),l.jsx("td",{className:"p-3 text-right font-bold text-primary tabular-nums",children:Je(b.billedTokens)}),l.jsx("td",{className:"p-3 text-right text-emerald-400 tabular-nums",children:Je(b.cacheReadTokens)}),l.jsx("td",{className:"p-3 text-right text-base-content/70 tabular-nums",children:Je(b.freshInputTokens)}),l.jsx("td",{className:"p-3",children:l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] border border-base-content/20 font-mono",children:b.topTool})}),l.jsx("td",{className:"p-3 text-center",children:l.jsx("span",{className:`px-1.5 py-0.5 rounded text-[10px] font-mono ${b.state==="error"?"bg-error/20 text-error font-bold":"bg-emerald-500/20 text-emerald-400 font-bold"}`,children:b.state})})]},`${b.source}:::${b.id}`))})]})})}),l.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-3 px-1 text-xs",children:[l.jsxs("span",{className:"text-base-content/70",children:["Showing ",(s-1)*i+1,"–",Math.min(s*i,d)," of ",d," sessions"]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("button",{type:"button",className:"px-2.5 py-1 text-xs rounded border border-base-content/20 hover:bg-base-content/10 font-medium disabled:opacity-40",disabled:s<=1,onClick:()=>u?.(s-1),children:"« Prev"}),l.jsxs("span",{className:"px-2.5 py-1 text-xs font-mono text-base-content/70",children:["Page ",s," / ",f]}),l.jsx("button",{type:"button",className:"px-2.5 py-1 text-xs rounded border border-base-content/20 hover:bg-base-content/10 font-medium disabled:opacity-40",disabled:s>=f,onClick:()=>u?.(s+1),children:"Next »"})]})]})]})},pw=({data:e,loading:t,error:n,onTriggerImport:r})=>{const[a,s]=g.useState(!1),[i,o]=g.useState(null),u=async()=>{s(!0),o("Running import & analytics rollup...");try{const f=await r?.("incremental");o(f?.message??"Import queued.")}catch(f){o(`Import failed: ${f instanceof Error?f.message:String(f)}`)}finally{s(!1)}};if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load sources registry: ",n]})});if(!e)return null;const{overview:c,agents:p,roots:d}=e;return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5 flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xl",children:"🗄️"}),l.jsx("h3",{className:"font-bold text-base",children:"Transcripts Corpus & Ingestion Registry"})]}),l.jsxs("div",{className:"flex flex-wrap gap-4 text-xs font-mono text-base-content/70 mt-1",children:[l.jsxs("span",{children:["Files: ",l.jsx("strong",{className:"text-base-content",children:mn(c.totalFiles)})]}),l.jsxs("span",{children:["Corpus Size:"," ",l.jsxs("strong",{className:"text-base-content",children:[(c.corpusSizeBytes/(1024*1024)).toFixed(1)," MB"]})]}),l.jsxs("span",{children:["Total Sessions:"," ",l.jsx("strong",{className:"text-base-content",children:mn(c.totalSessions)})]}),l.jsxs("span",{children:["Coverage:"," ",l.jsxs("strong",{className:"text-base-content",children:[c.dateCoverage.from?.slice(0,10)??"N/A"," →"," ",c.dateCoverage.to?.slice(0,10)??"N/A"]})]}),l.jsxs("span",{children:["Last Import:"," ",l.jsx("strong",{className:"text-base-content",children:c.lastImportedAt?new Date(c.lastImportedAt).toLocaleString():"never imported"})]})]})]}),l.jsxs("div",{className:"flex flex-col items-end gap-1.5",children:[l.jsx("button",{type:"button",className:"px-4 py-2 rounded-lg bg-primary text-primary-content font-medium text-xs hover:bg-primary/90 transition-colors disabled:opacity-50",disabled:a,onClick:u,children:a?"Importing...":"🔄 Import & Analyze"}),i&&l.jsx("span",{className:"text-[11px] font-mono text-info","aria-live":"polite",children:i})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Agent Activity (90-Day Daily Heatmaps)"}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:p.map(f=>l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 hover:border-base-content/30 transition-all p-4 flex flex-col justify-between gap-3",children:[l.jsxs("div",{className:"flex justify-between items-start",children:[l.jsxs("div",{className:"flex items-center gap-2.5",children:[l.jsxs("div",{className:"relative group",children:[l.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg flex items-center justify-center text-white shadow-xs focus:outline-2 focus:outline-offset-2 focus:outline-primary",style:{background:f.color},"aria-label":`${f.name} source metrics`,"aria-describedby":`source-tooltip-${f.id}`,children:l.jsx(us,{id:f.id})}),l.jsxs("div",{id:`source-tooltip-${f.id}`,role:"tooltip",className:"pointer-events-none absolute z-20 left-0 top-9 w-64 rounded-lg border border-base-content/15 bg-base-100 p-3 text-[11px] font-mono shadow-xl opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:[l.jsxs("div",{className:"mb-2 font-bold text-sm",children:[f.name," Summary"]}),l.jsxs("div",{className:"grid grid-cols-2 gap-x-3 gap-y-1",children:[l.jsx("span",{className:"text-base-content/60",children:"Imported Files"}),l.jsx("strong",{className:"text-right",children:mn(f.filesCount)}),l.jsx("span",{className:"text-base-content/60",children:"Sessions"}),l.jsx("strong",{className:"text-right",children:mn(f.sessionCount)}),l.jsx("span",{className:"text-base-content/60",children:"Total Tokens"}),l.jsx("strong",{className:"text-right",children:Je(f.totalTokens)}),l.jsx("span",{className:"text-base-content/60",children:"Cache Saved"}),l.jsx("strong",{className:"text-right",children:Je(f.cacheSavedTokens)}),l.jsx("span",{className:"text-base-content/60",children:"Tool Calls"}),l.jsx("strong",{className:"text-right",children:mn(f.toolCalls)}),l.jsx("span",{className:"text-base-content/60",children:"Date Range"}),l.jsxs("strong",{className:"text-right",children:[f.firstDate?.slice(0,10)??"N/A"," →"," ",f.lastDate?.slice(0,10)??"N/A"]})]})]})]}),l.jsxs("div",{children:[l.jsx("div",{className:"font-bold text-sm",children:f.name}),l.jsx("div",{className:"text-[10px] font-mono text-base-content/60",children:f.importPath})]})]}),l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-mono font-bold bg-base-300 border border-base-content/10 text-base-content",children:[Je(f.totalTokens)," tok"]})]}),l.jsxs("div",{className:"bg-base-300/60 p-2 rounded-lg border border-base-content/5",children:[l.jsxs("div",{className:"text-[10px] font-mono text-base-content/50 mb-1 flex justify-between",children:[l.jsx("span",{children:"90 days ago"}),l.jsx("span",{children:"Today"})]}),l.jsx(dH,{days:f.heatmapDays,color:f.color,maxDailyTokens:f.maxDailyTokens})]}),l.jsxs("div",{className:"grid grid-cols-3 gap-2 pt-2 border-t border-base-content/10 font-mono text-[11px]",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"Sessions"}),l.jsx("span",{className:"font-semibold",children:mn(f.sessionCount)})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"Tool Calls"}),l.jsx("span",{className:"font-semibold",children:mn(f.toolCalls)})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"Cache Saved"}),l.jsx("span",{className:"font-semibold text-emerald-400",children:Je(f.cacheSavedTokens)})]})]})]},f.id))})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Source Directories & Import Roots"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Agent"}),l.jsx("th",{className:"py-1.5",children:"Filesystem Path"}),l.jsx("th",{className:"py-1.5",children:"Match Pattern"}),l.jsx("th",{className:"py-1.5 text-right",children:"Files Count"}),l.jsx("th",{className:"py-1.5 text-center",children:"Status"})]})}),l.jsx("tbody",{children:d.map(f=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsx("td",{className:"py-1.5 font-bold",children:f.agentName}),l.jsx("td",{className:"py-1.5 text-base-content/80",children:f.path}),l.jsx("td",{className:"py-1.5 text-base-content/60",children:f.matchPattern}),l.jsx("td",{className:"py-1.5 text-right font-semibold",children:mn(f.fileCount)}),l.jsx("td",{className:"py-1.5 text-center",children:l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-emerald-500/20 text-emerald-400 uppercase font-bold",children:f.status})})]},f.agentId))})]})})]})]})},fH=["auto","5m","10m","30m","1h","4h","1d"],Ic=["#3987e5","#199e70","#d95926","#9085e9","#c98500","#ec4899","#8b5cf6","#06b6d4","#f59e0b","#10b981"],mH=(e,t)=>t===void 0||t===0?null:(e-t)/Math.abs(t)*100,kd=({current:e,previous:t,invert:n=!1})=>{const r=mH(e,t);if(r===null)return l.jsx("span",{className:"text-[10px] text-base-content/40",children:"No prior baseline"});const a=r>=0,s=n?!a:a;return l.jsxs("span",{className:`px-1.5 py-0.5 rounded text-[10px] font-bold font-mono ${s?"bg-emerald-500/15 text-emerald-400":"bg-error/15 text-error"}`,children:[a?"↑ +":"↓ ",Math.abs(r).toFixed(1),"% vs previous period"]})},Ro=({label:e,value:t,sub:n,trend:r,trendColor:a,current:s,previous:i,invert:o,badge:u})=>l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-4",children:[l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-base-content/60",children:e}),u]}),l.jsxs("div",{className:"flex items-end justify-between gap-2 mt-1",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-2xl font-bold font-mono text-primary",children:t}),l.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[l.jsx(kd,{current:s,previous:i,invert:o}),l.jsx("span",{className:"text-xs text-base-content/60",children:n})]})]}),r.length>1&&l.jsx(pH,{values:r,color:a,width:100,height:34})]})]}),Do=({title:e,description:t,series:n,buckets:r,chartMode:a,onToggleChartMode:s,testId:i})=>{const o=r.length>0&&n.length>0&&r.some(u=>Object.values(u.v).some(c=>c>0));return l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5 flex flex-col gap-3 w-full","data-testid":i,children:[l.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-2 pb-2 border-b border-base-content/10",children:[l.jsxs("div",{children:[l.jsxs("h4",{className:"font-bold text-sm text-base-content flex items-center gap-2",children:[e,l.jsxs("span",{className:"text-[11px] font-normal text-base-content/60 font-mono",children:["(",n.length," ",(n.length===1,"tracked"),")"]})]}),l.jsx("p",{className:"text-[11px] text-base-content/60",children:t})]}),l.jsxs("div",{className:"flex items-center gap-1 bg-base-300 p-0.5 rounded-lg text-xs",children:[l.jsx("button",{type:"button","aria-pressed":a==="chart",className:`px-2.5 py-1 rounded text-[11px] font-medium transition-colors ${a==="chart"?"bg-base-100 text-base-content font-bold shadow-xs":"text-base-content/60 hover:bg-base-content/10"}`,onClick:()=>a!=="chart"&&s(),children:"Chart"}),l.jsx("button",{type:"button","aria-pressed":a==="table",className:`px-2.5 py-1 rounded text-[11px] font-medium transition-colors ${a==="table"?"bg-base-100 text-base-content font-bold shadow-xs":"text-base-content/60 hover:bg-base-content/10"}`,onClick:()=>a!=="table"&&s(),children:"Table"})]})]}),l.jsx("div",{className:"min-h-[220px]",children:o?a==="chart"?l.jsx(iH,{buckets:r,series:n,height:220}):l.jsx("div",{className:"overflow-x-auto max-h-72 overflow-y-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono","data-testid":"summary-bucket-table",children:[l.jsx("thead",{className:"sticky top-0 bg-base-200",children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5 pr-2",children:"Bucket"}),n.map(u=>l.jsx("th",{className:"py-1.5 pr-2 text-right",children:l.jsxs("span",{className:"inline-flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full inline-block shrink-0",style:{background:u.color}}),u.label]})},u.id)),l.jsx("th",{className:"py-1.5 pr-2 text-right",children:"Total"}),l.jsx("th",{className:"py-1.5 text-right",children:"Cache Hit %"})]})}),l.jsx("tbody",{children:r.map(u=>{const c=Object.values(u.v).reduce((p,d)=>p+d,0);return l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsx("td",{className:"py-1.5 pr-2 font-bold",children:(u.id??u.label).slice(0,16).replace("T"," ")}),n.map(p=>l.jsx("td",{className:"py-1.5 pr-2 text-right tabular-nums",children:u.v[p.id]!==void 0?Je(u.v[p.id]??0):"—"},p.id)),l.jsx("td",{className:"py-1.5 pr-2 text-right tabular-nums font-bold",children:Je(c)}),l.jsx("td",{className:"py-1.5 text-right tabular-nums",children:u.lineValue!==void 0?`${u.lineValue.toFixed(1)}%`:"—"})]},u.id??u.label)})})]})}):l.jsx("div",{className:"flex flex-col items-center justify-center h-[220px] text-base-content/40 text-xs font-mono border border-dashed border-base-content/10 rounded-xl bg-base-100/30",children:l.jsxs("span",{children:["No ",e.toLowerCase()," token activity recorded for this time range."]})})}),n.length>0&&l.jsx("div",{className:"flex flex-wrap gap-1.5 pt-1.5 border-t border-base-content/5",children:n.map(u=>l.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded-md bg-base-300/80 border border-base-content/5 gap-1.5 font-mono text-[10px] text-base-content/80",children:[l.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{background:u.color}}),l.jsx("span",{className:"truncate max-w-[150px]",children:u.label})]},u.id))})]})},fw=({data:e,loading:t,error:n,dimension:r="model",onDimensionChange:a,bucket:s="auto",onBucketChange:i,loopSummary:o})=>{const[u,c]=g.useState("chart"),[p,d]=g.useState({model:"chart",source:"chart",tool:"chart",skill:"chart"});if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load history summary: ",n]})});if(!e)return null;const{kpis:f,previousKpis:m,kpiTrend:b,timeSeries:E,topModels:x,topSources:y,topTools:v,skillsUsed:T,skillTimeSeries:N,modelTimeSeries:D,sourceTimeSeries:A,toolTimeSeries:S,cacheEfficiency:w}=e,R=m??void 0,C={billed:b.map(H=>H.totalBilledTokens),cacheSaved:b.map(H=>H.cacheSavedTokens),sessions:b.map(H=>H.sessionsCount),toolCalls:b.map(H=>H.toolCallsCount)},U=["#199e70","#3987e5","#d95926","#9085e9","#c98500","#ec4899","#8b5cf6","#06b6d4","#f59e0b","#10b981"],k=(H,Fe,Ke)=>{const Xe=new Map;H.forEach((dt,lt)=>{Xe.set(dt.id,{id:dt.id,label:dt.label||dt.id,color:dt.color||Ke[lt%Ke.length]||"#3987e5"})});let Pt=Xe.size;for(const dt of Fe)for(const lt of Object.keys(dt.series))lt&&!Xe.has(lt)&&(Xe.set(lt,{id:lt,label:lt,color:Ke[Pt%Ke.length]||"#3987e5"}),Pt++);return Array.from(Xe.values())},j=D&&D.length>0?D:r==="model"?E:[],W=A&&A.length>0?A:r==="source"?E:[],$=S&&S.length>0?S:r==="tool"?E:[],ee=N&&N.length>0?N:r==="skill"?E:[],me=k(x,j,Ic),se=k(y,W,Ic),xe=k(v.map((H,Fe)=>({id:H.id,label:H.id,color:U[Fe%U.length]})),$,U),O=k(T,ee,Ic),te=H=>H.map(Fe=>({id:Fe.bucketStart,label:Fe.bucketStart.length>10?Fe.bucketStart.slice(11,16):Fe.bucketStart.slice(5,10),v:Fe.series,lineValue:Fe.cacheHitRatio})),le=te(j),L=te(W),ke=te($),Re=te(ee),Q=N.map(H=>({id:H.bucketStart,label:H.bucketStart.length>10?H.bucketStart.slice(11,16):H.bucketStart.slice(5,10),v:H.series})),_e=Math.max(...v.map(H=>H.count),1),ue=f.sessionsCount>0?f.totalBilledTokens/f.sessionsCount:0,X=f.toolCallsCount>0?f.totalBilledTokens/f.toolCallsCount:0,We=R&&R.sessionsCount>0?R.totalBilledTokens/R.sessionsCount:void 0,fe=R&&R.toolCallsCount>0?R.totalBilledTokens/R.toolCallsCount:void 0,de=Math.max(0,w.totalRead-w.savedTokens),Te=Math.max(0,f.totalBilledTokens-de),Se=N.reduce((H,Fe)=>{for(const[Ke,Xe]of Object.entries(Fe.series))H[Ke]=(H[Ke]??0)+Xe;return H},{});return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[l.jsx(Ro,{label:"Total Billed Tokens",value:Je(f.totalBilledTokens),sub:`Fresh ${Je(de)} · Output ${Je(Te)}`,trend:C.billed,trendColor:"#3987e5",current:f.totalBilledTokens,previous:R?.totalBilledTokens}),l.jsx(Ro,{label:"Cache-Saved Tokens",value:Je(f.cacheSavedTokens),sub:`Share ${Qr(f.cacheSavedPercent)} · Hit ${Qr(w.hitRatio)}`,trend:C.cacheSaved,trendColor:"#22d3ee",current:f.cacheSavedTokens,previous:R?.cacheSavedTokens,badge:l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-bold bg-emerald-500/20 text-emerald-400 border border-emerald-500/30",children:[f.cacheSavedPercent,"% saved"]})}),l.jsx(Ro,{label:"Sessions",value:mn(f.sessionsCount),sub:`${mn(f.sessionsCount>0?f.toolCallsCount/f.sessionsCount:0)} calls / session`,trend:C.sessions,trendColor:"#9085e9",current:f.sessionsCount,previous:R?.sessionsCount}),l.jsx(Ro,{label:"Tool Calls",value:mn(f.toolCallsCount),sub:`${Je(X)} billed / step`,trend:C.toolCalls,trendColor:"#c98500",current:f.toolCallsCount,previous:R?.toolCallsCount,badge:l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-mono bg-amber-500/20 text-amber-400 border border-amber-500/30",children:[Qr(f.errorRate)," err"]})})]}),l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-3",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"font-bold text-base text-base-content",children:"Token Activity & Cache Hit Ratio"}),l.jsx("p",{className:"text-xs text-base-content/60",children:"4-block breakdown across Model, Source, Tool, and Skill (Stacked token bars with Cache Hit % line overlay)"})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("fieldset",{className:"flex items-center bg-base-300 p-0.5 rounded-lg text-xs border-0",children:[l.jsx("legend",{className:"sr-only",children:"Bucket interval"}),fH.map(H=>l.jsx("button",{type:"button","aria-pressed":s===H,className:`px-2 py-1 rounded font-medium transition-colors ${s===H?"bg-base-100 text-base-content font-bold shadow-sm":"text-base-content/60 hover:bg-base-content/10"}`,onClick:()=>i?.(H),children:H},H))]}),l.jsx("div",{className:"flex items-center bg-base-300 p-0.5 rounded-lg text-xs",children:["chart","table"].map(H=>l.jsx("button",{type:"button","aria-pressed":u===H,className:`px-2.5 py-1 rounded font-medium transition-colors ${u===H?"bg-base-100 text-base-content font-bold shadow-sm":"text-base-content/60 hover:bg-base-content/10"}`,onClick:()=>{c(H),d({model:H,source:H,tool:H,skill:H})},children:H==="chart"?"All Charts":"All Tables"},H))})]})]}),l.jsxs("div",{className:"flex flex-col gap-6 w-full",children:[l.jsx(Do,{title:"By Model",description:"Token load by LLM model with cache hit ratio overlay",series:me,buckets:le,chartMode:p.model,onToggleChartMode:()=>d(H=>({...H,model:H.model==="chart"?"table":"chart"})),testId:"summary-block-model"}),l.jsx(Do,{title:"By Source",description:"Token load by agent platform with cache hit ratio overlay",series:se,buckets:L,chartMode:p.source,onToggleChartMode:()=>d(H=>({...H,source:H.source==="chart"?"table":"chart"})),testId:"summary-block-source"}),l.jsx(Do,{title:"By Tool",description:"Token load by tool execution with cache hit ratio overlay",series:xe,buckets:ke,chartMode:p.tool,onToggleChartMode:()=>d(H=>({...H,tool:H.tool==="chart"?"table":"chart"})),testId:"summary-block-tool"}),l.jsx(Do,{title:"By Skill",description:"Token load by specialized skill with cache hit ratio overlay",series:O,buckets:Re,chartMode:p.skill,onToggleChartMode:()=>d(H=>({...H,skill:H.skill==="chart"?"table":"chart"})),testId:"summary-block-skill"})]})]}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Top Models by Billed Tokens"}),l.jsx("div",{className:"flex flex-col gap-3",children:x.map(H=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex justify-between text-xs font-mono",children:[l.jsxs("span",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:H.color}}),H.label]}),l.jsxs("span",{children:[Je(H.tokens)," (",H.share,"%)"]})]}),l.jsx("div",{className:"w-full bg-base-300 h-2 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full",style:{width:`${H.share}%`,background:H.color}})})]},H.id))})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Top Agent Sources by Billed Tokens"}),l.jsx("div",{className:"flex flex-col gap-3",children:y.map(H=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex justify-between text-xs",children:[l.jsxs("span",{className:"flex items-center gap-1.5 font-medium",children:[l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:H.color}}),H.label]}),l.jsxs("span",{className:"font-mono",children:[Je(H.tokens)," (",H.share,"%)"]})]}),l.jsx("div",{className:"w-full bg-base-300 h-2 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full",style:{width:`${H.share}%`,background:H.color}})})]},H.id))})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-2",children:"Top Tools & Error Rates"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Tool"}),l.jsx("th",{className:"py-1.5",children:"Share"}),l.jsx("th",{className:"py-1.5 text-right",children:"Calls"}),l.jsx("th",{className:"py-1.5 text-right",children:"Errors"}),l.jsx("th",{className:"py-1.5 text-right",children:"Error Rate"})]})}),l.jsx("tbody",{children:v.map(H=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsx("td",{className:"py-1.5 font-bold",children:H.id}),l.jsx("td",{className:"py-1.5 w-28",children:l.jsx(Cd,{value:H.count,max:_e,color:"#3987e5"})}),l.jsx("td",{className:"py-1.5 text-right tabular-nums",children:mn(H.count)}),l.jsx("td",{className:"py-1.5 text-right tabular-nums",children:H.errors>0?mn(H.errors):"0"}),l.jsx("td",{className:"py-1.5 text-right",children:l.jsx("span",{className:`px-1.5 py-0.5 rounded text-[10px] ${H.errorRate>1?"bg-error/20 text-error font-bold":"bg-base-300 text-base-content/70"}`,children:Qr(H.errorRate)})})]},H.id))})]})})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5 flex flex-col gap-4",children:[l.jsxs("div",{children:[l.jsx("h4",{className:"font-bold text-sm mb-2",children:"Cache Efficiency Overview"}),l.jsxs("div",{className:"bg-base-300/60 p-3.5 rounded-xl border border-base-content/5 mb-4",children:[l.jsxs("div",{className:"flex justify-between items-center mb-1.5 text-xs font-semibold",children:[l.jsx("span",{children:"Global Cache Hit Ratio"}),l.jsxs("span",{className:"text-cyan-400 font-mono text-sm",children:[w.hitRatio,"%"]})]}),l.jsx("div",{className:"w-full bg-base-100 h-2.5 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full bg-cyan-400 rounded-full",style:{width:`${w.hitRatio}%`}})}),l.jsxs("div",{className:"flex justify-between text-[11px] text-base-content/60 mt-2 font-mono",children:[l.jsxs("span",{children:["Saved: ",Je(w.savedTokens)]}),l.jsxs("span",{children:["Total Read: ",Je(w.totalRead)]})]})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-3 text-xs font-mono",children:[l.jsxs("div",{className:"flex flex-col gap-0.5",children:[l.jsx("span",{className:"text-base-content/60 text-[10px] uppercase tracking-wider",children:"Avg Billed / Session"}),l.jsx("span",{className:"font-bold",children:Je(ue)}),l.jsx(kd,{current:ue,previous:We,invert:!0})]}),l.jsxs("div",{className:"flex flex-col gap-0.5",children:[l.jsx("span",{className:"text-base-content/60 text-[10px] uppercase tracking-wider",children:"Avg Billed / Step"}),l.jsx("span",{className:"font-bold",children:Je(X)}),l.jsx(kd,{current:X,previous:fe,invert:!0})]}),l.jsxs("div",{className:"flex flex-col gap-0.5",children:[l.jsx("span",{className:"text-base-content/60 text-[10px] uppercase tracking-wider",children:"Loop Detection Findings"}),l.jsxs("span",{className:"font-bold",children:[mn(o?.redundantCalls??0)," redundant"]}),l.jsxs("span",{className:"text-[10px] text-base-content/60",children:[Je(o?.wastedTokens??0)," wasted"]})]})]})]}),T.length>0&&l.jsxs("div",{children:[l.jsx("h5",{className:"font-bold text-xs mb-2",children:"Skills Invocation Mix"}),l.jsx(oH,{buckets:Q,series:hH(T),height:150}),l.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:T.map(H=>l.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full bg-base-300 border border-base-content/10 gap-1.5 font-mono text-[11px]",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{background:H.color}}),l.jsxs("span",{children:[H.label,":"]}),l.jsxs("span",{className:"font-bold",children:[Je(Se[H.id]??0)," tokens"]})]},H.id))})]})]})]})]})},hH=e=>e.map(t=>({id:t.id,label:t.label,color:t.color})),gH=({blocks:e,start:t,end:n,onJumpToTime:r})=>{const a=g.useId(),{bins:s,maxBinTokens:i,maxBinOperations:o,startMs:u,endMs:c,hasValidRange:p}=g.useMemo(()=>{if(!t||!n||e.length===0)return{bins:[],maxBinTokens:0,maxBinOperations:0,startMs:0,endMs:0,hasValidRange:!1};const d=Date.parse(t),f=Date.parse(n);if(Number.isNaN(d)||Number.isNaN(f)||f<d)return{bins:[],maxBinTokens:0,maxBinOperations:0,startMs:0,endMs:0,hasValidRange:!1};const m=96,E=Math.max(1,f-d)/m,x=Array.from({length:m},(T,N)=>({index:N,timeMs:d+N*E,tokens:0,operations:0}));for(const T of e){if(!T.timestamp)continue;const N=Date.parse(T.timestamp);if(Number.isNaN(N)||N<d||N>f)continue;const D=Math.min(m-1,Math.max(0,Math.floor((N-d)/E))),A=x[D];A&&(A.tokens+=T.totalTokens,A.operations+=T.operationCount)}const y=Math.max(1,...x.map(T=>T.tokens)),v=Math.max(1,...x.map(T=>T.operations));return{bins:x,maxBinTokens:y,maxBinOperations:v,startMs:d,endMs:f,hasValidRange:!0}},[e,t,n]);return!p||s.length===0?null:l.jsxs("div",{"data-testid":"timeline-scrubber",className:"flex flex-col gap-1.5 p-3 bg-base-200/80 rounded-xl border border-base-content/10 font-mono text-xs",children:[l.jsxs("div",{className:"flex items-center justify-between text-[11px] text-base-content/60 px-1",children:[l.jsxs("span",{children:["Timeline Activity (",s.length," bins)"]}),l.jsxs("span",{children:["Peak: ",Je(i)]})]}),l.jsx("div",{className:"relative h-10 w-full bg-base-300/60 rounded-lg overflow-hidden flex items-end p-1",children:l.jsx("svg",{viewBox:"0 0 96 32",preserveAspectRatio:"none",className:"w-full h-full text-primary/70","aria-hidden":"true",children:s.map(d=>{const f=d.operations>0?Math.max(2,Math.round(d.operations/o*30)):0,m=d.tokens>0?.35+d.tokens/i*.65:.25,b=32-f;return l.jsx("rect",{x:d.index,y:b,width:"0.85",height:f,fill:"currentColor",fillOpacity:m,"data-operations":d.operations,"data-tokens":d.tokens,className:"hover:text-cyan-400 transition-colors",children:l.jsx("title",{children:`${new Date(d.timeMs).toISOString()} · ${Je(d.tokens)} · ${d.operations} ops`})},d.index)})})}),l.jsx("label",{htmlFor:a,className:"sr-only",children:"Timeline scrub slider"}),l.jsx("input",{id:a,type:"range",min:u,max:c,defaultValue:u,"aria-label":"Timeline navigation scrubber","data-testid":"timeline-scrubber-range",className:"w-full range range-xs range-primary cursor-pointer accent-primary",onInput:d=>{const f=Number(d.currentTarget.value);Number.isFinite(f)&&r?.(new Date(f).toISOString())}})]})},Ba=(e,t)=>`${e}:${t}`,Ua=(e,t)=>JSON.stringify([e,t]),la=e=>e.replace(/[^a-zA-Z0-9_-]/g,"-"),Tl=(e,t,n)=>e+t+n,bH=(e,t)=>{const n=e+t;return n>0?t/n*100:0},Id=e=>e.length<=12?e:`${e.slice(0,8)}…${e.slice(-4)}`,EH=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mw=e=>{if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=EH[t.getUTCMonth()],r=t.getUTCDate(),a=String(t.getUTCHours()).padStart(2,"0"),s=String(t.getUTCMinutes()).padStart(2,"0");return`${n} ${r} ${a}:${s}`},Rd=e=>{if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e.slice(11,19)||e;const n=String(t.getUTCHours()).padStart(2,"0"),r=String(t.getUTCMinutes()).padStart(2,"0"),a=String(t.getUTCSeconds()).padStart(2,"0");return`${n}:${r}:${a}`},ay=e=>`${Id(e.id)} · ${e.source} · ${mw(e.start)} · ${Je(e.tokenLoad)}`,xH=e=>{const t=e.payload?.trim();return t&&t.length>0?t:e.title},sy=e=>e.split(/\r?\n/).map(n=>n.trim()).find(n=>n.length>0)??e,iy=e=>e.kind==="assistant"||e.eventType==="message"&&e.kind!=="user",yH=e=>{const t=(e.toolName||e.kind||"").toLowerCase();return t.includes("glob")?{label:e.toolName||"glob",color:"#6366f1"}:t.includes("grep")?{label:e.toolName||"grep",color:"#a855f7"}:t.includes("edit")||t.includes("write")||t.includes("patch")?{label:e.toolName||"edit",color:"#eab308"}:t.includes("read")||t.includes("view")||t.includes("list")?{label:e.toolName||"read",color:"#10b981"}:t.includes("bash")||t.includes("exec")||t.includes("command")||t.includes("terminal")?{label:e.toolName||"bash",color:"#3b82f6"}:t.includes("search")||t.includes("find")?{label:e.toolName||"search",color:"#a855f7"}:t.includes("run")?{label:e.toolName||"run",color:"#f59e0b"}:{label:e.toolName||e.kind,color:"#64748b"}},TH=()=>l.jsxs("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":"User icon",children:[l.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),l.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),SH=({promptTokens:e,fullText:t,tooltipId:n})=>{const[r,a]=g.useState(!1),s=e?.freshInputTokens??0,i=e?.cacheReadTokens??0,o=e?.outputTokens??0,u=Tl(s,i,o),c=t.length>0?t.split(/\r?\n/).length:0,p=t.length;return l.jsxs("div",{className:"relative inline-flex items-center z-20",children:[l.jsx("button",{type:"button","aria-label":"Show user prompt token breakdown","aria-describedby":n,"data-testid":`timeline-user-badge-${n}`,className:"p-1 rounded bg-base-300 text-cyan-400 shrink-0 hover:bg-base-content/10 focus:outline-none focus-visible:ring-1 focus-visible:ring-primary transition-colors cursor-pointer",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>a(!0),onBlur:()=>a(!1),onKeyDown:d=>{d.key==="Escape"&&a(!1)},children:l.jsx(TH,{})}),l.jsxs("div",{id:n,role:"tooltip","data-testid":n,className:`absolute left-0 top-full z-50 mt-1.5 w-56 p-2 rounded-lg bg-base-300 border border-base-content/20 shadow-2xl text-[11px] font-mono leading-relaxed pointer-events-none ${r?"block":"hidden"}`,children:[l.jsx("div",{className:"font-bold text-base-content mb-1",children:"User Prompt Telemetry"}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5 text-base-content/80",children:[l.jsx("span",{className:"text-base-content/60",children:"Lines / chars:"}),l.jsxs("span",{children:[c," lines (",p," chars)"]}),l.jsx("span",{className:"text-base-content/60",children:"📥 Fresh input:"}),l.jsx("span",{children:Je(s)}),l.jsx("span",{className:"text-base-content/60",children:"💾 Cache read:"}),l.jsx("span",{className:"text-cyan-400",children:Je(i)}),l.jsx("span",{className:"text-base-content/60",children:"📤 Output:"}),l.jsx("span",{children:Je(o)}),l.jsx("span",{className:"text-base-content/60 border-t border-base-content/10 pt-0.5",children:"⚡ Turn load:"}),l.jsx("span",{className:"font-bold border-t border-base-content/10 pt-0.5 text-primary",children:Je(u)})]})]})]})},oy=({agentId:e,model:t,timestamp:n,tooltipId:r})=>{const[a,s]=g.useState(!1);return l.jsxs("div",{className:"relative inline-flex items-center z-20",children:[l.jsx("button",{type:"button","aria-label":`Show ${e} metadata`,"aria-describedby":r,"data-testid":`timeline-agent-badge-${r}`,className:"inline-flex items-center justify-center p-1 rounded hover:bg-base-content/10 text-base-content focus:outline-none focus-visible:ring-1 focus-visible:ring-primary transition-colors cursor-pointer",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),onKeyDown:i=>{i.key==="Escape"&&s(!1)},children:l.jsx(us,{id:e})}),l.jsxs("div",{id:r,role:"tooltip","data-testid":r,className:`absolute left-0 top-full z-50 mt-1.5 w-56 p-2 rounded-lg bg-base-300 border border-base-content/20 shadow-2xl text-[11px] font-mono leading-relaxed pointer-events-none ${a?"block":"hidden"}`,children:[l.jsxs("div",{className:"font-bold text-base-content mb-1 flex items-center gap-1.5",children:[l.jsx(us,{id:e}),l.jsx("span",{children:e})]}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5 text-base-content/80",children:[l.jsx("span",{className:"text-base-content/60",children:"Model:"}),l.jsx("span",{className:"truncate",children:t}),l.jsx("span",{className:"text-base-content/60",children:"Timestamp:"}),l.jsx("span",{className:"truncate",children:Rd(n)})]})]})]})},vH=({title:e,freshInputTokens:t,cacheReadTokens:n,outputTokens:r,color:a,tooltipId:s})=>{const[i,o]=g.useState(!1),u=Tl(t,n,r);return l.jsxs("div",{className:"relative inline-flex items-center z-20",children:[l.jsx("button",{type:"button","aria-describedby":s,"data-testid":`timeline-tool-badge-${s}`,className:"px-1.5 py-0.5 rounded text-[10.5px] font-mono font-medium truncate max-w-[140px] sm:max-w-[200px] border focus:outline-none focus-visible:ring-1 focus-visible:ring-primary transition-colors cursor-pointer",style:{color:a,backgroundColor:`${a}18`,borderColor:`${a}40`},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),onKeyDown:c=>{c.key==="Escape"&&o(!1)},children:e}),l.jsxs("div",{id:s,role:"tooltip","data-testid":s,className:`absolute left-0 top-full z-50 mt-1.5 w-52 p-2 rounded-lg bg-base-300 border border-base-content/20 shadow-2xl text-[11px] font-mono leading-relaxed pointer-events-none ${i?"block":"hidden"}`,children:[l.jsx("div",{className:"font-bold text-base-content mb-1",children:"Token Breakdown"}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5 text-base-content/80",children:[l.jsx("span",{className:"text-base-content/60",children:"📥 Fresh input:"}),l.jsx("span",{children:Je(t)}),l.jsx("span",{className:"text-base-content/60",children:"💾 Cache read:"}),l.jsx("span",{className:"text-cyan-400",children:Je(n)}),l.jsx("span",{className:"text-base-content/60",children:"📤 Output:"}),l.jsx("span",{children:Je(r)}),l.jsx("span",{className:"text-base-content/60 border-t border-base-content/10 pt-0.5",children:"⚡ Total:"}),l.jsx("span",{className:"font-bold border-t border-base-content/10 pt-0.5 text-primary",children:Je(u)})]})]})]})},hw=({data:e,loading:t,error:n,mode:r="session",sessionId:a,availableSessions:s=[],onSelectSession:i,onModeChange:o,consolidatedTaskWbs:u="",consolidatedRunId:c="",onConsolidatedScopeSubmit:p})=>{const d=e?.scope.sessionId,f=e?.scope.source,[m,b]=g.useState({}),[E,x]=g.useState(!0),[y,v]=g.useState(!0),[T,N]=g.useState(!0),[D,A]=g.useState(u),[S,w]=g.useState(c),R=d&&f?Ua(f,d):"consolidated",C=m[R]||{},U=Q=>{b(_e=>({..._e,[R]:Q(_e[R]||{})}))},k=(Q,_e)=>{const ue=Ba(Q,_e);U(X=>({...X,[ue]:!X[ue]}))};if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin motion-reduce:animate-none"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load timeline: ",n]})});if(!e)return l.jsx("div",{className:"p-4 rounded-lg bg-info/10 border border-info/20 text-info",children:l.jsx("span",{children:"No timeline data available."})});const{scope:j,blocks:W,truncated:$}=e,ee=Tl(j.tokens.freshInputTokens,j.tokens.cacheReadTokens,j.tokens.outputTokens),me=bH(j.tokens.freshInputTokens,j.tokens.cacheReadTokens),se=W.map(Q=>{const _e=Q.events.filter(ue=>iy(ue)?!E:ue.kind==="unknown"||ue.agent==="unknown"?!y:!(T&&!ue.payload?.trim()&&(ue.durationMs===null||ue.durationMs===0)&&Tl(ue.freshInputTokens,ue.cacheReadTokens,ue.outputTokens)===0));return{...Q,events:_e}}).filter(Q=>Q.events.length>0),xe=se.flatMap(Q=>Q.events.filter(_e=>!!_e.payload?.trim()).map(_e=>Ba(Q.key,_e.seq))),O=xe.length>0&&xe.every(Q=>C[Q]),te=()=>U(()=>O?{}:Object.fromEntries(xe.map(Q=>[Q,!0]))),le=s.findIndex(Q=>Q.id===j.sessionId&&Q.source===j.source),L=le>0?s[le-1]:void 0,ke=le>=0&&le<s.length-1?s[le+1]:void 0,Re=Q=>{const _e=Date.parse(Q),ue=se.find(X=>{const We=X.timestamp?Date.parse(X.timestamp):Number.NaN;return Number.isFinite(We)&&We>=_e})??se.at(-1);ue&&document.getElementById(`timeline-block-${la(ue.key)}`)?.scrollIntoView({behavior:"smooth",block:"center"})};return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5 flex flex-col gap-4",children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[l.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[l.jsx("h3",{className:"text-base font-bold tracking-tight",children:"Conversation"}),l.jsxs("fieldset",{className:"inline-flex border border-base-content/20 rounded-lg p-0.5 bg-base-300 font-mono text-xs",children:[l.jsx("legend",{className:"sr-only",children:"Timeline mode"}),l.jsx("button",{type:"button","data-testid":"timeline-mode-session","aria-pressed":r==="session",className:`px-2.5 py-1 rounded-md transition-colors ${r==="session"?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:text-base-content"}`,onClick:()=>o?.("session"),children:"Single Session"}),l.jsx("button",{type:"button","data-testid":"timeline-mode-consolidated","aria-pressed":r==="consolidated",className:`px-2.5 py-1 rounded-md transition-colors ${r==="consolidated"?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:text-base-content"}`,onClick:()=>o?.("consolidated"),children:"Consolidated"})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[r==="session"?l.jsxs(l.Fragment,{children:[l.jsxs("label",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"sr-only",children:"Session"}),l.jsx("select",{"aria-label":"Select Session","data-testid":"timeline-session-select",className:"px-3 py-1.5 min-h-[44px] text-xs rounded-lg border border-base-content/20 bg-base-300 font-mono text-base-content max-w-xs focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",value:j.source&&j.sessionId?Ua(j.source,j.sessionId):"",onChange:Q=>{const _e=s.find(ue=>Ua(ue.source,ue.id)===Q.target.value);_e&&i?.(_e.source,_e.id)},children:s.length>0?s.map(Q=>l.jsx("option",{value:Ua(Q.source,Q.id),children:ay(Q)},Ua(Q.source,Q.id))):l.jsx("option",{value:j.source&&j.sessionId?Ua(j.source,j.sessionId):"",children:j.sessionId?ay({id:j.sessionId,source:j.source??"unknown",start:j.start??"",tokenLoad:ee}):"No session selected"})})]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("button",{type:"button","aria-label":"Previous session",disabled:!L,className:"px-3 py-2 min-h-[44px] min-w-[44px] inline-flex items-center justify-center text-xs font-mono rounded-lg border border-base-content/20 bg-base-300 text-base-content/80 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-base-content/10 transition-colors focus-visible:ring-2 focus-visible:ring-primary",onClick:()=>L&&i?.(L.source,L.id),children:"←"}),l.jsx("button",{type:"button","aria-label":"Next session",disabled:!ke,className:"px-3 py-2 min-h-[44px] min-w-[44px] inline-flex items-center justify-center text-xs font-mono rounded-lg border border-base-content/20 bg-base-300 text-base-content/80 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-base-content/10 transition-colors focus-visible:ring-2 focus-visible:ring-primary",onClick:()=>ke&&i?.(ke.source,ke.id),children:"→"})]})]}):l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-lg bg-base-300 border border-base-content/20 text-xs font-mono",children:[l.jsx("span",{className:"text-base-content/60",children:"Scope:"}),l.jsxs("span",{className:"font-semibold text-primary",children:[j.sessionCount," sessions"]})]}),l.jsxs("form",{className:"flex flex-wrap items-end gap-2",onSubmit:Q=>{Q.preventDefault(),p?.({taskWbs:D.trim(),runId:S.trim()})},children:[l.jsxs("label",{className:"flex flex-col gap-1 text-[10px] font-mono text-base-content/60",children:["Task WBS",l.jsx("input",{type:"text",value:D,onInput:Q=>A(Q.currentTarget.value),className:"min-h-[44px] w-28 rounded-lg border border-base-content/20 bg-base-300 px-2 text-xs text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"})]}),l.jsxs("label",{className:"flex flex-col gap-1 text-[10px] font-mono text-base-content/60",children:["Run ID",l.jsx("input",{type:"text",value:S,onInput:Q=>w(Q.currentTarget.value),className:"min-h-[44px] w-40 rounded-lg border border-base-content/20 bg-base-300 px-2 text-xs text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"})]}),l.jsx("button",{type:"submit",className:"min-h-[44px] rounded-lg bg-primary px-3 text-xs font-semibold text-primary-content focus-visible:ring-2 focus-visible:ring-primary",children:"Apply scope"})]})]}),l.jsx("button",{type:"button","aria-pressed":O,disabled:xe.length===0,className:"px-3.5 py-2 min-h-[44px] rounded-lg text-xs font-semibold border border-primary/30 text-primary hover:bg-primary/10 disabled:opacity-40 disabled:cursor-not-allowed transition-colors focus-visible:ring-2 focus-visible:ring-primary",onClick:te,children:O?"Collapse all":"Expand all"}),l.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs font-mono text-base-content/80",children:[l.jsxs("label",{className:"inline-flex items-center gap-1.5 cursor-pointer select-none",children:[l.jsx("input",{type:"checkbox","data-testid":"timeline-filter-assistant",className:"w-3.5 h-3.5 rounded border border-base-content/30 accent-primary focus-visible:ring-1 focus-visible:ring-primary",checked:E,onChange:Q=>x(Q.target.checked)}),l.jsx("span",{children:"Hide assistant"})]}),l.jsxs("label",{className:"inline-flex items-center gap-1.5 cursor-pointer select-none",children:[l.jsx("input",{type:"checkbox","data-testid":"timeline-filter-unknown",className:"w-3.5 h-3.5 rounded border border-base-content/30 accent-primary focus-visible:ring-1 focus-visible:ring-primary",checked:y,onChange:Q=>v(Q.target.checked)}),l.jsx("span",{children:"Hide unknown"})]}),l.jsxs("label",{className:"inline-flex items-center gap-1.5 cursor-pointer select-none",children:[l.jsx("input",{type:"checkbox","data-testid":"timeline-filter-empty",className:"w-3.5 h-3.5 rounded border border-base-content/30 accent-primary focus-visible:ring-1 focus-visible:ring-primary",checked:T,onChange:Q=>N(Q.target.checked)}),l.jsx("span",{children:"Hide other empty"})]})]})]})]}),l.jsxs("div",{"data-testid":"timeline-metadata-strip",className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 lg:grid-cols-9 gap-3 pt-3 border-t border-base-content/10 text-xs font-mono",children:[l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:r==="session"?"SESSION":"SESSIONS"}),l.jsx("span",{className:"font-semibold truncate",title:j.sessionId??`${j.sessionCount} sessions`,children:j.sessionId?Id(j.sessionId):`${j.sessionCount} total`})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"AGENT"}),l.jsx("span",{className:"inline-flex items-center gap-1 font-semibold truncate",children:j.source?l.jsxs(l.Fragment,{children:[l.jsx(us,{id:j.source}),j.source]}):"multiple"})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"MODEL"}),l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary/70 shrink-0"}),j.model??"multiple"]})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"STARTED"}),l.jsx("span",{className:"truncate",children:mw(j.start)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"DURATION"}),l.jsx("span",{className:"font-semibold truncate",children:uw(j.durationMs/6e4)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"TOTAL TOKENS"}),l.jsx("span",{className:"font-bold text-primary truncate",children:Je(ee)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"CACHE READ"}),l.jsxs("span",{className:"font-semibold text-cyan-400 truncate",children:[me.toFixed(1),"%"]})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"OUTPUT TOKENS"}),l.jsx("span",{className:"truncate",children:Je(j.tokens.outputTokens)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"TOOL CALLS"}),l.jsx("span",{className:"truncate",children:mn(j.toolCallCount)})]})]}),l.jsx(gH,{blocks:se,start:j.start,end:j.end,onJumpToTime:Re})]}),$&&l.jsxs("div",{"data-testid":"timeline-truncated-banner",className:"p-3 rounded-lg bg-info/10 border border-info/20 text-info font-mono text-xs flex items-center gap-2",children:[l.jsx("span",{children:"ℹ️"}),l.jsx("span",{children:"Showing newest 5,000 events. Apply a narrower filter or time window to inspect earlier events."})]}),l.jsx("div",{"data-testid":"timeline-rail",className:"relative py-2 sm:py-4 before:absolute before:left-2 sm:before:left-[136px] before:top-0 before:bottom-0 before:w-px before:bg-gradient-to-b before:from-transparent before:via-base-content/20 before:to-transparent flex flex-col gap-3",children:se.map(Q=>{const _e=Q.events.filter(X=>X.kind==="user"),ue=Q.events.filter(X=>X.kind!=="user");return l.jsxs("div",{id:`timeline-block-${la(Q.key)}`,"data-testid":`timeline-block-${Q.key}`,className:"flex flex-col gap-2.5",children:[r==="consolidated"&&l.jsxs("div",{className:"flex items-center gap-2 pl-6 sm:pl-[144px] pt-2 pb-1 font-mono text-xs text-base-content/70",children:[l.jsx(us,{id:Q.source}),l.jsx("span",{className:"font-bold text-base-content",children:Q.source}),l.jsxs("span",{children:["· ",Id(Q.sessionId)]}),l.jsxs("span",{children:["· Turn #",Q.turnIndex]}),Q.correlationExactness&&l.jsx("span",{"data-testid":`timeline-exactness-${Q.key}`,className:`px-1.5 py-0.2 rounded text-[10px] font-bold ${Q.correlationExactness==="exact"?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-amber-500/10 text-amber-400 border border-amber-500/20"}`,children:Q.correlationExactness})]}),_e.map(X=>{const We=xH(X),fe=X.payload?.trim()??"",de=sy(We),Te=!!X.payload?.trim(),Se=!!C[Ba(Q.key,X.seq)],H=la(`timeline-user-drawer-${Q.key}-${X.seq}`),Fe=la(`user-tt-${Q.key}-${X.seq}`);return l.jsxs("div",{className:"relative flex flex-col sm:grid sm:grid-cols-[136px_minmax(0,1fr)] py-1","data-testid":`timeline-user-event-${Q.key}-${X.seq}`,children:[l.jsxs("div",{className:"hidden sm:flex flex-col items-end justify-center pr-4 font-mono text-[10.5px] text-base-content/70",children:[l.jsx("span",{className:"font-semibold text-base-content/90",children:Rd(Q.timestamp)}),l.jsxs("span",{className:"text-[10px] text-base-content/50",children:["📥 ",Je(X.freshInputTokens)," in"]})]}),l.jsx("span",{"data-timeline-node":"prompt",className:"absolute left-[3.5px] sm:left-[131.5px] top-1/2 -translate-y-1/2 w-[9px] h-[9px] rounded-full bg-cyan-400 ring-4 ring-base-100 z-10","aria-hidden":"true"}),l.jsx("div",{className:"pl-6 sm:pl-5 min-w-0 flex justify-end",children:l.jsxs("div",{className:"w-[80%] max-w-none bg-base-100 rounded-lg border border-primary/20 hover:border-primary/40 transition-colors p-2 sm:px-3 sm:py-2 flex flex-col gap-1",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 min-h-[32px]",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx(SH,{promptTokens:X.promptTokens,fullText:fe,tooltipId:Fe}),l.jsx("span",{className:"font-mono text-xs font-semibold text-base-content/90 truncate min-w-0",children:de})]}),l.jsx("div",{className:"flex items-center gap-2 shrink-0 font-mono text-[11px] text-base-content/60",children:Te?l.jsx("button",{type:"button","aria-label":Se?"Collapse full user prompt":"Expand full user prompt","aria-expanded":Se,"aria-controls":H,onClick:()=>k(Q.key,X.seq),className:"p-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 inline-flex items-center justify-center text-base-content/60 hover:text-base-content transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary rounded",children:l.jsx("span",{className:`text-xs font-mono transition-transform duration-150 ${Se?"rotate-90":""}`,"aria-hidden":"true",children:"›"})}):null})]}),Se&&Te&&l.jsx("div",{id:H,className:"mt-1 p-3 bg-[#0d141f] text-slate-100 rounded-md font-mono text-xs whitespace-pre-wrap overflow-x-auto border border-white/10",children:We})]})})]},Ba(Q.key,X.seq))}),ue.map(X=>{const We=yH(X),fe=!!C[Ba(Q.key,X.seq)],de=!!X.payload?.trim(),Te=la(`timeline-op-drawer-${Q.key}-${X.seq}`),Se=la(`agent-tt-${Q.key}-${X.seq}`),H=la(`tool-tt-${Q.key}-${X.seq}`),Fe=iy(X);return l.jsxs("div",{className:"relative flex flex-col sm:grid sm:grid-cols-[136px_minmax(0,1fr)] py-1 hover:z-30 focus-within:z-30","data-testid":`timeline-op-event-${Q.key}-${X.seq}`,children:[l.jsxs("div",{className:"hidden sm:flex flex-col items-end justify-center pr-4 font-mono text-[10.5px] text-base-content/70",children:[l.jsx("span",{className:"font-semibold text-base-content/90",children:Rd(Q.timestamp)}),X.durationSource==="measured"&&X.durationMs!==null?l.jsxs("span",{"data-testid":`timeline-step-duration-${Q.key}-${X.seq}`,className:X.durationMs>=5e3?"font-bold text-amber-400":"text-base-content/60",children:["⏱ ",Ad(X.durationMs)]}):X.durationSource==="inferred"&&X.durationMs!==null?l.jsxs("span",{"data-testid":`timeline-step-duration-${Q.key}-${X.seq}`,title:"Inferred from next event timestamp within session",className:"text-base-content/60 italic",children:["⏱ ~",Ad(X.durationMs)]}):l.jsx("span",{"data-testid":`timeline-step-duration-${Q.key}-${X.seq}`,title:"Unmeasured (gap > 10m or last event)",className:"text-base-content/40",children:"⏱ —"})]}),l.jsx("span",{"data-timeline-node":"operation",className:"absolute left-[3.5px] sm:left-[131.5px] top-1/2 -translate-y-1/2 w-[9px] h-[9px] rounded-full ring-4 ring-base-100 z-10",style:{backgroundColor:We.color},"aria-hidden":"true"}),l.jsx("div",{className:"pl-6 sm:pl-5 min-w-0 flex justify-start",children:Fe?l.jsxs("div",{className:"w-[80%] max-w-none bg-base-100 rounded-lg border border-base-content/10 border-l-[3px] border-l-primary/70 transition-colors relative",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 px-2.5 py-1.5 min-h-[38px]",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx(oy,{agentId:X.agent||Q.source,model:X.model||Q.model,timestamp:Q.timestamp,tooltipId:Se}),l.jsx("span",{className:"font-mono text-xs text-base-content/60 truncate",children:X.model}),l.jsx("span",{className:"font-mono text-xs text-base-content/90 truncate min-w-0",children:sy(X.payload||X.title)})]}),l.jsxs("div",{className:"flex items-center gap-2 shrink-0 font-mono text-[11px] text-base-content/60",children:[l.jsxs("span",{children:["📤 ",Je(X.outputTokens)]}),de?l.jsx("button",{type:"button","aria-label":fe?"Collapse response":"Expand response","aria-expanded":fe,"aria-controls":Te,onClick:()=>k(Q.key,X.seq),className:"p-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 inline-flex items-center justify-center text-base-content/60 hover:text-base-content transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary rounded",children:l.jsx("span",{className:`text-xs font-mono transition-transform duration-150 ${fe?"rotate-90":""}`,"aria-hidden":"true",children:"›"})}):null]})]}),fe&&X.payload&&l.jsx("div",{id:Te,className:"p-3 bg-[#0d141f] text-slate-100 font-mono text-xs whitespace-pre-wrap overflow-x-auto rounded-b-lg border-t border-base-content/10",children:X.payload})]}):l.jsxs("div",{className:"w-[80%] max-w-none bg-base-100 rounded-lg border border-base-content/10 border-l-[3px] transition-colors relative",style:{borderLeftColor:We.color},children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 px-2.5 py-1.5 min-h-[38px]",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx(oy,{agentId:X.agent||Q.source,model:X.model||Q.model,timestamp:Q.timestamp,tooltipId:Se}),l.jsx(vH,{title:We.label,freshInputTokens:X.freshInputTokens,cacheReadTokens:X.cacheReadTokens,outputTokens:X.outputTokens,color:We.color,tooltipId:H}),X.title&&X.title.trim().length>0?l.jsx("span",{className:"font-mono text-xs font-semibold text-base-content/90 truncate min-w-0",title:X.title,children:X.title}):null]}),l.jsxs("div",{className:"flex items-center gap-2 shrink-0 font-mono",children:[X.exitCode!==null&&l.jsxs("span",{className:`px-1.5 py-0.5 rounded text-[10px] font-bold ${X.exitCode===0?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30":"bg-error/20 text-error border border-error/30"}`,children:["EXIT_CODE=",X.exitCode]}),de?l.jsx("button",{type:"button","aria-label":fe?"Collapse operation payload":"Expand operation payload","aria-expanded":fe,"aria-controls":Te,onClick:()=>k(Q.key,X.seq),className:"p-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 inline-flex items-center justify-center text-base-content/60 hover:text-base-content transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary rounded",children:l.jsx("span",{className:`text-xs font-mono transition-transform duration-150 ${fe?"rotate-90":""}`,"aria-hidden":"true",children:"›"})}):null]})]}),fe&&X.payload&&l.jsx("div",{id:Te,className:"p-3 bg-[#0d141f] text-slate-100 font-mono text-xs whitespace-pre-wrap overflow-x-auto rounded-b-lg border-t border-base-content/10",children:X.payload})]})})]},Ba(Q.key,X.seq))})]},Q.key)})})]})},ly={read:"#10b981",write:"#eab308",bash:"#3b82f6",search:"#a855f7",mcp:"#6366f1",other:"#64748b"},Rr=e=>Math.round(e).toLocaleString();function uy(e){return e?e.replace(/^\/?(Users|home)\/[^/]+\/[^/]+\/[^/]+\//,"")||e:""}function wH(e){const t=e.argsRaw,n=e.argsDigest;if(t)try{const r=JSON.parse(t);if(r&&typeof r=="object"){if(r.Subagents&&Array.isArray(r.Subagents)&&r.Subagents.length>0){const c=r.Subagents[0],p=c.Role||c.TypeName||"subagent",d=c.Prompt?` — ${String(c.Prompt).replace(/\s+/g," ").slice(0,80)}`:"",f=r.Subagents.length>1?` (+${r.Subagents.length-1} more)`:"";return`${p}${f}${d}`}if(r.Recipient||r.recipient){const c=r.Recipient||r.recipient,p=r.Message||r.message||"",d=p?`: ${String(p).replace(/\s+/g," ").slice(0,80)}`:"";return`→ ${c}${d}`}if(r.Role||r.TypeName||r.agent_name||r.agent){const c=r.Role||r.TypeName||r.agent_name||r.agent,p=r.Prompt||r.prompt||r.description||r.instruction||"";return p?`${c} — ${String(p).replace(/\s+/g," ").slice(0,80)}`:String(c)}const a=r.skill||r.skill_name||r.skillName||e.toolName.toLowerCase().includes("skill")&&(r.name||r.skill)||r.command_name||r.commandName;if(a&&typeof a=="string"){const c=r.args||r.prompt||r.input||r.parameters||"",p=c?` — ${String(c).replace(/\s+/g," ").slice(0,80)}`:"";return`${a}${p}`}if(typeof r.command=="string"&&(r.command.startsWith("/")||r.command.startsWith("sp:"))){const c=r.args||"",p=c?` — ${String(c).replace(/\s+/g," ").slice(0,80)}`:"";return`${r.command}${p}`}const s=r.Url||r.url;if(s&&typeof s=="string"&&/^https?:\/\//i.test(s))return s;const i=r.AbsolutePath||r.TargetFile||r.targetFile||r.path||r.file||r.filePath||r.file_path||r.filename||r.SearchDirectory||r.searchDirectory||r.uri||r.Uri;if(i&&typeof i=="string"){const c=uy(i);if(r.StartLine!==void 0&&r.EndLine!==void 0)return`${c} (L${r.StartLine}-${r.EndLine})`;if(r.StartLine!==void 0)return`${c} (L${r.StartLine}+)`;if(r.Instruction||r.Description){const p=String(r.Instruction||r.Description).replace(/\s+/g," ").slice(0,60);return`${c} — ${p}`}return c}const o=r.Query||r.query||r.Pattern||r.pattern||r.search_term;if(o&&typeof o=="string"){const c=r.SearchPath||r.searchPath||r.SearchDirectory||r.path,p=c?` in ${uy(String(c))}`:"";return`"${o}"${p}`}const u=r.CommandLine||r.command||r.cmd||r.script;if(u&&typeof u=="string")return u;if(r.ToolName||r.toolName){const c=r.ToolName||r.toolName;return`${r.ServerName||r.serverName?`${r.ServerName||r.serverName}: `:""}${c}`}for(const c of Object.keys(r)){const p=r[c];if(typeof p=="string"&&p.length>0&&!c.toLowerCase().includes("token")&&!c.toLowerCase().includes("action")&&!c.toLowerCase().includes("summary"))return/^[a-f0-9]{32,}$/i.test(p)?`${c}: ${p.slice(0,8)}…${p.slice(-6)}`:`${c}: ${p.replace(/\s+/g," ").slice(0,80)}`}}}catch{return/^[a-f0-9]{32,}$/i.test(t.trim())?`${t.trim().slice(0,8)}…${t.trim().slice(-6)}`:t}return n?/^[a-f0-9]{32,}$/i.test(n.trim())?`digest: ${n.trim().slice(0,8)}…${n.trim().slice(-6)}`:n:"—"}const NH=({item:e,categoryColor:t})=>{const[n,r]=g.useState(!1),[a,s]=g.useState(!1),[i,o]=g.useState(!1),u=g.useRef(null),c=g.useMemo(()=>{if(!e.argsRaw)return null;try{const y=JSON.parse(e.argsRaw);return JSON.stringify(y,null,2)}catch{return e.argsRaw}},[e.argsRaw]),p=async y=>{if(y.stopPropagation(),!!c)try{await navigator.clipboard.writeText(c),o(!0),setTimeout(()=>o(!1),2e3)}catch{}},d=()=>{u.current&&(clearTimeout(u.current),u.current=null)},f=()=>{d(),r(!0)},m=()=>{a||(d(),u.current=setTimeout(()=>{r(!1)},150))},b=y=>{y.stopPropagation(),s(v=>!v),r(!0)},E=n||a,x=e.status==="error";return l.jsxs("div",{className:"relative inline-flex items-center",children:[l.jsx("button",{type:"button","aria-describedby":`tool-tooltip-${e.seq}`,"aria-expanded":E,className:"px-2 py-0.5 rounded-md text-[11px] font-mono font-bold text-white shrink-0 tracking-wide cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-primary shadow-xs transition-opacity hover:opacity-90",style:{backgroundColor:t},onClick:b,onMouseEnter:f,onMouseLeave:m,onFocus:()=>{d(),r(!0)},onBlur:()=>{a||r(!1)},onKeyDown:y=>{y.key==="Escape"&&(s(!1),r(!1))},"data-testid":`tool-tag-${e.seq}`,children:e.toolName}),E&&l.jsxs("div",{id:`tool-tooltip-${e.seq}`,role:"tooltip","data-testid":`tool-tooltip-${e.seq}`,"data-inspector-tooltip":"true",className:"absolute left-0 top-full mt-2 z-50 w-[880px] max-w-[95vw] bg-base-300 border border-base-content/20 shadow-2xl rounded-xl p-4 text-xs font-mono text-base-content backdrop-blur-md flex flex-col gap-3 pointer-events-auto select-text cursor-default",onMouseEnter:()=>{d(),r(!0)},onMouseLeave:m,onClick:y=>y.stopPropagation(),onKeyDown:y=>{y.key==="Escape"&&(s(!1),r(!1)),y.stopPropagation()},children:[l.jsxs("div",{className:"flex items-center justify-between border-b border-base-content/10 pb-2.5",children:[l.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[l.jsx("span",{className:"px-2.5 py-0.5 rounded-md text-xs font-bold text-white shrink-0 tracking-wide",style:{backgroundColor:t},children:e.toolName}),l.jsxs("span",{className:"text-xs text-base-content/50 font-bold",children:["#",e.seq]}),l.jsxs("span",{className:"text-[11px] text-base-content/60 uppercase tracking-wider",children:["(",e.category,")"]})]}),l.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[l.jsx("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-bold uppercase tracking-wider ${x?"bg-error/20 text-error":"bg-success/20 text-success"}`,children:e.status}),a&&l.jsx("button",{type:"button",className:"text-base-content/50 hover:text-base-content text-xs p-1 leading-none rounded hover:bg-base-content/10 cursor-pointer",onClick:y=>{y.stopPropagation(),s(!1),r(!1)},title:"Close tooltip",children:"✕"})]})]}),e.errorText&&l.jsxs("div",{className:"bg-error/10 text-error border border-error/20 rounded-lg p-2.5 text-xs",children:[l.jsx("span",{className:"font-bold block mb-1",children:"Execution Error:"}),l.jsx("pre",{className:"font-mono text-[11px] whitespace-pre-wrap max-h-36 overflow-y-auto",children:e.errorText})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-[11px] font-semibold text-base-content/70",children:"Arguments (raw)"}),c&&l.jsx("button",{type:"button",className:"px-2 py-0.5 rounded text-[10px] font-mono text-base-content/70 hover:text-base-content hover:bg-base-content/10 transition-colors cursor-pointer border border-base-content/10",onClick:p,children:i?"✓ Copied":"Copy"})]}),c?l.jsx("pre",{className:"bg-base-100 p-3 rounded-lg text-[11px] font-mono overflow-x-auto max-h-60 border border-base-content/10 whitespace-pre-wrap break-all text-base-content/90",children:c}):l.jsxs("div",{className:"p-2.5 bg-base-100/50 rounded-lg text-xs text-base-content/50 italic border border-base-content/10",children:["Raw payload omitted at import; digest available: ",e.argsDigest??"—"]}),e.argsDigest&&e.argsDigest!==e.argsRaw&&l.jsxs("div",{className:"text-[10px] text-base-content/50 truncate mt-0.5",children:[l.jsx("span",{className:"font-semibold",children:"Digest: "}),e.argsDigest]})]}),l.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 text-xs font-mono bg-base-200/70 p-2.5 rounded-lg border border-base-content/10",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"DURATION"}),l.jsx("span",{className:"text-[11px]",children:e.durationMs!==null?`${e.durationMs} ms (${e.durationSource})`:`— (${e.durationSource})`})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"TIMESTAMP"}),l.jsx("span",{className:"text-[11px] truncate block",children:e.ts??"—"})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"SOURCE / MODEL"}),l.jsxs("span",{className:"text-[11px] truncate block",title:`${e.source} / ${e.model??"—"}`,children:[e.source," / ",e.model??"—"]})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"SESSION ID"}),l.jsx("span",{className:"text-[11px] truncate block",title:e.sessionId,children:e.sessionId})]}),e.callId&&l.jsxs("div",{className:"col-span-2 md:col-span-4",children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"CALL ID"}),l.jsx("span",{className:"text-[11px] truncate block",title:e.callId,children:e.callId})]}),l.jsxs("div",{className:"col-span-2 md:col-span-4 pt-1 border-t border-base-content/10",children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"TOKEN LOAD (SHARE)"}),l.jsxs("span",{className:"text-[11px]",children:["Billed: ",Rr(e.tokens.billedTokens)," (Fresh:"," ",Rr(e.tokens.freshInputTokens),", Cache:"," ",Rr(e.tokens.cacheReadTokens),", Output: ",Rr(e.tokens.outputTokens),")"]})]})]})]})]})},gw=({data:e,loading:t=!1,error:n=null,mode:r="session",onModeChange:a=()=>{},sessionId:s,sessionSource:i,availableSessions:o=[],onSelectSession:u=()=>{},toolNames:c=[],onToolNamesChange:p=()=>{},status:d="all",onStatusChange:f=()=>{},search:m="",onSearchChange:b=()=>{}})=>{const E=e?.items??[],x=e?.scope,y=g.useMemo(()=>{const T=new Set;for(const N of E)T.add(N.toolName);return Array.from(T).sort()},[E]),v=T=>{c.includes(T)?p(c.filter(N=>N!==T)):p([...c,T])};return l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsxs("div",{className:"bg-base-200/60 rounded-xl p-4 border border-base-content/10 flex flex-col gap-3",children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l.jsxs("div",{className:"inline-flex bg-base-300 p-0.5 rounded-lg text-xs",children:[l.jsx("button",{type:"button",className:`px-3 py-1 font-semibold rounded-md transition-all ${r==="session"?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>a("session"),children:"Single Session"}),l.jsx("button",{type:"button",className:`px-3 py-1 font-semibold rounded-md transition-all ${r==="consolidated"?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>a("consolidated"),children:"Consolidated Stream"})]}),r==="session"&&l.jsx("select",{className:"bg-base-300 border border-base-content/20 rounded-lg px-2 py-1 text-xs font-mono max-w-xs focus:outline-none focus:ring-1 focus:ring-primary",value:s?`${i??""}:${s}`:"",onChange:T=>{const N=T.target.value,[D,...A]=N.split(":");D&&A.length>0&&u(D,A.join(":"))},children:o.map(T=>l.jsxs("option",{value:`${T.source}:${T.id}`,children:["[",T.source,"] ",T.id.slice(0,16),"... (",T.model,")"]},`${T.source}:${T.id}`))})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-xs font-mono text-base-content/80",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50",children:"Calls: "}),l.jsx("span",{className:"font-bold text-base-content","data-testid":"tool-scope-calls",children:x?.totalCalls??0})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50",children:"Unique Tools: "}),l.jsx("span",{className:"font-bold text-base-content","data-testid":"tool-scope-unique",children:x?.uniqueTools??0})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50",children:"Errors: "}),l.jsxs("span",{className:`font-bold ${(x?.errorCount??0)>0?"text-error":"text-success"}`,"data-testid":"tool-scope-errors",children:[x?.errorCount??0," (",Math.round((x?.errorRate??0)*100),"%)"]})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50",children:"Mean Duration: "}),l.jsx("span",{className:"font-bold text-base-content","data-testid":"tool-scope-duration",children:x?.meanDurationMs?`${x.meanDurationMs} ms`:"—"}),(x?.durationUnmeasured??0)>0&&l.jsxs("span",{className:"text-xs text-base-content/50 ml-1",children:["(",x?.durationUnmeasured," unmeasured)"]})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50",children:"Tokens: "}),l.jsx("span",{className:"font-bold text-base-content","data-testid":"tool-scope-tokens",children:x?Rr(x.tokens.billedTokens):0})]})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 pt-2 border-t border-base-content/10",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs text-base-content/60 font-semibold",children:"Status:"}),l.jsx("div",{className:"inline-flex bg-base-300 p-0.5 rounded-lg text-xs",children:["all","ok","error"].map(T=>l.jsx("button",{type:"button",className:`px-2.5 py-0.5 text-xs font-medium rounded-md transition-all ${d===T?"bg-base-content text-base-100 font-bold shadow-xs":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>f(T),children:T.toUpperCase()},T))})]}),l.jsx("div",{className:"flex-1 max-w-md",children:l.jsx("input",{type:"text",className:"bg-base-300 border border-base-content/20 rounded-lg px-2.5 py-1 w-full text-xs font-mono focus:outline-none focus:ring-1 focus:ring-primary",placeholder:"Search tool arguments, digest, or error text...",value:m,onChange:T=>b(T.target.value)})})]}),y.length>0&&l.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pt-1",children:[l.jsx("span",{className:"text-[11px] text-base-content/50 font-semibold",children:"Tools:"}),y.map(T=>{const N=c.includes(T);return l.jsx("button",{type:"button","data-testid":`tool-filter-${T}`,className:`px-2 py-0.5 rounded-full text-[11px] font-mono transition-all border ${N?"bg-primary text-primary-content border-primary font-bold shadow-xs":"bg-base-300 text-base-content/80 border-base-content/10 hover:border-base-content/30"}`,onClick:()=>v(T),children:T},T)}),c.length>0&&l.jsxs("button",{type:"button",className:"text-[11px] text-base-content/60 hover:text-base-content underline ml-1",onClick:()=>p([]),children:["Clear (",c.length,")"]})]})]}),e?.truncated&&l.jsx("div",{className:"bg-warning/10 text-warning border border-warning/20 p-3 rounded-lg text-xs font-medium",children:l.jsxs("span",{children:["Showing the first ",E.length," tool calls. Refine your filters or search to narrow the scope."]})}),n&&l.jsx("div",{className:"bg-error/10 text-error border border-error/20 p-3 text-xs rounded-xl",children:l.jsx("span",{children:n})}),t&&E.length===0&&l.jsx("div",{className:"flex flex-col gap-2 animate-pulse",children:[1,2,3,4,5].map(T=>l.jsx("div",{className:"h-14 bg-base-200 rounded-xl border border-base-content/5"},T))}),!t&&!n&&E.length===0&&l.jsxs("div",{className:"bg-base-200/40 rounded-xl border border-base-content/10 p-12 text-center text-base-content/60",children:[l.jsx("span",{className:"text-3xl block mb-2",children:"🔍"}),l.jsx("p",{className:"text-sm font-semibold",children:"No tool calls found"}),l.jsx("p",{className:"text-xs mt-1",children:c.length>0||d!=="all"||m?"No tool calls match your active filter criteria.":"No tool invocations recorded for this scope."})]}),E.length>0&&l.jsx("div",{className:"flex flex-col gap-2 w-full",children:E.map(T=>{const N=`${T.sessionId}:${T.messageHash}:${T.toolSeq}`,D=ly[T.category]??ly.other,A=T.status==="error";return l.jsxs("div",{className:"w-full text-left group p-3 rounded-xl border border-base-content/10 hover:border-base-content/30 hover:bg-base-200/50 bg-base-100 transition-all flex items-center justify-between gap-3 relative","data-testid":`tool-item-${T.seq}`,children:[l.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[l.jsxs("span",{className:"text-xs font-mono text-base-content/40 font-bold min-w-[28px]",children:["#",T.seq]}),l.jsx(NH,{item:T,categoryColor:D}),l.jsx("span",{className:"text-xs font-mono text-base-content/70 truncate min-w-0 flex-1",title:T.argsRaw||T.argsDigest||"",children:wH(T)})]}),l.jsxs("div",{className:"flex items-center gap-3 shrink-0 text-xs font-mono",children:[l.jsx("span",{className:"text-base-content/70",title:`Duration source: ${T.durationSource}`,children:T.durationMs!==null?`${T.durationMs} ms`:"—"}),l.jsxs("span",{className:"text-base-content/50 text-[11px]",title:`Tokens: ${Rr(T.tokens.freshInputTokens)} fresh input, ${Rr(T.tokens.cacheReadTokens)} cache read, ${Rr(T.tokens.outputTokens)} output`,children:[Rr(T.tokens.billedTokens)," tok"]}),l.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-bold uppercase tracking-wider ${A?"bg-error/20 text-error":"bg-success/20 text-success"}`,children:T.status})]})]},N)})})]})},AH=[{id:"summary",label:"Summary",component:fw},{id:"timeline",label:"Timeline",component:hw},{id:"tool-using",label:"Tool Using",component:gw},{id:"sessions",label:"Sessions",component:dw},{id:"insights",label:"Insights",component:cw},{id:"sources",label:"Sources",component:pw}],Oo=(e,t)=>{const n=new Map;for(const r of e)n.set(r.id,r);for(const r of t??[])n.has(r)||n.set(r,{id:r,label:r});return[...n.values()]},_H=e=>e.range==="1h"?"Last 1h":e.range==="4h"?"Last 4h":e.range==="24h"?"Last 24h":e.range==="7d"?"Last 7d":e.range==="30d"?"Last 30d":e.range==="all"?"All time":`${e.from?.slice(0,10)??"…"} → ${e.to?.slice(0,10)??"…"}`,Lo=e=>e instanceof Error?e.message:String(e),CH=()=>{const[e,t]=g.useState("summary"),[n,r]=g.useState({range:"4h",bucket:"auto",dimension:"model"}),[a,s]=g.useState("session"),[i,o]=g.useState(null),[u,c]=g.useState({taskWbs:"",runId:""}),[p,d]=g.useState("session"),[f,m]=g.useState([]),[b,E]=g.useState("all"),[x,y]=g.useState(""),[v,T]=g.useState(""),[N,D]=g.useState(1),[A,S]=g.useState("start"),[w,R]=g.useState("desc"),[C,U]=g.useState(void 0),[k,j]=g.useState(void 0),[W,$]=g.useState(void 0),[ee,me]=g.useState(void 0),[se,xe]=g.useState(void 0),[O,te]=g.useState(void 0),[le,L]=g.useState([]),[ke,Re]=g.useState(!1),[Q,_e]=g.useState(!0),[ue,X]=g.useState(null),[We,fe]=g.useState(!0),[de,Te]=g.useState(null),[Se,H]=g.useState(!0),[Fe,Ke]=g.useState(null),[Xe,Pt]=g.useState(!1),[dt,lt]=g.useState(null),[Kt,it]=g.useState(!1),[Le,rt]=g.useState(null),[Z,ie]=g.useState(!1),[Ce,Oe]=g.useState(null);g.useEffect(()=>{let ae=!0;return _e(!0),X(null),fe(!0),Te(null),(async()=>{const[ge,tt]=await Promise.allSettled([rn.history.getSummary(n),rn.history.getInsights(n)]);ae&&(ge.status==="fulfilled"&&ge.value?.data?U(ge.value.data):X("Failed to load summary"),tt.status==="fulfilled"&&tt.value?.data?xe(tt.value.data):Te("Failed to load insights"),_e(!1),fe(!1))})(),()=>{ae=!1}},[n]),g.useEffect(()=>{let ae=!0;return H(!0),Ke(null),(async()=>{try{const ge=await rn.history.getSources();if(!ae)return;ge?.data?te(ge.data):Ke("Failed to load sources")}catch(ge){ae&&Ke(Lo(ge))}finally{ae&&H(!1)}})(),()=>{ae=!1}},[]),g.useEffect(()=>{if(e!=="timeline"&&e!=="tool-using")return;let ae=!0;return Re(!0),(async()=>{try{const ge=await rn.history.getSessions({filter:n,page:1,pageSize:100,sortBy:"start",sortDir:"desc"});if(!ae)return;const tt=(ge?.data?.items??[]).map(G=>({id:G.id,source:G.source,model:G.model,start:G.start,tokenLoad:G.freshInputTokens+G.cacheReadTokens+G.outputTokens}));L(tt);const Dt=tt[0];Dt&&!i&&o({source:Dt.source,id:Dt.id})}catch{ae&&L([])}finally{ae&&Re(!1)}})(),()=>{ae=!1}},[e,n,i]),g.useEffect(()=>{if(e!=="sessions")return;let ae=!0;return Pt(!0),lt(null),(async()=>{try{const ge=await rn.history.getSessions({filter:n,page:N,pageSize:20,sortBy:A,sortDir:w});if(!ae)return;ge?.data?me(ge.data):lt("Failed to load sessions")}catch(ge){ae&<(Lo(ge))}finally{ae&&Pt(!1)}})(),()=>{ae=!1}},[e,n,N,A,w]),g.useEffect(()=>{if(e!=="timeline")return;if(a==="session"&&!i){const ge=le[0];!ke&&ge&&o({source:ge.source,id:ge.id});return}let ae=!0;return it(!0),rt(null),(async()=>{try{const ge=a==="session"&&i?await rn.history.getTimeline({mode:"session",source:i.source,sessionId:i.id}):await rn.history.getTimeline({mode:"consolidated",filter:n,...u.taskWbs?{taskWbs:u.taskWbs}:{},...u.runId?{runId:u.runId}:{}});if(!ae)return;ge?.data?j(ge.data):rt("Failed to load timeline")}catch(ge){ae&&rt(Lo(ge))}finally{ae&&it(!1)}})(),()=>{ae=!1}},[e,a,i,n,ke,le,u]),g.useEffect(()=>{const ae=setTimeout(()=>{T(x)},250);return()=>clearTimeout(ae)},[x]),g.useEffect(()=>{if(e!=="tool-using")return;if(p==="session"&&!i){const ge=le[0];!ke&&ge&&o({source:ge.source,id:ge.id});return}let ae=!0;return ie(!0),Oe(null),(async()=>{try{const ge=p==="session"&&i?{mode:"session",source:i.source,sessionId:i.id,toolNames:f.length>0?f:void 0,status:b,search:v||void 0}:{mode:"consolidated",filter:n,toolNames:f.length>0?f:void 0,status:b,search:v||void 0},tt=await rn.history.getToolSequence(ge);if(!ae)return;tt?.data?$(tt.data):Oe("Failed to load tool sequence")}catch(ge){ae&&Oe(Lo(ge))}finally{ae&&ie(!1)}})(),()=>{ae=!1}},[e,p,i,n,f,b,v,ke,le]);const Ve=(ae,ge)=>{o({source:ae,id:ge}),s("session"),t("timeline")},st=(ae,ge)=>{o({source:ae,id:ge}),d("session")},Rt=(ae,ge)=>{const tt=ge?{source:ge,id:ae}:ee?.items.find(Dt=>Dt.id===ae)??le.find(Dt=>Dt.id===ae);tt&&Ve(tt.source,tt.id)},Ct=async ae=>(await rn.history.triggerImport({mode:ae})).data,Nt=ue?"—":Q||C===void 0?"…":String(C.kpis.sessionsCount),Lt=Ce?"—":Z||W===void 0?"…":String(W.scope.totalCalls),re=de?"—":We||se===void 0?"…":String(se.loops.length),Ae=Fe?"—":Se||O===void 0?"…":String(O.agents.length),$e={summary:null,timeline:null,"tool-using":Lt,sessions:Nt,insights:re,sources:Ae},je=Fe?"—":Se?"…":O?.overview.lastImportedAt?new Date(O.overview.lastImportedAt).toLocaleString():"never imported",St=se?{count:se.loops.length,redundantCalls:se.loops.reduce((ae,ge)=>ae+Math.max(0,ge.repeats-1),0),wastedTokens:se.loops.reduce((ae,ge)=>ae+ge.wastedTokens,0)}:void 0,Xt=Oo(O?.agents.map(ae=>({id:ae.id,label:ae.name,color:ae.color}))??[],n.sources),Me=Oo(C?.topModels.map(ae=>({id:ae.id,label:ae.label,color:ae.color}))??[],n.models),pt=Oo(C?.topTools.map(ae=>({id:ae.id,label:ae.id}))??[],n.tools),Qe=Oo(C?.skillsUsed.map(ae=>({id:ae.id,label:ae.label,color:ae.color}))??[],n.skills),kt={rangeLabel:_H(n),sessionCount:ue?null:Q&&C===void 0?void 0:C?.kpis.sessionsCount,sourceCount:n.sources?.length??O?.agents.length};return l.jsxs("div",{className:"flex flex-col gap-4 p-4 max-w-[1600px] mx-auto w-full",children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-base-content/10 pb-3",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"text-2xl",children:"📊"}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"History"}),l.jsx("p",{className:"text-xs text-base-content/60",children:"Transcript telemetry, session traces, and prompt cache analytics"}),l.jsxs("p",{className:"livechip mt-1 inline-flex items-center gap-1.5 rounded-full border border-base-content/10 px-2 py-0.5 text-xs text-base-content/60 font-mono","data-testid":"history-last-import",role:"status",children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${Fe?"bg-error":"bg-emerald-400 animate-pulse"}`,"aria-hidden":"true"}),"last import ",je]})]})]}),l.jsx("div",{className:"flex items-center gap-1 bg-base-300 p-1 rounded-xl",children:AH.map(ae=>l.jsxs("button",{type:"button",className:`px-3 py-1.5 text-xs font-semibold rounded-lg transition-all ${e===ae.id?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>t(ae.id),children:[ae.label,$e[ae.id]!==null&&l.jsx("span",{className:"ml-1.5 px-1.5 py-0.5 rounded-full text-[10px] font-mono bg-base-content/10","data-testid":`history-badge-${ae.id}`,children:$e[ae.id]})]},ae.id))})]}),e!=="sources"&&l.jsx(sH,{filter:n,onChange:r,sourceOptions:Xt,modelOptions:Me,toolOptions:pt,skillOptions:Qe,scope:kt}),l.jsxs("div",{className:"mt-2",children:[e==="summary"&&l.jsx(fw,{data:C,loading:Q,error:ue,dimension:n.dimension??"model",onDimensionChange:ae=>r(ge=>({...ge,dimension:ae})),bucket:n.bucket??"auto",onBucketChange:ae=>r(ge=>({...ge,bucket:ae})),loopSummary:St}),e==="timeline"&&l.jsx(hw,{data:k,loading:Kt,error:Le,mode:a,sessionId:i?.id,sessionSource:i?.source,availableSessions:le,onSelectSession:Ve,onModeChange:s,consolidatedTaskWbs:u.taskWbs,consolidatedRunId:u.runId,onConsolidatedScopeSubmit:c}),e==="tool-using"&&l.jsx(gw,{data:W,loading:Z,error:Ce,mode:p,onModeChange:d,sessionId:i?.id,sessionSource:i?.source,availableSessions:le,onSelectSession:st,toolNames:f,onToolNamesChange:m,status:b,onStatusChange:E,search:x,onSearchChange:y}),e==="sessions"&&l.jsx(dw,{data:ee,loading:Xe,error:dt,sortBy:A,sortDir:w,page:N,pageSize:20,onSortChange:ae=>{A===ae?R(ge=>ge==="asc"?"desc":"asc"):(S(ae),R("desc"))},onPageChange:D,onSelectSession:Ve}),e==="insights"&&l.jsx(cw,{data:se,loading:We,error:de,cacheHitTrend:C?.kpiTrend??[],onSelectSession:Rt}),e==="sources"&&l.jsx(pw,{data:O,loading:Se,error:Fe,onTriggerImport:Ct})]})]})},kH={id:"history",name:"History",icon:"📊",route:"history",component:CH,sidebarLabel:"History",order:3},IH=Object.freeze(Object.defineProperty({__proto__:null,module:kH},Symbol.toStringTag,{value:"Module"}));function RH(e){if(!e||typeof e!="object"||!("teams"in e))return null;const t=e.teams;if(!Array.isArray(t))return null;const n=[];for(const r of t){if(!r||typeof r!="object")continue;const a=r;if(typeof a.teamId!="string"||typeof a.name!="string"||!Array.isArray(a.members))continue;const s=[];for(const i of a.members){if(!i||typeof i!="object")continue;const o=i;typeof o.id!="string"||typeof o.type!="string"||typeof o.status!="string"||s.push({id:o.id,type:o.type,status:o.status,...typeof o.model=="string"&&o.model.length>0?{model:o.model}:{},...typeof o.autoStart=="boolean"?{autoStart:o.autoStart}:{},...typeof o.pid=="number"?{pid:o.pid}:{},...typeof o.role=="string"&&o.role.length>0?{role:o.role}:{},...typeof o.executor=="string"&&o.executor.length>0?{executor:o.executor}:{}})}n.push({teamId:a.teamId,name:a.name,workDir:typeof a.workDir=="string"?a.workDir:null,isCurrentProject:a.isCurrentProject===!0,members:s})}return n}const DH=()=>`${_t()}/team/teams`,OH=5e3;function Ns(){const[e,t]=g.useState([]),[n,r]=g.useState(null),a=g.useRef(!0),s=g.useCallback(async()=>{try{const i=await wt(new Request(DH()));if(!i.ok)throw new Error(`teams fetch failed: ${i.status}`);const o=await i.json(),u=RH(o);u&&a.current&&(t(u),r(null))}catch(i){a.current&&r(i instanceof Error?i.message:String(i))}},[]);return g.useEffect(()=>{a.current=!0,s();const i=setInterval(s,OH);return()=>{a.current=!1,clearInterval(i)}},[s]),{teams:e,error:n,reload:s}}const LH=(e=50)=>`${_t()}/messages?limit=${e}`,FH=()=>`${_t()}/events/planning`,MH=new Set(["message.sent","message.replied"]);function cy(e,t){if(e&&typeof e=="object"){const n=e;return{agentId:typeof n.agentId=="string"&&n.agentId.length>0?n.agentId:t,...typeof n.teamId=="string"&&n.teamId?{teamId:n.teamId}:{},...typeof n.teamName=="string"&&n.teamName?{teamName:n.teamName}:{},...typeof n.memberLabel=="string"&&n.memberLabel?{memberLabel:n.memberLabel}:{},...typeof n.agentType=="string"&&n.agentType?{agentType:n.agentType}:{}}}return{agentId:t}}function PH(e){if(!e||typeof e!="object"||!("messages"in e))return null;const t=e.messages;if(!Array.isArray(t))return null;const n=[];for(const r of t){if(!r||typeof r!="object")continue;const a=r;if(typeof a.id!="string"||typeof a.toId!="string"||typeof a.body!="string"||typeof a.status!="string"||typeof a.createdAt!="string")continue;const s=a.fromId===null||a.fromId===void 0?null:typeof a.fromId=="string"?a.fromId:null;n.push({id:a.id,fromId:s,toId:a.toId,body:a.body,status:a.status,createdAt:a.createdAt,inReplyTo:typeof a.inReplyTo=="string"?a.inReplyTo:null,hasReply:a.hasReply===!0,replyCount:typeof a.replyCount=="number"&&Number.isFinite(a.replyCount)?a.replyCount:0,...s!==null?{from:cy(a.from,s)}:{},to:cy(a.to,a.toId)})}return n}function bw(e,t){return e.filter(n=>n.to.teamId===t||n.from?.teamId===t)}function vb(){const[e,t]=g.useState(null),[n,r]=g.useState(null),a=g.useCallback(async s=>{try{const i=await wt(new Request(LH(),{signal:s}));if(!i.ok)throw new Error(`messages fetch failed: ${i.status}`);const o=PH(await i.json());o&&t(o)}catch(i){if(s?.aborted)return;r(i instanceof Error?i.message:String(i))}},[]);return g.useEffect(()=>{const s=new AbortController;a(s.signal);const i=setInterval(()=>{a(s.signal)},1e4);return()=>{s.abort(),clearInterval(i)}},[a]),g.useEffect(()=>{if(typeof EventSource>"u")return;const s=new AbortController,i=new EventSource(FH());return i.onmessage=o=>{try{const u=JSON.parse(o.data);if(u===null||typeof u!="object")return;const c=u.eventName;typeof c=="string"&&MH.has(c)&&a(s.signal)}catch{}},()=>{s.abort(),i.close()}},[a]),{messages:e,error:n}}function wb({messages:e}){return e.length===0?l.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic","data-message-feed-empty":!0,children:"No messages yet."}):l.jsx("ul",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:e.map(t=>{const n=t.from?[t.from.memberLabel??t.from.agentId,t.from.agentType].filter(Boolean).join(" · "):t.fromId??"system",r=[t.to.memberLabel??t.to.agentId,t.to.agentType].filter(Boolean).join(" · "),a=t.from?.teamName,s=t.to.teamName,i=t.status==="injected"?"injected":t.status==="queued"?"queued":null;return l.jsxs("li",{className:"p-2 bg-spur-surface-2 border border-spur-border rounded-xl text-sm",children:[l.jsxs("div",{className:"flex items-center gap-2 text-spur-text-muted text-xs",children:[l.jsxs("span",{"data-message-route":!0,className:"truncate",children:[a&&l.jsxs("span",{className:"text-xs opacity-70",children:[a," / "]}),l.jsx("span",{children:n}),l.jsx("span",{className:"mx-1",children:"→"}),s&&l.jsxs("span",{className:"text-xs opacity-70",children:[s," / "]}),l.jsx("span",{children:r})]}),i&&l.jsx("span",{className:`text-xs px-1 rounded ${i==="injected"?"bg-success/20 text-success":"bg-warning/20 text-warning"}`,"data-message-delivery":!0,children:i}),l.jsx("span",{className:`text-xs ${t.hasReply?"text-info":"text-spur-text-muted"}`,"data-message-reply-badge":!0,"data-message-reply-state":t.hasReply?"replied":"awaiting",children:t.hasReply?t.replyCount>1?`Replied (${t.replyCount})`:"Replied":"Awaiting reply"}),l.jsx("span",{className:"ml-auto font-mono text-xs text-spur-text-muted",children:t.createdAt})]}),l.jsx("p",{className:"text-spur-text mt-1 whitespace-pre-wrap break-words",children:t.body})]},t.id)})})}function jH({teamId:e}){const{messages:t,error:n}=vb();if(n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load messages: ",n]});if(t===null)return l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading messages…"});const r=e?bw(t,e):t;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-spur-bg","data-all-tab":!0,children:[l.jsx("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0",children:l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:e?`Message · ${e}`:"Message · all teams"})}),l.jsx(wb,{messages:r})]})}function BH(e,t){return e.filter(n=>n.fromId===t||n.toId===t)}function UH({agentId:e}){const{messages:t,error:n}=vb();if(n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load messages: ",n]});if(t===null)return l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading messages…"});const r=BH(t,e);return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-spur-bg","data-agent-tab":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0 flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Messages"}),l.jsx("span",{className:"font-mono text-xs text-spur-text-muted",children:e})]}),l.jsx(wb,{messages:r})]})}const dy="supervisor";function $H(e){return e.fromId===dy||e.toId===dy}function zH({teamId:e}){const{messages:t,error:n}=vb();if(n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load messages: ",n]});if(t===null)return l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading messages…"});const r=t.filter($H),a=e?bw(r,e):r;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-spur-bg","data-supervisor-tab":!0,children:[l.jsx("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0",children:l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Message · supervisor"})}),l.jsx(wb,{messages:a})]})}const HH=[{id:"all",label:"All"},{id:"supervisor",label:"Supervisor"}],Sl="agent-";function GH(e,t,n){if(e==="all")return l.jsx(jH,{teamId:n});if(e==="supervisor")return l.jsx(zH,{teamId:n});if(e.startsWith(Sl)){const r=e.slice(Sl.length);if(t.includes(r))return l.jsx(UH,{agentId:r})}return null}function Ew({teamId:e}){const{teams:t}=Ns(),[n,r]=g.useState(""),[a,s]=g.useState("all");g.useEffect(()=>{e||!n&&t.length>0&&r(t[0]?.teamId??"")},[e,t,n]);const i=e??n,o=t.find(d=>d.teamId===i)??t[0]??null,u=o?o.members.map(d=>d.id):[],c=a==="all"||a==="supervisor"||u.includes(a.slice(Sl.length))?a:"all",p=g.useMemo(()=>{const d=u.map(f=>({id:`${Sl}${f}`,label:f}));return[...HH,...d]},[u]);return l.jsxs("div",{className:"inbox flex flex-col h-full overflow-hidden bg-spur-bg","data-inbox-shell":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0 flex items-center justify-between",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Inbox"}),!e&&t.length>0&&l.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"inbox-team-select",children:[l.jsx("span",{className:"text-spur-text-muted",children:"Team"}),l.jsxs(Jr,{id:"inbox-team-select",variant:"bordered",size:"sm",value:o?.teamId??"",onChange:d=>{r(d.target.value),s("all")},"data-inbox-team-select":!0,children:[l.jsx("option",{value:"",children:"Select team…"}),t.map(d=>l.jsx("option",{value:d.teamId,children:d.name},d.teamId))]})]})]}),l.jsx("div",{role:"tablist","aria-label":"Inbox tabs",className:"flex items-center gap-1 px-2 py-1 border-b border-spur-border bg-spur-surface shrink-0",children:p.map(d=>{const f=d.id===c;return l.jsx("button",{type:"button",role:"tab","aria-selected":f,"aria-controls":`inbox-tab-panel-${d.id}`,id:`inbox-tab-${d.id}`,onClick:()=>s(d.id),className:`px-3 py-1 rounded-lg text-xs font-medium transition-colors ${f?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-spur-surface-3"}`,"data-inbox-tab":!0,children:d.label},d.id)})}),l.jsx("div",{role:"tabpanel",id:`inbox-tab-panel-${c}`,"aria-labelledby":`inbox-tab-${c}`,className:"flex-1 overflow-hidden",children:GH(c,u,e)})]})}const WH={id:"inbox",name:"Inbox",icon:"💬",route:"inbox",component:Ew,sidebarLabel:"Inbox",order:1},VH=Object.freeze(Object.defineProperty({__proto__:null,module:WH},Symbol.toStringTag,{value:"Module"})),qH=["30s","5m","1h","24h","7d","all"],YH={"30s":3e4,"5m":5*6e4,"1h":60*6e4,"24h":1440*6e4,"7d":10080*6e4,all:null};function xw(e,t=Date.now()){const n=YH[e];if(n!=null)return new Date(t-n).toISOString()}function ZH(e){return e.selectedPrefixes.size>0||e.searchQuery.trim()!==""||e.searchScope!=="all"||e.severity!=="all"||e.tierFilter!=="all"||e.runId.trim()!==""}function py({label:e,value:t,onChange:n,options:r}){return l.jsxs("fieldset",{className:"flex items-center gap-0.5 bg-base-100 border border-base-content/20 rounded-md p-0.5","aria-label":e,children:[l.jsx("legend",{className:"sr-only",children:e}),r.map(a=>{const s=a.value===t;return l.jsxs("label",{className:`flex-1 text-[11px] text-center px-2 py-0.5 rounded cursor-pointer transition-all ${s?"bg-primary text-primary-content font-bold shadow-xs":"text-base-content/70 hover:bg-base-content/10"}`,children:[l.jsx("input",{type:"radio",name:`segmented-${e}`,value:a.value,checked:s,onChange:()=>n(a.value),className:"sr-only"}),a.label]},a.value)})]})}function KH({timeRange:e,onTimeRangeChange:t,filters:n,onFiltersChange:r,onClearFilters:a,prefixOptions:s,getPrefixColor:i,liveEnabled:o,onToggleLive:u,shownCount:c,totalCount:p,actions:d}){const f=g.useMemo(()=>{let E=0;return n.selectedPrefixes.size>0&&(E+=n.selectedPrefixes.size),n.searchQuery.trim()!==""&&(E+=1),n.severity!=="all"&&(E+=1),n.tierFilter!=="all"&&(E+=1),n.runId.trim()!==""&&(E+=1),E},[n]),m=ZH(n),b=E=>{r(x=>{const y=new Set(x.selectedPrefixes);return y.has(E)?y.delete(E):y.add(E),{...x,selectedPrefixes:y}})};return l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-3 bg-base-200/50 rounded-xl border border-base-content/10 shrink-0",children:[l.jsxs("fieldset",{className:"flex items-center gap-1 bg-base-200 p-1 rounded-lg border-0 m-0","aria-label":"Time range presets",children:[l.jsx("legend",{className:"sr-only",children:"Time range presets"}),qH.map(E=>{const x=e===E;return l.jsx("button",{type:"button",onClick:()=>t(E),"aria-pressed":x,className:`px-2.5 py-1 text-xs font-semibold rounded-md transition-all cursor-pointer ${x?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,children:E==="all"?"All":E},E)})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l.jsxs("span",{"aria-live":"polite",className:"text-xs font-mono text-base-content/60 whitespace-nowrap","data-testid":"observability-result-count",children:[c," of ",p," shown"]}),l.jsxs("details",{className:"relative inline-block","data-testid":"observability-filter-disclosure",children:[l.jsxs("summary",{className:"px-2.5 py-1 text-xs font-medium rounded-lg border border-base-content/20 bg-base-200 text-base-content/80 hover:bg-base-300 transition-colors cursor-pointer list-none flex items-center gap-1.5 focus:outline-none focus:ring-2 focus:ring-primary/40","aria-label":"Toggle filter panel",children:[l.jsx("span",{children:"🔍 Filter"}),f>0&&l.jsx("span",{className:"px-1.5 py-0.2 rounded-full text-[10px] font-bold bg-primary text-primary-content",children:f})]}),l.jsxs("div",{className:"absolute right-0 top-full z-30 p-3 shadow-xl bg-base-200 border border-base-content/10 rounded-xl w-80 sm:w-96 mt-2 flex flex-col gap-3",children:[l.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-base-content/10",children:[l.jsx("span",{className:"text-xs font-bold uppercase tracking-wide text-base-content/70",children:"Filters"}),m&&l.jsx("button",{type:"button",onClick:a,className:"text-xs text-error hover:underline cursor-pointer","aria-label":"Clear all filters",children:"Clear all"})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("label",{htmlFor:"filter-search-input",className:"text-[11px] font-semibold text-base-content/60",children:"Search"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs("select",{value:n.searchScope,onChange:E=>r(x=>({...x,searchScope:E.target.value})),className:"bg-base-100 border border-base-content/20 rounded px-2 py-1 text-xs text-base-content focus:outline-none focus:ring-2 focus:ring-primary/40 cursor-pointer","aria-label":"Search scope",children:[l.jsx("option",{value:"all",children:"all"}),l.jsx("option",{value:"name",children:"name"}),l.jsx("option",{value:"actor",children:"actor"}),l.jsx("option",{value:"payload",children:"payload"})]}),l.jsx(vi,{id:"filter-search-input",size:"sm",variant:"bordered",placeholder:`Search ${n.searchScope}…`,value:n.searchQuery,onChange:E=>r(x=>({...x,searchQuery:E.target.value})),className:"flex-1 input-xs","aria-label":`Search ${n.searchScope}`})]})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-[11px] font-semibold text-base-content/60",children:"Severity"}),l.jsx(py,{label:"Severity",value:n.severity,onChange:E=>r(x=>({...x,severity:E})),options:[{value:"all",label:"All"},{value:"info",label:"Info"},{value:"warning",label:"Warning"},{value:"error",label:"Error"}]})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-[11px] font-semibold text-base-content/60",children:"Tier"}),l.jsx(py,{label:"Tier",value:n.tierFilter,onChange:E=>r(x=>({...x,tierFilter:E})),options:[{value:"all",label:"All"},{value:"default",label:"Default"},{value:"diagnostic",label:"Diagnostic"}]})]}),s.length>0&&l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-[11px] font-semibold text-base-content/60",children:"Prefix"}),l.jsxs("fieldset",{className:"flex flex-wrap items-center gap-1.5 border-0 p-0 m-0","aria-label":"Filter by prefix",children:[l.jsx("legend",{className:"sr-only",children:"Filter by prefix"}),s.map(E=>{const x=n.selectedPrefixes.has(E),y=i(E);return l.jsxs("button",{type:"button",role:"switch","aria-checked":x,"aria-label":`Prefix ${E}${x?" (selected)":""}`,onClick:()=>b(E),className:`px-2 py-0.5 rounded-full text-[11px] font-mono border transition-colors cursor-pointer ${x?`${y} border-current bg-base-100 font-bold`:"text-base-content/60 border-base-content/20 hover:bg-base-100"}`,children:[E,".*"]},E)})]})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("label",{htmlFor:"filter-run-id-input",className:"text-[11px] font-semibold text-base-content/60",children:"Run ID"}),l.jsx(vi,{id:"filter-run-id-input",size:"sm",variant:"bordered",placeholder:"Filter by run id…",value:n.runId,onChange:E=>r(x=>({...x,runId:E.target.value})),className:"w-full input-xs","aria-label":"Filter by run id"})]})]})]}),l.jsx("button",{type:"button",onClick:u,className:`px-2.5 py-1 text-xs font-semibold rounded-lg border transition-all cursor-pointer flex items-center gap-1.5 ${o?"border-emerald-500/40 bg-emerald-500/10 text-emerald-500 hover:bg-emerald-500/20":"border-amber-500/40 bg-amber-500/10 text-amber-500 hover:bg-amber-500/20"}`,"aria-label":o?"Pause live event stream":"Resume live event stream","aria-pressed":o,children:l.jsx("span",{children:o?"⏸ Pause Live":"▶ Resume Live"})}),d]})]})}const es=[{key:"time",label:"Time",description:"Event timestamp",defaultVisible:!0,sortable:!0,colWidth:"w-36"},{key:"severity",label:"Severity",description:"Diagnostic severity level",defaultVisible:!0,sortable:!0,colWidth:"w-24"},{key:"event",label:"Event",description:"Event name with domain prefix",defaultVisible:!0,sortable:!0,colWidth:"w-[15%]"},{key:"summary",label:"Summary",description:"Rendered human summary",defaultVisible:!0,sortable:!0,colWidth:"w-[20%]"},{key:"correlation",label:"Correlation",description:"Entity or run correlation identifier",defaultVisible:!0,sortable:!0,colWidth:"w-[16%]"},{key:"outcome",label:"Outcome",description:"Execution result or state change",defaultVisible:!0,sortable:!0,colWidth:"w-28"},{key:"agent",label:"Agent",description:"Target or actor agent role",defaultVisible:!0,sortable:!0,colWidth:"w-28"},{key:"producer",label:"Producer",description:"Subsystem or source package",defaultVisible:!1,sortable:!1,colWidth:"w-[16%]"},{key:"action",label:"Action",description:"Action link or remediation command",defaultVisible:!1,sortable:!1,colWidth:"w-[15%]"},{key:"actor",label:"Actor",description:"Originating user or system actor",defaultVisible:!1,sortable:!1,colWidth:"w-24"}],XH=new Set(es.map(e=>e.key)),ea=["time","severity","event","summary","correlation","outcome","agent"],yw="spur:observability:columns:v1";function QH(e){if(!Array.isArray(e)||e.length===0)return[...ea];const t=new Set;for(const n of e)typeof n=="string"&&XH.has(n)&&t.add(n);return t.size===0?[...ea]:es.filter(n=>t.has(n.key)).map(n=>n.key)}function JH(e){try{const t=e??(typeof window<"u"?window.localStorage:void 0);if(!t)return[...ea];const n=t.getItem(yw);if(!n)return[...ea];const r=JSON.parse(n);return QH(r)}catch{return[...ea]}}function fy(e,t){try{const n=t??(typeof window<"u"?window.localStorage:void 0);if(!n)return;n.setItem(yw,JSON.stringify(e))}catch{}}function eG({visibleColumns:e,onVisibleColumnsChange:t}){const n=g.useMemo(()=>new Set(e),[e]),r=s=>{const i=new Set(n);if(i.has(s)){if(i.size<=1)return;i.delete(s)}else i.add(s);const o=es.filter(u=>i.has(u.key)).map(u=>u.key);t(o),fy(o)},a=()=>{const s=[...ea];t(s),fy(s)};return l.jsxs("details",{className:"relative inline-block","data-testid":"observability-column-customizer",children:[l.jsxs("summary",{className:"px-2.5 py-1 text-xs font-medium rounded-lg border border-base-content/20 bg-base-200 text-base-content/80 hover:bg-base-300 transition-colors cursor-pointer list-none flex items-center gap-1.5 focus:outline-none focus:ring-2 focus:ring-primary/40","aria-label":"Customize visible columns",children:[l.jsx("span",{children:"📊 Columns"}),l.jsxs("span",{className:"text-[10px] text-base-content/60 font-mono",children:["(",e.length,"/",es.length,")"]})]}),l.jsxs("div",{className:"absolute right-0 top-full z-30 p-3 shadow-xl bg-base-200 border border-base-content/10 rounded-xl w-64 mt-2 flex flex-col gap-2",children:[l.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-base-content/10",children:[l.jsx("span",{className:"text-xs font-bold uppercase tracking-wide text-base-content/70",children:"Columns"}),l.jsx("button",{type:"button",onClick:a,className:"text-xs text-primary hover:underline cursor-pointer","aria-label":"Reset columns to default",children:"Reset defaults"})]}),l.jsxs("fieldset",{className:"flex flex-col gap-1.5 border-0 p-0 m-0","aria-label":"Visible columns",children:[l.jsx("legend",{className:"sr-only",children:"Select visible columns"}),es.map(s=>{const i=n.has(s.key),o=i&&n.size===1,u=`observability-col-${s.key}`;return l.jsxs("label",{htmlFor:u,className:`flex items-center justify-between px-2 py-1 rounded-md text-xs transition-colors ${o?"opacity-60 cursor-not-allowed":"hover:bg-base-100 cursor-pointer text-base-content/90"}`,children:[l.jsxs("span",{className:"flex items-center gap-2",children:[l.jsx(ob,{id:u,size:"xs",variant:"primary",checked:i,disabled:o,onChange:()=>r(s.key),"aria-label":s.label}),l.jsx("span",{className:"font-medium",children:s.label})]}),s.defaultVisible&&l.jsx("span",{className:"text-[10px] text-base-content/50 uppercase",children:"default"})]},s.key)})]})]})]})}const tG=()=>`${_t()}/events/planning`,Dd=100;function vl(e){const t=`${_t()}/events/history`,n=[],r=e.limit??Dd;return n.push(`limit=${r}`),e.prefix&&n.push(`prefix=${encodeURIComponent(e.prefix)}`),e.names&&n.push(`names=${encodeURIComponent(e.names)}`),e.actor&&n.push(`actor=${encodeURIComponent(e.actor)}`),e.runId&&n.push(`runId=${encodeURIComponent(e.runId)}`),e.since&&n.push(`since=${encodeURIComponent(e.since)}`),e.cursor&&n.push(`cursor=${encodeURIComponent(e.cursor)}`),`${t}?${n.join("&")}`}const nG={workflow:"text-cyan-400",task:"text-emerald-400",feature:"text-emerald-400",agent:"text-amber-400",rule:"text-rose-400",message:"text-sky-400",process:"text-violet-400",queue:"text-orange-400",bus:"text-pink-400",api:"text-teal-400"},my="text-spur-text-muted";function Tw(e){return e?nG[e]??my:my}const Rc={selectedPrefixes:new Set,searchQuery:"",searchScope:"all",severity:"all",tierFilter:"all",runId:""};function rG(){const e=g.useRef([]),[t,n]=g.useState(0);g.useEffect(()=>{const a=window.setInterval(()=>{const s=Date.now()-6e4,i=e.current.filter(o=>o>=s);e.current=i,n(i.length)},1e3);return()=>window.clearInterval(a)},[]);const r=g.useCallback(()=>{const a=Date.now(),s=a-6e4,i=e.current.filter(o=>o>=s);i.push(a),e.current=i,n(i.length)},[]);return{rate:t,recordEvent:r}}function wl(e){if(e===null||typeof e!="object"||!("events"in e)||!("count"in e))return null;const t=e.events;if(!Array.isArray(t))return null;const n=e.count;if(typeof n!="number")return null;const r=e.nextCursor,a=typeof r=="string"?r:null,s=e.hasMore,i=typeof s=="boolean"?s:!1,o=[];for(const p of t){const d=aG(p);d&&o.push(d)}const u=e.catalog,c=Array.isArray(u)?sG(u):void 0;return{events:o,count:n,nextCursor:a,hasMore:i,...c?{catalog:c}:{}}}function aG(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.id!="string"||typeof t.eventName!="string"||typeof t.occurredAt!="string")return null;const n=typeof t.prefix=="string"?t.prefix:void 0,r=typeof t.renderer=="string"?t.renderer:void 0,a=t.actor;if(a!==null&&typeof a!="string")return null;const s=t.payload,i=typeof t.runId=="string"?t.runId:t.runId===null?null:void 0,o=typeof t.entityKind=="string"?t.entityKind:t.entityKind===null?null:void 0,u=typeof t.entityId=="string"?t.entityId:t.entityId===null?null:void 0,c=typeof t.sequence=="number"&&Number.isFinite(t.sequence)?t.sequence:t.sequence===null?null:void 0,p={id:t.id,eventName:t.eventName,occurredAt:t.occurredAt,actor:a,...n?{prefix:n}:{},...r?{renderer:r}:{}};if(s===null)return{...p,payload:null,view:Ta(t.eventName,null),...Nl(i,o,u,c)};if(typeof s!="object")return null;const d=s,f=d.schemaVersion===2?d:void 0;return{...p,payload:Sw(d),...f?{envelope:f}:{},view:Ta(t.eventName,d),...Nl(i,o,u,c)}}function Nl(e,t,n,r){const a={};return e!==void 0&&(a.runId=e),t!==void 0&&(a.entityKind=t),n!==void 0&&(a.entityId=n),r!==void 0&&(a.sequence=r),a}function sG(e){const t=[];for(const n of e){if(n===null||typeof n!="object")return;const r=n;if(typeof r.name!="string"||typeof r.prefix!="string"||typeof r.source!="string"||typeof r.renderer!="string")return;const a=typeof r.tier=="string"?r.tier:void 0,s={name:r.name,prefix:r.prefix,source:r.source,renderer:r.renderer,...a!==void 0?{tier:a}:{}};t.push(s)}return t}function iG(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.eventName!="string"||t.eventName.length===0||typeof t.occurredAt!="string")return null;const n=typeof t.prefix=="string"?t.prefix:void 0,r=typeof t.renderer=="string"?t.renderer:void 0,a=t.actor;if(a!==null&&typeof a!="string")return null;const s=t.payload;if(s!==null&&typeof s!="object")return null;const i=s,o=i?.schemaVersion===2?i:void 0,u=Sw(i),c=t.runId??u?.runId,p=t.entityKind??u?.entityKind,d=t.entityId??u?.entityId,f=t.sequence??u?.sequence,m=typeof c=="string"?c:c===null?null:void 0,b=typeof p=="string"?p:p===null?null:void 0,E=typeof d=="string"?d:d===null?null:void 0,x=typeof f=="number"&&Number.isFinite(f)?f:f===null?null:void 0;return{eventName:t.eventName,occurredAt:t.occurredAt,actor:a,...n?{prefix:n}:{},...r?{renderer:r}:{},payload:u,...o?{envelope:o}:{},view:Ta(t.eventName,i),...Nl(m,b,E,x)}}function Ta(e,t){const n=oG(e);if(t?.schemaVersion!==2)return n;const r=Gr(t.context),a=Gr(t.presentation),s=Gr(r?.project),i=Gr(r?.producer),o=Gr(r?.correlation);if(!r||!a||!s||!i||!o)return n;const u=a.severity==="info"||a.severity==="warning"||a.severity==="error"?a.severity:"warning",c=Array.isArray(a.fields)?a.fields.flatMap(v=>{const T=Gr(v),N=fn(T?.label,64),D=fn(T?.value,256);return N&&D?[{label:N,value:D}]:[]}).slice(0,8):[],p=[],d=(v,T)=>{const N=fn(T,128);N&&p.push({label:v,value:N})};d("Run",o.runId),d("Execution",o.executionId),d("Action",o.actionId),d("Entity",uG(o.entityKind,o.entityId)),d("Job",o.jobId),typeof o.sequence=="number"&&Number.isFinite(o.sequence)&&p.push({label:"Sequence",value:String(o.sequence)});const f=fn(i.package,128)??"unavailable",m=fn(i.subsystem,128),b=lG(a.action),E=fn(a.actionLabel,128)??"unavailable",x=fn(a.agent,128),y=fn(a.correlators,512);return{severity:u,summary:fn(a.summary,512)??"unavailable",description:fn(a.description,512)??"Description unavailable.",fields:c,projectName:fn(s.name,128)??"unavailable",projectRoot:fn(s.root,256)??"unavailable",producer:m?`${f} / ${m}`:f,correlation:y??"unavailable",correlationFields:p,outcome:fn(a.outcome,128)??"unavailable",action:b,actionLabel:E,agent:x}}function oG(e){return{severity:"warning",summary:"unavailable",description:`Canonical context unavailable for ${fn(e,128)??"unknown"}.`,fields:[],projectName:"unavailable",projectRoot:"unavailable",producer:"unavailable",correlation:"unavailable",correlationFields:[],outcome:"unavailable",action:null,actionLabel:"unavailable",agent:null}}function lG(e){const t=Gr(e);if(!t||t.kind!=="command"&&t.kind!=="filter"&&t.kind!=="path")return null;const n=fn(t.label,128),r=fn(t.value,256);return n&&r?{label:n,kind:t.kind,value:r}:null}function fn(e,t){return typeof e!="string"||e.length===0?null:e.length<=t?e:`${e.slice(0,t-1)}…`}function uG(e,t){const n=fn(e,64),r=fn(t,128);return n&&r?`${n}:${r}`:n??r}const cG=["Entity","Run","Execution","Action","Job"];function dG(e,t){for(const n of cG){const r=t.correlationFields.find(a=>a.label===n);if(r!==void 0&&r.value!=="")return`${e.eventName} · ${r.value}`}return e.id!==""&&!e.id.startsWith("live-")?`${e.eventName} · ${e.id}`:e.eventName}function Gr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function Sw(e){return e?.schemaVersion!==2?e:Gr(e.data)}const pG=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hy(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=pG[t.getMonth()],r=t.getDate(),a=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0"),i=String(t.getSeconds()).padStart(2,"0");return`${n} ${r} ${a}:${s}:${i}`}function Od(e){return typeof e!="number"||!Number.isFinite(e)?null:e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function At(e){return e&&e!=="unavailable"?e:"-"}function fG(e,t="24h"){const n={};e.selectedPrefixes&&e.selectedPrefixes.size===1&&(n.prefix=[...e.selectedPrefixes][0]);const r=e.searchQuery?.trim()??"";r!==""&&e.searchScope==="name"&&(n.names=r),r!==""&&e.searchScope==="actor"&&(n.actor=r),e.runId&&e.runId.trim()!==""&&(n.runId=e.runId.trim());const a=e.timeWindow&&e.timeWindow!=="all"?e.timeWindow:t,s=xw(a);return s&&(n.since=s),n}function gy(e,t,n){if(t.selectedPrefixes.size>=1){const r=e.prefix??e.eventName.split(".")[0]??e.eventName;if(!t.selectedPrefixes.has(r))return!1}if(t.tierFilter!=="all"){const r=n.get(e.eventName);if(r!==t.tierFilter&&!(t.tierFilter==="default"&&r===void 0))return!1}if(t.severity!=="all"&&(e.view??Ta(e.eventName,e.payload??null)).severity!==t.severity)return!1;if(t.searchQuery.trim()!==""){const r=t.searchQuery.toLowerCase();let a=!1;if((t.searchScope==="name"||t.searchScope==="all")&&(a=a||e.eventName.toLowerCase().includes(r)),(t.searchScope==="actor"||t.searchScope==="all")&&(a=a||(e.actor?.toLowerCase().includes(r)??!1)),t.searchScope==="payload"&&e.payload&&(a=a||JSON.stringify(e.payload).toLowerCase().includes(r)),!a)return!1}return!(t.runId.trim()!==""&&e.runId!==t.runId.trim())}const Nb={key:"time",direction:"desc"};function mG(e,t=Nb){const n=e.map((r,a)=>({row:r,idx:a}));return n.sort((r,a)=>{let s=0;const i=r.row.view??Ta(r.row.eventName,r.row.payload??null),o=a.row.view??Ta(a.row.eventName,a.row.payload??null);switch(t.key){case"time":{const u=Date.parse(r.row.occurredAt),c=Date.parse(a.row.occurredAt),p=Number.isNaN(u)?-1/0:u,d=Number.isNaN(c)?-1/0:c;s=p-d;break}case"severity":{const u=c=>c==="info"?0:c==="warning"?1:2;s=u(i.severity)-u(o.severity);break}case"event":{s=r.row.eventName.localeCompare(a.row.eventName);break}case"summary":{s=(i.summary??"").localeCompare(o.summary??"");break}case"correlation":{s=(i.correlation??"").localeCompare(o.correlation??"");break}case"agent":{s=(i.agent??"").localeCompare(o.agent??"");break}case"outcome":{s=(i.outcome??"").localeCompare(o.outcome??"");break}default:s=0}return s!==0?t.direction==="asc"?s:-s:r.idx-a.idx}),n.map(r=>r.row)}function Fo({value:e,label:t}){const[n,r]=g.useState("idle"),a=async s=>{s.preventDefault(),s.stopPropagation();try{typeof navigator<"u"&&navigator.clipboard?.writeText?(await navigator.clipboard.writeText(e),r("copied"),setTimeout(()=>r("idle"),1500)):(r("failed"),setTimeout(()=>r("idle"),2e3))}catch{r("failed"),setTimeout(()=>r("idle"),2e3)}};return!e||e==="-"||e==="unavailable"?null:l.jsxs("button",{type:"button",onClick:a,className:"inline-flex items-center justify-center p-0.5 rounded text-base-content/40 hover:text-base-content hover:bg-base-content/10 transition-colors cursor-pointer shrink-0 text-[10px] focus:outline-none focus:ring-1 focus:ring-primary/40",title:n==="copied"?"Copied":n==="failed"?"Copy failed":`Copy ${t}`,"aria-label":n==="copied"?`Copied ${t}`:n==="failed"?`Copy ${t} failed`:`Copy ${t}`,children:[l.jsx("span",{"aria-hidden":"true",children:n==="copied"?"✓":n==="failed"?"!":"📋"}),l.jsx("span",{className:"sr-only","aria-live":"polite",children:n==="copied"?`${t} copied`:n==="failed"?`${t} copy failed`:""})]})}function hG({onLivenessChange:e,timeRange:t,onTimeRangeChange:n}={}){const[r,a]=g.useState("24h"),s=t??r,i=n??a,[o,u]=g.useState(()=>JH()),[c,p]=g.useState(Nb),d=g.useCallback(fe=>{p(de=>de.key===fe?{key:fe,direction:de.direction==="asc"?"desc":"asc"}:{key:fe,direction:"asc"})},[]),[f,m]=g.useState(!0),[b,E]=g.useState([]),[x,y]=g.useState([]),[v,T]=g.useState("idle"),[N,D]=g.useState(null),[A,S]=g.useState(null),[w,R]=g.useState(!1),[C,U]=g.useState(!1),[k,j]=g.useState(Rc),[W,$]=g.useState(Rc),[ee,me]=g.useState("connecting"),{rate:se,recordEvent:xe}=rG();g.useEffect(()=>{e?.({status:f?ee:"paused",rate:se,lastEventAt:b[0]?.occurredAt??null})},[f,ee,se,b,e]);const O=g.useMemo(()=>{const fe=new Map;for(const de of x)de.tier&&fe.set(de.name,de.tier);return fe},[x]);g.useEffect(()=>{const fe=window.setTimeout(()=>{$(k)},250);return()=>window.clearTimeout(fe)},[k]);const te=g.useMemo(()=>fG(W,s),[W,s]),le=g.useRef(0);g.useEffect(()=>{const fe=++le.current,de=new AbortController;return T("loading"),D(null),(async()=>{try{const Te=await wt(new Request(vl({...te,limit:Dd}),{signal:de.signal}));if(!Te.ok){const Fe=await Te.json().catch(()=>null),Ke=Fe?.code;throw Ke==="UNKNOWN_PREFIX"||Ke==="MALFORMED_CURSOR"?new Error(`${Ke}: ${Fe.error??Te.status}`):new Error(`history fetch failed: ${Te.status}`)}const Se=await Te.json(),H=wl(Se);if(!H)throw new Error("history response failed schema validation");if(fe!==le.current)return;E(H.events),H.catalog&&y(H.catalog),S(H.nextCursor),R(H.hasMore),T("loaded")}catch(Te){if(de.signal.aborted||fe!==le.current)return;D(Te instanceof Error?Te.message:String(Te)),T("error")}})(),()=>de.abort()},[te]);const L=g.useCallback(async()=>{if(!(!w||C||A===null)){U(!0);try{const fe=await wt(new Request(vl({...te,limit:Dd,cursor:A})));if(!fe.ok)throw new Error(`history fetch failed: ${fe.status}`);const de=await fe.json(),Te=wl(de);if(!Te)throw new Error("history response failed schema validation");E(Se=>{const H=new Set(Se.map(Ke=>Ke.id)),Fe=Te.events.filter(Ke=>!H.has(Ke.id));return[...Se,...Fe]}),Te.catalog&&y(Te.catalog),S(Te.nextCursor),R(Te.hasMore)}catch(fe){D(fe instanceof Error?fe.message:String(fe))}finally{U(!1)}}},[w,C,A,te]),ke=g.useRef(k);ke.current=k;const Re=g.useRef(O);Re.current=O;const Q=g.useRef(s);Q.current=s,g.useEffect(()=>{if(!f||typeof EventSource>"u")return;me("connecting");const fe=new EventSource(tG());return fe.onopen=()=>{me("live")},fe.onerror=()=>{me("errored")},fe.onmessage=de=>{try{const Te=JSON.parse(de.data),Se=iG(Te);if(!Se||Se.eventName==="connected")return;const H=ke.current,Fe=Re.current;if(!gy({eventName:Se.eventName,occurredAt:Se.occurredAt,actor:Se.actor,...Se.prefix?{prefix:Se.prefix}:{},payload:Se.payload,view:Se.view,...Se.runId!==void 0?{runId:Se.runId}:{}},H,Fe))return;const Ke={id:`live-${Se.occurredAt}-${Se.eventName}`,eventName:Se.eventName,occurredAt:Se.occurredAt,actor:Se.actor,...Se.prefix?{prefix:Se.prefix}:{},...Se.renderer?{renderer:Se.renderer}:{},payload:Se.payload,...Se.envelope?{envelope:Se.envelope}:{},view:Se.view,...Nl(Se.runId,Se.entityKind,Se.entityId,Se.sequence)};E(Xe=>[Ke,...Xe]),xe()}catch{}},()=>fe.close()},[f,xe]);const _e=g.useMemo(()=>Array.from(new Set([...x.map(fe=>fe.prefix),...b.map(fe=>fe.prefix??fe.eventName.split(".")[0]??fe.eventName)])).sort(),[x,b]),ue=g.useCallback(()=>{j(Rc)},[]),X=g.useMemo(()=>b.filter(fe=>gy(fe,k,O)),[b,k,O]),We=g.useMemo(()=>mG(X,c),[X,c]);return v==="error"?l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load event history: ",N]}):v==="idle"||v==="loading"?l.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[l.jsx(Da,{size:"sm"})," Loading event history…"]}):l.jsxs("div",{className:"flex flex-col gap-4","data-system-events-tab":!0,children:[l.jsx(KH,{timeRange:s,onTimeRangeChange:i,filters:k,onFiltersChange:j,onClearFilters:ue,prefixOptions:_e,getPrefixColor:Tw,liveEnabled:f,onToggleLive:()=>m(fe=>!fe),shownCount:X.length,totalCount:b.length,actions:l.jsx(eG,{visibleColumns:o,onVisibleColumnsChange:u})}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 overflow-hidden flex flex-col",children:[We.length===0?l.jsx("div",{className:"p-8 text-sm text-spur-text-muted italic text-center",children:b.length===0?"No system events yet. New events from the planning bus will appear here in real time.":"No events match the active filters."}):l.jsx(bG,{rows:We,catalog:x,visibleColumns:o,sortState:c,onSortChange:d}),w&&l.jsx("div",{className:"px-4 py-2 border-t border-base-content/10 bg-base-200/50 shrink-0 flex justify-center",children:l.jsx("button",{type:"button",onClick:L,disabled:C,"data-load-older":!0,className:"text-[11px] text-spur-text-muted hover:text-spur-text px-3 py-1 rounded border border-spur-border/40 hover:border-spur-text/40 transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-wait focus:outline-none focus:ring-2 focus:ring-spur-text/40",children:C?"Loading…":"Load older"})})]})]})}function gG(e){const[t,n]=g.useState(()=>typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(e).matches);return g.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const r=window.matchMedia(e),a=s=>n(s.matches);return r.addEventListener("change",a),n(r.matches),()=>r.removeEventListener("change",a)},[e]),t}function bG({rows:e,catalog:t,visibleColumns:n=ea,sortState:r=Nb,onSortChange:a=()=>{}}){const s=g.useMemo(()=>{const u=new Map;for(const c of t)c.tier&&u.set(c.name,c.tier);return u},[t]),i=gG("(max-width: 639px)"),o=g.useMemo(()=>new Map(es.map(u=>[u.key,u])),[]);return l.jsx("section",{className:"overflow-x-auto min-w-0","data-system-events-tab":!0,"aria-label":"System events",children:l.jsxs("table",{className:`w-full ${i?"min-w-0":"min-w-[1000px]"} text-xs border-separate border-spacing-0 table-fixed`,children:[l.jsx("colgroup",{children:i?l.jsxs(l.Fragment,{children:[l.jsx("col",{className:"w-24"}),l.jsx("col",{className:"w-full"})]}):n.map(u=>l.jsx("col",{className:o.get(u)?.colWidth??"w-24"},u))}),l.jsx("thead",{className:"sticky top-0 z-10 bg-base-200",children:l.jsx("tr",{className:"text-left text-spur-text-muted uppercase tracking-wide text-[10px]",children:i?l.jsxs(l.Fragment,{children:[l.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Time"}),l.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Event"})]}):n.map(u=>{const c=o.get(u);if(!c)return null;const p=r.key===u,d=p?r.direction==="asc"?" ▲":" ▼":"",f=p?r.direction==="asc"?"ascending":"descending":"none";return c.sortable?l.jsx("th",{scope:"col","aria-sort":f,className:"font-semibold px-3 py-1.5 border-b border-spur-border select-none",children:l.jsxs("button",{type:"button",onClick:()=>a(u),className:"flex items-center gap-1 uppercase tracking-wide text-[10px] font-semibold text-spur-text-muted hover:text-spur-text transition-colors cursor-pointer bg-transparent border-0 p-0 focus:outline-none focus:ring-1 focus:ring-primary/40 rounded",children:[l.jsx("span",{children:c.label}),d&&l.jsx("span",{"aria-hidden":"true",children:d})]})},u):l.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:c.label},u)})})}),l.jsx("tbody",{children:e.map(u=>l.jsx(EG,{event:u,tier:s.get(u.eventName)??"default",compact:i,visibleColumns:n},u.id))})]})})}const Dc="system-events-payload-tooltip-pin";function Oc({severity:e}){const t=g.useMemo(()=>{switch(e){case"error":return{icon:"✕",badgeClass:"bg-error/15 text-error border-error/30"};case"warning":return{icon:"▲",badgeClass:"bg-warning/15 text-warning border-warning/30"};default:return{icon:"●",badgeClass:"bg-base-content/10 text-base-content/70 border-base-content/20"}}},[e]);return l.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded-full text-[10px] font-semibold border ${t.badgeClass} whitespace-nowrap`,children:[l.jsx("span",{"aria-hidden":"true",children:t.icon}),l.jsx("span",{children:e})]})}function EG({event:e,tier:t,compact:n,visibleColumns:r=ea}){const a=e.prefix??e.eventName.split(".")[0]??e.eventName,s=g.useMemo(()=>e.view??Ta(e.eventName,e.payload??null),[e.eventName,e.payload,e.view]),i=Tw(a),[o,u]=g.useState(!1),[c,p]=g.useState(!1),[d,f]=g.useState(!1),[m,b]=g.useState(null),E=g.useRef(null),x=g.useRef(null),y=g.useRef(0),v=g.useRef(null),T=At(e.actor),N=c||d,D=g.useCallback(()=>{v.current!==null&&(clearTimeout(v.current),v.current=null)},[]),A=g.useCallback(()=>{f(!1),b(null)},[]),S=g.useCallback((j,W)=>{y.current=performance.now()+400,f(!0),p(!1),D();const $=Number.isFinite(j)&&j>0?j:8,ee=Number.isFinite(W)&&W>0?W:8;b({x:$,y:ee}),window.dispatchEvent(new CustomEvent(Dc,{detail:{id:e.id}}))},[e.id,D]),w=g.useCallback((j,W,$)=>{const ee=j.getBoundingClientRect(),me=W&&W>0?W:ee.left,se=$&&$>0?$+4:ee.bottom+6;S(me,se)},[S]);g.useEffect(()=>{const j=W=>{W.detail?.id!==e.id&&A()};return window.addEventListener(Dc,j),()=>window.removeEventListener(Dc,j)},[e.id,A]),g.useEffect(()=>{if(!d)return;const j=$=>{performance.now()<y.current||E.current?.contains($.target)||x.current?.contains($.target)||A()},W=$=>{$.key==="Escape"&&(A(),$.stopPropagation())};return document.addEventListener("pointerdown",j,!0),document.addEventListener("keydown",W,!0),()=>{document.removeEventListener("pointerdown",j,!0),document.removeEventListener("keydown",W,!0)}},[d,A]),g.useEffect(()=>()=>{D()},[D]);const R=g.useCallback(()=>u(j=>!j),[]),C=g.useCallback(j=>{if(j.key==="Escape"){if(d){A(),j.stopPropagation();return}u(!1),j.stopPropagation()}},[d,A]),U=N?l.jsxs("div",{ref:E,id:`system-event-tooltip-${e.id}`,role:"tooltip","data-testid":"system-event-payload-tooltip","data-pinned":d?"true":"false",className:d?"pointer-events-auto fixed z-50 rounded shadow-lg p-2.5 text-[11px] min-w-[min(400px,90vw)] max-w-[min(840px,95vw)] whitespace-normal border border-[#30363d] bg-[#0d1117] text-[#c9d1d9] select-text cursor-text":"pointer-events-auto absolute left-0 top-full mt-1 z-30 rounded shadow-lg p-2.5 text-[11px] min-w-[min(400px,90vw)] max-w-[min(840px,95vw)] whitespace-normal border border-[#30363d] bg-[#0d1117] text-[#c9d1d9]",style:d&&m?{top:m.y,left:m.x}:void 0,onMouseEnter:()=>{D(),p(!0)},onMouseLeave:()=>{d||(D(),v.current=setTimeout(()=>p(!1),150))},onFocusCapture:()=>p(!0),onBlurCapture:j=>{!d&&!j.currentTarget.contains(j.relatedTarget)&&p(!1)},onPointerDown:j=>{d&&j.stopPropagation()},children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[l.jsx("div",{className:"text-[11px] font-sans font-semibold text-[#c9d1d9] truncate","data-testid":"system-event-tooltip-title",children:dG(e,s)}),l.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[!d&&l.jsx("button",{type:"button","data-testid":"system-event-payload-tooltip-pin",className:"text-[10px] text-[#c9d1d9] hover:text-white px-1.5 py-0.5 rounded border border-[#30363d] bg-[#21262d] cursor-pointer",onClick:j=>{j.stopPropagation(),j.preventDefault();const W=x.current;W?w(W):S(j.clientX,j.clientY)},children:"Pin"}),d&&l.jsx("button",{type:"button","data-testid":"system-event-payload-tooltip-close",className:"text-[10px] text-[#8b949e] hover:text-[#c9d1d9] px-1 rounded border border-[#30363d] cursor-pointer",onClick:j=>{j.stopPropagation(),A()},children:"close"})]})]}),l.jsx("p",{className:"mb-2 text-spur-text leading-relaxed","data-testid":"system-event-description",children:s.description}),l.jsxs("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 max-h-80 overflow-y-auto",children:[l.jsx("dt",{className:"text-spur-text-muted",children:"Summary"}),l.jsx("dd",{className:"break-words",children:At(s.summary)}),l.jsx("dt",{className:"text-spur-text-muted",children:"Severity"}),l.jsx("dd",{children:l.jsx(Oc,{severity:s.severity})}),s.fields.map(j=>l.jsxs("div",{className:"contents",children:[l.jsx("dt",{className:"text-spur-text-muted",children:j.label}),l.jsx("dd",{className:"font-mono break-all",children:At(j.value)})]},j.label+j.value)),l.jsx("dt",{className:"text-spur-text-muted",children:"Producer"}),l.jsx("dd",{className:"font-mono break-all",children:At(s.producer)}),s.correlationFields.length>0?s.correlationFields.map(j=>l.jsxs("div",{className:"contents",children:[l.jsx("dt",{className:"text-spur-text-muted",children:j.label}),l.jsx("dd",{className:"font-mono break-all",children:At(j.value)})]},`correlation-${j.label}`)):l.jsxs(l.Fragment,{children:[l.jsx("dt",{className:"text-spur-text-muted",children:"Correlation"}),l.jsx("dd",{className:"font-mono",children:"-"})]}),l.jsx("dt",{className:"text-spur-text-muted",children:"Outcome"}),l.jsx("dd",{className:"font-mono break-all",children:At(s.outcome)})]}),s.action&&l.jsxs("div",{className:"mt-2 border-t border-[#30363d] pt-2","data-testid":"system-event-remediation",children:[l.jsx("div",{className:"text-spur-text-muted",children:s.action.label}),l.jsx("code",{className:"block mt-0.5 font-mono break-all select-text",children:s.action.value})]}),l.jsx("div",{className:"mt-2 border-t border-[#30363d] pt-1.5 text-[10px] text-[#8b949e] font-sans","data-testid":"system-event-tooltip-footer",children:d?"Select to copy · Esc or outside click to close":"Click event name or Pin to lock for copy"})]}):null,k=j=>{switch(j){case"time":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-spur-text-muted whitespace-nowrap align-middle",children:hy(e.occurredAt)},"time");case"severity":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 align-middle text-[10px]",children:l.jsx(Oc,{severity:s.severity})},"severity");case"event":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 relative align-middle min-w-0",children:l.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[l.jsx("button",{type:"button","aria-expanded":o,"aria-controls":`detail-${e.id}`,"aria-label":`${o?"Collapse":"Expand"} detail for ${e.eventName}`,onClick:R,onKeyDown:C,className:"inline-flex items-center justify-center w-4 h-4 text-spur-text-muted hover:text-spur-text text-[10px] transition-colors cursor-pointer focus:outline-none focus:ring-2 focus:ring-spur-text/40 shrink-0",children:o?"▾":"▸"}),l.jsxs("div",{className:"relative min-w-0 max-w-full flex items-center gap-1",children:[l.jsx("button",{ref:x,type:"button",className:`font-mono font-semibold truncate block max-w-full text-left cursor-pointer bg-transparent border-0 p-0 ${i}`,"data-testid":"system-event-name","aria-label":`Context for ${e.eventName}. Hover to preview; click to pin for select and copy.`,"aria-describedby":N?`system-event-tooltip-${e.id}`:void 0,onMouseEnter:()=>{D(),p(!0)},onFocus:()=>{D(),p(!0)},onBlur:W=>{!d&&!E.current?.contains(W.relatedTarget)&&p(!1)},onMouseLeave:()=>{D(),v.current=setTimeout(()=>{d||p(!1)},200)},onClick:W=>{W.preventDefault(),W.stopPropagation(),!d&&w(W.currentTarget,W.clientX,W.clientY)},onKeyDown:W=>{if(W.key==="Enter"||W.key===" "){if(W.preventDefault(),d)return;w(W.currentTarget)}},children:e.eventName}),l.jsx(Fo,{value:e.eventName,label:"event name"}),!d&&U]})]})},"event");case"summary":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 text-spur-text align-middle truncate",title:At(s.summary),children:At(s.summary)},"summary");case"correlation":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle",children:l.jsxs("div",{className:"flex items-center gap-1 min-w-0",children:[l.jsx("span",{className:"truncate",title:At(s.correlation),children:At(s.correlation)}),s.correlation&&s.correlation!=="unavailable"&&l.jsx(Fo,{value:s.correlation,label:"correlation"})]})},"correlation");case"outcome":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:At(s.outcome),children:At(s.outcome)},"outcome");case"agent":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:s.agent??"",children:s.agent??""},"agent");case"producer":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:At(s.producer),children:At(s.producer)},"producer");case"action":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:At(s.actionLabel),children:At(s.actionLabel)},"action");case"actor":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:T,children:T},"actor")}};return l.jsxs(l.Fragment,{children:[l.jsx("tr",{className:"group hover:bg-base-200/60 transition-colors",style:{height:n?void 0:28},children:n?l.jsxs(l.Fragment,{children:[l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-spur-text-muted whitespace-nowrap align-middle",children:hy(e.occurredAt)}),l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 relative align-middle min-w-0",children:l.jsxs("div",{className:"flex flex-col gap-0.5 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[l.jsx("button",{type:"button","aria-expanded":o,"aria-controls":`detail-${e.id}`,"aria-label":`${o?"Collapse":"Expand"} detail for ${e.eventName}`,onClick:R,onKeyDown:C,className:"inline-flex items-center justify-center w-4 h-4 text-spur-text-muted hover:text-spur-text text-[10px] transition-colors cursor-pointer focus:outline-none focus:ring-2 focus:ring-spur-text/40 shrink-0",children:o?"▾":"▸"}),l.jsxs("div",{className:"relative min-w-0 max-w-full flex items-center gap-1",children:[l.jsx("button",{ref:x,type:"button",className:`font-mono font-semibold truncate block max-w-full text-left cursor-pointer bg-transparent border-0 p-0 ${i}`,"data-testid":"system-event-name","aria-label":`Context for ${e.eventName}. Hover to preview; click to pin for select and copy.`,"aria-describedby":N?`system-event-tooltip-${e.id}`:void 0,onMouseEnter:()=>{D(),p(!0)},onFocus:()=>{D(),p(!0)},onBlur:j=>{!d&&!E.current?.contains(j.relatedTarget)&&p(!1)},onMouseLeave:()=>{D(),v.current=setTimeout(()=>{d||p(!1)},200)},onClick:j=>{j.preventDefault(),j.stopPropagation(),!d&&w(j.currentTarget,j.clientX,j.clientY)},onKeyDown:j=>{if(j.key==="Enter"||j.key===" "){if(j.preventDefault(),d)return;w(j.currentTarget)}},children:e.eventName}),l.jsx(Fo,{value:e.eventName,label:"event name"}),!d&&U]})]}),l.jsxs("div",{className:"flex flex-col gap-0.5 text-[10px] text-spur-text-muted min-w-0",children:[l.jsx(Oc,{severity:s.severity}),l.jsx("span",{className:"truncate text-spur-text",title:At(s.summary),children:At(s.summary)}),l.jsx("span",{className:"truncate",title:At(s.producer),children:At(s.producer)}),l.jsx("span",{className:"truncate",title:At(s.correlation),children:At(s.correlation)}),s.agent&&l.jsxs("span",{className:"truncate font-mono",title:s.agent,children:["agent: ",s.agent]}),l.jsxs("span",{className:"truncate",children:["outcome: ",At(s.outcome)]}),l.jsxs("span",{className:"truncate",title:At(s.actionLabel),children:["action: ",At(s.actionLabel)]})]})]})})]}):r.map(j=>k(j))}),o&&l.jsx("tr",{children:l.jsx("td",{colSpan:n?2:r.length,className:"px-3 py-2 border-b border-spur-border/40 bg-base-300/40",children:l.jsxs("section",{id:`detail-${e.id}`,"aria-label":`Detail for ${e.eventName}`,onKeyDown:C,tabIndex:-1,className:"flex flex-col gap-2 text-[11px] text-spur-text max-w-full",children:[l.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 font-mono text-[10px]",children:[l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"project:"})," ",At(s.projectName)]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"root:"})," ",At(s.projectRoot)]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"producer:"})," ",At(s.producer)]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"correlation:"})," ",At(s.correlation)]}),e.runId&&l.jsxs("span",{className:"inline-flex items-center gap-1",children:[l.jsx("span",{className:"text-spur-text-muted",children:"runId:"})," ",e.runId," ",l.jsx(Fo,{value:e.runId,label:"run ID"})]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"agent:"})," ",s.agent||"-"]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"actor:"})," ",T]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"prefix:"})," ",a]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"tier:"})," ",t]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"outcome:"})," ",At(s.outcome)]})]}),s.fields.length>0&&l.jsx("dl",{className:"space-y-0.5",children:s.fields.map(j=>l.jsxs("div",{className:"flex gap-2",children:[l.jsxs("dt",{className:"text-spur-text-muted shrink-0",children:[j.label,":"]}),l.jsx("dd",{className:"font-mono break-all",children:At(j.value)})]},j.label+j.value))}),l.jsxs("div",{className:"border-t border-spur-border/40 pt-1",children:[l.jsx("div",{className:"text-spur-text-muted text-[10px] mb-0.5",children:"payload (redacted):"}),l.jsx("pre",{className:"font-mono text-[10px] text-spur-text-muted overflow-x-auto whitespace-pre-wrap break-all",children:e.envelope?JSON.stringify(e.envelope,null,2):"-"})]}),l.jsx("button",{type:"button",onClick:()=>u(!1),className:"self-start text-[10px] text-spur-text-muted hover:text-error px-2 py-0.5 rounded border border-spur-border/40 hover:border-error/40 transition-colors cursor-pointer focus:outline-none focus:ring-2 focus:ring-spur-text/40",children:"Close (Esc)"})]})})}),d&&U&&typeof document<"u"?pa.createPortal(U,document.body):null]})}const xG=_t(),yG=`${xG}/jobs/stats`,by=50;function TG(e){if(e===null||typeof e!="object")return null;const t=e.stats;if(t===null||typeof t!="object")return null;const n=t;return typeof n.pending!="number"||typeof n.processing!="number"||typeof n.completed!="number"||typeof n.failed!="number"?null:{stats:{pending:n.pending,processing:n.processing,completed:n.completed,failed:n.failed}}}function vw(e){switch(e.split(".").pop()??""){case"enqueued":return"pending";case"retrying":return"retrying";case"completed":return"completed";case"failed":return"failed";case"executed":return"executed";default:return null}}function Al(e,t){const n={};if(!t)return n;const r=i=>{const o=t[i];return typeof o=="string"&&o.length>0?o:void 0},a=i=>{const o=t[i];return typeof o=="number"&&Number.isFinite(o)?o:void 0},s=e.split(".").pop()??"";return n.durationMs=a("durationMs"),s==="executed"?(n.name=r("name"),n.error=r("error")):(n.jobId=r("jobId"),n.type=r("type"),(s==="failed"||s==="retrying")&&(n.attempt=a("attempt")),s==="failed"&&(n.error=r("error"))),n}function ww(e){switch(e){case"completed":case"executed":return"success";case"retrying":return"warning";case"failed":return"error";default:return"neutral"}}function SG(e,t){const n=[];let r=0,a=0;for(;r<e.length&&a<t.length;){const s=e[r],i=t[a];if(s&&i&&s.occurredAt>=i.occurredAt)n.push(s),r++;else if(i)n.push(i),a++;else if(s)n.push(s),r++;else break}for(;r<e.length;){const s=e[r];s&&n.push(s),r++}for(;a<t.length;){const s=t[a];s&&n.push(s),a++}return n}function vG(e){const t=[],n=new Map;for(const r of e){const s=r.eventName.startsWith("queue.job.")?Al(r.eventName,r.payload).jobId:void 0;if(s!==void 0){const i=n.get(s);if(i)i.events.push(r);else{const o={kind:"thread",jobId:s,events:[r]};n.set(s,o),t.push(o)}}else t.push({kind:"standalone",row:r})}return t}function wG(e){if(e.length<2)return null;const t=Date.parse(e[0]?.occurredAt??""),n=Date.parse(e.at(-1)?.occurredAt??"");return!Number.isFinite(t)||!Number.isFinite(n)?null:Math.max(0,t-n)}function NG({timeRange:e="24h"}={}){const[t,n]=g.useState(null),[r,a]=g.useState(null),s=g.useRef(0);if(g.useEffect(()=>{const o=new AbortController,u=++s.current;return a(null),n(null),(async()=>{try{const c=xw(e),p=vl({prefix:"queue",limit:by,...c?{since:c}:{}}),d=vl({prefix:"scheduler",limit:by,...c?{since:c}:{}}),[f,m,b]=await Promise.all([wt(new Request(yG,{signal:o.signal})),wt(new Request(p,{signal:o.signal})),wt(new Request(d,{signal:o.signal}))]);if(!f.ok)throw new Error(`job stats fetch failed: ${f.status}`);if(!m.ok)throw new Error(`queue history fetch failed: ${m.status}`);if(!b.ok)throw new Error(`scheduler history fetch failed: ${b.status}`);const E=TG(await f.json()),x=wl(await m.json()),y=wl(await b.json());if(!E)throw new Error("job stats response failed schema validation");if(!x)throw new Error("queue history response failed schema validation");if(!y)throw new Error("scheduler history response failed schema validation");const v=SG(x.events,y.events);if(o.signal.aborted||u!==s.current)return;n({stats:E.stats,events:v})}catch(c){if(o.signal.aborted||u!==s.current)return;a(c instanceof Error?c.message:String(c))}})(),()=>o.abort()},[e]),r)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load jobs: ",r]});if(t===null)return l.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[l.jsx(Da,{size:"sm"})," Loading jobs…"]});const i=[["Pending",t.stats.pending,"text-spur-text"],["Processing",t.stats.processing,"text-info"],["Completed",t.stats.completed,"text-success"],["Failed",t.stats.failed,"text-error"]];return l.jsxs("div",{className:"flex flex-col gap-4","data-jobs-tab":!0,children:[l.jsxs("div",{className:"p-4 rounded-xl border border-base-content/10 bg-base-200 shadow-sm space-y-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Current Queue State"}),l.jsx("span",{className:"text-[11px] text-spur-text-muted",children:"Live aggregate counters from queue engine"})]}),l.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2",children:i.map(([o,u,c])=>l.jsx(Ji,{variant:"compact",className:"bg-base-100 border border-spur-border shadow-xs",children:l.jsxs(eo,{className:"p-3 gap-1",children:[l.jsx("span",{className:"text-[10px] uppercase text-spur-text-muted font-semibold tracking-wider",children:o}),l.jsx("span",{className:`text-xl font-semibold tabular-nums font-mono ${c}`,children:u})]})},o))})]}),l.jsxs("div",{className:"rounded-xl border border-base-content/10 bg-base-200 shadow-sm overflow-hidden flex flex-col",children:[l.jsxs("div",{className:"px-4 py-3 border-b border-base-content/10 bg-base-200 shrink-0 flex items-center justify-between flex-wrap gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Recent Job Events"}),l.jsx(Mt,{variant:"outline",size:"xs",className:"font-mono",children:e==="all"?"All time":`Last ${e}`})]}),l.jsxs("span",{className:"text-xs text-spur-text-muted font-mono",children:[t.events.length," event(s)"]})]}),t.events.length===0?l.jsxs("div",{className:"p-8 text-center text-sm text-spur-text-muted italic","data-jobs-empty":!0,children:["No job events ",e==="all"?"recorded yet":`in the last ${e}`," — queue and scheduler have not processed events in this window."]}):l.jsx("ul",{className:"p-3 space-y-2",children:vG(t.events).map(o=>o.kind==="thread"?l.jsx(_G,{item:o},`thread-${o.jobId}`):l.jsx(AG,{row:o.row},o.row.id))})]})]})}function AG({row:e}){const t=g.useMemo(()=>Al(e.eventName,e.payload),[e.eventName,e.payload]),n=vw(e.eventName),r=e.eventName.startsWith("scheduler."),a=r?t.name??"scheduler":t.jobId??"job",s=r?"scheduler":t.type??"unknown",i=t.durationMs!==void 0?Od(t.durationMs):null;return l.jsx("li",{children:l.jsx(Ji,{variant:"compact",className:"bg-base-200 border border-spur-border",children:l.jsxs(eo,{className:"p-3 gap-1",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n!==null&&l.jsx(Mt,{variant:ww(n),size:"xs",children:n}),l.jsx("span",{className:"text-xs font-mono text-spur-text font-semibold",children:a}),l.jsx(Mt,{variant:"outline",size:"xs",children:s}),l.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono",children:e.occurredAt})]}),l.jsxs("div",{className:"flex items-center gap-3 flex-wrap text-[11px] text-spur-text-muted",children:[t.attempt!==void 0&&l.jsxs("span",{children:["attempt ",l.jsx("span",{className:"font-mono text-spur-text",children:t.attempt})]}),l.jsxs("span",{children:["duration ",l.jsx("span",{className:"font-mono text-spur-text",children:i??"unavailable"})]}),t.error!==void 0&&l.jsx("span",{className:"text-error truncate max-w-md",title:t.error,children:t.error}),!r&&t.type===void 0&&l.jsx("span",{className:"italic",children:"unknown job type"})]}),e.payload!==null&&Object.keys(e.payload).length>0&&l.jsxs("details",{className:"mt-1",children:[l.jsx("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:"raw payload"}),l.jsx("pre",{className:"text-[10px] text-spur-text-muted bg-base-300 rounded p-2 overflow-x-auto mt-1",children:JSON.stringify(e.payload,null,2)})]})]})})})}function _G({item:e}){const t=e.events[0],n=g.useMemo(()=>t?Al(t.eventName,t.payload):null,[t]);if(!t||!n)return null;const r=vw(t.eventName),a=wG(e.events),s=n.durationMs!==void 0?Od(n.durationMs):a!==null?Od(a):null;return l.jsx("li",{children:l.jsx(Ji,{variant:"compact",className:"bg-base-200 border border-spur-border",children:l.jsxs(eo,{className:"p-3 gap-1",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r!==null&&l.jsx(Mt,{variant:ww(r),size:"xs",children:r}),l.jsx("span",{className:"text-xs font-mono text-spur-text font-semibold",children:e.jobId}),n.type!==void 0&&l.jsx(Mt,{variant:"outline",size:"xs",children:n.type}),l.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono",children:t.occurredAt})]}),l.jsxs("div",{className:"flex items-center gap-3 flex-wrap text-[11px] text-spur-text-muted",children:[n.attempt!==void 0&&l.jsxs("span",{children:["attempt ",l.jsx("span",{className:"font-mono text-spur-text",children:n.attempt})]}),l.jsxs("span",{children:["duration ",l.jsx("span",{className:"font-mono text-spur-text",children:s??"unavailable"})]}),n.error!==void 0&&l.jsx("span",{className:"text-error truncate max-w-md",title:n.error,children:n.error}),l.jsxs("span",{className:"italic",children:[e.events.length," event(s)"]})]}),e.events.length>1&&l.jsxs("details",{className:"mt-1",children:[l.jsxs("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:["event sequence (",e.events.length,")"]}),l.jsx("ol",{className:"mt-1 space-y-1",children:e.events.map(i=>{const o=Al(i.eventName,i.payload);return l.jsxs("li",{className:"text-[10px] text-spur-text-muted flex items-center gap-2",children:[l.jsx("span",{className:"font-mono",children:i.occurredAt}),l.jsx("span",{children:i.eventName}),o.attempt!==void 0&&l.jsxs("span",{children:["attempt ",o.attempt]})]},i.id)})})]}),t.payload!==null&&Object.keys(t.payload).length>0&&l.jsxs("details",{className:"mt-1",children:[l.jsx("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:"raw payload"}),l.jsx("pre",{className:"text-[10px] text-spur-text-muted bg-base-300 rounded p-2 overflow-x-auto mt-1",children:JSON.stringify(t.payload,null,2)})]})]})})})}function Ey(e){if(e===null||typeof e!="object")return null;const t=e;return typeof t.inputTokens!="number"||typeof t.outputTokens!="number"||typeof t.cacheReadTokens!="number"||typeof t.cacheCreationTokens!="number"||typeof t.records!="number"||typeof t.recordsWithUsage!="number"?null:{inputTokens:t.inputTokens,outputTokens:t.outputTokens,cacheReadTokens:t.cacheReadTokens,cacheCreationTokens:t.cacheCreationTokens,records:t.records,recordsWithUsage:t.recordsWithUsage}}function CG(e){if(e===null||typeof e!="object")return null;const t=e;return!(t.role===null||typeof t.role=="string")||typeof t.totalRuns!="number"||typeof t.matchedRuns!="number"||typeof t.unmeasured!="boolean"?null:{role:t.role,totalRuns:t.totalRuns,matchedRuns:t.matchedRuns,exact:Ey(t.exact),estimated:Ey(t.estimated),unmeasured:t.unmeasured}}function kG(e){if(e===null||typeof e!="object")return null;const t=e;return!(t.role===null||typeof t.role=="string")||typeof t.executor!="string"||!(t.source===null||typeof t.source=="string")||typeof t.runs!="number"||typeof t.escalations!="number"?null:{role:t.role,executor:t.executor,source:t.source,runs:t.runs,escalations:t.escalations}}function IG(e){if(e===null||typeof e!="object")return null;const t=e,n=t.routing,r=t.tokens;if(n===null||typeof n!="object"||r===null||typeof r!="object")return null;const a=n,s=r,i=a.window;if(i===null||typeof i!="object")return null;const o=i;if(typeof o.since!="string"||typeof o.until!="string"||!Array.isArray(a.pairs)||!Array.isArray(s.roles))return null;const u=[];for(const p of a.pairs){const d=kG(p);d&&u.push(d)}const c=[];for(const p of s.roles){const d=CG(p);d&&c.push(d)}return{window:{since:o.since,until:o.until},pairs:u,roles:c}}function RG(e){switch(e){case"explicit":return"pinned";case"role":return"resolved";case"default":return"default";case null:return"—";default:return e}}const DG=new Intl.NumberFormat("en-US");function Za(e){return DG.format(e)}function xy({label:e,totals:t}){return l.jsxs("div",{"data-token-bucket":e,className:"text-xs",children:[l.jsx(Mt,{size:"xs",variant:e==="estimated"?"warning":"success",children:e}),l.jsxs("dl",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5 mt-1",children:[l.jsx("dt",{className:"text-spur-text-muted",children:"input"}),l.jsx("dd",{className:"tabular-nums text-right",children:Za(t.inputTokens)}),l.jsx("dt",{className:"text-spur-text-muted",children:"cache read"}),l.jsx("dd",{className:"tabular-nums text-right",children:Za(t.cacheReadTokens)}),l.jsx("dt",{className:"text-spur-text-muted",children:"cache write"}),l.jsx("dd",{className:"tabular-nums text-right",children:Za(t.cacheCreationTokens)}),l.jsx("dt",{className:"text-spur-text-muted",children:"output"}),l.jsx("dd",{className:"tabular-nums text-right",children:Za(t.outputTokens)})]})]})}function OG({role:e}){const t=e.role??"—";return l.jsxs("div",{className:"bg-base-100 border border-spur-border rounded-md p-3","data-role-attribution":t,children:[l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:t}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted tabular-nums",children:["matched ",e.matchedRuns," of ",e.totalRuns," runs"]})]}),e.unmeasured?l.jsxs("div",{className:"mt-1 text-xs","data-unmeasured":!0,children:[l.jsx(Mt,{size:"xs",variant:"ghost",children:"unmeasured"}),l.jsx("span",{className:"ml-1 text-spur-text-muted",children:"no token data recorded for this role — not a measured zero"})]}):l.jsxs("div",{className:"mt-2 flex flex-wrap gap-4",children:[e.exact?l.jsx(xy,{label:"exact",totals:e.exact}):null,e.estimated?l.jsx(xy,{label:"estimated",totals:e.estimated}):null]})]})}function LG(){const[e,t]=g.useState(null),[n,r]=g.useState(null);if(g.useEffect(()=>{const s=new AbortController;return(async()=>{try{const i=await wt(new Request(`${_t()}/observability/routing-summary`,{signal:s.signal}));if(!i.ok)throw new Error(`routing summary fetch failed: ${i.status}`);const o=IG(await i.json());if(!o)throw new Error("routing summary response failed schema validation");t(o)}catch(i){if(s.signal.aborted)return;r(i instanceof Error?i.message:String(i))}})(),()=>s.abort()},[]),n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load routing summary: ",n]});if(e===null)return l.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[l.jsx(Da,{size:"sm"})," Loading routing summary…"]});const a=e.pairs.length===0&&e.roles.length===0;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-routing-tab":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-baseline justify-between",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Routing & token consumption"}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted tabular-nums","data-covered-window":!0,children:["covered ",e.window.since," → ",e.window.until]})]}),a?l.jsx("div",{className:"flex-1 flex items-center justify-center p-4","data-routing-empty":!0,children:l.jsx("div",{className:"text-sm text-spur-text-muted italic",children:"No routing attribution has been recorded in the covered window — nothing to show yet."})}):l.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-4",children:[e.pairs.length>0?l.jsxs("section",{className:"bg-base-100 border border-spur-border rounded-md","data-routing-table":!0,children:[l.jsxs("div",{className:"px-3 py-2 border-b border-spur-border",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Role → executor"}),l.jsx("span",{className:"ml-2 text-[10px] text-spur-text-muted",children:"runs and escalations per pair; pinned and role-resolved counted separately"})]}),l.jsxs("table",{className:"table table-sm w-full",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"text-[10px] uppercase text-spur-text-muted",children:[l.jsx("th",{children:"Role"}),l.jsx("th",{children:"Executor"}),l.jsx("th",{children:"Source"}),l.jsx("th",{className:"text-right",children:"Runs"}),l.jsx("th",{className:"text-right",children:"Escalations"})]})}),l.jsx("tbody",{children:e.pairs.map(s=>l.jsxs("tr",{children:[l.jsx("td",{className:"text-sm text-spur-text",children:s.role??"—"}),l.jsx("td",{className:"text-sm text-spur-text",children:s.executor}),l.jsx("td",{children:l.jsx(Mt,{size:"xs",variant:s.source==="explicit"?"warning":"ghost",children:RG(s.source)})}),l.jsx("td",{className:"text-right tabular-nums text-spur-text",children:Za(s.runs)}),l.jsx("td",{className:"text-right tabular-nums text-spur-text",children:Za(s.escalations)})]},`${s.role??""}:${s.executor}:${s.source??""}`))})]}),l.jsx("div",{className:"px-3 py-1.5 border-t border-spur-border text-[10px] text-spur-text-muted",children:"“—” role groups pure pins (no role recorded); escalations count runs that started too cheap on this executor."})]}):null,e.roles.length>0?l.jsxs("section",{"data-token-section":!0,children:[l.jsxs("div",{className:"px-1 pb-1.5",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Token consumption by role"}),l.jsx("span",{className:"ml-2 text-[10px] text-spur-text-muted",children:"input, cache read, cache write, output — token totals only"})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:e.roles.map(s=>l.jsx(OG,{role:s},s.role??"pin"))})]}):null]})]})}const Lc=[{id:"system-events",label:"System Events",component:hG},{id:"jobs",label:"Jobs",component:NG},{id:"routing",label:"Routing",component:LG}];function FG(){const[e,t]=g.useState(Lc[0]?.id??""),[n,r]=g.useState("24h"),[a,s]=g.useState({status:"connecting",rate:0,lastEventAt:null}),o=Lc.find(m=>m.id===e)?.component,u=g.useCallback(m=>{s(m)},[]),c=e==="system-events",p=c?a.status:"idle",d=c?a.status==="live"?`live tail · ${a.rate} evt/60s`:a.status==="connecting"?"connecting…":a.status==="paused"?"live tail paused":"stream error":"live tail idle",f=p==="live"?"bg-emerald-400 animate-pulse":p==="connecting"?"bg-amber-400":p==="errored"?"bg-error":"bg-base-content/40";return l.jsxs("div",{className:"flex flex-col gap-4 p-4 max-w-[1600px] mx-auto w-full","data-observability-shell":!0,children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-base-content/10 pb-3 shrink-0",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"text-2xl",children:"📡"}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"Observability"}),l.jsx("p",{className:"text-xs text-base-content/60",children:"System event streams, queue execution telemetry, and routing attribution"}),l.jsxs("p",{className:"livechip mt-1 inline-flex items-center gap-1.5 rounded-full border border-base-content/10 px-2 py-0.5 text-xs text-base-content/60 font-mono","data-testid":"observability-liveness-chip",role:"status","aria-live":"polite",children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${f}`,"aria-hidden":"true"}),d,c&&a.lastEventAt&&l.jsxs(l.Fragment,{children:[" · last ",l.jsx("time",{dateTime:a.lastEventAt,children:new Date(a.lastEventAt).toLocaleTimeString()})]})]})]})]}),l.jsx("div",{role:"tablist","aria-label":"Observability tabs",className:"flex items-center gap-1 bg-base-300 p-1 rounded-xl",children:Lc.map(m=>{const b=m.id===e;return l.jsx("button",{type:"button",role:"tab","aria-selected":b,"aria-controls":`observability-tab-panel-${m.id}`,id:`observability-tab-${m.id}`,onClick:()=>t(m.id),className:`px-3 py-1.5 text-xs font-semibold rounded-lg transition-all cursor-pointer ${b?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,children:m.label},m.id)})})]}),l.jsx("div",{role:"tabpanel",id:`observability-tab-panel-${e}`,"aria-labelledby":`observability-tab-${e}`,className:"mt-2 flex flex-col gap-4",children:o?l.jsx(o,{onLivenessChange:u,timeRange:n,onTimeRangeChange:r}):null})]})}const MG={id:"observability",name:"Observability",icon:"📡",route:"observability",component:FG,sidebarLabel:"Observability",order:0},PG=Object.freeze(Object.defineProperty({__proto__:null,module:MG},Symbol.toStringTag,{value:"Module"})),Cu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function As(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ab(e){return"nodeType"in e}function Pn(e){var t,n;return e?As(e)?e:Ab(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function _b(e){const{Document:t}=Pn(e);return e instanceof t}function no(e){return As(e)?!1:e instanceof Pn(e).HTMLElement}function Nw(e){return e instanceof Pn(e).SVGElement}function _s(e){return e?As(e)?e.document:Ab(e)?_b(e)?e:no(e)||Nw(e)?e.ownerDocument:document:document:document}const Fr=Cu?g.useLayoutEffect:g.useEffect;function ku(e){const t=g.useRef(e);return Fr(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}function jG(){const e=g.useRef(null),t=g.useCallback((r,a)=>{e.current=setInterval(r,a)},[]),n=g.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ri(e,t){t===void 0&&(t=[e]);const n=g.useRef(e);return Fr(()=>{n.current!==e&&(n.current=e)},t),n}function ro(e,t){const n=g.useRef();return g.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function _l(e){const t=ku(e),n=g.useRef(null),r=g.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,r]}function Cl(e){const t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}let Fc={};function Iu(e,t){return g.useMemo(()=>{if(t)return t;const n=Fc[e]==null?0:Fc[e]+1;return Fc[e]=n,e+"-"+n},[e,t])}function Aw(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((s,i)=>{const o=Object.entries(i);for(const[u,c]of o){const p=s[u];p!=null&&(s[u]=p+e*c)}return s},{...t})}}const ts=Aw(1),kl=Aw(-1);function BG(e){return"clientX"in e&&"clientY"in e}function Cb(e){if(!e)return!1;const{KeyboardEvent:t}=Pn(e.target);return t&&e instanceof t}function UG(e){if(!e)return!1;const{TouchEvent:t}=Pn(e.target);return t&&e instanceof t}function Il(e){if(UG(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return BG(e)?{x:e.clientX,y:e.clientY}:null}const cs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[cs.Translate.toString(e),cs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),yy="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function $G(e){return e.matches(yy)?e:e.querySelector(yy)}const zG={display:"none"};function HG(e){let{id:t,value:n}=e;return at.createElement("div",{id:t,style:zG},n)}function GG(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return at.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function WG(){const[e,t]=g.useState("");return{announce:g.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const _w=g.createContext(null);function VG(e){const t=g.useContext(_w);g.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function qG(){const[e]=g.useState(()=>new Set),t=g.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[g.useCallback(r=>{let{type:a,event:s}=r;e.forEach(i=>{var o;return(o=i[a])==null?void 0:o.call(i,s)})},[e]),t]}const YG={draggable:`
|
|
175
|
+
To pick up a draggable item, press the space bar.
|
|
176
|
+
While dragging, use the arrow keys to move the item.
|
|
177
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
178
|
+
`},ZG={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function KG(e){let{announcements:t=ZG,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=YG}=e;const{announce:s,announcement:i}=WG(),o=Iu("DndLiveRegion"),[u,c]=g.useState(!1);if(g.useEffect(()=>{c(!0)},[]),VG(g.useMemo(()=>({onDragStart(d){let{active:f}=d;s(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:m}=d;t.onDragMove&&s(t.onDragMove({active:f,over:m}))},onDragOver(d){let{active:f,over:m}=d;s(t.onDragOver({active:f,over:m}))},onDragEnd(d){let{active:f,over:m}=d;s(t.onDragEnd({active:f,over:m}))},onDragCancel(d){let{active:f,over:m}=d;s(t.onDragCancel({active:f,over:m}))}}),[s,t])),!u)return null;const p=at.createElement(at.Fragment,null,at.createElement(HG,{id:r,value:a.draggable}),at.createElement(GG,{id:o,announcement:i}));return n?pa.createPortal(p,n):p}var on;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(on||(on={}));function Rl(){}function Ty(e,t){return g.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function XG(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const cr=Object.freeze({x:0,y:0});function QG(e,t){const n=Il(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function JG(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function eW(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function tW(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),i=a-r,o=s-n;if(r<a&&n<s){const u=t.width*t.height,c=e.width*e.height,p=i*o,d=p/(u+c-p);return Number(d.toFixed(4))}return 0}const nW=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const s of r){const{id:i}=s,o=n.get(i);if(o){const u=tW(o,t);u>0&&a.push({id:i,data:{droppableContainer:s,value:u}})}}return a.sort(JG)};function rW(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Cw(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:cr}function aW(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return a.reduce((i,o)=>({...i,top:i.top+e*o.y,bottom:i.bottom+e*o.y,left:i.left+e*o.x,right:i.right+e*o.x}),{...n})}}const sW=aW(1);function kw(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function iW(e,t,n){const r=kw(t);if(!r)return e;const{scaleX:a,scaleY:s,x:i,y:o}=r,u=e.left-i-(1-a)*parseFloat(n),c=e.top-o-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),p=a?e.width/a:e.width,d=s?e.height/s:e.height;return{width:p,height:d,top:c,right:u+p,bottom:c+d,left:u}}const oW={ignoreTransform:!1};function ao(e,t){t===void 0&&(t=oW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:p}=Pn(e).getComputedStyle(e);c&&(n=iW(n,c,p))}const{top:r,left:a,width:s,height:i,bottom:o,right:u}=n;return{top:r,left:a,width:s,height:i,bottom:o,right:u}}function Sy(e){return ao(e,{ignoreTransform:!0})}function lW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function uW(e,t){return t===void 0&&(t=Pn(e).getComputedStyle(e)),t.position==="fixed"}function cW(e,t){t===void 0&&(t=Pn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const s=t[a];return typeof s=="string"?n.test(s):!1})}function kb(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(_b(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!no(a)||Nw(a)||n.includes(a))return n;const s=Pn(e).getComputedStyle(a);return a!==e&&cW(a,s)&&n.push(a),uW(a,s)?n:r(a.parentNode)}return e?r(e):n}function Iw(e){const[t]=kb(e,1);return t??null}function Mc(e){return!Cu||!e?null:As(e)?e:Ab(e)?_b(e)||e===_s(e).scrollingElement?window:no(e)?e:null:null}function Rw(e){return As(e)?e.scrollX:e.scrollLeft}function Dw(e){return As(e)?e.scrollY:e.scrollTop}function Ld(e){return{x:Rw(e),y:Dw(e)}}var hn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(hn||(hn={}));function Ow(e){return!Cu||!e?!1:e===document.scrollingElement}function Lw(e){const t={x:0,y:0},n=Ow(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,o=e.scrollLeft>=r.x;return{isTop:a,isLeft:s,isBottom:i,isRight:o,maxScroll:r,minScroll:t}}const dW={x:.2,y:.2};function pW(e,t,n,r,a){let{top:s,left:i,right:o,bottom:u}=n;r===void 0&&(r=10),a===void 0&&(a=dW);const{isTop:c,isBottom:p,isLeft:d,isRight:f}=Lw(e),m={x:0,y:0},b={x:0,y:0},E={height:t.height*a.y,width:t.width*a.x};return!c&&s<=t.top+E.height?(m.y=hn.Backward,b.y=r*Math.abs((t.top+E.height-s)/E.height)):!p&&u>=t.bottom-E.height&&(m.y=hn.Forward,b.y=r*Math.abs((t.bottom-E.height-u)/E.height)),!f&&o>=t.right-E.width?(m.x=hn.Forward,b.x=r*Math.abs((t.right-E.width-o)/E.width)):!d&&i<=t.left+E.width&&(m.x=hn.Backward,b.x=r*Math.abs((t.left+E.width-i)/E.width)),{direction:m,speed:b}}function fW(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:i}=window;return{top:0,left:0,right:s,bottom:i,width:s,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Fw(e){return e.reduce((t,n)=>ts(t,Ld(n)),cr)}function mW(e){return e.reduce((t,n)=>t+Rw(n),0)}function hW(e){return e.reduce((t,n)=>t+Dw(n),0)}function Mw(e,t){if(t===void 0&&(t=ao),!e)return;const{top:n,left:r,bottom:a,right:s}=t(e);Iw(e)&&(a<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const gW=[["x",["left","right"],mW],["y",["top","bottom"],hW]];class Ib{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=kb(n),a=Fw(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,i,o]of gW)for(const u of i)Object.defineProperty(this,u,{get:()=>{const c=o(r),p=a[s]-c;return this.rect[u]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class di{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function bW(e){const{EventTarget:t}=Pn(e);return e instanceof t?e:_s(e)}function Pc(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var tr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(tr||(tr={}));function vy(e){e.preventDefault()}function EW(e){e.stopPropagation()}var Bt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Bt||(Bt={}));const Pw={start:[Bt.Space,Bt.Enter],cancel:[Bt.Esc],end:[Bt.Space,Bt.Enter,Bt.Tab]},xW=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Bt.Right:return{...n,x:n.x+25};case Bt.Left:return{...n,x:n.x-25};case Bt.Down:return{...n,y:n.y+25};case Bt.Up:return{...n,y:n.y-25}}};class Rb{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new di(_s(n)),this.windowListeners=new di(Pn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(tr.Resize,this.handleCancel),this.windowListeners.add(tr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(tr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Mw(r),n(cr)}handleKeyDown(t){if(Cb(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:s=Pw,coordinateGetter:i=xW,scrollBehavior:o="smooth"}=a,{code:u}=t;if(s.end.includes(u)){this.handleEnd(t);return}if(s.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:c}=r.current,p=c?{x:c.left,y:c.top}:cr;this.referenceCoordinates||(this.referenceCoordinates=p);const d=i(t,{active:n,context:r.current,currentCoordinates:p});if(d){const f=kl(d,p),m={x:0,y:0},{scrollableAncestors:b}=r.current;for(const E of b){const x=t.code,{isTop:y,isRight:v,isLeft:T,isBottom:N,maxScroll:D,minScroll:A}=Lw(E),S=fW(E),w={x:Math.min(x===Bt.Right?S.right-S.width/2:S.right,Math.max(x===Bt.Right?S.left:S.left+S.width/2,d.x)),y:Math.min(x===Bt.Down?S.bottom-S.height/2:S.bottom,Math.max(x===Bt.Down?S.top:S.top+S.height/2,d.y))},R=x===Bt.Right&&!v||x===Bt.Left&&!T,C=x===Bt.Down&&!N||x===Bt.Up&&!y;if(R&&w.x!==d.x){const U=E.scrollLeft+f.x,k=x===Bt.Right&&U<=D.x||x===Bt.Left&&U>=A.x;if(k&&!f.y){E.scrollTo({left:U,behavior:o});return}k?m.x=E.scrollLeft-U:m.x=x===Bt.Right?E.scrollLeft-D.x:E.scrollLeft-A.x,m.x&&E.scrollBy({left:-m.x,behavior:o});break}else if(C&&w.y!==d.y){const U=E.scrollTop+f.y,k=x===Bt.Down&&U<=D.y||x===Bt.Up&&U>=A.y;if(k&&!f.x){E.scrollTo({top:U,behavior:o});return}k?m.y=E.scrollTop-U:m.y=x===Bt.Down?E.scrollTop-D.y:E.scrollTop-A.y,m.y&&E.scrollBy({top:-m.y,behavior:o});break}}this.handleMove(t,ts(kl(d,this.referenceCoordinates),m))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Rb.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Pw,onActivation:a}=t,{active:s}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const o=s.activatorNode.current;return o&&e.target!==o?!1:(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];function wy(e){return!!(e&&"distance"in e)}function Ny(e){return!!(e&&"delay"in e)}class Db{constructor(t,n,r){var a;r===void 0&&(r=bW(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:i}=s;this.props=t,this.events=n,this.document=_s(i),this.documentListeners=new di(this.document),this.listeners=new di(r),this.windowListeners=new di(Pn(i)),this.initialCoordinates=(a=Il(s))!=null?a:cr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(tr.Resize,this.handleCancel),this.windowListeners.add(tr.DragStart,vy),this.windowListeners.add(tr.VisibilityChange,this.handleCancel),this.windowListeners.add(tr.ContextMenu,vy),this.documentListeners.add(tr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ny(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(wy(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(tr.Click,EW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(tr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:s}=this,{onMove:i,options:{activationConstraint:o}}=s;if(!a)return;const u=(n=Il(t))!=null?n:cr,c=kl(a,u);if(!r&&o){if(wy(o)){if(o.tolerance!=null&&Pc(c,o.tolerance))return this.handleCancel();if(Pc(c,o.distance))return this.handleStart()}if(Ny(o)&&Pc(c,o.tolerance))return this.handleCancel();this.handlePending(o,c);return}t.cancelable&&t.preventDefault(),i(u)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Bt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const yW={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ob extends Db{constructor(t){const{event:n}=t,r=_s(n.target);super(t,yW,r)}}Ob.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const TW={move:{name:"mousemove"},end:{name:"mouseup"}};var Fd;(function(e){e[e.RightClick=2]="RightClick"})(Fd||(Fd={}));class SW extends Db{constructor(t){super(t,TW,_s(t.event.target))}}SW.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Fd.RightClick?!1:(r?.({event:n}),!0)}}];const jc={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class vW extends Db{constructor(t){super(t,jc)}static setup(){return window.addEventListener(jc.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(jc.move.name,t)};function t(){}}}vW.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r?.({event:n}),!0)}}];var pi;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(pi||(pi={}));var Dl;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Dl||(Dl={}));function wW(e){let{acceleration:t,activator:n=pi.Pointer,canScroll:r,draggingRect:a,enabled:s,interval:i=5,order:o=Dl.TreeOrder,pointerCoordinates:u,scrollableAncestors:c,scrollableAncestorRects:p,delta:d,threshold:f}=e;const m=AW({delta:d,disabled:!s}),[b,E]=jG(),x=g.useRef({x:0,y:0}),y=g.useRef({x:0,y:0}),v=g.useMemo(()=>{switch(n){case pi.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case pi.DraggableRect:return a}},[n,a,u]),T=g.useRef(null),N=g.useCallback(()=>{const A=T.current;if(!A)return;const S=x.current.x*y.current.x,w=x.current.y*y.current.y;A.scrollBy(S,w)},[]),D=g.useMemo(()=>o===Dl.TreeOrder?[...c].reverse():c,[o,c]);g.useEffect(()=>{if(!s||!c.length||!v){E();return}for(const A of D){if(r?.(A)===!1)continue;const S=c.indexOf(A),w=p[S];if(!w)continue;const{direction:R,speed:C}=pW(A,w,v,t,f);for(const U of["x","y"])m[U][R[U]]||(C[U]=0,R[U]=0);if(C.x>0||C.y>0){E(),T.current=A,b(N,i),x.current=C,y.current=R;return}}x.current={x:0,y:0},y.current={x:0,y:0},E()},[t,N,r,E,s,i,JSON.stringify(v),JSON.stringify(m),b,c,D,p,JSON.stringify(f)])}const NW={x:{[hn.Backward]:!1,[hn.Forward]:!1},y:{[hn.Backward]:!1,[hn.Forward]:!1}};function AW(e){let{delta:t,disabled:n}=e;const r=Cl(t);return ro(a=>{if(n||!r||!a)return NW;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[hn.Backward]:a.x[hn.Backward]||s.x===-1,[hn.Forward]:a.x[hn.Forward]||s.x===1},y:{[hn.Backward]:a.y[hn.Backward]||s.y===-1,[hn.Forward]:a.y[hn.Forward]||s.y===1}}},[n,t,r])}function _W(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return ro(a=>{var s;return t==null?null:(s=r??a)!=null?s:null},[r,t])}function CW(e,t){return g.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,s=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...s]},[]),[e,t])}var Di;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Di||(Di={}));var Md;(function(e){e.Optimized="optimized"})(Md||(Md={}));const Ay=new Map;function kW(e,t){let{dragging:n,dependencies:r,config:a}=t;const[s,i]=g.useState(null),{frequency:o,measure:u,strategy:c}=a,p=g.useRef(e),d=x(),f=Ri(d),m=g.useCallback(function(y){y===void 0&&(y=[]),!f.current&&i(v=>v===null?y:v.concat(y.filter(T=>!v.includes(T))))},[f]),b=g.useRef(null),E=ro(y=>{if(d&&!n)return Ay;if(!y||y===Ay||p.current!==e||s!=null){const v=new Map;for(let T of e){if(!T)continue;if(s&&s.length>0&&!s.includes(T.id)&&T.rect.current){v.set(T.id,T.rect.current);continue}const N=T.node.current,D=N?new Ib(u(N),N):null;T.rect.current=D,D&&v.set(T.id,D)}return v}return y},[e,s,n,d,u]);return g.useEffect(()=>{p.current=e},[e]),g.useEffect(()=>{d||m()},[n,d]),g.useEffect(()=>{s&&s.length>0&&i(null)},[JSON.stringify(s)]),g.useEffect(()=>{d||typeof o!="number"||b.current!==null||(b.current=setTimeout(()=>{m(),b.current=null},o))},[o,d,m,...r]),{droppableRects:E,measureDroppableContainers:m,measuringScheduled:s!=null};function x(){switch(c){case Di.Always:return!1;case Di.BeforeDragging:return n;default:return!n}}}function Lb(e,t){return ro(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function IW(e,t){return Lb(e,t)}function RW(e){let{callback:t,disabled:n}=e;const r=ku(t),a=g.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return g.useEffect(()=>()=>a?.disconnect(),[a]),a}function Ru(e){let{callback:t,disabled:n}=e;const r=ku(t),a=g.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return g.useEffect(()=>()=>a?.disconnect(),[a]),a}function DW(e){return new Ib(ao(e),e)}function _y(e,t,n){t===void 0&&(t=DW);const[r,a]=g.useState(null);function s(){a(u=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=u??n)!=null?c:null}const p=t(e);return JSON.stringify(u)===JSON.stringify(p)?u:p})}const i=RW({callback(u){if(e)for(const c of u){const{type:p,target:d}=c;if(p==="childList"&&d instanceof HTMLElement&&d.contains(e)){s();break}}}}),o=Ru({callback:s});return Fr(()=>{s(),e?(o?.observe(e),i?.observe(document.body,{childList:!0,subtree:!0})):(o?.disconnect(),i?.disconnect())},[e]),r}function OW(e){const t=Lb(e);return Cw(e,t)}const Cy=[];function LW(e){const t=g.useRef(e),n=ro(r=>e?r&&r!==Cy&&e&&t.current&&e.parentNode===t.current.parentNode?r:kb(e):Cy,[e]);return g.useEffect(()=>{t.current=e},[e]),n}function FW(e){const[t,n]=g.useState(null),r=g.useRef(e),a=g.useCallback(s=>{const i=Mc(s.target);i&&n(o=>o?(o.set(i,Ld(i)),new Map(o)):null)},[]);return g.useEffect(()=>{const s=r.current;if(e!==s){i(s);const o=e.map(u=>{const c=Mc(u);return c?(c.addEventListener("scroll",a,{passive:!0}),[c,Ld(c)]):null}).filter(u=>u!=null);n(o.length?new Map(o):null),r.current=e}return()=>{i(e),i(s)};function i(o){o.forEach(u=>{const c=Mc(u);c?.removeEventListener("scroll",a)})}},[a,e]),g.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,i)=>ts(s,i),cr):Fw(e):cr,[e,t])}function ky(e,t){t===void 0&&(t=[]);const n=g.useRef(null);return g.useEffect(()=>{n.current=null},t),g.useEffect(()=>{const r=e!==cr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?kl(e,n.current):cr}function MW(e){g.useEffect(()=>{if(!Cu)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function PW(e,t){return g.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:s}=r;return n[a]=i=>{s(i,t)},n},{}),[e,t])}function jw(e){return g.useMemo(()=>e?lW(e):null,[e])}const Iy=[];function jW(e,t){t===void 0&&(t=ao);const[n]=e,r=jw(n?Pn(n):null),[a,s]=g.useState(Iy);function i(){s(()=>e.length?e.map(u=>Ow(u)?r:new Ib(t(u),u)):Iy)}const o=Ru({callback:i});return Fr(()=>{o?.disconnect(),i(),e.forEach(u=>o?.observe(u))},[e]),a}function Bw(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return no(t)?t:e}function BW(e){let{measure:t}=e;const[n,r]=g.useState(null),a=g.useCallback(c=>{for(const{target:p}of c)if(no(p)){r(d=>{const f=t(p);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),s=Ru({callback:a}),i=g.useCallback(c=>{const p=Bw(c);s?.disconnect(),p&&s?.observe(p),r(p?t(p):null)},[t,s]),[o,u]=_l(i);return g.useMemo(()=>({nodeRef:o,rect:n,setRef:u}),[n,o,u])}const UW=[{sensor:Ob,options:{}},{sensor:Rb,options:{}}],$W={current:{}},Xo={draggable:{measure:Sy},droppable:{measure:Sy,strategy:Di.WhileDragging,frequency:Md.Optimized},dragOverlay:{measure:ao}};class fi extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const zW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new fi,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Rl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Xo,measureDroppableContainers:Rl,windowRect:null,measuringScheduled:!1},Uw={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Rl,draggableNodes:new Map,over:null,measureDroppableContainers:Rl},so=g.createContext(Uw),$w=g.createContext(zW);function HW(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new fi}}}function GW(e,t){switch(t.type){case on.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case on.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case on.DragEnd:case on.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case on.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new fi(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case on.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const i=new fi(e.droppable.containers);return i.set(n,{...s,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case on.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const s=new fi(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function WW(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=g.useContext(so),s=Cl(r),i=Cl(n?.id);return g.useEffect(()=>{if(!t&&!r&&s&&i!=null){if(!Cb(s)||document.activeElement===s.target)return;const o=a.get(i);if(!o)return;const{activatorNode:u,node:c}=o;if(!u.current&&!c.current)return;requestAnimationFrame(()=>{for(const p of[u.current,c.current]){if(!p)continue;const d=$G(p);if(d){d.focus();break}}})}},[r,t,a,i,s]),null}function zw(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,s)=>s({transform:a,...r}),n):n}function VW(e){return g.useMemo(()=>({draggable:{...Xo.draggable,...e?.draggable},droppable:{...Xo.droppable,...e?.droppable},dragOverlay:{...Xo.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function qW(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const s=g.useRef(!1),{x:i,y:o}=typeof a=="boolean"?{x:a,y:a}:a;Fr(()=>{if(!i&&!o||!t){s.current=!1;return}if(s.current||!r)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const p=n(c),d=Cw(p,r);if(i||(d.x=0),o||(d.y=0),s.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=Iw(c);f&&f.scrollBy({top:d.y,left:d.x})}},[t,i,o,r,n])}const Du=g.createContext({...cr,scaleX:1,scaleY:1});var Wr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Wr||(Wr={}));const YW=g.memo(function(t){var n,r,a,s;let{id:i,accessibility:o,autoScroll:u=!0,children:c,sensors:p=UW,collisionDetection:d=nW,measuring:f,modifiers:m,...b}=t;const E=g.useReducer(GW,void 0,HW),[x,y]=E,[v,T]=qG(),[N,D]=g.useState(Wr.Uninitialized),A=N===Wr.Initialized,{draggable:{active:S,nodes:w,translate:R},droppable:{containers:C}}=x,U=S!=null?w.get(S):null,k=g.useRef({initial:null,translated:null}),j=g.useMemo(()=>{var Me;return S!=null?{id:S,data:(Me=U?.data)!=null?Me:$W,rect:k}:null},[S,U]),W=g.useRef(null),[$,ee]=g.useState(null),[me,se]=g.useState(null),xe=Ri(b,Object.values(b)),O=Iu("DndDescribedBy",i),te=g.useMemo(()=>C.getEnabled(),[C]),le=VW(f),{droppableRects:L,measureDroppableContainers:ke,measuringScheduled:Re}=kW(te,{dragging:A,dependencies:[R.x,R.y],config:le.droppable}),Q=_W(w,S),_e=g.useMemo(()=>me?Il(me):null,[me]),ue=Xt(),X=IW(Q,le.draggable.measure);qW({activeNode:S!=null?w.get(S):null,config:ue.layoutShiftCompensation,initialRect:X,measure:le.draggable.measure});const We=_y(Q,le.draggable.measure,X),fe=_y(Q?Q.parentElement:null),de=g.useRef({activatorEvent:null,active:null,activeNode:Q,collisionRect:null,collisions:null,droppableRects:L,draggableNodes:w,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Te=C.getNodeFor((n=de.current.over)==null?void 0:n.id),Se=BW({measure:le.dragOverlay.measure}),H=(r=Se.nodeRef.current)!=null?r:Q,Fe=A?(a=Se.rect)!=null?a:We:null,Ke=!!(Se.nodeRef.current&&Se.rect),Xe=OW(Ke?null:We),Pt=jw(H?Pn(H):null),dt=LW(A?Te??Q:null),lt=jW(dt),Kt=zw(m,{transform:{x:R.x-Xe.x,y:R.y-Xe.y,scaleX:1,scaleY:1},activatorEvent:me,active:j,activeNodeRect:We,containerNodeRect:fe,draggingNodeRect:Fe,over:de.current.over,overlayNodeRect:Se.rect,scrollableAncestors:dt,scrollableAncestorRects:lt,windowRect:Pt}),it=_e?ts(_e,R):null,Le=FW(dt),rt=ky(Le),Z=ky(Le,[We]),ie=ts(Kt,rt),Ce=Fe?sW(Fe,Kt):null,Oe=j&&Ce?d({active:j,collisionRect:Ce,droppableRects:L,droppableContainers:te,pointerCoordinates:it}):null,Ve=eW(Oe,"id"),[st,Rt]=g.useState(null),Ct=Ke?Kt:ts(Kt,Z),Nt=rW(Ct,(s=st?.rect)!=null?s:null,We),Lt=g.useRef(null),re=g.useCallback((Me,pt)=>{let{sensor:Qe,options:kt}=pt;if(W.current==null)return;const ae=w.get(W.current);if(!ae)return;const ge=Me.nativeEvent,tt=new Qe({active:W.current,activeNode:ae,event:ge,options:kt,context:de,onAbort(G){if(!w.get(G))return;const{onDragAbort:M}=xe.current,z={id:G};M?.(z),v({type:"onDragAbort",event:z})},onPending(G,ze,M,z){if(!w.get(G))return;const{onDragPending:oe}=xe.current,be={id:G,constraint:ze,initialCoordinates:M,offset:z};oe?.(be),v({type:"onDragPending",event:be})},onStart(G){const ze=W.current;if(ze==null)return;const M=w.get(ze);if(!M)return;const{onDragStart:z}=xe.current,Y={activatorEvent:ge,active:{id:ze,data:M.data,rect:k}};pa.unstable_batchedUpdates(()=>{z?.(Y),D(Wr.Initializing),y({type:on.DragStart,initialCoordinates:G,active:ze}),v({type:"onDragStart",event:Y}),ee(Lt.current),se(ge)})},onMove(G){y({type:on.DragMove,coordinates:G})},onEnd:Dt(on.DragEnd),onCancel:Dt(on.DragCancel)});Lt.current=tt;function Dt(G){return async function(){const{active:M,collisions:z,over:Y,scrollAdjustedTranslate:oe}=de.current;let be=null;if(M&&oe){const{cancelDrop:De}=xe.current;be={activatorEvent:ge,active:M,collisions:z,delta:oe,over:Y},G===on.DragEnd&&typeof De=="function"&&await Promise.resolve(De(be))&&(G=on.DragCancel)}W.current=null,pa.unstable_batchedUpdates(()=>{y({type:G}),D(Wr.Uninitialized),Rt(null),ee(null),se(null),Lt.current=null;const De=G===on.DragEnd?"onDragEnd":"onDragCancel";if(be){const Ie=xe.current[De];Ie?.(be),v({type:De,event:be})}})}}},[w]),Ae=g.useCallback((Me,pt)=>(Qe,kt)=>{const ae=Qe.nativeEvent,ge=w.get(kt);if(W.current!==null||!ge||ae.dndKit||ae.defaultPrevented)return;const tt={active:ge};Me(Qe,pt.options,tt)===!0&&(ae.dndKit={capturedBy:pt.sensor},W.current=kt,re(Qe,pt))},[w,re]),$e=CW(p,Ae);MW(p),Fr(()=>{We&&N===Wr.Initializing&&D(Wr.Initialized)},[We,N]),g.useEffect(()=>{const{onDragMove:Me}=xe.current,{active:pt,activatorEvent:Qe,collisions:kt,over:ae}=de.current;if(!pt||!Qe)return;const ge={active:pt,activatorEvent:Qe,collisions:kt,delta:{x:ie.x,y:ie.y},over:ae};pa.unstable_batchedUpdates(()=>{Me?.(ge),v({type:"onDragMove",event:ge})})},[ie.x,ie.y]),g.useEffect(()=>{const{active:Me,activatorEvent:pt,collisions:Qe,droppableContainers:kt,scrollAdjustedTranslate:ae}=de.current;if(!Me||W.current==null||!pt||!ae)return;const{onDragOver:ge}=xe.current,tt=kt.get(Ve),Dt=tt&&tt.rect.current?{id:tt.id,rect:tt.rect.current,data:tt.data,disabled:tt.disabled}:null,G={active:Me,activatorEvent:pt,collisions:Qe,delta:{x:ae.x,y:ae.y},over:Dt};pa.unstable_batchedUpdates(()=>{Rt(Dt),ge?.(G),v({type:"onDragOver",event:G})})},[Ve]),Fr(()=>{de.current={activatorEvent:me,active:j,activeNode:Q,collisionRect:Ce,collisions:Oe,droppableRects:L,draggableNodes:w,draggingNode:H,draggingNodeRect:Fe,droppableContainers:C,over:st,scrollableAncestors:dt,scrollAdjustedTranslate:ie},k.current={initial:Fe,translated:Ce}},[j,Q,Oe,Ce,w,H,Fe,L,C,st,dt,ie]),wW({...ue,delta:R,draggingRect:Ce,pointerCoordinates:it,scrollableAncestors:dt,scrollableAncestorRects:lt});const je=g.useMemo(()=>({active:j,activeNode:Q,activeNodeRect:We,activatorEvent:me,collisions:Oe,containerNodeRect:fe,dragOverlay:Se,draggableNodes:w,droppableContainers:C,droppableRects:L,over:st,measureDroppableContainers:ke,scrollableAncestors:dt,scrollableAncestorRects:lt,measuringConfiguration:le,measuringScheduled:Re,windowRect:Pt}),[j,Q,We,me,Oe,fe,Se,w,C,L,st,ke,dt,lt,le,Re,Pt]),St=g.useMemo(()=>({activatorEvent:me,activators:$e,active:j,activeNodeRect:We,ariaDescribedById:{draggable:O},dispatch:y,draggableNodes:w,over:st,measureDroppableContainers:ke}),[me,$e,j,We,y,O,w,st,ke]);return at.createElement(_w.Provider,{value:T},at.createElement(so.Provider,{value:St},at.createElement($w.Provider,{value:je},at.createElement(Du.Provider,{value:Nt},c)),at.createElement(WW,{disabled:o?.restoreFocus===!1})),at.createElement(KG,{...o,hiddenTextDescribedById:O}));function Xt(){const Me=$?.autoScrollEnabled===!1,pt=typeof u=="object"?u.enabled===!1:u===!1,Qe=A&&!Me&&!pt;return typeof u=="object"?{...u,enabled:Qe}:{enabled:Qe}}}),ZW=g.createContext(null),Ry="button",KW="Draggable";function XW(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const s=Iu(KW),{activators:i,activatorEvent:o,active:u,activeNodeRect:c,ariaDescribedById:p,draggableNodes:d,over:f}=g.useContext(so),{role:m=Ry,roleDescription:b="draggable",tabIndex:E=0}=a??{},x=u?.id===t,y=g.useContext(x?Du:ZW),[v,T]=_l(),[N,D]=_l(),A=PW(i,t),S=Ri(n);Fr(()=>(d.set(t,{id:t,key:s,node:v,activatorNode:N,data:S}),()=>{const R=d.get(t);R&&R.key===s&&d.delete(t)}),[d,t]);const w=g.useMemo(()=>({role:m,tabIndex:E,"aria-disabled":r,"aria-pressed":x&&m===Ry?!0:void 0,"aria-roledescription":b,"aria-describedby":p.draggable}),[r,m,E,x,b,p.draggable]);return{active:u,activatorEvent:o,activeNodeRect:c,attributes:w,isDragging:x,listeners:r?void 0:A,node:v,over:f,setNodeRef:T,setActivatorNodeRef:D,transform:y}}function QW(){return g.useContext($w)}const JW="Droppable",eV={timeout:25};function tV(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const s=Iu(JW),{active:i,dispatch:o,over:u,measureDroppableContainers:c}=g.useContext(so),p=g.useRef({disabled:n}),d=g.useRef(!1),f=g.useRef(null),m=g.useRef(null),{disabled:b,updateMeasurementsFor:E,timeout:x}={...eV,...a},y=Ri(E??r),v=g.useCallback(()=>{if(!d.current){d.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),m.current=null},x)},[x]),T=Ru({callback:v,disabled:b||!i}),N=g.useCallback((w,R)=>{T&&(R&&(T.unobserve(R),d.current=!1),w&&T.observe(w))},[T]),[D,A]=_l(N),S=Ri(t);return g.useEffect(()=>{!T||!D.current||(T.disconnect(),d.current=!1,T.observe(D.current))},[D,T]),g.useEffect(()=>(o({type:on.RegisterDroppable,element:{id:r,key:s,disabled:n,node:D,rect:f,data:S}}),()=>o({type:on.UnregisterDroppable,key:s,id:r})),[r]),g.useEffect(()=>{n!==p.current.disabled&&(o({type:on.SetDroppableDisabled,id:r,key:s,disabled:n}),p.current.disabled=n)},[r,s,n,o]),{active:i,rect:f,isOver:u?.id===r,node:D,over:u,setNodeRef:A}}function nV(e){let{animation:t,children:n}=e;const[r,a]=g.useState(null),[s,i]=g.useState(null),o=Cl(n);return!n&&!r&&o&&a(o),Fr(()=>{if(!s)return;const u=r?.key,c=r?.props.id;if(u==null||c==null){a(null);return}Promise.resolve(t(c,s)).then(()=>{a(null)})},[t,r,s]),at.createElement(at.Fragment,null,n,r?g.cloneElement(r,{ref:i}):null)}const rV={x:0,y:0,scaleX:1,scaleY:1};function aV(e){let{children:t}=e;return at.createElement(so.Provider,{value:Uw},at.createElement(Du.Provider,{value:rV},t))}const sV={position:"fixed",touchAction:"none"},iV=e=>Cb(e)?"transform 250ms ease":void 0,oV=g.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:s,className:i,rect:o,style:u,transform:c,transition:p=iV}=e;if(!o)return null;const d=a?c:{...c,scaleX:1,scaleY:1},f={...sV,width:o.width,height:o.height,top:o.top,left:o.left,transform:cs.Transform.toString(d),transformOrigin:a&&r?QG(r,o):void 0,transition:typeof p=="function"?p(r):p,...u};return at.createElement(n,{className:i,style:f,ref:t},s)}),lV=e=>t=>{let{active:n,dragOverlay:r}=t;const a={},{styles:s,className:i}=e;if(s!=null&&s.active)for(const[o,u]of Object.entries(s.active))u!==void 0&&(a[o]=n.node.style.getPropertyValue(o),n.node.style.setProperty(o,u));if(s!=null&&s.dragOverlay)for(const[o,u]of Object.entries(s.dragOverlay))u!==void 0&&r.node.style.setProperty(o,u);return i!=null&&i.active&&n.node.classList.add(i.active),i!=null&&i.dragOverlay&&r.node.classList.add(i.dragOverlay),function(){for(const[u,c]of Object.entries(a))n.node.style.setProperty(u,c);i!=null&&i.active&&n.node.classList.remove(i.active)}},uV=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:cs.Transform.toString(t)},{transform:cs.Transform.toString(n)}]},cV={duration:250,easing:"ease",keyframes:uV,sideEffects:lV({styles:{active:{opacity:"0"}}})};function dV(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return ku((s,i)=>{if(t===null)return;const o=n.get(s);if(!o)return;const u=o.node.current;if(!u)return;const c=Bw(i);if(!c)return;const{transform:p}=Pn(i).getComputedStyle(i),d=kw(p);if(!d)return;const f=typeof t=="function"?t:pV(t);return Mw(u,a.draggable.measure),f({active:{id:s,data:o.data,node:u,rect:a.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:i,rect:a.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pV(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...cV,...e};return s=>{let{active:i,dragOverlay:o,transform:u,...c}=s;if(!t)return;const p={x:o.rect.left-i.rect.left,y:o.rect.top-i.rect.top},d={scaleX:u.scaleX!==1?i.rect.width*u.scaleX/o.rect.width:1,scaleY:u.scaleY!==1?i.rect.height*u.scaleY/o.rect.height:1},f={x:u.x-p.x,y:u.y-p.y,...d},m=a({...c,active:i,dragOverlay:o,transform:{initial:u,final:f}}),[b]=m,E=m[m.length-1];if(JSON.stringify(b)===JSON.stringify(E))return;const x=r?.({active:i,dragOverlay:o,...c}),y=o.node.animate(m,{duration:t,easing:n,fill:"forwards"});return new Promise(v=>{y.onfinish=()=>{x?.(),v()}})}}let Dy=0;function fV(e){return g.useMemo(()=>{if(e!=null)return Dy++,Dy},[e])}const mV=at.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:s,modifiers:i,wrapperElement:o="div",className:u,zIndex:c=999}=e;const{activatorEvent:p,active:d,activeNodeRect:f,containerNodeRect:m,draggableNodes:b,droppableContainers:E,dragOverlay:x,over:y,measuringConfiguration:v,scrollableAncestors:T,scrollableAncestorRects:N,windowRect:D}=QW(),A=g.useContext(Du),S=fV(d?.id),w=zw(i,{activatorEvent:p,active:d,activeNodeRect:f,containerNodeRect:m,draggingNodeRect:x.rect,over:y,overlayNodeRect:x.rect,scrollableAncestors:T,scrollableAncestorRects:N,transform:A,windowRect:D}),R=Lb(f),C=dV({config:r,draggableNodes:b,droppableContainers:E,measuringConfiguration:v}),U=R?x.setRef:void 0;return at.createElement(aV,null,at.createElement(nV,{animation:C},d&&S?at.createElement(oV,{key:S,id:d.id,ref:U,as:o,activatorEvent:p,adjustScale:t,className:u,transition:s,rect:R,style:{zIndex:c,...a},transform:w},n):null))}),hV=6e4,gV=10080*60*1e3,bV={P1:"error",P2:"warning",P3:"neutral"},EV={backlog:"bg-spur-text-faint",todo:"bg-spur-info",wip:"bg-spur-warning",testing:"bg-spur-accent",done:"bg-spur-success",blocked:"bg-spur-error",cancelled:"bg-spur-text-faint"};function xV(e,t){const n=new Date(e).getTime(),r=t-n,a=Math.floor(r/1e3);if(a<60)return"just now";const s=Math.floor(a/60);if(s<60)return`${s}m ago`;const i=Math.floor(s/60);if(i<24)return`${i}h ago`;const o=Math.floor(i/24);return o<30?`${o}d ago`:`${Math.floor(o/30)}mo ago`}function Hw({task:e,onClick:t}){const{attributes:n,listeners:r,setNodeRef:a,transform:s,isDragging:i}=XW({id:e.wbs,data:{task:e}}),[o,u]=g.useState(Date.now());g.useEffect(()=>{const m=setInterval(()=>u(Date.now()),hV);return()=>clearInterval(m)},[]);const c=s?{transform:cs.Transform.toString(s),zIndex:i?50:void 0}:void 0,{subtaskProgress:p}=Tb(),d=p.get(e.wbs),f=e.updatedAt?o-new Date(e.updatedAt).getTime()>gV:!1;return l.jsx(Ji,{variant:"compact",asChild:!0,className:`bg-spur-surface-2 hover:bg-spur-surface-3 rounded-xl border border-spur-border hover:border-spur-accent/40 cursor-pointer transition-colors w-full text-left ${i?"opacity-30":""}`,children:l.jsx("button",{ref:a,type:"button",style:c,onClick:()=>t(e.wbs),...r,...n,"aria-roledescription":"draggable card",children:l.jsxs(eo,{className:"p-3 gap-1",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-mono font-semibold text-spur-text",children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full shrink-0 ${EV[e.status]??"bg-spur-text-faint"}`,"data-status":e.status,"aria-hidden":"true"}),e.wbs]}),e.priority&&l.jsx(Mt,{variant:bV[e.priority]??"outline",size:"xs",children:e.priority})]}),l.jsx("p",{className:"text-sm font-medium text-spur-text leading-snug line-clamp-2",children:e.name}),l.jsxs("div",{className:"flex gap-1 flex-wrap items-center",children:[d&&d.total>0&&l.jsxs("div",{className:"flex items-center gap-1.5","data-testid":"subtask-progress",title:"subtasks done/total",children:[l.jsx("div",{className:"h-1 flex-1 rounded-full bg-spur-border overflow-hidden",children:l.jsx("div",{className:"h-full bg-spur-success",style:{width:`${Math.round(d.done/d.total*100)}%`}})}),l.jsxs("span",{className:"text-[10px] font-mono text-spur-text-muted shrink-0",children:[d.done,"/",d.total]})]}),e.type&&e.type!=="task"&&l.jsx(Mt,{variant:"outline",size:"xs",children:e.type}),e.featureId&&l.jsx(Mt,{variant:"outline",size:"xs",children:e.featureId}),e.updatedAt&&l.jsx("span",{className:`text-xs font-mono ml-auto ${f?"text-spur-text-faint":"text-spur-text-muted"}`,title:e.updatedAt,children:xV(e.updatedAt,o)})]})]})})})}function yV({status:e,label:t,tasks:n,onCardClick:r,sortDir:a,onSortToggle:s}){const{setNodeRef:i,isOver:o}=tV({id:e,data:{status:e}});return l.jsxs("section",{ref:i,"aria-label":`${t} column`,className:`flex flex-col flex-1 min-w-[16rem] rounded-xl border transition-colors duration-200 ${o?"bg-spur-surface-2 border-spur-accent shadow-lg":"bg-spur-surface border-spur-border"}`,children:[l.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-spur-border shrink-0",children:[l.jsxs("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:[xb(e)," ",t]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx(Mt,{variant:"ghost",size:"sm",children:n.length}),s&&l.jsx(Ye,{variant:"ghost",size:"xs",className:"px-1",onClick:s,"aria-label":`Sort ${t} by WBS`,title:`Sort ${t}: ${a==="asc"?"WBS ↓":a==="desc"?"WBS ↑":"none"}`,children:a==="asc"?"↓":a==="desc"?"↑":"⇅"})]})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[4rem]",children:[n.map(u=>l.jsx(Hw,{task:u,onClick:r},u.wbs)),n.length===0&&l.jsx("div",{className:"flex items-center justify-center h-16 text-xs text-spur-text-muted italic",children:"No tasks"})]})]})}const TV=g.lazy(()=>Yv(()=>import("./TaskDetail.BvkKvo57.js"),__vite__mapDeps([2,1]))),SV=ar,Gw="docs/tasks",Oy="spur:detail-width",vV=new Set(["blocked","cancelled"]);function wV(e,t){return t?e.filter(n=>!(t.status!==void 0&&!t.status.split(",").includes(n.status)||t.featureId&&!n.featureId?.toLowerCase().includes(t.featureId.toLowerCase())||t.parentWbs&&n.parentWbs!==t.parentWbs)):e}function Ww(e){const{onSelectTask:t,filters:n,folder:r,hiddenColumns:a,onConnectionChange:s,onSyncChange:i}=e,[o,u]=g.useState({}),[c,p]=g.useState(Gw),[d,f]=g.useState(null),[m,b]=g.useState(()=>{const te=typeof window<"u"?Math.min(1728,window.innerWidth*.8):1728;if(typeof window>"u")return te;try{const le=Number.parseFloat(window.localStorage.getItem(Oy)??"");if(Number.isFinite(le)&&le>0)return Math.min(le,window.innerWidth*.8)}catch{}return te}),E=r??c,x=a??vV,y=g.useCallback(()=>rn.task.list({folder:E}),[E]),{tasks:v,loading:T,error:N,connected:D,lastSyncAt:A,setTasks:S,store:w}=Tb(y),[R,C]=g.useState(null);g.useEffect(()=>{s?.(D)},[D,s]),g.useEffect(()=>{i?.(A)},[A,i]),g.useEffect(()=>{typeof rn.task.folders=="function"&&rn.task.folders({}).then(te=>{const{data:le,activeFolder:L}=te,ke=L??le?.[0]?.path;ke!==void 0&&p(ke)}).catch(()=>{})},[]),g.useEffect(()=>{document.documentElement.style.setProperty("--detail-w",`${m}px`)},[m]),g.useEffect(()=>{if(!d)return;const te=le=>{le.key==="Escape"&&f(null)};return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[d]);const U=ir();g.useEffect(()=>{const te=U.pathname.split("/"),le=te.indexOf("tasks"),L=le>=0?te[le+1]:void 0;L&&/^\d{4}$/.test(L)&&f(L)},[U.pathname]);const k=Ty(Ob,{activationConstraint:{distance:5}}),j=Ty(Rb),W=XG(k,j),$=wV(v,n),ee=te=>{u(le=>{const L={...le};return le[te]==="asc"?L[te]="desc":le[te]==="desc"?delete L[te]:L[te]="asc",L})},me=te=>{const le=$.filter(ke=>ke.status===te),L=o[te]??"desc";return[...le].sort((ke,Re)=>{const Q=ke.wbs.localeCompare(Re.wbs);return L==="asc"?Q:-Q})},se=te=>v.find(le=>le.wbs===te),xe=te=>{C(String(te.active.id))},O=te=>{C(null);const{active:le,over:L}=te;if(!L)return;const ke=String(le.id),Re=String(L.id),Q=se(ke);if(!Q||Q.status===Re)return;const _e=[...v];S(ue=>ue.map(X=>X.wbs===ke?{...X,status:Re}:X)),rn.task.transition({wbs:ke,toStatus:Re}).catch(ue=>{S(_e);const X=ue instanceof Error?ue.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:X}}))})};return T?l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx(Da,{size:"lg",className:"text-spur-accent"})}):N?l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsxs("div",{className:"text-center text-spur-text-muted",children:[l.jsx("p",{className:"text-lg font-semibold",children:"Failed to load tasks"}),l.jsx("p",{className:"text-sm",children:N.message})]})}):l.jsx(ew.Provider,{value:w,children:l.jsxs(YW,{sensors:W,onDragStart:xe,onDragEnd:O,children:[l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx("div",{className:"flex gap-3 overflow-x-auto h-full p-4",children:SV.filter(te=>!x.has(te)).map(te=>l.jsx(yV,{status:te,label:te,tasks:me(te),onCardClick:le=>{f(le),t(le)},sortDir:o[te],onSortToggle:()=>ee(te)},te))}),d&&l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button","aria-label":"Close task detail",className:"fixed inset-0 z-50 bg-black/40 border-0 p-0 cursor-default",onClick:()=>f(null)}),l.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Task detail",className:"fixed top-0 right-0 h-full z-50 bg-spur-surface border-l border-spur-border shadow-2xl flex",style:{width:"var(--detail-w)",minWidth:"36rem",maxWidth:"80vw"},children:[l.jsx(yl,{targetVar:"--detail-w",onResizeEnd:te=>{const le=Math.max(576,Math.min(te,window.innerWidth*.8));b(le);try{window.localStorage.setItem(Oy,String(le))}catch{}},direction:"horizontal",invert:!0}),l.jsx("div",{className:"flex flex-col flex-1 overflow-hidden",children:l.jsx("div",{className:"flex-1 overflow-y-auto","data-testid":"detail-body",children:(()=>{const te=v.find(le=>le.wbs===d);return te?l.jsx(g.Suspense,{fallback:l.jsx("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:"Loading detail..."}),children:l.jsx(TV,{task:te,onClose:()=>f(null),onTransition:(le,L)=>{S(ke=>ke.map(Re=>Re.wbs===le?{...Re,status:L}:Re)),rn.task.transition({wbs:le,toStatus:L}).catch(ke=>{const Re=ke instanceof Error?ke.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:Re}}))})}})}):null})()})})]})]})]}),l.jsx(mV,{dropAnimation:null,children:R?(()=>{const te=se(R);return te?l.jsx("div",{className:"opacity-90",children:l.jsx(Hw,{task:te,onClick:()=>{}})}):null})():null})]})})}const Bc=[{id:"kanban",label:"Kanban",component:Ww}];function Vw(){const[e,t]=D_(),n=ir(),r=jl(),a=g.useMemo(()=>{const u=n.pathname.split("/"),c=u.indexOf("tasks"),p=c>=0?u[c+1]:void 0;return p&&/^\d{4}$/.test(p)?p:e.get("selected")},[n.pathname,e]),s=g.useMemo(()=>{const u={},c=e.get("status"),p=e.get("feature"),d=e.get("parent"),f=e.get("assignee"),m=e.get("folder");return c!==null&&(u.status=c),p&&(u.featureId=p),d&&(u.parentWbs=d),f&&(u.assignee=f),m&&(u.folder=m),u},[e]);return{selected:a,filters:s,selectTask:u=>{const c=new URLSearchParams(e);c.delete("selected");const p=c.toString(),d=u?`/board/tasks/${u}`:"/board/tasks";r(`${d}${p?`?${p}`:""}`,{replace:!0})},setFilter:(u,c)=>{t(p=>{const d=new URLSearchParams(p);return u==="feature"&&d.delete("parent"),u==="parent"&&d.delete("feature"),c!==null?d.set(u,c):d.delete(u),d},{replace:!0})}}}function NV(e){const t=e.trim();return/^\d{4}$/.test(t)?{kind:"navigate",wbs:t}:t.includes(".")?{kind:"filter",key:"parent",value:t}:{kind:"filter",key:"feature",value:t}}function AV(){const{selectTask:e,setFilter:t,filters:n}=Vw(),[r,a]=g.useState(Gw),[s,i]=g.useState([]),[o,u]=g.useState("kanban"),[c,p]=g.useState(!1),[d,f]=g.useState(""),[m,b]=g.useState(!1),[E,x]=g.useState(void 0),y=n.folder??r,v=new Set(n.status===void 0?ar.filter(S=>S!=="blocked"&&S!=="cancelled"):n.status.split(",").filter(S=>ar.some(w=>w===S))),T=new Set(ar.filter(S=>!v.has(S)));g.useEffect(()=>{f(n.featureId??n.parentWbs??"")},[n.featureId,n.parentWbs]),g.useEffect(()=>{typeof rn.task.folders=="function"&&rn.task.folders({}).then(S=>{const{data:w,activeFolder:R}=S,C=R??w?.[0]?.path;w&&i(w),C!==void 0&&a(C)}).catch(()=>{})},[]);const N=S=>{const w=new Set(v);w.has(S)?w.delete(S):w.add(S),t("status",ar.filter(R=>w.has(R)).join(","))},D=S=>{S.preventDefault();const w=NV(d);if(w.kind==="navigate"){e(w.wbs),f("");return}t(w.key,w.value||null)},A=(Bc.find(S=>S.id===o)??Bc[0]).component;return l.jsxs("div",{className:"task-kanban flex flex-col h-full",children:[l.jsx("header",{className:"mx-auto w-full max-w-[1600px] shrink-0 px-4 pt-3",children:l.jsxs("div",{className:"flex flex-nowrap items-center justify-between gap-4 border-b border-base-content/10 pb-3",children:[l.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[l.jsx("span",{className:"text-2xl","aria-hidden":"true",children:"📋"}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-xl font-bold tracking-tight text-spur-text",children:"Tasks"}),l.jsx("p",{className:"text-xs text-spur-text-muted",children:"Task corpus, kanban lanes, and phase filters"}),l.jsxs("p",{className:"mt-1 inline-flex items-center gap-1.5 rounded-full border border-spur-border px-2 py-0.5 text-xs text-spur-text-muted font-mono",role:"status","data-testid":"tasks-live-chip",children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${m?"bg-spur-success":"bg-spur-error"}`,"aria-hidden":"true"}),"last sync ",E?new Date(E).toLocaleString():"—"]})]})]}),l.jsxs("div",{className:"flex min-w-0 flex-nowrap items-center gap-2 overflow-x-auto",children:[l.jsx(Jr,{variant:"ghost",size:"xs",className:"text-xs shrink-0 w-44",value:y,onChange:S=>t("folder",S.target.value),"aria-label":"Task phase folder",children:s.map(S=>l.jsx("option",{value:S.path,children:S.label?`${S.label} (${S.path})`:S.path},S.path))}),l.jsx("div",{className:"flex shrink-0 items-center gap-1",children:ar.map(S=>l.jsxs("label",{htmlFor:`tasks-status-${S}`,className:"flex items-center gap-1 cursor-pointer",children:[l.jsx(ob,{id:`tasks-status-${S}`,size:"xs",checked:!T.has(S),onChange:()=>N(S)}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[xb(S)," ",S]})]},S))}),l.jsx("form",{onSubmit:D,className:"flex shrink-0 items-center",children:l.jsx(vi,{"aria-label":"Filter by WBS or feature",type:"text",placeholder:"WBS or feature",variant:"bordered",size:"xs",className:"w-36",value:d,onChange:S=>f(S.target.value)})}),l.jsx(Ye,{variant:"primary",size:"sm",className:"shrink-0",onClick:()=>p(!0),children:"+ New Task"}),l.jsx("div",{className:"flex shrink-0 items-center gap-1 bg-base-300 p-1 rounded-xl",children:Bc.map(S=>l.jsx("button",{type:"button",className:`px-3 py-1.5 text-xs font-semibold rounded-lg transition-all ${o===S.id?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>u(S.id),children:S.label},S.id))})]})]})}),l.jsx("div",{"data-kanban-board":!0,className:"flex-1 overflow-hidden",children:l.jsx(A,{onSelectTask:e,filters:n,folder:y,hiddenColumns:T,onConnectionChange:b,onSyncChange:x})}),l.jsx(Qv,{open:c,onClose:()=>p(!1),onCreated:()=>{},folder:y})]})}function _V(e,t){rn.task.transition({wbs:e,toStatus:t}).catch(n=>{const r=n instanceof Error?n.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:r}}))})}function qw(){const{filters:e,selectTask:t}=Vw();return l.jsx("div",{className:"task-kanban flex flex-col h-full",children:l.jsx("div",{"data-kanban-board":!0,className:"flex-1 overflow-hidden",children:l.jsx(Ww,{onSelectTask:t,filters:e})})})}const CV={id:"tasks",name:"Tasks",icon:"📋",route:"tasks",component:AV},kV=Object.freeze(Object.defineProperty({__proto__:null,TaskKanbanView:qw,module:CV,transition:_V},Symbol.toStringTag,{value:"Module"}));function Yw(e){const t=new Map;for(const n of e)for(const r of n.members)t.set(r.id,{teamId:n.teamId,memberLabel:r.id,agentType:r.type});return t}function Zw(e,t){if(e.teamId&&e.memberLabel&&e.agentType)return e;const n=e.memberLabel??e.actor;if(!n)return e;const r=t.get(n);return r?{...e,teamId:e.teamId??r.teamId,memberLabel:e.memberLabel??r.memberLabel,agentType:e.agentType??r.agentType}:e}const Pd=100;function Kw(e,t){const n=[t,...e??[]];return n.length>Pd&&(n.length=Pd),n}const Xw=()=>`${_t()}/events/history?limit=${Pd}`,Qw=()=>`${_t()}/events/planning`,IV=["agent.","message.","team.","supervisor.","process."];function RV(e){return IV.some(t=>e.startsWith(t))}function Fb(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.eventName!="string"||typeof t.occurredAt!="string"||!RV(t.eventName))return null;const n=t.payload!==null&&typeof t.payload=="object"?t.payload:null,r=n&&typeof n.teamId=="string"&&n.teamId.length>0?n.teamId:void 0,a=n&&typeof n.agentType=="string"&&n.agentType.length>0?n.agentType:void 0,s=n&&typeof n.memberLabel=="string"&&n.memberLabel.length>0?n.memberLabel:n&&typeof n.agentId=="string"&&n.agentId.length>0?n.agentId:void 0,i=typeof t.actor=="string"&&t.actor.length>0?t.actor:n&&typeof n.agentId=="string"&&n.agentId.length>0?n.agentId:null;return{id:typeof t.id=="string"?t.id:`${t.eventName}-${t.occurredAt}`,eventName:t.eventName,occurredAt:t.occurredAt,actor:i,...r?{teamId:r}:{},...s?{memberLabel:s}:{},...a?{agentType:a}:{}}}function Jw(e){if(e===null||typeof e!="object"||!("events"in e))return null;const t=e.events;if(!Array.isArray(t))return null;const n=[];for(const r of t){const a=Fb(r);a&&n.push(a)}return n}function DV({teamId:e}){const[t,n]=g.useState(null),[r,a]=g.useState(null),{teams:s}=Ns(),i=g.useMemo(()=>Yw(s),[s]),o=g.useCallback(async()=>{try{const c=await wt(new Request(Xw()));if(!c.ok)throw new Error(`events fetch failed: ${c.status}`);const p=Jw(await c.json());if(!p)throw new Error("events response failed schema validation");n(p)}catch(c){a(c instanceof Error?c.message:String(c))}},[]);g.useEffect(()=>{o()},[o]),g.useEffect(()=>{if(typeof EventSource>"u")return;const c=new EventSource(Qw());return c.onmessage=p=>{try{const d=Fb(JSON.parse(p.data));d&&n(f=>Kw(f,d))}catch{}},()=>c.close()},[]);const u=g.useMemo(()=>t===null?null:t.map(c=>Zw(c,i)).filter(c=>!e||c.teamId===e),[t,i,e]);return r?l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load activity: ",r]}):u===null?l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading activity…"}):l.jsx("div",{className:"flex flex-col h-full overflow-y-auto","data-activity-tab":!0,children:u.length===0?l.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic",children:"No team activity yet."}):l.jsxs("table",{className:"w-full text-xs",children:[l.jsx("thead",{className:"sticky top-0 bg-base-200",children:l.jsxs("tr",{className:"text-left text-spur-text-muted",children:[l.jsx("th",{className:"px-3 py-1 font-medium",children:"Time"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Event"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Team"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Member"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Agent"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Actor"})]})}),l.jsx("tbody",{children:u.map(c=>l.jsxs("tr",{className:"border-t border-spur-border","data-activity-row":c.eventName,children:[l.jsx("td",{className:"px-3 py-1 font-mono text-spur-text-muted",children:c.occurredAt}),l.jsx("td",{className:"px-3 py-1 text-spur-text",children:c.eventName}),l.jsx("td",{className:"px-3 py-1 font-mono text-spur-text-muted",children:c.teamId??"—"}),l.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:c.memberLabel??"—"}),l.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:c.agentType??"—"}),l.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:c.actor??"system"})]},c.id))})]})})}const OV=3e3,LV=()=>`${_t()}/team/processes`;function FV(e,t){const n=e.map(s=>({key:`sup:${s.agentId}`,label:s.agentId,agentId:s.agentId,pid:s.pid,status:s.status,startedAt:s.startedAt,source:"supervisor",teamId:s.teamId??null})),r=new Set(e.map(s=>s.agentId)),a=new Set(e.map(s=>s.pid).filter(s=>s!=null));for(const s of t)s.agentId&&r.has(s.agentId)||s.pid!=null&&a.has(s.pid)||n.push({key:`reg:${s.id}`,label:s.label||s.command,agentId:s.agentId??void 0,pid:s.pid,status:s.status,startedAt:s.startedAt,source:s.source,teamId:s.teamId??null});return n}function MV(e,t){return e.filter(n=>{if(t.runningOnly&&n.status!=="running")return!1;if(t.source==="other"){if(n.source==="supervisor"||n.source==="one-shot")return!1}else if(t.source!=="all"&&n.source!==t.source)return!1;if(t.team==="unassigned"){if(n.teamId!=null)return!1}else if(t.team!=="all"&&n.teamId!==t.team)return!1;return!0})}function Ly({filters:e,onFilters:t,teamIds:n,totalCount:r,shownCount:a}){return l.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-2 text-xs","data-processes-filters":!0,children:[l.jsxs("label",{className:"flex items-center gap-1","data-processes-filter-running":!0,children:[l.jsx("input",{type:"checkbox",checked:e.runningOnly,onChange:s=>t({...e,runningOnly:s.target.checked}),"data-processes-filter-running-input":!0}),l.jsx("span",{children:"Running only"})]}),l.jsxs("label",{className:"flex items-center gap-1",children:[l.jsx("span",{children:"Source"}),l.jsxs("select",{value:e.source,onChange:s=>t({...e,source:s.target.value}),className:"border border-spur-border rounded px-1 py-0.5 bg-spur-bg text-spur-text","data-processes-filter-source":!0,"aria-label":"Source filter",children:[l.jsx("option",{value:"all",children:"all"}),l.jsx("option",{value:"supervisor",children:"supervisor"}),l.jsx("option",{value:"one-shot",children:"one-shot"}),l.jsx("option",{value:"other",children:"other"})]})]}),l.jsxs("label",{className:"flex items-center gap-1",children:[l.jsx("span",{children:"Team"}),l.jsxs("select",{value:e.team,onChange:s=>t({...e,team:s.target.value}),className:"border border-spur-border rounded px-1 py-0.5 bg-spur-bg text-spur-text","data-processes-filter-team":!0,"aria-label":"Team filter",children:[l.jsx("option",{value:"all",children:"all teams"}),l.jsx("option",{value:"unassigned",children:"unassigned"}),n.map(s=>l.jsx("option",{value:s,children:s},s))]})]}),l.jsx("button",{type:"button",className:"border border-spur-border rounded px-2 py-0.5 text-spur-text hover:bg-base-200 transition-colors cursor-pointer",onClick:()=>t({runningOnly:!1,source:"all",team:"all"}),"data-processes-filter-clear":!0,children:"Clear"}),l.jsxs("span",{className:"text-spur-text-muted","data-processes-filter-count":!0,children:[a,"/",r," shown"]})]})}function PV({teamId:e}){const[t,n]=g.useState(null),[r,a]=g.useState(null),[s,i]=g.useState({runningOnly:!1,source:"all",team:"all"}),o=g.useRef(!0),u=g.useCallback(async b=>{try{const E=await wt(new Request(LV(),{signal:b}));if(!E.ok)throw new Error(`processes fetch failed: ${E.status}`);const y=await E.json();o.current&&(n({processes:y.processes??[],count:y.count??0,executions:y.executions??[],executionsCount:y.executionsCount??0}),a(null))}catch(E){if(b.aborted)return;o.current&&a(E instanceof Error?E.message:String(E))}},[]);g.useEffect(()=>{o.current=!0;let b=null;const E=()=>{b?.abort(),b=new AbortController,u(b.signal)};E();const x=setInterval(E,OV);return()=>{o.current=!1,b?.abort(),clearInterval(x)}},[u]);const c=g.useMemo(()=>t?FV(t.processes,t.executions):[],[t]),p=g.useMemo(()=>{const b=e?c.filter(E=>E.teamId===e):c;return MV(b,s)},[c,s,e]),d=g.useMemo(()=>{const b=new Set;for(const E of t?.processes??[])E.teamId&&b.add(E.teamId);for(const E of t?.executions??[])E.teamId&&b.add(E.teamId);return[...b].sort()},[t]);if(r&&(!t||c.length===0))return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-processes-tab-error":!0,children:["Failed to load processes: ",r]});if(!t)return l.jsx("div",{className:"p-4","data-processes-tab-loading":!0,children:l.jsx(Da,{size:"sm"})});if(c.length===0)return l.jsxs("div",{className:"p-4 text-sm text-spur-text-muted","data-processes-tab-empty":!0,children:["No processes. Start a team agent from the Terminal tab or via"," ",l.jsx("code",{className:"font-mono",children:"spur team start"}),"."]});if(p.length===0)return l.jsxs("div",{className:"p-3 overflow-auto h-full","data-processes-tab":!0,"data-processes-tab-filtered-empty":!0,children:[l.jsx(Ly,{filters:s,onFilters:i,teamIds:d,totalCount:c.length,shownCount:0}),l.jsx("div",{className:"p-4 text-sm text-spur-text-muted","data-processes-tab-no-matches":!0,children:"No processes match the current filters. Adjust or clear filters to see rows."})]});const f=t.processes.length,m=Math.max(0,c.length-f);return l.jsxs("div",{className:"p-3 overflow-auto h-full","data-processes-tab":!0,children:[l.jsx(Ly,{filters:s,onFilters:i,teamIds:d,totalCount:c.length,shownCount:p.length}),l.jsxs("div",{className:"flex items-center gap-2 mb-2 text-xs text-spur-text-muted",children:[l.jsxs("span",{"data-processes-header":!0,children:["Process watch list (",c.length,f>0||m>0?` · ${f} supervised${m>0?` · ${m} other`:""}`:"",")"]}),l.jsx("span",{className:"italic",children:"— ProcessExecutor registry (ts-runtime)"})]}),l.jsxs("table",{className:"table table-xs",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Name"}),l.jsx("th",{children:"Source"}),l.jsx("th",{children:"Team"}),l.jsx("th",{children:"PID"}),l.jsx("th",{children:"Status"}),l.jsx("th",{children:"Started"})]})}),l.jsx("tbody",{children:p.map(b=>{const E=b.status==="running";return l.jsxs("tr",{"data-processes-row":b.key,children:[l.jsx("td",{className:"font-mono text-xs",children:b.label}),l.jsx("td",{className:"text-xs text-spur-text-muted","data-process-source":b.source,children:b.source}),l.jsx("td",{className:"font-mono text-xs text-spur-text-muted","data-process-team":b.teamId??"",children:b.teamId??"—"}),l.jsx("td",{className:"font-mono text-xs text-spur-text-muted",children:b.pid??"—"}),l.jsx("td",{children:l.jsx(Mt,{variant:E?"success":"ghost",size:"xs",children:b.status})}),l.jsx("td",{className:"text-xs text-spur-text-muted",children:new Date(b.startedAt).toLocaleTimeString()})]},b.key)})})]})]})}const jV=e=>`${_t()}/team/agents/${encodeURIComponent(e)}/start`,BV=e=>`${_t()}/team/agents/${encodeURIComponent(e)}/stop`,UV=e=>`${_t()}/team/${encodeURIComponent(e)}/up`,$V=e=>`${_t()}/team/${encodeURIComponent(e)}/down`;function zV(e){if(e<0)return"-";const t=Math.floor(e/1e3),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),a=Math.floor(t%3600/60),s=t%60;return n>0?`${n}d ${r}h ${a}m`:r>0?`${r}h ${a}m`:a>0?`${a}m ${s}s`:`${s}s`}function Fy(e){try{return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}function HV(e){const t=new Map;for(const n of e){if(!n.teamId||!n.memberLabel)continue;const r=`${n.teamId}:${n.memberLabel}`;let a=t.get(r);a||(a={startedAt:null,lastActivity:null},t.set(r,a)),n.eventName==="team.member.started"&&(!a.startedAt||n.occurredAt>a.startedAt)&&(a.startedAt=n.occurredAt),(!a.lastActivity||n.occurredAt>a.lastActivity.time)&&(a.lastActivity={time:n.occurredAt,eventName:n.eventName})}return t}function GV({teamId:e}){const{teams:t,error:n,reload:r}=Ns(),[a,s]=g.useState(null),[i,o]=g.useState(null),[u,c]=g.useState(!1),[p,d]=g.useState(null),[f,m]=g.useState(null),[b,E]=g.useState(null),[x,y]=g.useState(()=>Date.now()),v=g.useMemo(()=>e?t.filter(w=>w.teamId===e):t,[t,e]),T=g.useMemo(()=>Yw(v),[v]);g.useEffect(()=>{let w=!1;return(async()=>{try{const R=await wt(new Request(Xw()));if(w)return;if(!R.ok)throw new Error(`events fetch failed: ${R.status}`);const C=Jw(await R.json());if(w)return;if(!C)throw new Error("events response failed schema validation");s(C)}catch(R){if(w)return;o(R instanceof Error?R.message:String(R))}})(),()=>{w=!0}},[]),g.useEffect(()=>{if(typeof EventSource>"u")return;const w=new EventSource(Qw());return w.onmessage=R=>{try{const C=Fb(JSON.parse(R.data));C&&s(U=>Kw(U,C))}catch{}},()=>w.close()},[]),g.useEffect(()=>{const w=setInterval(()=>y(Date.now()),1e3);return()=>clearInterval(w)},[]);const N=g.useMemo(()=>a===null?null:a.map(w=>Zw(w,T)).filter(w=>!e||w.teamId===e),[a,T,e]),D=g.useMemo(()=>N===null?new Map:HV(N),[N]),A=g.useCallback(async(w,R)=>{c(!0),d(null);try{const C=R?BV(w):jV(w),U=await wt(new Request(C,{method:"POST"}));if(!U.ok){const k=await U.json().catch(()=>null),j=k&&typeof k=="object"&&"error"in k&&typeof k.error=="string"?k.error:`request failed (${U.status})`;d(j)}}catch(C){d(C instanceof Error?C.message:String(C))}finally{c(!1),r()}},[r]),S=g.useCallback(async(w,R)=>{c(!0),d(null);try{const C=R==="up"?UV(w):$V(w),U=await wt(new Request(C,{method:"POST"}));if(!U.ok){const k=await U.json().catch(()=>null),j=k&&typeof k=="object"&&"error"in k&&typeof k.error=="string"?k.error:`request failed (${U.status})`;d(j)}}catch(C){d(C instanceof Error?C.message:String(C))}finally{c(!1),r()}},[r]);return l.jsxs("div",{className:"flex flex-col h-full overflow-y-auto","data-supervisor-tab":!0,children:[n&&v.length===0?l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-supervisor-tab-error":!0,children:["Failed to load teams: ",n,". Event-derived activity remains available below."]}):n&&l.jsxs("div",{className:"px-3 py-1 text-xs text-error bg-error/10 border-b border-error/30",role:"alert","data-supervisor-roster-error":!0,children:["Roster feed error: ",n,". Showing last-known state."]}),v.length===0&&!n&&l.jsx("div",{className:"p-4 text-sm text-spur-text-muted","data-supervisor-tab-loading":!0,children:"Loading teams…"}),p&&l.jsx("div",{className:"px-3 py-1 text-xs text-error",role:"alert","data-supervisor-action-error":!0,children:p}),i&&l.jsxs("div",{className:"px-3 py-1 text-xs text-warning",role:"alert","data-supervisor-event-error":!0,children:["Activity feed error: ",i,". Live updates may be delayed."]}),l.jsx("div",{className:"p-2 space-y-2",children:v.map(w=>l.jsx(Ji,{variant:"compact",className:"bg-base-200 border border-spur-border",children:l.jsxs(eo,{className:"p-3 gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:w.name}),l.jsx(Mt,{variant:"outline",size:"xs",children:w.teamId}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[w.members.length," member(s)"]}),l.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[l.jsx(Ye,{type:"button",variant:"ghost",size:"xs",disabled:u,onClick:()=>{S(w.teamId,"up")},"data-supervisor-team-up":w.teamId,children:"Up"}),l.jsx(Ye,{type:"button",variant:"ghost",size:"xs",disabled:u,onClick:()=>E(w.teamId),"data-supervisor-team-down":w.teamId,children:"Down"})]})]}),w.members.length===0?l.jsx("div",{className:"text-xs text-spur-text-muted italic py-2","data-supervisor-empty-roster":w.teamId,children:"No members configured for this team."}):l.jsx("ul",{className:"space-y-1",children:w.members.map(R=>{const C=R.status==="running",U=`${w.teamId}:${R.id}`,k=D.get(U),j=C&&k?.startedAt?zV(x-Date.parse(k.startedAt)):"-",W=k?.lastActivity??null;return l.jsxs("li",{className:"text-xs flex items-center gap-2 flex-wrap py-1 border-b border-spur-border/50 last:border-b-0","data-supervisor-member-row":R.id,children:[l.jsx(Mt,{variant:C?"success":"ghost",size:"xs",children:R.status}),l.jsx("span",{className:"font-mono text-spur-text",children:R.id}),l.jsx(Mt,{variant:"outline",size:"xs",children:R.type}),l.jsx(Mt,{variant:R.role!==void 0?"accent":"ghost",size:"xs","data-supervisor-member-role":R.id,children:R.role??"unset"}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted font-mono","data-supervisor-uptime":R.id,children:["up ",j]}),W?l.jsxs("span",{className:"text-[10px] text-spur-text-muted","data-supervisor-last-activity":R.id,children:["last: ",Fy(W.time)," (",W.eventName,")"]}):l.jsx("span",{className:"text-[10px] text-spur-text-muted","data-supervisor-last-activity":R.id,children:"last: -"}),l.jsx(Ye,{type:"button",variant:C?"ghost":"primary",size:"xs",disabled:u,className:"ml-auto",onClick:()=>{C?m(R.id):A(R.id,!1)},"data-supervisor-toggle":R.id,children:C?"Stop":"Start"})]},R.id)})})]})},w.teamId))}),N!==null&&l.jsxs("section",{className:"border-t border-spur-border bg-base-300/40","aria-label":"Recent team activity","data-supervisor-activity":!0,children:[l.jsx("div",{className:"px-3 py-2 text-[10px] uppercase tracking-wide font-semibold text-spur-text-muted",children:"Recent team activity"}),N.length===0?l.jsx("div",{className:"px-3 pb-3 text-xs text-spur-text-muted italic",children:"No team activity yet."}):l.jsx("ul",{className:"px-3 pb-3 space-y-1",children:N.slice(0,20).map(w=>l.jsxs("li",{className:"flex items-center gap-2 flex-wrap text-[10px] text-spur-text-muted","data-supervisor-activity-row":w.eventName,children:[l.jsx("span",{className:"font-mono",children:Fy(w.occurredAt)}),l.jsx(Mt,{variant:"outline",size:"xs",children:w.eventName}),w.teamId&&l.jsx("span",{children:w.teamId}),w.memberLabel&&l.jsx("span",{className:"font-mono",children:w.memberLabel}),w.actor&&l.jsx("span",{children:w.actor})]},w.id))})]}),l.jsxs(fl,{open:f!==null,variant:"warning",onClose:()=>m(null),"data-stop-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Stop member?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["Stopping ",l.jsx("span",{className:"font-mono",children:f})," will terminate its running process. Input to this member will be disabled until it is restarted."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(Ye,{type:"button",variant:"ghost",size:"sm",onClick:()=>m(null),"data-stop-confirm-cancel":!0,children:"Cancel"}),l.jsx(Ye,{type:"button",variant:"warning",size:"sm",disabled:u,onClick:()=>{if(!f)return;const w=f;m(null),A(w,!0)},"data-stop-confirm-confirm":!0,children:"Stop"})]})]}),l.jsxs(fl,{open:b!==null,variant:"warning",onClose:()=>E(null),"data-down-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Bring team down?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["This will stop all running members of ",l.jsx("span",{className:"font-mono",children:b}),"."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(Ye,{type:"button",variant:"ghost",size:"sm",onClick:()=>E(null),"data-down-confirm-cancel":!0,children:"Cancel"}),l.jsx(Ye,{type:"button",variant:"warning",size:"sm",disabled:u,onClick:()=>{if(!b)return;const w=b;E(null),S(w,"down")},"data-down-confirm-confirm":!0,children:"Bring Down"})]})]})]})}const Mo=1e3,Uc=[1e3,2e3,4e3,8e3,15e3],WV=15e3;function VV(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.stream!="string"||typeof t.ts!="string"||typeof t.line!="string")return null;const n=t.stream;if(n!=="stdout"&&n!=="stderr"&&n!=="meta")return null;const r=t.seq;return r!==void 0&&typeof r!="number"?null:{stream:n,ts:t.ts,line:t.line,...r!==void 0?{seq:r}:{}}}function qV(e){return e<0?Uc[0]:e>=Uc.length?WV:Uc[e]}function My(e,t,n){if(t.seq===void 0){const a=[...e,t];return a.length>Mo&&a.splice(0,a.length-Mo),{frames:a,lastSeq:n}}if(t.seq<=n)return{frames:e,lastSeq:n};const r=[...e,t];return r.length>Mo&&r.splice(0,r.length-Mo),{frames:r,lastSeq:t.seq}}const YV=(e,t)=>t!==void 0?`${_t()}/team/processes/${encodeURIComponent(e)}/stream?sinceSeq=${t}`:`${_t()}/team/processes/${encodeURIComponent(e)}/stream`,ZV=3e3;function KV(e){if(e===null||typeof e!="object")return null;const t=e;if(!Array.isArray(t.processes))return null;const n=[];for(const r of t.processes){if(r===null||typeof r!="object")return null;const a=r;if(typeof a.agentId!="string"||typeof a.status!="string"||typeof a.startedAt!="string"||typeof a.pid!="number")return null;const s=a.exitCode;if(s!==null&&typeof s!="number")return null;n.push({agentId:a.agentId,pid:a.pid,status:a.status,startedAt:a.startedAt,exitCode:s})}return n}const XV=e=>`${_t()}/team/processes/${encodeURIComponent(e)}/stdin`,QV=()=>`${_t()}/messages`,JV=()=>`${_t()}/team/processes`;function eq({agentId:e}){const[t,n]=g.useState([]),[r,a]=g.useState("unknown"),[s,i]=g.useState(""),[o,u]=g.useState(null),[c,p]=g.useState(!1),d=g.useRef(-1),f=g.useRef(null),m=g.useRef(void 0),b=g.useRef(0),E=g.useRef(!0),x=g.useRef(null),y=g.useCallback(async A=>{try{const S=await wt(new Request(JV(),{signal:A}));if(!S.ok)return;const w=await S.json(),R=KV(w);if(!R)return;const C=R.find(U=>U.agentId===e);C&&E.current&&a(C.status)}catch{}},[e]);g.useEffect(()=>{E.current=!0;let A=null;const S=()=>{A?.abort(),A=new AbortController,y(A.signal)};S();const w=setInterval(S,ZV);return()=>{E.current=!1,A?.abort(),clearInterval(w)}},[y]);const v=g.useCallback(()=>{if(!E.current)return;const A=new EventSource(YV(e,d.current>-1?d.current:void 0));f.current=A,A.onmessage=S=>{try{const w=JSON.parse(S.data),R=VV(w);if(!R)return;n(C=>{const U=My(C,R,d.current);return d.current=U.lastSeq,U.frames}),b.current=0,p(!0)}catch{}},A.onerror=()=>{if(A.close(),f.current=null,p(!1),!E.current)return;const S=qV(b.current);b.current+=1,m.current=setTimeout(v,S)}},[e]);g.useEffect(()=>(v(),()=>{E.current=!1,f.current?.close(),f.current=null,m.current&&clearTimeout(m.current)}),[v]),g.useEffect(()=>{x.current&&t.length>0&&(x.current.scrollTop=x.current.scrollHeight)},[t]);const T=g.useCallback(async()=>{const A=s;if(A.length===0)return;u(null);const S={stream:"meta",ts:new Date().toISOString(),line:`> ${A}`};n(w=>My(w,S,d.current).frames);try{const w=await wt(new Request(XV(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({line:A})}));if(wt(new Request(QV(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:"terminal",to:e,body:A})})).catch(()=>{}),!w.ok){const C=(await w.json().catch(()=>null))?.error??`stdin POST failed: ${w.status}`;u(C);return}i("")}catch(w){u(w instanceof Error?w.message:String(w))}},[e,s]),N=r==="running",D=A=>{A.key==="Enter"&&N&&(A.preventDefault(),T())};return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-member-terminal":e,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Terminal"}),l.jsx("span",{className:"font-mono text-xs text-spur-text-muted",children:e}),l.jsx(Mt,{variant:N?"success":"ghost",size:"xs","data-terminal-status":!0,children:r}),l.jsx("span",{className:"text-[10px] text-spur-text-muted","data-terminal-connected":!0,children:c?"connected":"reconnecting…"})]}),!N&&l.jsxs("div",{className:"px-4 py-1 text-xs text-warning border-b border-spur-border",role:"status","data-status-banner":!0,children:["Member is ",r," — input disabled."]}),l.jsx("pre",{ref:x,className:"flex-1 overflow-y-auto p-2 text-xs font-mono leading-snug bg-base-100","data-terminal-output":!0,children:t.length===0?l.jsxs("span",{className:"text-spur-text-muted italic",children:["Waiting for output from ",e,"…"]}):t.map((A,S)=>l.jsx("div",{className:A.stream==="stderr"?"text-error":A.stream==="meta"?"text-spur-text-muted italic":"text-spur-text","data-stream":A.stream,children:A.line},A.seq??`meta-${S}`))}),o&&l.jsx("div",{className:"px-4 py-1 text-xs text-error border-t border-spur-border",role:"alert","data-input-error":!0,children:o}),l.jsx("div",{className:"flex items-center gap-2 px-2 py-2 border-t border-spur-border bg-base-200 shrink-0",children:l.jsx("input",{type:"text",value:s,onChange:A=>i(A.target.value),onKeyDown:D,disabled:!N,placeholder:N?"Type a line and press Enter…":"Input disabled (member not running)",className:"flex-1 input input-sm font-mono","data-terminal-input":!0})})]})}const tq=e=>`${_t()}/team/agents/${encodeURIComponent(e)}/start`,nq=e=>`${_t()}/team/agents/${encodeURIComponent(e)}/stop`,rq=e=>`${_t()}/team/${encodeURIComponent(e)}/up`,aq=e=>`${_t()}/team/${encodeURIComponent(e)}/down`,Mb="spur:board:teams:lastTerminal";function sq(){try{const e=globalThis.localStorage?.getItem(Mb);if(!e)return null;const t=JSON.parse(e);if(t&&typeof t=="object"&&"teamId"in t&&"memberId"in t&&typeof t.teamId=="string"&&typeof t.memberId=="string"){const n=t;return{teamId:n.teamId,memberId:n.memberId}}}catch{}return null}function iq(e){try{globalThis.localStorage?.setItem(Mb,JSON.stringify(e))}catch{}}function oq(){try{globalThis.localStorage?.removeItem(Mb)}catch{}}function lq({teamId:e}){const{teams:t,error:n,reload:r}=Ns(),[a,s]=g.useState(""),[i,o]=g.useState(""),[u,c]=g.useState(null),[p,d]=g.useState(null),[f,m]=g.useState(null),[b,E]=g.useState(!1),[x]=g.useState({done:!1}),y=g.useMemo(()=>e?t.filter(R=>R.teamId===e):t,[t,e]),v=e??a;g.useEffect(()=>{if(x.done||y.length===0)return;x.done=!0;const R=sq();if(!R)return;const C=y.find(k=>k.teamId===R.teamId),U=C?.members.find(k=>k.id===R.memberId);if(!C||!U){oq();return}s(R.teamId),o(R.memberId)},[y,x]);const T=y.find(R=>R.teamId===v),N=T?.members.find(R=>R.id===i)??null;g.useEffect(()=>{i&&T&&!T.members.some(R=>R.id===i)&&o("")},[i,T]),g.useEffect(()=>{v&&i&&iq({teamId:v,memberId:i})},[v,i]);const D=g.useCallback(async(R,C)=>{E(!0);try{const U=C?nq(R):tq(R),k=await wt(new Request(U,{method:"POST"}));if(!k.ok){const j=await k.json().catch(()=>null),W=j&&typeof j=="object"&&"error"in j&&typeof j.error=="string"?j.error:`request failed (${k.status})`;c(W)}}catch(U){c(U instanceof Error?U.message:String(U))}finally{E(!1),r()}},[r]),A=g.useCallback(async(R,C)=>{E(!0),c(null);try{const U=C==="up"?rq(R):aq(R),k=await wt(new Request(U,{method:"POST"}));if(!k.ok){const j=await k.json().catch(()=>null),W=j&&typeof j=="object"&&"error"in j&&typeof j.error=="string"?j.error:`request failed (${k.status})`;c(W)}}catch(U){c(U instanceof Error?U.message:String(U))}finally{E(!1),r()}},[r]),S=g.useCallback(R=>{o(R)},[]);if(n&&y.length===0)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-terminal-tab-error":!0,children:["Failed to load teams: ",n]});if(y.length===0)return l.jsxs("div",{className:"p-4 text-sm text-spur-text-muted","data-terminal-tab-empty":!0,children:["No teams defined in ",l.jsx("code",{className:"font-mono",children:".spur/config.yaml"}),". Configure"," ",l.jsx("code",{className:"font-mono",children:"agent.team"})," entries to open a terminal."]});const w=N?.status==="running";return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-terminal-tab":!0,children:[l.jsxs("div",{className:"px-3 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-center justify-between","data-terminal-toolbar":!0,children:[l.jsxs("div",{className:"flex items-center gap-2","data-terminal-focus":!0,children:[l.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"terminal-team-select",children:[l.jsx("span",{className:"text-spur-text-muted",children:"Team"}),l.jsxs(Jr,{id:"terminal-team-select",variant:"bordered",size:"sm",disabled:!!e,value:v,onChange:R=>{s(R.target.value),o("")},"data-terminal-team-select":!0,children:[!e&&l.jsx("option",{value:"",children:"Select team…"}),y.map(R=>l.jsx("option",{value:R.teamId,children:R.name},R.teamId))]})]}),l.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"terminal-member-select",children:[l.jsx("span",{className:"text-spur-text-muted",children:"Member"}),l.jsxs(Jr,{id:"terminal-member-select",variant:"bordered",size:"sm",value:i,onChange:R=>o(R.target.value),disabled:!T,"data-terminal-member-select":!0,children:[l.jsx("option",{value:"",children:"Select member…"}),T?.members.map(R=>l.jsxs("option",{value:R.id,children:[R.id," · ",R.type]},R.id))]})]}),N?.model?l.jsx("span",{className:"text-xs text-spur-text-muted font-mono","data-terminal-model":!0,children:N.model}):null,N&&l.jsxs(l.Fragment,{children:[l.jsx(Mt,{variant:w?"success":"ghost",size:"xs","data-terminal-status-badge":!0,children:N.status}),l.jsx(Ye,{type:"button",variant:w?"warning":"primary",size:"xs",disabled:b,onClick:()=>{w?d(N.id):D(N.id,!1)},"data-terminal-toggle-btn":!0,children:w?"Stop":"Start"})]})]}),l.jsxs("div",{className:"flex items-center gap-2","data-terminal-roster":!0,children:[T?.members.map(R=>l.jsx("button",{type:"button",title:`${R.id} · ${R.type}`,onClick:()=>S(R.id),className:"cursor-pointer p-0 bg-transparent border-0","data-terminal-roster-chip":!0,children:l.jsx(Mt,{variant:R.id===i?"accent":R.status==="running"?"success":"ghost",size:"xs",children:R.id})},R.id)),l.jsx("div",{className:"border-l border-spur-border mx-1 h-5","aria-hidden":"true"}),l.jsx(Ye,{type:"button",variant:"ghost",size:"xs",disabled:b||!T,onClick:()=>T&&A(T.teamId,"up"),"data-terminal-up-btn":!0,children:"Up"}),l.jsx(Ye,{type:"button",variant:"ghost",size:"xs",disabled:b||!T,onClick:()=>T&&m(T.teamId),"data-terminal-down-btn":!0,children:"Down"})]})]}),u&&l.jsx("div",{className:"px-3 py-1 text-xs text-error",role:"alert","data-terminal-tab-action-error":!0,children:u}),i&&N?l.jsx(eq,{agentId:i}):l.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic","data-terminal-tab-prompt":!0,children:"Choose a team and member above to open a terminal."}),l.jsxs(fl,{open:p!==null,variant:"warning",onClose:()=>d(null),"data-stop-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Stop member?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["Stopping ",l.jsx("span",{className:"font-mono",children:p})," will terminate its running process. Input to this member will be disabled until it is restarted."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(Ye,{type:"button",variant:"ghost",size:"sm",onClick:()=>d(null),"data-stop-confirm-cancel":!0,children:"Cancel"}),l.jsx(Ye,{type:"button",variant:"warning",size:"sm",disabled:b,onClick:()=>{if(!p)return;const R=p;d(null),D(R,!0)},"data-stop-confirm-confirm":!0,children:"Stop"})]})]}),l.jsxs(fl,{open:f!==null,variant:"warning",onClose:()=>m(null),"data-down-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Bring team down?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["This will stop all running members of ",l.jsx("span",{className:"font-mono",children:f}),"."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(Ye,{type:"button",variant:"ghost",size:"sm",onClick:()=>m(null),"data-down-confirm-cancel":!0,children:"Cancel"}),l.jsx(Ye,{type:"button",variant:"warning",size:"sm",disabled:b,onClick:()=>{if(!f)return;const R=f;m(null),A(R,"down")},"data-down-confirm-confirm":!0,children:"Bring Down"})]})]})]})}const Py=[{id:"supervisor",label:"Supervisor",component:GV},{id:"terminal",label:"Terminal",component:lq},{id:"processes",label:"Process",component:PV},{id:"activity",label:"Activity",component:DV}];function eN({teamId:e}){const[t,n]=g.useState("supervisor"),a=Py.find(s=>s.id===t)?.component;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-teams-shell":!0,children:[l.jsx("div",{role:"tablist","aria-label":"Teams tabs",className:"flex items-center gap-1 px-2 py-1 border-b border-spur-border bg-base-200 shrink-0",children:Py.map(s=>{const i=s.id===t;return l.jsx("button",{type:"button",role:"tab","aria-selected":i,"aria-controls":`teams-tab-panel-${s.id}`,id:`teams-tab-${s.id}`,onClick:()=>n(s.id),className:`px-3 py-1 rounded text-xs font-medium transition-colors ${i?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-base-300"}`,children:s.label},s.id)})}),l.jsx("div",{role:"tabpanel",id:`teams-tab-panel-${t}`,"aria-labelledby":`teams-tab-${t}`,className:"flex-1 overflow-hidden",children:a?l.jsx(a,{teamId:e}):null})]})}const uq={id:"teams",name:"Teams",icon:"👥",route:"teams",component:eN,sidebarLabel:"Teams",order:2},cq=Object.freeze(Object.defineProperty({__proto__:null,module:uq},Symbol.toStringTag,{value:"Module"}));function dq(e){try{return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}function pq({teamId:e}){const{teams:t}=Ns(),n=e?t.find(r=>r.teamId===e):t.find(r=>r.isCurrentProject);return n?l.jsxs("div",{className:"flex flex-col h-full overflow-y-auto bg-spur-bg","data-workspace-overview":!0,children:[l.jsxs("div",{className:"px-4 py-3 border-b border-spur-border bg-spur-surface",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text","data-workspace-overview-name":!0,children:n.name}),l.jsx(Mt,{variant:"outline",size:"xs",children:n.teamId}),l.jsx(Mt,{variant:n.isCurrentProject?"success":"ghost",size:"xs",children:"current project"})]}),n.workDir&&l.jsx("div",{className:"mt-1 font-mono text-xs text-spur-text-muted","data-workspace-overview-workdir":!0,children:n.workDir})]}),l.jsxs("div",{className:"p-3",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-wide font-semibold text-spur-text-muted mb-2",children:"Members"}),n.members.length===0?l.jsx("div",{className:"text-xs text-spur-text-muted italic","data-workspace-overview-no-members":!0,children:"No members materialized for this team yet."}):l.jsx("ul",{className:"space-y-1",children:n.members.map(r=>l.jsxs("li",{className:"text-xs flex items-center gap-2 py-1 border-b border-spur-border/50 last:border-b-0","data-workspace-overview-member":r.id,children:[l.jsx(Mt,{variant:r.status==="running"?"success":"ghost",size:"xs",children:r.status}),l.jsx("span",{className:"font-mono text-spur-text",children:r.id}),l.jsx(Mt,{variant:"outline",size:"xs",children:r.type}),r.model&&l.jsx("span",{className:"font-mono text-[10px] text-spur-text-muted",children:r.model})]},r.id))}),l.jsxs("div",{className:"mt-3 text-[10px] text-spur-text-faint",children:["Last refresh: ",dq(new Date().toISOString())]})]})]}):l.jsx("div",{className:"p-4 text-sm text-spur-text-muted","data-workspace-overview-empty":!0,children:"No team selected for this workspace."})}const jy=[{id:"overview",label:"Overview",component:pq},{id:"team",label:"Team",component:eN},{id:"inbox",label:"Inbox",component:Ew},{id:"tasks",label:"Tasks",component:qw}];function fq(){const{teams:e}=Ns(),t=g.useMemo(()=>e.filter(c=>c.isCurrentProject),[e]),[n,r]=g.useState(""),[a,s]=g.useState("overview");g.useEffect(()=>{!n&&t.length>0&&r(t[0]?.teamId??"")},[t,n]);const i=t.find(c=>c.teamId===n)??null,u=jy.find(c=>c.id===a)?.component;return t.length===0?l.jsxs("div",{className:"workspace flex flex-col h-full items-center justify-center gap-3 p-6 bg-spur-bg","data-workspace-empty":!0,children:[l.jsx("div",{className:"text-sm font-semibold text-spur-text",children:"No project-local team"}),l.jsxs("p",{className:"text-xs text-spur-text-muted max-w-sm text-center",children:["No configured team resolves to this project's working directory. Add an"," ",l.jsx("code",{className:"font-mono",children:"agent.team"})," entry in"," ",l.jsx("code",{className:"font-mono",children:".spur/config.yaml"})," whose"," ",l.jsx("code",{className:"font-mono",children:"work_dir"})," points at the current project to compose a Workspace."]})]}):l.jsxs("div",{className:"workspace flex flex-col h-full overflow-hidden bg-spur-bg","data-workspace-shell":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0 flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Workspace"}),l.jsx("select",{value:i?.teamId??"",onChange:c=>{r(c.target.value),s("overview")},"aria-label":"Workspace team","data-workspace-team-select":!0,className:"border border-spur-border rounded px-1 py-0.5 bg-spur-bg text-spur-text text-xs",children:t.map(c=>l.jsx("option",{value:c.teamId,children:c.name},c.teamId))})]}),l.jsx("div",{role:"tablist","aria-label":"Workspace tabs",className:"flex items-center gap-1 px-2 py-1 border-b border-spur-border bg-spur-surface shrink-0",children:jy.map(c=>{const p=c.id===a;return l.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":`workspace-tab-panel-${c.id}`,id:`workspace-tab-${c.id}`,onClick:()=>s(c.id),className:`px-3 py-1 rounded-lg text-xs font-medium transition-colors ${p?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-spur-surface-3"}`,"data-workspace-tab":!0,children:c.label},c.id)})}),l.jsx("div",{role:"tabpanel",id:`workspace-tab-panel-${a}`,"aria-labelledby":`workspace-tab-${a}`,className:"flex-1 overflow-hidden",children:u?l.jsx(u,{teamId:i?.teamId}):null})]})}const mq={id:"workspace",name:"Workspace",icon:"🧩",route:"workspace",component:fq,sidebarLabel:"Workspace",order:0},hq=Object.freeze(Object.defineProperty({__proto__:null,module:mq},Symbol.toStringTag,{value:"Module"}));function tN(e){return e===null||typeof e!="object"?null:"module"in e&&By(e.module)?e.module:"default"in e&&By(e.default)?e.default:null}function By(e){return e===null||typeof e!="object"?!1:"id"in e&&typeof e.id=="string"&&"name"in e&&typeof e.name=="string"&&"icon"in e&&typeof e.icon=="string"&&"route"in e&&typeof e.route=="string"&&"component"in e&&typeof e.component=="function"}function nN(e,t){const n=typeof e.order=="number",r=typeof t.order=="number";return n&&r?e.order-t.order:n?-1:r?1:0}function gq(e){const t=[],n=e("./*/index.{ts,tsx}",{eager:!0});for(const r of Object.values(n)){const a=tN(r);a&&t.push(a)}return t.sort((r,a)=>r.id.localeCompare(a.id)),t.sort(nN),t}function bq(){try{return gq(()=>Object.assign({"./features/index.tsx":nH,"./history/index.tsx":IH,"./inbox/index.tsx":VH,"./observability/index.tsx":PG,"./task-kanban/index.tsx":kV,"./teams/index.tsx":cq,"./workspace/index.tsx":hq}))}catch(a){if(typeof require!="function")throw a}const e=require("node:fs"),t=require("node:path"),n=require("node:url"),r=typeof __dirname<"u"?__dirname:t.dirname(n.fileURLToPath(import.meta.url));return Eq(r,{readdirSync:(a,s)=>e.readdirSync(a,s),tryRequire:a=>require(a)})}function Eq(e,t){const n=require("node:path"),r=[];let a=[];try{a=t.readdirSync(e,{withFileTypes:!0})}catch{return r}const s=a.filter(i=>i.isDirectory()).map(i=>i.name).sort((i,o)=>i.localeCompare(o));for(const i of s)for(const o of["tsx","ts"]){const u=n.join(e,i,`index.${o}`);try{const c=t.tryRequire(u),p=tN(c);if(p){r.push(p);break}}catch{}}return r.sort(nN),r}function xq(e,t){const n=new Set(t?.disabled??[]),r=e.slice(),a=new Set(n);function s(){return r.filter(i=>!a.has(i.id))}return yq(r),{get modules(){return s()},getModule(i){return s().find(o=>o.id===i)},get defaultModule(){return s()[0]},disableModule(i){a.add(i)},enableModule(i){a.delete(i)},getEnabledModules(){return s().map(i=>i.id)},registerModuleRoot(i){}}}function yq(e){const t=new Map,n=new Map;for(const r of e){const a=t.get(r.id);if(a!==void 0)throw new Error(`Duplicate module id "${r.id}" discovered in two sources: ${a} and ${Po(r)}`);t.set(r.id,Po(r));const s=n.get(r.route);if(s!==void 0)throw new Error(`Duplicate module route "${r.route}" discovered in two sources: ${s} and ${Po(r)}`);n.set(r.route,Po(r))}}function Po(e){return e.id}const Pb=xq(bq(),{disabled:pP}),rN=Pb.modules;function Tq(e){return Pb.getModule(e)}const jo=Pb.defaultModule;function Sq(){const[e,t]=g.useState([]);return g.useEffect(()=>{if(typeof window>"u")return;const n=r=>{const s=r.detail?.message||"An error occurred",i=`${Date.now()}-${Math.random().toString(36).slice(2,7)}`;t(o=>[...o,{id:i,message:s}]),setTimeout(()=>{t(o=>o.filter(u=>u.id!==i))},5e3)};return window.addEventListener("api-error",n),()=>{window.removeEventListener("api-error",n)}},[]),e.length===0?null:l.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-md w-full px-4 pointer-events-none",children:e.map(n=>l.jsxs("div",{className:"pointer-events-auto flex items-center justify-between gap-3 p-3 bg-red-950/90 border border-red-500/40 text-red-200 text-sm rounded-md shadow-lg backdrop-blur",role:"alert",children:[l.jsx("span",{className:"flex-1 break-words",children:n.message}),l.jsx("button",{type:"button",className:"text-red-400 hover:text-red-100 text-base font-bold leading-none px-1",onClick:()=>t(r=>r.filter(a=>a.id!==n.id)),"aria-label":"Close error toast",children:"×"})]},n.id))})}function vq({currentName:e}){const[t,n]=g.useState(!1),[r,a]=g.useState([]),[s,i]=g.useState(null),[o,u]=g.useState(null),c=g.useRef(null);g.useEffect(()=>{if(!t)return;const d=new AbortController;return wt(new Request(`${_t()}/projects`,{signal:d.signal})).then(async f=>{if(!f.ok)return;const m=await f.json();a(m.projects??[])}).catch(()=>{u("Failed to load projects")}),()=>d.abort()},[t]),g.useEffect(()=>{if(!t)return;const d=m=>{m.key==="Escape"&&n(!1)},f=m=>{c.current&&!c.current.contains(m.target)&&n(!1)};return document.addEventListener("keydown",d),document.addEventListener("mousedown",f),()=>{document.removeEventListener("keydown",d),document.removeEventListener("mousedown",f)}},[t]);const p=async d=>{if(d.current){n(!1);return}if(d.running&&d.port>0){window.location.href=`http://localhost:${d.port}/board`;return}i(d.name);try{const f=await wt(new Request(`${_t()}/projects/start`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:d.name,path:d.path})}));if(!f.ok)throw new Error("Failed to start project");const m=await f.json();window.location.href=m.url||`http://localhost:${m.port}/board`}catch(f){u(f instanceof Error?f.message:"Start failed"),i(null)}};return l.jsxs("div",{className:"relative min-w-0 flex-1",ref:c,children:[l.jsxs("button",{type:"button",onClick:()=>n(d=>!d),"aria-haspopup":"listbox","aria-expanded":t,"aria-label":"Switch project",title:e,"data-testid":"project-switcher-trigger",className:"flex w-full items-center justify-between gap-1 rounded-md px-1.5 py-1 text-left text-sm font-semibold text-spur-text hover:bg-spur-border/30 focus-visible:outline focus-visible:outline-2 focus-visible:outline-spur-accent",children:[l.jsx("span",{className:"font-semibold truncate",children:e}),l.jsx("svg",{className:`h-4 w-4 shrink-0 transition-transform ${t?"rotate-180":""}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("path",{d:"M4 6l4 4 4-4"})})]}),t&&l.jsxs("div",{role:"listbox","aria-label":"Registered projects","data-testid":"project-switcher-menu",className:"absolute left-0 top-full z-50 mt-1 w-64 rounded-md border border-spur-border bg-spur-surface p-1 shadow-lg",children:[l.jsx("div",{className:"px-2 py-1 text-xs font-medium text-spur-text-muted border-b border-spur-border/50 mb-1",children:"Projects"}),r.length===0?l.jsx("div",{className:"px-2 py-1.5 text-xs text-spur-text-muted",children:o||"No projects registered"}):r.map(d=>l.jsxs("button",{type:"button",role:"option","aria-selected":d.current,disabled:s===d.name,onClick:()=>p(d),"data-testid":`project-item-${d.name}`,className:`flex w-full items-center justify-between rounded px-2 py-1.5 text-xs text-left transition-colors ${d.current?"bg-spur-accent/15 text-spur-accent font-medium":"text-spur-text hover:bg-spur-border/30"}`,children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx("span",{className:`h-2 w-2 rounded-full shrink-0 ${d.running?"bg-green-500":"bg-gray-400"}`,title:d.running?`Running on port ${d.port}`:"Stopped"}),l.jsx("span",{className:"truncate",children:d.name})]}),s===d.name?l.jsx("span",{className:"text-[10px] text-spur-accent animate-pulse",children:"Starting..."}):d.current?l.jsx("span",{className:"text-[10px] font-semibold text-spur-accent",children:"current"}):d.running?l.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[":",d.port]}):l.jsx("span",{className:"text-[10px] text-spur-text-muted",children:"stopped"})]},d.path))]})]})}const aN="spur-theme";function wq(){try{const e=localStorage.getItem(aN);if(e==="light"||e==="dark")return e}catch{}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Nq(e){document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(aN,e)}catch{}}function Aq(e){const t=e==="dark"?"light":"dark";return Nq(t),t}function _q(){const[e,t]=g.useState(wq);g.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),a=s=>{if(!(()=>{try{return localStorage.getItem("spur-theme")}catch{return null}})()){const o=s.matches?"dark":"light";t(o),document.documentElement.setAttribute("data-theme",o)}};return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[]);const n=g.useCallback(()=>t(Aq),[]);return l.jsx(Ye,{variant:"ghost",size:"sm",onClick:n,className:"text-spur-text-muted","aria-label":e==="dark"?"Switch to light mode":"Switch to dark mode",children:e==="dark"?"☀️":"🌙"})}const Cq="Modules";function kq(){const[e,t]=g.useState(Cq);return g.useEffect(()=>{const n=new AbortController;return wt(new Request(`${_t()}/project`,{signal:n.signal})).then(async r=>{if(!r.ok)return;const a=await r.json();a.name&&t(a.name)}).catch(()=>{}),()=>n.abort()},[]),e}function Iq({direction:e}){const t=e==="expand";return l.jsx("svg",{className:"h-4 w-4 shrink-0",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t?l.jsx("path",{d:"M6 3l5 5-5 5"}):l.jsx("path",{d:"M10 3L5 8l5 5"})})}function Uy({collapsed:e,onToggle:t}){const n=e?"Expand sidebar":"Collapse sidebar";return l.jsx("button",{type:"button",onClick:t,"aria-label":n,title:n,"data-testid":e?"sidebar-expand":"sidebar-collapse",className:"flex h-8 w-8 items-center justify-center rounded-md text-spur-text-muted hover:bg-spur-accent/20 hover:text-spur-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-spur-accent",children:l.jsx(Iq,{direction:e?"expand":"collapse"})})}function Rq({collapsed:e,onToggle:t,onMobileClose:n}){const r=kq();return l.jsxs("aside",{className:"flex flex-col bg-spur-surface border-r border-spur-border overflow-hidden",children:[e?l.jsx("div",{className:"flex items-center justify-center border-b border-spur-border shrink-0 py-1",children:l.jsx(Uy,{collapsed:!0,onToggle:t})}):l.jsxs("div",{className:"flex items-center justify-between gap-1 p-3 border-b border-spur-border shrink-0",children:[l.jsx(vq,{currentName:r}),l.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[l.jsx(Uy,{collapsed:!1,onToggle:t}),l.jsx(_q,{}),n&&l.jsx(Ye,{variant:"ghost",size:"sm",className:"text-spur-text-muted md:hidden",onClick:n,"aria-label":"Close navigation",children:"✕"})]})]}),l.jsx("nav",{className:"flex-1 overflow-y-auto",children:rN.map(a=>l.jsxs(b1,{to:`/board/${a.route}`,className:({isActive:s})=>`flex items-center gap-2 px-3 py-2 text-sm transition-colors ${s?"bg-spur-accent/20 text-spur-accent":"text-spur-text-muted hover:text-spur-text hover:bg-spur-border/30"} ${e?"justify-center py-3":""}`,title:e?a.name:void 0,children:[l.jsx("span",{className:"text-lg",children:a.icon}),!e&&l.jsx("span",{children:a.sidebarLabel??a.name})]},a.id))})]})}function Dq({children:e,mobileHeader:t}){return l.jsxs("main",{className:"flex flex-col h-full overflow-hidden bg-spur-bg",children:[t,l.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:e})]})}function Oq({collapsed:e,onToggle:t,onMobileClose:n,children:r,actions:a}){return l.jsxs("aside",{className:"flex flex-col bg-spur-surface border-l border-spur-border overflow-hidden",children:[n&&l.jsx("div",{className:"hidden max-md:flex items-center justify-center py-2 shrink-0",children:l.jsx("div",{className:"w-10 h-1 rounded-full bg-spur-border"})}),l.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-spur-border shrink-0",children:[!e&&l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:r?"Context":""}),l.jsx("div",{className:"flex items-center gap-1",children:a}),l.jsxs("div",{className:"flex items-center gap-1",children:[n&&l.jsx(Ye,{variant:"ghost",size:"sm",className:"text-spur-text-muted md:hidden",onClick:n,"aria-label":"Close panel",children:"✕"}),l.jsx(Ye,{variant:"ghost",size:"sm",className:"text-spur-text-muted hidden md:inline-flex",onClick:t,"aria-label":e?"Expand panel":"Collapse panel",children:e?"◀":"▶"})]})]}),!e&&l.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:r})]})}const Lq=g.createContext(void 0);function Fq(){const[e,t]=g.useState(()=>cP()),[n,r]=g.useState(!1),[a,s]=g.useState(!1),i=ir(),o=(()=>{const v=i.pathname.split("/"),T=v.indexOf("board"),N=T>=0?v[T+1]:void 0;return Tq(N??"")})();g.useLayoutEffect(()=>{const v=document.documentElement;v.style.setProperty("--sidebar-w",`${e.sidebarWidth}px`),v.style.setProperty("--rightpanel-w",`${e.rightPanelWidth}px`)},[e.sidebarWidth,e.rightPanelWidth]);const u=g.useCallback(v=>dP(v),[]),c=g.useCallback(()=>{t(v=>{const T={...v,sidebarCollapsed:!v.sidebarCollapsed};return u(T),T})},[u]),p=g.useCallback(()=>{t(v=>{const T={...v,rightPanelCollapsed:!v.rightPanelCollapsed};return u(T),T})},[u]),d=g.useCallback(v=>t(T=>{const N={...T,sidebarWidth:v};return u(N),N}),[u]),f=g.useCallback(v=>t(T=>{const N={...T,rightPanelWidth:v};return u(N),N}),[u]),m=g.useCallback(()=>{r(!1),s(!1)},[]),b=g.useCallback(v=>{v.key==="Escape"&&m()},[m]),E=o?.rightPanelComponent;g.useLayoutEffect(()=>{E&&e.rightPanelCollapsed&&t(v=>({...v,rightPanelCollapsed:!1}))},[E,e.rightPanelCollapsed]);const x=l.jsxs("div",{className:"mobile-bar",children:[l.jsx(Ye,{variant:"ghost",size:"sm",className:"text-spur-text",onClick:()=>r(!0),"aria-label":"Open navigation",children:"☰"}),l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:o?.name??"Spur"}),l.jsx(Ye,{variant:"ghost",size:"sm",className:"text-spur-text",onClick:()=>s(!0),"aria-label":"Open panel",children:"◧"})]}),y=n||a;return l.jsxs(l.Fragment,{children:[y&&l.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:m,onKeyDown:b,"aria-hidden":"true"}),l.jsx("div",{className:"board-layout","data-sidebar-collapsed":String(e.sidebarCollapsed),"data-rightpanel-collapsed":String(e.rightPanelCollapsed),"data-mobile-sidebar-open":String(n),"data-mobile-panel-open":String(a),children:l.jsxs(Lq.Provider,{value:o,children:[l.jsx(Rq,{collapsed:e.sidebarCollapsed,onToggle:c,onMobileClose:m}),l.jsx(yl,{targetVar:"--sidebar-w",onResizeEnd:d}),l.jsx(Dq,{mobileHeader:x,children:l.jsx(e_,{})}),l.jsx(yl,{targetVar:"--rightpanel-w",onResizeEnd:f}),l.jsx(Oq,{collapsed:e.rightPanelCollapsed,onToggle:p,onMobileClose:m,children:E?l.jsx(E,{}):null})]})}),l.jsx(Sq,{})]})}const Mq=[{path:"/board",element:l.jsx(Fq,{}),children:[{index:!0,element:l.jsx(h0,{to:jo?jo.route:"/board",replace:!0})},...rN.flatMap(e=>[{path:e.route,element:l.jsx(e.component,{})},{path:`${e.route}/*`,element:l.jsx(e.component,{})}])]},{path:"/",element:l.jsx(h0,{to:jo?`/board/${jo.route}`:"/board",replace:!0})}];function Pq(){return A_(Mq)}function Bq(){const[e]=g.useState(Pq);return l.jsx(XA,{router:e})}export{Ye as B,ob as C,Da as L,pl as M,Jr as S,Yv as _,rn as a,Mt as b,Oz as c,Bq as d,l as j,kz as p,xb as t,Tb as u};
|